fix: GraphQL fragments deduplication

This commit is contained in:
Inex Code 2023-07-02 18:22:07 +03:00
parent a8bddaaeba
commit edb02764f7
11 changed files with 9 additions and 9142 deletions

View file

@ -1,5 +1,4 @@
import 'dart:async';
import 'disk_volumes.graphql.dart';
import 'package:gql/ast.dart';
import 'package:graphql/client.dart' as graphql;
import 'package:selfprivacy/utils/scalars.dart';

View file

@ -1,9 +1,3 @@
fragment basicMutationReturnFields on MutationReturnInterface{
code
message
success
}
query GetServerDiskVolumes {
storage {
volumes {

View file

@ -1,5 +1,4 @@
import 'dart:async';
import 'disk_volumes.graphql.dart';
import 'package:gql/ast.dart';
import 'package:graphql/client.dart' as graphql;
import 'package:selfprivacy/utils/scalars.dart';

View file

@ -1,9 +1,3 @@
fragment basicMutationReturnFields on MutationReturnInterface{
code
message
success
}
query SystemSettings {
system {
settings {

View file

@ -1,9 +1,3 @@
fragment basicMutationReturnFields on MutationReturnInterface{
code
message
success
}
query AllServices {
services {
allServices {

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,3 @@
fragment basicMutationReturnFields on MutationReturnInterface{
code
message
success
}
fragment userFields on User{
username
userType

File diff suppressed because it is too large Load diff

View file

@ -35,7 +35,13 @@ part 'volume_api.dart';
part 'backups_api.dart';
class ServerApi extends GraphQLApiMap
with VolumeApi, JobsApi, ServerActionsApi, ServicesApi, UsersApi, BackupsApi {
with
VolumeApi,
JobsApi,
ServerActionsApi,
ServicesApi,
UsersApi,
BackupsApi {
ServerApi({
this.hasLogger = false,
this.isWithToken = true,