From 07058d3db5d95e2bb48ab9aae574fa7c60961ddc Mon Sep 17 00:00:00 2001 From: NaiJi Date: Mon, 15 Jan 2024 13:11:09 +0400 Subject: [PATCH] fix(graphql): Remove and replace deprecated mutations - https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/418 --- .../graphql_maps/schema/disk_volumes.graphql | 28 +- .../schema/disk_volumes.graphql.dart | 1105 +++-- .../graphql_maps/schema/server_api.graphql | 88 +- .../schema/server_api.graphql.dart | 3724 +++++++++++++---- .../schema/server_settings.graphql | 18 +- .../schema/server_settings.graphql.dart | 613 ++- .../graphql_maps/schema/services.graphql | 41 +- .../graphql_maps/schema/services.graphql.dart | 1656 ++++++-- .../graphql_maps/schema/users.graphql | 46 +- .../graphql_maps/schema/users.graphql.dart | 1400 +++++-- .../graphql_maps/server_api/jobs_api.dart | 6 +- .../server_api/server_actions_api.dart | 2 +- .../graphql_maps/server_api/server_api.dart | 8 +- .../graphql_maps/server_api/services_api.dart | 36 +- .../graphql_maps/server_api/users_api.dart | 40 +- .../graphql_maps/server_api/volume_api.dart | 6 +- 16 files changed, 6748 insertions(+), 2069 deletions(-) diff --git a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql index 76ba5475..ab35f829 100644 --- a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql @@ -26,28 +26,36 @@ query GetServerDiskVolumes { } mutation MountVolume($name: String!) { - mountVolume(name: $name) { - ...basicMutationReturnFields + storage { + mountVolume(name: $name) { + ...basicMutationReturnFields + } } } mutation ResizeVolume($name: String!) { - resizeVolume(name: $name) { - ...basicMutationReturnFields + storage { + resizeVolume(name: $name) { + ...basicMutationReturnFields + } } } mutation UnmountVolume($name: String!) { - unmountVolume(name: $name) { - ...basicMutationReturnFields + storage { + unmountVolume(name: $name) { + ...basicMutationReturnFields + } } } mutation MigrateToBinds($input: MigrateToBindsInput!) { - migrateToBinds(input: $input) { - ...basicMutationReturnFields - job { - ...basicApiJobsFields + storage { + migrateToBinds(input: $input) { + ...basicMutationReturnFields + job { + ...basicApiJobsFields + } } } } diff --git a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart index 6d72df6b..d85dd401 100644 --- a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart @@ -1613,29 +1613,28 @@ class _CopyWithStubImpl$Variables$Mutation$MountVolume class Mutation$MountVolume { Mutation$MountVolume({ - required this.mountVolume, + required this.storage, this.$__typename = 'Mutation', }); factory Mutation$MountVolume.fromJson(Map json) { - final l$mountVolume = json['mountVolume']; + final l$storage = json['storage']; final l$$__typename = json['__typename']; return Mutation$MountVolume( - mountVolume: Mutation$MountVolume$mountVolume.fromJson( - (l$mountVolume as Map)), + storage: Mutation$MountVolume$storage.fromJson( + (l$storage as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `storage.mount_volume` instead') - final Mutation$MountVolume$mountVolume mountVolume; + final Mutation$MountVolume$storage storage; final String $__typename; Map toJson() { final _resultData = {}; - final l$mountVolume = mountVolume; - _resultData['mountVolume'] = l$mountVolume.toJson(); + final l$storage = storage; + _resultData['storage'] = l$storage.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -1643,10 +1642,10 @@ class Mutation$MountVolume { @override int get hashCode { - final l$mountVolume = mountVolume; + final l$storage = storage; final l$$__typename = $__typename; return Object.hashAll([ - l$mountVolume, + l$storage, l$$__typename, ]); } @@ -1659,9 +1658,9 @@ class Mutation$MountVolume { if (!(other is Mutation$MountVolume) || runtimeType != other.runtimeType) { return false; } - final l$mountVolume = mountVolume; - final lOther$mountVolume = other.mountVolume; - if (l$mountVolume != lOther$mountVolume) { + final l$storage = storage; + final lOther$storage = other.storage; + if (l$storage != lOther$storage) { return false; } final l$$__typename = $__typename; @@ -1691,10 +1690,10 @@ abstract class CopyWith$Mutation$MountVolume { _CopyWithStubImpl$Mutation$MountVolume; TRes call({ - Mutation$MountVolume$mountVolume? mountVolume, + Mutation$MountVolume$storage? storage, String? $__typename, }); - CopyWith$Mutation$MountVolume$mountVolume get mountVolume; + CopyWith$Mutation$MountVolume$storage get storage; } class _CopyWithImpl$Mutation$MountVolume @@ -1711,22 +1710,22 @@ class _CopyWithImpl$Mutation$MountVolume static const _undefined = {}; TRes call({ - Object? mountVolume = _undefined, + Object? storage = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$MountVolume( - mountVolume: mountVolume == _undefined || mountVolume == null - ? _instance.mountVolume - : (mountVolume as Mutation$MountVolume$mountVolume), + storage: storage == _undefined || storage == null + ? _instance.storage + : (storage as Mutation$MountVolume$storage), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$MountVolume$mountVolume get mountVolume { - final local$mountVolume = _instance.mountVolume; - return CopyWith$Mutation$MountVolume$mountVolume( - local$mountVolume, (e) => call(mountVolume: e)); + CopyWith$Mutation$MountVolume$storage get storage { + final local$storage = _instance.storage; + return CopyWith$Mutation$MountVolume$storage( + local$storage, (e) => call(storage: e)); } } @@ -1737,13 +1736,13 @@ class _CopyWithStubImpl$Mutation$MountVolume TRes _res; call({ - Mutation$MountVolume$mountVolume? mountVolume, + Mutation$MountVolume$storage? storage, String? $__typename, }) => _res; - CopyWith$Mutation$MountVolume$mountVolume get mountVolume => - CopyWith$Mutation$MountVolume$mountVolume.stub(_res); + CopyWith$Mutation$MountVolume$storage get storage => + CopyWith$Mutation$MountVolume$storage.stub(_res); } const documentNodeMutationMountVolume = DocumentNode(definitions: [ @@ -1764,19 +1763,34 @@ const documentNodeMutationMountVolume = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'mountVolume'), + name: NameNode(value: 'storage'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'mountVolume'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'name')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -1893,21 +1907,158 @@ extension ClientExtension$Mutation$MountVolume on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$MountVolume$mountVolume +class Mutation$MountVolume$storage { + Mutation$MountVolume$storage({ + required this.mountVolume, + this.$__typename = 'StorageMutations', + }); + + factory Mutation$MountVolume$storage.fromJson(Map json) { + final l$mountVolume = json['mountVolume']; + final l$$__typename = json['__typename']; + return Mutation$MountVolume$storage( + mountVolume: Mutation$MountVolume$storage$mountVolume.fromJson( + (l$mountVolume as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$MountVolume$storage$mountVolume mountVolume; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$mountVolume = mountVolume; + _resultData['mountVolume'] = l$mountVolume.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$mountVolume = mountVolume; + final l$$__typename = $__typename; + return Object.hashAll([ + l$mountVolume, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$MountVolume$storage) || + runtimeType != other.runtimeType) { + return false; + } + final l$mountVolume = mountVolume; + final lOther$mountVolume = other.mountVolume; + if (l$mountVolume != lOther$mountVolume) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$MountVolume$storage + on Mutation$MountVolume$storage { + CopyWith$Mutation$MountVolume$storage + get copyWith => CopyWith$Mutation$MountVolume$storage( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$MountVolume$storage { + factory CopyWith$Mutation$MountVolume$storage( + Mutation$MountVolume$storage instance, + TRes Function(Mutation$MountVolume$storage) then, + ) = _CopyWithImpl$Mutation$MountVolume$storage; + + factory CopyWith$Mutation$MountVolume$storage.stub(TRes res) = + _CopyWithStubImpl$Mutation$MountVolume$storage; + + TRes call({ + Mutation$MountVolume$storage$mountVolume? mountVolume, + String? $__typename, + }); + CopyWith$Mutation$MountVolume$storage$mountVolume get mountVolume; +} + +class _CopyWithImpl$Mutation$MountVolume$storage + implements CopyWith$Mutation$MountVolume$storage { + _CopyWithImpl$Mutation$MountVolume$storage( + this._instance, + this._then, + ); + + final Mutation$MountVolume$storage _instance; + + final TRes Function(Mutation$MountVolume$storage) _then; + + static const _undefined = {}; + + TRes call({ + Object? mountVolume = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$MountVolume$storage( + mountVolume: mountVolume == _undefined || mountVolume == null + ? _instance.mountVolume + : (mountVolume as Mutation$MountVolume$storage$mountVolume), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$MountVolume$storage$mountVolume get mountVolume { + final local$mountVolume = _instance.mountVolume; + return CopyWith$Mutation$MountVolume$storage$mountVolume( + local$mountVolume, (e) => call(mountVolume: e)); + } +} + +class _CopyWithStubImpl$Mutation$MountVolume$storage + implements CopyWith$Mutation$MountVolume$storage { + _CopyWithStubImpl$Mutation$MountVolume$storage(this._res); + + TRes _res; + + call({ + Mutation$MountVolume$storage$mountVolume? mountVolume, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$MountVolume$storage$mountVolume get mountVolume => + CopyWith$Mutation$MountVolume$storage$mountVolume.stub(_res); +} + +class Mutation$MountVolume$storage$mountVolume implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$MountVolume$mountVolume({ + Mutation$MountVolume$storage$mountVolume({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$MountVolume$mountVolume.fromJson(Map json) { + factory Mutation$MountVolume$storage$mountVolume.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$MountVolume$mountVolume( + return Mutation$MountVolume$storage$mountVolume( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -1955,7 +2106,7 @@ class Mutation$MountVolume$mountVolume if (identical(this, other)) { return true; } - if (!(other is Mutation$MountVolume$mountVolume) || + if (!(other is Mutation$MountVolume$storage$mountVolume) || runtimeType != other.runtimeType) { return false; } @@ -1983,23 +2134,24 @@ class Mutation$MountVolume$mountVolume } } -extension UtilityExtension$Mutation$MountVolume$mountVolume - on Mutation$MountVolume$mountVolume { - CopyWith$Mutation$MountVolume$mountVolume - get copyWith => CopyWith$Mutation$MountVolume$mountVolume( +extension UtilityExtension$Mutation$MountVolume$storage$mountVolume + on Mutation$MountVolume$storage$mountVolume { + CopyWith$Mutation$MountVolume$storage$mountVolume< + Mutation$MountVolume$storage$mountVolume> + get copyWith => CopyWith$Mutation$MountVolume$storage$mountVolume( this, (i) => i, ); } -abstract class CopyWith$Mutation$MountVolume$mountVolume { - factory CopyWith$Mutation$MountVolume$mountVolume( - Mutation$MountVolume$mountVolume instance, - TRes Function(Mutation$MountVolume$mountVolume) then, - ) = _CopyWithImpl$Mutation$MountVolume$mountVolume; +abstract class CopyWith$Mutation$MountVolume$storage$mountVolume { + factory CopyWith$Mutation$MountVolume$storage$mountVolume( + Mutation$MountVolume$storage$mountVolume instance, + TRes Function(Mutation$MountVolume$storage$mountVolume) then, + ) = _CopyWithImpl$Mutation$MountVolume$storage$mountVolume; - factory CopyWith$Mutation$MountVolume$mountVolume.stub(TRes res) = - _CopyWithStubImpl$Mutation$MountVolume$mountVolume; + factory CopyWith$Mutation$MountVolume$storage$mountVolume.stub(TRes res) = + _CopyWithStubImpl$Mutation$MountVolume$storage$mountVolume; TRes call({ int? code, @@ -2009,16 +2161,16 @@ abstract class CopyWith$Mutation$MountVolume$mountVolume { }); } -class _CopyWithImpl$Mutation$MountVolume$mountVolume - implements CopyWith$Mutation$MountVolume$mountVolume { - _CopyWithImpl$Mutation$MountVolume$mountVolume( +class _CopyWithImpl$Mutation$MountVolume$storage$mountVolume + implements CopyWith$Mutation$MountVolume$storage$mountVolume { + _CopyWithImpl$Mutation$MountVolume$storage$mountVolume( this._instance, this._then, ); - final Mutation$MountVolume$mountVolume _instance; + final Mutation$MountVolume$storage$mountVolume _instance; - final TRes Function(Mutation$MountVolume$mountVolume) _then; + final TRes Function(Mutation$MountVolume$storage$mountVolume) _then; static const _undefined = {}; @@ -2028,7 +2180,7 @@ class _CopyWithImpl$Mutation$MountVolume$mountVolume Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$MountVolume$mountVolume( + _then(Mutation$MountVolume$storage$mountVolume( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -2043,9 +2195,9 @@ class _CopyWithImpl$Mutation$MountVolume$mountVolume )); } -class _CopyWithStubImpl$Mutation$MountVolume$mountVolume - implements CopyWith$Mutation$MountVolume$mountVolume { - _CopyWithStubImpl$Mutation$MountVolume$mountVolume(this._res); +class _CopyWithStubImpl$Mutation$MountVolume$storage$mountVolume + implements CopyWith$Mutation$MountVolume$storage$mountVolume { + _CopyWithStubImpl$Mutation$MountVolume$storage$mountVolume(this._res); TRes _res; @@ -2157,29 +2309,28 @@ class _CopyWithStubImpl$Variables$Mutation$ResizeVolume class Mutation$ResizeVolume { Mutation$ResizeVolume({ - required this.resizeVolume, + required this.storage, this.$__typename = 'Mutation', }); factory Mutation$ResizeVolume.fromJson(Map json) { - final l$resizeVolume = json['resizeVolume']; + final l$storage = json['storage']; final l$$__typename = json['__typename']; return Mutation$ResizeVolume( - resizeVolume: Mutation$ResizeVolume$resizeVolume.fromJson( - (l$resizeVolume as Map)), + storage: Mutation$ResizeVolume$storage.fromJson( + (l$storage as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `storage.resize_volume` instead') - final Mutation$ResizeVolume$resizeVolume resizeVolume; + final Mutation$ResizeVolume$storage storage; final String $__typename; Map toJson() { final _resultData = {}; - final l$resizeVolume = resizeVolume; - _resultData['resizeVolume'] = l$resizeVolume.toJson(); + final l$storage = storage; + _resultData['storage'] = l$storage.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2187,10 +2338,10 @@ class Mutation$ResizeVolume { @override int get hashCode { - final l$resizeVolume = resizeVolume; + final l$storage = storage; final l$$__typename = $__typename; return Object.hashAll([ - l$resizeVolume, + l$storage, l$$__typename, ]); } @@ -2203,9 +2354,9 @@ class Mutation$ResizeVolume { if (!(other is Mutation$ResizeVolume) || runtimeType != other.runtimeType) { return false; } - final l$resizeVolume = resizeVolume; - final lOther$resizeVolume = other.resizeVolume; - if (l$resizeVolume != lOther$resizeVolume) { + final l$storage = storage; + final lOther$storage = other.storage; + if (l$storage != lOther$storage) { return false; } final l$$__typename = $__typename; @@ -2235,10 +2386,10 @@ abstract class CopyWith$Mutation$ResizeVolume { _CopyWithStubImpl$Mutation$ResizeVolume; TRes call({ - Mutation$ResizeVolume$resizeVolume? resizeVolume, + Mutation$ResizeVolume$storage? storage, String? $__typename, }); - CopyWith$Mutation$ResizeVolume$resizeVolume get resizeVolume; + CopyWith$Mutation$ResizeVolume$storage get storage; } class _CopyWithImpl$Mutation$ResizeVolume @@ -2255,22 +2406,22 @@ class _CopyWithImpl$Mutation$ResizeVolume static const _undefined = {}; TRes call({ - Object? resizeVolume = _undefined, + Object? storage = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$ResizeVolume( - resizeVolume: resizeVolume == _undefined || resizeVolume == null - ? _instance.resizeVolume - : (resizeVolume as Mutation$ResizeVolume$resizeVolume), + storage: storage == _undefined || storage == null + ? _instance.storage + : (storage as Mutation$ResizeVolume$storage), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$ResizeVolume$resizeVolume get resizeVolume { - final local$resizeVolume = _instance.resizeVolume; - return CopyWith$Mutation$ResizeVolume$resizeVolume( - local$resizeVolume, (e) => call(resizeVolume: e)); + CopyWith$Mutation$ResizeVolume$storage get storage { + final local$storage = _instance.storage; + return CopyWith$Mutation$ResizeVolume$storage( + local$storage, (e) => call(storage: e)); } } @@ -2281,13 +2432,13 @@ class _CopyWithStubImpl$Mutation$ResizeVolume TRes _res; call({ - Mutation$ResizeVolume$resizeVolume? resizeVolume, + Mutation$ResizeVolume$storage? storage, String? $__typename, }) => _res; - CopyWith$Mutation$ResizeVolume$resizeVolume get resizeVolume => - CopyWith$Mutation$ResizeVolume$resizeVolume.stub(_res); + CopyWith$Mutation$ResizeVolume$storage get storage => + CopyWith$Mutation$ResizeVolume$storage.stub(_res); } const documentNodeMutationResizeVolume = DocumentNode(definitions: [ @@ -2308,19 +2459,34 @@ const documentNodeMutationResizeVolume = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'resizeVolume'), + name: NameNode(value: 'storage'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'resizeVolume'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'name')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -2437,22 +2603,158 @@ extension ClientExtension$Mutation$ResizeVolume on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$ResizeVolume$resizeVolume +class Mutation$ResizeVolume$storage { + Mutation$ResizeVolume$storage({ + required this.resizeVolume, + this.$__typename = 'StorageMutations', + }); + + factory Mutation$ResizeVolume$storage.fromJson(Map json) { + final l$resizeVolume = json['resizeVolume']; + final l$$__typename = json['__typename']; + return Mutation$ResizeVolume$storage( + resizeVolume: Mutation$ResizeVolume$storage$resizeVolume.fromJson( + (l$resizeVolume as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$ResizeVolume$storage$resizeVolume resizeVolume; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$resizeVolume = resizeVolume; + _resultData['resizeVolume'] = l$resizeVolume.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$resizeVolume = resizeVolume; + final l$$__typename = $__typename; + return Object.hashAll([ + l$resizeVolume, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$ResizeVolume$storage) || + runtimeType != other.runtimeType) { + return false; + } + final l$resizeVolume = resizeVolume; + final lOther$resizeVolume = other.resizeVolume; + if (l$resizeVolume != lOther$resizeVolume) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$ResizeVolume$storage + on Mutation$ResizeVolume$storage { + CopyWith$Mutation$ResizeVolume$storage + get copyWith => CopyWith$Mutation$ResizeVolume$storage( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$ResizeVolume$storage { + factory CopyWith$Mutation$ResizeVolume$storage( + Mutation$ResizeVolume$storage instance, + TRes Function(Mutation$ResizeVolume$storage) then, + ) = _CopyWithImpl$Mutation$ResizeVolume$storage; + + factory CopyWith$Mutation$ResizeVolume$storage.stub(TRes res) = + _CopyWithStubImpl$Mutation$ResizeVolume$storage; + + TRes call({ + Mutation$ResizeVolume$storage$resizeVolume? resizeVolume, + String? $__typename, + }); + CopyWith$Mutation$ResizeVolume$storage$resizeVolume get resizeVolume; +} + +class _CopyWithImpl$Mutation$ResizeVolume$storage + implements CopyWith$Mutation$ResizeVolume$storage { + _CopyWithImpl$Mutation$ResizeVolume$storage( + this._instance, + this._then, + ); + + final Mutation$ResizeVolume$storage _instance; + + final TRes Function(Mutation$ResizeVolume$storage) _then; + + static const _undefined = {}; + + TRes call({ + Object? resizeVolume = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$ResizeVolume$storage( + resizeVolume: resizeVolume == _undefined || resizeVolume == null + ? _instance.resizeVolume + : (resizeVolume as Mutation$ResizeVolume$storage$resizeVolume), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$ResizeVolume$storage$resizeVolume get resizeVolume { + final local$resizeVolume = _instance.resizeVolume; + return CopyWith$Mutation$ResizeVolume$storage$resizeVolume( + local$resizeVolume, (e) => call(resizeVolume: e)); + } +} + +class _CopyWithStubImpl$Mutation$ResizeVolume$storage + implements CopyWith$Mutation$ResizeVolume$storage { + _CopyWithStubImpl$Mutation$ResizeVolume$storage(this._res); + + TRes _res; + + call({ + Mutation$ResizeVolume$storage$resizeVolume? resizeVolume, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$ResizeVolume$storage$resizeVolume get resizeVolume => + CopyWith$Mutation$ResizeVolume$storage$resizeVolume.stub(_res); +} + +class Mutation$ResizeVolume$storage$resizeVolume implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$ResizeVolume$resizeVolume({ + Mutation$ResizeVolume$storage$resizeVolume({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$ResizeVolume$resizeVolume.fromJson( + factory Mutation$ResizeVolume$storage$resizeVolume.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$ResizeVolume$resizeVolume( + return Mutation$ResizeVolume$storage$resizeVolume( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -2500,7 +2802,7 @@ class Mutation$ResizeVolume$resizeVolume if (identical(this, other)) { return true; } - if (!(other is Mutation$ResizeVolume$resizeVolume) || + if (!(other is Mutation$ResizeVolume$storage$resizeVolume) || runtimeType != other.runtimeType) { return false; } @@ -2528,24 +2830,24 @@ class Mutation$ResizeVolume$resizeVolume } } -extension UtilityExtension$Mutation$ResizeVolume$resizeVolume - on Mutation$ResizeVolume$resizeVolume { - CopyWith$Mutation$ResizeVolume$resizeVolume< - Mutation$ResizeVolume$resizeVolume> - get copyWith => CopyWith$Mutation$ResizeVolume$resizeVolume( +extension UtilityExtension$Mutation$ResizeVolume$storage$resizeVolume + on Mutation$ResizeVolume$storage$resizeVolume { + CopyWith$Mutation$ResizeVolume$storage$resizeVolume< + Mutation$ResizeVolume$storage$resizeVolume> + get copyWith => CopyWith$Mutation$ResizeVolume$storage$resizeVolume( this, (i) => i, ); } -abstract class CopyWith$Mutation$ResizeVolume$resizeVolume { - factory CopyWith$Mutation$ResizeVolume$resizeVolume( - Mutation$ResizeVolume$resizeVolume instance, - TRes Function(Mutation$ResizeVolume$resizeVolume) then, - ) = _CopyWithImpl$Mutation$ResizeVolume$resizeVolume; +abstract class CopyWith$Mutation$ResizeVolume$storage$resizeVolume { + factory CopyWith$Mutation$ResizeVolume$storage$resizeVolume( + Mutation$ResizeVolume$storage$resizeVolume instance, + TRes Function(Mutation$ResizeVolume$storage$resizeVolume) then, + ) = _CopyWithImpl$Mutation$ResizeVolume$storage$resizeVolume; - factory CopyWith$Mutation$ResizeVolume$resizeVolume.stub(TRes res) = - _CopyWithStubImpl$Mutation$ResizeVolume$resizeVolume; + factory CopyWith$Mutation$ResizeVolume$storage$resizeVolume.stub(TRes res) = + _CopyWithStubImpl$Mutation$ResizeVolume$storage$resizeVolume; TRes call({ int? code, @@ -2555,16 +2857,16 @@ abstract class CopyWith$Mutation$ResizeVolume$resizeVolume { }); } -class _CopyWithImpl$Mutation$ResizeVolume$resizeVolume - implements CopyWith$Mutation$ResizeVolume$resizeVolume { - _CopyWithImpl$Mutation$ResizeVolume$resizeVolume( +class _CopyWithImpl$Mutation$ResizeVolume$storage$resizeVolume + implements CopyWith$Mutation$ResizeVolume$storage$resizeVolume { + _CopyWithImpl$Mutation$ResizeVolume$storage$resizeVolume( this._instance, this._then, ); - final Mutation$ResizeVolume$resizeVolume _instance; + final Mutation$ResizeVolume$storage$resizeVolume _instance; - final TRes Function(Mutation$ResizeVolume$resizeVolume) _then; + final TRes Function(Mutation$ResizeVolume$storage$resizeVolume) _then; static const _undefined = {}; @@ -2574,7 +2876,7 @@ class _CopyWithImpl$Mutation$ResizeVolume$resizeVolume Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$ResizeVolume$resizeVolume( + _then(Mutation$ResizeVolume$storage$resizeVolume( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -2589,9 +2891,9 @@ class _CopyWithImpl$Mutation$ResizeVolume$resizeVolume )); } -class _CopyWithStubImpl$Mutation$ResizeVolume$resizeVolume - implements CopyWith$Mutation$ResizeVolume$resizeVolume { - _CopyWithStubImpl$Mutation$ResizeVolume$resizeVolume(this._res); +class _CopyWithStubImpl$Mutation$ResizeVolume$storage$resizeVolume + implements CopyWith$Mutation$ResizeVolume$storage$resizeVolume { + _CopyWithStubImpl$Mutation$ResizeVolume$storage$resizeVolume(this._res); TRes _res; @@ -2703,29 +3005,28 @@ class _CopyWithStubImpl$Variables$Mutation$UnmountVolume class Mutation$UnmountVolume { Mutation$UnmountVolume({ - required this.unmountVolume, + required this.storage, this.$__typename = 'Mutation', }); factory Mutation$UnmountVolume.fromJson(Map json) { - final l$unmountVolume = json['unmountVolume']; + final l$storage = json['storage']; final l$$__typename = json['__typename']; return Mutation$UnmountVolume( - unmountVolume: Mutation$UnmountVolume$unmountVolume.fromJson( - (l$unmountVolume as Map)), + storage: Mutation$UnmountVolume$storage.fromJson( + (l$storage as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `storage.unmount_volume` instead') - final Mutation$UnmountVolume$unmountVolume unmountVolume; + final Mutation$UnmountVolume$storage storage; final String $__typename; Map toJson() { final _resultData = {}; - final l$unmountVolume = unmountVolume; - _resultData['unmountVolume'] = l$unmountVolume.toJson(); + final l$storage = storage; + _resultData['storage'] = l$storage.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2733,10 +3034,10 @@ class Mutation$UnmountVolume { @override int get hashCode { - final l$unmountVolume = unmountVolume; + final l$storage = storage; final l$$__typename = $__typename; return Object.hashAll([ - l$unmountVolume, + l$storage, l$$__typename, ]); } @@ -2750,9 +3051,9 @@ class Mutation$UnmountVolume { runtimeType != other.runtimeType) { return false; } - final l$unmountVolume = unmountVolume; - final lOther$unmountVolume = other.unmountVolume; - if (l$unmountVolume != lOther$unmountVolume) { + final l$storage = storage; + final lOther$storage = other.storage; + if (l$storage != lOther$storage) { return false; } final l$$__typename = $__typename; @@ -2782,10 +3083,10 @@ abstract class CopyWith$Mutation$UnmountVolume { _CopyWithStubImpl$Mutation$UnmountVolume; TRes call({ - Mutation$UnmountVolume$unmountVolume? unmountVolume, + Mutation$UnmountVolume$storage? storage, String? $__typename, }); - CopyWith$Mutation$UnmountVolume$unmountVolume get unmountVolume; + CopyWith$Mutation$UnmountVolume$storage get storage; } class _CopyWithImpl$Mutation$UnmountVolume @@ -2802,22 +3103,22 @@ class _CopyWithImpl$Mutation$UnmountVolume static const _undefined = {}; TRes call({ - Object? unmountVolume = _undefined, + Object? storage = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$UnmountVolume( - unmountVolume: unmountVolume == _undefined || unmountVolume == null - ? _instance.unmountVolume - : (unmountVolume as Mutation$UnmountVolume$unmountVolume), + storage: storage == _undefined || storage == null + ? _instance.storage + : (storage as Mutation$UnmountVolume$storage), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$UnmountVolume$unmountVolume get unmountVolume { - final local$unmountVolume = _instance.unmountVolume; - return CopyWith$Mutation$UnmountVolume$unmountVolume( - local$unmountVolume, (e) => call(unmountVolume: e)); + CopyWith$Mutation$UnmountVolume$storage get storage { + final local$storage = _instance.storage; + return CopyWith$Mutation$UnmountVolume$storage( + local$storage, (e) => call(storage: e)); } } @@ -2828,13 +3129,13 @@ class _CopyWithStubImpl$Mutation$UnmountVolume TRes _res; call({ - Mutation$UnmountVolume$unmountVolume? unmountVolume, + Mutation$UnmountVolume$storage? storage, String? $__typename, }) => _res; - CopyWith$Mutation$UnmountVolume$unmountVolume get unmountVolume => - CopyWith$Mutation$UnmountVolume$unmountVolume.stub(_res); + CopyWith$Mutation$UnmountVolume$storage get storage => + CopyWith$Mutation$UnmountVolume$storage.stub(_res); } const documentNodeMutationUnmountVolume = DocumentNode(definitions: [ @@ -2855,19 +3156,34 @@ const documentNodeMutationUnmountVolume = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'unmountVolume'), + name: NameNode(value: 'storage'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'unmountVolume'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'name')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -2986,22 +3302,160 @@ extension ClientExtension$Mutation$UnmountVolume on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$UnmountVolume$unmountVolume +class Mutation$UnmountVolume$storage { + Mutation$UnmountVolume$storage({ + required this.unmountVolume, + this.$__typename = 'StorageMutations', + }); + + factory Mutation$UnmountVolume$storage.fromJson(Map json) { + final l$unmountVolume = json['unmountVolume']; + final l$$__typename = json['__typename']; + return Mutation$UnmountVolume$storage( + unmountVolume: Mutation$UnmountVolume$storage$unmountVolume.fromJson( + (l$unmountVolume as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$UnmountVolume$storage$unmountVolume unmountVolume; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$unmountVolume = unmountVolume; + _resultData['unmountVolume'] = l$unmountVolume.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$unmountVolume = unmountVolume; + final l$$__typename = $__typename; + return Object.hashAll([ + l$unmountVolume, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$UnmountVolume$storage) || + runtimeType != other.runtimeType) { + return false; + } + final l$unmountVolume = unmountVolume; + final lOther$unmountVolume = other.unmountVolume; + if (l$unmountVolume != lOther$unmountVolume) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$UnmountVolume$storage + on Mutation$UnmountVolume$storage { + CopyWith$Mutation$UnmountVolume$storage + get copyWith => CopyWith$Mutation$UnmountVolume$storage( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$UnmountVolume$storage { + factory CopyWith$Mutation$UnmountVolume$storage( + Mutation$UnmountVolume$storage instance, + TRes Function(Mutation$UnmountVolume$storage) then, + ) = _CopyWithImpl$Mutation$UnmountVolume$storage; + + factory CopyWith$Mutation$UnmountVolume$storage.stub(TRes res) = + _CopyWithStubImpl$Mutation$UnmountVolume$storage; + + TRes call({ + Mutation$UnmountVolume$storage$unmountVolume? unmountVolume, + String? $__typename, + }); + CopyWith$Mutation$UnmountVolume$storage$unmountVolume get unmountVolume; +} + +class _CopyWithImpl$Mutation$UnmountVolume$storage + implements CopyWith$Mutation$UnmountVolume$storage { + _CopyWithImpl$Mutation$UnmountVolume$storage( + this._instance, + this._then, + ); + + final Mutation$UnmountVolume$storage _instance; + + final TRes Function(Mutation$UnmountVolume$storage) _then; + + static const _undefined = {}; + + TRes call({ + Object? unmountVolume = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$UnmountVolume$storage( + unmountVolume: unmountVolume == _undefined || unmountVolume == null + ? _instance.unmountVolume + : (unmountVolume as Mutation$UnmountVolume$storage$unmountVolume), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$UnmountVolume$storage$unmountVolume + get unmountVolume { + final local$unmountVolume = _instance.unmountVolume; + return CopyWith$Mutation$UnmountVolume$storage$unmountVolume( + local$unmountVolume, (e) => call(unmountVolume: e)); + } +} + +class _CopyWithStubImpl$Mutation$UnmountVolume$storage + implements CopyWith$Mutation$UnmountVolume$storage { + _CopyWithStubImpl$Mutation$UnmountVolume$storage(this._res); + + TRes _res; + + call({ + Mutation$UnmountVolume$storage$unmountVolume? unmountVolume, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$UnmountVolume$storage$unmountVolume + get unmountVolume => + CopyWith$Mutation$UnmountVolume$storage$unmountVolume.stub(_res); +} + +class Mutation$UnmountVolume$storage$unmountVolume implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$UnmountVolume$unmountVolume({ + Mutation$UnmountVolume$storage$unmountVolume({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$UnmountVolume$unmountVolume.fromJson( + factory Mutation$UnmountVolume$storage$unmountVolume.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$UnmountVolume$unmountVolume( + return Mutation$UnmountVolume$storage$unmountVolume( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3049,7 +3503,7 @@ class Mutation$UnmountVolume$unmountVolume if (identical(this, other)) { return true; } - if (!(other is Mutation$UnmountVolume$unmountVolume) || + if (!(other is Mutation$UnmountVolume$storage$unmountVolume) || runtimeType != other.runtimeType) { return false; } @@ -3077,24 +3531,24 @@ class Mutation$UnmountVolume$unmountVolume } } -extension UtilityExtension$Mutation$UnmountVolume$unmountVolume - on Mutation$UnmountVolume$unmountVolume { - CopyWith$Mutation$UnmountVolume$unmountVolume< - Mutation$UnmountVolume$unmountVolume> - get copyWith => CopyWith$Mutation$UnmountVolume$unmountVolume( +extension UtilityExtension$Mutation$UnmountVolume$storage$unmountVolume + on Mutation$UnmountVolume$storage$unmountVolume { + CopyWith$Mutation$UnmountVolume$storage$unmountVolume< + Mutation$UnmountVolume$storage$unmountVolume> + get copyWith => CopyWith$Mutation$UnmountVolume$storage$unmountVolume( this, (i) => i, ); } -abstract class CopyWith$Mutation$UnmountVolume$unmountVolume { - factory CopyWith$Mutation$UnmountVolume$unmountVolume( - Mutation$UnmountVolume$unmountVolume instance, - TRes Function(Mutation$UnmountVolume$unmountVolume) then, - ) = _CopyWithImpl$Mutation$UnmountVolume$unmountVolume; +abstract class CopyWith$Mutation$UnmountVolume$storage$unmountVolume { + factory CopyWith$Mutation$UnmountVolume$storage$unmountVolume( + Mutation$UnmountVolume$storage$unmountVolume instance, + TRes Function(Mutation$UnmountVolume$storage$unmountVolume) then, + ) = _CopyWithImpl$Mutation$UnmountVolume$storage$unmountVolume; - factory CopyWith$Mutation$UnmountVolume$unmountVolume.stub(TRes res) = - _CopyWithStubImpl$Mutation$UnmountVolume$unmountVolume; + factory CopyWith$Mutation$UnmountVolume$storage$unmountVolume.stub(TRes res) = + _CopyWithStubImpl$Mutation$UnmountVolume$storage$unmountVolume; TRes call({ int? code, @@ -3104,16 +3558,16 @@ abstract class CopyWith$Mutation$UnmountVolume$unmountVolume { }); } -class _CopyWithImpl$Mutation$UnmountVolume$unmountVolume - implements CopyWith$Mutation$UnmountVolume$unmountVolume { - _CopyWithImpl$Mutation$UnmountVolume$unmountVolume( +class _CopyWithImpl$Mutation$UnmountVolume$storage$unmountVolume + implements CopyWith$Mutation$UnmountVolume$storage$unmountVolume { + _CopyWithImpl$Mutation$UnmountVolume$storage$unmountVolume( this._instance, this._then, ); - final Mutation$UnmountVolume$unmountVolume _instance; + final Mutation$UnmountVolume$storage$unmountVolume _instance; - final TRes Function(Mutation$UnmountVolume$unmountVolume) _then; + final TRes Function(Mutation$UnmountVolume$storage$unmountVolume) _then; static const _undefined = {}; @@ -3123,7 +3577,7 @@ class _CopyWithImpl$Mutation$UnmountVolume$unmountVolume Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$UnmountVolume$unmountVolume( + _then(Mutation$UnmountVolume$storage$unmountVolume( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3138,9 +3592,9 @@ class _CopyWithImpl$Mutation$UnmountVolume$unmountVolume )); } -class _CopyWithStubImpl$Mutation$UnmountVolume$unmountVolume - implements CopyWith$Mutation$UnmountVolume$unmountVolume { - _CopyWithStubImpl$Mutation$UnmountVolume$unmountVolume(this._res); +class _CopyWithStubImpl$Mutation$UnmountVolume$storage$unmountVolume + implements CopyWith$Mutation$UnmountVolume$storage$unmountVolume { + _CopyWithStubImpl$Mutation$UnmountVolume$storage$unmountVolume(this._res); TRes _res; @@ -3257,29 +3711,28 @@ class _CopyWithStubImpl$Variables$Mutation$MigrateToBinds class Mutation$MigrateToBinds { Mutation$MigrateToBinds({ - required this.migrateToBinds, + required this.storage, this.$__typename = 'Mutation', }); factory Mutation$MigrateToBinds.fromJson(Map json) { - final l$migrateToBinds = json['migrateToBinds']; + final l$storage = json['storage']; final l$$__typename = json['__typename']; return Mutation$MigrateToBinds( - migrateToBinds: Mutation$MigrateToBinds$migrateToBinds.fromJson( - (l$migrateToBinds as Map)), + storage: Mutation$MigrateToBinds$storage.fromJson( + (l$storage as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `storage.migrate_to_binds` instead') - final Mutation$MigrateToBinds$migrateToBinds migrateToBinds; + final Mutation$MigrateToBinds$storage storage; final String $__typename; Map toJson() { final _resultData = {}; - final l$migrateToBinds = migrateToBinds; - _resultData['migrateToBinds'] = l$migrateToBinds.toJson(); + final l$storage = storage; + _resultData['storage'] = l$storage.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3287,10 +3740,10 @@ class Mutation$MigrateToBinds { @override int get hashCode { - final l$migrateToBinds = migrateToBinds; + final l$storage = storage; final l$$__typename = $__typename; return Object.hashAll([ - l$migrateToBinds, + l$storage, l$$__typename, ]); } @@ -3304,9 +3757,9 @@ class Mutation$MigrateToBinds { runtimeType != other.runtimeType) { return false; } - final l$migrateToBinds = migrateToBinds; - final lOther$migrateToBinds = other.migrateToBinds; - if (l$migrateToBinds != lOther$migrateToBinds) { + final l$storage = storage; + final lOther$storage = other.storage; + if (l$storage != lOther$storage) { return false; } final l$$__typename = $__typename; @@ -3336,10 +3789,10 @@ abstract class CopyWith$Mutation$MigrateToBinds { _CopyWithStubImpl$Mutation$MigrateToBinds; TRes call({ - Mutation$MigrateToBinds$migrateToBinds? migrateToBinds, + Mutation$MigrateToBinds$storage? storage, String? $__typename, }); - CopyWith$Mutation$MigrateToBinds$migrateToBinds get migrateToBinds; + CopyWith$Mutation$MigrateToBinds$storage get storage; } class _CopyWithImpl$Mutation$MigrateToBinds @@ -3356,22 +3809,22 @@ class _CopyWithImpl$Mutation$MigrateToBinds static const _undefined = {}; TRes call({ - Object? migrateToBinds = _undefined, + Object? storage = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$MigrateToBinds( - migrateToBinds: migrateToBinds == _undefined || migrateToBinds == null - ? _instance.migrateToBinds - : (migrateToBinds as Mutation$MigrateToBinds$migrateToBinds), + storage: storage == _undefined || storage == null + ? _instance.storage + : (storage as Mutation$MigrateToBinds$storage), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$MigrateToBinds$migrateToBinds get migrateToBinds { - final local$migrateToBinds = _instance.migrateToBinds; - return CopyWith$Mutation$MigrateToBinds$migrateToBinds( - local$migrateToBinds, (e) => call(migrateToBinds: e)); + CopyWith$Mutation$MigrateToBinds$storage get storage { + final local$storage = _instance.storage; + return CopyWith$Mutation$MigrateToBinds$storage( + local$storage, (e) => call(storage: e)); } } @@ -3382,13 +3835,13 @@ class _CopyWithStubImpl$Mutation$MigrateToBinds TRes _res; call({ - Mutation$MigrateToBinds$migrateToBinds? migrateToBinds, + Mutation$MigrateToBinds$storage? storage, String? $__typename, }) => _res; - CopyWith$Mutation$MigrateToBinds$migrateToBinds get migrateToBinds => - CopyWith$Mutation$MigrateToBinds$migrateToBinds.stub(_res); + CopyWith$Mutation$MigrateToBinds$storage get storage => + CopyWith$Mutation$MigrateToBinds$storage.stub(_res); } const documentNodeMutationMigrateToBinds = DocumentNode(definitions: [ @@ -3409,30 +3862,45 @@ const documentNodeMutationMigrateToBinds = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'migrateToBinds'), + name: NameNode(value: 'storage'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: VariableNode(name: NameNode(value: 'input')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'job'), + name: NameNode(value: 'migrateToBinds'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'input'), + value: VariableNode(name: NameNode(value: 'input')), + ) + ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( - name: NameNode(value: 'basicApiJobsFields'), + name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), + FieldNode( + name: NameNode(value: 'job'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicApiJobsFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), FieldNode( name: NameNode(value: '__typename'), alias: null, @@ -3560,9 +4028,149 @@ extension ClientExtension$Mutation$MigrateToBinds on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$MigrateToBinds$migrateToBinds +class Mutation$MigrateToBinds$storage { + Mutation$MigrateToBinds$storage({ + required this.migrateToBinds, + this.$__typename = 'StorageMutations', + }); + + factory Mutation$MigrateToBinds$storage.fromJson(Map json) { + final l$migrateToBinds = json['migrateToBinds']; + final l$$__typename = json['__typename']; + return Mutation$MigrateToBinds$storage( + migrateToBinds: Mutation$MigrateToBinds$storage$migrateToBinds.fromJson( + (l$migrateToBinds as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$MigrateToBinds$storage$migrateToBinds migrateToBinds; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$migrateToBinds = migrateToBinds; + _resultData['migrateToBinds'] = l$migrateToBinds.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$migrateToBinds = migrateToBinds; + final l$$__typename = $__typename; + return Object.hashAll([ + l$migrateToBinds, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$MigrateToBinds$storage) || + runtimeType != other.runtimeType) { + return false; + } + final l$migrateToBinds = migrateToBinds; + final lOther$migrateToBinds = other.migrateToBinds; + if (l$migrateToBinds != lOther$migrateToBinds) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$MigrateToBinds$storage + on Mutation$MigrateToBinds$storage { + CopyWith$Mutation$MigrateToBinds$storage + get copyWith => CopyWith$Mutation$MigrateToBinds$storage( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$MigrateToBinds$storage { + factory CopyWith$Mutation$MigrateToBinds$storage( + Mutation$MigrateToBinds$storage instance, + TRes Function(Mutation$MigrateToBinds$storage) then, + ) = _CopyWithImpl$Mutation$MigrateToBinds$storage; + + factory CopyWith$Mutation$MigrateToBinds$storage.stub(TRes res) = + _CopyWithStubImpl$Mutation$MigrateToBinds$storage; + + TRes call({ + Mutation$MigrateToBinds$storage$migrateToBinds? migrateToBinds, + String? $__typename, + }); + CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds + get migrateToBinds; +} + +class _CopyWithImpl$Mutation$MigrateToBinds$storage + implements CopyWith$Mutation$MigrateToBinds$storage { + _CopyWithImpl$Mutation$MigrateToBinds$storage( + this._instance, + this._then, + ); + + final Mutation$MigrateToBinds$storage _instance; + + final TRes Function(Mutation$MigrateToBinds$storage) _then; + + static const _undefined = {}; + + TRes call({ + Object? migrateToBinds = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$MigrateToBinds$storage( + migrateToBinds: migrateToBinds == _undefined || migrateToBinds == null + ? _instance.migrateToBinds + : (migrateToBinds + as Mutation$MigrateToBinds$storage$migrateToBinds), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds + get migrateToBinds { + final local$migrateToBinds = _instance.migrateToBinds; + return CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds( + local$migrateToBinds, (e) => call(migrateToBinds: e)); + } +} + +class _CopyWithStubImpl$Mutation$MigrateToBinds$storage + implements CopyWith$Mutation$MigrateToBinds$storage { + _CopyWithStubImpl$Mutation$MigrateToBinds$storage(this._res); + + TRes _res; + + call({ + Mutation$MigrateToBinds$storage$migrateToBinds? migrateToBinds, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds + get migrateToBinds => + CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds.stub(_res); +} + +class Mutation$MigrateToBinds$storage$migrateToBinds implements Fragment$basicMutationReturnFields$$GenericJobMutationReturn { - Mutation$MigrateToBinds$migrateToBinds({ + Mutation$MigrateToBinds$storage$migrateToBinds({ required this.code, required this.message, required this.success, @@ -3570,14 +4178,14 @@ class Mutation$MigrateToBinds$migrateToBinds this.job, }); - factory Mutation$MigrateToBinds$migrateToBinds.fromJson( + factory Mutation$MigrateToBinds$storage$migrateToBinds.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$job = json['job']; - return Mutation$MigrateToBinds$migrateToBinds( + return Mutation$MigrateToBinds$storage$migrateToBinds( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3635,7 +4243,7 @@ class Mutation$MigrateToBinds$migrateToBinds if (identical(this, other)) { return true; } - if (!(other is Mutation$MigrateToBinds$migrateToBinds) || + if (!(other is Mutation$MigrateToBinds$storage$migrateToBinds) || runtimeType != other.runtimeType) { return false; } @@ -3668,24 +4276,25 @@ class Mutation$MigrateToBinds$migrateToBinds } } -extension UtilityExtension$Mutation$MigrateToBinds$migrateToBinds - on Mutation$MigrateToBinds$migrateToBinds { - CopyWith$Mutation$MigrateToBinds$migrateToBinds< - Mutation$MigrateToBinds$migrateToBinds> - get copyWith => CopyWith$Mutation$MigrateToBinds$migrateToBinds( +extension UtilityExtension$Mutation$MigrateToBinds$storage$migrateToBinds + on Mutation$MigrateToBinds$storage$migrateToBinds { + CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds< + Mutation$MigrateToBinds$storage$migrateToBinds> + get copyWith => CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds( this, (i) => i, ); } -abstract class CopyWith$Mutation$MigrateToBinds$migrateToBinds { - factory CopyWith$Mutation$MigrateToBinds$migrateToBinds( - Mutation$MigrateToBinds$migrateToBinds instance, - TRes Function(Mutation$MigrateToBinds$migrateToBinds) then, - ) = _CopyWithImpl$Mutation$MigrateToBinds$migrateToBinds; +abstract class CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds { + factory CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds( + Mutation$MigrateToBinds$storage$migrateToBinds instance, + TRes Function(Mutation$MigrateToBinds$storage$migrateToBinds) then, + ) = _CopyWithImpl$Mutation$MigrateToBinds$storage$migrateToBinds; - factory CopyWith$Mutation$MigrateToBinds$migrateToBinds.stub(TRes res) = - _CopyWithStubImpl$Mutation$MigrateToBinds$migrateToBinds; + factory CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds.stub( + TRes res) = + _CopyWithStubImpl$Mutation$MigrateToBinds$storage$migrateToBinds; TRes call({ int? code, @@ -3697,16 +4306,16 @@ abstract class CopyWith$Mutation$MigrateToBinds$migrateToBinds { CopyWith$Fragment$basicApiJobsFields get job; } -class _CopyWithImpl$Mutation$MigrateToBinds$migrateToBinds - implements CopyWith$Mutation$MigrateToBinds$migrateToBinds { - _CopyWithImpl$Mutation$MigrateToBinds$migrateToBinds( +class _CopyWithImpl$Mutation$MigrateToBinds$storage$migrateToBinds + implements CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds { + _CopyWithImpl$Mutation$MigrateToBinds$storage$migrateToBinds( this._instance, this._then, ); - final Mutation$MigrateToBinds$migrateToBinds _instance; + final Mutation$MigrateToBinds$storage$migrateToBinds _instance; - final TRes Function(Mutation$MigrateToBinds$migrateToBinds) _then; + final TRes Function(Mutation$MigrateToBinds$storage$migrateToBinds) _then; static const _undefined = {}; @@ -3717,7 +4326,7 @@ class _CopyWithImpl$Mutation$MigrateToBinds$migrateToBinds Object? $__typename = _undefined, Object? job = _undefined, }) => - _then(Mutation$MigrateToBinds$migrateToBinds( + _then(Mutation$MigrateToBinds$storage$migrateToBinds( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3742,9 +4351,9 @@ class _CopyWithImpl$Mutation$MigrateToBinds$migrateToBinds } } -class _CopyWithStubImpl$Mutation$MigrateToBinds$migrateToBinds - implements CopyWith$Mutation$MigrateToBinds$migrateToBinds { - _CopyWithStubImpl$Mutation$MigrateToBinds$migrateToBinds(this._res); +class _CopyWithStubImpl$Mutation$MigrateToBinds$storage$migrateToBinds + implements CopyWith$Mutation$MigrateToBinds$storage$migrateToBinds { + _CopyWithStubImpl$Mutation$MigrateToBinds$storage$migrateToBinds(this._res); TRes _res; diff --git a/lib/logic/api_maps/graphql_maps/schema/server_api.graphql b/lib/logic/api_maps/graphql_maps/schema/server_api.graphql index 631454db..05ecba97 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_api.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/server_api.graphql @@ -34,38 +34,50 @@ query GetApiJobs { } mutation RemoveJob($jobId: String!) { - removeJob(jobId: $jobId) { - ...basicMutationReturnFields + jobs { + removeJob(jobId: $jobId) { + ...basicMutationReturnFields + } } } mutation RunSystemRebuild { - runSystemRebuild { - ...basicMutationReturnFields + system { + runSystemRebuild { + ...basicMutationReturnFields + } } } mutation RunSystemRollback { - runSystemRollback { - ...basicMutationReturnFields + system { + runSystemRollback { + ...basicMutationReturnFields + } } } mutation RunSystemUpgrade { - runSystemUpgrade { - ...basicMutationReturnFields + system { + runSystemUpgrade { + ...basicMutationReturnFields + } } } mutation PullRepositoryChanges { - pullRepositoryChanges { - ...basicMutationReturnFields + system { + pullRepositoryChanges { + ...basicMutationReturnFields + } } } mutation RebootSystem { - rebootSystem { - ...basicMutationReturnFields + system { + rebootSystem { + ...basicMutationReturnFields + } } } @@ -108,48 +120,62 @@ query RecoveryKey { } mutation GetNewRecoveryApiKey($limits: RecoveryKeyLimitsInput) { - getNewRecoveryApiKey(limits: $limits) { - ...basicMutationReturnFields - key + api { + getNewRecoveryApiKey(limits: $limits) { + ...basicMutationReturnFields + key + } } } mutation UseRecoveryApiKey($input: UseRecoveryKeyInput!) { - useRecoveryApiKey(input: $input) { - ...basicMutationReturnFields - token + api { + useRecoveryApiKey(input: $input) { + ...basicMutationReturnFields + token + } } } mutation RefreshDeviceApiToken { - refreshDeviceApiToken { - ...basicMutationReturnFields - token + api { + refreshDeviceApiToken { + ...basicMutationReturnFields + token + } } } mutation DeleteDeviceApiToken($device: String!) { - deleteDeviceApiToken(device: $device) { - ...basicMutationReturnFields + api { + deleteDeviceApiToken(device: $device) { + ...basicMutationReturnFields + } } } mutation GetNewDeviceApiKey { - getNewDeviceApiKey { - ...basicMutationReturnFields - key + api { + getNewDeviceApiKey { + ...basicMutationReturnFields + key + } } } mutation InvalidateNewDeviceApiKey { - invalidateNewDeviceApiKey { - ...basicMutationReturnFields + api { + invalidateNewDeviceApiKey { + ...basicMutationReturnFields + } } } mutation AuthorizeWithNewDeviceApiKey($input: UseNewDeviceKeyInput!) { - authorizeWithNewDeviceApiKey(input: $input) { - ...basicMutationReturnFields - token + api { + authorizeWithNewDeviceApiKey(input: $input) { + ...basicMutationReturnFields + token + } } } diff --git a/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart index 431f8c49..4092829e 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart @@ -3729,29 +3729,27 @@ class _CopyWithStubImpl$Variables$Mutation$RemoveJob class Mutation$RemoveJob { Mutation$RemoveJob({ - required this.removeJob, + required this.jobs, this.$__typename = 'Mutation', }); factory Mutation$RemoveJob.fromJson(Map json) { - final l$removeJob = json['removeJob']; + final l$jobs = json['jobs']; final l$$__typename = json['__typename']; return Mutation$RemoveJob( - removeJob: Mutation$RemoveJob$removeJob.fromJson( - (l$removeJob as Map)), + jobs: Mutation$RemoveJob$jobs.fromJson((l$jobs as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `jobs.remove_job` instead') - final Mutation$RemoveJob$removeJob removeJob; + final Mutation$RemoveJob$jobs jobs; final String $__typename; Map toJson() { final _resultData = {}; - final l$removeJob = removeJob; - _resultData['removeJob'] = l$removeJob.toJson(); + final l$jobs = jobs; + _resultData['jobs'] = l$jobs.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3759,10 +3757,10 @@ class Mutation$RemoveJob { @override int get hashCode { - final l$removeJob = removeJob; + final l$jobs = jobs; final l$$__typename = $__typename; return Object.hashAll([ - l$removeJob, + l$jobs, l$$__typename, ]); } @@ -3775,9 +3773,9 @@ class Mutation$RemoveJob { if (!(other is Mutation$RemoveJob) || runtimeType != other.runtimeType) { return false; } - final l$removeJob = removeJob; - final lOther$removeJob = other.removeJob; - if (l$removeJob != lOther$removeJob) { + final l$jobs = jobs; + final lOther$jobs = other.jobs; + if (l$jobs != lOther$jobs) { return false; } final l$$__typename = $__typename; @@ -3807,10 +3805,10 @@ abstract class CopyWith$Mutation$RemoveJob { _CopyWithStubImpl$Mutation$RemoveJob; TRes call({ - Mutation$RemoveJob$removeJob? removeJob, + Mutation$RemoveJob$jobs? jobs, String? $__typename, }); - CopyWith$Mutation$RemoveJob$removeJob get removeJob; + CopyWith$Mutation$RemoveJob$jobs get jobs; } class _CopyWithImpl$Mutation$RemoveJob @@ -3827,22 +3825,21 @@ class _CopyWithImpl$Mutation$RemoveJob static const _undefined = {}; TRes call({ - Object? removeJob = _undefined, + Object? jobs = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RemoveJob( - removeJob: removeJob == _undefined || removeJob == null - ? _instance.removeJob - : (removeJob as Mutation$RemoveJob$removeJob), + jobs: jobs == _undefined || jobs == null + ? _instance.jobs + : (jobs as Mutation$RemoveJob$jobs), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RemoveJob$removeJob get removeJob { - final local$removeJob = _instance.removeJob; - return CopyWith$Mutation$RemoveJob$removeJob( - local$removeJob, (e) => call(removeJob: e)); + CopyWith$Mutation$RemoveJob$jobs get jobs { + final local$jobs = _instance.jobs; + return CopyWith$Mutation$RemoveJob$jobs(local$jobs, (e) => call(jobs: e)); } } @@ -3853,13 +3850,13 @@ class _CopyWithStubImpl$Mutation$RemoveJob TRes _res; call({ - Mutation$RemoveJob$removeJob? removeJob, + Mutation$RemoveJob$jobs? jobs, String? $__typename, }) => _res; - CopyWith$Mutation$RemoveJob$removeJob get removeJob => - CopyWith$Mutation$RemoveJob$removeJob.stub(_res); + CopyWith$Mutation$RemoveJob$jobs get jobs => + CopyWith$Mutation$RemoveJob$jobs.stub(_res); } const documentNodeMutationRemoveJob = DocumentNode(definitions: [ @@ -3880,19 +3877,34 @@ const documentNodeMutationRemoveJob = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'removeJob'), + name: NameNode(value: 'jobs'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'jobId'), - value: VariableNode(name: NameNode(value: 'jobId')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'removeJob'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'jobId'), + value: VariableNode(name: NameNode(value: 'jobId')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -4008,21 +4020,157 @@ extension ClientExtension$Mutation$RemoveJob on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$RemoveJob$removeJob +class Mutation$RemoveJob$jobs { + Mutation$RemoveJob$jobs({ + required this.removeJob, + this.$__typename = 'JobMutations', + }); + + factory Mutation$RemoveJob$jobs.fromJson(Map json) { + final l$removeJob = json['removeJob']; + final l$$__typename = json['__typename']; + return Mutation$RemoveJob$jobs( + removeJob: Mutation$RemoveJob$jobs$removeJob.fromJson( + (l$removeJob as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RemoveJob$jobs$removeJob removeJob; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$removeJob = removeJob; + _resultData['removeJob'] = l$removeJob.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$removeJob = removeJob; + final l$$__typename = $__typename; + return Object.hashAll([ + l$removeJob, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RemoveJob$jobs) || + runtimeType != other.runtimeType) { + return false; + } + final l$removeJob = removeJob; + final lOther$removeJob = other.removeJob; + if (l$removeJob != lOther$removeJob) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RemoveJob$jobs on Mutation$RemoveJob$jobs { + CopyWith$Mutation$RemoveJob$jobs get copyWith => + CopyWith$Mutation$RemoveJob$jobs( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RemoveJob$jobs { + factory CopyWith$Mutation$RemoveJob$jobs( + Mutation$RemoveJob$jobs instance, + TRes Function(Mutation$RemoveJob$jobs) then, + ) = _CopyWithImpl$Mutation$RemoveJob$jobs; + + factory CopyWith$Mutation$RemoveJob$jobs.stub(TRes res) = + _CopyWithStubImpl$Mutation$RemoveJob$jobs; + + TRes call({ + Mutation$RemoveJob$jobs$removeJob? removeJob, + String? $__typename, + }); + CopyWith$Mutation$RemoveJob$jobs$removeJob get removeJob; +} + +class _CopyWithImpl$Mutation$RemoveJob$jobs + implements CopyWith$Mutation$RemoveJob$jobs { + _CopyWithImpl$Mutation$RemoveJob$jobs( + this._instance, + this._then, + ); + + final Mutation$RemoveJob$jobs _instance; + + final TRes Function(Mutation$RemoveJob$jobs) _then; + + static const _undefined = {}; + + TRes call({ + Object? removeJob = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RemoveJob$jobs( + removeJob: removeJob == _undefined || removeJob == null + ? _instance.removeJob + : (removeJob as Mutation$RemoveJob$jobs$removeJob), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RemoveJob$jobs$removeJob get removeJob { + final local$removeJob = _instance.removeJob; + return CopyWith$Mutation$RemoveJob$jobs$removeJob( + local$removeJob, (e) => call(removeJob: e)); + } +} + +class _CopyWithStubImpl$Mutation$RemoveJob$jobs + implements CopyWith$Mutation$RemoveJob$jobs { + _CopyWithStubImpl$Mutation$RemoveJob$jobs(this._res); + + TRes _res; + + call({ + Mutation$RemoveJob$jobs$removeJob? removeJob, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RemoveJob$jobs$removeJob get removeJob => + CopyWith$Mutation$RemoveJob$jobs$removeJob.stub(_res); +} + +class Mutation$RemoveJob$jobs$removeJob implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$RemoveJob$removeJob({ + Mutation$RemoveJob$jobs$removeJob({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$RemoveJob$removeJob.fromJson(Map json) { + factory Mutation$RemoveJob$jobs$removeJob.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$RemoveJob$removeJob( + return Mutation$RemoveJob$jobs$removeJob( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -4070,7 +4218,7 @@ class Mutation$RemoveJob$removeJob if (identical(this, other)) { return true; } - if (!(other is Mutation$RemoveJob$removeJob) || + if (!(other is Mutation$RemoveJob$jobs$removeJob) || runtimeType != other.runtimeType) { return false; } @@ -4098,23 +4246,23 @@ class Mutation$RemoveJob$removeJob } } -extension UtilityExtension$Mutation$RemoveJob$removeJob - on Mutation$RemoveJob$removeJob { - CopyWith$Mutation$RemoveJob$removeJob - get copyWith => CopyWith$Mutation$RemoveJob$removeJob( +extension UtilityExtension$Mutation$RemoveJob$jobs$removeJob + on Mutation$RemoveJob$jobs$removeJob { + CopyWith$Mutation$RemoveJob$jobs$removeJob + get copyWith => CopyWith$Mutation$RemoveJob$jobs$removeJob( this, (i) => i, ); } -abstract class CopyWith$Mutation$RemoveJob$removeJob { - factory CopyWith$Mutation$RemoveJob$removeJob( - Mutation$RemoveJob$removeJob instance, - TRes Function(Mutation$RemoveJob$removeJob) then, - ) = _CopyWithImpl$Mutation$RemoveJob$removeJob; +abstract class CopyWith$Mutation$RemoveJob$jobs$removeJob { + factory CopyWith$Mutation$RemoveJob$jobs$removeJob( + Mutation$RemoveJob$jobs$removeJob instance, + TRes Function(Mutation$RemoveJob$jobs$removeJob) then, + ) = _CopyWithImpl$Mutation$RemoveJob$jobs$removeJob; - factory CopyWith$Mutation$RemoveJob$removeJob.stub(TRes res) = - _CopyWithStubImpl$Mutation$RemoveJob$removeJob; + factory CopyWith$Mutation$RemoveJob$jobs$removeJob.stub(TRes res) = + _CopyWithStubImpl$Mutation$RemoveJob$jobs$removeJob; TRes call({ int? code, @@ -4124,16 +4272,16 @@ abstract class CopyWith$Mutation$RemoveJob$removeJob { }); } -class _CopyWithImpl$Mutation$RemoveJob$removeJob - implements CopyWith$Mutation$RemoveJob$removeJob { - _CopyWithImpl$Mutation$RemoveJob$removeJob( +class _CopyWithImpl$Mutation$RemoveJob$jobs$removeJob + implements CopyWith$Mutation$RemoveJob$jobs$removeJob { + _CopyWithImpl$Mutation$RemoveJob$jobs$removeJob( this._instance, this._then, ); - final Mutation$RemoveJob$removeJob _instance; + final Mutation$RemoveJob$jobs$removeJob _instance; - final TRes Function(Mutation$RemoveJob$removeJob) _then; + final TRes Function(Mutation$RemoveJob$jobs$removeJob) _then; static const _undefined = {}; @@ -4143,7 +4291,7 @@ class _CopyWithImpl$Mutation$RemoveJob$removeJob Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$RemoveJob$removeJob( + _then(Mutation$RemoveJob$jobs$removeJob( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -4158,9 +4306,9 @@ class _CopyWithImpl$Mutation$RemoveJob$removeJob )); } -class _CopyWithStubImpl$Mutation$RemoveJob$removeJob - implements CopyWith$Mutation$RemoveJob$removeJob { - _CopyWithStubImpl$Mutation$RemoveJob$removeJob(this._res); +class _CopyWithStubImpl$Mutation$RemoveJob$jobs$removeJob + implements CopyWith$Mutation$RemoveJob$jobs$removeJob { + _CopyWithStubImpl$Mutation$RemoveJob$jobs$removeJob(this._res); TRes _res; @@ -4175,29 +4323,28 @@ class _CopyWithStubImpl$Mutation$RemoveJob$removeJob class Mutation$RunSystemRebuild { Mutation$RunSystemRebuild({ - required this.runSystemRebuild, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$RunSystemRebuild.fromJson(Map json) { - final l$runSystemRebuild = json['runSystemRebuild']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$RunSystemRebuild( - runSystemRebuild: Mutation$RunSystemRebuild$runSystemRebuild.fromJson( - (l$runSystemRebuild as Map)), + system: Mutation$RunSystemRebuild$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.run_system_rebuild` instead') - final Mutation$RunSystemRebuild$runSystemRebuild runSystemRebuild; + final Mutation$RunSystemRebuild$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$runSystemRebuild = runSystemRebuild; - _resultData['runSystemRebuild'] = l$runSystemRebuild.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -4205,10 +4352,10 @@ class Mutation$RunSystemRebuild { @override int get hashCode { - final l$runSystemRebuild = runSystemRebuild; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$runSystemRebuild, + l$system, l$$__typename, ]); } @@ -4222,9 +4369,9 @@ class Mutation$RunSystemRebuild { runtimeType != other.runtimeType) { return false; } - final l$runSystemRebuild = runSystemRebuild; - final lOther$runSystemRebuild = other.runSystemRebuild; - if (l$runSystemRebuild != lOther$runSystemRebuild) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -4255,11 +4402,10 @@ abstract class CopyWith$Mutation$RunSystemRebuild { _CopyWithStubImpl$Mutation$RunSystemRebuild; TRes call({ - Mutation$RunSystemRebuild$runSystemRebuild? runSystemRebuild, + Mutation$RunSystemRebuild$system? system, String? $__typename, }); - CopyWith$Mutation$RunSystemRebuild$runSystemRebuild - get runSystemRebuild; + CopyWith$Mutation$RunSystemRebuild$system get system; } class _CopyWithImpl$Mutation$RunSystemRebuild @@ -4276,24 +4422,22 @@ class _CopyWithImpl$Mutation$RunSystemRebuild static const _undefined = {}; TRes call({ - Object? runSystemRebuild = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemRebuild( - runSystemRebuild: runSystemRebuild == _undefined || - runSystemRebuild == null - ? _instance.runSystemRebuild - : (runSystemRebuild as Mutation$RunSystemRebuild$runSystemRebuild), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$RunSystemRebuild$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RunSystemRebuild$runSystemRebuild - get runSystemRebuild { - final local$runSystemRebuild = _instance.runSystemRebuild; - return CopyWith$Mutation$RunSystemRebuild$runSystemRebuild( - local$runSystemRebuild, (e) => call(runSystemRebuild: e)); + CopyWith$Mutation$RunSystemRebuild$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$RunSystemRebuild$system( + local$system, (e) => call(system: e)); } } @@ -4304,14 +4448,13 @@ class _CopyWithStubImpl$Mutation$RunSystemRebuild TRes _res; call({ - Mutation$RunSystemRebuild$runSystemRebuild? runSystemRebuild, + Mutation$RunSystemRebuild$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$RunSystemRebuild$runSystemRebuild - get runSystemRebuild => - CopyWith$Mutation$RunSystemRebuild$runSystemRebuild.stub(_res); + CopyWith$Mutation$RunSystemRebuild$system get system => + CopyWith$Mutation$RunSystemRebuild$system.stub(_res); } const documentNodeMutationRunSystemRebuild = DocumentNode(definitions: [ @@ -4322,14 +4465,29 @@ const documentNodeMutationRunSystemRebuild = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'runSystemRebuild'), + name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'runSystemRebuild'), + alias: null, + arguments: [], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -4446,22 +4604,164 @@ extension ClientExtension$Mutation$RunSystemRebuild on graphql.GraphQLClient { this.watchMutation(options ?? WatchOptions$Mutation$RunSystemRebuild()); } -class Mutation$RunSystemRebuild$runSystemRebuild +class Mutation$RunSystemRebuild$system { + Mutation$RunSystemRebuild$system({ + required this.runSystemRebuild, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$RunSystemRebuild$system.fromJson(Map json) { + final l$runSystemRebuild = json['runSystemRebuild']; + final l$$__typename = json['__typename']; + return Mutation$RunSystemRebuild$system( + runSystemRebuild: + Mutation$RunSystemRebuild$system$runSystemRebuild.fromJson( + (l$runSystemRebuild as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RunSystemRebuild$system$runSystemRebuild runSystemRebuild; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$runSystemRebuild = runSystemRebuild; + _resultData['runSystemRebuild'] = l$runSystemRebuild.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$runSystemRebuild = runSystemRebuild; + final l$$__typename = $__typename; + return Object.hashAll([ + l$runSystemRebuild, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RunSystemRebuild$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$runSystemRebuild = runSystemRebuild; + final lOther$runSystemRebuild = other.runSystemRebuild; + if (l$runSystemRebuild != lOther$runSystemRebuild) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RunSystemRebuild$system + on Mutation$RunSystemRebuild$system { + CopyWith$Mutation$RunSystemRebuild$system + get copyWith => CopyWith$Mutation$RunSystemRebuild$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RunSystemRebuild$system { + factory CopyWith$Mutation$RunSystemRebuild$system( + Mutation$RunSystemRebuild$system instance, + TRes Function(Mutation$RunSystemRebuild$system) then, + ) = _CopyWithImpl$Mutation$RunSystemRebuild$system; + + factory CopyWith$Mutation$RunSystemRebuild$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$RunSystemRebuild$system; + + TRes call({ + Mutation$RunSystemRebuild$system$runSystemRebuild? runSystemRebuild, + String? $__typename, + }); + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild + get runSystemRebuild; +} + +class _CopyWithImpl$Mutation$RunSystemRebuild$system + implements CopyWith$Mutation$RunSystemRebuild$system { + _CopyWithImpl$Mutation$RunSystemRebuild$system( + this._instance, + this._then, + ); + + final Mutation$RunSystemRebuild$system _instance; + + final TRes Function(Mutation$RunSystemRebuild$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? runSystemRebuild = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RunSystemRebuild$system( + runSystemRebuild: + runSystemRebuild == _undefined || runSystemRebuild == null + ? _instance.runSystemRebuild + : (runSystemRebuild + as Mutation$RunSystemRebuild$system$runSystemRebuild), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild + get runSystemRebuild { + final local$runSystemRebuild = _instance.runSystemRebuild; + return CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild( + local$runSystemRebuild, (e) => call(runSystemRebuild: e)); + } +} + +class _CopyWithStubImpl$Mutation$RunSystemRebuild$system + implements CopyWith$Mutation$RunSystemRebuild$system { + _CopyWithStubImpl$Mutation$RunSystemRebuild$system(this._res); + + TRes _res; + + call({ + Mutation$RunSystemRebuild$system$runSystemRebuild? runSystemRebuild, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild + get runSystemRebuild => + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild.stub(_res); +} + +class Mutation$RunSystemRebuild$system$runSystemRebuild implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$RunSystemRebuild$runSystemRebuild({ + Mutation$RunSystemRebuild$system$runSystemRebuild({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$RunSystemRebuild$runSystemRebuild.fromJson( + factory Mutation$RunSystemRebuild$system$runSystemRebuild.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$RunSystemRebuild$runSystemRebuild( + return Mutation$RunSystemRebuild$system$runSystemRebuild( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -4509,7 +4809,7 @@ class Mutation$RunSystemRebuild$runSystemRebuild if (identical(this, other)) { return true; } - if (!(other is Mutation$RunSystemRebuild$runSystemRebuild) || + if (!(other is Mutation$RunSystemRebuild$system$runSystemRebuild) || runtimeType != other.runtimeType) { return false; } @@ -4537,24 +4837,27 @@ class Mutation$RunSystemRebuild$runSystemRebuild } } -extension UtilityExtension$Mutation$RunSystemRebuild$runSystemRebuild - on Mutation$RunSystemRebuild$runSystemRebuild { - CopyWith$Mutation$RunSystemRebuild$runSystemRebuild< - Mutation$RunSystemRebuild$runSystemRebuild> - get copyWith => CopyWith$Mutation$RunSystemRebuild$runSystemRebuild( +extension UtilityExtension$Mutation$RunSystemRebuild$system$runSystemRebuild + on Mutation$RunSystemRebuild$system$runSystemRebuild { + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild< + Mutation$RunSystemRebuild$system$runSystemRebuild> + get copyWith => + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild( this, (i) => i, ); } -abstract class CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { - factory CopyWith$Mutation$RunSystemRebuild$runSystemRebuild( - Mutation$RunSystemRebuild$runSystemRebuild instance, - TRes Function(Mutation$RunSystemRebuild$runSystemRebuild) then, - ) = _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild; +abstract class CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild< + TRes> { + factory CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild( + Mutation$RunSystemRebuild$system$runSystemRebuild instance, + TRes Function(Mutation$RunSystemRebuild$system$runSystemRebuild) then, + ) = _CopyWithImpl$Mutation$RunSystemRebuild$system$runSystemRebuild; - factory CopyWith$Mutation$RunSystemRebuild$runSystemRebuild.stub(TRes res) = - _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild; + factory CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild.stub( + TRes res) = + _CopyWithStubImpl$Mutation$RunSystemRebuild$system$runSystemRebuild; TRes call({ int? code, @@ -4564,16 +4867,17 @@ abstract class CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { }); } -class _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild - implements CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { - _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild( +class _CopyWithImpl$Mutation$RunSystemRebuild$system$runSystemRebuild + implements + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild { + _CopyWithImpl$Mutation$RunSystemRebuild$system$runSystemRebuild( this._instance, this._then, ); - final Mutation$RunSystemRebuild$runSystemRebuild _instance; + final Mutation$RunSystemRebuild$system$runSystemRebuild _instance; - final TRes Function(Mutation$RunSystemRebuild$runSystemRebuild) _then; + final TRes Function(Mutation$RunSystemRebuild$system$runSystemRebuild) _then; static const _undefined = {}; @@ -4583,7 +4887,7 @@ class _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$RunSystemRebuild$runSystemRebuild( + _then(Mutation$RunSystemRebuild$system$runSystemRebuild( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -4598,9 +4902,11 @@ class _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild )); } -class _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild - implements CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { - _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild(this._res); +class _CopyWithStubImpl$Mutation$RunSystemRebuild$system$runSystemRebuild + implements + CopyWith$Mutation$RunSystemRebuild$system$runSystemRebuild { + _CopyWithStubImpl$Mutation$RunSystemRebuild$system$runSystemRebuild( + this._res); TRes _res; @@ -4615,29 +4921,28 @@ class _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild class Mutation$RunSystemRollback { Mutation$RunSystemRollback({ - required this.runSystemRollback, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$RunSystemRollback.fromJson(Map json) { - final l$runSystemRollback = json['runSystemRollback']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$RunSystemRollback( - runSystemRollback: Mutation$RunSystemRollback$runSystemRollback.fromJson( - (l$runSystemRollback as Map)), + system: Mutation$RunSystemRollback$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.run_system_rollback` instead') - final Mutation$RunSystemRollback$runSystemRollback runSystemRollback; + final Mutation$RunSystemRollback$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$runSystemRollback = runSystemRollback; - _resultData['runSystemRollback'] = l$runSystemRollback.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -4645,10 +4950,10 @@ class Mutation$RunSystemRollback { @override int get hashCode { - final l$runSystemRollback = runSystemRollback; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$runSystemRollback, + l$system, l$$__typename, ]); } @@ -4662,9 +4967,9 @@ class Mutation$RunSystemRollback { runtimeType != other.runtimeType) { return false; } - final l$runSystemRollback = runSystemRollback; - final lOther$runSystemRollback = other.runSystemRollback; - if (l$runSystemRollback != lOther$runSystemRollback) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -4695,11 +5000,10 @@ abstract class CopyWith$Mutation$RunSystemRollback { _CopyWithStubImpl$Mutation$RunSystemRollback; TRes call({ - Mutation$RunSystemRollback$runSystemRollback? runSystemRollback, + Mutation$RunSystemRollback$system? system, String? $__typename, }); - CopyWith$Mutation$RunSystemRollback$runSystemRollback - get runSystemRollback; + CopyWith$Mutation$RunSystemRollback$system get system; } class _CopyWithImpl$Mutation$RunSystemRollback @@ -4716,25 +5020,22 @@ class _CopyWithImpl$Mutation$RunSystemRollback static const _undefined = {}; TRes call({ - Object? runSystemRollback = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemRollback( - runSystemRollback: - runSystemRollback == _undefined || runSystemRollback == null - ? _instance.runSystemRollback - : (runSystemRollback - as Mutation$RunSystemRollback$runSystemRollback), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$RunSystemRollback$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RunSystemRollback$runSystemRollback - get runSystemRollback { - final local$runSystemRollback = _instance.runSystemRollback; - return CopyWith$Mutation$RunSystemRollback$runSystemRollback( - local$runSystemRollback, (e) => call(runSystemRollback: e)); + CopyWith$Mutation$RunSystemRollback$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$RunSystemRollback$system( + local$system, (e) => call(system: e)); } } @@ -4745,14 +5046,13 @@ class _CopyWithStubImpl$Mutation$RunSystemRollback TRes _res; call({ - Mutation$RunSystemRollback$runSystemRollback? runSystemRollback, + Mutation$RunSystemRollback$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$RunSystemRollback$runSystemRollback - get runSystemRollback => - CopyWith$Mutation$RunSystemRollback$runSystemRollback.stub(_res); + CopyWith$Mutation$RunSystemRollback$system get system => + CopyWith$Mutation$RunSystemRollback$system.stub(_res); } const documentNodeMutationRunSystemRollback = DocumentNode(definitions: [ @@ -4763,14 +5063,29 @@ const documentNodeMutationRunSystemRollback = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'runSystemRollback'), + name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'runSystemRollback'), + alias: null, + arguments: [], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -4888,22 +5203,166 @@ extension ClientExtension$Mutation$RunSystemRollback on graphql.GraphQLClient { this.watchMutation(options ?? WatchOptions$Mutation$RunSystemRollback()); } -class Mutation$RunSystemRollback$runSystemRollback +class Mutation$RunSystemRollback$system { + Mutation$RunSystemRollback$system({ + required this.runSystemRollback, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$RunSystemRollback$system.fromJson( + Map json) { + final l$runSystemRollback = json['runSystemRollback']; + final l$$__typename = json['__typename']; + return Mutation$RunSystemRollback$system( + runSystemRollback: + Mutation$RunSystemRollback$system$runSystemRollback.fromJson( + (l$runSystemRollback as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RunSystemRollback$system$runSystemRollback runSystemRollback; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$runSystemRollback = runSystemRollback; + _resultData['runSystemRollback'] = l$runSystemRollback.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$runSystemRollback = runSystemRollback; + final l$$__typename = $__typename; + return Object.hashAll([ + l$runSystemRollback, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RunSystemRollback$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$runSystemRollback = runSystemRollback; + final lOther$runSystemRollback = other.runSystemRollback; + if (l$runSystemRollback != lOther$runSystemRollback) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RunSystemRollback$system + on Mutation$RunSystemRollback$system { + CopyWith$Mutation$RunSystemRollback$system + get copyWith => CopyWith$Mutation$RunSystemRollback$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RunSystemRollback$system { + factory CopyWith$Mutation$RunSystemRollback$system( + Mutation$RunSystemRollback$system instance, + TRes Function(Mutation$RunSystemRollback$system) then, + ) = _CopyWithImpl$Mutation$RunSystemRollback$system; + + factory CopyWith$Mutation$RunSystemRollback$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$RunSystemRollback$system; + + TRes call({ + Mutation$RunSystemRollback$system$runSystemRollback? runSystemRollback, + String? $__typename, + }); + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback + get runSystemRollback; +} + +class _CopyWithImpl$Mutation$RunSystemRollback$system + implements CopyWith$Mutation$RunSystemRollback$system { + _CopyWithImpl$Mutation$RunSystemRollback$system( + this._instance, + this._then, + ); + + final Mutation$RunSystemRollback$system _instance; + + final TRes Function(Mutation$RunSystemRollback$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? runSystemRollback = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RunSystemRollback$system( + runSystemRollback: + runSystemRollback == _undefined || runSystemRollback == null + ? _instance.runSystemRollback + : (runSystemRollback + as Mutation$RunSystemRollback$system$runSystemRollback), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback + get runSystemRollback { + final local$runSystemRollback = _instance.runSystemRollback; + return CopyWith$Mutation$RunSystemRollback$system$runSystemRollback( + local$runSystemRollback, (e) => call(runSystemRollback: e)); + } +} + +class _CopyWithStubImpl$Mutation$RunSystemRollback$system + implements CopyWith$Mutation$RunSystemRollback$system { + _CopyWithStubImpl$Mutation$RunSystemRollback$system(this._res); + + TRes _res; + + call({ + Mutation$RunSystemRollback$system$runSystemRollback? runSystemRollback, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback + get runSystemRollback => + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback.stub( + _res); +} + +class Mutation$RunSystemRollback$system$runSystemRollback implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$RunSystemRollback$runSystemRollback({ + Mutation$RunSystemRollback$system$runSystemRollback({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$RunSystemRollback$runSystemRollback.fromJson( + factory Mutation$RunSystemRollback$system$runSystemRollback.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$RunSystemRollback$runSystemRollback( + return Mutation$RunSystemRollback$system$runSystemRollback( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -4951,7 +5410,7 @@ class Mutation$RunSystemRollback$runSystemRollback if (identical(this, other)) { return true; } - if (!(other is Mutation$RunSystemRollback$runSystemRollback) || + if (!(other is Mutation$RunSystemRollback$system$runSystemRollback) || runtimeType != other.runtimeType) { return false; } @@ -4979,24 +5438,27 @@ class Mutation$RunSystemRollback$runSystemRollback } } -extension UtilityExtension$Mutation$RunSystemRollback$runSystemRollback - on Mutation$RunSystemRollback$runSystemRollback { - CopyWith$Mutation$RunSystemRollback$runSystemRollback< - Mutation$RunSystemRollback$runSystemRollback> - get copyWith => CopyWith$Mutation$RunSystemRollback$runSystemRollback( +extension UtilityExtension$Mutation$RunSystemRollback$system$runSystemRollback + on Mutation$RunSystemRollback$system$runSystemRollback { + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback< + Mutation$RunSystemRollback$system$runSystemRollback> + get copyWith => + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback( this, (i) => i, ); } -abstract class CopyWith$Mutation$RunSystemRollback$runSystemRollback { - factory CopyWith$Mutation$RunSystemRollback$runSystemRollback( - Mutation$RunSystemRollback$runSystemRollback instance, - TRes Function(Mutation$RunSystemRollback$runSystemRollback) then, - ) = _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback; +abstract class CopyWith$Mutation$RunSystemRollback$system$runSystemRollback< + TRes> { + factory CopyWith$Mutation$RunSystemRollback$system$runSystemRollback( + Mutation$RunSystemRollback$system$runSystemRollback instance, + TRes Function(Mutation$RunSystemRollback$system$runSystemRollback) then, + ) = _CopyWithImpl$Mutation$RunSystemRollback$system$runSystemRollback; - factory CopyWith$Mutation$RunSystemRollback$runSystemRollback.stub(TRes res) = - _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback; + factory CopyWith$Mutation$RunSystemRollback$system$runSystemRollback.stub( + TRes res) = + _CopyWithStubImpl$Mutation$RunSystemRollback$system$runSystemRollback; TRes call({ int? code, @@ -5006,16 +5468,18 @@ abstract class CopyWith$Mutation$RunSystemRollback$runSystemRollback { }); } -class _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback - implements CopyWith$Mutation$RunSystemRollback$runSystemRollback { - _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback( +class _CopyWithImpl$Mutation$RunSystemRollback$system$runSystemRollback + implements + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback { + _CopyWithImpl$Mutation$RunSystemRollback$system$runSystemRollback( this._instance, this._then, ); - final Mutation$RunSystemRollback$runSystemRollback _instance; + final Mutation$RunSystemRollback$system$runSystemRollback _instance; - final TRes Function(Mutation$RunSystemRollback$runSystemRollback) _then; + final TRes Function(Mutation$RunSystemRollback$system$runSystemRollback) + _then; static const _undefined = {}; @@ -5025,7 +5489,7 @@ class _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$RunSystemRollback$runSystemRollback( + _then(Mutation$RunSystemRollback$system$runSystemRollback( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -5040,9 +5504,12 @@ class _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback )); } -class _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback - implements CopyWith$Mutation$RunSystemRollback$runSystemRollback { - _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback(this._res); +class _CopyWithStubImpl$Mutation$RunSystemRollback$system$runSystemRollback< + TRes> + implements + CopyWith$Mutation$RunSystemRollback$system$runSystemRollback { + _CopyWithStubImpl$Mutation$RunSystemRollback$system$runSystemRollback( + this._res); TRes _res; @@ -5057,29 +5524,28 @@ class _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback class Mutation$RunSystemUpgrade { Mutation$RunSystemUpgrade({ - required this.runSystemUpgrade, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$RunSystemUpgrade.fromJson(Map json) { - final l$runSystemUpgrade = json['runSystemUpgrade']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$RunSystemUpgrade( - runSystemUpgrade: Mutation$RunSystemUpgrade$runSystemUpgrade.fromJson( - (l$runSystemUpgrade as Map)), + system: Mutation$RunSystemUpgrade$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.run_system_upgrade` instead') - final Mutation$RunSystemUpgrade$runSystemUpgrade runSystemUpgrade; + final Mutation$RunSystemUpgrade$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$runSystemUpgrade = runSystemUpgrade; - _resultData['runSystemUpgrade'] = l$runSystemUpgrade.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -5087,10 +5553,10 @@ class Mutation$RunSystemUpgrade { @override int get hashCode { - final l$runSystemUpgrade = runSystemUpgrade; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$runSystemUpgrade, + l$system, l$$__typename, ]); } @@ -5104,9 +5570,9 @@ class Mutation$RunSystemUpgrade { runtimeType != other.runtimeType) { return false; } - final l$runSystemUpgrade = runSystemUpgrade; - final lOther$runSystemUpgrade = other.runSystemUpgrade; - if (l$runSystemUpgrade != lOther$runSystemUpgrade) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -5137,11 +5603,10 @@ abstract class CopyWith$Mutation$RunSystemUpgrade { _CopyWithStubImpl$Mutation$RunSystemUpgrade; TRes call({ - Mutation$RunSystemUpgrade$runSystemUpgrade? runSystemUpgrade, + Mutation$RunSystemUpgrade$system? system, String? $__typename, }); - CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade - get runSystemUpgrade; + CopyWith$Mutation$RunSystemUpgrade$system get system; } class _CopyWithImpl$Mutation$RunSystemUpgrade @@ -5158,24 +5623,22 @@ class _CopyWithImpl$Mutation$RunSystemUpgrade static const _undefined = {}; TRes call({ - Object? runSystemUpgrade = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemUpgrade( - runSystemUpgrade: runSystemUpgrade == _undefined || - runSystemUpgrade == null - ? _instance.runSystemUpgrade - : (runSystemUpgrade as Mutation$RunSystemUpgrade$runSystemUpgrade), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$RunSystemUpgrade$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade - get runSystemUpgrade { - final local$runSystemUpgrade = _instance.runSystemUpgrade; - return CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade( - local$runSystemUpgrade, (e) => call(runSystemUpgrade: e)); + CopyWith$Mutation$RunSystemUpgrade$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$RunSystemUpgrade$system( + local$system, (e) => call(system: e)); } } @@ -5186,14 +5649,13 @@ class _CopyWithStubImpl$Mutation$RunSystemUpgrade TRes _res; call({ - Mutation$RunSystemUpgrade$runSystemUpgrade? runSystemUpgrade, + Mutation$RunSystemUpgrade$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade - get runSystemUpgrade => - CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade.stub(_res); + CopyWith$Mutation$RunSystemUpgrade$system get system => + CopyWith$Mutation$RunSystemUpgrade$system.stub(_res); } const documentNodeMutationRunSystemUpgrade = DocumentNode(definitions: [ @@ -5204,14 +5666,29 @@ const documentNodeMutationRunSystemUpgrade = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'runSystemUpgrade'), + name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'runSystemUpgrade'), + alias: null, + arguments: [], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -5328,22 +5805,164 @@ extension ClientExtension$Mutation$RunSystemUpgrade on graphql.GraphQLClient { this.watchMutation(options ?? WatchOptions$Mutation$RunSystemUpgrade()); } -class Mutation$RunSystemUpgrade$runSystemUpgrade +class Mutation$RunSystemUpgrade$system { + Mutation$RunSystemUpgrade$system({ + required this.runSystemUpgrade, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$RunSystemUpgrade$system.fromJson(Map json) { + final l$runSystemUpgrade = json['runSystemUpgrade']; + final l$$__typename = json['__typename']; + return Mutation$RunSystemUpgrade$system( + runSystemUpgrade: + Mutation$RunSystemUpgrade$system$runSystemUpgrade.fromJson( + (l$runSystemUpgrade as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RunSystemUpgrade$system$runSystemUpgrade runSystemUpgrade; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$runSystemUpgrade = runSystemUpgrade; + _resultData['runSystemUpgrade'] = l$runSystemUpgrade.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$runSystemUpgrade = runSystemUpgrade; + final l$$__typename = $__typename; + return Object.hashAll([ + l$runSystemUpgrade, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RunSystemUpgrade$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$runSystemUpgrade = runSystemUpgrade; + final lOther$runSystemUpgrade = other.runSystemUpgrade; + if (l$runSystemUpgrade != lOther$runSystemUpgrade) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RunSystemUpgrade$system + on Mutation$RunSystemUpgrade$system { + CopyWith$Mutation$RunSystemUpgrade$system + get copyWith => CopyWith$Mutation$RunSystemUpgrade$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RunSystemUpgrade$system { + factory CopyWith$Mutation$RunSystemUpgrade$system( + Mutation$RunSystemUpgrade$system instance, + TRes Function(Mutation$RunSystemUpgrade$system) then, + ) = _CopyWithImpl$Mutation$RunSystemUpgrade$system; + + factory CopyWith$Mutation$RunSystemUpgrade$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$RunSystemUpgrade$system; + + TRes call({ + Mutation$RunSystemUpgrade$system$runSystemUpgrade? runSystemUpgrade, + String? $__typename, + }); + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade + get runSystemUpgrade; +} + +class _CopyWithImpl$Mutation$RunSystemUpgrade$system + implements CopyWith$Mutation$RunSystemUpgrade$system { + _CopyWithImpl$Mutation$RunSystemUpgrade$system( + this._instance, + this._then, + ); + + final Mutation$RunSystemUpgrade$system _instance; + + final TRes Function(Mutation$RunSystemUpgrade$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? runSystemUpgrade = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RunSystemUpgrade$system( + runSystemUpgrade: + runSystemUpgrade == _undefined || runSystemUpgrade == null + ? _instance.runSystemUpgrade + : (runSystemUpgrade + as Mutation$RunSystemUpgrade$system$runSystemUpgrade), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade + get runSystemUpgrade { + final local$runSystemUpgrade = _instance.runSystemUpgrade; + return CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade( + local$runSystemUpgrade, (e) => call(runSystemUpgrade: e)); + } +} + +class _CopyWithStubImpl$Mutation$RunSystemUpgrade$system + implements CopyWith$Mutation$RunSystemUpgrade$system { + _CopyWithStubImpl$Mutation$RunSystemUpgrade$system(this._res); + + TRes _res; + + call({ + Mutation$RunSystemUpgrade$system$runSystemUpgrade? runSystemUpgrade, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade + get runSystemUpgrade => + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade.stub(_res); +} + +class Mutation$RunSystemUpgrade$system$runSystemUpgrade implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$RunSystemUpgrade$runSystemUpgrade({ + Mutation$RunSystemUpgrade$system$runSystemUpgrade({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$RunSystemUpgrade$runSystemUpgrade.fromJson( + factory Mutation$RunSystemUpgrade$system$runSystemUpgrade.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$RunSystemUpgrade$runSystemUpgrade( + return Mutation$RunSystemUpgrade$system$runSystemUpgrade( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -5391,7 +6010,7 @@ class Mutation$RunSystemUpgrade$runSystemUpgrade if (identical(this, other)) { return true; } - if (!(other is Mutation$RunSystemUpgrade$runSystemUpgrade) || + if (!(other is Mutation$RunSystemUpgrade$system$runSystemUpgrade) || runtimeType != other.runtimeType) { return false; } @@ -5419,24 +6038,27 @@ class Mutation$RunSystemUpgrade$runSystemUpgrade } } -extension UtilityExtension$Mutation$RunSystemUpgrade$runSystemUpgrade - on Mutation$RunSystemUpgrade$runSystemUpgrade { - CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade< - Mutation$RunSystemUpgrade$runSystemUpgrade> - get copyWith => CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade( +extension UtilityExtension$Mutation$RunSystemUpgrade$system$runSystemUpgrade + on Mutation$RunSystemUpgrade$system$runSystemUpgrade { + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade< + Mutation$RunSystemUpgrade$system$runSystemUpgrade> + get copyWith => + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade( this, (i) => i, ); } -abstract class CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { - factory CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade( - Mutation$RunSystemUpgrade$runSystemUpgrade instance, - TRes Function(Mutation$RunSystemUpgrade$runSystemUpgrade) then, - ) = _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade; +abstract class CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade< + TRes> { + factory CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade( + Mutation$RunSystemUpgrade$system$runSystemUpgrade instance, + TRes Function(Mutation$RunSystemUpgrade$system$runSystemUpgrade) then, + ) = _CopyWithImpl$Mutation$RunSystemUpgrade$system$runSystemUpgrade; - factory CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade.stub(TRes res) = - _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade; + factory CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade.stub( + TRes res) = + _CopyWithStubImpl$Mutation$RunSystemUpgrade$system$runSystemUpgrade; TRes call({ int? code, @@ -5446,16 +6068,17 @@ abstract class CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { }); } -class _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade - implements CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { - _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade( +class _CopyWithImpl$Mutation$RunSystemUpgrade$system$runSystemUpgrade + implements + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade { + _CopyWithImpl$Mutation$RunSystemUpgrade$system$runSystemUpgrade( this._instance, this._then, ); - final Mutation$RunSystemUpgrade$runSystemUpgrade _instance; + final Mutation$RunSystemUpgrade$system$runSystemUpgrade _instance; - final TRes Function(Mutation$RunSystemUpgrade$runSystemUpgrade) _then; + final TRes Function(Mutation$RunSystemUpgrade$system$runSystemUpgrade) _then; static const _undefined = {}; @@ -5465,7 +6088,7 @@ class _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$RunSystemUpgrade$runSystemUpgrade( + _then(Mutation$RunSystemUpgrade$system$runSystemUpgrade( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -5480,9 +6103,11 @@ class _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade )); } -class _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade - implements CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { - _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade(this._res); +class _CopyWithStubImpl$Mutation$RunSystemUpgrade$system$runSystemUpgrade + implements + CopyWith$Mutation$RunSystemUpgrade$system$runSystemUpgrade { + _CopyWithStubImpl$Mutation$RunSystemUpgrade$system$runSystemUpgrade( + this._res); TRes _res; @@ -5497,31 +6122,28 @@ class _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade class Mutation$PullRepositoryChanges { Mutation$PullRepositoryChanges({ - required this.pullRepositoryChanges, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$PullRepositoryChanges.fromJson(Map json) { - final l$pullRepositoryChanges = json['pullRepositoryChanges']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$PullRepositoryChanges( - pullRepositoryChanges: - Mutation$PullRepositoryChanges$pullRepositoryChanges.fromJson( - (l$pullRepositoryChanges as Map)), + system: Mutation$PullRepositoryChanges$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.pull_repository_changes` instead') - final Mutation$PullRepositoryChanges$pullRepositoryChanges - pullRepositoryChanges; + final Mutation$PullRepositoryChanges$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$pullRepositoryChanges = pullRepositoryChanges; - _resultData['pullRepositoryChanges'] = l$pullRepositoryChanges.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -5529,10 +6151,10 @@ class Mutation$PullRepositoryChanges { @override int get hashCode { - final l$pullRepositoryChanges = pullRepositoryChanges; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$pullRepositoryChanges, + l$system, l$$__typename, ]); } @@ -5546,9 +6168,9 @@ class Mutation$PullRepositoryChanges { runtimeType != other.runtimeType) { return false; } - final l$pullRepositoryChanges = pullRepositoryChanges; - final lOther$pullRepositoryChanges = other.pullRepositoryChanges; - if (l$pullRepositoryChanges != lOther$pullRepositoryChanges) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -5579,11 +6201,10 @@ abstract class CopyWith$Mutation$PullRepositoryChanges { _CopyWithStubImpl$Mutation$PullRepositoryChanges; TRes call({ - Mutation$PullRepositoryChanges$pullRepositoryChanges? pullRepositoryChanges, + Mutation$PullRepositoryChanges$system? system, String? $__typename, }); - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges - get pullRepositoryChanges; + CopyWith$Mutation$PullRepositoryChanges$system get system; } class _CopyWithImpl$Mutation$PullRepositoryChanges @@ -5600,25 +6221,22 @@ class _CopyWithImpl$Mutation$PullRepositoryChanges static const _undefined = {}; TRes call({ - Object? pullRepositoryChanges = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$PullRepositoryChanges( - pullRepositoryChanges: - pullRepositoryChanges == _undefined || pullRepositoryChanges == null - ? _instance.pullRepositoryChanges - : (pullRepositoryChanges - as Mutation$PullRepositoryChanges$pullRepositoryChanges), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$PullRepositoryChanges$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges - get pullRepositoryChanges { - final local$pullRepositoryChanges = _instance.pullRepositoryChanges; - return CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges( - local$pullRepositoryChanges, (e) => call(pullRepositoryChanges: e)); + CopyWith$Mutation$PullRepositoryChanges$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$PullRepositoryChanges$system( + local$system, (e) => call(system: e)); } } @@ -5629,15 +6247,13 @@ class _CopyWithStubImpl$Mutation$PullRepositoryChanges TRes _res; call({ - Mutation$PullRepositoryChanges$pullRepositoryChanges? pullRepositoryChanges, + Mutation$PullRepositoryChanges$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges - get pullRepositoryChanges => - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges.stub( - _res); + CopyWith$Mutation$PullRepositoryChanges$system get system => + CopyWith$Mutation$PullRepositoryChanges$system.stub(_res); } const documentNodeMutationPullRepositoryChanges = DocumentNode(definitions: [ @@ -5648,14 +6264,29 @@ const documentNodeMutationPullRepositoryChanges = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'pullRepositoryChanges'), + name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'pullRepositoryChanges'), + alias: null, + arguments: [], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -5777,22 +6408,170 @@ extension ClientExtension$Mutation$PullRepositoryChanges options ?? WatchOptions$Mutation$PullRepositoryChanges()); } -class Mutation$PullRepositoryChanges$pullRepositoryChanges +class Mutation$PullRepositoryChanges$system { + Mutation$PullRepositoryChanges$system({ + required this.pullRepositoryChanges, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$PullRepositoryChanges$system.fromJson( + Map json) { + final l$pullRepositoryChanges = json['pullRepositoryChanges']; + final l$$__typename = json['__typename']; + return Mutation$PullRepositoryChanges$system( + pullRepositoryChanges: + Mutation$PullRepositoryChanges$system$pullRepositoryChanges.fromJson( + (l$pullRepositoryChanges as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$PullRepositoryChanges$system$pullRepositoryChanges + pullRepositoryChanges; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$pullRepositoryChanges = pullRepositoryChanges; + _resultData['pullRepositoryChanges'] = l$pullRepositoryChanges.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$pullRepositoryChanges = pullRepositoryChanges; + final l$$__typename = $__typename; + return Object.hashAll([ + l$pullRepositoryChanges, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$PullRepositoryChanges$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$pullRepositoryChanges = pullRepositoryChanges; + final lOther$pullRepositoryChanges = other.pullRepositoryChanges; + if (l$pullRepositoryChanges != lOther$pullRepositoryChanges) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$PullRepositoryChanges$system + on Mutation$PullRepositoryChanges$system { + CopyWith$Mutation$PullRepositoryChanges$system< + Mutation$PullRepositoryChanges$system> + get copyWith => CopyWith$Mutation$PullRepositoryChanges$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$PullRepositoryChanges$system { + factory CopyWith$Mutation$PullRepositoryChanges$system( + Mutation$PullRepositoryChanges$system instance, + TRes Function(Mutation$PullRepositoryChanges$system) then, + ) = _CopyWithImpl$Mutation$PullRepositoryChanges$system; + + factory CopyWith$Mutation$PullRepositoryChanges$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$PullRepositoryChanges$system; + + TRes call({ + Mutation$PullRepositoryChanges$system$pullRepositoryChanges? + pullRepositoryChanges, + String? $__typename, + }); + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges + get pullRepositoryChanges; +} + +class _CopyWithImpl$Mutation$PullRepositoryChanges$system + implements CopyWith$Mutation$PullRepositoryChanges$system { + _CopyWithImpl$Mutation$PullRepositoryChanges$system( + this._instance, + this._then, + ); + + final Mutation$PullRepositoryChanges$system _instance; + + final TRes Function(Mutation$PullRepositoryChanges$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? pullRepositoryChanges = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$PullRepositoryChanges$system( + pullRepositoryChanges: pullRepositoryChanges == _undefined || + pullRepositoryChanges == null + ? _instance.pullRepositoryChanges + : (pullRepositoryChanges + as Mutation$PullRepositoryChanges$system$pullRepositoryChanges), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges + get pullRepositoryChanges { + final local$pullRepositoryChanges = _instance.pullRepositoryChanges; + return CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges( + local$pullRepositoryChanges, (e) => call(pullRepositoryChanges: e)); + } +} + +class _CopyWithStubImpl$Mutation$PullRepositoryChanges$system + implements CopyWith$Mutation$PullRepositoryChanges$system { + _CopyWithStubImpl$Mutation$PullRepositoryChanges$system(this._res); + + TRes _res; + + call({ + Mutation$PullRepositoryChanges$system$pullRepositoryChanges? + pullRepositoryChanges, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges + get pullRepositoryChanges => + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges + .stub(_res); +} + +class Mutation$PullRepositoryChanges$system$pullRepositoryChanges implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$PullRepositoryChanges$pullRepositoryChanges({ + Mutation$PullRepositoryChanges$system$pullRepositoryChanges({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$PullRepositoryChanges$pullRepositoryChanges.fromJson( + factory Mutation$PullRepositoryChanges$system$pullRepositoryChanges.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$PullRepositoryChanges$pullRepositoryChanges( + return Mutation$PullRepositoryChanges$system$pullRepositoryChanges( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -5840,7 +6619,8 @@ class Mutation$PullRepositoryChanges$pullRepositoryChanges if (identical(this, other)) { return true; } - if (!(other is Mutation$PullRepositoryChanges$pullRepositoryChanges) || + if (!(other + is Mutation$PullRepositoryChanges$system$pullRepositoryChanges) || runtimeType != other.runtimeType) { return false; } @@ -5868,27 +6648,28 @@ class Mutation$PullRepositoryChanges$pullRepositoryChanges } } -extension UtilityExtension$Mutation$PullRepositoryChanges$pullRepositoryChanges - on Mutation$PullRepositoryChanges$pullRepositoryChanges { - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges< - Mutation$PullRepositoryChanges$pullRepositoryChanges> +extension UtilityExtension$Mutation$PullRepositoryChanges$system$pullRepositoryChanges + on Mutation$PullRepositoryChanges$system$pullRepositoryChanges { + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges< + Mutation$PullRepositoryChanges$system$pullRepositoryChanges> get copyWith => - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges( + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges( this, (i) => i, ); } -abstract class CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges< +abstract class CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges< TRes> { - factory CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges( - Mutation$PullRepositoryChanges$pullRepositoryChanges instance, - TRes Function(Mutation$PullRepositoryChanges$pullRepositoryChanges) then, - ) = _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges; + factory CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges( + Mutation$PullRepositoryChanges$system$pullRepositoryChanges instance, + TRes Function(Mutation$PullRepositoryChanges$system$pullRepositoryChanges) + then, + ) = _CopyWithImpl$Mutation$PullRepositoryChanges$system$pullRepositoryChanges; - factory CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges.stub( + factory CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges.stub( TRes res) = - _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges; + _CopyWithStubImpl$Mutation$PullRepositoryChanges$system$pullRepositoryChanges; TRes call({ int? code, @@ -5898,18 +6679,20 @@ abstract class CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges< }); } -class _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges +class _CopyWithImpl$Mutation$PullRepositoryChanges$system$pullRepositoryChanges< + TRes> implements - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges { - _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges( + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges< + TRes> { + _CopyWithImpl$Mutation$PullRepositoryChanges$system$pullRepositoryChanges( this._instance, this._then, ); - final Mutation$PullRepositoryChanges$pullRepositoryChanges _instance; + final Mutation$PullRepositoryChanges$system$pullRepositoryChanges _instance; - final TRes Function(Mutation$PullRepositoryChanges$pullRepositoryChanges) - _then; + final TRes Function( + Mutation$PullRepositoryChanges$system$pullRepositoryChanges) _then; static const _undefined = {}; @@ -5919,7 +6702,7 @@ class _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$PullRepositoryChanges$pullRepositoryChanges( + _then(Mutation$PullRepositoryChanges$system$pullRepositoryChanges( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -5934,11 +6717,12 @@ class _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges )); } -class _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges< +class _CopyWithStubImpl$Mutation$PullRepositoryChanges$system$pullRepositoryChanges< TRes> implements - CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges { - _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges( + CopyWith$Mutation$PullRepositoryChanges$system$pullRepositoryChanges< + TRes> { + _CopyWithStubImpl$Mutation$PullRepositoryChanges$system$pullRepositoryChanges( this._res); TRes _res; @@ -5954,29 +6738,28 @@ class _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges< class Mutation$RebootSystem { Mutation$RebootSystem({ - required this.rebootSystem, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$RebootSystem.fromJson(Map json) { - final l$rebootSystem = json['rebootSystem']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$RebootSystem( - rebootSystem: Mutation$RebootSystem$rebootSystem.fromJson( - (l$rebootSystem as Map)), + system: Mutation$RebootSystem$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.reboot_system` instead') - final Mutation$RebootSystem$rebootSystem rebootSystem; + final Mutation$RebootSystem$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$rebootSystem = rebootSystem; - _resultData['rebootSystem'] = l$rebootSystem.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -5984,10 +6767,10 @@ class Mutation$RebootSystem { @override int get hashCode { - final l$rebootSystem = rebootSystem; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$rebootSystem, + l$system, l$$__typename, ]); } @@ -6000,9 +6783,9 @@ class Mutation$RebootSystem { if (!(other is Mutation$RebootSystem) || runtimeType != other.runtimeType) { return false; } - final l$rebootSystem = rebootSystem; - final lOther$rebootSystem = other.rebootSystem; - if (l$rebootSystem != lOther$rebootSystem) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -6032,10 +6815,10 @@ abstract class CopyWith$Mutation$RebootSystem { _CopyWithStubImpl$Mutation$RebootSystem; TRes call({ - Mutation$RebootSystem$rebootSystem? rebootSystem, + Mutation$RebootSystem$system? system, String? $__typename, }); - CopyWith$Mutation$RebootSystem$rebootSystem get rebootSystem; + CopyWith$Mutation$RebootSystem$system get system; } class _CopyWithImpl$Mutation$RebootSystem @@ -6052,22 +6835,22 @@ class _CopyWithImpl$Mutation$RebootSystem static const _undefined = {}; TRes call({ - Object? rebootSystem = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RebootSystem( - rebootSystem: rebootSystem == _undefined || rebootSystem == null - ? _instance.rebootSystem - : (rebootSystem as Mutation$RebootSystem$rebootSystem), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$RebootSystem$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RebootSystem$rebootSystem get rebootSystem { - final local$rebootSystem = _instance.rebootSystem; - return CopyWith$Mutation$RebootSystem$rebootSystem( - local$rebootSystem, (e) => call(rebootSystem: e)); + CopyWith$Mutation$RebootSystem$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$RebootSystem$system( + local$system, (e) => call(system: e)); } } @@ -6078,13 +6861,13 @@ class _CopyWithStubImpl$Mutation$RebootSystem TRes _res; call({ - Mutation$RebootSystem$rebootSystem? rebootSystem, + Mutation$RebootSystem$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$RebootSystem$rebootSystem get rebootSystem => - CopyWith$Mutation$RebootSystem$rebootSystem.stub(_res); + CopyWith$Mutation$RebootSystem$system get system => + CopyWith$Mutation$RebootSystem$system.stub(_res); } const documentNodeMutationRebootSystem = DocumentNode(definitions: [ @@ -6095,14 +6878,29 @@ const documentNodeMutationRebootSystem = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'rebootSystem'), + name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'rebootSystem'), + alias: null, + arguments: [], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -6215,22 +7013,158 @@ extension ClientExtension$Mutation$RebootSystem on graphql.GraphQLClient { this.watchMutation(options ?? WatchOptions$Mutation$RebootSystem()); } -class Mutation$RebootSystem$rebootSystem +class Mutation$RebootSystem$system { + Mutation$RebootSystem$system({ + required this.rebootSystem, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$RebootSystem$system.fromJson(Map json) { + final l$rebootSystem = json['rebootSystem']; + final l$$__typename = json['__typename']; + return Mutation$RebootSystem$system( + rebootSystem: Mutation$RebootSystem$system$rebootSystem.fromJson( + (l$rebootSystem as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RebootSystem$system$rebootSystem rebootSystem; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$rebootSystem = rebootSystem; + _resultData['rebootSystem'] = l$rebootSystem.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$rebootSystem = rebootSystem; + final l$$__typename = $__typename; + return Object.hashAll([ + l$rebootSystem, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RebootSystem$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$rebootSystem = rebootSystem; + final lOther$rebootSystem = other.rebootSystem; + if (l$rebootSystem != lOther$rebootSystem) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RebootSystem$system + on Mutation$RebootSystem$system { + CopyWith$Mutation$RebootSystem$system + get copyWith => CopyWith$Mutation$RebootSystem$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RebootSystem$system { + factory CopyWith$Mutation$RebootSystem$system( + Mutation$RebootSystem$system instance, + TRes Function(Mutation$RebootSystem$system) then, + ) = _CopyWithImpl$Mutation$RebootSystem$system; + + factory CopyWith$Mutation$RebootSystem$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$RebootSystem$system; + + TRes call({ + Mutation$RebootSystem$system$rebootSystem? rebootSystem, + String? $__typename, + }); + CopyWith$Mutation$RebootSystem$system$rebootSystem get rebootSystem; +} + +class _CopyWithImpl$Mutation$RebootSystem$system + implements CopyWith$Mutation$RebootSystem$system { + _CopyWithImpl$Mutation$RebootSystem$system( + this._instance, + this._then, + ); + + final Mutation$RebootSystem$system _instance; + + final TRes Function(Mutation$RebootSystem$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? rebootSystem = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RebootSystem$system( + rebootSystem: rebootSystem == _undefined || rebootSystem == null + ? _instance.rebootSystem + : (rebootSystem as Mutation$RebootSystem$system$rebootSystem), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RebootSystem$system$rebootSystem get rebootSystem { + final local$rebootSystem = _instance.rebootSystem; + return CopyWith$Mutation$RebootSystem$system$rebootSystem( + local$rebootSystem, (e) => call(rebootSystem: e)); + } +} + +class _CopyWithStubImpl$Mutation$RebootSystem$system + implements CopyWith$Mutation$RebootSystem$system { + _CopyWithStubImpl$Mutation$RebootSystem$system(this._res); + + TRes _res; + + call({ + Mutation$RebootSystem$system$rebootSystem? rebootSystem, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RebootSystem$system$rebootSystem get rebootSystem => + CopyWith$Mutation$RebootSystem$system$rebootSystem.stub(_res); +} + +class Mutation$RebootSystem$system$rebootSystem implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$RebootSystem$rebootSystem({ + Mutation$RebootSystem$system$rebootSystem({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$RebootSystem$rebootSystem.fromJson( + factory Mutation$RebootSystem$system$rebootSystem.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$RebootSystem$rebootSystem( + return Mutation$RebootSystem$system$rebootSystem( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -6278,7 +7212,7 @@ class Mutation$RebootSystem$rebootSystem if (identical(this, other)) { return true; } - if (!(other is Mutation$RebootSystem$rebootSystem) || + if (!(other is Mutation$RebootSystem$system$rebootSystem) || runtimeType != other.runtimeType) { return false; } @@ -6306,24 +7240,24 @@ class Mutation$RebootSystem$rebootSystem } } -extension UtilityExtension$Mutation$RebootSystem$rebootSystem - on Mutation$RebootSystem$rebootSystem { - CopyWith$Mutation$RebootSystem$rebootSystem< - Mutation$RebootSystem$rebootSystem> - get copyWith => CopyWith$Mutation$RebootSystem$rebootSystem( +extension UtilityExtension$Mutation$RebootSystem$system$rebootSystem + on Mutation$RebootSystem$system$rebootSystem { + CopyWith$Mutation$RebootSystem$system$rebootSystem< + Mutation$RebootSystem$system$rebootSystem> + get copyWith => CopyWith$Mutation$RebootSystem$system$rebootSystem( this, (i) => i, ); } -abstract class CopyWith$Mutation$RebootSystem$rebootSystem { - factory CopyWith$Mutation$RebootSystem$rebootSystem( - Mutation$RebootSystem$rebootSystem instance, - TRes Function(Mutation$RebootSystem$rebootSystem) then, - ) = _CopyWithImpl$Mutation$RebootSystem$rebootSystem; +abstract class CopyWith$Mutation$RebootSystem$system$rebootSystem { + factory CopyWith$Mutation$RebootSystem$system$rebootSystem( + Mutation$RebootSystem$system$rebootSystem instance, + TRes Function(Mutation$RebootSystem$system$rebootSystem) then, + ) = _CopyWithImpl$Mutation$RebootSystem$system$rebootSystem; - factory CopyWith$Mutation$RebootSystem$rebootSystem.stub(TRes res) = - _CopyWithStubImpl$Mutation$RebootSystem$rebootSystem; + factory CopyWith$Mutation$RebootSystem$system$rebootSystem.stub(TRes res) = + _CopyWithStubImpl$Mutation$RebootSystem$system$rebootSystem; TRes call({ int? code, @@ -6333,16 +7267,16 @@ abstract class CopyWith$Mutation$RebootSystem$rebootSystem { }); } -class _CopyWithImpl$Mutation$RebootSystem$rebootSystem - implements CopyWith$Mutation$RebootSystem$rebootSystem { - _CopyWithImpl$Mutation$RebootSystem$rebootSystem( +class _CopyWithImpl$Mutation$RebootSystem$system$rebootSystem + implements CopyWith$Mutation$RebootSystem$system$rebootSystem { + _CopyWithImpl$Mutation$RebootSystem$system$rebootSystem( this._instance, this._then, ); - final Mutation$RebootSystem$rebootSystem _instance; + final Mutation$RebootSystem$system$rebootSystem _instance; - final TRes Function(Mutation$RebootSystem$rebootSystem) _then; + final TRes Function(Mutation$RebootSystem$system$rebootSystem) _then; static const _undefined = {}; @@ -6352,7 +7286,7 @@ class _CopyWithImpl$Mutation$RebootSystem$rebootSystem Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$RebootSystem$rebootSystem( + _then(Mutation$RebootSystem$system$rebootSystem( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -6367,9 +7301,9 @@ class _CopyWithImpl$Mutation$RebootSystem$rebootSystem )); } -class _CopyWithStubImpl$Mutation$RebootSystem$rebootSystem - implements CopyWith$Mutation$RebootSystem$rebootSystem { - _CopyWithStubImpl$Mutation$RebootSystem$rebootSystem(this._res); +class _CopyWithStubImpl$Mutation$RebootSystem$system$rebootSystem + implements CopyWith$Mutation$RebootSystem$system$rebootSystem { + _CopyWithStubImpl$Mutation$RebootSystem$system$rebootSystem(this._res); TRes _res; @@ -8965,30 +9899,28 @@ class _CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey class Mutation$GetNewRecoveryApiKey { Mutation$GetNewRecoveryApiKey({ - required this.getNewRecoveryApiKey, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$GetNewRecoveryApiKey.fromJson(Map json) { - final l$getNewRecoveryApiKey = json['getNewRecoveryApiKey']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$GetNewRecoveryApiKey( - getNewRecoveryApiKey: - Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.fromJson( - (l$getNewRecoveryApiKey as Map)), + api: Mutation$GetNewRecoveryApiKey$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.get_new_recovery_api_key` instead') - final Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey getNewRecoveryApiKey; + final Mutation$GetNewRecoveryApiKey$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$getNewRecoveryApiKey = getNewRecoveryApiKey; - _resultData['getNewRecoveryApiKey'] = l$getNewRecoveryApiKey.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -8996,10 +9928,10 @@ class Mutation$GetNewRecoveryApiKey { @override int get hashCode { - final l$getNewRecoveryApiKey = getNewRecoveryApiKey; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$getNewRecoveryApiKey, + l$api, l$$__typename, ]); } @@ -9013,9 +9945,9 @@ class Mutation$GetNewRecoveryApiKey { runtimeType != other.runtimeType) { return false; } - final l$getNewRecoveryApiKey = getNewRecoveryApiKey; - final lOther$getNewRecoveryApiKey = other.getNewRecoveryApiKey; - if (l$getNewRecoveryApiKey != lOther$getNewRecoveryApiKey) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -9046,11 +9978,10 @@ abstract class CopyWith$Mutation$GetNewRecoveryApiKey { _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey; TRes call({ - Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey? getNewRecoveryApiKey, + Mutation$GetNewRecoveryApiKey$api? api, String? $__typename, }); - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey - get getNewRecoveryApiKey; + CopyWith$Mutation$GetNewRecoveryApiKey$api get api; } class _CopyWithImpl$Mutation$GetNewRecoveryApiKey @@ -9067,25 +9998,22 @@ class _CopyWithImpl$Mutation$GetNewRecoveryApiKey static const _undefined = {}; TRes call({ - Object? getNewRecoveryApiKey = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$GetNewRecoveryApiKey( - getNewRecoveryApiKey: - getNewRecoveryApiKey == _undefined || getNewRecoveryApiKey == null - ? _instance.getNewRecoveryApiKey - : (getNewRecoveryApiKey - as Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$GetNewRecoveryApiKey$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey - get getNewRecoveryApiKey { - final local$getNewRecoveryApiKey = _instance.getNewRecoveryApiKey; - return CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( - local$getNewRecoveryApiKey, (e) => call(getNewRecoveryApiKey: e)); + CopyWith$Mutation$GetNewRecoveryApiKey$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$GetNewRecoveryApiKey$api( + local$api, (e) => call(api: e)); } } @@ -9096,15 +10024,13 @@ class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey TRes _res; call({ - Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey? getNewRecoveryApiKey, + Mutation$GetNewRecoveryApiKey$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey - get getNewRecoveryApiKey => - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.stub( - _res); + CopyWith$Mutation$GetNewRecoveryApiKey$api get api => + CopyWith$Mutation$GetNewRecoveryApiKey$api.stub(_res); } const documentNodeMutationGetNewRecoveryApiKey = DocumentNode(definitions: [ @@ -9125,26 +10051,41 @@ const documentNodeMutationGetNewRecoveryApiKey = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'getNewRecoveryApiKey'), + name: NameNode(value: 'api'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'limits'), - value: VariableNode(name: NameNode(value: 'limits')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'key'), + name: NameNode(value: 'getNewRecoveryApiKey'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'limits'), + value: VariableNode(name: NameNode(value: 'limits')), + ) + ], directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -9269,9 +10210,156 @@ extension ClientExtension$Mutation$GetNewRecoveryApiKey options ?? WatchOptions$Mutation$GetNewRecoveryApiKey()); } -class Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey +class Mutation$GetNewRecoveryApiKey$api { + Mutation$GetNewRecoveryApiKey$api({ + required this.getNewRecoveryApiKey, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$GetNewRecoveryApiKey$api.fromJson( + Map json) { + final l$getNewRecoveryApiKey = json['getNewRecoveryApiKey']; + final l$$__typename = json['__typename']; + return Mutation$GetNewRecoveryApiKey$api( + getNewRecoveryApiKey: + Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey.fromJson( + (l$getNewRecoveryApiKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey + getNewRecoveryApiKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$getNewRecoveryApiKey = getNewRecoveryApiKey; + _resultData['getNewRecoveryApiKey'] = l$getNewRecoveryApiKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$getNewRecoveryApiKey = getNewRecoveryApiKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$getNewRecoveryApiKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$GetNewRecoveryApiKey$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$getNewRecoveryApiKey = getNewRecoveryApiKey; + final lOther$getNewRecoveryApiKey = other.getNewRecoveryApiKey; + if (l$getNewRecoveryApiKey != lOther$getNewRecoveryApiKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$GetNewRecoveryApiKey$api + on Mutation$GetNewRecoveryApiKey$api { + CopyWith$Mutation$GetNewRecoveryApiKey$api + get copyWith => CopyWith$Mutation$GetNewRecoveryApiKey$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$GetNewRecoveryApiKey$api { + factory CopyWith$Mutation$GetNewRecoveryApiKey$api( + Mutation$GetNewRecoveryApiKey$api instance, + TRes Function(Mutation$GetNewRecoveryApiKey$api) then, + ) = _CopyWithImpl$Mutation$GetNewRecoveryApiKey$api; + + factory CopyWith$Mutation$GetNewRecoveryApiKey$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$api; + + TRes call({ + Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey? + getNewRecoveryApiKey, + String? $__typename, + }); + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey + get getNewRecoveryApiKey; +} + +class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$api + implements CopyWith$Mutation$GetNewRecoveryApiKey$api { + _CopyWithImpl$Mutation$GetNewRecoveryApiKey$api( + this._instance, + this._then, + ); + + final Mutation$GetNewRecoveryApiKey$api _instance; + + final TRes Function(Mutation$GetNewRecoveryApiKey$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? getNewRecoveryApiKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$GetNewRecoveryApiKey$api( + getNewRecoveryApiKey: + getNewRecoveryApiKey == _undefined || getNewRecoveryApiKey == null + ? _instance.getNewRecoveryApiKey + : (getNewRecoveryApiKey + as Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey + get getNewRecoveryApiKey { + final local$getNewRecoveryApiKey = _instance.getNewRecoveryApiKey; + return CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( + local$getNewRecoveryApiKey, (e) => call(getNewRecoveryApiKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$api + implements CopyWith$Mutation$GetNewRecoveryApiKey$api { + _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$api(this._res); + + TRes _res; + + call({ + Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey? + getNewRecoveryApiKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey + get getNewRecoveryApiKey => + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey.stub( + _res); +} + +class Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey implements Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { - Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey({ + Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey({ required this.code, required this.message, required this.success, @@ -9279,14 +10367,14 @@ class Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey this.key, }); - factory Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.fromJson( + factory Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$key = json['key']; - return Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( + return Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -9341,7 +10429,7 @@ class Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey if (identical(this, other)) { return true; } - if (!(other is Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) || + if (!(other is Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey) || runtimeType != other.runtimeType) { return false; } @@ -9374,27 +10462,27 @@ class Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey } } -extension UtilityExtension$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey - on Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey { - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey< - Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey> +extension UtilityExtension$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey + on Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey { + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey< + Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey> get copyWith => - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey< +abstract class CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey< TRes> { - factory CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( - Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey instance, - TRes Function(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) then, - ) = _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey; + factory CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( + Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey instance, + TRes Function(Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey) then, + ) = _CopyWithImpl$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey; - factory CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.stub( + factory CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey.stub( TRes res) = - _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey; + _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey; TRes call({ int? code, @@ -9405,17 +10493,18 @@ abstract class CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey< }); } -class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey +class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey implements - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey { - _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey { + _CopyWithImpl$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( this._instance, this._then, ); - final Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey _instance; + final Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey _instance; - final TRes Function(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) _then; + final TRes Function(Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey) + _then; static const _undefined = {}; @@ -9426,7 +10515,7 @@ class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey Object? $__typename = _undefined, Object? key = _undefined, }) => - _then(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( + _then(Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -9442,10 +10531,11 @@ class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey )); } -class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey +class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey< + TRes> implements - CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey { - _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( + CopyWith$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey { + _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$api$getNewRecoveryApiKey( this._res); TRes _res; @@ -9565,29 +10655,28 @@ class _CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey class Mutation$UseRecoveryApiKey { Mutation$UseRecoveryApiKey({ - required this.useRecoveryApiKey, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$UseRecoveryApiKey.fromJson(Map json) { - final l$useRecoveryApiKey = json['useRecoveryApiKey']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$UseRecoveryApiKey( - useRecoveryApiKey: Mutation$UseRecoveryApiKey$useRecoveryApiKey.fromJson( - (l$useRecoveryApiKey as Map)), + api: Mutation$UseRecoveryApiKey$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.use_recovery_api_key` instead') - final Mutation$UseRecoveryApiKey$useRecoveryApiKey useRecoveryApiKey; + final Mutation$UseRecoveryApiKey$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$useRecoveryApiKey = useRecoveryApiKey; - _resultData['useRecoveryApiKey'] = l$useRecoveryApiKey.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -9595,10 +10684,10 @@ class Mutation$UseRecoveryApiKey { @override int get hashCode { - final l$useRecoveryApiKey = useRecoveryApiKey; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$useRecoveryApiKey, + l$api, l$$__typename, ]); } @@ -9612,9 +10701,9 @@ class Mutation$UseRecoveryApiKey { runtimeType != other.runtimeType) { return false; } - final l$useRecoveryApiKey = useRecoveryApiKey; - final lOther$useRecoveryApiKey = other.useRecoveryApiKey; - if (l$useRecoveryApiKey != lOther$useRecoveryApiKey) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -9645,11 +10734,10 @@ abstract class CopyWith$Mutation$UseRecoveryApiKey { _CopyWithStubImpl$Mutation$UseRecoveryApiKey; TRes call({ - Mutation$UseRecoveryApiKey$useRecoveryApiKey? useRecoveryApiKey, + Mutation$UseRecoveryApiKey$api? api, String? $__typename, }); - CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey - get useRecoveryApiKey; + CopyWith$Mutation$UseRecoveryApiKey$api get api; } class _CopyWithImpl$Mutation$UseRecoveryApiKey @@ -9666,25 +10754,22 @@ class _CopyWithImpl$Mutation$UseRecoveryApiKey static const _undefined = {}; TRes call({ - Object? useRecoveryApiKey = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$UseRecoveryApiKey( - useRecoveryApiKey: - useRecoveryApiKey == _undefined || useRecoveryApiKey == null - ? _instance.useRecoveryApiKey - : (useRecoveryApiKey - as Mutation$UseRecoveryApiKey$useRecoveryApiKey), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$UseRecoveryApiKey$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey - get useRecoveryApiKey { - final local$useRecoveryApiKey = _instance.useRecoveryApiKey; - return CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey( - local$useRecoveryApiKey, (e) => call(useRecoveryApiKey: e)); + CopyWith$Mutation$UseRecoveryApiKey$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$UseRecoveryApiKey$api( + local$api, (e) => call(api: e)); } } @@ -9695,14 +10780,13 @@ class _CopyWithStubImpl$Mutation$UseRecoveryApiKey TRes _res; call({ - Mutation$UseRecoveryApiKey$useRecoveryApiKey? useRecoveryApiKey, + Mutation$UseRecoveryApiKey$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey - get useRecoveryApiKey => - CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey.stub(_res); + CopyWith$Mutation$UseRecoveryApiKey$api get api => + CopyWith$Mutation$UseRecoveryApiKey$api.stub(_res); } const documentNodeMutationUseRecoveryApiKey = DocumentNode(definitions: [ @@ -9723,26 +10807,41 @@ const documentNodeMutationUseRecoveryApiKey = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'useRecoveryApiKey'), + name: NameNode(value: 'api'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: VariableNode(name: NameNode(value: 'input')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'token'), + name: NameNode(value: 'useRecoveryApiKey'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'input'), + value: VariableNode(name: NameNode(value: 'input')), + ) + ], directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'token'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -9864,10 +10963,152 @@ extension ClientExtension$Mutation$UseRecoveryApiKey on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$UseRecoveryApiKey$useRecoveryApiKey +class Mutation$UseRecoveryApiKey$api { + Mutation$UseRecoveryApiKey$api({ + required this.useRecoveryApiKey, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$UseRecoveryApiKey$api.fromJson(Map json) { + final l$useRecoveryApiKey = json['useRecoveryApiKey']; + final l$$__typename = json['__typename']; + return Mutation$UseRecoveryApiKey$api( + useRecoveryApiKey: + Mutation$UseRecoveryApiKey$api$useRecoveryApiKey.fromJson( + (l$useRecoveryApiKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$UseRecoveryApiKey$api$useRecoveryApiKey useRecoveryApiKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$useRecoveryApiKey = useRecoveryApiKey; + _resultData['useRecoveryApiKey'] = l$useRecoveryApiKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$useRecoveryApiKey = useRecoveryApiKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$useRecoveryApiKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$UseRecoveryApiKey$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$useRecoveryApiKey = useRecoveryApiKey; + final lOther$useRecoveryApiKey = other.useRecoveryApiKey; + if (l$useRecoveryApiKey != lOther$useRecoveryApiKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$UseRecoveryApiKey$api + on Mutation$UseRecoveryApiKey$api { + CopyWith$Mutation$UseRecoveryApiKey$api + get copyWith => CopyWith$Mutation$UseRecoveryApiKey$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$UseRecoveryApiKey$api { + factory CopyWith$Mutation$UseRecoveryApiKey$api( + Mutation$UseRecoveryApiKey$api instance, + TRes Function(Mutation$UseRecoveryApiKey$api) then, + ) = _CopyWithImpl$Mutation$UseRecoveryApiKey$api; + + factory CopyWith$Mutation$UseRecoveryApiKey$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$UseRecoveryApiKey$api; + + TRes call({ + Mutation$UseRecoveryApiKey$api$useRecoveryApiKey? useRecoveryApiKey, + String? $__typename, + }); + CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey + get useRecoveryApiKey; +} + +class _CopyWithImpl$Mutation$UseRecoveryApiKey$api + implements CopyWith$Mutation$UseRecoveryApiKey$api { + _CopyWithImpl$Mutation$UseRecoveryApiKey$api( + this._instance, + this._then, + ); + + final Mutation$UseRecoveryApiKey$api _instance; + + final TRes Function(Mutation$UseRecoveryApiKey$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? useRecoveryApiKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$UseRecoveryApiKey$api( + useRecoveryApiKey: + useRecoveryApiKey == _undefined || useRecoveryApiKey == null + ? _instance.useRecoveryApiKey + : (useRecoveryApiKey + as Mutation$UseRecoveryApiKey$api$useRecoveryApiKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey + get useRecoveryApiKey { + final local$useRecoveryApiKey = _instance.useRecoveryApiKey; + return CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey( + local$useRecoveryApiKey, (e) => call(useRecoveryApiKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$UseRecoveryApiKey$api + implements CopyWith$Mutation$UseRecoveryApiKey$api { + _CopyWithStubImpl$Mutation$UseRecoveryApiKey$api(this._res); + + TRes _res; + + call({ + Mutation$UseRecoveryApiKey$api$useRecoveryApiKey? useRecoveryApiKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey + get useRecoveryApiKey => + CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey.stub(_res); +} + +class Mutation$UseRecoveryApiKey$api$useRecoveryApiKey implements Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - Mutation$UseRecoveryApiKey$useRecoveryApiKey({ + Mutation$UseRecoveryApiKey$api$useRecoveryApiKey({ required this.code, required this.message, required this.success, @@ -9875,14 +11116,14 @@ class Mutation$UseRecoveryApiKey$useRecoveryApiKey this.token, }); - factory Mutation$UseRecoveryApiKey$useRecoveryApiKey.fromJson( + factory Mutation$UseRecoveryApiKey$api$useRecoveryApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$token = json['token']; - return Mutation$UseRecoveryApiKey$useRecoveryApiKey( + return Mutation$UseRecoveryApiKey$api$useRecoveryApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -9937,7 +11178,7 @@ class Mutation$UseRecoveryApiKey$useRecoveryApiKey if (identical(this, other)) { return true; } - if (!(other is Mutation$UseRecoveryApiKey$useRecoveryApiKey) || + if (!(other is Mutation$UseRecoveryApiKey$api$useRecoveryApiKey) || runtimeType != other.runtimeType) { return false; } @@ -9970,24 +11211,25 @@ class Mutation$UseRecoveryApiKey$useRecoveryApiKey } } -extension UtilityExtension$Mutation$UseRecoveryApiKey$useRecoveryApiKey - on Mutation$UseRecoveryApiKey$useRecoveryApiKey { - CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey< - Mutation$UseRecoveryApiKey$useRecoveryApiKey> - get copyWith => CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey( +extension UtilityExtension$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey + on Mutation$UseRecoveryApiKey$api$useRecoveryApiKey { + CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey< + Mutation$UseRecoveryApiKey$api$useRecoveryApiKey> + get copyWith => CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { - factory CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey( - Mutation$UseRecoveryApiKey$useRecoveryApiKey instance, - TRes Function(Mutation$UseRecoveryApiKey$useRecoveryApiKey) then, - ) = _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey; +abstract class CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey { + factory CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey( + Mutation$UseRecoveryApiKey$api$useRecoveryApiKey instance, + TRes Function(Mutation$UseRecoveryApiKey$api$useRecoveryApiKey) then, + ) = _CopyWithImpl$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey; - factory CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey.stub(TRes res) = - _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey; + factory CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey.stub( + TRes res) = + _CopyWithStubImpl$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey; TRes call({ int? code, @@ -9998,16 +11240,16 @@ abstract class CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { }); } -class _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey - implements CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { - _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey( +class _CopyWithImpl$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey + implements CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey { + _CopyWithImpl$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey( this._instance, this._then, ); - final Mutation$UseRecoveryApiKey$useRecoveryApiKey _instance; + final Mutation$UseRecoveryApiKey$api$useRecoveryApiKey _instance; - final TRes Function(Mutation$UseRecoveryApiKey$useRecoveryApiKey) _then; + final TRes Function(Mutation$UseRecoveryApiKey$api$useRecoveryApiKey) _then; static const _undefined = {}; @@ -10018,7 +11260,7 @@ class _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey Object? $__typename = _undefined, Object? token = _undefined, }) => - _then(Mutation$UseRecoveryApiKey$useRecoveryApiKey( + _then(Mutation$UseRecoveryApiKey$api$useRecoveryApiKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -10034,9 +11276,9 @@ class _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey )); } -class _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey - implements CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { - _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey(this._res); +class _CopyWithStubImpl$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey + implements CopyWith$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey { + _CopyWithStubImpl$Mutation$UseRecoveryApiKey$api$useRecoveryApiKey(this._res); TRes _res; @@ -10052,31 +11294,28 @@ class _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey class Mutation$RefreshDeviceApiToken { Mutation$RefreshDeviceApiToken({ - required this.refreshDeviceApiToken, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$RefreshDeviceApiToken.fromJson(Map json) { - final l$refreshDeviceApiToken = json['refreshDeviceApiToken']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$RefreshDeviceApiToken( - refreshDeviceApiToken: - Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.fromJson( - (l$refreshDeviceApiToken as Map)), + api: Mutation$RefreshDeviceApiToken$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.refresh_device_api_token` instead') - final Mutation$RefreshDeviceApiToken$refreshDeviceApiToken - refreshDeviceApiToken; + final Mutation$RefreshDeviceApiToken$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$refreshDeviceApiToken = refreshDeviceApiToken; - _resultData['refreshDeviceApiToken'] = l$refreshDeviceApiToken.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -10084,10 +11323,10 @@ class Mutation$RefreshDeviceApiToken { @override int get hashCode { - final l$refreshDeviceApiToken = refreshDeviceApiToken; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$refreshDeviceApiToken, + l$api, l$$__typename, ]); } @@ -10101,9 +11340,9 @@ class Mutation$RefreshDeviceApiToken { runtimeType != other.runtimeType) { return false; } - final l$refreshDeviceApiToken = refreshDeviceApiToken; - final lOther$refreshDeviceApiToken = other.refreshDeviceApiToken; - if (l$refreshDeviceApiToken != lOther$refreshDeviceApiToken) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -10134,11 +11373,10 @@ abstract class CopyWith$Mutation$RefreshDeviceApiToken { _CopyWithStubImpl$Mutation$RefreshDeviceApiToken; TRes call({ - Mutation$RefreshDeviceApiToken$refreshDeviceApiToken? refreshDeviceApiToken, + Mutation$RefreshDeviceApiToken$api? api, String? $__typename, }); - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken - get refreshDeviceApiToken; + CopyWith$Mutation$RefreshDeviceApiToken$api get api; } class _CopyWithImpl$Mutation$RefreshDeviceApiToken @@ -10155,25 +11393,22 @@ class _CopyWithImpl$Mutation$RefreshDeviceApiToken static const _undefined = {}; TRes call({ - Object? refreshDeviceApiToken = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RefreshDeviceApiToken( - refreshDeviceApiToken: - refreshDeviceApiToken == _undefined || refreshDeviceApiToken == null - ? _instance.refreshDeviceApiToken - : (refreshDeviceApiToken - as Mutation$RefreshDeviceApiToken$refreshDeviceApiToken), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$RefreshDeviceApiToken$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken - get refreshDeviceApiToken { - final local$refreshDeviceApiToken = _instance.refreshDeviceApiToken; - return CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( - local$refreshDeviceApiToken, (e) => call(refreshDeviceApiToken: e)); + CopyWith$Mutation$RefreshDeviceApiToken$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$RefreshDeviceApiToken$api( + local$api, (e) => call(api: e)); } } @@ -10184,15 +11419,13 @@ class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken TRes _res; call({ - Mutation$RefreshDeviceApiToken$refreshDeviceApiToken? refreshDeviceApiToken, + Mutation$RefreshDeviceApiToken$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken - get refreshDeviceApiToken => - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.stub( - _res); + CopyWith$Mutation$RefreshDeviceApiToken$api get api => + CopyWith$Mutation$RefreshDeviceApiToken$api.stub(_res); } const documentNodeMutationRefreshDeviceApiToken = DocumentNode(definitions: [ @@ -10203,21 +11436,36 @@ const documentNodeMutationRefreshDeviceApiToken = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'refreshDeviceApiToken'), + name: NameNode(value: 'api'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'token'), + name: NameNode(value: 'refreshDeviceApiToken'), alias: null, arguments: [], directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'token'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -10339,10 +11587,158 @@ extension ClientExtension$Mutation$RefreshDeviceApiToken options ?? WatchOptions$Mutation$RefreshDeviceApiToken()); } -class Mutation$RefreshDeviceApiToken$refreshDeviceApiToken +class Mutation$RefreshDeviceApiToken$api { + Mutation$RefreshDeviceApiToken$api({ + required this.refreshDeviceApiToken, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$RefreshDeviceApiToken$api.fromJson( + Map json) { + final l$refreshDeviceApiToken = json['refreshDeviceApiToken']; + final l$$__typename = json['__typename']; + return Mutation$RefreshDeviceApiToken$api( + refreshDeviceApiToken: + Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken.fromJson( + (l$refreshDeviceApiToken as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken + refreshDeviceApiToken; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$refreshDeviceApiToken = refreshDeviceApiToken; + _resultData['refreshDeviceApiToken'] = l$refreshDeviceApiToken.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$refreshDeviceApiToken = refreshDeviceApiToken; + final l$$__typename = $__typename; + return Object.hashAll([ + l$refreshDeviceApiToken, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RefreshDeviceApiToken$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$refreshDeviceApiToken = refreshDeviceApiToken; + final lOther$refreshDeviceApiToken = other.refreshDeviceApiToken; + if (l$refreshDeviceApiToken != lOther$refreshDeviceApiToken) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RefreshDeviceApiToken$api + on Mutation$RefreshDeviceApiToken$api { + CopyWith$Mutation$RefreshDeviceApiToken$api< + Mutation$RefreshDeviceApiToken$api> + get copyWith => CopyWith$Mutation$RefreshDeviceApiToken$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RefreshDeviceApiToken$api { + factory CopyWith$Mutation$RefreshDeviceApiToken$api( + Mutation$RefreshDeviceApiToken$api instance, + TRes Function(Mutation$RefreshDeviceApiToken$api) then, + ) = _CopyWithImpl$Mutation$RefreshDeviceApiToken$api; + + factory CopyWith$Mutation$RefreshDeviceApiToken$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$api; + + TRes call({ + Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken? + refreshDeviceApiToken, + String? $__typename, + }); + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken + get refreshDeviceApiToken; +} + +class _CopyWithImpl$Mutation$RefreshDeviceApiToken$api + implements CopyWith$Mutation$RefreshDeviceApiToken$api { + _CopyWithImpl$Mutation$RefreshDeviceApiToken$api( + this._instance, + this._then, + ); + + final Mutation$RefreshDeviceApiToken$api _instance; + + final TRes Function(Mutation$RefreshDeviceApiToken$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? refreshDeviceApiToken = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RefreshDeviceApiToken$api( + refreshDeviceApiToken: refreshDeviceApiToken == _undefined || + refreshDeviceApiToken == null + ? _instance.refreshDeviceApiToken + : (refreshDeviceApiToken + as Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken + get refreshDeviceApiToken { + final local$refreshDeviceApiToken = _instance.refreshDeviceApiToken; + return CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( + local$refreshDeviceApiToken, (e) => call(refreshDeviceApiToken: e)); + } +} + +class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$api + implements CopyWith$Mutation$RefreshDeviceApiToken$api { + _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$api(this._res); + + TRes _res; + + call({ + Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken? + refreshDeviceApiToken, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken + get refreshDeviceApiToken => + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken + .stub(_res); +} + +class Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken implements Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - Mutation$RefreshDeviceApiToken$refreshDeviceApiToken({ + Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken({ required this.code, required this.message, required this.success, @@ -10350,14 +11746,14 @@ class Mutation$RefreshDeviceApiToken$refreshDeviceApiToken this.token, }); - factory Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.fromJson( + factory Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$token = json['token']; - return Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( + return Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -10412,7 +11808,7 @@ class Mutation$RefreshDeviceApiToken$refreshDeviceApiToken if (identical(this, other)) { return true; } - if (!(other is Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) || + if (!(other is Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken) || runtimeType != other.runtimeType) { return false; } @@ -10445,27 +11841,28 @@ class Mutation$RefreshDeviceApiToken$refreshDeviceApiToken } } -extension UtilityExtension$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken - on Mutation$RefreshDeviceApiToken$refreshDeviceApiToken { - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< - Mutation$RefreshDeviceApiToken$refreshDeviceApiToken> +extension UtilityExtension$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken + on Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken { + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken< + Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken> get copyWith => - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( this, (i) => i, ); } -abstract class CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< +abstract class CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken< TRes> { - factory CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( - Mutation$RefreshDeviceApiToken$refreshDeviceApiToken instance, - TRes Function(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) then, - ) = _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken; + factory CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( + Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken instance, + TRes Function(Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken) + then, + ) = _CopyWithImpl$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken; - factory CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.stub( + factory CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken.stub( TRes res) = - _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken; + _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken; TRes call({ int? code, @@ -10476,17 +11873,19 @@ abstract class CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< }); } -class _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken +class _CopyWithImpl$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken< + TRes> implements - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken { - _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken< + TRes> { + _CopyWithImpl$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( this._instance, this._then, ); - final Mutation$RefreshDeviceApiToken$refreshDeviceApiToken _instance; + final Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken _instance; - final TRes Function(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) + final TRes Function(Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken) _then; static const _undefined = {}; @@ -10498,7 +11897,7 @@ class _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken Object? $__typename = _undefined, Object? token = _undefined, }) => - _then(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( + _then(Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -10514,11 +11913,12 @@ class _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken )); } -class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< +class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken< TRes> implements - CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken { - _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( + CopyWith$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken< + TRes> { + _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$api$refreshDeviceApiToken( this._res); TRes _res; @@ -10635,30 +12035,28 @@ class _CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken class Mutation$DeleteDeviceApiToken { Mutation$DeleteDeviceApiToken({ - required this.deleteDeviceApiToken, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$DeleteDeviceApiToken.fromJson(Map json) { - final l$deleteDeviceApiToken = json['deleteDeviceApiToken']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$DeleteDeviceApiToken( - deleteDeviceApiToken: - Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.fromJson( - (l$deleteDeviceApiToken as Map)), + api: Mutation$DeleteDeviceApiToken$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.delete_device_api_token` instead') - final Mutation$DeleteDeviceApiToken$deleteDeviceApiToken deleteDeviceApiToken; + final Mutation$DeleteDeviceApiToken$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$deleteDeviceApiToken = deleteDeviceApiToken; - _resultData['deleteDeviceApiToken'] = l$deleteDeviceApiToken.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -10666,10 +12064,10 @@ class Mutation$DeleteDeviceApiToken { @override int get hashCode { - final l$deleteDeviceApiToken = deleteDeviceApiToken; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$deleteDeviceApiToken, + l$api, l$$__typename, ]); } @@ -10683,9 +12081,9 @@ class Mutation$DeleteDeviceApiToken { runtimeType != other.runtimeType) { return false; } - final l$deleteDeviceApiToken = deleteDeviceApiToken; - final lOther$deleteDeviceApiToken = other.deleteDeviceApiToken; - if (l$deleteDeviceApiToken != lOther$deleteDeviceApiToken) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -10716,11 +12114,10 @@ abstract class CopyWith$Mutation$DeleteDeviceApiToken { _CopyWithStubImpl$Mutation$DeleteDeviceApiToken; TRes call({ - Mutation$DeleteDeviceApiToken$deleteDeviceApiToken? deleteDeviceApiToken, + Mutation$DeleteDeviceApiToken$api? api, String? $__typename, }); - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken - get deleteDeviceApiToken; + CopyWith$Mutation$DeleteDeviceApiToken$api get api; } class _CopyWithImpl$Mutation$DeleteDeviceApiToken @@ -10737,25 +12134,22 @@ class _CopyWithImpl$Mutation$DeleteDeviceApiToken static const _undefined = {}; TRes call({ - Object? deleteDeviceApiToken = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteDeviceApiToken( - deleteDeviceApiToken: - deleteDeviceApiToken == _undefined || deleteDeviceApiToken == null - ? _instance.deleteDeviceApiToken - : (deleteDeviceApiToken - as Mutation$DeleteDeviceApiToken$deleteDeviceApiToken), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$DeleteDeviceApiToken$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken - get deleteDeviceApiToken { - final local$deleteDeviceApiToken = _instance.deleteDeviceApiToken; - return CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( - local$deleteDeviceApiToken, (e) => call(deleteDeviceApiToken: e)); + CopyWith$Mutation$DeleteDeviceApiToken$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$DeleteDeviceApiToken$api( + local$api, (e) => call(api: e)); } } @@ -10766,15 +12160,13 @@ class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken TRes _res; call({ - Mutation$DeleteDeviceApiToken$deleteDeviceApiToken? deleteDeviceApiToken, + Mutation$DeleteDeviceApiToken$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken - get deleteDeviceApiToken => - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.stub( - _res); + CopyWith$Mutation$DeleteDeviceApiToken$api get api => + CopyWith$Mutation$DeleteDeviceApiToken$api.stub(_res); } const documentNodeMutationDeleteDeviceApiToken = DocumentNode(definitions: [ @@ -10795,19 +12187,34 @@ const documentNodeMutationDeleteDeviceApiToken = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'deleteDeviceApiToken'), + name: NameNode(value: 'api'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'device'), - value: VariableNode(name: NameNode(value: 'device')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'deleteDeviceApiToken'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'device'), + value: VariableNode(name: NameNode(value: 'device')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -10931,22 +12338,169 @@ extension ClientExtension$Mutation$DeleteDeviceApiToken this.watchMutation(options); } -class Mutation$DeleteDeviceApiToken$deleteDeviceApiToken +class Mutation$DeleteDeviceApiToken$api { + Mutation$DeleteDeviceApiToken$api({ + required this.deleteDeviceApiToken, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$DeleteDeviceApiToken$api.fromJson( + Map json) { + final l$deleteDeviceApiToken = json['deleteDeviceApiToken']; + final l$$__typename = json['__typename']; + return Mutation$DeleteDeviceApiToken$api( + deleteDeviceApiToken: + Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken.fromJson( + (l$deleteDeviceApiToken as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken + deleteDeviceApiToken; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$deleteDeviceApiToken = deleteDeviceApiToken; + _resultData['deleteDeviceApiToken'] = l$deleteDeviceApiToken.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$deleteDeviceApiToken = deleteDeviceApiToken; + final l$$__typename = $__typename; + return Object.hashAll([ + l$deleteDeviceApiToken, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$DeleteDeviceApiToken$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$deleteDeviceApiToken = deleteDeviceApiToken; + final lOther$deleteDeviceApiToken = other.deleteDeviceApiToken; + if (l$deleteDeviceApiToken != lOther$deleteDeviceApiToken) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$DeleteDeviceApiToken$api + on Mutation$DeleteDeviceApiToken$api { + CopyWith$Mutation$DeleteDeviceApiToken$api + get copyWith => CopyWith$Mutation$DeleteDeviceApiToken$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$DeleteDeviceApiToken$api { + factory CopyWith$Mutation$DeleteDeviceApiToken$api( + Mutation$DeleteDeviceApiToken$api instance, + TRes Function(Mutation$DeleteDeviceApiToken$api) then, + ) = _CopyWithImpl$Mutation$DeleteDeviceApiToken$api; + + factory CopyWith$Mutation$DeleteDeviceApiToken$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$api; + + TRes call({ + Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken? + deleteDeviceApiToken, + String? $__typename, + }); + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken + get deleteDeviceApiToken; +} + +class _CopyWithImpl$Mutation$DeleteDeviceApiToken$api + implements CopyWith$Mutation$DeleteDeviceApiToken$api { + _CopyWithImpl$Mutation$DeleteDeviceApiToken$api( + this._instance, + this._then, + ); + + final Mutation$DeleteDeviceApiToken$api _instance; + + final TRes Function(Mutation$DeleteDeviceApiToken$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? deleteDeviceApiToken = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$DeleteDeviceApiToken$api( + deleteDeviceApiToken: + deleteDeviceApiToken == _undefined || deleteDeviceApiToken == null + ? _instance.deleteDeviceApiToken + : (deleteDeviceApiToken + as Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken + get deleteDeviceApiToken { + final local$deleteDeviceApiToken = _instance.deleteDeviceApiToken; + return CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( + local$deleteDeviceApiToken, (e) => call(deleteDeviceApiToken: e)); + } +} + +class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$api + implements CopyWith$Mutation$DeleteDeviceApiToken$api { + _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$api(this._res); + + TRes _res; + + call({ + Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken? + deleteDeviceApiToken, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken + get deleteDeviceApiToken => + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken.stub( + _res); +} + +class Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$DeleteDeviceApiToken$deleteDeviceApiToken({ + Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.fromJson( + factory Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( + return Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -10994,7 +12548,7 @@ class Mutation$DeleteDeviceApiToken$deleteDeviceApiToken if (identical(this, other)) { return true; } - if (!(other is Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) || + if (!(other is Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken) || runtimeType != other.runtimeType) { return false; } @@ -11022,27 +12576,27 @@ class Mutation$DeleteDeviceApiToken$deleteDeviceApiToken } } -extension UtilityExtension$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken - on Mutation$DeleteDeviceApiToken$deleteDeviceApiToken { - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken< - Mutation$DeleteDeviceApiToken$deleteDeviceApiToken> +extension UtilityExtension$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken + on Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken { + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken< + Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken> get copyWith => - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( this, (i) => i, ); } -abstract class CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken< +abstract class CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken< TRes> { - factory CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( - Mutation$DeleteDeviceApiToken$deleteDeviceApiToken instance, - TRes Function(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) then, - ) = _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken; + factory CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( + Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken instance, + TRes Function(Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken) then, + ) = _CopyWithImpl$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken; - factory CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.stub( + factory CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken.stub( TRes res) = - _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken; + _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken; TRes call({ int? code, @@ -11052,17 +12606,18 @@ abstract class CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken< }); } -class _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken +class _CopyWithImpl$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken implements - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken { - _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken { + _CopyWithImpl$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( this._instance, this._then, ); - final Mutation$DeleteDeviceApiToken$deleteDeviceApiToken _instance; + final Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken _instance; - final TRes Function(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) _then; + final TRes Function(Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken) + _then; static const _undefined = {}; @@ -11072,7 +12627,7 @@ class _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( + _then(Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -11087,10 +12642,11 @@ class _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken )); } -class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken +class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken< + TRes> implements - CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken { - _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( + CopyWith$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken { + _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$api$deleteDeviceApiToken( this._res); TRes _res; @@ -11106,30 +12662,28 @@ class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken class Mutation$GetNewDeviceApiKey { Mutation$GetNewDeviceApiKey({ - required this.getNewDeviceApiKey, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$GetNewDeviceApiKey.fromJson(Map json) { - final l$getNewDeviceApiKey = json['getNewDeviceApiKey']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$GetNewDeviceApiKey( - getNewDeviceApiKey: - Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.fromJson( - (l$getNewDeviceApiKey as Map)), + api: Mutation$GetNewDeviceApiKey$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.get_new_device_api_key` instead') - final Mutation$GetNewDeviceApiKey$getNewDeviceApiKey getNewDeviceApiKey; + final Mutation$GetNewDeviceApiKey$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$getNewDeviceApiKey = getNewDeviceApiKey; - _resultData['getNewDeviceApiKey'] = l$getNewDeviceApiKey.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -11137,10 +12691,10 @@ class Mutation$GetNewDeviceApiKey { @override int get hashCode { - final l$getNewDeviceApiKey = getNewDeviceApiKey; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$getNewDeviceApiKey, + l$api, l$$__typename, ]); } @@ -11154,9 +12708,9 @@ class Mutation$GetNewDeviceApiKey { runtimeType != other.runtimeType) { return false; } - final l$getNewDeviceApiKey = getNewDeviceApiKey; - final lOther$getNewDeviceApiKey = other.getNewDeviceApiKey; - if (l$getNewDeviceApiKey != lOther$getNewDeviceApiKey) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -11187,11 +12741,10 @@ abstract class CopyWith$Mutation$GetNewDeviceApiKey { _CopyWithStubImpl$Mutation$GetNewDeviceApiKey; TRes call({ - Mutation$GetNewDeviceApiKey$getNewDeviceApiKey? getNewDeviceApiKey, + Mutation$GetNewDeviceApiKey$api? api, String? $__typename, }); - CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey - get getNewDeviceApiKey; + CopyWith$Mutation$GetNewDeviceApiKey$api get api; } class _CopyWithImpl$Mutation$GetNewDeviceApiKey @@ -11208,25 +12761,22 @@ class _CopyWithImpl$Mutation$GetNewDeviceApiKey static const _undefined = {}; TRes call({ - Object? getNewDeviceApiKey = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$GetNewDeviceApiKey( - getNewDeviceApiKey: - getNewDeviceApiKey == _undefined || getNewDeviceApiKey == null - ? _instance.getNewDeviceApiKey - : (getNewDeviceApiKey - as Mutation$GetNewDeviceApiKey$getNewDeviceApiKey), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$GetNewDeviceApiKey$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey - get getNewDeviceApiKey { - final local$getNewDeviceApiKey = _instance.getNewDeviceApiKey; - return CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( - local$getNewDeviceApiKey, (e) => call(getNewDeviceApiKey: e)); + CopyWith$Mutation$GetNewDeviceApiKey$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$GetNewDeviceApiKey$api( + local$api, (e) => call(api: e)); } } @@ -11237,14 +12787,13 @@ class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey TRes _res; call({ - Mutation$GetNewDeviceApiKey$getNewDeviceApiKey? getNewDeviceApiKey, + Mutation$GetNewDeviceApiKey$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey - get getNewDeviceApiKey => - CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.stub(_res); + CopyWith$Mutation$GetNewDeviceApiKey$api get api => + CopyWith$Mutation$GetNewDeviceApiKey$api.stub(_res); } const documentNodeMutationGetNewDeviceApiKey = DocumentNode(definitions: [ @@ -11255,21 +12804,36 @@ const documentNodeMutationGetNewDeviceApiKey = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'getNewDeviceApiKey'), + name: NameNode(value: 'api'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'key'), + name: NameNode(value: 'getNewDeviceApiKey'), alias: null, arguments: [], directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -11387,9 +12951,152 @@ extension ClientExtension$Mutation$GetNewDeviceApiKey on graphql.GraphQLClient { this.watchMutation(options ?? WatchOptions$Mutation$GetNewDeviceApiKey()); } -class Mutation$GetNewDeviceApiKey$getNewDeviceApiKey +class Mutation$GetNewDeviceApiKey$api { + Mutation$GetNewDeviceApiKey$api({ + required this.getNewDeviceApiKey, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$GetNewDeviceApiKey$api.fromJson(Map json) { + final l$getNewDeviceApiKey = json['getNewDeviceApiKey']; + final l$$__typename = json['__typename']; + return Mutation$GetNewDeviceApiKey$api( + getNewDeviceApiKey: + Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey.fromJson( + (l$getNewDeviceApiKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey getNewDeviceApiKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$getNewDeviceApiKey = getNewDeviceApiKey; + _resultData['getNewDeviceApiKey'] = l$getNewDeviceApiKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$getNewDeviceApiKey = getNewDeviceApiKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$getNewDeviceApiKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$GetNewDeviceApiKey$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$getNewDeviceApiKey = getNewDeviceApiKey; + final lOther$getNewDeviceApiKey = other.getNewDeviceApiKey; + if (l$getNewDeviceApiKey != lOther$getNewDeviceApiKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$GetNewDeviceApiKey$api + on Mutation$GetNewDeviceApiKey$api { + CopyWith$Mutation$GetNewDeviceApiKey$api + get copyWith => CopyWith$Mutation$GetNewDeviceApiKey$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$GetNewDeviceApiKey$api { + factory CopyWith$Mutation$GetNewDeviceApiKey$api( + Mutation$GetNewDeviceApiKey$api instance, + TRes Function(Mutation$GetNewDeviceApiKey$api) then, + ) = _CopyWithImpl$Mutation$GetNewDeviceApiKey$api; + + factory CopyWith$Mutation$GetNewDeviceApiKey$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$api; + + TRes call({ + Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey? getNewDeviceApiKey, + String? $__typename, + }); + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey + get getNewDeviceApiKey; +} + +class _CopyWithImpl$Mutation$GetNewDeviceApiKey$api + implements CopyWith$Mutation$GetNewDeviceApiKey$api { + _CopyWithImpl$Mutation$GetNewDeviceApiKey$api( + this._instance, + this._then, + ); + + final Mutation$GetNewDeviceApiKey$api _instance; + + final TRes Function(Mutation$GetNewDeviceApiKey$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? getNewDeviceApiKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$GetNewDeviceApiKey$api( + getNewDeviceApiKey: + getNewDeviceApiKey == _undefined || getNewDeviceApiKey == null + ? _instance.getNewDeviceApiKey + : (getNewDeviceApiKey + as Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey + get getNewDeviceApiKey { + final local$getNewDeviceApiKey = _instance.getNewDeviceApiKey; + return CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( + local$getNewDeviceApiKey, (e) => call(getNewDeviceApiKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$api + implements CopyWith$Mutation$GetNewDeviceApiKey$api { + _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$api(this._res); + + TRes _res; + + call({ + Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey? getNewDeviceApiKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey + get getNewDeviceApiKey => + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey.stub( + _res); +} + +class Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey implements Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { - Mutation$GetNewDeviceApiKey$getNewDeviceApiKey({ + Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey({ required this.code, required this.message, required this.success, @@ -11397,14 +13104,14 @@ class Mutation$GetNewDeviceApiKey$getNewDeviceApiKey this.key, }); - factory Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.fromJson( + factory Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$key = json['key']; - return Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( + return Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -11459,7 +13166,7 @@ class Mutation$GetNewDeviceApiKey$getNewDeviceApiKey if (identical(this, other)) { return true; } - if (!(other is Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) || + if (!(other is Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } @@ -11492,25 +13199,27 @@ class Mutation$GetNewDeviceApiKey$getNewDeviceApiKey } } -extension UtilityExtension$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey - on Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { - CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey< - Mutation$GetNewDeviceApiKey$getNewDeviceApiKey> - get copyWith => CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( +extension UtilityExtension$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey + on Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey { + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey< + Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey> + get copyWith => + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { - factory CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( - Mutation$GetNewDeviceApiKey$getNewDeviceApiKey instance, - TRes Function(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) then, - ) = _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey; +abstract class CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey< + TRes> { + factory CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( + Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey instance, + TRes Function(Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey) then, + ) = _CopyWithImpl$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey; - factory CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.stub( + factory CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey.stub( TRes res) = - _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey; + _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey; TRes call({ int? code, @@ -11521,16 +13230,17 @@ abstract class CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { }); } -class _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey - implements CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { - _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( +class _CopyWithImpl$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey + implements + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey { + _CopyWithImpl$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( this._instance, this._then, ); - final Mutation$GetNewDeviceApiKey$getNewDeviceApiKey _instance; + final Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey _instance; - final TRes Function(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) _then; + final TRes Function(Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey) _then; static const _undefined = {}; @@ -11541,7 +13251,7 @@ class _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey Object? $__typename = _undefined, Object? key = _undefined, }) => - _then(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( + _then(Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -11557,9 +13267,11 @@ class _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey )); } -class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey - implements CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { - _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(this._res); +class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey + implements + CopyWith$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey { + _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$api$getNewDeviceApiKey( + this._res); TRes _res; @@ -11575,33 +13287,29 @@ class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey class Mutation$InvalidateNewDeviceApiKey { Mutation$InvalidateNewDeviceApiKey({ - required this.invalidateNewDeviceApiKey, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$InvalidateNewDeviceApiKey.fromJson( Map json) { - final l$invalidateNewDeviceApiKey = json['invalidateNewDeviceApiKey']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$InvalidateNewDeviceApiKey( - invalidateNewDeviceApiKey: - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.fromJson( - (l$invalidateNewDeviceApiKey as Map)), + api: Mutation$InvalidateNewDeviceApiKey$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.invalidate_new_device_api_key` instead') - final Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey - invalidateNewDeviceApiKey; + final Mutation$InvalidateNewDeviceApiKey$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; - _resultData['invalidateNewDeviceApiKey'] = - l$invalidateNewDeviceApiKey.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -11609,10 +13317,10 @@ class Mutation$InvalidateNewDeviceApiKey { @override int get hashCode { - final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$invalidateNewDeviceApiKey, + l$api, l$$__typename, ]); } @@ -11626,9 +13334,9 @@ class Mutation$InvalidateNewDeviceApiKey { runtimeType != other.runtimeType) { return false; } - final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; - final lOther$invalidateNewDeviceApiKey = other.invalidateNewDeviceApiKey; - if (l$invalidateNewDeviceApiKey != lOther$invalidateNewDeviceApiKey) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -11660,12 +13368,10 @@ abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey { _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey; TRes call({ - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey? - invalidateNewDeviceApiKey, + Mutation$InvalidateNewDeviceApiKey$api? api, String? $__typename, }); - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey - get invalidateNewDeviceApiKey; + CopyWith$Mutation$InvalidateNewDeviceApiKey$api get api; } class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey @@ -11682,26 +13388,22 @@ class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey static const _undefined = {}; TRes call({ - Object? invalidateNewDeviceApiKey = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$InvalidateNewDeviceApiKey( - invalidateNewDeviceApiKey: invalidateNewDeviceApiKey == _undefined || - invalidateNewDeviceApiKey == null - ? _instance.invalidateNewDeviceApiKey - : (invalidateNewDeviceApiKey - as Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$InvalidateNewDeviceApiKey$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey - get invalidateNewDeviceApiKey { - final local$invalidateNewDeviceApiKey = _instance.invalidateNewDeviceApiKey; - return CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( - local$invalidateNewDeviceApiKey, - (e) => call(invalidateNewDeviceApiKey: e)); + CopyWith$Mutation$InvalidateNewDeviceApiKey$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$InvalidateNewDeviceApiKey$api( + local$api, (e) => call(api: e)); } } @@ -11712,16 +13414,13 @@ class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey TRes _res; call({ - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey? - invalidateNewDeviceApiKey, + Mutation$InvalidateNewDeviceApiKey$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey - get invalidateNewDeviceApiKey => - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey - .stub(_res); + CopyWith$Mutation$InvalidateNewDeviceApiKey$api get api => + CopyWith$Mutation$InvalidateNewDeviceApiKey$api.stub(_res); } const documentNodeMutationInvalidateNewDeviceApiKey = @@ -11733,14 +13432,29 @@ const documentNodeMutationInvalidateNewDeviceApiKey = directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'invalidateNewDeviceApiKey'), + name: NameNode(value: 'api'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'invalidateNewDeviceApiKey'), + alias: null, + arguments: [], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -11862,22 +13576,173 @@ extension ClientExtension$Mutation$InvalidateNewDeviceApiKey options ?? WatchOptions$Mutation$InvalidateNewDeviceApiKey()); } -class Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey +class Mutation$InvalidateNewDeviceApiKey$api { + Mutation$InvalidateNewDeviceApiKey$api({ + required this.invalidateNewDeviceApiKey, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$InvalidateNewDeviceApiKey$api.fromJson( + Map json) { + final l$invalidateNewDeviceApiKey = json['invalidateNewDeviceApiKey']; + final l$$__typename = json['__typename']; + return Mutation$InvalidateNewDeviceApiKey$api( + invalidateNewDeviceApiKey: + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey + .fromJson((l$invalidateNewDeviceApiKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey + invalidateNewDeviceApiKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; + _resultData['invalidateNewDeviceApiKey'] = + l$invalidateNewDeviceApiKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$invalidateNewDeviceApiKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$InvalidateNewDeviceApiKey$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; + final lOther$invalidateNewDeviceApiKey = other.invalidateNewDeviceApiKey; + if (l$invalidateNewDeviceApiKey != lOther$invalidateNewDeviceApiKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$InvalidateNewDeviceApiKey$api + on Mutation$InvalidateNewDeviceApiKey$api { + CopyWith$Mutation$InvalidateNewDeviceApiKey$api< + Mutation$InvalidateNewDeviceApiKey$api> + get copyWith => CopyWith$Mutation$InvalidateNewDeviceApiKey$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey$api { + factory CopyWith$Mutation$InvalidateNewDeviceApiKey$api( + Mutation$InvalidateNewDeviceApiKey$api instance, + TRes Function(Mutation$InvalidateNewDeviceApiKey$api) then, + ) = _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$api; + + factory CopyWith$Mutation$InvalidateNewDeviceApiKey$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$api; + + TRes call({ + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey? + invalidateNewDeviceApiKey, + String? $__typename, + }); + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< + TRes> get invalidateNewDeviceApiKey; +} + +class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$api + implements CopyWith$Mutation$InvalidateNewDeviceApiKey$api { + _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$api( + this._instance, + this._then, + ); + + final Mutation$InvalidateNewDeviceApiKey$api _instance; + + final TRes Function(Mutation$InvalidateNewDeviceApiKey$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? invalidateNewDeviceApiKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$InvalidateNewDeviceApiKey$api( + invalidateNewDeviceApiKey: invalidateNewDeviceApiKey == _undefined || + invalidateNewDeviceApiKey == null + ? _instance.invalidateNewDeviceApiKey + : (invalidateNewDeviceApiKey + as Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< + TRes> get invalidateNewDeviceApiKey { + final local$invalidateNewDeviceApiKey = _instance.invalidateNewDeviceApiKey; + return CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( + local$invalidateNewDeviceApiKey, + (e) => call(invalidateNewDeviceApiKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$api + implements CopyWith$Mutation$InvalidateNewDeviceApiKey$api { + _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$api(this._res); + + TRes _res; + + call({ + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey? + invalidateNewDeviceApiKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< + TRes> + get invalidateNewDeviceApiKey => + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey + .stub(_res); +} + +class Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey({ + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.fromJson( + factory Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( + return Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -11926,7 +13791,7 @@ class Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey return true; } if (!(other - is Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) || + is Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } @@ -11954,28 +13819,29 @@ class Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey } } -extension UtilityExtension$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey - on Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey { - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey> +extension UtilityExtension$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey + on Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey { + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey> get copyWith => - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< +abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< TRes> { - factory CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey instance, - TRes Function(Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) + factory CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey instance, + TRes Function( + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey) then, - ) = _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey; + ) = _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey; - factory CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.stub( + factory CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey.stub( TRes res) = - _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey; + _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey; TRes call({ int? code, @@ -11985,20 +13851,21 @@ abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceAp }); } -class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< +class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< TRes> implements - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< TRes> { - _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( + _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( this._instance, this._then, ); - final Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey _instance; + final Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey + _instance; final TRes Function( - Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) _then; + Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey) _then; static const _undefined = {}; @@ -12008,7 +13875,7 @@ class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( + _then(Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -12023,12 +13890,12 @@ class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey )); } -class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< +class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< TRes> implements - CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< + CopyWith$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey< TRes> { - _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( + _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$api$invalidateNewDeviceApiKey( this._res); TRes _res; @@ -12148,34 +14015,29 @@ class _CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey class Mutation$AuthorizeWithNewDeviceApiKey { Mutation$AuthorizeWithNewDeviceApiKey({ - required this.authorizeWithNewDeviceApiKey, + required this.api, this.$__typename = 'Mutation', }); factory Mutation$AuthorizeWithNewDeviceApiKey.fromJson( Map json) { - final l$authorizeWithNewDeviceApiKey = json['authorizeWithNewDeviceApiKey']; + final l$api = json['api']; final l$$__typename = json['__typename']; return Mutation$AuthorizeWithNewDeviceApiKey( - authorizeWithNewDeviceApiKey: - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey - .fromJson( - (l$authorizeWithNewDeviceApiKey as Map)), + api: Mutation$AuthorizeWithNewDeviceApiKey$api.fromJson( + (l$api as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `api.authorize_with_new_device_api_key` instead') - final Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey - authorizeWithNewDeviceApiKey; + final Mutation$AuthorizeWithNewDeviceApiKey$api api; final String $__typename; Map toJson() { final _resultData = {}; - final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; - _resultData['authorizeWithNewDeviceApiKey'] = - l$authorizeWithNewDeviceApiKey.toJson(); + final l$api = api; + _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -12183,10 +14045,10 @@ class Mutation$AuthorizeWithNewDeviceApiKey { @override int get hashCode { - final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; + final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ - l$authorizeWithNewDeviceApiKey, + l$api, l$$__typename, ]); } @@ -12200,10 +14062,9 @@ class Mutation$AuthorizeWithNewDeviceApiKey { runtimeType != other.runtimeType) { return false; } - final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; - final lOther$authorizeWithNewDeviceApiKey = - other.authorizeWithNewDeviceApiKey; - if (l$authorizeWithNewDeviceApiKey != lOther$authorizeWithNewDeviceApiKey) { + final l$api = api; + final lOther$api = other.api; + if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; @@ -12235,12 +14096,10 @@ abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey { _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey; TRes call({ - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey? - authorizeWithNewDeviceApiKey, + Mutation$AuthorizeWithNewDeviceApiKey$api? api, String? $__typename, }); - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< - TRes> get authorizeWithNewDeviceApiKey; + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api get api; } class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey @@ -12257,28 +14116,22 @@ class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey static const _undefined = {}; TRes call({ - Object? authorizeWithNewDeviceApiKey = _undefined, + Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$AuthorizeWithNewDeviceApiKey( - authorizeWithNewDeviceApiKey: authorizeWithNewDeviceApiKey == - _undefined || - authorizeWithNewDeviceApiKey == null - ? _instance.authorizeWithNewDeviceApiKey - : (authorizeWithNewDeviceApiKey - as Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey), + api: api == _undefined || api == null + ? _instance.api + : (api as Mutation$AuthorizeWithNewDeviceApiKey$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< - TRes> get authorizeWithNewDeviceApiKey { - final local$authorizeWithNewDeviceApiKey = - _instance.authorizeWithNewDeviceApiKey; - return CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( - local$authorizeWithNewDeviceApiKey, - (e) => call(authorizeWithNewDeviceApiKey: e)); + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api get api { + final local$api = _instance.api; + return CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api( + local$api, (e) => call(api: e)); } } @@ -12289,17 +14142,13 @@ class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey TRes _res; call({ - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey? - authorizeWithNewDeviceApiKey, + Mutation$AuthorizeWithNewDeviceApiKey$api? api, String? $__typename, }) => _res; - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< - TRes> - get authorizeWithNewDeviceApiKey => - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey - .stub(_res); + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api get api => + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api.stub(_res); } const documentNodeMutationAuthorizeWithNewDeviceApiKey = @@ -12321,26 +14170,41 @@ const documentNodeMutationAuthorizeWithNewDeviceApiKey = directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'authorizeWithNewDeviceApiKey'), + name: NameNode(value: 'api'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: VariableNode(name: NameNode(value: 'input')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'token'), + name: NameNode(value: 'authorizeWithNewDeviceApiKey'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'input'), + value: VariableNode(name: NameNode(value: 'input')), + ) + ], directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'token'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -12465,10 +14329,165 @@ extension ClientExtension$Mutation$AuthorizeWithNewDeviceApiKey this.watchMutation(options); } -class Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey +class Mutation$AuthorizeWithNewDeviceApiKey$api { + Mutation$AuthorizeWithNewDeviceApiKey$api({ + required this.authorizeWithNewDeviceApiKey, + this.$__typename = 'ApiMutations', + }); + + factory Mutation$AuthorizeWithNewDeviceApiKey$api.fromJson( + Map json) { + final l$authorizeWithNewDeviceApiKey = json['authorizeWithNewDeviceApiKey']; + final l$$__typename = json['__typename']; + return Mutation$AuthorizeWithNewDeviceApiKey$api( + authorizeWithNewDeviceApiKey: + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey + .fromJson( + (l$authorizeWithNewDeviceApiKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey + authorizeWithNewDeviceApiKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; + _resultData['authorizeWithNewDeviceApiKey'] = + l$authorizeWithNewDeviceApiKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$authorizeWithNewDeviceApiKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$AuthorizeWithNewDeviceApiKey$api) || + runtimeType != other.runtimeType) { + return false; + } + final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; + final lOther$authorizeWithNewDeviceApiKey = + other.authorizeWithNewDeviceApiKey; + if (l$authorizeWithNewDeviceApiKey != lOther$authorizeWithNewDeviceApiKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey$api + on Mutation$AuthorizeWithNewDeviceApiKey$api { + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api< + Mutation$AuthorizeWithNewDeviceApiKey$api> + get copyWith => CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api { + factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api( + Mutation$AuthorizeWithNewDeviceApiKey$api instance, + TRes Function(Mutation$AuthorizeWithNewDeviceApiKey$api) then, + ) = _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$api; + + factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api.stub(TRes res) = + _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$api; + + TRes call({ + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey? + authorizeWithNewDeviceApiKey, + String? $__typename, + }); + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< + TRes> get authorizeWithNewDeviceApiKey; +} + +class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$api + implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api { + _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$api( + this._instance, + this._then, + ); + + final Mutation$AuthorizeWithNewDeviceApiKey$api _instance; + + final TRes Function(Mutation$AuthorizeWithNewDeviceApiKey$api) _then; + + static const _undefined = {}; + + TRes call({ + Object? authorizeWithNewDeviceApiKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$AuthorizeWithNewDeviceApiKey$api( + authorizeWithNewDeviceApiKey: authorizeWithNewDeviceApiKey == + _undefined || + authorizeWithNewDeviceApiKey == null + ? _instance.authorizeWithNewDeviceApiKey + : (authorizeWithNewDeviceApiKey + as Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< + TRes> get authorizeWithNewDeviceApiKey { + final local$authorizeWithNewDeviceApiKey = + _instance.authorizeWithNewDeviceApiKey; + return CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( + local$authorizeWithNewDeviceApiKey, + (e) => call(authorizeWithNewDeviceApiKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$api + implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api { + _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$api(this._res); + + TRes _res; + + call({ + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey? + authorizeWithNewDeviceApiKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< + TRes> + get authorizeWithNewDeviceApiKey => + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey + .stub(_res); +} + +class Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey implements Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey({ + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey({ required this.code, required this.message, required this.success, @@ -12476,14 +14495,14 @@ class Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey this.token, }); - factory Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey.fromJson( + factory Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$token = json['token']; - return Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( + return Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -12539,7 +14558,7 @@ class Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey return true; } if (!(other - is Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) || + is Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } @@ -12572,29 +14591,30 @@ class Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey } } -extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey - on Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey { - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey> +extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey + on Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey { + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey> get copyWith => - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< +abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< TRes> { - factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey instance, + factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey + instance, TRes Function( - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey) then, - ) = _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey; + ) = _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey; - factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey.stub( + factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey.stub( TRes res) = - _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey; + _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey; TRes call({ int? code, @@ -12605,21 +14625,22 @@ abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDe }); } -class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< +class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< TRes> implements - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< TRes> { - _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( + _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( this._instance, this._then, ); - final Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey + final Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey _instance; final TRes Function( - Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) _then; + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey) + _then; static const _undefined = {}; @@ -12630,7 +14651,8 @@ class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDevice Object? $__typename = _undefined, Object? token = _undefined, }) => - _then(Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( + _then( + Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -12646,12 +14668,12 @@ class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDevice )); } -class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< +class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< TRes> implements - CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< + CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey< TRes> { - _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( + _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$api$authorizeWithNewDeviceApiKey( this._res); TRes _res; diff --git a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql index 6de0a67a..ca6c5078 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql @@ -45,16 +45,20 @@ query GetDnsRecords { } mutation ChangeTimezone($timezone: String!) { - changeTimezone(timezone: $timezone) { - ...basicMutationReturnFields - timezone + system { + changeTimezone(timezone: $timezone) { + ...basicMutationReturnFields + timezone + } } } mutation ChangeAutoUpgradeSettings($settings: AutoUpgradeSettingsInput!) { - changeAutoUpgradeSettings(settings: $settings) { - ...basicMutationReturnFields - allowReboot - enableAutoUpgrade + system { + changeAutoUpgradeSettings(settings: $settings) { + ...basicMutationReturnFields + allowReboot + enableAutoUpgrade + } } } diff --git a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart index 52989adf..6e461a41 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart @@ -2692,29 +2692,28 @@ class _CopyWithStubImpl$Variables$Mutation$ChangeTimezone class Mutation$ChangeTimezone { Mutation$ChangeTimezone({ - required this.changeTimezone, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$ChangeTimezone.fromJson(Map json) { - final l$changeTimezone = json['changeTimezone']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$ChangeTimezone( - changeTimezone: Mutation$ChangeTimezone$changeTimezone.fromJson( - (l$changeTimezone as Map)), + system: Mutation$ChangeTimezone$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.change_timezone` instead') - final Mutation$ChangeTimezone$changeTimezone changeTimezone; + final Mutation$ChangeTimezone$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$changeTimezone = changeTimezone; - _resultData['changeTimezone'] = l$changeTimezone.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2722,10 +2721,10 @@ class Mutation$ChangeTimezone { @override int get hashCode { - final l$changeTimezone = changeTimezone; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$changeTimezone, + l$system, l$$__typename, ]); } @@ -2739,9 +2738,9 @@ class Mutation$ChangeTimezone { runtimeType != other.runtimeType) { return false; } - final l$changeTimezone = changeTimezone; - final lOther$changeTimezone = other.changeTimezone; - if (l$changeTimezone != lOther$changeTimezone) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -2771,10 +2770,10 @@ abstract class CopyWith$Mutation$ChangeTimezone { _CopyWithStubImpl$Mutation$ChangeTimezone; TRes call({ - Mutation$ChangeTimezone$changeTimezone? changeTimezone, + Mutation$ChangeTimezone$system? system, String? $__typename, }); - CopyWith$Mutation$ChangeTimezone$changeTimezone get changeTimezone; + CopyWith$Mutation$ChangeTimezone$system get system; } class _CopyWithImpl$Mutation$ChangeTimezone @@ -2791,22 +2790,22 @@ class _CopyWithImpl$Mutation$ChangeTimezone static const _undefined = {}; TRes call({ - Object? changeTimezone = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$ChangeTimezone( - changeTimezone: changeTimezone == _undefined || changeTimezone == null - ? _instance.changeTimezone - : (changeTimezone as Mutation$ChangeTimezone$changeTimezone), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$ChangeTimezone$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$ChangeTimezone$changeTimezone get changeTimezone { - final local$changeTimezone = _instance.changeTimezone; - return CopyWith$Mutation$ChangeTimezone$changeTimezone( - local$changeTimezone, (e) => call(changeTimezone: e)); + CopyWith$Mutation$ChangeTimezone$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$ChangeTimezone$system( + local$system, (e) => call(system: e)); } } @@ -2817,13 +2816,13 @@ class _CopyWithStubImpl$Mutation$ChangeTimezone TRes _res; call({ - Mutation$ChangeTimezone$changeTimezone? changeTimezone, + Mutation$ChangeTimezone$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$ChangeTimezone$changeTimezone get changeTimezone => - CopyWith$Mutation$ChangeTimezone$changeTimezone.stub(_res); + CopyWith$Mutation$ChangeTimezone$system get system => + CopyWith$Mutation$ChangeTimezone$system.stub(_res); } const documentNodeMutationChangeTimezone = DocumentNode(definitions: [ @@ -2844,26 +2843,41 @@ const documentNodeMutationChangeTimezone = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'changeTimezone'), + name: NameNode(value: 'system'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'timezone'), - value: VariableNode(name: NameNode(value: 'timezone')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'timezone'), + name: NameNode(value: 'changeTimezone'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'timezone'), + value: VariableNode(name: NameNode(value: 'timezone')), + ) + ], directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'timezone'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -2982,9 +2996,148 @@ extension ClientExtension$Mutation$ChangeTimezone on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$ChangeTimezone$changeTimezone +class Mutation$ChangeTimezone$system { + Mutation$ChangeTimezone$system({ + required this.changeTimezone, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$ChangeTimezone$system.fromJson(Map json) { + final l$changeTimezone = json['changeTimezone']; + final l$$__typename = json['__typename']; + return Mutation$ChangeTimezone$system( + changeTimezone: Mutation$ChangeTimezone$system$changeTimezone.fromJson( + (l$changeTimezone as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$ChangeTimezone$system$changeTimezone changeTimezone; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$changeTimezone = changeTimezone; + _resultData['changeTimezone'] = l$changeTimezone.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$changeTimezone = changeTimezone; + final l$$__typename = $__typename; + return Object.hashAll([ + l$changeTimezone, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$ChangeTimezone$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$changeTimezone = changeTimezone; + final lOther$changeTimezone = other.changeTimezone; + if (l$changeTimezone != lOther$changeTimezone) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$ChangeTimezone$system + on Mutation$ChangeTimezone$system { + CopyWith$Mutation$ChangeTimezone$system + get copyWith => CopyWith$Mutation$ChangeTimezone$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$ChangeTimezone$system { + factory CopyWith$Mutation$ChangeTimezone$system( + Mutation$ChangeTimezone$system instance, + TRes Function(Mutation$ChangeTimezone$system) then, + ) = _CopyWithImpl$Mutation$ChangeTimezone$system; + + factory CopyWith$Mutation$ChangeTimezone$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$ChangeTimezone$system; + + TRes call({ + Mutation$ChangeTimezone$system$changeTimezone? changeTimezone, + String? $__typename, + }); + CopyWith$Mutation$ChangeTimezone$system$changeTimezone + get changeTimezone; +} + +class _CopyWithImpl$Mutation$ChangeTimezone$system + implements CopyWith$Mutation$ChangeTimezone$system { + _CopyWithImpl$Mutation$ChangeTimezone$system( + this._instance, + this._then, + ); + + final Mutation$ChangeTimezone$system _instance; + + final TRes Function(Mutation$ChangeTimezone$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? changeTimezone = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$ChangeTimezone$system( + changeTimezone: changeTimezone == _undefined || changeTimezone == null + ? _instance.changeTimezone + : (changeTimezone as Mutation$ChangeTimezone$system$changeTimezone), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$ChangeTimezone$system$changeTimezone + get changeTimezone { + final local$changeTimezone = _instance.changeTimezone; + return CopyWith$Mutation$ChangeTimezone$system$changeTimezone( + local$changeTimezone, (e) => call(changeTimezone: e)); + } +} + +class _CopyWithStubImpl$Mutation$ChangeTimezone$system + implements CopyWith$Mutation$ChangeTimezone$system { + _CopyWithStubImpl$Mutation$ChangeTimezone$system(this._res); + + TRes _res; + + call({ + Mutation$ChangeTimezone$system$changeTimezone? changeTimezone, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$ChangeTimezone$system$changeTimezone + get changeTimezone => + CopyWith$Mutation$ChangeTimezone$system$changeTimezone.stub(_res); +} + +class Mutation$ChangeTimezone$system$changeTimezone implements Fragment$basicMutationReturnFields$$TimezoneMutationReturn { - Mutation$ChangeTimezone$changeTimezone({ + Mutation$ChangeTimezone$system$changeTimezone({ required this.code, required this.message, required this.success, @@ -2992,14 +3145,14 @@ class Mutation$ChangeTimezone$changeTimezone this.timezone, }); - factory Mutation$ChangeTimezone$changeTimezone.fromJson( + factory Mutation$ChangeTimezone$system$changeTimezone.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$timezone = json['timezone']; - return Mutation$ChangeTimezone$changeTimezone( + return Mutation$ChangeTimezone$system$changeTimezone( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3054,7 +3207,7 @@ class Mutation$ChangeTimezone$changeTimezone if (identical(this, other)) { return true; } - if (!(other is Mutation$ChangeTimezone$changeTimezone) || + if (!(other is Mutation$ChangeTimezone$system$changeTimezone) || runtimeType != other.runtimeType) { return false; } @@ -3087,24 +3240,25 @@ class Mutation$ChangeTimezone$changeTimezone } } -extension UtilityExtension$Mutation$ChangeTimezone$changeTimezone - on Mutation$ChangeTimezone$changeTimezone { - CopyWith$Mutation$ChangeTimezone$changeTimezone< - Mutation$ChangeTimezone$changeTimezone> - get copyWith => CopyWith$Mutation$ChangeTimezone$changeTimezone( +extension UtilityExtension$Mutation$ChangeTimezone$system$changeTimezone + on Mutation$ChangeTimezone$system$changeTimezone { + CopyWith$Mutation$ChangeTimezone$system$changeTimezone< + Mutation$ChangeTimezone$system$changeTimezone> + get copyWith => CopyWith$Mutation$ChangeTimezone$system$changeTimezone( this, (i) => i, ); } -abstract class CopyWith$Mutation$ChangeTimezone$changeTimezone { - factory CopyWith$Mutation$ChangeTimezone$changeTimezone( - Mutation$ChangeTimezone$changeTimezone instance, - TRes Function(Mutation$ChangeTimezone$changeTimezone) then, - ) = _CopyWithImpl$Mutation$ChangeTimezone$changeTimezone; +abstract class CopyWith$Mutation$ChangeTimezone$system$changeTimezone { + factory CopyWith$Mutation$ChangeTimezone$system$changeTimezone( + Mutation$ChangeTimezone$system$changeTimezone instance, + TRes Function(Mutation$ChangeTimezone$system$changeTimezone) then, + ) = _CopyWithImpl$Mutation$ChangeTimezone$system$changeTimezone; - factory CopyWith$Mutation$ChangeTimezone$changeTimezone.stub(TRes res) = - _CopyWithStubImpl$Mutation$ChangeTimezone$changeTimezone; + factory CopyWith$Mutation$ChangeTimezone$system$changeTimezone.stub( + TRes res) = + _CopyWithStubImpl$Mutation$ChangeTimezone$system$changeTimezone; TRes call({ int? code, @@ -3115,16 +3269,16 @@ abstract class CopyWith$Mutation$ChangeTimezone$changeTimezone { }); } -class _CopyWithImpl$Mutation$ChangeTimezone$changeTimezone - implements CopyWith$Mutation$ChangeTimezone$changeTimezone { - _CopyWithImpl$Mutation$ChangeTimezone$changeTimezone( +class _CopyWithImpl$Mutation$ChangeTimezone$system$changeTimezone + implements CopyWith$Mutation$ChangeTimezone$system$changeTimezone { + _CopyWithImpl$Mutation$ChangeTimezone$system$changeTimezone( this._instance, this._then, ); - final Mutation$ChangeTimezone$changeTimezone _instance; + final Mutation$ChangeTimezone$system$changeTimezone _instance; - final TRes Function(Mutation$ChangeTimezone$changeTimezone) _then; + final TRes Function(Mutation$ChangeTimezone$system$changeTimezone) _then; static const _undefined = {}; @@ -3135,7 +3289,7 @@ class _CopyWithImpl$Mutation$ChangeTimezone$changeTimezone Object? $__typename = _undefined, Object? timezone = _undefined, }) => - _then(Mutation$ChangeTimezone$changeTimezone( + _then(Mutation$ChangeTimezone$system$changeTimezone( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3152,9 +3306,9 @@ class _CopyWithImpl$Mutation$ChangeTimezone$changeTimezone )); } -class _CopyWithStubImpl$Mutation$ChangeTimezone$changeTimezone - implements CopyWith$Mutation$ChangeTimezone$changeTimezone { - _CopyWithStubImpl$Mutation$ChangeTimezone$changeTimezone(this._res); +class _CopyWithStubImpl$Mutation$ChangeTimezone$system$changeTimezone + implements CopyWith$Mutation$ChangeTimezone$system$changeTimezone { + _CopyWithStubImpl$Mutation$ChangeTimezone$system$changeTimezone(this._res); TRes _res; @@ -3273,33 +3427,29 @@ class _CopyWithStubImpl$Variables$Mutation$ChangeAutoUpgradeSettings class Mutation$ChangeAutoUpgradeSettings { Mutation$ChangeAutoUpgradeSettings({ - required this.changeAutoUpgradeSettings, + required this.system, this.$__typename = 'Mutation', }); factory Mutation$ChangeAutoUpgradeSettings.fromJson( Map json) { - final l$changeAutoUpgradeSettings = json['changeAutoUpgradeSettings']; + final l$system = json['system']; final l$$__typename = json['__typename']; return Mutation$ChangeAutoUpgradeSettings( - changeAutoUpgradeSettings: - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings.fromJson( - (l$changeAutoUpgradeSettings as Map)), + system: Mutation$ChangeAutoUpgradeSettings$system.fromJson( + (l$system as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `system.change_auto_upgrade_settings` instead') - final Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings - changeAutoUpgradeSettings; + final Mutation$ChangeAutoUpgradeSettings$system system; final String $__typename; Map toJson() { final _resultData = {}; - final l$changeAutoUpgradeSettings = changeAutoUpgradeSettings; - _resultData['changeAutoUpgradeSettings'] = - l$changeAutoUpgradeSettings.toJson(); + final l$system = system; + _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3307,10 +3457,10 @@ class Mutation$ChangeAutoUpgradeSettings { @override int get hashCode { - final l$changeAutoUpgradeSettings = changeAutoUpgradeSettings; + final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ - l$changeAutoUpgradeSettings, + l$system, l$$__typename, ]); } @@ -3324,9 +3474,9 @@ class Mutation$ChangeAutoUpgradeSettings { runtimeType != other.runtimeType) { return false; } - final l$changeAutoUpgradeSettings = changeAutoUpgradeSettings; - final lOther$changeAutoUpgradeSettings = other.changeAutoUpgradeSettings; - if (l$changeAutoUpgradeSettings != lOther$changeAutoUpgradeSettings) { + final l$system = system; + final lOther$system = other.system; + if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; @@ -3358,12 +3508,10 @@ abstract class CopyWith$Mutation$ChangeAutoUpgradeSettings { _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings; TRes call({ - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings? - changeAutoUpgradeSettings, + Mutation$ChangeAutoUpgradeSettings$system? system, String? $__typename, }); - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings - get changeAutoUpgradeSettings; + CopyWith$Mutation$ChangeAutoUpgradeSettings$system get system; } class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings @@ -3380,26 +3528,22 @@ class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings static const _undefined = {}; TRes call({ - Object? changeAutoUpgradeSettings = _undefined, + Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$ChangeAutoUpgradeSettings( - changeAutoUpgradeSettings: changeAutoUpgradeSettings == _undefined || - changeAutoUpgradeSettings == null - ? _instance.changeAutoUpgradeSettings - : (changeAutoUpgradeSettings - as Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings), + system: system == _undefined || system == null + ? _instance.system + : (system as Mutation$ChangeAutoUpgradeSettings$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings - get changeAutoUpgradeSettings { - final local$changeAutoUpgradeSettings = _instance.changeAutoUpgradeSettings; - return CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( - local$changeAutoUpgradeSettings, - (e) => call(changeAutoUpgradeSettings: e)); + CopyWith$Mutation$ChangeAutoUpgradeSettings$system get system { + final local$system = _instance.system; + return CopyWith$Mutation$ChangeAutoUpgradeSettings$system( + local$system, (e) => call(system: e)); } } @@ -3410,16 +3554,13 @@ class _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings TRes _res; call({ - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings? - changeAutoUpgradeSettings, + Mutation$ChangeAutoUpgradeSettings$system? system, String? $__typename, }) => _res; - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings - get changeAutoUpgradeSettings => - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings - .stub(_res); + CopyWith$Mutation$ChangeAutoUpgradeSettings$system get system => + CopyWith$Mutation$ChangeAutoUpgradeSettings$system.stub(_res); } const documentNodeMutationChangeAutoUpgradeSettings = @@ -3441,33 +3582,48 @@ const documentNodeMutationChangeAutoUpgradeSettings = directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'changeAutoUpgradeSettings'), + name: NameNode(value: 'system'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'settings'), - value: VariableNode(name: NameNode(value: 'settings')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'allowReboot'), + name: NameNode(value: 'changeAutoUpgradeSettings'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'settings'), + value: VariableNode(name: NameNode(value: 'settings')), + ) + ], directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'enableAutoUpgrade'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: 'allowReboot'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: 'enableAutoUpgrade'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -3591,10 +3747,161 @@ extension ClientExtension$Mutation$ChangeAutoUpgradeSettings this.watchMutation(options); } -class Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings +class Mutation$ChangeAutoUpgradeSettings$system { + Mutation$ChangeAutoUpgradeSettings$system({ + required this.changeAutoUpgradeSettings, + this.$__typename = 'SystemMutations', + }); + + factory Mutation$ChangeAutoUpgradeSettings$system.fromJson( + Map json) { + final l$changeAutoUpgradeSettings = json['changeAutoUpgradeSettings']; + final l$$__typename = json['__typename']; + return Mutation$ChangeAutoUpgradeSettings$system( + changeAutoUpgradeSettings: + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings + .fromJson((l$changeAutoUpgradeSettings as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings + changeAutoUpgradeSettings; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$changeAutoUpgradeSettings = changeAutoUpgradeSettings; + _resultData['changeAutoUpgradeSettings'] = + l$changeAutoUpgradeSettings.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$changeAutoUpgradeSettings = changeAutoUpgradeSettings; + final l$$__typename = $__typename; + return Object.hashAll([ + l$changeAutoUpgradeSettings, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$ChangeAutoUpgradeSettings$system) || + runtimeType != other.runtimeType) { + return false; + } + final l$changeAutoUpgradeSettings = changeAutoUpgradeSettings; + final lOther$changeAutoUpgradeSettings = other.changeAutoUpgradeSettings; + if (l$changeAutoUpgradeSettings != lOther$changeAutoUpgradeSettings) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$ChangeAutoUpgradeSettings$system + on Mutation$ChangeAutoUpgradeSettings$system { + CopyWith$Mutation$ChangeAutoUpgradeSettings$system< + Mutation$ChangeAutoUpgradeSettings$system> + get copyWith => CopyWith$Mutation$ChangeAutoUpgradeSettings$system( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$ChangeAutoUpgradeSettings$system { + factory CopyWith$Mutation$ChangeAutoUpgradeSettings$system( + Mutation$ChangeAutoUpgradeSettings$system instance, + TRes Function(Mutation$ChangeAutoUpgradeSettings$system) then, + ) = _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$system; + + factory CopyWith$Mutation$ChangeAutoUpgradeSettings$system.stub(TRes res) = + _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$system; + + TRes call({ + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings? + changeAutoUpgradeSettings, + String? $__typename, + }); + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< + TRes> get changeAutoUpgradeSettings; +} + +class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$system + implements CopyWith$Mutation$ChangeAutoUpgradeSettings$system { + _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$system( + this._instance, + this._then, + ); + + final Mutation$ChangeAutoUpgradeSettings$system _instance; + + final TRes Function(Mutation$ChangeAutoUpgradeSettings$system) _then; + + static const _undefined = {}; + + TRes call({ + Object? changeAutoUpgradeSettings = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$ChangeAutoUpgradeSettings$system( + changeAutoUpgradeSettings: changeAutoUpgradeSettings == _undefined || + changeAutoUpgradeSettings == null + ? _instance.changeAutoUpgradeSettings + : (changeAutoUpgradeSettings + as Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< + TRes> get changeAutoUpgradeSettings { + final local$changeAutoUpgradeSettings = _instance.changeAutoUpgradeSettings; + return CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( + local$changeAutoUpgradeSettings, + (e) => call(changeAutoUpgradeSettings: e)); + } +} + +class _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$system + implements CopyWith$Mutation$ChangeAutoUpgradeSettings$system { + _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$system(this._res); + + TRes _res; + + call({ + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings? + changeAutoUpgradeSettings, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< + TRes> + get changeAutoUpgradeSettings => + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings + .stub(_res); +} + +class Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings implements Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn { - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings({ + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings({ required this.code, required this.message, required this.success, @@ -3603,7 +3910,7 @@ class Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings required this.enableAutoUpgrade, }); - factory Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings.fromJson( + factory Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; @@ -3611,7 +3918,7 @@ class Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings final l$$__typename = json['__typename']; final l$allowReboot = json['allowReboot']; final l$enableAutoUpgrade = json['enableAutoUpgrade']; - return Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( + return Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3674,7 +3981,7 @@ class Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings return true; } if (!(other - is Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings) || + is Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings) || runtimeType != other.runtimeType) { return false; } @@ -3712,28 +4019,30 @@ class Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings } } -extension UtilityExtension$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings - on Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings { - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings< - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings> +extension UtilityExtension$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings + on Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings { + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings> get copyWith => - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( this, (i) => i, ); } -abstract class CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings< +abstract class CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< TRes> { - factory CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings instance, - TRes Function(Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings) + factory CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings + instance, + TRes Function( + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings) then, - ) = _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings; + ) = _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings; - factory CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings.stub( + factory CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings.stub( TRes res) = - _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings; + _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings; TRes call({ int? code, @@ -3745,20 +4054,22 @@ abstract class CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSett }); } -class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings< +class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< TRes> implements - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings< + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< TRes> { - _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( + _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( this._instance, this._then, ); - final Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings _instance; + final Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings + _instance; final TRes Function( - Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings) _then; + Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings) + _then; static const _undefined = {}; @@ -3770,7 +4081,7 @@ class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings Object? allowReboot = _undefined, Object? enableAutoUpgrade = _undefined, }) => - _then(Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( + _then(Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3792,12 +4103,12 @@ class _CopyWithImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings )); } -class _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings< +class _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< TRes> implements - CopyWith$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings< + CopyWith$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings< TRes> { - _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$changeAutoUpgradeSettings( + _CopyWithStubImpl$Mutation$ChangeAutoUpgradeSettings$system$changeAutoUpgradeSettings( this._res); TRes _res; diff --git a/lib/logic/api_maps/graphql_maps/schema/services.graphql b/lib/logic/api_maps/graphql_maps/schema/services.graphql index a2430dcf..30421a06 100644 --- a/lib/logic/api_maps/graphql_maps/schema/services.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/services.graphql @@ -27,40 +27,53 @@ query AllServices { } mutation EnableService($serviceId: String!) { - enableService(serviceId: $serviceId) { - ...basicMutationReturnFields + services { + enableService(serviceId: $serviceId) { + ...basicMutationReturnFields + } } } mutation DisableService($serviceId: String!) { - disableService(serviceId: $serviceId) { - ...basicMutationReturnFields + services { + disableService(serviceId: $serviceId) { + ...basicMutationReturnFields + } } } mutation StopService($serviceId: String!) { - stopService(serviceId: $serviceId) { - ...basicMutationReturnFields + services { + stopService(serviceId: $serviceId) { + ...basicMutationReturnFields + } } } mutation StartService($serviceId: String!) { - startService(serviceId: $serviceId) { - ...basicMutationReturnFields + services { + startService(serviceId: $serviceId) { + ...basicMutationReturnFields + } } } mutation RestartService($serviceId: String!) { - restartService(serviceId: $serviceId) { - ...basicMutationReturnFields + services { + restartService(serviceId: $serviceId) { + ...basicMutationReturnFields + } } } mutation MoveService($input: MoveServiceInput!) { - moveService(input: $input) { - ...basicMutationReturnFields - job { - ...basicApiJobsFields + services { + moveService(input: $input) { + ...basicMutationReturnFields + job { + ...basicApiJobsFields + } } } } + diff --git a/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart index f5494d9b..446906df 100644 --- a/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart @@ -1459,29 +1459,28 @@ class _CopyWithStubImpl$Variables$Mutation$EnableService class Mutation$EnableService { Mutation$EnableService({ - required this.enableService, + required this.services, this.$__typename = 'Mutation', }); factory Mutation$EnableService.fromJson(Map json) { - final l$enableService = json['enableService']; + final l$services = json['services']; final l$$__typename = json['__typename']; return Mutation$EnableService( - enableService: Mutation$EnableService$enableService.fromJson( - (l$enableService as Map)), + services: Mutation$EnableService$services.fromJson( + (l$services as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `services.enable_service` instead') - final Mutation$EnableService$enableService enableService; + final Mutation$EnableService$services services; final String $__typename; Map toJson() { final _resultData = {}; - final l$enableService = enableService; - _resultData['enableService'] = l$enableService.toJson(); + final l$services = services; + _resultData['services'] = l$services.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -1489,10 +1488,10 @@ class Mutation$EnableService { @override int get hashCode { - final l$enableService = enableService; + final l$services = services; final l$$__typename = $__typename; return Object.hashAll([ - l$enableService, + l$services, l$$__typename, ]); } @@ -1506,9 +1505,9 @@ class Mutation$EnableService { runtimeType != other.runtimeType) { return false; } - final l$enableService = enableService; - final lOther$enableService = other.enableService; - if (l$enableService != lOther$enableService) { + final l$services = services; + final lOther$services = other.services; + if (l$services != lOther$services) { return false; } final l$$__typename = $__typename; @@ -1538,10 +1537,10 @@ abstract class CopyWith$Mutation$EnableService { _CopyWithStubImpl$Mutation$EnableService; TRes call({ - Mutation$EnableService$enableService? enableService, + Mutation$EnableService$services? services, String? $__typename, }); - CopyWith$Mutation$EnableService$enableService get enableService; + CopyWith$Mutation$EnableService$services get services; } class _CopyWithImpl$Mutation$EnableService @@ -1558,22 +1557,22 @@ class _CopyWithImpl$Mutation$EnableService static const _undefined = {}; TRes call({ - Object? enableService = _undefined, + Object? services = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$EnableService( - enableService: enableService == _undefined || enableService == null - ? _instance.enableService - : (enableService as Mutation$EnableService$enableService), + services: services == _undefined || services == null + ? _instance.services + : (services as Mutation$EnableService$services), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$EnableService$enableService get enableService { - final local$enableService = _instance.enableService; - return CopyWith$Mutation$EnableService$enableService( - local$enableService, (e) => call(enableService: e)); + CopyWith$Mutation$EnableService$services get services { + final local$services = _instance.services; + return CopyWith$Mutation$EnableService$services( + local$services, (e) => call(services: e)); } } @@ -1584,13 +1583,13 @@ class _CopyWithStubImpl$Mutation$EnableService TRes _res; call({ - Mutation$EnableService$enableService? enableService, + Mutation$EnableService$services? services, String? $__typename, }) => _res; - CopyWith$Mutation$EnableService$enableService get enableService => - CopyWith$Mutation$EnableService$enableService.stub(_res); + CopyWith$Mutation$EnableService$services get services => + CopyWith$Mutation$EnableService$services.stub(_res); } const documentNodeMutationEnableService = DocumentNode(definitions: [ @@ -1611,19 +1610,34 @@ const documentNodeMutationEnableService = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'enableService'), + name: NameNode(value: 'services'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'serviceId'), - value: VariableNode(name: NameNode(value: 'serviceId')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'enableService'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'serviceId'), + value: VariableNode(name: NameNode(value: 'serviceId')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -1742,22 +1756,161 @@ extension ClientExtension$Mutation$EnableService on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$EnableService$enableService +class Mutation$EnableService$services { + Mutation$EnableService$services({ + required this.enableService, + this.$__typename = 'ServicesMutations', + }); + + factory Mutation$EnableService$services.fromJson(Map json) { + final l$enableService = json['enableService']; + final l$$__typename = json['__typename']; + return Mutation$EnableService$services( + enableService: Mutation$EnableService$services$enableService.fromJson( + (l$enableService as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$EnableService$services$enableService enableService; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$enableService = enableService; + _resultData['enableService'] = l$enableService.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$enableService = enableService; + final l$$__typename = $__typename; + return Object.hashAll([ + l$enableService, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$EnableService$services) || + runtimeType != other.runtimeType) { + return false; + } + final l$enableService = enableService; + final lOther$enableService = other.enableService; + if (l$enableService != lOther$enableService) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$EnableService$services + on Mutation$EnableService$services { + CopyWith$Mutation$EnableService$services + get copyWith => CopyWith$Mutation$EnableService$services( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$EnableService$services { + factory CopyWith$Mutation$EnableService$services( + Mutation$EnableService$services instance, + TRes Function(Mutation$EnableService$services) then, + ) = _CopyWithImpl$Mutation$EnableService$services; + + factory CopyWith$Mutation$EnableService$services.stub(TRes res) = + _CopyWithStubImpl$Mutation$EnableService$services; + + TRes call({ + Mutation$EnableService$services$enableService? enableService, + String? $__typename, + }); + CopyWith$Mutation$EnableService$services$enableService + get enableService; +} + +class _CopyWithImpl$Mutation$EnableService$services + implements CopyWith$Mutation$EnableService$services { + _CopyWithImpl$Mutation$EnableService$services( + this._instance, + this._then, + ); + + final Mutation$EnableService$services _instance; + + final TRes Function(Mutation$EnableService$services) _then; + + static const _undefined = {}; + + TRes call({ + Object? enableService = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$EnableService$services( + enableService: enableService == _undefined || enableService == null + ? _instance.enableService + : (enableService as Mutation$EnableService$services$enableService), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$EnableService$services$enableService + get enableService { + final local$enableService = _instance.enableService; + return CopyWith$Mutation$EnableService$services$enableService( + local$enableService, (e) => call(enableService: e)); + } +} + +class _CopyWithStubImpl$Mutation$EnableService$services + implements CopyWith$Mutation$EnableService$services { + _CopyWithStubImpl$Mutation$EnableService$services(this._res); + + TRes _res; + + call({ + Mutation$EnableService$services$enableService? enableService, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$EnableService$services$enableService + get enableService => + CopyWith$Mutation$EnableService$services$enableService.stub(_res); +} + +class Mutation$EnableService$services$enableService implements Fragment$basicMutationReturnFields$$ServiceMutationReturn { - Mutation$EnableService$enableService({ + Mutation$EnableService$services$enableService({ required this.code, required this.message, required this.success, this.$__typename = 'ServiceMutationReturn', }); - factory Mutation$EnableService$enableService.fromJson( + factory Mutation$EnableService$services$enableService.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$EnableService$enableService( + return Mutation$EnableService$services$enableService( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -1805,7 +1958,7 @@ class Mutation$EnableService$enableService if (identical(this, other)) { return true; } - if (!(other is Mutation$EnableService$enableService) || + if (!(other is Mutation$EnableService$services$enableService) || runtimeType != other.runtimeType) { return false; } @@ -1833,24 +1986,25 @@ class Mutation$EnableService$enableService } } -extension UtilityExtension$Mutation$EnableService$enableService - on Mutation$EnableService$enableService { - CopyWith$Mutation$EnableService$enableService< - Mutation$EnableService$enableService> - get copyWith => CopyWith$Mutation$EnableService$enableService( +extension UtilityExtension$Mutation$EnableService$services$enableService + on Mutation$EnableService$services$enableService { + CopyWith$Mutation$EnableService$services$enableService< + Mutation$EnableService$services$enableService> + get copyWith => CopyWith$Mutation$EnableService$services$enableService( this, (i) => i, ); } -abstract class CopyWith$Mutation$EnableService$enableService { - factory CopyWith$Mutation$EnableService$enableService( - Mutation$EnableService$enableService instance, - TRes Function(Mutation$EnableService$enableService) then, - ) = _CopyWithImpl$Mutation$EnableService$enableService; +abstract class CopyWith$Mutation$EnableService$services$enableService { + factory CopyWith$Mutation$EnableService$services$enableService( + Mutation$EnableService$services$enableService instance, + TRes Function(Mutation$EnableService$services$enableService) then, + ) = _CopyWithImpl$Mutation$EnableService$services$enableService; - factory CopyWith$Mutation$EnableService$enableService.stub(TRes res) = - _CopyWithStubImpl$Mutation$EnableService$enableService; + factory CopyWith$Mutation$EnableService$services$enableService.stub( + TRes res) = + _CopyWithStubImpl$Mutation$EnableService$services$enableService; TRes call({ int? code, @@ -1860,16 +2014,16 @@ abstract class CopyWith$Mutation$EnableService$enableService { }); } -class _CopyWithImpl$Mutation$EnableService$enableService - implements CopyWith$Mutation$EnableService$enableService { - _CopyWithImpl$Mutation$EnableService$enableService( +class _CopyWithImpl$Mutation$EnableService$services$enableService + implements CopyWith$Mutation$EnableService$services$enableService { + _CopyWithImpl$Mutation$EnableService$services$enableService( this._instance, this._then, ); - final Mutation$EnableService$enableService _instance; + final Mutation$EnableService$services$enableService _instance; - final TRes Function(Mutation$EnableService$enableService) _then; + final TRes Function(Mutation$EnableService$services$enableService) _then; static const _undefined = {}; @@ -1879,7 +2033,7 @@ class _CopyWithImpl$Mutation$EnableService$enableService Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$EnableService$enableService( + _then(Mutation$EnableService$services$enableService( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -1894,9 +2048,9 @@ class _CopyWithImpl$Mutation$EnableService$enableService )); } -class _CopyWithStubImpl$Mutation$EnableService$enableService - implements CopyWith$Mutation$EnableService$enableService { - _CopyWithStubImpl$Mutation$EnableService$enableService(this._res); +class _CopyWithStubImpl$Mutation$EnableService$services$enableService + implements CopyWith$Mutation$EnableService$services$enableService { + _CopyWithStubImpl$Mutation$EnableService$services$enableService(this._res); TRes _res; @@ -2010,29 +2164,28 @@ class _CopyWithStubImpl$Variables$Mutation$DisableService class Mutation$DisableService { Mutation$DisableService({ - required this.disableService, + required this.services, this.$__typename = 'Mutation', }); factory Mutation$DisableService.fromJson(Map json) { - final l$disableService = json['disableService']; + final l$services = json['services']; final l$$__typename = json['__typename']; return Mutation$DisableService( - disableService: Mutation$DisableService$disableService.fromJson( - (l$disableService as Map)), + services: Mutation$DisableService$services.fromJson( + (l$services as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `services.disable_service` instead') - final Mutation$DisableService$disableService disableService; + final Mutation$DisableService$services services; final String $__typename; Map toJson() { final _resultData = {}; - final l$disableService = disableService; - _resultData['disableService'] = l$disableService.toJson(); + final l$services = services; + _resultData['services'] = l$services.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2040,10 +2193,10 @@ class Mutation$DisableService { @override int get hashCode { - final l$disableService = disableService; + final l$services = services; final l$$__typename = $__typename; return Object.hashAll([ - l$disableService, + l$services, l$$__typename, ]); } @@ -2057,9 +2210,9 @@ class Mutation$DisableService { runtimeType != other.runtimeType) { return false; } - final l$disableService = disableService; - final lOther$disableService = other.disableService; - if (l$disableService != lOther$disableService) { + final l$services = services; + final lOther$services = other.services; + if (l$services != lOther$services) { return false; } final l$$__typename = $__typename; @@ -2089,10 +2242,10 @@ abstract class CopyWith$Mutation$DisableService { _CopyWithStubImpl$Mutation$DisableService; TRes call({ - Mutation$DisableService$disableService? disableService, + Mutation$DisableService$services? services, String? $__typename, }); - CopyWith$Mutation$DisableService$disableService get disableService; + CopyWith$Mutation$DisableService$services get services; } class _CopyWithImpl$Mutation$DisableService @@ -2109,22 +2262,22 @@ class _CopyWithImpl$Mutation$DisableService static const _undefined = {}; TRes call({ - Object? disableService = _undefined, + Object? services = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DisableService( - disableService: disableService == _undefined || disableService == null - ? _instance.disableService - : (disableService as Mutation$DisableService$disableService), + services: services == _undefined || services == null + ? _instance.services + : (services as Mutation$DisableService$services), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$DisableService$disableService get disableService { - final local$disableService = _instance.disableService; - return CopyWith$Mutation$DisableService$disableService( - local$disableService, (e) => call(disableService: e)); + CopyWith$Mutation$DisableService$services get services { + final local$services = _instance.services; + return CopyWith$Mutation$DisableService$services( + local$services, (e) => call(services: e)); } } @@ -2135,13 +2288,13 @@ class _CopyWithStubImpl$Mutation$DisableService TRes _res; call({ - Mutation$DisableService$disableService? disableService, + Mutation$DisableService$services? services, String? $__typename, }) => _res; - CopyWith$Mutation$DisableService$disableService get disableService => - CopyWith$Mutation$DisableService$disableService.stub(_res); + CopyWith$Mutation$DisableService$services get services => + CopyWith$Mutation$DisableService$services.stub(_res); } const documentNodeMutationDisableService = DocumentNode(definitions: [ @@ -2162,19 +2315,34 @@ const documentNodeMutationDisableService = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'disableService'), + name: NameNode(value: 'services'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'serviceId'), - value: VariableNode(name: NameNode(value: 'serviceId')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'disableService'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'serviceId'), + value: VariableNode(name: NameNode(value: 'serviceId')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -2293,22 +2461,162 @@ extension ClientExtension$Mutation$DisableService on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$DisableService$disableService +class Mutation$DisableService$services { + Mutation$DisableService$services({ + required this.disableService, + this.$__typename = 'ServicesMutations', + }); + + factory Mutation$DisableService$services.fromJson(Map json) { + final l$disableService = json['disableService']; + final l$$__typename = json['__typename']; + return Mutation$DisableService$services( + disableService: Mutation$DisableService$services$disableService.fromJson( + (l$disableService as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$DisableService$services$disableService disableService; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$disableService = disableService; + _resultData['disableService'] = l$disableService.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$disableService = disableService; + final l$$__typename = $__typename; + return Object.hashAll([ + l$disableService, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$DisableService$services) || + runtimeType != other.runtimeType) { + return false; + } + final l$disableService = disableService; + final lOther$disableService = other.disableService; + if (l$disableService != lOther$disableService) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$DisableService$services + on Mutation$DisableService$services { + CopyWith$Mutation$DisableService$services + get copyWith => CopyWith$Mutation$DisableService$services( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$DisableService$services { + factory CopyWith$Mutation$DisableService$services( + Mutation$DisableService$services instance, + TRes Function(Mutation$DisableService$services) then, + ) = _CopyWithImpl$Mutation$DisableService$services; + + factory CopyWith$Mutation$DisableService$services.stub(TRes res) = + _CopyWithStubImpl$Mutation$DisableService$services; + + TRes call({ + Mutation$DisableService$services$disableService? disableService, + String? $__typename, + }); + CopyWith$Mutation$DisableService$services$disableService + get disableService; +} + +class _CopyWithImpl$Mutation$DisableService$services + implements CopyWith$Mutation$DisableService$services { + _CopyWithImpl$Mutation$DisableService$services( + this._instance, + this._then, + ); + + final Mutation$DisableService$services _instance; + + final TRes Function(Mutation$DisableService$services) _then; + + static const _undefined = {}; + + TRes call({ + Object? disableService = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$DisableService$services( + disableService: disableService == _undefined || disableService == null + ? _instance.disableService + : (disableService + as Mutation$DisableService$services$disableService), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$DisableService$services$disableService + get disableService { + final local$disableService = _instance.disableService; + return CopyWith$Mutation$DisableService$services$disableService( + local$disableService, (e) => call(disableService: e)); + } +} + +class _CopyWithStubImpl$Mutation$DisableService$services + implements CopyWith$Mutation$DisableService$services { + _CopyWithStubImpl$Mutation$DisableService$services(this._res); + + TRes _res; + + call({ + Mutation$DisableService$services$disableService? disableService, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$DisableService$services$disableService + get disableService => + CopyWith$Mutation$DisableService$services$disableService.stub(_res); +} + +class Mutation$DisableService$services$disableService implements Fragment$basicMutationReturnFields$$ServiceMutationReturn { - Mutation$DisableService$disableService({ + Mutation$DisableService$services$disableService({ required this.code, required this.message, required this.success, this.$__typename = 'ServiceMutationReturn', }); - factory Mutation$DisableService$disableService.fromJson( + factory Mutation$DisableService$services$disableService.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$DisableService$disableService( + return Mutation$DisableService$services$disableService( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -2356,7 +2664,7 @@ class Mutation$DisableService$disableService if (identical(this, other)) { return true; } - if (!(other is Mutation$DisableService$disableService) || + if (!(other is Mutation$DisableService$services$disableService) || runtimeType != other.runtimeType) { return false; } @@ -2384,24 +2692,25 @@ class Mutation$DisableService$disableService } } -extension UtilityExtension$Mutation$DisableService$disableService - on Mutation$DisableService$disableService { - CopyWith$Mutation$DisableService$disableService< - Mutation$DisableService$disableService> - get copyWith => CopyWith$Mutation$DisableService$disableService( +extension UtilityExtension$Mutation$DisableService$services$disableService + on Mutation$DisableService$services$disableService { + CopyWith$Mutation$DisableService$services$disableService< + Mutation$DisableService$services$disableService> + get copyWith => CopyWith$Mutation$DisableService$services$disableService( this, (i) => i, ); } -abstract class CopyWith$Mutation$DisableService$disableService { - factory CopyWith$Mutation$DisableService$disableService( - Mutation$DisableService$disableService instance, - TRes Function(Mutation$DisableService$disableService) then, - ) = _CopyWithImpl$Mutation$DisableService$disableService; +abstract class CopyWith$Mutation$DisableService$services$disableService { + factory CopyWith$Mutation$DisableService$services$disableService( + Mutation$DisableService$services$disableService instance, + TRes Function(Mutation$DisableService$services$disableService) then, + ) = _CopyWithImpl$Mutation$DisableService$services$disableService; - factory CopyWith$Mutation$DisableService$disableService.stub(TRes res) = - _CopyWithStubImpl$Mutation$DisableService$disableService; + factory CopyWith$Mutation$DisableService$services$disableService.stub( + TRes res) = + _CopyWithStubImpl$Mutation$DisableService$services$disableService; TRes call({ int? code, @@ -2411,16 +2720,16 @@ abstract class CopyWith$Mutation$DisableService$disableService { }); } -class _CopyWithImpl$Mutation$DisableService$disableService - implements CopyWith$Mutation$DisableService$disableService { - _CopyWithImpl$Mutation$DisableService$disableService( +class _CopyWithImpl$Mutation$DisableService$services$disableService + implements CopyWith$Mutation$DisableService$services$disableService { + _CopyWithImpl$Mutation$DisableService$services$disableService( this._instance, this._then, ); - final Mutation$DisableService$disableService _instance; + final Mutation$DisableService$services$disableService _instance; - final TRes Function(Mutation$DisableService$disableService) _then; + final TRes Function(Mutation$DisableService$services$disableService) _then; static const _undefined = {}; @@ -2430,7 +2739,7 @@ class _CopyWithImpl$Mutation$DisableService$disableService Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$DisableService$disableService( + _then(Mutation$DisableService$services$disableService( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -2445,9 +2754,9 @@ class _CopyWithImpl$Mutation$DisableService$disableService )); } -class _CopyWithStubImpl$Mutation$DisableService$disableService - implements CopyWith$Mutation$DisableService$disableService { - _CopyWithStubImpl$Mutation$DisableService$disableService(this._res); +class _CopyWithStubImpl$Mutation$DisableService$services$disableService + implements CopyWith$Mutation$DisableService$services$disableService { + _CopyWithStubImpl$Mutation$DisableService$services$disableService(this._res); TRes _res; @@ -2560,29 +2869,28 @@ class _CopyWithStubImpl$Variables$Mutation$StopService class Mutation$StopService { Mutation$StopService({ - required this.stopService, + required this.services, this.$__typename = 'Mutation', }); factory Mutation$StopService.fromJson(Map json) { - final l$stopService = json['stopService']; + final l$services = json['services']; final l$$__typename = json['__typename']; return Mutation$StopService( - stopService: Mutation$StopService$stopService.fromJson( - (l$stopService as Map)), + services: Mutation$StopService$services.fromJson( + (l$services as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `services.stop_service` instead') - final Mutation$StopService$stopService stopService; + final Mutation$StopService$services services; final String $__typename; Map toJson() { final _resultData = {}; - final l$stopService = stopService; - _resultData['stopService'] = l$stopService.toJson(); + final l$services = services; + _resultData['services'] = l$services.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2590,10 +2898,10 @@ class Mutation$StopService { @override int get hashCode { - final l$stopService = stopService; + final l$services = services; final l$$__typename = $__typename; return Object.hashAll([ - l$stopService, + l$services, l$$__typename, ]); } @@ -2606,9 +2914,9 @@ class Mutation$StopService { if (!(other is Mutation$StopService) || runtimeType != other.runtimeType) { return false; } - final l$stopService = stopService; - final lOther$stopService = other.stopService; - if (l$stopService != lOther$stopService) { + final l$services = services; + final lOther$services = other.services; + if (l$services != lOther$services) { return false; } final l$$__typename = $__typename; @@ -2638,10 +2946,10 @@ abstract class CopyWith$Mutation$StopService { _CopyWithStubImpl$Mutation$StopService; TRes call({ - Mutation$StopService$stopService? stopService, + Mutation$StopService$services? services, String? $__typename, }); - CopyWith$Mutation$StopService$stopService get stopService; + CopyWith$Mutation$StopService$services get services; } class _CopyWithImpl$Mutation$StopService @@ -2658,22 +2966,22 @@ class _CopyWithImpl$Mutation$StopService static const _undefined = {}; TRes call({ - Object? stopService = _undefined, + Object? services = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$StopService( - stopService: stopService == _undefined || stopService == null - ? _instance.stopService - : (stopService as Mutation$StopService$stopService), + services: services == _undefined || services == null + ? _instance.services + : (services as Mutation$StopService$services), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$StopService$stopService get stopService { - final local$stopService = _instance.stopService; - return CopyWith$Mutation$StopService$stopService( - local$stopService, (e) => call(stopService: e)); + CopyWith$Mutation$StopService$services get services { + final local$services = _instance.services; + return CopyWith$Mutation$StopService$services( + local$services, (e) => call(services: e)); } } @@ -2684,13 +2992,13 @@ class _CopyWithStubImpl$Mutation$StopService TRes _res; call({ - Mutation$StopService$stopService? stopService, + Mutation$StopService$services? services, String? $__typename, }) => _res; - CopyWith$Mutation$StopService$stopService get stopService => - CopyWith$Mutation$StopService$stopService.stub(_res); + CopyWith$Mutation$StopService$services get services => + CopyWith$Mutation$StopService$services.stub(_res); } const documentNodeMutationStopService = DocumentNode(definitions: [ @@ -2711,19 +3019,34 @@ const documentNodeMutationStopService = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'stopService'), + name: NameNode(value: 'services'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'serviceId'), - value: VariableNode(name: NameNode(value: 'serviceId')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'stopService'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'serviceId'), + value: VariableNode(name: NameNode(value: 'serviceId')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -2840,21 +3163,158 @@ extension ClientExtension$Mutation$StopService on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$StopService$stopService +class Mutation$StopService$services { + Mutation$StopService$services({ + required this.stopService, + this.$__typename = 'ServicesMutations', + }); + + factory Mutation$StopService$services.fromJson(Map json) { + final l$stopService = json['stopService']; + final l$$__typename = json['__typename']; + return Mutation$StopService$services( + stopService: Mutation$StopService$services$stopService.fromJson( + (l$stopService as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$StopService$services$stopService stopService; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$stopService = stopService; + _resultData['stopService'] = l$stopService.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$stopService = stopService; + final l$$__typename = $__typename; + return Object.hashAll([ + l$stopService, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$StopService$services) || + runtimeType != other.runtimeType) { + return false; + } + final l$stopService = stopService; + final lOther$stopService = other.stopService; + if (l$stopService != lOther$stopService) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$StopService$services + on Mutation$StopService$services { + CopyWith$Mutation$StopService$services + get copyWith => CopyWith$Mutation$StopService$services( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$StopService$services { + factory CopyWith$Mutation$StopService$services( + Mutation$StopService$services instance, + TRes Function(Mutation$StopService$services) then, + ) = _CopyWithImpl$Mutation$StopService$services; + + factory CopyWith$Mutation$StopService$services.stub(TRes res) = + _CopyWithStubImpl$Mutation$StopService$services; + + TRes call({ + Mutation$StopService$services$stopService? stopService, + String? $__typename, + }); + CopyWith$Mutation$StopService$services$stopService get stopService; +} + +class _CopyWithImpl$Mutation$StopService$services + implements CopyWith$Mutation$StopService$services { + _CopyWithImpl$Mutation$StopService$services( + this._instance, + this._then, + ); + + final Mutation$StopService$services _instance; + + final TRes Function(Mutation$StopService$services) _then; + + static const _undefined = {}; + + TRes call({ + Object? stopService = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$StopService$services( + stopService: stopService == _undefined || stopService == null + ? _instance.stopService + : (stopService as Mutation$StopService$services$stopService), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$StopService$services$stopService get stopService { + final local$stopService = _instance.stopService; + return CopyWith$Mutation$StopService$services$stopService( + local$stopService, (e) => call(stopService: e)); + } +} + +class _CopyWithStubImpl$Mutation$StopService$services + implements CopyWith$Mutation$StopService$services { + _CopyWithStubImpl$Mutation$StopService$services(this._res); + + TRes _res; + + call({ + Mutation$StopService$services$stopService? stopService, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$StopService$services$stopService get stopService => + CopyWith$Mutation$StopService$services$stopService.stub(_res); +} + +class Mutation$StopService$services$stopService implements Fragment$basicMutationReturnFields$$ServiceMutationReturn { - Mutation$StopService$stopService({ + Mutation$StopService$services$stopService({ required this.code, required this.message, required this.success, this.$__typename = 'ServiceMutationReturn', }); - factory Mutation$StopService$stopService.fromJson(Map json) { + factory Mutation$StopService$services$stopService.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$StopService$stopService( + return Mutation$StopService$services$stopService( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -2902,7 +3362,7 @@ class Mutation$StopService$stopService if (identical(this, other)) { return true; } - if (!(other is Mutation$StopService$stopService) || + if (!(other is Mutation$StopService$services$stopService) || runtimeType != other.runtimeType) { return false; } @@ -2930,23 +3390,24 @@ class Mutation$StopService$stopService } } -extension UtilityExtension$Mutation$StopService$stopService - on Mutation$StopService$stopService { - CopyWith$Mutation$StopService$stopService - get copyWith => CopyWith$Mutation$StopService$stopService( +extension UtilityExtension$Mutation$StopService$services$stopService + on Mutation$StopService$services$stopService { + CopyWith$Mutation$StopService$services$stopService< + Mutation$StopService$services$stopService> + get copyWith => CopyWith$Mutation$StopService$services$stopService( this, (i) => i, ); } -abstract class CopyWith$Mutation$StopService$stopService { - factory CopyWith$Mutation$StopService$stopService( - Mutation$StopService$stopService instance, - TRes Function(Mutation$StopService$stopService) then, - ) = _CopyWithImpl$Mutation$StopService$stopService; +abstract class CopyWith$Mutation$StopService$services$stopService { + factory CopyWith$Mutation$StopService$services$stopService( + Mutation$StopService$services$stopService instance, + TRes Function(Mutation$StopService$services$stopService) then, + ) = _CopyWithImpl$Mutation$StopService$services$stopService; - factory CopyWith$Mutation$StopService$stopService.stub(TRes res) = - _CopyWithStubImpl$Mutation$StopService$stopService; + factory CopyWith$Mutation$StopService$services$stopService.stub(TRes res) = + _CopyWithStubImpl$Mutation$StopService$services$stopService; TRes call({ int? code, @@ -2956,16 +3417,16 @@ abstract class CopyWith$Mutation$StopService$stopService { }); } -class _CopyWithImpl$Mutation$StopService$stopService - implements CopyWith$Mutation$StopService$stopService { - _CopyWithImpl$Mutation$StopService$stopService( +class _CopyWithImpl$Mutation$StopService$services$stopService + implements CopyWith$Mutation$StopService$services$stopService { + _CopyWithImpl$Mutation$StopService$services$stopService( this._instance, this._then, ); - final Mutation$StopService$stopService _instance; + final Mutation$StopService$services$stopService _instance; - final TRes Function(Mutation$StopService$stopService) _then; + final TRes Function(Mutation$StopService$services$stopService) _then; static const _undefined = {}; @@ -2975,7 +3436,7 @@ class _CopyWithImpl$Mutation$StopService$stopService Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$StopService$stopService( + _then(Mutation$StopService$services$stopService( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -2990,9 +3451,9 @@ class _CopyWithImpl$Mutation$StopService$stopService )); } -class _CopyWithStubImpl$Mutation$StopService$stopService - implements CopyWith$Mutation$StopService$stopService { - _CopyWithStubImpl$Mutation$StopService$stopService(this._res); +class _CopyWithStubImpl$Mutation$StopService$services$stopService + implements CopyWith$Mutation$StopService$services$stopService { + _CopyWithStubImpl$Mutation$StopService$services$stopService(this._res); TRes _res; @@ -3105,29 +3566,28 @@ class _CopyWithStubImpl$Variables$Mutation$StartService class Mutation$StartService { Mutation$StartService({ - required this.startService, + required this.services, this.$__typename = 'Mutation', }); factory Mutation$StartService.fromJson(Map json) { - final l$startService = json['startService']; + final l$services = json['services']; final l$$__typename = json['__typename']; return Mutation$StartService( - startService: Mutation$StartService$startService.fromJson( - (l$startService as Map)), + services: Mutation$StartService$services.fromJson( + (l$services as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `services.start_service` instead') - final Mutation$StartService$startService startService; + final Mutation$StartService$services services; final String $__typename; Map toJson() { final _resultData = {}; - final l$startService = startService; - _resultData['startService'] = l$startService.toJson(); + final l$services = services; + _resultData['services'] = l$services.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3135,10 +3595,10 @@ class Mutation$StartService { @override int get hashCode { - final l$startService = startService; + final l$services = services; final l$$__typename = $__typename; return Object.hashAll([ - l$startService, + l$services, l$$__typename, ]); } @@ -3151,9 +3611,9 @@ class Mutation$StartService { if (!(other is Mutation$StartService) || runtimeType != other.runtimeType) { return false; } - final l$startService = startService; - final lOther$startService = other.startService; - if (l$startService != lOther$startService) { + final l$services = services; + final lOther$services = other.services; + if (l$services != lOther$services) { return false; } final l$$__typename = $__typename; @@ -3183,10 +3643,10 @@ abstract class CopyWith$Mutation$StartService { _CopyWithStubImpl$Mutation$StartService; TRes call({ - Mutation$StartService$startService? startService, + Mutation$StartService$services? services, String? $__typename, }); - CopyWith$Mutation$StartService$startService get startService; + CopyWith$Mutation$StartService$services get services; } class _CopyWithImpl$Mutation$StartService @@ -3203,22 +3663,22 @@ class _CopyWithImpl$Mutation$StartService static const _undefined = {}; TRes call({ - Object? startService = _undefined, + Object? services = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$StartService( - startService: startService == _undefined || startService == null - ? _instance.startService - : (startService as Mutation$StartService$startService), + services: services == _undefined || services == null + ? _instance.services + : (services as Mutation$StartService$services), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$StartService$startService get startService { - final local$startService = _instance.startService; - return CopyWith$Mutation$StartService$startService( - local$startService, (e) => call(startService: e)); + CopyWith$Mutation$StartService$services get services { + final local$services = _instance.services; + return CopyWith$Mutation$StartService$services( + local$services, (e) => call(services: e)); } } @@ -3229,13 +3689,13 @@ class _CopyWithStubImpl$Mutation$StartService TRes _res; call({ - Mutation$StartService$startService? startService, + Mutation$StartService$services? services, String? $__typename, }) => _res; - CopyWith$Mutation$StartService$startService get startService => - CopyWith$Mutation$StartService$startService.stub(_res); + CopyWith$Mutation$StartService$services get services => + CopyWith$Mutation$StartService$services.stub(_res); } const documentNodeMutationStartService = DocumentNode(definitions: [ @@ -3256,19 +3716,34 @@ const documentNodeMutationStartService = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'startService'), + name: NameNode(value: 'services'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'serviceId'), - value: VariableNode(name: NameNode(value: 'serviceId')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'startService'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'serviceId'), + value: VariableNode(name: NameNode(value: 'serviceId')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -3385,22 +3860,158 @@ extension ClientExtension$Mutation$StartService on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$StartService$startService +class Mutation$StartService$services { + Mutation$StartService$services({ + required this.startService, + this.$__typename = 'ServicesMutations', + }); + + factory Mutation$StartService$services.fromJson(Map json) { + final l$startService = json['startService']; + final l$$__typename = json['__typename']; + return Mutation$StartService$services( + startService: Mutation$StartService$services$startService.fromJson( + (l$startService as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$StartService$services$startService startService; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$startService = startService; + _resultData['startService'] = l$startService.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$startService = startService; + final l$$__typename = $__typename; + return Object.hashAll([ + l$startService, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$StartService$services) || + runtimeType != other.runtimeType) { + return false; + } + final l$startService = startService; + final lOther$startService = other.startService; + if (l$startService != lOther$startService) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$StartService$services + on Mutation$StartService$services { + CopyWith$Mutation$StartService$services + get copyWith => CopyWith$Mutation$StartService$services( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$StartService$services { + factory CopyWith$Mutation$StartService$services( + Mutation$StartService$services instance, + TRes Function(Mutation$StartService$services) then, + ) = _CopyWithImpl$Mutation$StartService$services; + + factory CopyWith$Mutation$StartService$services.stub(TRes res) = + _CopyWithStubImpl$Mutation$StartService$services; + + TRes call({ + Mutation$StartService$services$startService? startService, + String? $__typename, + }); + CopyWith$Mutation$StartService$services$startService get startService; +} + +class _CopyWithImpl$Mutation$StartService$services + implements CopyWith$Mutation$StartService$services { + _CopyWithImpl$Mutation$StartService$services( + this._instance, + this._then, + ); + + final Mutation$StartService$services _instance; + + final TRes Function(Mutation$StartService$services) _then; + + static const _undefined = {}; + + TRes call({ + Object? startService = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$StartService$services( + startService: startService == _undefined || startService == null + ? _instance.startService + : (startService as Mutation$StartService$services$startService), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$StartService$services$startService get startService { + final local$startService = _instance.startService; + return CopyWith$Mutation$StartService$services$startService( + local$startService, (e) => call(startService: e)); + } +} + +class _CopyWithStubImpl$Mutation$StartService$services + implements CopyWith$Mutation$StartService$services { + _CopyWithStubImpl$Mutation$StartService$services(this._res); + + TRes _res; + + call({ + Mutation$StartService$services$startService? startService, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$StartService$services$startService get startService => + CopyWith$Mutation$StartService$services$startService.stub(_res); +} + +class Mutation$StartService$services$startService implements Fragment$basicMutationReturnFields$$ServiceMutationReturn { - Mutation$StartService$startService({ + Mutation$StartService$services$startService({ required this.code, required this.message, required this.success, this.$__typename = 'ServiceMutationReturn', }); - factory Mutation$StartService$startService.fromJson( + factory Mutation$StartService$services$startService.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$StartService$startService( + return Mutation$StartService$services$startService( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3448,7 +4059,7 @@ class Mutation$StartService$startService if (identical(this, other)) { return true; } - if (!(other is Mutation$StartService$startService) || + if (!(other is Mutation$StartService$services$startService) || runtimeType != other.runtimeType) { return false; } @@ -3476,24 +4087,24 @@ class Mutation$StartService$startService } } -extension UtilityExtension$Mutation$StartService$startService - on Mutation$StartService$startService { - CopyWith$Mutation$StartService$startService< - Mutation$StartService$startService> - get copyWith => CopyWith$Mutation$StartService$startService( +extension UtilityExtension$Mutation$StartService$services$startService + on Mutation$StartService$services$startService { + CopyWith$Mutation$StartService$services$startService< + Mutation$StartService$services$startService> + get copyWith => CopyWith$Mutation$StartService$services$startService( this, (i) => i, ); } -abstract class CopyWith$Mutation$StartService$startService { - factory CopyWith$Mutation$StartService$startService( - Mutation$StartService$startService instance, - TRes Function(Mutation$StartService$startService) then, - ) = _CopyWithImpl$Mutation$StartService$startService; +abstract class CopyWith$Mutation$StartService$services$startService { + factory CopyWith$Mutation$StartService$services$startService( + Mutation$StartService$services$startService instance, + TRes Function(Mutation$StartService$services$startService) then, + ) = _CopyWithImpl$Mutation$StartService$services$startService; - factory CopyWith$Mutation$StartService$startService.stub(TRes res) = - _CopyWithStubImpl$Mutation$StartService$startService; + factory CopyWith$Mutation$StartService$services$startService.stub(TRes res) = + _CopyWithStubImpl$Mutation$StartService$services$startService; TRes call({ int? code, @@ -3503,16 +4114,16 @@ abstract class CopyWith$Mutation$StartService$startService { }); } -class _CopyWithImpl$Mutation$StartService$startService - implements CopyWith$Mutation$StartService$startService { - _CopyWithImpl$Mutation$StartService$startService( +class _CopyWithImpl$Mutation$StartService$services$startService + implements CopyWith$Mutation$StartService$services$startService { + _CopyWithImpl$Mutation$StartService$services$startService( this._instance, this._then, ); - final Mutation$StartService$startService _instance; + final Mutation$StartService$services$startService _instance; - final TRes Function(Mutation$StartService$startService) _then; + final TRes Function(Mutation$StartService$services$startService) _then; static const _undefined = {}; @@ -3522,7 +4133,7 @@ class _CopyWithImpl$Mutation$StartService$startService Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$StartService$startService( + _then(Mutation$StartService$services$startService( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3537,9 +4148,9 @@ class _CopyWithImpl$Mutation$StartService$startService )); } -class _CopyWithStubImpl$Mutation$StartService$startService - implements CopyWith$Mutation$StartService$startService { - _CopyWithStubImpl$Mutation$StartService$startService(this._res); +class _CopyWithStubImpl$Mutation$StartService$services$startService + implements CopyWith$Mutation$StartService$services$startService { + _CopyWithStubImpl$Mutation$StartService$services$startService(this._res); TRes _res; @@ -3653,29 +4264,28 @@ class _CopyWithStubImpl$Variables$Mutation$RestartService class Mutation$RestartService { Mutation$RestartService({ - required this.restartService, + required this.services, this.$__typename = 'Mutation', }); factory Mutation$RestartService.fromJson(Map json) { - final l$restartService = json['restartService']; + final l$services = json['services']; final l$$__typename = json['__typename']; return Mutation$RestartService( - restartService: Mutation$RestartService$restartService.fromJson( - (l$restartService as Map)), + services: Mutation$RestartService$services.fromJson( + (l$services as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `services.restart_service` instead') - final Mutation$RestartService$restartService restartService; + final Mutation$RestartService$services services; final String $__typename; Map toJson() { final _resultData = {}; - final l$restartService = restartService; - _resultData['restartService'] = l$restartService.toJson(); + final l$services = services; + _resultData['services'] = l$services.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3683,10 +4293,10 @@ class Mutation$RestartService { @override int get hashCode { - final l$restartService = restartService; + final l$services = services; final l$$__typename = $__typename; return Object.hashAll([ - l$restartService, + l$services, l$$__typename, ]); } @@ -3700,9 +4310,9 @@ class Mutation$RestartService { runtimeType != other.runtimeType) { return false; } - final l$restartService = restartService; - final lOther$restartService = other.restartService; - if (l$restartService != lOther$restartService) { + final l$services = services; + final lOther$services = other.services; + if (l$services != lOther$services) { return false; } final l$$__typename = $__typename; @@ -3732,10 +4342,10 @@ abstract class CopyWith$Mutation$RestartService { _CopyWithStubImpl$Mutation$RestartService; TRes call({ - Mutation$RestartService$restartService? restartService, + Mutation$RestartService$services? services, String? $__typename, }); - CopyWith$Mutation$RestartService$restartService get restartService; + CopyWith$Mutation$RestartService$services get services; } class _CopyWithImpl$Mutation$RestartService @@ -3752,22 +4362,22 @@ class _CopyWithImpl$Mutation$RestartService static const _undefined = {}; TRes call({ - Object? restartService = _undefined, + Object? services = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RestartService( - restartService: restartService == _undefined || restartService == null - ? _instance.restartService - : (restartService as Mutation$RestartService$restartService), + services: services == _undefined || services == null + ? _instance.services + : (services as Mutation$RestartService$services), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RestartService$restartService get restartService { - final local$restartService = _instance.restartService; - return CopyWith$Mutation$RestartService$restartService( - local$restartService, (e) => call(restartService: e)); + CopyWith$Mutation$RestartService$services get services { + final local$services = _instance.services; + return CopyWith$Mutation$RestartService$services( + local$services, (e) => call(services: e)); } } @@ -3778,13 +4388,13 @@ class _CopyWithStubImpl$Mutation$RestartService TRes _res; call({ - Mutation$RestartService$restartService? restartService, + Mutation$RestartService$services? services, String? $__typename, }) => _res; - CopyWith$Mutation$RestartService$restartService get restartService => - CopyWith$Mutation$RestartService$restartService.stub(_res); + CopyWith$Mutation$RestartService$services get services => + CopyWith$Mutation$RestartService$services.stub(_res); } const documentNodeMutationRestartService = DocumentNode(definitions: [ @@ -3805,19 +4415,34 @@ const documentNodeMutationRestartService = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'restartService'), + name: NameNode(value: 'services'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'serviceId'), - value: VariableNode(name: NameNode(value: 'serviceId')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'restartService'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'serviceId'), + value: VariableNode(name: NameNode(value: 'serviceId')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -3936,22 +4561,162 @@ extension ClientExtension$Mutation$RestartService on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$RestartService$restartService +class Mutation$RestartService$services { + Mutation$RestartService$services({ + required this.restartService, + this.$__typename = 'ServicesMutations', + }); + + factory Mutation$RestartService$services.fromJson(Map json) { + final l$restartService = json['restartService']; + final l$$__typename = json['__typename']; + return Mutation$RestartService$services( + restartService: Mutation$RestartService$services$restartService.fromJson( + (l$restartService as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RestartService$services$restartService restartService; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$restartService = restartService; + _resultData['restartService'] = l$restartService.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$restartService = restartService; + final l$$__typename = $__typename; + return Object.hashAll([ + l$restartService, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RestartService$services) || + runtimeType != other.runtimeType) { + return false; + } + final l$restartService = restartService; + final lOther$restartService = other.restartService; + if (l$restartService != lOther$restartService) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RestartService$services + on Mutation$RestartService$services { + CopyWith$Mutation$RestartService$services + get copyWith => CopyWith$Mutation$RestartService$services( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RestartService$services { + factory CopyWith$Mutation$RestartService$services( + Mutation$RestartService$services instance, + TRes Function(Mutation$RestartService$services) then, + ) = _CopyWithImpl$Mutation$RestartService$services; + + factory CopyWith$Mutation$RestartService$services.stub(TRes res) = + _CopyWithStubImpl$Mutation$RestartService$services; + + TRes call({ + Mutation$RestartService$services$restartService? restartService, + String? $__typename, + }); + CopyWith$Mutation$RestartService$services$restartService + get restartService; +} + +class _CopyWithImpl$Mutation$RestartService$services + implements CopyWith$Mutation$RestartService$services { + _CopyWithImpl$Mutation$RestartService$services( + this._instance, + this._then, + ); + + final Mutation$RestartService$services _instance; + + final TRes Function(Mutation$RestartService$services) _then; + + static const _undefined = {}; + + TRes call({ + Object? restartService = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RestartService$services( + restartService: restartService == _undefined || restartService == null + ? _instance.restartService + : (restartService + as Mutation$RestartService$services$restartService), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RestartService$services$restartService + get restartService { + final local$restartService = _instance.restartService; + return CopyWith$Mutation$RestartService$services$restartService( + local$restartService, (e) => call(restartService: e)); + } +} + +class _CopyWithStubImpl$Mutation$RestartService$services + implements CopyWith$Mutation$RestartService$services { + _CopyWithStubImpl$Mutation$RestartService$services(this._res); + + TRes _res; + + call({ + Mutation$RestartService$services$restartService? restartService, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RestartService$services$restartService + get restartService => + CopyWith$Mutation$RestartService$services$restartService.stub(_res); +} + +class Mutation$RestartService$services$restartService implements Fragment$basicMutationReturnFields$$ServiceMutationReturn { - Mutation$RestartService$restartService({ + Mutation$RestartService$services$restartService({ required this.code, required this.message, required this.success, this.$__typename = 'ServiceMutationReturn', }); - factory Mutation$RestartService$restartService.fromJson( + factory Mutation$RestartService$services$restartService.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$RestartService$restartService( + return Mutation$RestartService$services$restartService( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3999,7 +4764,7 @@ class Mutation$RestartService$restartService if (identical(this, other)) { return true; } - if (!(other is Mutation$RestartService$restartService) || + if (!(other is Mutation$RestartService$services$restartService) || runtimeType != other.runtimeType) { return false; } @@ -4027,24 +4792,25 @@ class Mutation$RestartService$restartService } } -extension UtilityExtension$Mutation$RestartService$restartService - on Mutation$RestartService$restartService { - CopyWith$Mutation$RestartService$restartService< - Mutation$RestartService$restartService> - get copyWith => CopyWith$Mutation$RestartService$restartService( +extension UtilityExtension$Mutation$RestartService$services$restartService + on Mutation$RestartService$services$restartService { + CopyWith$Mutation$RestartService$services$restartService< + Mutation$RestartService$services$restartService> + get copyWith => CopyWith$Mutation$RestartService$services$restartService( this, (i) => i, ); } -abstract class CopyWith$Mutation$RestartService$restartService { - factory CopyWith$Mutation$RestartService$restartService( - Mutation$RestartService$restartService instance, - TRes Function(Mutation$RestartService$restartService) then, - ) = _CopyWithImpl$Mutation$RestartService$restartService; +abstract class CopyWith$Mutation$RestartService$services$restartService { + factory CopyWith$Mutation$RestartService$services$restartService( + Mutation$RestartService$services$restartService instance, + TRes Function(Mutation$RestartService$services$restartService) then, + ) = _CopyWithImpl$Mutation$RestartService$services$restartService; - factory CopyWith$Mutation$RestartService$restartService.stub(TRes res) = - _CopyWithStubImpl$Mutation$RestartService$restartService; + factory CopyWith$Mutation$RestartService$services$restartService.stub( + TRes res) = + _CopyWithStubImpl$Mutation$RestartService$services$restartService; TRes call({ int? code, @@ -4054,16 +4820,16 @@ abstract class CopyWith$Mutation$RestartService$restartService { }); } -class _CopyWithImpl$Mutation$RestartService$restartService - implements CopyWith$Mutation$RestartService$restartService { - _CopyWithImpl$Mutation$RestartService$restartService( +class _CopyWithImpl$Mutation$RestartService$services$restartService + implements CopyWith$Mutation$RestartService$services$restartService { + _CopyWithImpl$Mutation$RestartService$services$restartService( this._instance, this._then, ); - final Mutation$RestartService$restartService _instance; + final Mutation$RestartService$services$restartService _instance; - final TRes Function(Mutation$RestartService$restartService) _then; + final TRes Function(Mutation$RestartService$services$restartService) _then; static const _undefined = {}; @@ -4073,7 +4839,7 @@ class _CopyWithImpl$Mutation$RestartService$restartService Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$RestartService$restartService( + _then(Mutation$RestartService$services$restartService( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -4088,9 +4854,9 @@ class _CopyWithImpl$Mutation$RestartService$restartService )); } -class _CopyWithStubImpl$Mutation$RestartService$restartService - implements CopyWith$Mutation$RestartService$restartService { - _CopyWithStubImpl$Mutation$RestartService$restartService(this._res); +class _CopyWithStubImpl$Mutation$RestartService$services$restartService + implements CopyWith$Mutation$RestartService$services$restartService { + _CopyWithStubImpl$Mutation$RestartService$services$restartService(this._res); TRes _res; @@ -4206,29 +4972,28 @@ class _CopyWithStubImpl$Variables$Mutation$MoveService class Mutation$MoveService { Mutation$MoveService({ - required this.moveService, + required this.services, this.$__typename = 'Mutation', }); factory Mutation$MoveService.fromJson(Map json) { - final l$moveService = json['moveService']; + final l$services = json['services']; final l$$__typename = json['__typename']; return Mutation$MoveService( - moveService: Mutation$MoveService$moveService.fromJson( - (l$moveService as Map)), + services: Mutation$MoveService$services.fromJson( + (l$services as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `services.move_service` instead') - final Mutation$MoveService$moveService moveService; + final Mutation$MoveService$services services; final String $__typename; Map toJson() { final _resultData = {}; - final l$moveService = moveService; - _resultData['moveService'] = l$moveService.toJson(); + final l$services = services; + _resultData['services'] = l$services.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -4236,10 +5001,10 @@ class Mutation$MoveService { @override int get hashCode { - final l$moveService = moveService; + final l$services = services; final l$$__typename = $__typename; return Object.hashAll([ - l$moveService, + l$services, l$$__typename, ]); } @@ -4252,9 +5017,9 @@ class Mutation$MoveService { if (!(other is Mutation$MoveService) || runtimeType != other.runtimeType) { return false; } - final l$moveService = moveService; - final lOther$moveService = other.moveService; - if (l$moveService != lOther$moveService) { + final l$services = services; + final lOther$services = other.services; + if (l$services != lOther$services) { return false; } final l$$__typename = $__typename; @@ -4284,10 +5049,10 @@ abstract class CopyWith$Mutation$MoveService { _CopyWithStubImpl$Mutation$MoveService; TRes call({ - Mutation$MoveService$moveService? moveService, + Mutation$MoveService$services? services, String? $__typename, }); - CopyWith$Mutation$MoveService$moveService get moveService; + CopyWith$Mutation$MoveService$services get services; } class _CopyWithImpl$Mutation$MoveService @@ -4304,22 +5069,22 @@ class _CopyWithImpl$Mutation$MoveService static const _undefined = {}; TRes call({ - Object? moveService = _undefined, + Object? services = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$MoveService( - moveService: moveService == _undefined || moveService == null - ? _instance.moveService - : (moveService as Mutation$MoveService$moveService), + services: services == _undefined || services == null + ? _instance.services + : (services as Mutation$MoveService$services), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$MoveService$moveService get moveService { - final local$moveService = _instance.moveService; - return CopyWith$Mutation$MoveService$moveService( - local$moveService, (e) => call(moveService: e)); + CopyWith$Mutation$MoveService$services get services { + final local$services = _instance.services; + return CopyWith$Mutation$MoveService$services( + local$services, (e) => call(services: e)); } } @@ -4330,13 +5095,13 @@ class _CopyWithStubImpl$Mutation$MoveService TRes _res; call({ - Mutation$MoveService$moveService? moveService, + Mutation$MoveService$services? services, String? $__typename, }) => _res; - CopyWith$Mutation$MoveService$moveService get moveService => - CopyWith$Mutation$MoveService$moveService.stub(_res); + CopyWith$Mutation$MoveService$services get services => + CopyWith$Mutation$MoveService$services.stub(_res); } const documentNodeMutationMoveService = DocumentNode(definitions: [ @@ -4357,30 +5122,45 @@ const documentNodeMutationMoveService = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'moveService'), + name: NameNode(value: 'services'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: VariableNode(name: NameNode(value: 'input')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'job'), + name: NameNode(value: 'moveService'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'input'), + value: VariableNode(name: NameNode(value: 'input')), + ) + ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( - name: NameNode(value: 'basicApiJobsFields'), + name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), + FieldNode( + name: NameNode(value: 'job'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicApiJobsFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), FieldNode( name: NameNode(value: '__typename'), alias: null, @@ -4506,9 +5286,145 @@ extension ClientExtension$Mutation$MoveService on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$MoveService$moveService +class Mutation$MoveService$services { + Mutation$MoveService$services({ + required this.moveService, + this.$__typename = 'ServicesMutations', + }); + + factory Mutation$MoveService$services.fromJson(Map json) { + final l$moveService = json['moveService']; + final l$$__typename = json['__typename']; + return Mutation$MoveService$services( + moveService: Mutation$MoveService$services$moveService.fromJson( + (l$moveService as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$MoveService$services$moveService moveService; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$moveService = moveService; + _resultData['moveService'] = l$moveService.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$moveService = moveService; + final l$$__typename = $__typename; + return Object.hashAll([ + l$moveService, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$MoveService$services) || + runtimeType != other.runtimeType) { + return false; + } + final l$moveService = moveService; + final lOther$moveService = other.moveService; + if (l$moveService != lOther$moveService) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$MoveService$services + on Mutation$MoveService$services { + CopyWith$Mutation$MoveService$services + get copyWith => CopyWith$Mutation$MoveService$services( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$MoveService$services { + factory CopyWith$Mutation$MoveService$services( + Mutation$MoveService$services instance, + TRes Function(Mutation$MoveService$services) then, + ) = _CopyWithImpl$Mutation$MoveService$services; + + factory CopyWith$Mutation$MoveService$services.stub(TRes res) = + _CopyWithStubImpl$Mutation$MoveService$services; + + TRes call({ + Mutation$MoveService$services$moveService? moveService, + String? $__typename, + }); + CopyWith$Mutation$MoveService$services$moveService get moveService; +} + +class _CopyWithImpl$Mutation$MoveService$services + implements CopyWith$Mutation$MoveService$services { + _CopyWithImpl$Mutation$MoveService$services( + this._instance, + this._then, + ); + + final Mutation$MoveService$services _instance; + + final TRes Function(Mutation$MoveService$services) _then; + + static const _undefined = {}; + + TRes call({ + Object? moveService = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$MoveService$services( + moveService: moveService == _undefined || moveService == null + ? _instance.moveService + : (moveService as Mutation$MoveService$services$moveService), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$MoveService$services$moveService get moveService { + final local$moveService = _instance.moveService; + return CopyWith$Mutation$MoveService$services$moveService( + local$moveService, (e) => call(moveService: e)); + } +} + +class _CopyWithStubImpl$Mutation$MoveService$services + implements CopyWith$Mutation$MoveService$services { + _CopyWithStubImpl$Mutation$MoveService$services(this._res); + + TRes _res; + + call({ + Mutation$MoveService$services$moveService? moveService, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$MoveService$services$moveService get moveService => + CopyWith$Mutation$MoveService$services$moveService.stub(_res); +} + +class Mutation$MoveService$services$moveService implements Fragment$basicMutationReturnFields$$ServiceJobMutationReturn { - Mutation$MoveService$moveService({ + Mutation$MoveService$services$moveService({ required this.code, required this.message, required this.success, @@ -4516,13 +5432,14 @@ class Mutation$MoveService$moveService this.job, }); - factory Mutation$MoveService$moveService.fromJson(Map json) { + factory Mutation$MoveService$services$moveService.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$job = json['job']; - return Mutation$MoveService$moveService( + return Mutation$MoveService$services$moveService( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -4580,7 +5497,7 @@ class Mutation$MoveService$moveService if (identical(this, other)) { return true; } - if (!(other is Mutation$MoveService$moveService) || + if (!(other is Mutation$MoveService$services$moveService) || runtimeType != other.runtimeType) { return false; } @@ -4613,23 +5530,24 @@ class Mutation$MoveService$moveService } } -extension UtilityExtension$Mutation$MoveService$moveService - on Mutation$MoveService$moveService { - CopyWith$Mutation$MoveService$moveService - get copyWith => CopyWith$Mutation$MoveService$moveService( +extension UtilityExtension$Mutation$MoveService$services$moveService + on Mutation$MoveService$services$moveService { + CopyWith$Mutation$MoveService$services$moveService< + Mutation$MoveService$services$moveService> + get copyWith => CopyWith$Mutation$MoveService$services$moveService( this, (i) => i, ); } -abstract class CopyWith$Mutation$MoveService$moveService { - factory CopyWith$Mutation$MoveService$moveService( - Mutation$MoveService$moveService instance, - TRes Function(Mutation$MoveService$moveService) then, - ) = _CopyWithImpl$Mutation$MoveService$moveService; +abstract class CopyWith$Mutation$MoveService$services$moveService { + factory CopyWith$Mutation$MoveService$services$moveService( + Mutation$MoveService$services$moveService instance, + TRes Function(Mutation$MoveService$services$moveService) then, + ) = _CopyWithImpl$Mutation$MoveService$services$moveService; - factory CopyWith$Mutation$MoveService$moveService.stub(TRes res) = - _CopyWithStubImpl$Mutation$MoveService$moveService; + factory CopyWith$Mutation$MoveService$services$moveService.stub(TRes res) = + _CopyWithStubImpl$Mutation$MoveService$services$moveService; TRes call({ int? code, @@ -4641,16 +5559,16 @@ abstract class CopyWith$Mutation$MoveService$moveService { CopyWith$Fragment$basicApiJobsFields get job; } -class _CopyWithImpl$Mutation$MoveService$moveService - implements CopyWith$Mutation$MoveService$moveService { - _CopyWithImpl$Mutation$MoveService$moveService( +class _CopyWithImpl$Mutation$MoveService$services$moveService + implements CopyWith$Mutation$MoveService$services$moveService { + _CopyWithImpl$Mutation$MoveService$services$moveService( this._instance, this._then, ); - final Mutation$MoveService$moveService _instance; + final Mutation$MoveService$services$moveService _instance; - final TRes Function(Mutation$MoveService$moveService) _then; + final TRes Function(Mutation$MoveService$services$moveService) _then; static const _undefined = {}; @@ -4661,7 +5579,7 @@ class _CopyWithImpl$Mutation$MoveService$moveService Object? $__typename = _undefined, Object? job = _undefined, }) => - _then(Mutation$MoveService$moveService( + _then(Mutation$MoveService$services$moveService( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -4686,9 +5604,9 @@ class _CopyWithImpl$Mutation$MoveService$moveService } } -class _CopyWithStubImpl$Mutation$MoveService$moveService - implements CopyWith$Mutation$MoveService$moveService { - _CopyWithStubImpl$Mutation$MoveService$moveService(this._res); +class _CopyWithStubImpl$Mutation$MoveService$services$moveService + implements CopyWith$Mutation$MoveService$services$moveService { + _CopyWithStubImpl$Mutation$MoveService$services$moveService(this._res); TRes _res; diff --git a/lib/logic/api_maps/graphql_maps/schema/users.graphql b/lib/logic/api_maps/graphql_maps/schema/users.graphql index 7ce64f8a..23d50454 100644 --- a/lib/logic/api_maps/graphql_maps/schema/users.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/users.graphql @@ -24,43 +24,53 @@ query GetUser($username: String!) { } mutation CreateUser($user: UserMutationInput!) { - createUser(user: $user) { - ...basicMutationReturnFields - user { - ...userFields + users { + createUser(user: $user) { + ...basicMutationReturnFields + user { + ...userFields + } } } } mutation DeleteUser($username: String!) { - deleteUser(username: $username) { - ...basicMutationReturnFields + users { + deleteUser(username: $username) { + ...basicMutationReturnFields + } } } mutation UpdateUser($user: UserMutationInput!) { - updateUser(user: $user) { - ...basicMutationReturnFields - user { - ...userFields + users { + updateUser(user: $user) { + ...basicMutationReturnFields + user { + ...userFields + } } } } mutation AddSshKey($sshInput: SshMutationInput!) { - addSshKey(sshInput: $sshInput) { - ...basicMutationReturnFields - user { - ...userFields + users { + addSshKey(sshInput: $sshInput) { + ...basicMutationReturnFields + user { + ...userFields + } } } } mutation RemoveSshKey($sshInput: SshMutationInput!) { - removeSshKey(sshInput: $sshInput) { - ...basicMutationReturnFields - user { - ...userFields + users { + removeSshKey(sshInput: $sshInput) { + ...basicMutationReturnFields + user { + ...userFields + } } } } diff --git a/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart index 4ad681b3..4fc24a34 100644 --- a/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart @@ -1426,29 +1426,28 @@ class _CopyWithStubImpl$Variables$Mutation$CreateUser class Mutation$CreateUser { Mutation$CreateUser({ - required this.createUser, + required this.users, this.$__typename = 'Mutation', }); factory Mutation$CreateUser.fromJson(Map json) { - final l$createUser = json['createUser']; + final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$CreateUser( - createUser: Mutation$CreateUser$createUser.fromJson( - (l$createUser as Map)), + users: + Mutation$CreateUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `users.create_user` instead') - final Mutation$CreateUser$createUser createUser; + final Mutation$CreateUser$users users; final String $__typename; Map toJson() { final _resultData = {}; - final l$createUser = createUser; - _resultData['createUser'] = l$createUser.toJson(); + final l$users = users; + _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -1456,10 +1455,10 @@ class Mutation$CreateUser { @override int get hashCode { - final l$createUser = createUser; + final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ - l$createUser, + l$users, l$$__typename, ]); } @@ -1472,9 +1471,9 @@ class Mutation$CreateUser { if (!(other is Mutation$CreateUser) || runtimeType != other.runtimeType) { return false; } - final l$createUser = createUser; - final lOther$createUser = other.createUser; - if (l$createUser != lOther$createUser) { + final l$users = users; + final lOther$users = other.users; + if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; @@ -1504,10 +1503,10 @@ abstract class CopyWith$Mutation$CreateUser { _CopyWithStubImpl$Mutation$CreateUser; TRes call({ - Mutation$CreateUser$createUser? createUser, + Mutation$CreateUser$users? users, String? $__typename, }); - CopyWith$Mutation$CreateUser$createUser get createUser; + CopyWith$Mutation$CreateUser$users get users; } class _CopyWithImpl$Mutation$CreateUser @@ -1524,22 +1523,22 @@ class _CopyWithImpl$Mutation$CreateUser static const _undefined = {}; TRes call({ - Object? createUser = _undefined, + Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$CreateUser( - createUser: createUser == _undefined || createUser == null - ? _instance.createUser - : (createUser as Mutation$CreateUser$createUser), + users: users == _undefined || users == null + ? _instance.users + : (users as Mutation$CreateUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$CreateUser$createUser get createUser { - final local$createUser = _instance.createUser; - return CopyWith$Mutation$CreateUser$createUser( - local$createUser, (e) => call(createUser: e)); + CopyWith$Mutation$CreateUser$users get users { + final local$users = _instance.users; + return CopyWith$Mutation$CreateUser$users( + local$users, (e) => call(users: e)); } } @@ -1550,13 +1549,13 @@ class _CopyWithStubImpl$Mutation$CreateUser TRes _res; call({ - Mutation$CreateUser$createUser? createUser, + Mutation$CreateUser$users? users, String? $__typename, }) => _res; - CopyWith$Mutation$CreateUser$createUser get createUser => - CopyWith$Mutation$CreateUser$createUser.stub(_res); + CopyWith$Mutation$CreateUser$users get users => + CopyWith$Mutation$CreateUser$users.stub(_res); } const documentNodeMutationCreateUser = DocumentNode(definitions: [ @@ -1577,30 +1576,45 @@ const documentNodeMutationCreateUser = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'createUser'), + name: NameNode(value: 'users'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'user'), - value: VariableNode(name: NameNode(value: 'user')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'user'), + name: NameNode(value: 'createUser'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'user'), + value: VariableNode(name: NameNode(value: 'user')), + ) + ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( - name: NameNode(value: 'userFields'), + name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'userFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), FieldNode( name: NameNode(value: '__typename'), alias: null, @@ -1725,9 +1739,145 @@ extension ClientExtension$Mutation$CreateUser on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$CreateUser$createUser +class Mutation$CreateUser$users { + Mutation$CreateUser$users({ + required this.createUser, + this.$__typename = 'UsersMutations', + }); + + factory Mutation$CreateUser$users.fromJson(Map json) { + final l$createUser = json['createUser']; + final l$$__typename = json['__typename']; + return Mutation$CreateUser$users( + createUser: Mutation$CreateUser$users$createUser.fromJson( + (l$createUser as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$CreateUser$users$createUser createUser; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$createUser = createUser; + _resultData['createUser'] = l$createUser.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$createUser = createUser; + final l$$__typename = $__typename; + return Object.hashAll([ + l$createUser, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$CreateUser$users) || + runtimeType != other.runtimeType) { + return false; + } + final l$createUser = createUser; + final lOther$createUser = other.createUser; + if (l$createUser != lOther$createUser) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$CreateUser$users + on Mutation$CreateUser$users { + CopyWith$Mutation$CreateUser$users get copyWith => + CopyWith$Mutation$CreateUser$users( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$CreateUser$users { + factory CopyWith$Mutation$CreateUser$users( + Mutation$CreateUser$users instance, + TRes Function(Mutation$CreateUser$users) then, + ) = _CopyWithImpl$Mutation$CreateUser$users; + + factory CopyWith$Mutation$CreateUser$users.stub(TRes res) = + _CopyWithStubImpl$Mutation$CreateUser$users; + + TRes call({ + Mutation$CreateUser$users$createUser? createUser, + String? $__typename, + }); + CopyWith$Mutation$CreateUser$users$createUser get createUser; +} + +class _CopyWithImpl$Mutation$CreateUser$users + implements CopyWith$Mutation$CreateUser$users { + _CopyWithImpl$Mutation$CreateUser$users( + this._instance, + this._then, + ); + + final Mutation$CreateUser$users _instance; + + final TRes Function(Mutation$CreateUser$users) _then; + + static const _undefined = {}; + + TRes call({ + Object? createUser = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$CreateUser$users( + createUser: createUser == _undefined || createUser == null + ? _instance.createUser + : (createUser as Mutation$CreateUser$users$createUser), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$CreateUser$users$createUser get createUser { + final local$createUser = _instance.createUser; + return CopyWith$Mutation$CreateUser$users$createUser( + local$createUser, (e) => call(createUser: e)); + } +} + +class _CopyWithStubImpl$Mutation$CreateUser$users + implements CopyWith$Mutation$CreateUser$users { + _CopyWithStubImpl$Mutation$CreateUser$users(this._res); + + TRes _res; + + call({ + Mutation$CreateUser$users$createUser? createUser, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$CreateUser$users$createUser get createUser => + CopyWith$Mutation$CreateUser$users$createUser.stub(_res); +} + +class Mutation$CreateUser$users$createUser implements Fragment$basicMutationReturnFields$$UserMutationReturn { - Mutation$CreateUser$createUser({ + Mutation$CreateUser$users$createUser({ required this.code, required this.message, required this.success, @@ -1735,13 +1885,14 @@ class Mutation$CreateUser$createUser this.user, }); - factory Mutation$CreateUser$createUser.fromJson(Map json) { + factory Mutation$CreateUser$users$createUser.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$user = json['user']; - return Mutation$CreateUser$createUser( + return Mutation$CreateUser$users$createUser( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -1798,7 +1949,7 @@ class Mutation$CreateUser$createUser if (identical(this, other)) { return true; } - if (!(other is Mutation$CreateUser$createUser) || + if (!(other is Mutation$CreateUser$users$createUser) || runtimeType != other.runtimeType) { return false; } @@ -1831,23 +1982,24 @@ class Mutation$CreateUser$createUser } } -extension UtilityExtension$Mutation$CreateUser$createUser - on Mutation$CreateUser$createUser { - CopyWith$Mutation$CreateUser$createUser - get copyWith => CopyWith$Mutation$CreateUser$createUser( +extension UtilityExtension$Mutation$CreateUser$users$createUser + on Mutation$CreateUser$users$createUser { + CopyWith$Mutation$CreateUser$users$createUser< + Mutation$CreateUser$users$createUser> + get copyWith => CopyWith$Mutation$CreateUser$users$createUser( this, (i) => i, ); } -abstract class CopyWith$Mutation$CreateUser$createUser { - factory CopyWith$Mutation$CreateUser$createUser( - Mutation$CreateUser$createUser instance, - TRes Function(Mutation$CreateUser$createUser) then, - ) = _CopyWithImpl$Mutation$CreateUser$createUser; +abstract class CopyWith$Mutation$CreateUser$users$createUser { + factory CopyWith$Mutation$CreateUser$users$createUser( + Mutation$CreateUser$users$createUser instance, + TRes Function(Mutation$CreateUser$users$createUser) then, + ) = _CopyWithImpl$Mutation$CreateUser$users$createUser; - factory CopyWith$Mutation$CreateUser$createUser.stub(TRes res) = - _CopyWithStubImpl$Mutation$CreateUser$createUser; + factory CopyWith$Mutation$CreateUser$users$createUser.stub(TRes res) = + _CopyWithStubImpl$Mutation$CreateUser$users$createUser; TRes call({ int? code, @@ -1859,16 +2011,16 @@ abstract class CopyWith$Mutation$CreateUser$createUser { CopyWith$Fragment$userFields get user; } -class _CopyWithImpl$Mutation$CreateUser$createUser - implements CopyWith$Mutation$CreateUser$createUser { - _CopyWithImpl$Mutation$CreateUser$createUser( +class _CopyWithImpl$Mutation$CreateUser$users$createUser + implements CopyWith$Mutation$CreateUser$users$createUser { + _CopyWithImpl$Mutation$CreateUser$users$createUser( this._instance, this._then, ); - final Mutation$CreateUser$createUser _instance; + final Mutation$CreateUser$users$createUser _instance; - final TRes Function(Mutation$CreateUser$createUser) _then; + final TRes Function(Mutation$CreateUser$users$createUser) _then; static const _undefined = {}; @@ -1879,7 +2031,7 @@ class _CopyWithImpl$Mutation$CreateUser$createUser Object? $__typename = _undefined, Object? user = _undefined, }) => - _then(Mutation$CreateUser$createUser( + _then(Mutation$CreateUser$users$createUser( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -1904,9 +2056,9 @@ class _CopyWithImpl$Mutation$CreateUser$createUser } } -class _CopyWithStubImpl$Mutation$CreateUser$createUser - implements CopyWith$Mutation$CreateUser$createUser { - _CopyWithStubImpl$Mutation$CreateUser$createUser(this._res); +class _CopyWithStubImpl$Mutation$CreateUser$users$createUser + implements CopyWith$Mutation$CreateUser$users$createUser { + _CopyWithStubImpl$Mutation$CreateUser$users$createUser(this._res); TRes _res; @@ -2023,29 +2175,28 @@ class _CopyWithStubImpl$Variables$Mutation$DeleteUser class Mutation$DeleteUser { Mutation$DeleteUser({ - required this.deleteUser, + required this.users, this.$__typename = 'Mutation', }); factory Mutation$DeleteUser.fromJson(Map json) { - final l$deleteUser = json['deleteUser']; + final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$DeleteUser( - deleteUser: Mutation$DeleteUser$deleteUser.fromJson( - (l$deleteUser as Map)), + users: + Mutation$DeleteUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `users.delete_user` instead') - final Mutation$DeleteUser$deleteUser deleteUser; + final Mutation$DeleteUser$users users; final String $__typename; Map toJson() { final _resultData = {}; - final l$deleteUser = deleteUser; - _resultData['deleteUser'] = l$deleteUser.toJson(); + final l$users = users; + _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2053,10 +2204,10 @@ class Mutation$DeleteUser { @override int get hashCode { - final l$deleteUser = deleteUser; + final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ - l$deleteUser, + l$users, l$$__typename, ]); } @@ -2069,9 +2220,9 @@ class Mutation$DeleteUser { if (!(other is Mutation$DeleteUser) || runtimeType != other.runtimeType) { return false; } - final l$deleteUser = deleteUser; - final lOther$deleteUser = other.deleteUser; - if (l$deleteUser != lOther$deleteUser) { + final l$users = users; + final lOther$users = other.users; + if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; @@ -2101,10 +2252,10 @@ abstract class CopyWith$Mutation$DeleteUser { _CopyWithStubImpl$Mutation$DeleteUser; TRes call({ - Mutation$DeleteUser$deleteUser? deleteUser, + Mutation$DeleteUser$users? users, String? $__typename, }); - CopyWith$Mutation$DeleteUser$deleteUser get deleteUser; + CopyWith$Mutation$DeleteUser$users get users; } class _CopyWithImpl$Mutation$DeleteUser @@ -2121,22 +2272,22 @@ class _CopyWithImpl$Mutation$DeleteUser static const _undefined = {}; TRes call({ - Object? deleteUser = _undefined, + Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteUser( - deleteUser: deleteUser == _undefined || deleteUser == null - ? _instance.deleteUser - : (deleteUser as Mutation$DeleteUser$deleteUser), + users: users == _undefined || users == null + ? _instance.users + : (users as Mutation$DeleteUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$DeleteUser$deleteUser get deleteUser { - final local$deleteUser = _instance.deleteUser; - return CopyWith$Mutation$DeleteUser$deleteUser( - local$deleteUser, (e) => call(deleteUser: e)); + CopyWith$Mutation$DeleteUser$users get users { + final local$users = _instance.users; + return CopyWith$Mutation$DeleteUser$users( + local$users, (e) => call(users: e)); } } @@ -2147,13 +2298,13 @@ class _CopyWithStubImpl$Mutation$DeleteUser TRes _res; call({ - Mutation$DeleteUser$deleteUser? deleteUser, + Mutation$DeleteUser$users? users, String? $__typename, }) => _res; - CopyWith$Mutation$DeleteUser$deleteUser get deleteUser => - CopyWith$Mutation$DeleteUser$deleteUser.stub(_res); + CopyWith$Mutation$DeleteUser$users get users => + CopyWith$Mutation$DeleteUser$users.stub(_res); } const documentNodeMutationDeleteUser = DocumentNode(definitions: [ @@ -2174,19 +2325,34 @@ const documentNodeMutationDeleteUser = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'deleteUser'), + name: NameNode(value: 'users'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'username'), - value: VariableNode(name: NameNode(value: 'username')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), + FieldNode( + name: NameNode(value: 'deleteUser'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'username'), + value: VariableNode(name: NameNode(value: 'username')), + ) + ], directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'basicMutationReturnFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), FieldNode( name: NameNode(value: '__typename'), @@ -2302,21 +2468,158 @@ extension ClientExtension$Mutation$DeleteUser on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$DeleteUser$deleteUser +class Mutation$DeleteUser$users { + Mutation$DeleteUser$users({ + required this.deleteUser, + this.$__typename = 'UsersMutations', + }); + + factory Mutation$DeleteUser$users.fromJson(Map json) { + final l$deleteUser = json['deleteUser']; + final l$$__typename = json['__typename']; + return Mutation$DeleteUser$users( + deleteUser: Mutation$DeleteUser$users$deleteUser.fromJson( + (l$deleteUser as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$DeleteUser$users$deleteUser deleteUser; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$deleteUser = deleteUser; + _resultData['deleteUser'] = l$deleteUser.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$deleteUser = deleteUser; + final l$$__typename = $__typename; + return Object.hashAll([ + l$deleteUser, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$DeleteUser$users) || + runtimeType != other.runtimeType) { + return false; + } + final l$deleteUser = deleteUser; + final lOther$deleteUser = other.deleteUser; + if (l$deleteUser != lOther$deleteUser) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$DeleteUser$users + on Mutation$DeleteUser$users { + CopyWith$Mutation$DeleteUser$users get copyWith => + CopyWith$Mutation$DeleteUser$users( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$DeleteUser$users { + factory CopyWith$Mutation$DeleteUser$users( + Mutation$DeleteUser$users instance, + TRes Function(Mutation$DeleteUser$users) then, + ) = _CopyWithImpl$Mutation$DeleteUser$users; + + factory CopyWith$Mutation$DeleteUser$users.stub(TRes res) = + _CopyWithStubImpl$Mutation$DeleteUser$users; + + TRes call({ + Mutation$DeleteUser$users$deleteUser? deleteUser, + String? $__typename, + }); + CopyWith$Mutation$DeleteUser$users$deleteUser get deleteUser; +} + +class _CopyWithImpl$Mutation$DeleteUser$users + implements CopyWith$Mutation$DeleteUser$users { + _CopyWithImpl$Mutation$DeleteUser$users( + this._instance, + this._then, + ); + + final Mutation$DeleteUser$users _instance; + + final TRes Function(Mutation$DeleteUser$users) _then; + + static const _undefined = {}; + + TRes call({ + Object? deleteUser = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$DeleteUser$users( + deleteUser: deleteUser == _undefined || deleteUser == null + ? _instance.deleteUser + : (deleteUser as Mutation$DeleteUser$users$deleteUser), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$DeleteUser$users$deleteUser get deleteUser { + final local$deleteUser = _instance.deleteUser; + return CopyWith$Mutation$DeleteUser$users$deleteUser( + local$deleteUser, (e) => call(deleteUser: e)); + } +} + +class _CopyWithStubImpl$Mutation$DeleteUser$users + implements CopyWith$Mutation$DeleteUser$users { + _CopyWithStubImpl$Mutation$DeleteUser$users(this._res); + + TRes _res; + + call({ + Mutation$DeleteUser$users$deleteUser? deleteUser, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$DeleteUser$users$deleteUser get deleteUser => + CopyWith$Mutation$DeleteUser$users$deleteUser.stub(_res); +} + +class Mutation$DeleteUser$users$deleteUser implements Fragment$basicMutationReturnFields$$GenericMutationReturn { - Mutation$DeleteUser$deleteUser({ + Mutation$DeleteUser$users$deleteUser({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); - factory Mutation$DeleteUser$deleteUser.fromJson(Map json) { + factory Mutation$DeleteUser$users$deleteUser.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; - return Mutation$DeleteUser$deleteUser( + return Mutation$DeleteUser$users$deleteUser( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -2364,7 +2667,7 @@ class Mutation$DeleteUser$deleteUser if (identical(this, other)) { return true; } - if (!(other is Mutation$DeleteUser$deleteUser) || + if (!(other is Mutation$DeleteUser$users$deleteUser) || runtimeType != other.runtimeType) { return false; } @@ -2392,23 +2695,24 @@ class Mutation$DeleteUser$deleteUser } } -extension UtilityExtension$Mutation$DeleteUser$deleteUser - on Mutation$DeleteUser$deleteUser { - CopyWith$Mutation$DeleteUser$deleteUser - get copyWith => CopyWith$Mutation$DeleteUser$deleteUser( +extension UtilityExtension$Mutation$DeleteUser$users$deleteUser + on Mutation$DeleteUser$users$deleteUser { + CopyWith$Mutation$DeleteUser$users$deleteUser< + Mutation$DeleteUser$users$deleteUser> + get copyWith => CopyWith$Mutation$DeleteUser$users$deleteUser( this, (i) => i, ); } -abstract class CopyWith$Mutation$DeleteUser$deleteUser { - factory CopyWith$Mutation$DeleteUser$deleteUser( - Mutation$DeleteUser$deleteUser instance, - TRes Function(Mutation$DeleteUser$deleteUser) then, - ) = _CopyWithImpl$Mutation$DeleteUser$deleteUser; +abstract class CopyWith$Mutation$DeleteUser$users$deleteUser { + factory CopyWith$Mutation$DeleteUser$users$deleteUser( + Mutation$DeleteUser$users$deleteUser instance, + TRes Function(Mutation$DeleteUser$users$deleteUser) then, + ) = _CopyWithImpl$Mutation$DeleteUser$users$deleteUser; - factory CopyWith$Mutation$DeleteUser$deleteUser.stub(TRes res) = - _CopyWithStubImpl$Mutation$DeleteUser$deleteUser; + factory CopyWith$Mutation$DeleteUser$users$deleteUser.stub(TRes res) = + _CopyWithStubImpl$Mutation$DeleteUser$users$deleteUser; TRes call({ int? code, @@ -2418,16 +2722,16 @@ abstract class CopyWith$Mutation$DeleteUser$deleteUser { }); } -class _CopyWithImpl$Mutation$DeleteUser$deleteUser - implements CopyWith$Mutation$DeleteUser$deleteUser { - _CopyWithImpl$Mutation$DeleteUser$deleteUser( +class _CopyWithImpl$Mutation$DeleteUser$users$deleteUser + implements CopyWith$Mutation$DeleteUser$users$deleteUser { + _CopyWithImpl$Mutation$DeleteUser$users$deleteUser( this._instance, this._then, ); - final Mutation$DeleteUser$deleteUser _instance; + final Mutation$DeleteUser$users$deleteUser _instance; - final TRes Function(Mutation$DeleteUser$deleteUser) _then; + final TRes Function(Mutation$DeleteUser$users$deleteUser) _then; static const _undefined = {}; @@ -2437,7 +2741,7 @@ class _CopyWithImpl$Mutation$DeleteUser$deleteUser Object? success = _undefined, Object? $__typename = _undefined, }) => - _then(Mutation$DeleteUser$deleteUser( + _then(Mutation$DeleteUser$users$deleteUser( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -2452,9 +2756,9 @@ class _CopyWithImpl$Mutation$DeleteUser$deleteUser )); } -class _CopyWithStubImpl$Mutation$DeleteUser$deleteUser - implements CopyWith$Mutation$DeleteUser$deleteUser { - _CopyWithStubImpl$Mutation$DeleteUser$deleteUser(this._res); +class _CopyWithStubImpl$Mutation$DeleteUser$users$deleteUser + implements CopyWith$Mutation$DeleteUser$users$deleteUser { + _CopyWithStubImpl$Mutation$DeleteUser$users$deleteUser(this._res); TRes _res; @@ -2570,29 +2874,28 @@ class _CopyWithStubImpl$Variables$Mutation$UpdateUser class Mutation$UpdateUser { Mutation$UpdateUser({ - required this.updateUser, + required this.users, this.$__typename = 'Mutation', }); factory Mutation$UpdateUser.fromJson(Map json) { - final l$updateUser = json['updateUser']; + final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$UpdateUser( - updateUser: Mutation$UpdateUser$updateUser.fromJson( - (l$updateUser as Map)), + users: + Mutation$UpdateUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `users.update_user` instead') - final Mutation$UpdateUser$updateUser updateUser; + final Mutation$UpdateUser$users users; final String $__typename; Map toJson() { final _resultData = {}; - final l$updateUser = updateUser; - _resultData['updateUser'] = l$updateUser.toJson(); + final l$users = users; + _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -2600,10 +2903,10 @@ class Mutation$UpdateUser { @override int get hashCode { - final l$updateUser = updateUser; + final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ - l$updateUser, + l$users, l$$__typename, ]); } @@ -2616,9 +2919,9 @@ class Mutation$UpdateUser { if (!(other is Mutation$UpdateUser) || runtimeType != other.runtimeType) { return false; } - final l$updateUser = updateUser; - final lOther$updateUser = other.updateUser; - if (l$updateUser != lOther$updateUser) { + final l$users = users; + final lOther$users = other.users; + if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; @@ -2648,10 +2951,10 @@ abstract class CopyWith$Mutation$UpdateUser { _CopyWithStubImpl$Mutation$UpdateUser; TRes call({ - Mutation$UpdateUser$updateUser? updateUser, + Mutation$UpdateUser$users? users, String? $__typename, }); - CopyWith$Mutation$UpdateUser$updateUser get updateUser; + CopyWith$Mutation$UpdateUser$users get users; } class _CopyWithImpl$Mutation$UpdateUser @@ -2668,22 +2971,22 @@ class _CopyWithImpl$Mutation$UpdateUser static const _undefined = {}; TRes call({ - Object? updateUser = _undefined, + Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$UpdateUser( - updateUser: updateUser == _undefined || updateUser == null - ? _instance.updateUser - : (updateUser as Mutation$UpdateUser$updateUser), + users: users == _undefined || users == null + ? _instance.users + : (users as Mutation$UpdateUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$UpdateUser$updateUser get updateUser { - final local$updateUser = _instance.updateUser; - return CopyWith$Mutation$UpdateUser$updateUser( - local$updateUser, (e) => call(updateUser: e)); + CopyWith$Mutation$UpdateUser$users get users { + final local$users = _instance.users; + return CopyWith$Mutation$UpdateUser$users( + local$users, (e) => call(users: e)); } } @@ -2694,13 +2997,13 @@ class _CopyWithStubImpl$Mutation$UpdateUser TRes _res; call({ - Mutation$UpdateUser$updateUser? updateUser, + Mutation$UpdateUser$users? users, String? $__typename, }) => _res; - CopyWith$Mutation$UpdateUser$updateUser get updateUser => - CopyWith$Mutation$UpdateUser$updateUser.stub(_res); + CopyWith$Mutation$UpdateUser$users get users => + CopyWith$Mutation$UpdateUser$users.stub(_res); } const documentNodeMutationUpdateUser = DocumentNode(definitions: [ @@ -2721,30 +3024,45 @@ const documentNodeMutationUpdateUser = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'updateUser'), + name: NameNode(value: 'users'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'user'), - value: VariableNode(name: NameNode(value: 'user')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'user'), + name: NameNode(value: 'updateUser'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'user'), + value: VariableNode(name: NameNode(value: 'user')), + ) + ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( - name: NameNode(value: 'userFields'), + name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'userFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), FieldNode( name: NameNode(value: '__typename'), alias: null, @@ -2869,9 +3187,145 @@ extension ClientExtension$Mutation$UpdateUser on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$UpdateUser$updateUser +class Mutation$UpdateUser$users { + Mutation$UpdateUser$users({ + required this.updateUser, + this.$__typename = 'UsersMutations', + }); + + factory Mutation$UpdateUser$users.fromJson(Map json) { + final l$updateUser = json['updateUser']; + final l$$__typename = json['__typename']; + return Mutation$UpdateUser$users( + updateUser: Mutation$UpdateUser$users$updateUser.fromJson( + (l$updateUser as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$UpdateUser$users$updateUser updateUser; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$updateUser = updateUser; + _resultData['updateUser'] = l$updateUser.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$updateUser = updateUser; + final l$$__typename = $__typename; + return Object.hashAll([ + l$updateUser, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$UpdateUser$users) || + runtimeType != other.runtimeType) { + return false; + } + final l$updateUser = updateUser; + final lOther$updateUser = other.updateUser; + if (l$updateUser != lOther$updateUser) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$UpdateUser$users + on Mutation$UpdateUser$users { + CopyWith$Mutation$UpdateUser$users get copyWith => + CopyWith$Mutation$UpdateUser$users( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$UpdateUser$users { + factory CopyWith$Mutation$UpdateUser$users( + Mutation$UpdateUser$users instance, + TRes Function(Mutation$UpdateUser$users) then, + ) = _CopyWithImpl$Mutation$UpdateUser$users; + + factory CopyWith$Mutation$UpdateUser$users.stub(TRes res) = + _CopyWithStubImpl$Mutation$UpdateUser$users; + + TRes call({ + Mutation$UpdateUser$users$updateUser? updateUser, + String? $__typename, + }); + CopyWith$Mutation$UpdateUser$users$updateUser get updateUser; +} + +class _CopyWithImpl$Mutation$UpdateUser$users + implements CopyWith$Mutation$UpdateUser$users { + _CopyWithImpl$Mutation$UpdateUser$users( + this._instance, + this._then, + ); + + final Mutation$UpdateUser$users _instance; + + final TRes Function(Mutation$UpdateUser$users) _then; + + static const _undefined = {}; + + TRes call({ + Object? updateUser = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$UpdateUser$users( + updateUser: updateUser == _undefined || updateUser == null + ? _instance.updateUser + : (updateUser as Mutation$UpdateUser$users$updateUser), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$UpdateUser$users$updateUser get updateUser { + final local$updateUser = _instance.updateUser; + return CopyWith$Mutation$UpdateUser$users$updateUser( + local$updateUser, (e) => call(updateUser: e)); + } +} + +class _CopyWithStubImpl$Mutation$UpdateUser$users + implements CopyWith$Mutation$UpdateUser$users { + _CopyWithStubImpl$Mutation$UpdateUser$users(this._res); + + TRes _res; + + call({ + Mutation$UpdateUser$users$updateUser? updateUser, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$UpdateUser$users$updateUser get updateUser => + CopyWith$Mutation$UpdateUser$users$updateUser.stub(_res); +} + +class Mutation$UpdateUser$users$updateUser implements Fragment$basicMutationReturnFields$$UserMutationReturn { - Mutation$UpdateUser$updateUser({ + Mutation$UpdateUser$users$updateUser({ required this.code, required this.message, required this.success, @@ -2879,13 +3333,14 @@ class Mutation$UpdateUser$updateUser this.user, }); - factory Mutation$UpdateUser$updateUser.fromJson(Map json) { + factory Mutation$UpdateUser$users$updateUser.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$user = json['user']; - return Mutation$UpdateUser$updateUser( + return Mutation$UpdateUser$users$updateUser( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -2942,7 +3397,7 @@ class Mutation$UpdateUser$updateUser if (identical(this, other)) { return true; } - if (!(other is Mutation$UpdateUser$updateUser) || + if (!(other is Mutation$UpdateUser$users$updateUser) || runtimeType != other.runtimeType) { return false; } @@ -2975,23 +3430,24 @@ class Mutation$UpdateUser$updateUser } } -extension UtilityExtension$Mutation$UpdateUser$updateUser - on Mutation$UpdateUser$updateUser { - CopyWith$Mutation$UpdateUser$updateUser - get copyWith => CopyWith$Mutation$UpdateUser$updateUser( +extension UtilityExtension$Mutation$UpdateUser$users$updateUser + on Mutation$UpdateUser$users$updateUser { + CopyWith$Mutation$UpdateUser$users$updateUser< + Mutation$UpdateUser$users$updateUser> + get copyWith => CopyWith$Mutation$UpdateUser$users$updateUser( this, (i) => i, ); } -abstract class CopyWith$Mutation$UpdateUser$updateUser { - factory CopyWith$Mutation$UpdateUser$updateUser( - Mutation$UpdateUser$updateUser instance, - TRes Function(Mutation$UpdateUser$updateUser) then, - ) = _CopyWithImpl$Mutation$UpdateUser$updateUser; +abstract class CopyWith$Mutation$UpdateUser$users$updateUser { + factory CopyWith$Mutation$UpdateUser$users$updateUser( + Mutation$UpdateUser$users$updateUser instance, + TRes Function(Mutation$UpdateUser$users$updateUser) then, + ) = _CopyWithImpl$Mutation$UpdateUser$users$updateUser; - factory CopyWith$Mutation$UpdateUser$updateUser.stub(TRes res) = - _CopyWithStubImpl$Mutation$UpdateUser$updateUser; + factory CopyWith$Mutation$UpdateUser$users$updateUser.stub(TRes res) = + _CopyWithStubImpl$Mutation$UpdateUser$users$updateUser; TRes call({ int? code, @@ -3003,16 +3459,16 @@ abstract class CopyWith$Mutation$UpdateUser$updateUser { CopyWith$Fragment$userFields get user; } -class _CopyWithImpl$Mutation$UpdateUser$updateUser - implements CopyWith$Mutation$UpdateUser$updateUser { - _CopyWithImpl$Mutation$UpdateUser$updateUser( +class _CopyWithImpl$Mutation$UpdateUser$users$updateUser + implements CopyWith$Mutation$UpdateUser$users$updateUser { + _CopyWithImpl$Mutation$UpdateUser$users$updateUser( this._instance, this._then, ); - final Mutation$UpdateUser$updateUser _instance; + final Mutation$UpdateUser$users$updateUser _instance; - final TRes Function(Mutation$UpdateUser$updateUser) _then; + final TRes Function(Mutation$UpdateUser$users$updateUser) _then; static const _undefined = {}; @@ -3023,7 +3479,7 @@ class _CopyWithImpl$Mutation$UpdateUser$updateUser Object? $__typename = _undefined, Object? user = _undefined, }) => - _then(Mutation$UpdateUser$updateUser( + _then(Mutation$UpdateUser$users$updateUser( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3048,9 +3504,9 @@ class _CopyWithImpl$Mutation$UpdateUser$updateUser } } -class _CopyWithStubImpl$Mutation$UpdateUser$updateUser - implements CopyWith$Mutation$UpdateUser$updateUser { - _CopyWithStubImpl$Mutation$UpdateUser$updateUser(this._res); +class _CopyWithStubImpl$Mutation$UpdateUser$users$updateUser + implements CopyWith$Mutation$UpdateUser$users$updateUser { + _CopyWithStubImpl$Mutation$UpdateUser$users$updateUser(this._res); TRes _res; @@ -3170,29 +3626,28 @@ class _CopyWithStubImpl$Variables$Mutation$AddSshKey class Mutation$AddSshKey { Mutation$AddSshKey({ - required this.addSshKey, + required this.users, this.$__typename = 'Mutation', }); factory Mutation$AddSshKey.fromJson(Map json) { - final l$addSshKey = json['addSshKey']; + final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$AddSshKey( - addSshKey: Mutation$AddSshKey$addSshKey.fromJson( - (l$addSshKey as Map)), + users: + Mutation$AddSshKey$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `users.add_ssh_key` instead') - final Mutation$AddSshKey$addSshKey addSshKey; + final Mutation$AddSshKey$users users; final String $__typename; Map toJson() { final _resultData = {}; - final l$addSshKey = addSshKey; - _resultData['addSshKey'] = l$addSshKey.toJson(); + final l$users = users; + _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3200,10 +3655,10 @@ class Mutation$AddSshKey { @override int get hashCode { - final l$addSshKey = addSshKey; + final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ - l$addSshKey, + l$users, l$$__typename, ]); } @@ -3216,9 +3671,9 @@ class Mutation$AddSshKey { if (!(other is Mutation$AddSshKey) || runtimeType != other.runtimeType) { return false; } - final l$addSshKey = addSshKey; - final lOther$addSshKey = other.addSshKey; - if (l$addSshKey != lOther$addSshKey) { + final l$users = users; + final lOther$users = other.users; + if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; @@ -3248,10 +3703,10 @@ abstract class CopyWith$Mutation$AddSshKey { _CopyWithStubImpl$Mutation$AddSshKey; TRes call({ - Mutation$AddSshKey$addSshKey? addSshKey, + Mutation$AddSshKey$users? users, String? $__typename, }); - CopyWith$Mutation$AddSshKey$addSshKey get addSshKey; + CopyWith$Mutation$AddSshKey$users get users; } class _CopyWithImpl$Mutation$AddSshKey @@ -3268,22 +3723,22 @@ class _CopyWithImpl$Mutation$AddSshKey static const _undefined = {}; TRes call({ - Object? addSshKey = _undefined, + Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$AddSshKey( - addSshKey: addSshKey == _undefined || addSshKey == null - ? _instance.addSshKey - : (addSshKey as Mutation$AddSshKey$addSshKey), + users: users == _undefined || users == null + ? _instance.users + : (users as Mutation$AddSshKey$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$AddSshKey$addSshKey get addSshKey { - final local$addSshKey = _instance.addSshKey; - return CopyWith$Mutation$AddSshKey$addSshKey( - local$addSshKey, (e) => call(addSshKey: e)); + CopyWith$Mutation$AddSshKey$users get users { + final local$users = _instance.users; + return CopyWith$Mutation$AddSshKey$users( + local$users, (e) => call(users: e)); } } @@ -3294,13 +3749,13 @@ class _CopyWithStubImpl$Mutation$AddSshKey TRes _res; call({ - Mutation$AddSshKey$addSshKey? addSshKey, + Mutation$AddSshKey$users? users, String? $__typename, }) => _res; - CopyWith$Mutation$AddSshKey$addSshKey get addSshKey => - CopyWith$Mutation$AddSshKey$addSshKey.stub(_res); + CopyWith$Mutation$AddSshKey$users get users => + CopyWith$Mutation$AddSshKey$users.stub(_res); } const documentNodeMutationAddSshKey = DocumentNode(definitions: [ @@ -3321,30 +3776,45 @@ const documentNodeMutationAddSshKey = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'addSshKey'), + name: NameNode(value: 'users'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'sshInput'), - value: VariableNode(name: NameNode(value: 'sshInput')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'user'), + name: NameNode(value: 'addSshKey'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'sshInput'), + value: VariableNode(name: NameNode(value: 'sshInput')), + ) + ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( - name: NameNode(value: 'userFields'), + name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'userFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), FieldNode( name: NameNode(value: '__typename'), alias: null, @@ -3469,9 +3939,145 @@ extension ClientExtension$Mutation$AddSshKey on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$AddSshKey$addSshKey +class Mutation$AddSshKey$users { + Mutation$AddSshKey$users({ + required this.addSshKey, + this.$__typename = 'UsersMutations', + }); + + factory Mutation$AddSshKey$users.fromJson(Map json) { + final l$addSshKey = json['addSshKey']; + final l$$__typename = json['__typename']; + return Mutation$AddSshKey$users( + addSshKey: Mutation$AddSshKey$users$addSshKey.fromJson( + (l$addSshKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$AddSshKey$users$addSshKey addSshKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$addSshKey = addSshKey; + _resultData['addSshKey'] = l$addSshKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$addSshKey = addSshKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$addSshKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$AddSshKey$users) || + runtimeType != other.runtimeType) { + return false; + } + final l$addSshKey = addSshKey; + final lOther$addSshKey = other.addSshKey; + if (l$addSshKey != lOther$addSshKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$AddSshKey$users + on Mutation$AddSshKey$users { + CopyWith$Mutation$AddSshKey$users get copyWith => + CopyWith$Mutation$AddSshKey$users( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$AddSshKey$users { + factory CopyWith$Mutation$AddSshKey$users( + Mutation$AddSshKey$users instance, + TRes Function(Mutation$AddSshKey$users) then, + ) = _CopyWithImpl$Mutation$AddSshKey$users; + + factory CopyWith$Mutation$AddSshKey$users.stub(TRes res) = + _CopyWithStubImpl$Mutation$AddSshKey$users; + + TRes call({ + Mutation$AddSshKey$users$addSshKey? addSshKey, + String? $__typename, + }); + CopyWith$Mutation$AddSshKey$users$addSshKey get addSshKey; +} + +class _CopyWithImpl$Mutation$AddSshKey$users + implements CopyWith$Mutation$AddSshKey$users { + _CopyWithImpl$Mutation$AddSshKey$users( + this._instance, + this._then, + ); + + final Mutation$AddSshKey$users _instance; + + final TRes Function(Mutation$AddSshKey$users) _then; + + static const _undefined = {}; + + TRes call({ + Object? addSshKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$AddSshKey$users( + addSshKey: addSshKey == _undefined || addSshKey == null + ? _instance.addSshKey + : (addSshKey as Mutation$AddSshKey$users$addSshKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$AddSshKey$users$addSshKey get addSshKey { + final local$addSshKey = _instance.addSshKey; + return CopyWith$Mutation$AddSshKey$users$addSshKey( + local$addSshKey, (e) => call(addSshKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$AddSshKey$users + implements CopyWith$Mutation$AddSshKey$users { + _CopyWithStubImpl$Mutation$AddSshKey$users(this._res); + + TRes _res; + + call({ + Mutation$AddSshKey$users$addSshKey? addSshKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$AddSshKey$users$addSshKey get addSshKey => + CopyWith$Mutation$AddSshKey$users$addSshKey.stub(_res); +} + +class Mutation$AddSshKey$users$addSshKey implements Fragment$basicMutationReturnFields$$UserMutationReturn { - Mutation$AddSshKey$addSshKey({ + Mutation$AddSshKey$users$addSshKey({ required this.code, required this.message, required this.success, @@ -3479,13 +4085,14 @@ class Mutation$AddSshKey$addSshKey this.user, }); - factory Mutation$AddSshKey$addSshKey.fromJson(Map json) { + factory Mutation$AddSshKey$users$addSshKey.fromJson( + Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$user = json['user']; - return Mutation$AddSshKey$addSshKey( + return Mutation$AddSshKey$users$addSshKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -3542,7 +4149,7 @@ class Mutation$AddSshKey$addSshKey if (identical(this, other)) { return true; } - if (!(other is Mutation$AddSshKey$addSshKey) || + if (!(other is Mutation$AddSshKey$users$addSshKey) || runtimeType != other.runtimeType) { return false; } @@ -3575,23 +4182,24 @@ class Mutation$AddSshKey$addSshKey } } -extension UtilityExtension$Mutation$AddSshKey$addSshKey - on Mutation$AddSshKey$addSshKey { - CopyWith$Mutation$AddSshKey$addSshKey - get copyWith => CopyWith$Mutation$AddSshKey$addSshKey( +extension UtilityExtension$Mutation$AddSshKey$users$addSshKey + on Mutation$AddSshKey$users$addSshKey { + CopyWith$Mutation$AddSshKey$users$addSshKey< + Mutation$AddSshKey$users$addSshKey> + get copyWith => CopyWith$Mutation$AddSshKey$users$addSshKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$AddSshKey$addSshKey { - factory CopyWith$Mutation$AddSshKey$addSshKey( - Mutation$AddSshKey$addSshKey instance, - TRes Function(Mutation$AddSshKey$addSshKey) then, - ) = _CopyWithImpl$Mutation$AddSshKey$addSshKey; +abstract class CopyWith$Mutation$AddSshKey$users$addSshKey { + factory CopyWith$Mutation$AddSshKey$users$addSshKey( + Mutation$AddSshKey$users$addSshKey instance, + TRes Function(Mutation$AddSshKey$users$addSshKey) then, + ) = _CopyWithImpl$Mutation$AddSshKey$users$addSshKey; - factory CopyWith$Mutation$AddSshKey$addSshKey.stub(TRes res) = - _CopyWithStubImpl$Mutation$AddSshKey$addSshKey; + factory CopyWith$Mutation$AddSshKey$users$addSshKey.stub(TRes res) = + _CopyWithStubImpl$Mutation$AddSshKey$users$addSshKey; TRes call({ int? code, @@ -3603,16 +4211,16 @@ abstract class CopyWith$Mutation$AddSshKey$addSshKey { CopyWith$Fragment$userFields get user; } -class _CopyWithImpl$Mutation$AddSshKey$addSshKey - implements CopyWith$Mutation$AddSshKey$addSshKey { - _CopyWithImpl$Mutation$AddSshKey$addSshKey( +class _CopyWithImpl$Mutation$AddSshKey$users$addSshKey + implements CopyWith$Mutation$AddSshKey$users$addSshKey { + _CopyWithImpl$Mutation$AddSshKey$users$addSshKey( this._instance, this._then, ); - final Mutation$AddSshKey$addSshKey _instance; + final Mutation$AddSshKey$users$addSshKey _instance; - final TRes Function(Mutation$AddSshKey$addSshKey) _then; + final TRes Function(Mutation$AddSshKey$users$addSshKey) _then; static const _undefined = {}; @@ -3623,7 +4231,7 @@ class _CopyWithImpl$Mutation$AddSshKey$addSshKey Object? $__typename = _undefined, Object? user = _undefined, }) => - _then(Mutation$AddSshKey$addSshKey( + _then(Mutation$AddSshKey$users$addSshKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -3648,9 +4256,9 @@ class _CopyWithImpl$Mutation$AddSshKey$addSshKey } } -class _CopyWithStubImpl$Mutation$AddSshKey$addSshKey - implements CopyWith$Mutation$AddSshKey$addSshKey { - _CopyWithStubImpl$Mutation$AddSshKey$addSshKey(this._res); +class _CopyWithStubImpl$Mutation$AddSshKey$users$addSshKey + implements CopyWith$Mutation$AddSshKey$users$addSshKey { + _CopyWithStubImpl$Mutation$AddSshKey$users$addSshKey(this._res); TRes _res; @@ -3770,29 +4378,28 @@ class _CopyWithStubImpl$Variables$Mutation$RemoveSshKey class Mutation$RemoveSshKey { Mutation$RemoveSshKey({ - required this.removeSshKey, + required this.users, this.$__typename = 'Mutation', }); factory Mutation$RemoveSshKey.fromJson(Map json) { - final l$removeSshKey = json['removeSshKey']; + final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$RemoveSshKey( - removeSshKey: Mutation$RemoveSshKey$removeSshKey.fromJson( - (l$removeSshKey as Map)), + users: Mutation$RemoveSshKey$users.fromJson( + (l$users as Map)), $__typename: (l$$__typename as String), ); } - @Deprecated('Use `users.remove_ssh_key` instead') - final Mutation$RemoveSshKey$removeSshKey removeSshKey; + final Mutation$RemoveSshKey$users users; final String $__typename; Map toJson() { final _resultData = {}; - final l$removeSshKey = removeSshKey; - _resultData['removeSshKey'] = l$removeSshKey.toJson(); + final l$users = users; + _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; @@ -3800,10 +4407,10 @@ class Mutation$RemoveSshKey { @override int get hashCode { - final l$removeSshKey = removeSshKey; + final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ - l$removeSshKey, + l$users, l$$__typename, ]); } @@ -3816,9 +4423,9 @@ class Mutation$RemoveSshKey { if (!(other is Mutation$RemoveSshKey) || runtimeType != other.runtimeType) { return false; } - final l$removeSshKey = removeSshKey; - final lOther$removeSshKey = other.removeSshKey; - if (l$removeSshKey != lOther$removeSshKey) { + final l$users = users; + final lOther$users = other.users; + if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; @@ -3848,10 +4455,10 @@ abstract class CopyWith$Mutation$RemoveSshKey { _CopyWithStubImpl$Mutation$RemoveSshKey; TRes call({ - Mutation$RemoveSshKey$removeSshKey? removeSshKey, + Mutation$RemoveSshKey$users? users, String? $__typename, }); - CopyWith$Mutation$RemoveSshKey$removeSshKey get removeSshKey; + CopyWith$Mutation$RemoveSshKey$users get users; } class _CopyWithImpl$Mutation$RemoveSshKey @@ -3868,22 +4475,22 @@ class _CopyWithImpl$Mutation$RemoveSshKey static const _undefined = {}; TRes call({ - Object? removeSshKey = _undefined, + Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RemoveSshKey( - removeSshKey: removeSshKey == _undefined || removeSshKey == null - ? _instance.removeSshKey - : (removeSshKey as Mutation$RemoveSshKey$removeSshKey), + users: users == _undefined || users == null + ? _instance.users + : (users as Mutation$RemoveSshKey$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); - CopyWith$Mutation$RemoveSshKey$removeSshKey get removeSshKey { - final local$removeSshKey = _instance.removeSshKey; - return CopyWith$Mutation$RemoveSshKey$removeSshKey( - local$removeSshKey, (e) => call(removeSshKey: e)); + CopyWith$Mutation$RemoveSshKey$users get users { + final local$users = _instance.users; + return CopyWith$Mutation$RemoveSshKey$users( + local$users, (e) => call(users: e)); } } @@ -3894,13 +4501,13 @@ class _CopyWithStubImpl$Mutation$RemoveSshKey TRes _res; call({ - Mutation$RemoveSshKey$removeSshKey? removeSshKey, + Mutation$RemoveSshKey$users? users, String? $__typename, }) => _res; - CopyWith$Mutation$RemoveSshKey$removeSshKey get removeSshKey => - CopyWith$Mutation$RemoveSshKey$removeSshKey.stub(_res); + CopyWith$Mutation$RemoveSshKey$users get users => + CopyWith$Mutation$RemoveSshKey$users.stub(_res); } const documentNodeMutationRemoveSshKey = DocumentNode(definitions: [ @@ -3921,30 +4528,45 @@ const documentNodeMutationRemoveSshKey = DocumentNode(definitions: [ directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( - name: NameNode(value: 'removeSshKey'), + name: NameNode(value: 'users'), alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'sshInput'), - value: VariableNode(name: NameNode(value: 'sshInput')), - ) - ], + arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'basicMutationReturnFields'), - directives: [], - ), FieldNode( - name: NameNode(value: 'user'), + name: NameNode(value: 'removeSshKey'), alias: null, - arguments: [], + arguments: [ + ArgumentNode( + name: NameNode(value: 'sshInput'), + value: VariableNode(name: NameNode(value: 'sshInput')), + ) + ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( - name: NameNode(value: 'userFields'), + name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'userFields'), + directives: [], + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), FieldNode( name: NameNode(value: '__typename'), alias: null, @@ -4070,9 +4692,145 @@ extension ClientExtension$Mutation$RemoveSshKey on graphql.GraphQLClient { this.watchMutation(options); } -class Mutation$RemoveSshKey$removeSshKey +class Mutation$RemoveSshKey$users { + Mutation$RemoveSshKey$users({ + required this.removeSshKey, + this.$__typename = 'UsersMutations', + }); + + factory Mutation$RemoveSshKey$users.fromJson(Map json) { + final l$removeSshKey = json['removeSshKey']; + final l$$__typename = json['__typename']; + return Mutation$RemoveSshKey$users( + removeSshKey: Mutation$RemoveSshKey$users$removeSshKey.fromJson( + (l$removeSshKey as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Mutation$RemoveSshKey$users$removeSshKey removeSshKey; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$removeSshKey = removeSshKey; + _resultData['removeSshKey'] = l$removeSshKey.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$removeSshKey = removeSshKey; + final l$$__typename = $__typename; + return Object.hashAll([ + l$removeSshKey, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Mutation$RemoveSshKey$users) || + runtimeType != other.runtimeType) { + return false; + } + final l$removeSshKey = removeSshKey; + final lOther$removeSshKey = other.removeSshKey; + if (l$removeSshKey != lOther$removeSshKey) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Mutation$RemoveSshKey$users + on Mutation$RemoveSshKey$users { + CopyWith$Mutation$RemoveSshKey$users + get copyWith => CopyWith$Mutation$RemoveSshKey$users( + this, + (i) => i, + ); +} + +abstract class CopyWith$Mutation$RemoveSshKey$users { + factory CopyWith$Mutation$RemoveSshKey$users( + Mutation$RemoveSshKey$users instance, + TRes Function(Mutation$RemoveSshKey$users) then, + ) = _CopyWithImpl$Mutation$RemoveSshKey$users; + + factory CopyWith$Mutation$RemoveSshKey$users.stub(TRes res) = + _CopyWithStubImpl$Mutation$RemoveSshKey$users; + + TRes call({ + Mutation$RemoveSshKey$users$removeSshKey? removeSshKey, + String? $__typename, + }); + CopyWith$Mutation$RemoveSshKey$users$removeSshKey get removeSshKey; +} + +class _CopyWithImpl$Mutation$RemoveSshKey$users + implements CopyWith$Mutation$RemoveSshKey$users { + _CopyWithImpl$Mutation$RemoveSshKey$users( + this._instance, + this._then, + ); + + final Mutation$RemoveSshKey$users _instance; + + final TRes Function(Mutation$RemoveSshKey$users) _then; + + static const _undefined = {}; + + TRes call({ + Object? removeSshKey = _undefined, + Object? $__typename = _undefined, + }) => + _then(Mutation$RemoveSshKey$users( + removeSshKey: removeSshKey == _undefined || removeSshKey == null + ? _instance.removeSshKey + : (removeSshKey as Mutation$RemoveSshKey$users$removeSshKey), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Mutation$RemoveSshKey$users$removeSshKey get removeSshKey { + final local$removeSshKey = _instance.removeSshKey; + return CopyWith$Mutation$RemoveSshKey$users$removeSshKey( + local$removeSshKey, (e) => call(removeSshKey: e)); + } +} + +class _CopyWithStubImpl$Mutation$RemoveSshKey$users + implements CopyWith$Mutation$RemoveSshKey$users { + _CopyWithStubImpl$Mutation$RemoveSshKey$users(this._res); + + TRes _res; + + call({ + Mutation$RemoveSshKey$users$removeSshKey? removeSshKey, + String? $__typename, + }) => + _res; + + CopyWith$Mutation$RemoveSshKey$users$removeSshKey get removeSshKey => + CopyWith$Mutation$RemoveSshKey$users$removeSshKey.stub(_res); +} + +class Mutation$RemoveSshKey$users$removeSshKey implements Fragment$basicMutationReturnFields$$UserMutationReturn { - Mutation$RemoveSshKey$removeSshKey({ + Mutation$RemoveSshKey$users$removeSshKey({ required this.code, required this.message, required this.success, @@ -4080,14 +4838,14 @@ class Mutation$RemoveSshKey$removeSshKey this.user, }); - factory Mutation$RemoveSshKey$removeSshKey.fromJson( + factory Mutation$RemoveSshKey$users$removeSshKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$user = json['user']; - return Mutation$RemoveSshKey$removeSshKey( + return Mutation$RemoveSshKey$users$removeSshKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), @@ -4144,7 +4902,7 @@ class Mutation$RemoveSshKey$removeSshKey if (identical(this, other)) { return true; } - if (!(other is Mutation$RemoveSshKey$removeSshKey) || + if (!(other is Mutation$RemoveSshKey$users$removeSshKey) || runtimeType != other.runtimeType) { return false; } @@ -4177,24 +4935,24 @@ class Mutation$RemoveSshKey$removeSshKey } } -extension UtilityExtension$Mutation$RemoveSshKey$removeSshKey - on Mutation$RemoveSshKey$removeSshKey { - CopyWith$Mutation$RemoveSshKey$removeSshKey< - Mutation$RemoveSshKey$removeSshKey> - get copyWith => CopyWith$Mutation$RemoveSshKey$removeSshKey( +extension UtilityExtension$Mutation$RemoveSshKey$users$removeSshKey + on Mutation$RemoveSshKey$users$removeSshKey { + CopyWith$Mutation$RemoveSshKey$users$removeSshKey< + Mutation$RemoveSshKey$users$removeSshKey> + get copyWith => CopyWith$Mutation$RemoveSshKey$users$removeSshKey( this, (i) => i, ); } -abstract class CopyWith$Mutation$RemoveSshKey$removeSshKey { - factory CopyWith$Mutation$RemoveSshKey$removeSshKey( - Mutation$RemoveSshKey$removeSshKey instance, - TRes Function(Mutation$RemoveSshKey$removeSshKey) then, - ) = _CopyWithImpl$Mutation$RemoveSshKey$removeSshKey; +abstract class CopyWith$Mutation$RemoveSshKey$users$removeSshKey { + factory CopyWith$Mutation$RemoveSshKey$users$removeSshKey( + Mutation$RemoveSshKey$users$removeSshKey instance, + TRes Function(Mutation$RemoveSshKey$users$removeSshKey) then, + ) = _CopyWithImpl$Mutation$RemoveSshKey$users$removeSshKey; - factory CopyWith$Mutation$RemoveSshKey$removeSshKey.stub(TRes res) = - _CopyWithStubImpl$Mutation$RemoveSshKey$removeSshKey; + factory CopyWith$Mutation$RemoveSshKey$users$removeSshKey.stub(TRes res) = + _CopyWithStubImpl$Mutation$RemoveSshKey$users$removeSshKey; TRes call({ int? code, @@ -4206,16 +4964,16 @@ abstract class CopyWith$Mutation$RemoveSshKey$removeSshKey { CopyWith$Fragment$userFields get user; } -class _CopyWithImpl$Mutation$RemoveSshKey$removeSshKey - implements CopyWith$Mutation$RemoveSshKey$removeSshKey { - _CopyWithImpl$Mutation$RemoveSshKey$removeSshKey( +class _CopyWithImpl$Mutation$RemoveSshKey$users$removeSshKey + implements CopyWith$Mutation$RemoveSshKey$users$removeSshKey { + _CopyWithImpl$Mutation$RemoveSshKey$users$removeSshKey( this._instance, this._then, ); - final Mutation$RemoveSshKey$removeSshKey _instance; + final Mutation$RemoveSshKey$users$removeSshKey _instance; - final TRes Function(Mutation$RemoveSshKey$removeSshKey) _then; + final TRes Function(Mutation$RemoveSshKey$users$removeSshKey) _then; static const _undefined = {}; @@ -4226,7 +4984,7 @@ class _CopyWithImpl$Mutation$RemoveSshKey$removeSshKey Object? $__typename = _undefined, Object? user = _undefined, }) => - _then(Mutation$RemoveSshKey$removeSshKey( + _then(Mutation$RemoveSshKey$users$removeSshKey( code: code == _undefined || code == null ? _instance.code : (code as int), message: message == _undefined || message == null @@ -4251,9 +5009,9 @@ class _CopyWithImpl$Mutation$RemoveSshKey$removeSshKey } } -class _CopyWithStubImpl$Mutation$RemoveSshKey$removeSshKey - implements CopyWith$Mutation$RemoveSshKey$removeSshKey { - _CopyWithStubImpl$Mutation$RemoveSshKey$removeSshKey(this._res); +class _CopyWithStubImpl$Mutation$RemoveSshKey$users$removeSshKey + implements CopyWith$Mutation$RemoveSshKey$users$removeSshKey { + _CopyWithStubImpl$Mutation$RemoveSshKey$users$removeSshKey(this._res); TRes _res; diff --git a/lib/logic/api_maps/graphql_maps/server_api/jobs_api.dart b/lib/logic/api_maps/graphql_maps/server_api/jobs_api.dart index 8ed73a5d..4332fc4d 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/jobs_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/jobs_api.dart @@ -29,10 +29,10 @@ mixin JobsApi on GraphQLApiMap { final mutation = Options$Mutation$RemoveJob(variables: variables); final response = await client.mutate$RemoveJob(mutation); return GenericResult( - data: response.parsedData?.removeJob.success ?? false, + data: response.parsedData?.jobs.removeJob.success ?? false, success: true, - code: response.parsedData?.removeJob.code ?? 0, - message: response.parsedData?.removeJob.message, + code: response.parsedData?.jobs.removeJob.code ?? 0, + message: response.parsedData?.jobs.removeJob.message, ); } catch (e) { print(e); diff --git a/lib/logic/api_maps/graphql_maps/server_api/server_actions_api.dart b/lib/logic/api_maps/graphql_maps/server_api/server_actions_api.dart index 51a893c0..1d357b06 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/server_actions_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/server_actions_api.dart @@ -28,7 +28,7 @@ mixin ServerActionsApi on GraphQLApiMap { if (response.hasException) { print(response.exception.toString()); } - if (response.parsedData!.rebootSystem.success) { + if (response.parsedData!.system.rebootSystem.success) { time = DateTime.now().toUtc(); } } catch (e) { diff --git a/lib/logic/api_maps/graphql_maps/server_api/server_api.dart b/lib/logic/api_maps/graphql_maps/server_api/server_api.dart index d59cef10..d25e66a3 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/server_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/server_api.dart @@ -270,7 +270,7 @@ class ServerApi extends GraphQLApiMap } key = GenericResult( success: true, - data: response.parsedData!.getNewRecoveryApiKey.key!, + data: response.parsedData!.api.getNewRecoveryApiKey.key!, ); } catch (e) { print(e); @@ -410,7 +410,7 @@ class ServerApi extends GraphQLApiMap } token = GenericResult( success: true, - data: response.parsedData!.getNewDeviceApiKey.key!, + data: response.parsedData!.api.getNewDeviceApiKey.key!, ); } catch (e) { print(e); @@ -459,7 +459,7 @@ class ServerApi extends GraphQLApiMap } token = GenericResult( success: true, - data: response.parsedData!.authorizeWithNewDeviceApiKey.token!, + data: response.parsedData!.api.authorizeWithNewDeviceApiKey.token!, ); } catch (e) { print(e); @@ -506,7 +506,7 @@ class ServerApi extends GraphQLApiMap } token = GenericResult( success: true, - data: response.parsedData!.useRecoveryApiKey.token!, + data: response.parsedData!.api.useRecoveryApiKey.token!, ); } catch (e) { print(e); diff --git a/lib/logic/api_maps/graphql_maps/server_api/services_api.dart b/lib/logic/api_maps/graphql_maps/server_api/services_api.dart index 1632533b..d2926b56 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/services_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/services_api.dart @@ -29,10 +29,10 @@ mixin ServicesApi on GraphQLApiMap { final mutation = Options$Mutation$EnableService(variables: variables); final response = await client.mutate$EnableService(mutation); return GenericResult( - data: response.parsedData?.enableService.success ?? false, + data: response.parsedData?.services.enableService.success ?? false, success: true, - code: response.parsedData?.enableService.code ?? 0, - message: response.parsedData?.enableService.message, + code: response.parsedData?.services.enableService.code ?? 0, + message: response.parsedData?.services.enableService.message, ); } catch (e) { print(e); @@ -55,9 +55,9 @@ mixin ServicesApi on GraphQLApiMap { final response = await client.mutate$DisableService(mutation); return GenericResult( data: null, - success: response.parsedData?.disableService.success ?? false, - code: response.parsedData?.disableService.code ?? 0, - message: response.parsedData?.disableService.message, + success: response.parsedData?.services.disableService.success ?? false, + code: response.parsedData?.services.disableService.code ?? 0, + message: response.parsedData?.services.disableService.message, ); } catch (e) { print(e); @@ -79,10 +79,10 @@ mixin ServicesApi on GraphQLApiMap { final mutation = Options$Mutation$StopService(variables: variables); final response = await client.mutate$StopService(mutation); return GenericResult( - data: response.parsedData?.stopService.success ?? false, + data: response.parsedData?.services.stopService.success ?? false, success: true, - code: response.parsedData?.stopService.code ?? 0, - message: response.parsedData?.stopService.message, + code: response.parsedData?.services.stopService.code ?? 0, + message: response.parsedData?.services.stopService.message, ); } catch (e) { print(e); @@ -103,9 +103,9 @@ mixin ServicesApi on GraphQLApiMap { final response = await client.mutate$StartService(mutation); return GenericResult( data: null, - success: response.parsedData?.startService.success ?? false, - code: response.parsedData?.startService.code ?? 0, - message: response.parsedData?.startService.message, + success: response.parsedData?.services.startService.success ?? false, + code: response.parsedData?.services.startService.code ?? 0, + message: response.parsedData?.services.startService.message, ); } catch (e) { print(e); @@ -127,10 +127,10 @@ mixin ServicesApi on GraphQLApiMap { final mutation = Options$Mutation$RestartService(variables: variables); final response = await client.mutate$RestartService(mutation); return GenericResult( - data: response.parsedData?.restartService.success ?? false, + data: response.parsedData?.services.restartService.success ?? false, success: true, - code: response.parsedData?.restartService.code ?? 0, - message: response.parsedData?.restartService.message, + code: response.parsedData?.services.restartService.code ?? 0, + message: response.parsedData?.services.restartService.message, ); } catch (e) { print(e); @@ -157,11 +157,11 @@ mixin ServicesApi on GraphQLApiMap { ); final mutation = Options$Mutation$MoveService(variables: variables); final response = await client.mutate$MoveService(mutation); - final jobJson = response.parsedData?.moveService.job?.toJson(); + final jobJson = response.parsedData?.services.moveService.job?.toJson(); return GenericResult( success: true, - code: response.parsedData?.moveService.code ?? 0, - message: response.parsedData?.moveService.message, + code: response.parsedData?.services.moveService.code ?? 0, + message: response.parsedData?.services.moveService.message, data: jobJson != null ? ServerJob.fromJson(jobJson) : null, ); } catch (e) { diff --git a/lib/logic/api_maps/graphql_maps/server_api/users_api.dart b/lib/logic/api_maps/graphql_maps/server_api/users_api.dart index 11327290..680a28fb 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/users_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/users_api.dart @@ -58,10 +58,10 @@ mixin UsersApi on GraphQLApiMap { final response = await client.mutate$CreateUser(mutation); return GenericResult( success: true, - code: response.parsedData?.createUser.code ?? 500, - message: response.parsedData?.createUser.message, - data: response.parsedData?.createUser.user != null - ? User.fromGraphQL(response.parsedData!.createUser.user!) + code: response.parsedData?.users.createUser.code ?? 500, + message: response.parsedData?.users.createUser.message, + data: response.parsedData?.users.createUser.user != null + ? User.fromGraphQL(response.parsedData!.users.createUser.user!) : null, ); } catch (e) { @@ -84,10 +84,10 @@ mixin UsersApi on GraphQLApiMap { final mutation = Options$Mutation$DeleteUser(variables: variables); final response = await client.mutate$DeleteUser(mutation); return GenericResult( - data: response.parsedData?.deleteUser.success ?? false, + data: response.parsedData?.users.deleteUser.success ?? false, success: true, - code: response.parsedData?.deleteUser.code ?? 500, - message: response.parsedData?.deleteUser.message, + code: response.parsedData?.users.deleteUser.code ?? 500, + message: response.parsedData?.users.deleteUser.message, ); } catch (e) { print(e); @@ -113,10 +113,10 @@ mixin UsersApi on GraphQLApiMap { final response = await client.mutate$UpdateUser(mutation); return GenericResult( success: true, - code: response.parsedData?.updateUser.code ?? 500, - message: response.parsedData?.updateUser.message, - data: response.parsedData?.updateUser.user != null - ? User.fromGraphQL(response.parsedData!.updateUser.user!) + code: response.parsedData?.users.updateUser.code ?? 500, + message: response.parsedData?.users.updateUser.message, + data: response.parsedData?.users.updateUser.user != null + ? User.fromGraphQL(response.parsedData!.users.updateUser.user!) : null, ); } catch (e) { @@ -146,10 +146,10 @@ mixin UsersApi on GraphQLApiMap { final response = await client.mutate$AddSshKey(mutation); return GenericResult( success: true, - code: response.parsedData?.addSshKey.code ?? 500, - message: response.parsedData?.addSshKey.message, - data: response.parsedData?.addSshKey.user != null - ? User.fromGraphQL(response.parsedData!.addSshKey.user!) + code: response.parsedData?.users.addSshKey.code ?? 500, + message: response.parsedData?.users.addSshKey.message, + data: response.parsedData?.users.addSshKey.user != null + ? User.fromGraphQL(response.parsedData!.users.addSshKey.user!) : null, ); } catch (e) { @@ -178,11 +178,11 @@ mixin UsersApi on GraphQLApiMap { final mutation = Options$Mutation$RemoveSshKey(variables: variables); final response = await client.mutate$RemoveSshKey(mutation); return GenericResult( - success: response.parsedData?.removeSshKey.success ?? false, - code: response.parsedData?.removeSshKey.code ?? 500, - message: response.parsedData?.removeSshKey.message, - data: response.parsedData?.removeSshKey.user != null - ? User.fromGraphQL(response.parsedData!.removeSshKey.user!) + success: response.parsedData?.users.removeSshKey.success ?? false, + code: response.parsedData?.users.removeSshKey.code ?? 500, + message: response.parsedData?.users.removeSshKey.message, + data: response.parsedData?.users.removeSshKey.user != null + ? User.fromGraphQL(response.parsedData!.users.removeSshKey.user!) : null, ); } catch (e) { diff --git a/lib/logic/api_maps/graphql_maps/server_api/volume_api.dart b/lib/logic/api_maps/graphql_maps/server_api/volume_api.dart index a7d23ba8..050b1de0 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/volume_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/volume_api.dart @@ -80,9 +80,9 @@ mixin VolumeApi on GraphQLApiMap { ); mutation = mutation = GenericResult( success: true, - code: result.parsedData!.migrateToBinds.code, - message: result.parsedData!.migrateToBinds.message, - data: result.parsedData!.migrateToBinds.job?.uid, + code: result.parsedData!.storage.migrateToBinds.code, + message: result.parsedData!.storage.migrateToBinds.message, + data: result.parsedData!.storage.migrateToBinds.job?.uid, ); } catch (e) { print(e);