diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.ast.gql.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.ast.gql.dart index 3fe1caaf95b6758c040ac94a68e37fd826541a6c..db16762e8ac9cc00287243bcfb8270a01ab317e5 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.ast.gql.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.ast.gql.dart @@ -129,6 +129,134 @@ const GetProfileByAddress = _i1.OperationDefinitionNode( ) ]), ); +const GetProfilesByAddress = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'GetProfilesByAddress'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'pubkeys')), + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'profiles'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'where'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'pubkey'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_in'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'pubkeys')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'avatar'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pubkey'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'city'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'data_cid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'geoloc'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index_request_cid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pubkey'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socials'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'time'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); const GetProfileCount = _i1.OperationDefinitionNode( type: _i1.OperationType.query, name: _i1.NameNode(value: 'GetProfileCount'), @@ -160,7 +288,365 @@ const GetProfileCount = _i1.OperationDefinitionNode( ) ]), ); +const SearchProfileByTerm = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'SearchProfileByTerm'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'pattern')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'profiles'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'where'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_or'), + value: _i1.ListValueNode(values: [ + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'title'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'pattern')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'description'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'pattern')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'pubkey'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'pattern')), + ) + ]), + ) + ]), + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'avatar'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pubkey'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'city'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'data_cid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'geoloc'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index_request_cid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pubkey'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socials'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'time'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const SearchProfiles = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'SearchProfiles'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'searchTermLower')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'searchTerm')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'searchTermCapitalized')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'profiles'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'where'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_or'), + value: _i1.ListValueNode(values: [ + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'title'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'searchTermLower')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'title'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'searchTerm')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'title'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'searchTermCapitalized')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'description'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'searchTermLower')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'description'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'searchTerm')), + ) + ]), + ) + ]), + _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'description'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'searchTermCapitalized')), + ) + ]), + ) + ]), + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'avatar'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pubkey'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'city'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'data_cid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'geoloc'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index_request_cid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socials'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'time'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); const document = _i1.DocumentNode(definitions: [ GetProfileByAddress, + GetProfilesByAddress, GetProfileCount, + SearchProfileByTerm, + SearchProfiles, ]); diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.dart index e4f143fd9a85ab72b725dea7e319c383233f85e4..86120a9c13704fc6e382cde792f50e4db409ec54 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.dart @@ -84,6 +84,77 @@ abstract class GGetProfileByAddressData_profiles ); } +abstract class GGetProfilesByAddressData + implements + Built<GGetProfilesByAddressData, GGetProfilesByAddressDataBuilder> { + GGetProfilesByAddressData._(); + + factory GGetProfilesByAddressData( + [void Function(GGetProfilesByAddressDataBuilder b) updates]) = + _$GGetProfilesByAddressData; + + static void _initializeBuilder(GGetProfilesByAddressDataBuilder b) => + b..G__typename = 'query_root'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList<GGetProfilesByAddressData_profiles> get profiles; + static Serializer<GGetProfilesByAddressData> get serializer => + _$gGetProfilesByAddressDataSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GGetProfilesByAddressData.serializer, + this, + ) as Map<String, dynamic>); + + static GGetProfilesByAddressData? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GGetProfilesByAddressData.serializer, + json, + ); +} + +abstract class GGetProfilesByAddressData_profiles + implements + Built<GGetProfilesByAddressData_profiles, + GGetProfilesByAddressData_profilesBuilder> { + GGetProfilesByAddressData_profiles._(); + + factory GGetProfilesByAddressData_profiles( + [void Function(GGetProfilesByAddressData_profilesBuilder b) + updates]) = _$GGetProfilesByAddressData_profiles; + + static void _initializeBuilder(GGetProfilesByAddressData_profilesBuilder b) => + b..G__typename = 'profiles'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get avatar; + String get pubkey; + String? get description; + String? get title; + String? get city; + String? get data_cid; + _i2.Gpoint? get geoloc; + String get index_request_cid; + _i3.JsonObject? get socials; + _i2.Gtimestamp get time; + static Serializer<GGetProfilesByAddressData_profiles> get serializer => + _$gGetProfilesByAddressDataProfilesSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GGetProfilesByAddressData_profiles.serializer, + this, + ) as Map<String, dynamic>); + + static GGetProfilesByAddressData_profiles? fromJson( + Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GGetProfilesByAddressData_profiles.serializer, + json, + ); +} + abstract class GGetProfileCountData implements Built<GGetProfileCountData, GGetProfileCountDataBuilder> { GGetProfileCountData._(); @@ -179,3 +250,143 @@ abstract class GGetProfileCountData_profiles_aggregate_aggregate json, ); } + +abstract class GSearchProfileByTermData + implements + Built<GSearchProfileByTermData, GSearchProfileByTermDataBuilder> { + GSearchProfileByTermData._(); + + factory GSearchProfileByTermData( + [void Function(GSearchProfileByTermDataBuilder b) updates]) = + _$GSearchProfileByTermData; + + static void _initializeBuilder(GSearchProfileByTermDataBuilder b) => + b..G__typename = 'query_root'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList<GSearchProfileByTermData_profiles> get profiles; + static Serializer<GSearchProfileByTermData> get serializer => + _$gSearchProfileByTermDataSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GSearchProfileByTermData.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfileByTermData? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GSearchProfileByTermData.serializer, + json, + ); +} + +abstract class GSearchProfileByTermData_profiles + implements + Built<GSearchProfileByTermData_profiles, + GSearchProfileByTermData_profilesBuilder> { + GSearchProfileByTermData_profiles._(); + + factory GSearchProfileByTermData_profiles( + [void Function(GSearchProfileByTermData_profilesBuilder b) updates]) = + _$GSearchProfileByTermData_profiles; + + static void _initializeBuilder(GSearchProfileByTermData_profilesBuilder b) => + b..G__typename = 'profiles'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get avatar; + String get pubkey; + String? get description; + String? get title; + String? get city; + String? get data_cid; + _i2.Gpoint? get geoloc; + String get index_request_cid; + _i3.JsonObject? get socials; + _i2.Gtimestamp get time; + static Serializer<GSearchProfileByTermData_profiles> get serializer => + _$gSearchProfileByTermDataProfilesSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GSearchProfileByTermData_profiles.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfileByTermData_profiles? fromJson( + Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GSearchProfileByTermData_profiles.serializer, + json, + ); +} + +abstract class GSearchProfilesData + implements Built<GSearchProfilesData, GSearchProfilesDataBuilder> { + GSearchProfilesData._(); + + factory GSearchProfilesData( + [void Function(GSearchProfilesDataBuilder b) updates]) = + _$GSearchProfilesData; + + static void _initializeBuilder(GSearchProfilesDataBuilder b) => + b..G__typename = 'query_root'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList<GSearchProfilesData_profiles> get profiles; + static Serializer<GSearchProfilesData> get serializer => + _$gSearchProfilesDataSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GSearchProfilesData.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfilesData? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GSearchProfilesData.serializer, + json, + ); +} + +abstract class GSearchProfilesData_profiles + implements + Built<GSearchProfilesData_profiles, + GSearchProfilesData_profilesBuilder> { + GSearchProfilesData_profiles._(); + + factory GSearchProfilesData_profiles( + [void Function(GSearchProfilesData_profilesBuilder b) updates]) = + _$GSearchProfilesData_profiles; + + static void _initializeBuilder(GSearchProfilesData_profilesBuilder b) => + b..G__typename = 'profiles'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get avatar; + String get pubkey; + String? get description; + String? get title; + String? get city; + String? get data_cid; + _i2.Gpoint? get geoloc; + String get index_request_cid; + _i3.JsonObject? get socials; + _i2.Gtimestamp get time; + static Serializer<GSearchProfilesData_profiles> get serializer => + _$gSearchProfilesDataProfilesSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GSearchProfilesData_profiles.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfilesData_profiles? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GSearchProfilesData_profiles.serializer, + json, + ); +} diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.g.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.g.dart index 8acf7e23cac334308c9f2bb854e4a3204d25252b..c1fa53ab93e9ffe85a0d402aac521489c46d0c7e 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.g.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.data.gql.g.dart @@ -11,6 +11,11 @@ Serializer<GGetProfileByAddressData> _$gGetProfileByAddressDataSerializer = Serializer<GGetProfileByAddressData_profiles> _$gGetProfileByAddressDataProfilesSerializer = new _$GGetProfileByAddressData_profilesSerializer(); +Serializer<GGetProfilesByAddressData> _$gGetProfilesByAddressDataSerializer = + new _$GGetProfilesByAddressDataSerializer(); +Serializer<GGetProfilesByAddressData_profiles> + _$gGetProfilesByAddressDataProfilesSerializer = + new _$GGetProfilesByAddressData_profilesSerializer(); Serializer<GGetProfileCountData> _$gGetProfileCountDataSerializer = new _$GGetProfileCountDataSerializer(); Serializer<GGetProfileCountData_profiles_aggregate> @@ -19,6 +24,16 @@ Serializer<GGetProfileCountData_profiles_aggregate> Serializer<GGetProfileCountData_profiles_aggregate_aggregate> _$gGetProfileCountDataProfilesAggregateAggregateSerializer = new _$GGetProfileCountData_profiles_aggregate_aggregateSerializer(); +Serializer<GSearchProfileByTermData> _$gSearchProfileByTermDataSerializer = + new _$GSearchProfileByTermDataSerializer(); +Serializer<GSearchProfileByTermData_profiles> + _$gSearchProfileByTermDataProfilesSerializer = + new _$GSearchProfileByTermData_profilesSerializer(); +Serializer<GSearchProfilesData> _$gSearchProfilesDataSerializer = + new _$GSearchProfilesDataSerializer(); +Serializer<GSearchProfilesData_profiles> + _$gSearchProfilesDataProfilesSerializer = + new _$GSearchProfilesData_profilesSerializer(); class _$GGetProfileByAddressDataSerializer implements StructuredSerializer<GGetProfileByAddressData> { @@ -221,6 +236,207 @@ class _$GGetProfileByAddressData_profilesSerializer } } +class _$GGetProfilesByAddressDataSerializer + implements StructuredSerializer<GGetProfilesByAddressData> { + @override + final Iterable<Type> types = const [ + GGetProfilesByAddressData, + _$GGetProfilesByAddressData + ]; + @override + final String wireName = 'GGetProfilesByAddressData'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GGetProfilesByAddressData object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'profiles', + serializers.serialize(object.profiles, + specifiedType: const FullType(BuiltList, + const [const FullType(GGetProfilesByAddressData_profiles)])), + ]; + + return result; + } + + @override + GGetProfilesByAddressData deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGetProfilesByAddressDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'profiles': + result.profiles.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GGetProfilesByAddressData_profiles) + ]))! as BuiltList<Object?>); + break; + } + } + + return result.build(); + } +} + +class _$GGetProfilesByAddressData_profilesSerializer + implements StructuredSerializer<GGetProfilesByAddressData_profiles> { + @override + final Iterable<Type> types = const [ + GGetProfilesByAddressData_profiles, + _$GGetProfilesByAddressData_profiles + ]; + @override + final String wireName = 'GGetProfilesByAddressData_profiles'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GGetProfilesByAddressData_profiles object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pubkey', + serializers.serialize(object.pubkey, + specifiedType: const FullType(String)), + 'index_request_cid', + serializers.serialize(object.index_request_cid, + specifiedType: const FullType(String)), + 'time', + serializers.serialize(object.time, + specifiedType: const FullType(_i2.Gtimestamp)), + ]; + Object? value; + value = object.avatar; + if (value != null) { + result + ..add('avatar') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.city; + if (value != null) { + result + ..add('city') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.data_cid; + if (value != null) { + result + ..add('data_cid') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.geoloc; + if (value != null) { + result + ..add('geoloc') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.Gpoint))); + } + value = object.socials; + if (value != null) { + result + ..add('socials') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.JsonObject))); + } + return result; + } + + @override + GGetProfilesByAddressData_profiles deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGetProfilesByAddressData_profilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'avatar': + result.avatar = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pubkey': + result.pubkey = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'city': + result.city = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'data_cid': + result.data_cid = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'geoloc': + result.geoloc.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.Gpoint))! as _i2.Gpoint); + break; + case 'index_request_cid': + result.index_request_cid = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socials': + result.socials = serializers.deserialize(value, + specifiedType: const FullType(_i3.JsonObject)) as _i3.JsonObject?; + break; + case 'time': + result.time.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.Gtimestamp))! + as _i2.Gtimestamp); + break; + } + } + + return result.build(); + } +} + class _$GGetProfileCountDataSerializer implements StructuredSerializer<GGetProfileCountData> { @override @@ -392,80 +608,1590 @@ class _$GGetProfileCountData_profiles_aggregate_aggregateSerializer } } -class _$GGetProfileByAddressData extends GGetProfileByAddressData { +class _$GSearchProfileByTermDataSerializer + implements StructuredSerializer<GSearchProfileByTermData> { @override - final String G__typename; + final Iterable<Type> types = const [ + GSearchProfileByTermData, + _$GSearchProfileByTermData + ]; @override - final BuiltList<GGetProfileByAddressData_profiles> profiles; + final String wireName = 'GSearchProfileByTermData'; - factory _$GGetProfileByAddressData( - [void Function(GGetProfileByAddressDataBuilder)? updates]) => - (new GGetProfileByAddressDataBuilder()..update(updates))._build(); + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfileByTermData object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'profiles', + serializers.serialize(object.profiles, + specifiedType: const FullType(BuiltList, + const [const FullType(GSearchProfileByTermData_profiles)])), + ]; - _$GGetProfileByAddressData._( - {required this.G__typename, required this.profiles}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GGetProfileByAddressData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - profiles, r'GGetProfileByAddressData', 'profiles'); + return result; } @override - GGetProfileByAddressData rebuild( - void Function(GGetProfileByAddressDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + GSearchProfileByTermData deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfileByTermDataBuilder(); - @override - GGetProfileByAddressDataBuilder toBuilder() => - new GGetProfileByAddressDataBuilder()..replace(this); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'profiles': + result.profiles.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSearchProfileByTermData_profiles) + ]))! as BuiltList<Object?>); + break; + } + } - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GGetProfileByAddressData && - G__typename == other.G__typename && - profiles == other.profiles; + return result.build(); } +} +class _$GSearchProfileByTermData_profilesSerializer + implements StructuredSerializer<GSearchProfileByTermData_profiles> { @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, profiles.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } + final Iterable<Type> types = const [ + GSearchProfileByTermData_profiles, + _$GSearchProfileByTermData_profiles + ]; + @override + final String wireName = 'GSearchProfileByTermData_profiles'; @override - String toString() { - return (newBuiltValueToStringHelper(r'GGetProfileByAddressData') - ..add('G__typename', G__typename) + Iterable<Object?> serialize( + Serializers serializers, GSearchProfileByTermData_profiles object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pubkey', + serializers.serialize(object.pubkey, + specifiedType: const FullType(String)), + 'index_request_cid', + serializers.serialize(object.index_request_cid, + specifiedType: const FullType(String)), + 'time', + serializers.serialize(object.time, + specifiedType: const FullType(_i2.Gtimestamp)), + ]; + Object? value; + value = object.avatar; + if (value != null) { + result + ..add('avatar') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.city; + if (value != null) { + result + ..add('city') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.data_cid; + if (value != null) { + result + ..add('data_cid') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.geoloc; + if (value != null) { + result + ..add('geoloc') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.Gpoint))); + } + value = object.socials; + if (value != null) { + result + ..add('socials') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.JsonObject))); + } + return result; + } + + @override + GSearchProfileByTermData_profiles deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfileByTermData_profilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'avatar': + result.avatar = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pubkey': + result.pubkey = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'city': + result.city = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'data_cid': + result.data_cid = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'geoloc': + result.geoloc.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.Gpoint))! as _i2.Gpoint); + break; + case 'index_request_cid': + result.index_request_cid = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socials': + result.socials = serializers.deserialize(value, + specifiedType: const FullType(_i3.JsonObject)) as _i3.JsonObject?; + break; + case 'time': + result.time.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.Gtimestamp))! + as _i2.Gtimestamp); + break; + } + } + + return result.build(); + } +} + +class _$GSearchProfilesDataSerializer + implements StructuredSerializer<GSearchProfilesData> { + @override + final Iterable<Type> types = const [ + GSearchProfilesData, + _$GSearchProfilesData + ]; + @override + final String wireName = 'GSearchProfilesData'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfilesData object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'profiles', + serializers.serialize(object.profiles, + specifiedType: const FullType( + BuiltList, const [const FullType(GSearchProfilesData_profiles)])), + ]; + + return result; + } + + @override + GSearchProfilesData deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfilesDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'profiles': + result.profiles.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSearchProfilesData_profiles) + ]))! as BuiltList<Object?>); + break; + } + } + + return result.build(); + } +} + +class _$GSearchProfilesData_profilesSerializer + implements StructuredSerializer<GSearchProfilesData_profiles> { + @override + final Iterable<Type> types = const [ + GSearchProfilesData_profiles, + _$GSearchProfilesData_profiles + ]; + @override + final String wireName = 'GSearchProfilesData_profiles'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfilesData_profiles object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pubkey', + serializers.serialize(object.pubkey, + specifiedType: const FullType(String)), + 'index_request_cid', + serializers.serialize(object.index_request_cid, + specifiedType: const FullType(String)), + 'time', + serializers.serialize(object.time, + specifiedType: const FullType(_i2.Gtimestamp)), + ]; + Object? value; + value = object.avatar; + if (value != null) { + result + ..add('avatar') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.city; + if (value != null) { + result + ..add('city') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.data_cid; + if (value != null) { + result + ..add('data_cid') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.geoloc; + if (value != null) { + result + ..add('geoloc') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.Gpoint))); + } + value = object.socials; + if (value != null) { + result + ..add('socials') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.JsonObject))); + } + return result; + } + + @override + GSearchProfilesData_profiles deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfilesData_profilesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'avatar': + result.avatar = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pubkey': + result.pubkey = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'city': + result.city = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'data_cid': + result.data_cid = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'geoloc': + result.geoloc.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.Gpoint))! as _i2.Gpoint); + break; + case 'index_request_cid': + result.index_request_cid = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socials': + result.socials = serializers.deserialize(value, + specifiedType: const FullType(_i3.JsonObject)) as _i3.JsonObject?; + break; + case 'time': + result.time.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.Gtimestamp))! + as _i2.Gtimestamp); + break; + } + } + + return result.build(); + } +} + +class _$GGetProfileByAddressData extends GGetProfileByAddressData { + @override + final String G__typename; + @override + final BuiltList<GGetProfileByAddressData_profiles> profiles; + + factory _$GGetProfileByAddressData( + [void Function(GGetProfileByAddressDataBuilder)? updates]) => + (new GGetProfileByAddressDataBuilder()..update(updates))._build(); + + _$GGetProfileByAddressData._( + {required this.G__typename, required this.profiles}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfileByAddressData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + profiles, r'GGetProfileByAddressData', 'profiles'); + } + + @override + GGetProfileByAddressData rebuild( + void Function(GGetProfileByAddressDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileByAddressDataBuilder toBuilder() => + new GGetProfileByAddressDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfileByAddressData && + G__typename == other.G__typename && + profiles == other.profiles; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, profiles.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfileByAddressData') + ..add('G__typename', G__typename) + ..add('profiles', profiles)) + .toString(); + } +} + +class GGetProfileByAddressDataBuilder + implements + Builder<GGetProfileByAddressData, GGetProfileByAddressDataBuilder> { + _$GGetProfileByAddressData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder<GGetProfileByAddressData_profiles>? _profiles; + ListBuilder<GGetProfileByAddressData_profiles> get profiles => + _$this._profiles ??= new ListBuilder<GGetProfileByAddressData_profiles>(); + set profiles(ListBuilder<GGetProfileByAddressData_profiles>? profiles) => + _$this._profiles = profiles; + + GGetProfileByAddressDataBuilder() { + GGetProfileByAddressData._initializeBuilder(this); + } + + GGetProfileByAddressDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _profiles = $v.profiles.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileByAddressData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileByAddressData; + } + + @override + void update(void Function(GGetProfileByAddressDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfileByAddressData build() => _build(); + + _$GGetProfileByAddressData _build() { + _$GGetProfileByAddressData _$result; + try { + _$result = _$v ?? + new _$GGetProfileByAddressData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfileByAddressData', 'G__typename'), + profiles: profiles.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'profiles'; + profiles.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfileByAddressData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfileByAddressData_profiles + extends GGetProfileByAddressData_profiles { + @override + final String G__typename; + @override + final String? avatar; + @override + final String pubkey; + @override + final String? description; + @override + final String? title; + @override + final String? city; + @override + final String? data_cid; + @override + final _i2.Gpoint? geoloc; + @override + final String index_request_cid; + @override + final _i3.JsonObject? socials; + @override + final _i2.Gtimestamp time; + + factory _$GGetProfileByAddressData_profiles( + [void Function(GGetProfileByAddressData_profilesBuilder)? updates]) => + (new GGetProfileByAddressData_profilesBuilder()..update(updates)) + ._build(); + + _$GGetProfileByAddressData_profiles._( + {required this.G__typename, + this.avatar, + required this.pubkey, + this.description, + this.title, + this.city, + this.data_cid, + this.geoloc, + required this.index_request_cid, + this.socials, + required this.time}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfileByAddressData_profiles', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pubkey, r'GGetProfileByAddressData_profiles', 'pubkey'); + BuiltValueNullFieldError.checkNotNull(index_request_cid, + r'GGetProfileByAddressData_profiles', 'index_request_cid'); + BuiltValueNullFieldError.checkNotNull( + time, r'GGetProfileByAddressData_profiles', 'time'); + } + + @override + GGetProfileByAddressData_profiles rebuild( + void Function(GGetProfileByAddressData_profilesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileByAddressData_profilesBuilder toBuilder() => + new GGetProfileByAddressData_profilesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfileByAddressData_profiles && + G__typename == other.G__typename && + avatar == other.avatar && + pubkey == other.pubkey && + description == other.description && + title == other.title && + city == other.city && + data_cid == other.data_cid && + geoloc == other.geoloc && + index_request_cid == other.index_request_cid && + socials == other.socials && + time == other.time; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, avatar.hashCode); + _$hash = $jc(_$hash, pubkey.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, data_cid.hashCode); + _$hash = $jc(_$hash, geoloc.hashCode); + _$hash = $jc(_$hash, index_request_cid.hashCode); + _$hash = $jc(_$hash, socials.hashCode); + _$hash = $jc(_$hash, time.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfileByAddressData_profiles') + ..add('G__typename', G__typename) + ..add('avatar', avatar) + ..add('pubkey', pubkey) + ..add('description', description) + ..add('title', title) + ..add('city', city) + ..add('data_cid', data_cid) + ..add('geoloc', geoloc) + ..add('index_request_cid', index_request_cid) + ..add('socials', socials) + ..add('time', time)) + .toString(); + } +} + +class GGetProfileByAddressData_profilesBuilder + implements + Builder<GGetProfileByAddressData_profiles, + GGetProfileByAddressData_profilesBuilder> { + _$GGetProfileByAddressData_profiles? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _avatar; + String? get avatar => _$this._avatar; + set avatar(String? avatar) => _$this._avatar = avatar; + + String? _pubkey; + String? get pubkey => _$this._pubkey; + set pubkey(String? pubkey) => _$this._pubkey = pubkey; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _data_cid; + String? get data_cid => _$this._data_cid; + set data_cid(String? data_cid) => _$this._data_cid = data_cid; + + _i2.GpointBuilder? _geoloc; + _i2.GpointBuilder get geoloc => _$this._geoloc ??= new _i2.GpointBuilder(); + set geoloc(_i2.GpointBuilder? geoloc) => _$this._geoloc = geoloc; + + String? _index_request_cid; + String? get index_request_cid => _$this._index_request_cid; + set index_request_cid(String? index_request_cid) => + _$this._index_request_cid = index_request_cid; + + _i3.JsonObject? _socials; + _i3.JsonObject? get socials => _$this._socials; + set socials(_i3.JsonObject? socials) => _$this._socials = socials; + + _i2.GtimestampBuilder? _time; + _i2.GtimestampBuilder get time => + _$this._time ??= new _i2.GtimestampBuilder(); + set time(_i2.GtimestampBuilder? time) => _$this._time = time; + + GGetProfileByAddressData_profilesBuilder() { + GGetProfileByAddressData_profiles._initializeBuilder(this); + } + + GGetProfileByAddressData_profilesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _avatar = $v.avatar; + _pubkey = $v.pubkey; + _description = $v.description; + _title = $v.title; + _city = $v.city; + _data_cid = $v.data_cid; + _geoloc = $v.geoloc?.toBuilder(); + _index_request_cid = $v.index_request_cid; + _socials = $v.socials; + _time = $v.time.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileByAddressData_profiles other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileByAddressData_profiles; + } + + @override + void update( + void Function(GGetProfileByAddressData_profilesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfileByAddressData_profiles build() => _build(); + + _$GGetProfileByAddressData_profiles _build() { + _$GGetProfileByAddressData_profiles _$result; + try { + _$result = _$v ?? + new _$GGetProfileByAddressData_profiles._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GGetProfileByAddressData_profiles', 'G__typename'), + avatar: avatar, + pubkey: BuiltValueNullFieldError.checkNotNull( + pubkey, r'GGetProfileByAddressData_profiles', 'pubkey'), + description: description, + title: title, + city: city, + data_cid: data_cid, + geoloc: _geoloc?.build(), + index_request_cid: BuiltValueNullFieldError.checkNotNull( + index_request_cid, + r'GGetProfileByAddressData_profiles', + 'index_request_cid'), + socials: socials, + time: time.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'geoloc'; + _geoloc?.build(); + + _$failedField = 'time'; + time.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfileByAddressData_profiles', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfilesByAddressData extends GGetProfilesByAddressData { + @override + final String G__typename; + @override + final BuiltList<GGetProfilesByAddressData_profiles> profiles; + + factory _$GGetProfilesByAddressData( + [void Function(GGetProfilesByAddressDataBuilder)? updates]) => + (new GGetProfilesByAddressDataBuilder()..update(updates))._build(); + + _$GGetProfilesByAddressData._( + {required this.G__typename, required this.profiles}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfilesByAddressData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + profiles, r'GGetProfilesByAddressData', 'profiles'); + } + + @override + GGetProfilesByAddressData rebuild( + void Function(GGetProfilesByAddressDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfilesByAddressDataBuilder toBuilder() => + new GGetProfilesByAddressDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfilesByAddressData && + G__typename == other.G__typename && + profiles == other.profiles; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, profiles.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfilesByAddressData') + ..add('G__typename', G__typename) + ..add('profiles', profiles)) + .toString(); + } +} + +class GGetProfilesByAddressDataBuilder + implements + Builder<GGetProfilesByAddressData, GGetProfilesByAddressDataBuilder> { + _$GGetProfilesByAddressData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder<GGetProfilesByAddressData_profiles>? _profiles; + ListBuilder<GGetProfilesByAddressData_profiles> get profiles => + _$this._profiles ??= + new ListBuilder<GGetProfilesByAddressData_profiles>(); + set profiles(ListBuilder<GGetProfilesByAddressData_profiles>? profiles) => + _$this._profiles = profiles; + + GGetProfilesByAddressDataBuilder() { + GGetProfilesByAddressData._initializeBuilder(this); + } + + GGetProfilesByAddressDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _profiles = $v.profiles.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfilesByAddressData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfilesByAddressData; + } + + @override + void update(void Function(GGetProfilesByAddressDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfilesByAddressData build() => _build(); + + _$GGetProfilesByAddressData _build() { + _$GGetProfilesByAddressData _$result; + try { + _$result = _$v ?? + new _$GGetProfilesByAddressData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfilesByAddressData', 'G__typename'), + profiles: profiles.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'profiles'; + profiles.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfilesByAddressData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfilesByAddressData_profiles + extends GGetProfilesByAddressData_profiles { + @override + final String G__typename; + @override + final String? avatar; + @override + final String pubkey; + @override + final String? description; + @override + final String? title; + @override + final String? city; + @override + final String? data_cid; + @override + final _i2.Gpoint? geoloc; + @override + final String index_request_cid; + @override + final _i3.JsonObject? socials; + @override + final _i2.Gtimestamp time; + + factory _$GGetProfilesByAddressData_profiles( + [void Function(GGetProfilesByAddressData_profilesBuilder)? + updates]) => + (new GGetProfilesByAddressData_profilesBuilder()..update(updates)) + ._build(); + + _$GGetProfilesByAddressData_profiles._( + {required this.G__typename, + this.avatar, + required this.pubkey, + this.description, + this.title, + this.city, + this.data_cid, + this.geoloc, + required this.index_request_cid, + this.socials, + required this.time}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfilesByAddressData_profiles', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pubkey, r'GGetProfilesByAddressData_profiles', 'pubkey'); + BuiltValueNullFieldError.checkNotNull(index_request_cid, + r'GGetProfilesByAddressData_profiles', 'index_request_cid'); + BuiltValueNullFieldError.checkNotNull( + time, r'GGetProfilesByAddressData_profiles', 'time'); + } + + @override + GGetProfilesByAddressData_profiles rebuild( + void Function(GGetProfilesByAddressData_profilesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfilesByAddressData_profilesBuilder toBuilder() => + new GGetProfilesByAddressData_profilesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfilesByAddressData_profiles && + G__typename == other.G__typename && + avatar == other.avatar && + pubkey == other.pubkey && + description == other.description && + title == other.title && + city == other.city && + data_cid == other.data_cid && + geoloc == other.geoloc && + index_request_cid == other.index_request_cid && + socials == other.socials && + time == other.time; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, avatar.hashCode); + _$hash = $jc(_$hash, pubkey.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, data_cid.hashCode); + _$hash = $jc(_$hash, geoloc.hashCode); + _$hash = $jc(_$hash, index_request_cid.hashCode); + _$hash = $jc(_$hash, socials.hashCode); + _$hash = $jc(_$hash, time.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfilesByAddressData_profiles') + ..add('G__typename', G__typename) + ..add('avatar', avatar) + ..add('pubkey', pubkey) + ..add('description', description) + ..add('title', title) + ..add('city', city) + ..add('data_cid', data_cid) + ..add('geoloc', geoloc) + ..add('index_request_cid', index_request_cid) + ..add('socials', socials) + ..add('time', time)) + .toString(); + } +} + +class GGetProfilesByAddressData_profilesBuilder + implements + Builder<GGetProfilesByAddressData_profiles, + GGetProfilesByAddressData_profilesBuilder> { + _$GGetProfilesByAddressData_profiles? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _avatar; + String? get avatar => _$this._avatar; + set avatar(String? avatar) => _$this._avatar = avatar; + + String? _pubkey; + String? get pubkey => _$this._pubkey; + set pubkey(String? pubkey) => _$this._pubkey = pubkey; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _data_cid; + String? get data_cid => _$this._data_cid; + set data_cid(String? data_cid) => _$this._data_cid = data_cid; + + _i2.GpointBuilder? _geoloc; + _i2.GpointBuilder get geoloc => _$this._geoloc ??= new _i2.GpointBuilder(); + set geoloc(_i2.GpointBuilder? geoloc) => _$this._geoloc = geoloc; + + String? _index_request_cid; + String? get index_request_cid => _$this._index_request_cid; + set index_request_cid(String? index_request_cid) => + _$this._index_request_cid = index_request_cid; + + _i3.JsonObject? _socials; + _i3.JsonObject? get socials => _$this._socials; + set socials(_i3.JsonObject? socials) => _$this._socials = socials; + + _i2.GtimestampBuilder? _time; + _i2.GtimestampBuilder get time => + _$this._time ??= new _i2.GtimestampBuilder(); + set time(_i2.GtimestampBuilder? time) => _$this._time = time; + + GGetProfilesByAddressData_profilesBuilder() { + GGetProfilesByAddressData_profiles._initializeBuilder(this); + } + + GGetProfilesByAddressData_profilesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _avatar = $v.avatar; + _pubkey = $v.pubkey; + _description = $v.description; + _title = $v.title; + _city = $v.city; + _data_cid = $v.data_cid; + _geoloc = $v.geoloc?.toBuilder(); + _index_request_cid = $v.index_request_cid; + _socials = $v.socials; + _time = $v.time.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfilesByAddressData_profiles other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfilesByAddressData_profiles; + } + + @override + void update( + void Function(GGetProfilesByAddressData_profilesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfilesByAddressData_profiles build() => _build(); + + _$GGetProfilesByAddressData_profiles _build() { + _$GGetProfilesByAddressData_profiles _$result; + try { + _$result = _$v ?? + new _$GGetProfilesByAddressData_profiles._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GGetProfilesByAddressData_profiles', 'G__typename'), + avatar: avatar, + pubkey: BuiltValueNullFieldError.checkNotNull( + pubkey, r'GGetProfilesByAddressData_profiles', 'pubkey'), + description: description, + title: title, + city: city, + data_cid: data_cid, + geoloc: _geoloc?.build(), + index_request_cid: BuiltValueNullFieldError.checkNotNull( + index_request_cid, + r'GGetProfilesByAddressData_profiles', + 'index_request_cid'), + socials: socials, + time: time.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'geoloc'; + _geoloc?.build(); + + _$failedField = 'time'; + time.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfilesByAddressData_profiles', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfileCountData extends GGetProfileCountData { + @override + final String G__typename; + @override + final GGetProfileCountData_profiles_aggregate profiles_aggregate; + + factory _$GGetProfileCountData( + [void Function(GGetProfileCountDataBuilder)? updates]) => + (new GGetProfileCountDataBuilder()..update(updates))._build(); + + _$GGetProfileCountData._( + {required this.G__typename, required this.profiles_aggregate}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfileCountData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + profiles_aggregate, r'GGetProfileCountData', 'profiles_aggregate'); + } + + @override + GGetProfileCountData rebuild( + void Function(GGetProfileCountDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileCountDataBuilder toBuilder() => + new GGetProfileCountDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfileCountData && + G__typename == other.G__typename && + profiles_aggregate == other.profiles_aggregate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, profiles_aggregate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfileCountData') + ..add('G__typename', G__typename) + ..add('profiles_aggregate', profiles_aggregate)) + .toString(); + } +} + +class GGetProfileCountDataBuilder + implements Builder<GGetProfileCountData, GGetProfileCountDataBuilder> { + _$GGetProfileCountData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GGetProfileCountData_profiles_aggregateBuilder? _profiles_aggregate; + GGetProfileCountData_profiles_aggregateBuilder get profiles_aggregate => + _$this._profiles_aggregate ??= + new GGetProfileCountData_profiles_aggregateBuilder(); + set profiles_aggregate( + GGetProfileCountData_profiles_aggregateBuilder? profiles_aggregate) => + _$this._profiles_aggregate = profiles_aggregate; + + GGetProfileCountDataBuilder() { + GGetProfileCountData._initializeBuilder(this); + } + + GGetProfileCountDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _profiles_aggregate = $v.profiles_aggregate.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileCountData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileCountData; + } + + @override + void update(void Function(GGetProfileCountDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfileCountData build() => _build(); + + _$GGetProfileCountData _build() { + _$GGetProfileCountData _$result; + try { + _$result = _$v ?? + new _$GGetProfileCountData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfileCountData', 'G__typename'), + profiles_aggregate: profiles_aggregate.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'profiles_aggregate'; + profiles_aggregate.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfileCountData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfileCountData_profiles_aggregate + extends GGetProfileCountData_profiles_aggregate { + @override + final String G__typename; + @override + final GGetProfileCountData_profiles_aggregate_aggregate? aggregate; + + factory _$GGetProfileCountData_profiles_aggregate( + [void Function(GGetProfileCountData_profiles_aggregateBuilder)? + updates]) => + (new GGetProfileCountData_profiles_aggregateBuilder()..update(updates)) + ._build(); + + _$GGetProfileCountData_profiles_aggregate._( + {required this.G__typename, this.aggregate}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GGetProfileCountData_profiles_aggregate', 'G__typename'); + } + + @override + GGetProfileCountData_profiles_aggregate rebuild( + void Function(GGetProfileCountData_profiles_aggregateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileCountData_profiles_aggregateBuilder toBuilder() => + new GGetProfileCountData_profiles_aggregateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfileCountData_profiles_aggregate && + G__typename == other.G__typename && + aggregate == other.aggregate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, aggregate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GGetProfileCountData_profiles_aggregate') + ..add('G__typename', G__typename) + ..add('aggregate', aggregate)) + .toString(); + } +} + +class GGetProfileCountData_profiles_aggregateBuilder + implements + Builder<GGetProfileCountData_profiles_aggregate, + GGetProfileCountData_profiles_aggregateBuilder> { + _$GGetProfileCountData_profiles_aggregate? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GGetProfileCountData_profiles_aggregate_aggregateBuilder? _aggregate; + GGetProfileCountData_profiles_aggregate_aggregateBuilder get aggregate => + _$this._aggregate ??= + new GGetProfileCountData_profiles_aggregate_aggregateBuilder(); + set aggregate( + GGetProfileCountData_profiles_aggregate_aggregateBuilder? + aggregate) => + _$this._aggregate = aggregate; + + GGetProfileCountData_profiles_aggregateBuilder() { + GGetProfileCountData_profiles_aggregate._initializeBuilder(this); + } + + GGetProfileCountData_profiles_aggregateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _aggregate = $v.aggregate?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileCountData_profiles_aggregate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileCountData_profiles_aggregate; + } + + @override + void update( + void Function(GGetProfileCountData_profiles_aggregateBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfileCountData_profiles_aggregate build() => _build(); + + _$GGetProfileCountData_profiles_aggregate _build() { + _$GGetProfileCountData_profiles_aggregate _$result; + try { + _$result = _$v ?? + new _$GGetProfileCountData_profiles_aggregate._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GGetProfileCountData_profiles_aggregate', 'G__typename'), + aggregate: _aggregate?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'aggregate'; + _aggregate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfileCountData_profiles_aggregate', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfileCountData_profiles_aggregate_aggregate + extends GGetProfileCountData_profiles_aggregate_aggregate { + @override + final String G__typename; + @override + final int count; + + factory _$GGetProfileCountData_profiles_aggregate_aggregate( + [void Function( + GGetProfileCountData_profiles_aggregate_aggregateBuilder)? + updates]) => + (new GGetProfileCountData_profiles_aggregate_aggregateBuilder() + ..update(updates)) + ._build(); + + _$GGetProfileCountData_profiles_aggregate_aggregate._( + {required this.G__typename, required this.count}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GGetProfileCountData_profiles_aggregate_aggregate', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + count, r'GGetProfileCountData_profiles_aggregate_aggregate', 'count'); + } + + @override + GGetProfileCountData_profiles_aggregate_aggregate rebuild( + void Function( + GGetProfileCountData_profiles_aggregate_aggregateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileCountData_profiles_aggregate_aggregateBuilder toBuilder() => + new GGetProfileCountData_profiles_aggregate_aggregateBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfileCountData_profiles_aggregate_aggregate && + G__typename == other.G__typename && + count == other.count; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, count.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GGetProfileCountData_profiles_aggregate_aggregate') + ..add('G__typename', G__typename) + ..add('count', count)) + .toString(); + } +} + +class GGetProfileCountData_profiles_aggregate_aggregateBuilder + implements + Builder<GGetProfileCountData_profiles_aggregate_aggregate, + GGetProfileCountData_profiles_aggregate_aggregateBuilder> { + _$GGetProfileCountData_profiles_aggregate_aggregate? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _count; + int? get count => _$this._count; + set count(int? count) => _$this._count = count; + + GGetProfileCountData_profiles_aggregate_aggregateBuilder() { + GGetProfileCountData_profiles_aggregate_aggregate._initializeBuilder(this); + } + + GGetProfileCountData_profiles_aggregate_aggregateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _count = $v.count; + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileCountData_profiles_aggregate_aggregate other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileCountData_profiles_aggregate_aggregate; + } + + @override + void update( + void Function(GGetProfileCountData_profiles_aggregate_aggregateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GGetProfileCountData_profiles_aggregate_aggregate build() => _build(); + + _$GGetProfileCountData_profiles_aggregate_aggregate _build() { + final _$result = _$v ?? + new _$GGetProfileCountData_profiles_aggregate_aggregate._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GGetProfileCountData_profiles_aggregate_aggregate', + 'G__typename'), + count: BuiltValueNullFieldError.checkNotNull(count, + r'GGetProfileCountData_profiles_aggregate_aggregate', 'count')); + replace(_$result); + return _$result; + } +} + +class _$GSearchProfileByTermData extends GSearchProfileByTermData { + @override + final String G__typename; + @override + final BuiltList<GSearchProfileByTermData_profiles> profiles; + + factory _$GSearchProfileByTermData( + [void Function(GSearchProfileByTermDataBuilder)? updates]) => + (new GSearchProfileByTermDataBuilder()..update(updates))._build(); + + _$GSearchProfileByTermData._( + {required this.G__typename, required this.profiles}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSearchProfileByTermData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + profiles, r'GSearchProfileByTermData', 'profiles'); + } + + @override + GSearchProfileByTermData rebuild( + void Function(GSearchProfileByTermDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSearchProfileByTermDataBuilder toBuilder() => + new GSearchProfileByTermDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSearchProfileByTermData && + G__typename == other.G__typename && + profiles == other.profiles; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, profiles.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSearchProfileByTermData') + ..add('G__typename', G__typename) ..add('profiles', profiles)) .toString(); } } -class GGetProfileByAddressDataBuilder +class GSearchProfileByTermDataBuilder implements - Builder<GGetProfileByAddressData, GGetProfileByAddressDataBuilder> { - _$GGetProfileByAddressData? _$v; + Builder<GSearchProfileByTermData, GSearchProfileByTermDataBuilder> { + _$GSearchProfileByTermData? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - ListBuilder<GGetProfileByAddressData_profiles>? _profiles; - ListBuilder<GGetProfileByAddressData_profiles> get profiles => - _$this._profiles ??= new ListBuilder<GGetProfileByAddressData_profiles>(); - set profiles(ListBuilder<GGetProfileByAddressData_profiles>? profiles) => + ListBuilder<GSearchProfileByTermData_profiles>? _profiles; + ListBuilder<GSearchProfileByTermData_profiles> get profiles => + _$this._profiles ??= new ListBuilder<GSearchProfileByTermData_profiles>(); + set profiles(ListBuilder<GSearchProfileByTermData_profiles>? profiles) => _$this._profiles = profiles; - GGetProfileByAddressDataBuilder() { - GGetProfileByAddressData._initializeBuilder(this); + GSearchProfileByTermDataBuilder() { + GSearchProfileByTermData._initializeBuilder(this); } - GGetProfileByAddressDataBuilder get _$this { + GSearchProfileByTermDataBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; @@ -476,26 +2202,26 @@ class GGetProfileByAddressDataBuilder } @override - void replace(GGetProfileByAddressData other) { + void replace(GSearchProfileByTermData other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileByAddressData; + _$v = other as _$GSearchProfileByTermData; } @override - void update(void Function(GGetProfileByAddressDataBuilder)? updates) { + void update(void Function(GSearchProfileByTermDataBuilder)? updates) { if (updates != null) updates(this); } @override - GGetProfileByAddressData build() => _build(); + GSearchProfileByTermData build() => _build(); - _$GGetProfileByAddressData _build() { - _$GGetProfileByAddressData _$result; + _$GSearchProfileByTermData _build() { + _$GSearchProfileByTermData _$result; try { _$result = _$v ?? - new _$GGetProfileByAddressData._( + new _$GSearchProfileByTermData._( G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GGetProfileByAddressData', 'G__typename'), + G__typename, r'GSearchProfileByTermData', 'G__typename'), profiles: profiles.build()); } catch (_) { late String _$failedField; @@ -504,7 +2230,7 @@ class GGetProfileByAddressDataBuilder profiles.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GGetProfileByAddressData', _$failedField, e.toString()); + r'GSearchProfileByTermData', _$failedField, e.toString()); } rethrow; } @@ -513,8 +2239,8 @@ class GGetProfileByAddressDataBuilder } } -class _$GGetProfileByAddressData_profiles - extends GGetProfileByAddressData_profiles { +class _$GSearchProfileByTermData_profiles + extends GSearchProfileByTermData_profiles { @override final String G__typename; @override @@ -538,12 +2264,12 @@ class _$GGetProfileByAddressData_profiles @override final _i2.Gtimestamp time; - factory _$GGetProfileByAddressData_profiles( - [void Function(GGetProfileByAddressData_profilesBuilder)? updates]) => - (new GGetProfileByAddressData_profilesBuilder()..update(updates)) + factory _$GSearchProfileByTermData_profiles( + [void Function(GSearchProfileByTermData_profilesBuilder)? updates]) => + (new GSearchProfileByTermData_profilesBuilder()..update(updates)) ._build(); - _$GGetProfileByAddressData_profiles._( + _$GSearchProfileByTermData_profiles._( {required this.G__typename, this.avatar, required this.pubkey, @@ -557,28 +2283,28 @@ class _$GGetProfileByAddressData_profiles required this.time}) : super._() { BuiltValueNullFieldError.checkNotNull( - G__typename, r'GGetProfileByAddressData_profiles', 'G__typename'); + G__typename, r'GSearchProfileByTermData_profiles', 'G__typename'); BuiltValueNullFieldError.checkNotNull( - pubkey, r'GGetProfileByAddressData_profiles', 'pubkey'); + pubkey, r'GSearchProfileByTermData_profiles', 'pubkey'); BuiltValueNullFieldError.checkNotNull(index_request_cid, - r'GGetProfileByAddressData_profiles', 'index_request_cid'); + r'GSearchProfileByTermData_profiles', 'index_request_cid'); BuiltValueNullFieldError.checkNotNull( - time, r'GGetProfileByAddressData_profiles', 'time'); + time, r'GSearchProfileByTermData_profiles', 'time'); } @override - GGetProfileByAddressData_profiles rebuild( - void Function(GGetProfileByAddressData_profilesBuilder) updates) => + GSearchProfileByTermData_profiles rebuild( + void Function(GSearchProfileByTermData_profilesBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GGetProfileByAddressData_profilesBuilder toBuilder() => - new GGetProfileByAddressData_profilesBuilder()..replace(this); + GSearchProfileByTermData_profilesBuilder toBuilder() => + new GSearchProfileByTermData_profilesBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GGetProfileByAddressData_profiles && + return other is GSearchProfileByTermData_profiles && G__typename == other.G__typename && avatar == other.avatar && pubkey == other.pubkey && @@ -612,7 +2338,7 @@ class _$GGetProfileByAddressData_profiles @override String toString() { - return (newBuiltValueToStringHelper(r'GGetProfileByAddressData_profiles') + return (newBuiltValueToStringHelper(r'GSearchProfileByTermData_profiles') ..add('G__typename', G__typename) ..add('avatar', avatar) ..add('pubkey', pubkey) @@ -628,11 +2354,11 @@ class _$GGetProfileByAddressData_profiles } } -class GGetProfileByAddressData_profilesBuilder +class GSearchProfileByTermData_profilesBuilder implements - Builder<GGetProfileByAddressData_profiles, - GGetProfileByAddressData_profilesBuilder> { - _$GGetProfileByAddressData_profiles? _$v; + Builder<GSearchProfileByTermData_profiles, + GSearchProfileByTermData_profilesBuilder> { + _$GSearchProfileByTermData_profiles? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; @@ -680,11 +2406,11 @@ class GGetProfileByAddressData_profilesBuilder _$this._time ??= new _i2.GtimestampBuilder(); set time(_i2.GtimestampBuilder? time) => _$this._time = time; - GGetProfileByAddressData_profilesBuilder() { - GGetProfileByAddressData_profiles._initializeBuilder(this); + GSearchProfileByTermData_profilesBuilder() { + GSearchProfileByTermData_profiles._initializeBuilder(this); } - GGetProfileByAddressData_profilesBuilder get _$this { + GSearchProfileByTermData_profilesBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; @@ -704,30 +2430,30 @@ class GGetProfileByAddressData_profilesBuilder } @override - void replace(GGetProfileByAddressData_profiles other) { + void replace(GSearchProfileByTermData_profiles other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileByAddressData_profiles; + _$v = other as _$GSearchProfileByTermData_profiles; } @override void update( - void Function(GGetProfileByAddressData_profilesBuilder)? updates) { + void Function(GSearchProfileByTermData_profilesBuilder)? updates) { if (updates != null) updates(this); } @override - GGetProfileByAddressData_profiles build() => _build(); + GSearchProfileByTermData_profiles build() => _build(); - _$GGetProfileByAddressData_profiles _build() { - _$GGetProfileByAddressData_profiles _$result; + _$GSearchProfileByTermData_profiles _build() { + _$GSearchProfileByTermData_profiles _$result; try { _$result = _$v ?? - new _$GGetProfileByAddressData_profiles._( + new _$GSearchProfileByTermData_profiles._( G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GGetProfileByAddressData_profiles', 'G__typename'), + r'GSearchProfileByTermData_profiles', 'G__typename'), avatar: avatar, pubkey: BuiltValueNullFieldError.checkNotNull( - pubkey, r'GGetProfileByAddressData_profiles', 'pubkey'), + pubkey, r'GSearchProfileByTermData_profiles', 'pubkey'), description: description, title: title, city: city, @@ -735,7 +2461,7 @@ class GGetProfileByAddressData_profilesBuilder geoloc: _geoloc?.build(), index_request_cid: BuiltValueNullFieldError.checkNotNull( index_request_cid, - r'GGetProfileByAddressData_profiles', + r'GSearchProfileByTermData_profiles', 'index_request_cid'), socials: socials, time: time.build()); @@ -749,129 +2475,7 @@ class GGetProfileByAddressData_profilesBuilder time.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GGetProfileByAddressData_profiles', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GGetProfileCountData extends GGetProfileCountData { - @override - final String G__typename; - @override - final GGetProfileCountData_profiles_aggregate profiles_aggregate; - - factory _$GGetProfileCountData( - [void Function(GGetProfileCountDataBuilder)? updates]) => - (new GGetProfileCountDataBuilder()..update(updates))._build(); - - _$GGetProfileCountData._( - {required this.G__typename, required this.profiles_aggregate}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GGetProfileCountData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - profiles_aggregate, r'GGetProfileCountData', 'profiles_aggregate'); - } - - @override - GGetProfileCountData rebuild( - void Function(GGetProfileCountDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GGetProfileCountDataBuilder toBuilder() => - new GGetProfileCountDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GGetProfileCountData && - G__typename == other.G__typename && - profiles_aggregate == other.profiles_aggregate; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, profiles_aggregate.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GGetProfileCountData') - ..add('G__typename', G__typename) - ..add('profiles_aggregate', profiles_aggregate)) - .toString(); - } -} - -class GGetProfileCountDataBuilder - implements Builder<GGetProfileCountData, GGetProfileCountDataBuilder> { - _$GGetProfileCountData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GGetProfileCountData_profiles_aggregateBuilder? _profiles_aggregate; - GGetProfileCountData_profiles_aggregateBuilder get profiles_aggregate => - _$this._profiles_aggregate ??= - new GGetProfileCountData_profiles_aggregateBuilder(); - set profiles_aggregate( - GGetProfileCountData_profiles_aggregateBuilder? profiles_aggregate) => - _$this._profiles_aggregate = profiles_aggregate; - - GGetProfileCountDataBuilder() { - GGetProfileCountData._initializeBuilder(this); - } - - GGetProfileCountDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _profiles_aggregate = $v.profiles_aggregate.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GGetProfileCountData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileCountData; - } - - @override - void update(void Function(GGetProfileCountDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GGetProfileCountData build() => _build(); - - _$GGetProfileCountData _build() { - _$GGetProfileCountData _$result; - try { - _$result = _$v ?? - new _$GGetProfileCountData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GGetProfileCountData', 'G__typename'), - profiles_aggregate: profiles_aggregate.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'profiles_aggregate'; - profiles_aggregate.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GGetProfileCountData', _$failedField, e.toString()); + r'GSearchProfileByTermData_profiles', _$failedField, e.toString()); } rethrow; } @@ -880,129 +2484,117 @@ class GGetProfileCountDataBuilder } } -class _$GGetProfileCountData_profiles_aggregate - extends GGetProfileCountData_profiles_aggregate { - @override - final String G__typename; +class _$GSearchProfilesData extends GSearchProfilesData { @override - final GGetProfileCountData_profiles_aggregate_aggregate? aggregate; - - factory _$GGetProfileCountData_profiles_aggregate( - [void Function(GGetProfileCountData_profiles_aggregateBuilder)? - updates]) => - (new GGetProfileCountData_profiles_aggregateBuilder()..update(updates)) - ._build(); + final String G__typename; + @override + final BuiltList<GSearchProfilesData_profiles> profiles; - _$GGetProfileCountData_profiles_aggregate._( - {required this.G__typename, this.aggregate}) + factory _$GSearchProfilesData( + [void Function(GSearchProfilesDataBuilder)? updates]) => + (new GSearchProfilesDataBuilder()..update(updates))._build(); + + _$GSearchProfilesData._({required this.G__typename, required this.profiles}) : super._() { BuiltValueNullFieldError.checkNotNull( - G__typename, r'GGetProfileCountData_profiles_aggregate', 'G__typename'); + G__typename, r'GSearchProfilesData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + profiles, r'GSearchProfilesData', 'profiles'); } @override - GGetProfileCountData_profiles_aggregate rebuild( - void Function(GGetProfileCountData_profiles_aggregateBuilder) - updates) => + GSearchProfilesData rebuild( + void Function(GSearchProfilesDataBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GGetProfileCountData_profiles_aggregateBuilder toBuilder() => - new GGetProfileCountData_profiles_aggregateBuilder()..replace(this); + GSearchProfilesDataBuilder toBuilder() => + new GSearchProfilesDataBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GGetProfileCountData_profiles_aggregate && + return other is GSearchProfilesData && G__typename == other.G__typename && - aggregate == other.aggregate; + profiles == other.profiles; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, aggregate.hashCode); + _$hash = $jc(_$hash, profiles.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper( - r'GGetProfileCountData_profiles_aggregate') + return (newBuiltValueToStringHelper(r'GSearchProfilesData') ..add('G__typename', G__typename) - ..add('aggregate', aggregate)) + ..add('profiles', profiles)) .toString(); } } -class GGetProfileCountData_profiles_aggregateBuilder - implements - Builder<GGetProfileCountData_profiles_aggregate, - GGetProfileCountData_profiles_aggregateBuilder> { - _$GGetProfileCountData_profiles_aggregate? _$v; +class GSearchProfilesDataBuilder + implements Builder<GSearchProfilesData, GSearchProfilesDataBuilder> { + _$GSearchProfilesData? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - GGetProfileCountData_profiles_aggregate_aggregateBuilder? _aggregate; - GGetProfileCountData_profiles_aggregate_aggregateBuilder get aggregate => - _$this._aggregate ??= - new GGetProfileCountData_profiles_aggregate_aggregateBuilder(); - set aggregate( - GGetProfileCountData_profiles_aggregate_aggregateBuilder? - aggregate) => - _$this._aggregate = aggregate; + ListBuilder<GSearchProfilesData_profiles>? _profiles; + ListBuilder<GSearchProfilesData_profiles> get profiles => + _$this._profiles ??= new ListBuilder<GSearchProfilesData_profiles>(); + set profiles(ListBuilder<GSearchProfilesData_profiles>? profiles) => + _$this._profiles = profiles; - GGetProfileCountData_profiles_aggregateBuilder() { - GGetProfileCountData_profiles_aggregate._initializeBuilder(this); + GSearchProfilesDataBuilder() { + GSearchProfilesData._initializeBuilder(this); } - GGetProfileCountData_profiles_aggregateBuilder get _$this { + GSearchProfilesDataBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; - _aggregate = $v.aggregate?.toBuilder(); + _profiles = $v.profiles.toBuilder(); _$v = null; } return this; } @override - void replace(GGetProfileCountData_profiles_aggregate other) { + void replace(GSearchProfilesData other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileCountData_profiles_aggregate; + _$v = other as _$GSearchProfilesData; } @override - void update( - void Function(GGetProfileCountData_profiles_aggregateBuilder)? updates) { + void update(void Function(GSearchProfilesDataBuilder)? updates) { if (updates != null) updates(this); } @override - GGetProfileCountData_profiles_aggregate build() => _build(); + GSearchProfilesData build() => _build(); - _$GGetProfileCountData_profiles_aggregate _build() { - _$GGetProfileCountData_profiles_aggregate _$result; + _$GSearchProfilesData _build() { + _$GSearchProfilesData _$result; try { _$result = _$v ?? - new _$GGetProfileCountData_profiles_aggregate._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GGetProfileCountData_profiles_aggregate', 'G__typename'), - aggregate: _aggregate?.build()); + new _$GSearchProfilesData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSearchProfilesData', 'G__typename'), + profiles: profiles.build()); } catch (_) { late String _$failedField; try { - _$failedField = 'aggregate'; - _aggregate?.build(); + _$failedField = 'profiles'; + profiles.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GGetProfileCountData_profiles_aggregate', - _$failedField, - e.toString()); + r'GSearchProfilesData', _$failedField, e.toString()); } rethrow; } @@ -1011,122 +2603,243 @@ class GGetProfileCountData_profiles_aggregateBuilder } } -class _$GGetProfileCountData_profiles_aggregate_aggregate - extends GGetProfileCountData_profiles_aggregate_aggregate { +class _$GSearchProfilesData_profiles extends GSearchProfilesData_profiles { @override final String G__typename; @override - final int count; + final String? avatar; + @override + final String pubkey; + @override + final String? description; + @override + final String? title; + @override + final String? city; + @override + final String? data_cid; + @override + final _i2.Gpoint? geoloc; + @override + final String index_request_cid; + @override + final _i3.JsonObject? socials; + @override + final _i2.Gtimestamp time; - factory _$GGetProfileCountData_profiles_aggregate_aggregate( - [void Function( - GGetProfileCountData_profiles_aggregate_aggregateBuilder)? - updates]) => - (new GGetProfileCountData_profiles_aggregate_aggregateBuilder() - ..update(updates)) - ._build(); + factory _$GSearchProfilesData_profiles( + [void Function(GSearchProfilesData_profilesBuilder)? updates]) => + (new GSearchProfilesData_profilesBuilder()..update(updates))._build(); - _$GGetProfileCountData_profiles_aggregate_aggregate._( - {required this.G__typename, required this.count}) + _$GSearchProfilesData_profiles._( + {required this.G__typename, + this.avatar, + required this.pubkey, + this.description, + this.title, + this.city, + this.data_cid, + this.geoloc, + required this.index_request_cid, + this.socials, + required this.time}) : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GGetProfileCountData_profiles_aggregate_aggregate', 'G__typename'); BuiltValueNullFieldError.checkNotNull( - count, r'GGetProfileCountData_profiles_aggregate_aggregate', 'count'); + G__typename, r'GSearchProfilesData_profiles', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pubkey, r'GSearchProfilesData_profiles', 'pubkey'); + BuiltValueNullFieldError.checkNotNull(index_request_cid, + r'GSearchProfilesData_profiles', 'index_request_cid'); + BuiltValueNullFieldError.checkNotNull( + time, r'GSearchProfilesData_profiles', 'time'); } @override - GGetProfileCountData_profiles_aggregate_aggregate rebuild( - void Function( - GGetProfileCountData_profiles_aggregate_aggregateBuilder) - updates) => + GSearchProfilesData_profiles rebuild( + void Function(GSearchProfilesData_profilesBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GGetProfileCountData_profiles_aggregate_aggregateBuilder toBuilder() => - new GGetProfileCountData_profiles_aggregate_aggregateBuilder() - ..replace(this); + GSearchProfilesData_profilesBuilder toBuilder() => + new GSearchProfilesData_profilesBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GGetProfileCountData_profiles_aggregate_aggregate && + return other is GSearchProfilesData_profiles && G__typename == other.G__typename && - count == other.count; + avatar == other.avatar && + pubkey == other.pubkey && + description == other.description && + title == other.title && + city == other.city && + data_cid == other.data_cid && + geoloc == other.geoloc && + index_request_cid == other.index_request_cid && + socials == other.socials && + time == other.time; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, count.hashCode); + _$hash = $jc(_$hash, avatar.hashCode); + _$hash = $jc(_$hash, pubkey.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, city.hashCode); + _$hash = $jc(_$hash, data_cid.hashCode); + _$hash = $jc(_$hash, geoloc.hashCode); + _$hash = $jc(_$hash, index_request_cid.hashCode); + _$hash = $jc(_$hash, socials.hashCode); + _$hash = $jc(_$hash, time.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper( - r'GGetProfileCountData_profiles_aggregate_aggregate') + return (newBuiltValueToStringHelper(r'GSearchProfilesData_profiles') ..add('G__typename', G__typename) - ..add('count', count)) + ..add('avatar', avatar) + ..add('pubkey', pubkey) + ..add('description', description) + ..add('title', title) + ..add('city', city) + ..add('data_cid', data_cid) + ..add('geoloc', geoloc) + ..add('index_request_cid', index_request_cid) + ..add('socials', socials) + ..add('time', time)) .toString(); } } -class GGetProfileCountData_profiles_aggregate_aggregateBuilder +class GSearchProfilesData_profilesBuilder implements - Builder<GGetProfileCountData_profiles_aggregate_aggregate, - GGetProfileCountData_profiles_aggregate_aggregateBuilder> { - _$GGetProfileCountData_profiles_aggregate_aggregate? _$v; + Builder<GSearchProfilesData_profiles, + GSearchProfilesData_profilesBuilder> { + _$GSearchProfilesData_profiles? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - int? _count; - int? get count => _$this._count; - set count(int? count) => _$this._count = count; + String? _avatar; + String? get avatar => _$this._avatar; + set avatar(String? avatar) => _$this._avatar = avatar; - GGetProfileCountData_profiles_aggregate_aggregateBuilder() { - GGetProfileCountData_profiles_aggregate_aggregate._initializeBuilder(this); + String? _pubkey; + String? get pubkey => _$this._pubkey; + set pubkey(String? pubkey) => _$this._pubkey = pubkey; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _city; + String? get city => _$this._city; + set city(String? city) => _$this._city = city; + + String? _data_cid; + String? get data_cid => _$this._data_cid; + set data_cid(String? data_cid) => _$this._data_cid = data_cid; + + _i2.GpointBuilder? _geoloc; + _i2.GpointBuilder get geoloc => _$this._geoloc ??= new _i2.GpointBuilder(); + set geoloc(_i2.GpointBuilder? geoloc) => _$this._geoloc = geoloc; + + String? _index_request_cid; + String? get index_request_cid => _$this._index_request_cid; + set index_request_cid(String? index_request_cid) => + _$this._index_request_cid = index_request_cid; + + _i3.JsonObject? _socials; + _i3.JsonObject? get socials => _$this._socials; + set socials(_i3.JsonObject? socials) => _$this._socials = socials; + + _i2.GtimestampBuilder? _time; + _i2.GtimestampBuilder get time => + _$this._time ??= new _i2.GtimestampBuilder(); + set time(_i2.GtimestampBuilder? time) => _$this._time = time; + + GSearchProfilesData_profilesBuilder() { + GSearchProfilesData_profiles._initializeBuilder(this); } - GGetProfileCountData_profiles_aggregate_aggregateBuilder get _$this { + GSearchProfilesData_profilesBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; - _count = $v.count; + _avatar = $v.avatar; + _pubkey = $v.pubkey; + _description = $v.description; + _title = $v.title; + _city = $v.city; + _data_cid = $v.data_cid; + _geoloc = $v.geoloc?.toBuilder(); + _index_request_cid = $v.index_request_cid; + _socials = $v.socials; + _time = $v.time.toBuilder(); _$v = null; } return this; } @override - void replace(GGetProfileCountData_profiles_aggregate_aggregate other) { + void replace(GSearchProfilesData_profiles other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileCountData_profiles_aggregate_aggregate; + _$v = other as _$GSearchProfilesData_profiles; } @override - void update( - void Function(GGetProfileCountData_profiles_aggregate_aggregateBuilder)? - updates) { + void update(void Function(GSearchProfilesData_profilesBuilder)? updates) { if (updates != null) updates(this); } @override - GGetProfileCountData_profiles_aggregate_aggregate build() => _build(); + GSearchProfilesData_profiles build() => _build(); - _$GGetProfileCountData_profiles_aggregate_aggregate _build() { - final _$result = _$v ?? - new _$GGetProfileCountData_profiles_aggregate_aggregate._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, - r'GGetProfileCountData_profiles_aggregate_aggregate', - 'G__typename'), - count: BuiltValueNullFieldError.checkNotNull(count, - r'GGetProfileCountData_profiles_aggregate_aggregate', 'count')); + _$GSearchProfilesData_profiles _build() { + _$GSearchProfilesData_profiles _$result; + try { + _$result = _$v ?? + new _$GSearchProfilesData_profiles._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSearchProfilesData_profiles', 'G__typename'), + avatar: avatar, + pubkey: BuiltValueNullFieldError.checkNotNull( + pubkey, r'GSearchProfilesData_profiles', 'pubkey'), + description: description, + title: title, + city: city, + data_cid: data_cid, + geoloc: _geoloc?.build(), + index_request_cid: BuiltValueNullFieldError.checkNotNull( + index_request_cid, + r'GSearchProfilesData_profiles', + 'index_request_cid'), + socials: socials, + time: time.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'geoloc'; + _geoloc?.build(); + + _$failedField = 'time'; + time.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSearchProfilesData_profiles', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.dart index c8403d0edc28016df081b3b91c56e5d0f7a7f1f9..1ca620d14779585bb87cf53f71ea3988f7dc732b 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.dart @@ -99,6 +99,88 @@ abstract class GGetProfileByAddressReq ); } +abstract class GGetProfilesByAddressReq + implements + Built<GGetProfilesByAddressReq, GGetProfilesByAddressReqBuilder>, + _i1.OperationRequest<_i2.GGetProfilesByAddressData, + _i3.GGetProfilesByAddressVars> { + GGetProfilesByAddressReq._(); + + factory GGetProfilesByAddressReq( + [void Function(GGetProfilesByAddressReqBuilder b) updates]) = + _$GGetProfilesByAddressReq; + + static void _initializeBuilder(GGetProfilesByAddressReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'GetProfilesByAddress', + ) + ..executeOnListen = true; + + @override + _i3.GGetProfilesByAddressVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GGetProfilesByAddressData? Function( + _i2.GGetProfilesByAddressData?, + _i2.GGetProfilesByAddressData?, + )? get updateResult; + @override + _i2.GGetProfilesByAddressData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map<String, dynamic>? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GGetProfilesByAddressData? parseData(Map<String, dynamic> json) => + _i2.GGetProfilesByAddressData.fromJson(json); + + @override + Map<String, dynamic> varsToJson() => vars.toJson(); + + @override + Map<String, dynamic> dataToJson(_i2.GGetProfilesByAddressData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GGetProfilesByAddressData, + _i3.GGetProfilesByAddressVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer<GGetProfilesByAddressReq> get serializer => + _$gGetProfilesByAddressReqSerializer; + + Map<String, dynamic> toJson() => (_i6.serializers.serializeWith( + GGetProfilesByAddressReq.serializer, + this, + ) as Map<String, dynamic>); + + static GGetProfilesByAddressReq? fromJson(Map<String, dynamic> json) => + _i6.serializers.deserializeWith( + GGetProfilesByAddressReq.serializer, + json, + ); +} + abstract class GGetProfileCountReq implements Built<GGetProfileCountReq, GGetProfileCountReqBuilder>, @@ -179,3 +261,165 @@ abstract class GGetProfileCountReq json, ); } + +abstract class GSearchProfileByTermReq + implements + Built<GSearchProfileByTermReq, GSearchProfileByTermReqBuilder>, + _i1.OperationRequest<_i2.GSearchProfileByTermData, + _i3.GSearchProfileByTermVars> { + GSearchProfileByTermReq._(); + + factory GSearchProfileByTermReq( + [void Function(GSearchProfileByTermReqBuilder b) updates]) = + _$GSearchProfileByTermReq; + + static void _initializeBuilder(GSearchProfileByTermReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'SearchProfileByTerm', + ) + ..executeOnListen = true; + + @override + _i3.GSearchProfileByTermVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GSearchProfileByTermData? Function( + _i2.GSearchProfileByTermData?, + _i2.GSearchProfileByTermData?, + )? get updateResult; + @override + _i2.GSearchProfileByTermData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map<String, dynamic>? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GSearchProfileByTermData? parseData(Map<String, dynamic> json) => + _i2.GSearchProfileByTermData.fromJson(json); + + @override + Map<String, dynamic> varsToJson() => vars.toJson(); + + @override + Map<String, dynamic> dataToJson(_i2.GSearchProfileByTermData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GSearchProfileByTermData, + _i3.GSearchProfileByTermVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer<GSearchProfileByTermReq> get serializer => + _$gSearchProfileByTermReqSerializer; + + Map<String, dynamic> toJson() => (_i6.serializers.serializeWith( + GSearchProfileByTermReq.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfileByTermReq? fromJson(Map<String, dynamic> json) => + _i6.serializers.deserializeWith( + GSearchProfileByTermReq.serializer, + json, + ); +} + +abstract class GSearchProfilesReq + implements + Built<GSearchProfilesReq, GSearchProfilesReqBuilder>, + _i1.OperationRequest<_i2.GSearchProfilesData, _i3.GSearchProfilesVars> { + GSearchProfilesReq._(); + + factory GSearchProfilesReq( + [void Function(GSearchProfilesReqBuilder b) updates]) = + _$GSearchProfilesReq; + + static void _initializeBuilder(GSearchProfilesReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'SearchProfiles', + ) + ..executeOnListen = true; + + @override + _i3.GSearchProfilesVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GSearchProfilesData? Function( + _i2.GSearchProfilesData?, + _i2.GSearchProfilesData?, + )? get updateResult; + @override + _i2.GSearchProfilesData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map<String, dynamic>? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GSearchProfilesData? parseData(Map<String, dynamic> json) => + _i2.GSearchProfilesData.fromJson(json); + + @override + Map<String, dynamic> varsToJson() => vars.toJson(); + + @override + Map<String, dynamic> dataToJson(_i2.GSearchProfilesData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GSearchProfilesData, _i3.GSearchProfilesVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer<GSearchProfilesReq> get serializer => + _$gSearchProfilesReqSerializer; + + Map<String, dynamic> toJson() => (_i6.serializers.serializeWith( + GSearchProfilesReq.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfilesReq? fromJson(Map<String, dynamic> json) => + _i6.serializers.deserializeWith( + GSearchProfilesReq.serializer, + json, + ); +} diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.g.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.g.dart index 612301dab435d788d4228864d7dd9c766f340f99..2acd9de0a38383d9c00bfede917aa0a817521dcc 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.g.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.req.gql.g.dart @@ -8,8 +8,14 @@ part of 'duniter-datapod-queries.req.gql.dart'; Serializer<GGetProfileByAddressReq> _$gGetProfileByAddressReqSerializer = new _$GGetProfileByAddressReqSerializer(); +Serializer<GGetProfilesByAddressReq> _$gGetProfilesByAddressReqSerializer = + new _$GGetProfilesByAddressReqSerializer(); Serializer<GGetProfileCountReq> _$gGetProfileCountReqSerializer = new _$GGetProfileCountReqSerializer(); +Serializer<GSearchProfileByTermReq> _$gSearchProfileByTermReqSerializer = + new _$GSearchProfileByTermReqSerializer(); +Serializer<GSearchProfilesReq> _$gSearchProfilesReqSerializer = + new _$GSearchProfilesReqSerializer(); class _$GGetProfileByAddressReqSerializer implements StructuredSerializer<GGetProfileByAddressReq> { @@ -133,6 +139,128 @@ class _$GGetProfileByAddressReqSerializer } } +class _$GGetProfilesByAddressReqSerializer + implements StructuredSerializer<GGetProfilesByAddressReq> { + @override + final Iterable<Type> types = const [ + GGetProfilesByAddressReq, + _$GGetProfilesByAddressReq + ]; + @override + final String wireName = 'GGetProfilesByAddressReq'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GGetProfilesByAddressReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GGetProfilesByAddressVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GGetProfilesByAddressData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GGetProfilesByAddressReq deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGetProfilesByAddressReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GGetProfilesByAddressVars))! + as _i3.GGetProfilesByAddressVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GGetProfilesByAddressData))! + as _i2.GGetProfilesByAddressData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map<String, dynamic>?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + class _$GGetProfileCountReqSerializer implements StructuredSerializer<GGetProfileCountReq> { @override @@ -141,133 +269,1103 @@ class _$GGetProfileCountReqSerializer _$GGetProfileCountReq ]; @override - final String wireName = 'GGetProfileCountReq'; + final String wireName = 'GGetProfileCountReq'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GGetProfileCountReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GGetProfileCountVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GGetProfileCountData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GGetProfileCountReq deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGetProfileCountReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GGetProfileCountVars))! + as _i3.GGetProfileCountVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GGetProfileCountData))! + as _i2.GGetProfileCountData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map<String, dynamic>?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GSearchProfileByTermReqSerializer + implements StructuredSerializer<GSearchProfileByTermReq> { + @override + final Iterable<Type> types = const [ + GSearchProfileByTermReq, + _$GSearchProfileByTermReq + ]; + @override + final String wireName = 'GSearchProfileByTermReq'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfileByTermReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSearchProfileByTermVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GSearchProfileByTermData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GSearchProfileByTermReq deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfileByTermReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSearchProfileByTermVars))! + as _i3.GSearchProfileByTermVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GSearchProfileByTermData))! + as _i2.GSearchProfileByTermData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map<String, dynamic>?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GSearchProfilesReqSerializer + implements StructuredSerializer<GSearchProfilesReq> { + @override + final Iterable<Type> types = const [GSearchProfilesReq, _$GSearchProfilesReq]; + @override + final String wireName = 'GSearchProfilesReq'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfilesReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSearchProfilesVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GSearchProfilesData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GSearchProfilesReq deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfilesReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSearchProfilesVars))! + as _i3.GSearchProfilesVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GSearchProfilesData))! + as _i2.GSearchProfilesData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map<String, dynamic>?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GGetProfileByAddressReq extends GGetProfileByAddressReq { + @override + final _i3.GGetProfileByAddressVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GGetProfileByAddressData? Function( + _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + updateResult; + @override + final _i2.GGetProfileByAddressData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map<String, dynamic>? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GGetProfileByAddressReq( + [void Function(GGetProfileByAddressReqBuilder)? updates]) => + (new GGetProfileByAddressReqBuilder()..update(updates))._build(); + + _$GGetProfileByAddressReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GGetProfileByAddressReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GGetProfileByAddressReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GGetProfileByAddressReq', 'executeOnListen'); + } + + @override + GGetProfileByAddressReq rebuild( + void Function(GGetProfileByAddressReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileByAddressReqBuilder toBuilder() => + new GGetProfileByAddressReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GGetProfileByAddressReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfileByAddressReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GGetProfileByAddressReqBuilder + implements + Builder<GGetProfileByAddressReq, GGetProfileByAddressReqBuilder> { + _$GGetProfileByAddressReq? _$v; + + _i3.GGetProfileByAddressVarsBuilder? _vars; + _i3.GGetProfileByAddressVarsBuilder get vars => + _$this._vars ??= new _i3.GGetProfileByAddressVarsBuilder(); + set vars(_i3.GGetProfileByAddressVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GGetProfileByAddressData? Function( + _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + _updateResult; + _i2.GGetProfileByAddressData? Function( + _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GGetProfileByAddressData? Function( + _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GGetProfileByAddressDataBuilder? _optimisticResponse; + _i2.GGetProfileByAddressDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GGetProfileByAddressDataBuilder(); + set optimisticResponse( + _i2.GGetProfileByAddressDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map<String, dynamic>? _updateCacheHandlerContext; + Map<String, dynamic>? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map<String, dynamic>? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GGetProfileByAddressReqBuilder() { + GGetProfileByAddressReq._initializeBuilder(this); + } + + GGetProfileByAddressReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileByAddressReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileByAddressReq; + } + + @override + void update(void Function(GGetProfileByAddressReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfileByAddressReq build() => _build(); + + _$GGetProfileByAddressReq _build() { + _$GGetProfileByAddressReq _$result; + try { + _$result = _$v ?? + new _$GGetProfileByAddressReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GGetProfileByAddressReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GGetProfileByAddressReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfileByAddressReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfilesByAddressReq extends GGetProfilesByAddressReq { + @override + final _i3.GGetProfilesByAddressVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GGetProfilesByAddressData? Function( + _i2.GGetProfilesByAddressData?, _i2.GGetProfilesByAddressData?)? + updateResult; + @override + final _i2.GGetProfilesByAddressData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map<String, dynamic>? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GGetProfilesByAddressReq( + [void Function(GGetProfilesByAddressReqBuilder)? updates]) => + (new GGetProfilesByAddressReqBuilder()..update(updates))._build(); + + _$GGetProfilesByAddressReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GGetProfilesByAddressReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GGetProfilesByAddressReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GGetProfilesByAddressReq', 'executeOnListen'); + } + + @override + GGetProfilesByAddressReq rebuild( + void Function(GGetProfilesByAddressReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfilesByAddressReqBuilder toBuilder() => + new GGetProfilesByAddressReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GGetProfilesByAddressReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfilesByAddressReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GGetProfilesByAddressReqBuilder + implements + Builder<GGetProfilesByAddressReq, GGetProfilesByAddressReqBuilder> { + _$GGetProfilesByAddressReq? _$v; + + _i3.GGetProfilesByAddressVarsBuilder? _vars; + _i3.GGetProfilesByAddressVarsBuilder get vars => + _$this._vars ??= new _i3.GGetProfilesByAddressVarsBuilder(); + set vars(_i3.GGetProfilesByAddressVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GGetProfilesByAddressData? Function( + _i2.GGetProfilesByAddressData?, _i2.GGetProfilesByAddressData?)? + _updateResult; + _i2.GGetProfilesByAddressData? Function( + _i2.GGetProfilesByAddressData?, _i2.GGetProfilesByAddressData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GGetProfilesByAddressData? Function( + _i2.GGetProfilesByAddressData?, + _i2.GGetProfilesByAddressData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GGetProfilesByAddressDataBuilder? _optimisticResponse; + _i2.GGetProfilesByAddressDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GGetProfilesByAddressDataBuilder(); + set optimisticResponse( + _i2.GGetProfilesByAddressDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map<String, dynamic>? _updateCacheHandlerContext; + Map<String, dynamic>? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map<String, dynamic>? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GGetProfilesByAddressReqBuilder() { + GGetProfilesByAddressReq._initializeBuilder(this); + } + + GGetProfilesByAddressReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GGetProfilesByAddressReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfilesByAddressReq; + } + + @override + void update(void Function(GGetProfilesByAddressReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfilesByAddressReq build() => _build(); + + _$GGetProfilesByAddressReq _build() { + _$GGetProfilesByAddressReq _$result; + try { + _$result = _$v ?? + new _$GGetProfilesByAddressReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GGetProfilesByAddressReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GGetProfilesByAddressReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfilesByAddressReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGetProfileCountReq extends GGetProfileCountReq { + @override + final _i3.GGetProfileCountVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GGetProfileCountData? Function( + _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? updateResult; + @override + final _i2.GGetProfileCountData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map<String, dynamic>? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GGetProfileCountReq( + [void Function(GGetProfileCountReqBuilder)? updates]) => + (new GGetProfileCountReqBuilder()..update(updates))._build(); + + _$GGetProfileCountReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GGetProfileCountReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GGetProfileCountReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GGetProfileCountReq', 'executeOnListen'); + } + + @override + GGetProfileCountReq rebuild( + void Function(GGetProfileCountReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfileCountReqBuilder toBuilder() => + new GGetProfileCountReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GGetProfileCountReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfileCountReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GGetProfileCountReqBuilder + implements Builder<GGetProfileCountReq, GGetProfileCountReqBuilder> { + _$GGetProfileCountReq? _$v; + + _i3.GGetProfileCountVarsBuilder? _vars; + _i3.GGetProfileCountVarsBuilder get vars => + _$this._vars ??= new _i3.GGetProfileCountVarsBuilder(); + set vars(_i3.GGetProfileCountVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GGetProfileCountData? Function( + _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? _updateResult; + _i2.GGetProfileCountData? Function( + _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GGetProfileCountData? Function( + _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GGetProfileCountDataBuilder? _optimisticResponse; + _i2.GGetProfileCountDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GGetProfileCountDataBuilder(); + set optimisticResponse(_i2.GGetProfileCountDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map<String, dynamic>? _updateCacheHandlerContext; + Map<String, dynamic>? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map<String, dynamic>? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GGetProfileCountReqBuilder() { + GGetProfileCountReq._initializeBuilder(this); + } + + GGetProfileCountReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GGetProfileCountReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfileCountReq; + } @override - Iterable<Object?> serialize( - Serializers serializers, GGetProfileCountReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = <Object?>[ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GGetProfileCountVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GGetProfileCountData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; + void update(void Function(GGetProfileCountReqBuilder)? updates) { + if (updates != null) updates(this); } @override - GGetProfileCountReq deserialize( - Serializers serializers, Iterable<Object?> serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GGetProfileCountReqBuilder(); + GGetProfileCountReq build() => _build(); - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GGetProfileCountVars))! - as _i3.GGetProfileCountVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GGetProfileCountData))! - as _i2.GGetProfileCountData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map<String, dynamic>?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; + _$GGetProfileCountReq _build() { + _$GGetProfileCountReq _$result; + try { + _$result = _$v ?? + new _$GGetProfileCountReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GGetProfileCountReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GGetProfileCountReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfileCountReq', _$failedField, e.toString()); } + rethrow; } - - return result.build(); + replace(_$result); + return _$result; } } -class _$GGetProfileByAddressReq extends GGetProfileByAddressReq { +class _$GSearchProfileByTermReq extends GSearchProfileByTermReq { @override - final _i3.GGetProfileByAddressVars vars; + final _i3.GSearchProfileByTermVars vars; @override final _i4.Operation operation; @override final String? requestId; @override - final _i2.GGetProfileByAddressData? Function( - _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + final _i2.GSearchProfileByTermData? Function( + _i2.GSearchProfileByTermData?, _i2.GSearchProfileByTermData?)? updateResult; @override - final _i2.GGetProfileByAddressData? optimisticResponse; + final _i2.GSearchProfileByTermData? optimisticResponse; @override final String? updateCacheHandlerKey; @override @@ -279,11 +1377,11 @@ class _$GGetProfileByAddressReq extends GGetProfileByAddressReq { @override final _i4.Context? context; - factory _$GGetProfileByAddressReq( - [void Function(GGetProfileByAddressReqBuilder)? updates]) => - (new GGetProfileByAddressReqBuilder()..update(updates))._build(); + factory _$GSearchProfileByTermReq( + [void Function(GSearchProfileByTermReqBuilder)? updates]) => + (new GSearchProfileByTermReqBuilder()..update(updates))._build(); - _$GGetProfileByAddressReq._( + _$GSearchProfileByTermReq._( {required this.vars, required this.operation, this.requestId, @@ -296,27 +1394,27 @@ class _$GGetProfileByAddressReq extends GGetProfileByAddressReq { this.context}) : super._() { BuiltValueNullFieldError.checkNotNull( - vars, r'GGetProfileByAddressReq', 'vars'); + vars, r'GSearchProfileByTermReq', 'vars'); BuiltValueNullFieldError.checkNotNull( - operation, r'GGetProfileByAddressReq', 'operation'); + operation, r'GSearchProfileByTermReq', 'operation'); BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GGetProfileByAddressReq', 'executeOnListen'); + executeOnListen, r'GSearchProfileByTermReq', 'executeOnListen'); } @override - GGetProfileByAddressReq rebuild( - void Function(GGetProfileByAddressReqBuilder) updates) => + GSearchProfileByTermReq rebuild( + void Function(GSearchProfileByTermReqBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GGetProfileByAddressReqBuilder toBuilder() => - new GGetProfileByAddressReqBuilder()..replace(this); + GSearchProfileByTermReqBuilder toBuilder() => + new GSearchProfileByTermReqBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; final dynamic _$dynamicOther = other; - return other is GGetProfileByAddressReq && + return other is GSearchProfileByTermReq && vars == other.vars && operation == other.operation && requestId == other.requestId && @@ -348,7 +1446,7 @@ class _$GGetProfileByAddressReq extends GGetProfileByAddressReq { @override String toString() { - return (newBuiltValueToStringHelper(r'GGetProfileByAddressReq') + return (newBuiltValueToStringHelper(r'GSearchProfileByTermReq') ..add('vars', vars) ..add('operation', operation) ..add('requestId', requestId) @@ -363,15 +1461,15 @@ class _$GGetProfileByAddressReq extends GGetProfileByAddressReq { } } -class GGetProfileByAddressReqBuilder +class GSearchProfileByTermReqBuilder implements - Builder<GGetProfileByAddressReq, GGetProfileByAddressReqBuilder> { - _$GGetProfileByAddressReq? _$v; + Builder<GSearchProfileByTermReq, GSearchProfileByTermReqBuilder> { + _$GSearchProfileByTermReq? _$v; - _i3.GGetProfileByAddressVarsBuilder? _vars; - _i3.GGetProfileByAddressVarsBuilder get vars => - _$this._vars ??= new _i3.GGetProfileByAddressVarsBuilder(); - set vars(_i3.GGetProfileByAddressVarsBuilder? vars) => _$this._vars = vars; + _i3.GSearchProfileByTermVarsBuilder? _vars; + _i3.GSearchProfileByTermVarsBuilder get vars => + _$this._vars ??= new _i3.GSearchProfileByTermVarsBuilder(); + set vars(_i3.GSearchProfileByTermVarsBuilder? vars) => _$this._vars = vars; _i4.Operation? _operation; _i4.Operation? get operation => _$this._operation; @@ -381,23 +1479,23 @@ class GGetProfileByAddressReqBuilder String? get requestId => _$this._requestId; set requestId(String? requestId) => _$this._requestId = requestId; - _i2.GGetProfileByAddressData? Function( - _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + _i2.GSearchProfileByTermData? Function( + _i2.GSearchProfileByTermData?, _i2.GSearchProfileByTermData?)? _updateResult; - _i2.GGetProfileByAddressData? Function( - _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + _i2.GSearchProfileByTermData? Function( + _i2.GSearchProfileByTermData?, _i2.GSearchProfileByTermData?)? get updateResult => _$this._updateResult; set updateResult( - _i2.GGetProfileByAddressData? Function( - _i2.GGetProfileByAddressData?, _i2.GGetProfileByAddressData?)? + _i2.GSearchProfileByTermData? Function( + _i2.GSearchProfileByTermData?, _i2.GSearchProfileByTermData?)? updateResult) => _$this._updateResult = updateResult; - _i2.GGetProfileByAddressDataBuilder? _optimisticResponse; - _i2.GGetProfileByAddressDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GGetProfileByAddressDataBuilder(); + _i2.GSearchProfileByTermDataBuilder? _optimisticResponse; + _i2.GSearchProfileByTermDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GSearchProfileByTermDataBuilder(); set optimisticResponse( - _i2.GGetProfileByAddressDataBuilder? optimisticResponse) => + _i2.GSearchProfileByTermDataBuilder? optimisticResponse) => _$this._optimisticResponse = optimisticResponse; String? _updateCacheHandlerKey; @@ -426,11 +1524,11 @@ class GGetProfileByAddressReqBuilder _i4.Context? get context => _$this._context; set context(_i4.Context? context) => _$this._context = context; - GGetProfileByAddressReqBuilder() { - GGetProfileByAddressReq._initializeBuilder(this); + GSearchProfileByTermReqBuilder() { + GSearchProfileByTermReq._initializeBuilder(this); } - GGetProfileByAddressReqBuilder get _$this { + GSearchProfileByTermReqBuilder get _$this { final $v = _$v; if ($v != null) { _vars = $v.vars.toBuilder(); @@ -449,27 +1547,27 @@ class GGetProfileByAddressReqBuilder } @override - void replace(GGetProfileByAddressReq other) { + void replace(GSearchProfileByTermReq other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileByAddressReq; + _$v = other as _$GSearchProfileByTermReq; } @override - void update(void Function(GGetProfileByAddressReqBuilder)? updates) { + void update(void Function(GSearchProfileByTermReqBuilder)? updates) { if (updates != null) updates(this); } @override - GGetProfileByAddressReq build() => _build(); + GSearchProfileByTermReq build() => _build(); - _$GGetProfileByAddressReq _build() { - _$GGetProfileByAddressReq _$result; + _$GSearchProfileByTermReq _build() { + _$GSearchProfileByTermReq _$result; try { _$result = _$v ?? - new _$GGetProfileByAddressReq._( + new _$GSearchProfileByTermReq._( vars: vars.build(), operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GGetProfileByAddressReq', 'operation'), + operation, r'GSearchProfileByTermReq', 'operation'), requestId: requestId, updateResult: updateResult, optimisticResponse: _optimisticResponse?.build(), @@ -478,7 +1576,7 @@ class GGetProfileByAddressReqBuilder fetchPolicy: fetchPolicy, executeOnListen: BuiltValueNullFieldError.checkNotNull( executeOnListen, - r'GGetProfileByAddressReq', + r'GSearchProfileByTermReq', 'executeOnListen'), context: context); } catch (_) { @@ -491,7 +1589,7 @@ class GGetProfileByAddressReqBuilder _optimisticResponse?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GGetProfileByAddressReq', _$failedField, e.toString()); + r'GSearchProfileByTermReq', _$failedField, e.toString()); } rethrow; } @@ -500,18 +1598,18 @@ class GGetProfileByAddressReqBuilder } } -class _$GGetProfileCountReq extends GGetProfileCountReq { +class _$GSearchProfilesReq extends GSearchProfilesReq { @override - final _i3.GGetProfileCountVars vars; + final _i3.GSearchProfilesVars vars; @override final _i4.Operation operation; @override final String? requestId; @override - final _i2.GGetProfileCountData? Function( - _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? updateResult; + final _i2.GSearchProfilesData? Function( + _i2.GSearchProfilesData?, _i2.GSearchProfilesData?)? updateResult; @override - final _i2.GGetProfileCountData? optimisticResponse; + final _i2.GSearchProfilesData? optimisticResponse; @override final String? updateCacheHandlerKey; @override @@ -523,11 +1621,11 @@ class _$GGetProfileCountReq extends GGetProfileCountReq { @override final _i4.Context? context; - factory _$GGetProfileCountReq( - [void Function(GGetProfileCountReqBuilder)? updates]) => - (new GGetProfileCountReqBuilder()..update(updates))._build(); + factory _$GSearchProfilesReq( + [void Function(GSearchProfilesReqBuilder)? updates]) => + (new GSearchProfilesReqBuilder()..update(updates))._build(); - _$GGetProfileCountReq._( + _$GSearchProfilesReq._( {required this.vars, required this.operation, this.requestId, @@ -539,27 +1637,27 @@ class _$GGetProfileCountReq extends GGetProfileCountReq { required this.executeOnListen, this.context}) : super._() { - BuiltValueNullFieldError.checkNotNull(vars, r'GGetProfileCountReq', 'vars'); + BuiltValueNullFieldError.checkNotNull(vars, r'GSearchProfilesReq', 'vars'); BuiltValueNullFieldError.checkNotNull( - operation, r'GGetProfileCountReq', 'operation'); + operation, r'GSearchProfilesReq', 'operation'); BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GGetProfileCountReq', 'executeOnListen'); + executeOnListen, r'GSearchProfilesReq', 'executeOnListen'); } @override - GGetProfileCountReq rebuild( - void Function(GGetProfileCountReqBuilder) updates) => + GSearchProfilesReq rebuild( + void Function(GSearchProfilesReqBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GGetProfileCountReqBuilder toBuilder() => - new GGetProfileCountReqBuilder()..replace(this); + GSearchProfilesReqBuilder toBuilder() => + new GSearchProfilesReqBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; final dynamic _$dynamicOther = other; - return other is GGetProfileCountReq && + return other is GSearchProfilesReq && vars == other.vars && operation == other.operation && requestId == other.requestId && @@ -591,7 +1689,7 @@ class _$GGetProfileCountReq extends GGetProfileCountReq { @override String toString() { - return (newBuiltValueToStringHelper(r'GGetProfileCountReq') + return (newBuiltValueToStringHelper(r'GSearchProfilesReq') ..add('vars', vars) ..add('operation', operation) ..add('requestId', requestId) @@ -606,14 +1704,14 @@ class _$GGetProfileCountReq extends GGetProfileCountReq { } } -class GGetProfileCountReqBuilder - implements Builder<GGetProfileCountReq, GGetProfileCountReqBuilder> { - _$GGetProfileCountReq? _$v; +class GSearchProfilesReqBuilder + implements Builder<GSearchProfilesReq, GSearchProfilesReqBuilder> { + _$GSearchProfilesReq? _$v; - _i3.GGetProfileCountVarsBuilder? _vars; - _i3.GGetProfileCountVarsBuilder get vars => - _$this._vars ??= new _i3.GGetProfileCountVarsBuilder(); - set vars(_i3.GGetProfileCountVarsBuilder? vars) => _$this._vars = vars; + _i3.GSearchProfilesVarsBuilder? _vars; + _i3.GSearchProfilesVarsBuilder get vars => + _$this._vars ??= new _i3.GSearchProfilesVarsBuilder(); + set vars(_i3.GSearchProfilesVarsBuilder? vars) => _$this._vars = vars; _i4.Operation? _operation; _i4.Operation? get operation => _$this._operation; @@ -623,21 +1721,21 @@ class GGetProfileCountReqBuilder String? get requestId => _$this._requestId; set requestId(String? requestId) => _$this._requestId = requestId; - _i2.GGetProfileCountData? Function( - _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? _updateResult; - _i2.GGetProfileCountData? Function( - _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? + _i2.GSearchProfilesData? Function( + _i2.GSearchProfilesData?, _i2.GSearchProfilesData?)? _updateResult; + _i2.GSearchProfilesData? Function( + _i2.GSearchProfilesData?, _i2.GSearchProfilesData?)? get updateResult => _$this._updateResult; set updateResult( - _i2.GGetProfileCountData? Function( - _i2.GGetProfileCountData?, _i2.GGetProfileCountData?)? + _i2.GSearchProfilesData? Function( + _i2.GSearchProfilesData?, _i2.GSearchProfilesData?)? updateResult) => _$this._updateResult = updateResult; - _i2.GGetProfileCountDataBuilder? _optimisticResponse; - _i2.GGetProfileCountDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GGetProfileCountDataBuilder(); - set optimisticResponse(_i2.GGetProfileCountDataBuilder? optimisticResponse) => + _i2.GSearchProfilesDataBuilder? _optimisticResponse; + _i2.GSearchProfilesDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GSearchProfilesDataBuilder(); + set optimisticResponse(_i2.GSearchProfilesDataBuilder? optimisticResponse) => _$this._optimisticResponse = optimisticResponse; String? _updateCacheHandlerKey; @@ -666,11 +1764,11 @@ class GGetProfileCountReqBuilder _i4.Context? get context => _$this._context; set context(_i4.Context? context) => _$this._context = context; - GGetProfileCountReqBuilder() { - GGetProfileCountReq._initializeBuilder(this); + GSearchProfilesReqBuilder() { + GSearchProfilesReq._initializeBuilder(this); } - GGetProfileCountReqBuilder get _$this { + GSearchProfilesReqBuilder get _$this { final $v = _$v; if ($v != null) { _vars = $v.vars.toBuilder(); @@ -689,27 +1787,27 @@ class GGetProfileCountReqBuilder } @override - void replace(GGetProfileCountReq other) { + void replace(GSearchProfilesReq other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GGetProfileCountReq; + _$v = other as _$GSearchProfilesReq; } @override - void update(void Function(GGetProfileCountReqBuilder)? updates) { + void update(void Function(GSearchProfilesReqBuilder)? updates) { if (updates != null) updates(this); } @override - GGetProfileCountReq build() => _build(); + GSearchProfilesReq build() => _build(); - _$GGetProfileCountReq _build() { - _$GGetProfileCountReq _$result; + _$GSearchProfilesReq _build() { + _$GSearchProfilesReq _$result; try { _$result = _$v ?? - new _$GGetProfileCountReq._( + new _$GSearchProfilesReq._( vars: vars.build(), operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GGetProfileCountReq', 'operation'), + operation, r'GSearchProfilesReq', 'operation'), requestId: requestId, updateResult: updateResult, optimisticResponse: _optimisticResponse?.build(), @@ -717,7 +1815,7 @@ class GGetProfileCountReqBuilder updateCacheHandlerContext: updateCacheHandlerContext, fetchPolicy: fetchPolicy, executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GGetProfileCountReq', 'executeOnListen'), + executeOnListen, r'GSearchProfilesReq', 'executeOnListen'), context: context); } catch (_) { late String _$failedField; @@ -729,7 +1827,7 @@ class GGetProfileCountReqBuilder _optimisticResponse?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GGetProfileCountReq', _$failedField, e.toString()); + r'GSearchProfilesReq', _$failedField, e.toString()); } rethrow; } diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.dart index 35712f4b16ffa28e20b35ef591571890490feef9..9259e5851edc4d55afaa4c3cb9a23928e8543223 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.dart @@ -2,6 +2,7 @@ // ignore_for_file: type=lint // ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:duniter_datapod/graphql/schema/__generated__/serializers.gql.dart' @@ -34,6 +35,31 @@ abstract class GGetProfileByAddressVars ); } +abstract class GGetProfilesByAddressVars + implements + Built<GGetProfilesByAddressVars, GGetProfilesByAddressVarsBuilder> { + GGetProfilesByAddressVars._(); + + factory GGetProfilesByAddressVars( + [void Function(GGetProfilesByAddressVarsBuilder b) updates]) = + _$GGetProfilesByAddressVars; + + BuiltList<String> get pubkeys; + static Serializer<GGetProfilesByAddressVars> get serializer => + _$gGetProfilesByAddressVarsSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GGetProfilesByAddressVars.serializer, + this, + ) as Map<String, dynamic>); + + static GGetProfilesByAddressVars? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GGetProfilesByAddressVars.serializer, + json, + ); +} + abstract class GGetProfileCountVars implements Built<GGetProfileCountVars, GGetProfileCountVarsBuilder> { GGetProfileCountVars._(); @@ -56,3 +82,54 @@ abstract class GGetProfileCountVars json, ); } + +abstract class GSearchProfileByTermVars + implements + Built<GSearchProfileByTermVars, GSearchProfileByTermVarsBuilder> { + GSearchProfileByTermVars._(); + + factory GSearchProfileByTermVars( + [void Function(GSearchProfileByTermVarsBuilder b) updates]) = + _$GSearchProfileByTermVars; + + String get pattern; + static Serializer<GSearchProfileByTermVars> get serializer => + _$gSearchProfileByTermVarsSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GSearchProfileByTermVars.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfileByTermVars? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GSearchProfileByTermVars.serializer, + json, + ); +} + +abstract class GSearchProfilesVars + implements Built<GSearchProfilesVars, GSearchProfilesVarsBuilder> { + GSearchProfilesVars._(); + + factory GSearchProfilesVars( + [void Function(GSearchProfilesVarsBuilder b) updates]) = + _$GSearchProfilesVars; + + String get searchTermLower; + String get searchTerm; + String get searchTermCapitalized; + static Serializer<GSearchProfilesVars> get serializer => + _$gSearchProfilesVarsSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GSearchProfilesVars.serializer, + this, + ) as Map<String, dynamic>); + + static GSearchProfilesVars? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GSearchProfilesVars.serializer, + json, + ); +} diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.g.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.g.dart index a00dede7ce761346f9388e90a56cd39f7a32096d..935becec3ddd6fb5f095ba6502a56169f675d338 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.g.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/duniter-datapod-queries.var.gql.g.dart @@ -8,8 +8,14 @@ part of 'duniter-datapod-queries.var.gql.dart'; Serializer<GGetProfileByAddressVars> _$gGetProfileByAddressVarsSerializer = new _$GGetProfileByAddressVarsSerializer(); +Serializer<GGetProfilesByAddressVars> _$gGetProfilesByAddressVarsSerializer = + new _$GGetProfilesByAddressVarsSerializer(); Serializer<GGetProfileCountVars> _$gGetProfileCountVarsSerializer = new _$GGetProfileCountVarsSerializer(); +Serializer<GSearchProfileByTermVars> _$gSearchProfileByTermVarsSerializer = + new _$GSearchProfileByTermVarsSerializer(); +Serializer<GSearchProfilesVars> _$gSearchProfilesVarsSerializer = + new _$GSearchProfilesVarsSerializer(); class _$GGetProfileByAddressVarsSerializer implements StructuredSerializer<GGetProfileByAddressVars> { @@ -57,6 +63,55 @@ class _$GGetProfileByAddressVarsSerializer } } +class _$GGetProfilesByAddressVarsSerializer + implements StructuredSerializer<GGetProfilesByAddressVars> { + @override + final Iterable<Type> types = const [ + GGetProfilesByAddressVars, + _$GGetProfilesByAddressVars + ]; + @override + final String wireName = 'GGetProfilesByAddressVars'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GGetProfilesByAddressVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'pubkeys', + serializers.serialize(object.pubkeys, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + + return result; + } + + @override + GGetProfilesByAddressVars deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGetProfilesByAddressVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'pubkeys': + result.pubkeys.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList<Object?>); + break; + } + } + + return result.build(); + } +} + class _$GGetProfileCountVarsSerializer implements StructuredSerializer<GGetProfileCountVars> { @override @@ -82,6 +137,112 @@ class _$GGetProfileCountVarsSerializer } } +class _$GSearchProfileByTermVarsSerializer + implements StructuredSerializer<GSearchProfileByTermVars> { + @override + final Iterable<Type> types = const [ + GSearchProfileByTermVars, + _$GSearchProfileByTermVars + ]; + @override + final String wireName = 'GSearchProfileByTermVars'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfileByTermVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'pattern', + serializers.serialize(object.pattern, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSearchProfileByTermVars deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfileByTermVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'pattern': + result.pattern = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSearchProfilesVarsSerializer + implements StructuredSerializer<GSearchProfilesVars> { + @override + final Iterable<Type> types = const [ + GSearchProfilesVars, + _$GSearchProfilesVars + ]; + @override + final String wireName = 'GSearchProfilesVars'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GSearchProfilesVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'searchTermLower', + serializers.serialize(object.searchTermLower, + specifiedType: const FullType(String)), + 'searchTerm', + serializers.serialize(object.searchTerm, + specifiedType: const FullType(String)), + 'searchTermCapitalized', + serializers.serialize(object.searchTermCapitalized, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSearchProfilesVars deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchProfilesVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'searchTermLower': + result.searchTermLower = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'searchTerm': + result.searchTerm = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'searchTermCapitalized': + result.searchTermCapitalized = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + class _$GGetProfileByAddressVars extends GGetProfileByAddressVars { @override final String pubkey; @@ -170,6 +331,106 @@ class GGetProfileByAddressVarsBuilder } } +class _$GGetProfilesByAddressVars extends GGetProfilesByAddressVars { + @override + final BuiltList<String> pubkeys; + + factory _$GGetProfilesByAddressVars( + [void Function(GGetProfilesByAddressVarsBuilder)? updates]) => + (new GGetProfilesByAddressVarsBuilder()..update(updates))._build(); + + _$GGetProfilesByAddressVars._({required this.pubkeys}) : super._() { + BuiltValueNullFieldError.checkNotNull( + pubkeys, r'GGetProfilesByAddressVars', 'pubkeys'); + } + + @override + GGetProfilesByAddressVars rebuild( + void Function(GGetProfilesByAddressVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGetProfilesByAddressVarsBuilder toBuilder() => + new GGetProfilesByAddressVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGetProfilesByAddressVars && pubkeys == other.pubkeys; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, pubkeys.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGetProfilesByAddressVars') + ..add('pubkeys', pubkeys)) + .toString(); + } +} + +class GGetProfilesByAddressVarsBuilder + implements + Builder<GGetProfilesByAddressVars, GGetProfilesByAddressVarsBuilder> { + _$GGetProfilesByAddressVars? _$v; + + ListBuilder<String>? _pubkeys; + ListBuilder<String> get pubkeys => + _$this._pubkeys ??= new ListBuilder<String>(); + set pubkeys(ListBuilder<String>? pubkeys) => _$this._pubkeys = pubkeys; + + GGetProfilesByAddressVarsBuilder(); + + GGetProfilesByAddressVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _pubkeys = $v.pubkeys.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GGetProfilesByAddressVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGetProfilesByAddressVars; + } + + @override + void update(void Function(GGetProfilesByAddressVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGetProfilesByAddressVars build() => _build(); + + _$GGetProfilesByAddressVars _build() { + _$GGetProfilesByAddressVars _$result; + try { + _$result = + _$v ?? new _$GGetProfilesByAddressVars._(pubkeys: pubkeys.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'pubkeys'; + pubkeys.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GGetProfilesByAddressVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + class _$GGetProfileCountVars extends GGetProfileCountVars { factory _$GGetProfileCountVars( [void Function(GGetProfileCountVarsBuilder)? updates]) => @@ -230,4 +491,216 @@ class GGetProfileCountVarsBuilder } } +class _$GSearchProfileByTermVars extends GSearchProfileByTermVars { + @override + final String pattern; + + factory _$GSearchProfileByTermVars( + [void Function(GSearchProfileByTermVarsBuilder)? updates]) => + (new GSearchProfileByTermVarsBuilder()..update(updates))._build(); + + _$GSearchProfileByTermVars._({required this.pattern}) : super._() { + BuiltValueNullFieldError.checkNotNull( + pattern, r'GSearchProfileByTermVars', 'pattern'); + } + + @override + GSearchProfileByTermVars rebuild( + void Function(GSearchProfileByTermVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSearchProfileByTermVarsBuilder toBuilder() => + new GSearchProfileByTermVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSearchProfileByTermVars && pattern == other.pattern; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, pattern.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSearchProfileByTermVars') + ..add('pattern', pattern)) + .toString(); + } +} + +class GSearchProfileByTermVarsBuilder + implements + Builder<GSearchProfileByTermVars, GSearchProfileByTermVarsBuilder> { + _$GSearchProfileByTermVars? _$v; + + String? _pattern; + String? get pattern => _$this._pattern; + set pattern(String? pattern) => _$this._pattern = pattern; + + GSearchProfileByTermVarsBuilder(); + + GSearchProfileByTermVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _pattern = $v.pattern; + _$v = null; + } + return this; + } + + @override + void replace(GSearchProfileByTermVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSearchProfileByTermVars; + } + + @override + void update(void Function(GSearchProfileByTermVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSearchProfileByTermVars build() => _build(); + + _$GSearchProfileByTermVars _build() { + final _$result = _$v ?? + new _$GSearchProfileByTermVars._( + pattern: BuiltValueNullFieldError.checkNotNull( + pattern, r'GSearchProfileByTermVars', 'pattern')); + replace(_$result); + return _$result; + } +} + +class _$GSearchProfilesVars extends GSearchProfilesVars { + @override + final String searchTermLower; + @override + final String searchTerm; + @override + final String searchTermCapitalized; + + factory _$GSearchProfilesVars( + [void Function(GSearchProfilesVarsBuilder)? updates]) => + (new GSearchProfilesVarsBuilder()..update(updates))._build(); + + _$GSearchProfilesVars._( + {required this.searchTermLower, + required this.searchTerm, + required this.searchTermCapitalized}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + searchTermLower, r'GSearchProfilesVars', 'searchTermLower'); + BuiltValueNullFieldError.checkNotNull( + searchTerm, r'GSearchProfilesVars', 'searchTerm'); + BuiltValueNullFieldError.checkNotNull( + searchTermCapitalized, r'GSearchProfilesVars', 'searchTermCapitalized'); + } + + @override + GSearchProfilesVars rebuild( + void Function(GSearchProfilesVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSearchProfilesVarsBuilder toBuilder() => + new GSearchProfilesVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSearchProfilesVars && + searchTermLower == other.searchTermLower && + searchTerm == other.searchTerm && + searchTermCapitalized == other.searchTermCapitalized; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, searchTermLower.hashCode); + _$hash = $jc(_$hash, searchTerm.hashCode); + _$hash = $jc(_$hash, searchTermCapitalized.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSearchProfilesVars') + ..add('searchTermLower', searchTermLower) + ..add('searchTerm', searchTerm) + ..add('searchTermCapitalized', searchTermCapitalized)) + .toString(); + } +} + +class GSearchProfilesVarsBuilder + implements Builder<GSearchProfilesVars, GSearchProfilesVarsBuilder> { + _$GSearchProfilesVars? _$v; + + String? _searchTermLower; + String? get searchTermLower => _$this._searchTermLower; + set searchTermLower(String? searchTermLower) => + _$this._searchTermLower = searchTermLower; + + String? _searchTerm; + String? get searchTerm => _$this._searchTerm; + set searchTerm(String? searchTerm) => _$this._searchTerm = searchTerm; + + String? _searchTermCapitalized; + String? get searchTermCapitalized => _$this._searchTermCapitalized; + set searchTermCapitalized(String? searchTermCapitalized) => + _$this._searchTermCapitalized = searchTermCapitalized; + + GSearchProfilesVarsBuilder(); + + GSearchProfilesVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _searchTermLower = $v.searchTermLower; + _searchTerm = $v.searchTerm; + _searchTermCapitalized = $v.searchTermCapitalized; + _$v = null; + } + return this; + } + + @override + void replace(GSearchProfilesVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSearchProfilesVars; + } + + @override + void update(void Function(GSearchProfilesVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSearchProfilesVars build() => _build(); + + _$GSearchProfilesVars _build() { + final _$result = _$v ?? + new _$GSearchProfilesVars._( + searchTermLower: BuiltValueNullFieldError.checkNotNull( + searchTermLower, r'GSearchProfilesVars', 'searchTermLower'), + searchTerm: BuiltValueNullFieldError.checkNotNull( + searchTerm, r'GSearchProfilesVars', 'searchTerm'), + searchTermCapitalized: BuiltValueNullFieldError.checkNotNull( + searchTermCapitalized, + r'GSearchProfilesVars', + 'searchTermCapitalized')); + replace(_$result); + return _$result; + } +} + // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.dart index 8658aa4be0ab9f197adaf9c54b39e1b8ae669a94..458a1cb94d30edf1ebb7f67b2b2302f095769274 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.dart @@ -13,11 +13,27 @@ import 'package:duniter_datapod/graphql/schema/__generated__/duniter-datapod-que GGetProfileByAddressData_profiles, GGetProfileCountData, GGetProfileCountData_profiles_aggregate, - GGetProfileCountData_profiles_aggregate_aggregate; + GGetProfileCountData_profiles_aggregate_aggregate, + GGetProfilesByAddressData, + GGetProfilesByAddressData_profiles, + GSearchProfileByTermData, + GSearchProfileByTermData_profiles, + GSearchProfilesData, + GSearchProfilesData_profiles; import 'package:duniter_datapod/graphql/schema/__generated__/duniter-datapod-queries.req.gql.dart' - show GGetProfileByAddressReq, GGetProfileCountReq; + show + GGetProfileByAddressReq, + GGetProfileCountReq, + GGetProfilesByAddressReq, + GSearchProfileByTermReq, + GSearchProfilesReq; import 'package:duniter_datapod/graphql/schema/__generated__/duniter-datapod-queries.var.gql.dart' - show GGetProfileByAddressVars, GGetProfileCountVars; + show + GGetProfileByAddressVars, + GGetProfileCountVars, + GGetProfilesByAddressVars, + GSearchProfileByTermVars, + GSearchProfilesVars; import 'package:duniter_datapod/graphql/schema/__generated__/duniter-datapod.schema.schema.gql.dart' show GGeolocInput, @@ -57,6 +73,18 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GGetProfileCountData_profiles_aggregate_aggregate, GGetProfileCountReq, GGetProfileCountVars, + GGetProfilesByAddressData, + GGetProfilesByAddressData_profiles, + GGetProfilesByAddressReq, + GGetProfilesByAddressVars, + GSearchProfileByTermData, + GSearchProfileByTermData_profiles, + GSearchProfileByTermReq, + GSearchProfileByTermVars, + GSearchProfilesData, + GSearchProfilesData_profiles, + GSearchProfilesReq, + GSearchProfilesVars, GSocialInput, GString_comparison_exp, Gcursor_ordering, diff --git a/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.g.dart b/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.g.dart index 332079db2f5290d5a1a32bcf6861aaccd9d4c90e..7f5b5ece6cd8541f908c11ab1f163c410a42bb38 100644 --- a/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.g.dart +++ b/packages/duniter_datapod/lib/graphql/schema/__generated__/serializers.gql.g.dart @@ -18,6 +18,18 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GGetProfileCountData_profiles_aggregate_aggregate.serializer) ..add(GGetProfileCountReq.serializer) ..add(GGetProfileCountVars.serializer) + ..add(GGetProfilesByAddressData.serializer) + ..add(GGetProfilesByAddressData_profiles.serializer) + ..add(GGetProfilesByAddressReq.serializer) + ..add(GGetProfilesByAddressVars.serializer) + ..add(GSearchProfileByTermData.serializer) + ..add(GSearchProfileByTermData_profiles.serializer) + ..add(GSearchProfileByTermReq.serializer) + ..add(GSearchProfileByTermVars.serializer) + ..add(GSearchProfilesData.serializer) + ..add(GSearchProfilesData_profiles.serializer) + ..add(GSearchProfilesReq.serializer) + ..add(GSearchProfilesVars.serializer) ..add(GSocialInput.serializer) ..add(GString_comparison_exp.serializer) ..add(Gcursor_ordering.serializer) @@ -37,6 +49,18 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType(BuiltList, const [const FullType(GGetProfileByAddressData_profiles)]), () => new ListBuilder<GGetProfileByAddressData_profiles>()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GGetProfilesByAddressData_profiles)]), + () => new ListBuilder<GGetProfilesByAddressData_profiles>()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GSearchProfileByTermData_profiles)]), + () => new ListBuilder<GSearchProfileByTermData_profiles>()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GSearchProfilesData_profiles)]), + () => new ListBuilder<GSearchProfilesData_profiles>()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(Gpoint)]), () => new ListBuilder<Gpoint>()) @@ -67,6 +91,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder<String>()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(JsonObject)]), () => new ListBuilder<JsonObject>()) diff --git a/packages/duniter_datapod/lib/graphql/schema/duniter-datapod-queries.graphql b/packages/duniter_datapod/lib/graphql/schema/duniter-datapod-queries.graphql index 9df0fd816f5736fe61f81743670dce1d8ce502e3..968646ebdbd7bfd530f18d731f03b1311a53b1cd 100644 --- a/packages/duniter_datapod/lib/graphql/schema/duniter-datapod-queries.graphql +++ b/packages/duniter_datapod/lib/graphql/schema/duniter-datapod-queries.graphql @@ -15,6 +15,23 @@ query GetProfileByAddress($pubkey: String!) { } } +query GetProfilesByAddress($pubkeys: [String!]!) { + profiles(where: { pubkey: { _in: $pubkeys } }) { + avatar + pubkey + description + title + city + data_cid + geoloc + index_request_cid + pubkey + socials + time + title + } +} + query GetProfileCount { profiles_aggregate { aggregate { @@ -22,3 +39,58 @@ query GetProfileCount { } } } + +query SearchProfileByTerm($pattern: String!) { + profiles( + where: { + _or: [ + { title: { _iregex: $pattern } } + { description: { _iregex: $pattern } } + { pubkey: { _iregex: $pattern } } + ] + } + ) { + avatar + pubkey + description + title + city + data_cid + geoloc + index_request_cid + pubkey + socials + time + title + } +} + +query SearchProfiles( + $searchTermLower: String! + $searchTerm: String! + $searchTermCapitalized: String! +) { + profiles( + where: { + _or: [ + { title: { _iregex: $searchTermLower } } + { title: { _iregex: $searchTerm } } + { title: { _iregex: $searchTermCapitalized } } + { description: { _iregex: $searchTermLower } } + { description: { _iregex: $searchTerm } } + { description: { _iregex: $searchTermCapitalized } } + ] + } + ) { + avatar + pubkey + description + title + city + data_cid + geoloc + index_request_cid + socials + time + } +} diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.ast.gql.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.ast.gql.dart similarity index 68% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.ast.gql.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.ast.gql.dart index 68787a5e1aadd8f09e0a99972338a1b0ce262dc0..d6055d832054d0326898613e763d147c20fc0f27 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.ast.gql.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.ast.gql.dart @@ -122,6 +122,104 @@ const AccountsByNameOrPk = _i1.OperationDefinitionNode( ) ]), ); +const AccountsByName = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'AccountsByName'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'pattern')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'identity'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'where'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'name'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: '_iregex'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'pattern')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'isMember'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'accountId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'createdOn'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'account'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'isActive'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); const AccountByPk = _i1.OperationDefinitionNode( type: _i1.OperationType.query, name: _i1.NameNode(value: 'AccountByPk'), @@ -199,6 +297,7 @@ const LastBlock = _i1.OperationDefinitionNode( ); const document = _i1.DocumentNode(definitions: [ AccountsByNameOrPk, + AccountsByName, AccountByPk, LastBlock, ]); diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.data.gql.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.data.gql.dart similarity index 69% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.data.gql.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.data.gql.dart index 8a3f9580dd6351f0186b68cc72c2aeb617da0cd3..c5b71d58b5a693d51395c6e5e6cbb365993caf0b 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.data.gql.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.data.gql.dart @@ -10,7 +10,7 @@ import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer.sch import 'package:duniter_indexer/graphql/schema/__generated__/serializers.gql.dart' as _i1; -part 'duniter-queries.data.gql.g.dart'; +part 'duniter-indexer-queries.data.gql.g.dart'; abstract class GAccountsByNameOrPkData implements Built<GAccountsByNameOrPkData, GAccountsByNameOrPkDataBuilder> { @@ -112,6 +112,105 @@ abstract class GAccountsByNameOrPkData_identity_account ); } +abstract class GAccountsByNameData + implements Built<GAccountsByNameData, GAccountsByNameDataBuilder> { + GAccountsByNameData._(); + + factory GAccountsByNameData( + [void Function(GAccountsByNameDataBuilder b) updates]) = + _$GAccountsByNameData; + + static void _initializeBuilder(GAccountsByNameDataBuilder b) => + b..G__typename = 'query_root'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList<GAccountsByNameData_identity> get identity; + static Serializer<GAccountsByNameData> get serializer => + _$gAccountsByNameDataSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GAccountsByNameData.serializer, + this, + ) as Map<String, dynamic>); + + static GAccountsByNameData? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GAccountsByNameData.serializer, + json, + ); +} + +abstract class GAccountsByNameData_identity + implements + Built<GAccountsByNameData_identity, + GAccountsByNameData_identityBuilder> { + GAccountsByNameData_identity._(); + + factory GAccountsByNameData_identity( + [void Function(GAccountsByNameData_identityBuilder b) updates]) = + _$GAccountsByNameData_identity; + + static void _initializeBuilder(GAccountsByNameData_identityBuilder b) => + b..G__typename = 'Identity'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool get isMember; + String get name; + String? get accountId; + _i2.GIdentityStatusEnum? get status; + int get createdOn; + GAccountsByNameData_identity_account? get account; + int get index; + static Serializer<GAccountsByNameData_identity> get serializer => + _$gAccountsByNameDataIdentitySerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GAccountsByNameData_identity.serializer, + this, + ) as Map<String, dynamic>); + + static GAccountsByNameData_identity? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GAccountsByNameData_identity.serializer, + json, + ); +} + +abstract class GAccountsByNameData_identity_account + implements + Built<GAccountsByNameData_identity_account, + GAccountsByNameData_identity_accountBuilder> { + GAccountsByNameData_identity_account._(); + + factory GAccountsByNameData_identity_account( + [void Function(GAccountsByNameData_identity_accountBuilder b) + updates]) = _$GAccountsByNameData_identity_account; + + static void _initializeBuilder( + GAccountsByNameData_identity_accountBuilder b) => + b..G__typename = 'Account'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool get isActive; + static Serializer<GAccountsByNameData_identity_account> get serializer => + _$gAccountsByNameDataIdentityAccountSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GAccountsByNameData_identity_account.serializer, + this, + ) as Map<String, dynamic>); + + static GAccountsByNameData_identity_account? fromJson( + Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GAccountsByNameData_identity_account.serializer, + json, + ); +} + abstract class GAccountByPkData implements Built<GAccountByPkData, GAccountByPkDataBuilder> { GAccountByPkData._(); diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.data.gql.g.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.data.gql.g.dart similarity index 66% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.data.gql.g.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.data.gql.g.dart index ddbec77e912070fdf2c36aa4c6f49b5bed2b7404..0e5ea599cdda6a09593b8b6840416bb7811d9770 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.data.gql.g.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.data.gql.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'duniter-queries.data.gql.dart'; +part of 'duniter-indexer-queries.data.gql.dart'; // ************************************************************************** // BuiltValueGenerator @@ -14,6 +14,14 @@ Serializer<GAccountsByNameOrPkData_identity> Serializer<GAccountsByNameOrPkData_identity_account> _$gAccountsByNameOrPkDataIdentityAccountSerializer = new _$GAccountsByNameOrPkData_identity_accountSerializer(); +Serializer<GAccountsByNameData> _$gAccountsByNameDataSerializer = + new _$GAccountsByNameDataSerializer(); +Serializer<GAccountsByNameData_identity> + _$gAccountsByNameDataIdentitySerializer = + new _$GAccountsByNameData_identitySerializer(); +Serializer<GAccountsByNameData_identity_account> + _$gAccountsByNameDataIdentityAccountSerializer = + new _$GAccountsByNameData_identity_accountSerializer(); Serializer<GAccountByPkData> _$gAccountByPkDataSerializer = new _$GAccountByPkDataSerializer(); Serializer<GAccountByPkData_accountByPk> @@ -242,6 +250,224 @@ class _$GAccountsByNameOrPkData_identity_accountSerializer } } +class _$GAccountsByNameDataSerializer + implements StructuredSerializer<GAccountsByNameData> { + @override + final Iterable<Type> types = const [ + GAccountsByNameData, + _$GAccountsByNameData + ]; + @override + final String wireName = 'GAccountsByNameData'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GAccountsByNameData object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'identity', + serializers.serialize(object.identity, + specifiedType: const FullType( + BuiltList, const [const FullType(GAccountsByNameData_identity)])), + ]; + + return result; + } + + @override + GAccountsByNameData deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAccountsByNameDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'identity': + result.identity.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAccountsByNameData_identity) + ]))! as BuiltList<Object?>); + break; + } + } + + return result.build(); + } +} + +class _$GAccountsByNameData_identitySerializer + implements StructuredSerializer<GAccountsByNameData_identity> { + @override + final Iterable<Type> types = const [ + GAccountsByNameData_identity, + _$GAccountsByNameData_identity + ]; + @override + final String wireName = 'GAccountsByNameData_identity'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GAccountsByNameData_identity object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'isMember', + serializers.serialize(object.isMember, + specifiedType: const FullType(bool)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'createdOn', + serializers.serialize(object.createdOn, + specifiedType: const FullType(int)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.accountId; + if (value != null) { + result + ..add('accountId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GIdentityStatusEnum))); + } + value = object.account; + if (value != null) { + result + ..add('account') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GAccountsByNameData_identity_account))); + } + return result; + } + + @override + GAccountsByNameData_identity deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAccountsByNameData_identityBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isMember': + result.isMember = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'accountId': + result.accountId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(_i2.GIdentityStatusEnum)) + as _i2.GIdentityStatusEnum?; + break; + case 'createdOn': + result.createdOn = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'account': + result.account.replace(serializers.deserialize(value, + specifiedType: + const FullType(GAccountsByNameData_identity_account))! + as GAccountsByNameData_identity_account); + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GAccountsByNameData_identity_accountSerializer + implements StructuredSerializer<GAccountsByNameData_identity_account> { + @override + final Iterable<Type> types = const [ + GAccountsByNameData_identity_account, + _$GAccountsByNameData_identity_account + ]; + @override + final String wireName = 'GAccountsByNameData_identity_account'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GAccountsByNameData_identity_account object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'isActive', + serializers.serialize(object.isActive, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GAccountsByNameData_identity_account deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAccountsByNameData_identity_accountBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isActive': + result.isActive = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + class _$GAccountByPkDataSerializer implements StructuredSerializer<GAccountByPkData> { @override @@ -894,6 +1120,442 @@ class GAccountsByNameOrPkData_identity_accountBuilder } } +class _$GAccountsByNameData extends GAccountsByNameData { + @override + final String G__typename; + @override + final BuiltList<GAccountsByNameData_identity> identity; + + factory _$GAccountsByNameData( + [void Function(GAccountsByNameDataBuilder)? updates]) => + (new GAccountsByNameDataBuilder()..update(updates))._build(); + + _$GAccountsByNameData._({required this.G__typename, required this.identity}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAccountsByNameData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + identity, r'GAccountsByNameData', 'identity'); + } + + @override + GAccountsByNameData rebuild( + void Function(GAccountsByNameDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAccountsByNameDataBuilder toBuilder() => + new GAccountsByNameDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAccountsByNameData && + G__typename == other.G__typename && + identity == other.identity; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, identity.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAccountsByNameData') + ..add('G__typename', G__typename) + ..add('identity', identity)) + .toString(); + } +} + +class GAccountsByNameDataBuilder + implements Builder<GAccountsByNameData, GAccountsByNameDataBuilder> { + _$GAccountsByNameData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder<GAccountsByNameData_identity>? _identity; + ListBuilder<GAccountsByNameData_identity> get identity => + _$this._identity ??= new ListBuilder<GAccountsByNameData_identity>(); + set identity(ListBuilder<GAccountsByNameData_identity>? identity) => + _$this._identity = identity; + + GAccountsByNameDataBuilder() { + GAccountsByNameData._initializeBuilder(this); + } + + GAccountsByNameDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _identity = $v.identity.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAccountsByNameData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAccountsByNameData; + } + + @override + void update(void Function(GAccountsByNameDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAccountsByNameData build() => _build(); + + _$GAccountsByNameData _build() { + _$GAccountsByNameData _$result; + try { + _$result = _$v ?? + new _$GAccountsByNameData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAccountsByNameData', 'G__typename'), + identity: identity.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'identity'; + identity.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAccountsByNameData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAccountsByNameData_identity extends GAccountsByNameData_identity { + @override + final String G__typename; + @override + final bool isMember; + @override + final String name; + @override + final String? accountId; + @override + final _i2.GIdentityStatusEnum? status; + @override + final int createdOn; + @override + final GAccountsByNameData_identity_account? account; + @override + final int index; + + factory _$GAccountsByNameData_identity( + [void Function(GAccountsByNameData_identityBuilder)? updates]) => + (new GAccountsByNameData_identityBuilder()..update(updates))._build(); + + _$GAccountsByNameData_identity._( + {required this.G__typename, + required this.isMember, + required this.name, + this.accountId, + this.status, + required this.createdOn, + this.account, + required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAccountsByNameData_identity', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + isMember, r'GAccountsByNameData_identity', 'isMember'); + BuiltValueNullFieldError.checkNotNull( + name, r'GAccountsByNameData_identity', 'name'); + BuiltValueNullFieldError.checkNotNull( + createdOn, r'GAccountsByNameData_identity', 'createdOn'); + BuiltValueNullFieldError.checkNotNull( + index, r'GAccountsByNameData_identity', 'index'); + } + + @override + GAccountsByNameData_identity rebuild( + void Function(GAccountsByNameData_identityBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAccountsByNameData_identityBuilder toBuilder() => + new GAccountsByNameData_identityBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAccountsByNameData_identity && + G__typename == other.G__typename && + isMember == other.isMember && + name == other.name && + accountId == other.accountId && + status == other.status && + createdOn == other.createdOn && + account == other.account && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, isMember.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, accountId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, createdOn.hashCode); + _$hash = $jc(_$hash, account.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAccountsByNameData_identity') + ..add('G__typename', G__typename) + ..add('isMember', isMember) + ..add('name', name) + ..add('accountId', accountId) + ..add('status', status) + ..add('createdOn', createdOn) + ..add('account', account) + ..add('index', index)) + .toString(); + } +} + +class GAccountsByNameData_identityBuilder + implements + Builder<GAccountsByNameData_identity, + GAccountsByNameData_identityBuilder> { + _$GAccountsByNameData_identity? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _isMember; + bool? get isMember => _$this._isMember; + set isMember(bool? isMember) => _$this._isMember = isMember; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _accountId; + String? get accountId => _$this._accountId; + set accountId(String? accountId) => _$this._accountId = accountId; + + _i2.GIdentityStatusEnum? _status; + _i2.GIdentityStatusEnum? get status => _$this._status; + set status(_i2.GIdentityStatusEnum? status) => _$this._status = status; + + int? _createdOn; + int? get createdOn => _$this._createdOn; + set createdOn(int? createdOn) => _$this._createdOn = createdOn; + + GAccountsByNameData_identity_accountBuilder? _account; + GAccountsByNameData_identity_accountBuilder get account => + _$this._account ??= new GAccountsByNameData_identity_accountBuilder(); + set account(GAccountsByNameData_identity_accountBuilder? account) => + _$this._account = account; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GAccountsByNameData_identityBuilder() { + GAccountsByNameData_identity._initializeBuilder(this); + } + + GAccountsByNameData_identityBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _isMember = $v.isMember; + _name = $v.name; + _accountId = $v.accountId; + _status = $v.status; + _createdOn = $v.createdOn; + _account = $v.account?.toBuilder(); + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace(GAccountsByNameData_identity other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAccountsByNameData_identity; + } + + @override + void update(void Function(GAccountsByNameData_identityBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAccountsByNameData_identity build() => _build(); + + _$GAccountsByNameData_identity _build() { + _$GAccountsByNameData_identity _$result; + try { + _$result = _$v ?? + new _$GAccountsByNameData_identity._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAccountsByNameData_identity', 'G__typename'), + isMember: BuiltValueNullFieldError.checkNotNull( + isMember, r'GAccountsByNameData_identity', 'isMember'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAccountsByNameData_identity', 'name'), + accountId: accountId, + status: status, + createdOn: BuiltValueNullFieldError.checkNotNull( + createdOn, r'GAccountsByNameData_identity', 'createdOn'), + account: _account?.build(), + index: BuiltValueNullFieldError.checkNotNull( + index, r'GAccountsByNameData_identity', 'index')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'account'; + _account?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAccountsByNameData_identity', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAccountsByNameData_identity_account + extends GAccountsByNameData_identity_account { + @override + final String G__typename; + @override + final bool isActive; + + factory _$GAccountsByNameData_identity_account( + [void Function(GAccountsByNameData_identity_accountBuilder)? + updates]) => + (new GAccountsByNameData_identity_accountBuilder()..update(updates)) + ._build(); + + _$GAccountsByNameData_identity_account._( + {required this.G__typename, required this.isActive}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAccountsByNameData_identity_account', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + isActive, r'GAccountsByNameData_identity_account', 'isActive'); + } + + @override + GAccountsByNameData_identity_account rebuild( + void Function(GAccountsByNameData_identity_accountBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAccountsByNameData_identity_accountBuilder toBuilder() => + new GAccountsByNameData_identity_accountBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAccountsByNameData_identity_account && + G__typename == other.G__typename && + isActive == other.isActive; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, isActive.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAccountsByNameData_identity_account') + ..add('G__typename', G__typename) + ..add('isActive', isActive)) + .toString(); + } +} + +class GAccountsByNameData_identity_accountBuilder + implements + Builder<GAccountsByNameData_identity_account, + GAccountsByNameData_identity_accountBuilder> { + _$GAccountsByNameData_identity_account? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _isActive; + bool? get isActive => _$this._isActive; + set isActive(bool? isActive) => _$this._isActive = isActive; + + GAccountsByNameData_identity_accountBuilder() { + GAccountsByNameData_identity_account._initializeBuilder(this); + } + + GAccountsByNameData_identity_accountBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _isActive = $v.isActive; + _$v = null; + } + return this; + } + + @override + void replace(GAccountsByNameData_identity_account other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAccountsByNameData_identity_account; + } + + @override + void update( + void Function(GAccountsByNameData_identity_accountBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAccountsByNameData_identity_account build() => _build(); + + _$GAccountsByNameData_identity_account _build() { + final _$result = _$v ?? + new _$GAccountsByNameData_identity_account._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAccountsByNameData_identity_account', 'G__typename'), + isActive: BuiltValueNullFieldError.checkNotNull( + isActive, r'GAccountsByNameData_identity_account', 'isActive')); + replace(_$result); + return _$result; + } +} + class _$GAccountByPkData extends GAccountByPkData { @override final String G__typename; diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.req.gql.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.req.gql.dart similarity index 75% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.req.gql.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.req.gql.dart index 5f467b05c14d92b652ad9bdaf86ee4587d6f558f..a140a43b4a3beb5cd1afc124b52351431fde4d4f 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.req.gql.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.req.gql.dart @@ -4,18 +4,18 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:duniter_indexer/graphql/schema/__generated__/duniter-queries.ast.gql.dart' +import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer-queries.ast.gql.dart' as _i5; -import 'package:duniter_indexer/graphql/schema/__generated__/duniter-queries.data.gql.dart' +import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer-queries.data.gql.dart' as _i2; -import 'package:duniter_indexer/graphql/schema/__generated__/duniter-queries.var.gql.dart' +import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer-queries.var.gql.dart' as _i3; import 'package:duniter_indexer/graphql/schema/__generated__/serializers.gql.dart' as _i6; import 'package:ferry_exec/ferry_exec.dart' as _i1; import 'package:gql_exec/gql_exec.dart' as _i4; -part 'duniter-queries.req.gql.g.dart'; +part 'duniter-indexer-queries.req.gql.g.dart'; abstract class GAccountsByNameOrPkReq implements @@ -98,6 +98,86 @@ abstract class GAccountsByNameOrPkReq ); } +abstract class GAccountsByNameReq + implements + Built<GAccountsByNameReq, GAccountsByNameReqBuilder>, + _i1.OperationRequest<_i2.GAccountsByNameData, _i3.GAccountsByNameVars> { + GAccountsByNameReq._(); + + factory GAccountsByNameReq( + [void Function(GAccountsByNameReqBuilder b) updates]) = + _$GAccountsByNameReq; + + static void _initializeBuilder(GAccountsByNameReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'AccountsByName', + ) + ..executeOnListen = true; + + @override + _i3.GAccountsByNameVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GAccountsByNameData? Function( + _i2.GAccountsByNameData?, + _i2.GAccountsByNameData?, + )? get updateResult; + @override + _i2.GAccountsByNameData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map<String, dynamic>? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GAccountsByNameData? parseData(Map<String, dynamic> json) => + _i2.GAccountsByNameData.fromJson(json); + + @override + Map<String, dynamic> varsToJson() => vars.toJson(); + + @override + Map<String, dynamic> dataToJson(_i2.GAccountsByNameData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GAccountsByNameData, _i3.GAccountsByNameVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer<GAccountsByNameReq> get serializer => + _$gAccountsByNameReqSerializer; + + Map<String, dynamic> toJson() => (_i6.serializers.serializeWith( + GAccountsByNameReq.serializer, + this, + ) as Map<String, dynamic>); + + static GAccountsByNameReq? fromJson(Map<String, dynamic> json) => + _i6.serializers.deserializeWith( + GAccountsByNameReq.serializer, + json, + ); +} + abstract class GAccountByPkReq implements Built<GAccountByPkReq, GAccountByPkReqBuilder>, diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.req.gql.g.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.req.gql.g.dart similarity index 74% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.req.gql.g.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.req.gql.g.dart index 94c188b91edab3208b09a1d6a0bb222b95d41427..bf68f4bc6d6487e2fa34a235de676dc281d41f80 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.req.gql.g.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.req.gql.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'duniter-queries.req.gql.dart'; +part of 'duniter-indexer-queries.req.gql.dart'; // ************************************************************************** // BuiltValueGenerator @@ -8,6 +8,8 @@ part of 'duniter-queries.req.gql.dart'; Serializer<GAccountsByNameOrPkReq> _$gAccountsByNameOrPkReqSerializer = new _$GAccountsByNameOrPkReqSerializer(); +Serializer<GAccountsByNameReq> _$gAccountsByNameReqSerializer = + new _$GAccountsByNameReqSerializer(); Serializer<GAccountByPkReq> _$gAccountByPkReqSerializer = new _$GAccountByPkReqSerializer(); Serializer<GLastBlockReq> _$gLastBlockReqSerializer = @@ -135,6 +137,125 @@ class _$GAccountsByNameOrPkReqSerializer } } +class _$GAccountsByNameReqSerializer + implements StructuredSerializer<GAccountsByNameReq> { + @override + final Iterable<Type> types = const [GAccountsByNameReq, _$GAccountsByNameReq]; + @override + final String wireName = 'GAccountsByNameReq'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GAccountsByNameReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAccountsByNameVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GAccountsByNameData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GAccountsByNameReq deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAccountsByNameReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAccountsByNameVars))! + as _i3.GAccountsByNameVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GAccountsByNameData))! + as _i2.GAccountsByNameData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map<String, dynamic>?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + class _$GAccountByPkReqSerializer implements StructuredSerializer<GAccountByPkReq> { @override @@ -613,6 +734,244 @@ class GAccountsByNameOrPkReqBuilder } } +class _$GAccountsByNameReq extends GAccountsByNameReq { + @override + final _i3.GAccountsByNameVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GAccountsByNameData? Function( + _i2.GAccountsByNameData?, _i2.GAccountsByNameData?)? updateResult; + @override + final _i2.GAccountsByNameData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map<String, dynamic>? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GAccountsByNameReq( + [void Function(GAccountsByNameReqBuilder)? updates]) => + (new GAccountsByNameReqBuilder()..update(updates))._build(); + + _$GAccountsByNameReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAccountsByNameReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GAccountsByNameReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAccountsByNameReq', 'executeOnListen'); + } + + @override + GAccountsByNameReq rebuild( + void Function(GAccountsByNameReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAccountsByNameReqBuilder toBuilder() => + new GAccountsByNameReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GAccountsByNameReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAccountsByNameReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GAccountsByNameReqBuilder + implements Builder<GAccountsByNameReq, GAccountsByNameReqBuilder> { + _$GAccountsByNameReq? _$v; + + _i3.GAccountsByNameVarsBuilder? _vars; + _i3.GAccountsByNameVarsBuilder get vars => + _$this._vars ??= new _i3.GAccountsByNameVarsBuilder(); + set vars(_i3.GAccountsByNameVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GAccountsByNameData? Function( + _i2.GAccountsByNameData?, _i2.GAccountsByNameData?)? _updateResult; + _i2.GAccountsByNameData? Function( + _i2.GAccountsByNameData?, _i2.GAccountsByNameData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GAccountsByNameData? Function( + _i2.GAccountsByNameData?, _i2.GAccountsByNameData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GAccountsByNameDataBuilder? _optimisticResponse; + _i2.GAccountsByNameDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GAccountsByNameDataBuilder(); + set optimisticResponse(_i2.GAccountsByNameDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map<String, dynamic>? _updateCacheHandlerContext; + Map<String, dynamic>? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map<String, dynamic>? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GAccountsByNameReqBuilder() { + GAccountsByNameReq._initializeBuilder(this); + } + + GAccountsByNameReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GAccountsByNameReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAccountsByNameReq; + } + + @override + void update(void Function(GAccountsByNameReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAccountsByNameReq build() => _build(); + + _$GAccountsByNameReq _build() { + _$GAccountsByNameReq _$result; + try { + _$result = _$v ?? + new _$GAccountsByNameReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GAccountsByNameReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAccountsByNameReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAccountsByNameReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + class _$GAccountByPkReq extends GAccountByPkReq { @override final _i3.GAccountByPkVars vars; diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.var.gql.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.var.gql.dart similarity index 75% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.var.gql.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.var.gql.dart index e0b4257956e7f22f876add7f3ebc96a0c483cfc1..6626af946d863a6eb134ad27f7d816677441ae81 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.var.gql.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.var.gql.dart @@ -7,7 +7,7 @@ import 'package:built_value/serializer.dart'; import 'package:duniter_indexer/graphql/schema/__generated__/serializers.gql.dart' as _i1; -part 'duniter-queries.var.gql.g.dart'; +part 'duniter-indexer-queries.var.gql.g.dart'; abstract class GAccountsByNameOrPkVars implements Built<GAccountsByNameOrPkVars, GAccountsByNameOrPkVarsBuilder> { @@ -33,6 +33,30 @@ abstract class GAccountsByNameOrPkVars ); } +abstract class GAccountsByNameVars + implements Built<GAccountsByNameVars, GAccountsByNameVarsBuilder> { + GAccountsByNameVars._(); + + factory GAccountsByNameVars( + [void Function(GAccountsByNameVarsBuilder b) updates]) = + _$GAccountsByNameVars; + + String? get pattern; + static Serializer<GAccountsByNameVars> get serializer => + _$gAccountsByNameVarsSerializer; + + Map<String, dynamic> toJson() => (_i1.serializers.serializeWith( + GAccountsByNameVars.serializer, + this, + ) as Map<String, dynamic>); + + static GAccountsByNameVars? fromJson(Map<String, dynamic> json) => + _i1.serializers.deserializeWith( + GAccountsByNameVars.serializer, + json, + ); +} + abstract class GAccountByPkVars implements Built<GAccountByPkVars, GAccountByPkVarsBuilder> { GAccountByPkVars._(); diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.var.gql.g.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.var.gql.g.dart similarity index 72% rename from packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.var.gql.g.dart rename to packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.var.gql.g.dart index 73cc21dad53d8382e0b24990ef07016d155e3029..011c75a77aee71a4445e40d3c33a5abf21fdc8a4 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-queries.var.gql.g.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/duniter-indexer-queries.var.gql.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'duniter-queries.var.gql.dart'; +part of 'duniter-indexer-queries.var.gql.dart'; // ************************************************************************** // BuiltValueGenerator @@ -8,6 +8,8 @@ part of 'duniter-queries.var.gql.dart'; Serializer<GAccountsByNameOrPkVars> _$gAccountsByNameOrPkVarsSerializer = new _$GAccountsByNameOrPkVarsSerializer(); +Serializer<GAccountsByNameVars> _$gAccountsByNameVarsSerializer = + new _$GAccountsByNameVarsSerializer(); Serializer<GAccountByPkVars> _$gAccountByPkVarsSerializer = new _$GAccountByPkVarsSerializer(); Serializer<GLastBlockVars> _$gLastBlockVarsSerializer = @@ -62,6 +64,55 @@ class _$GAccountsByNameOrPkVarsSerializer } } +class _$GAccountsByNameVarsSerializer + implements StructuredSerializer<GAccountsByNameVars> { + @override + final Iterable<Type> types = const [ + GAccountsByNameVars, + _$GAccountsByNameVars + ]; + @override + final String wireName = 'GAccountsByNameVars'; + + @override + Iterable<Object?> serialize( + Serializers serializers, GAccountsByNameVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = <Object?>[]; + Object? value; + value = object.pattern; + if (value != null) { + result + ..add('pattern') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GAccountsByNameVars deserialize( + Serializers serializers, Iterable<Object?> serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAccountsByNameVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'pattern': + result.pattern = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + class _$GAccountByPkVarsSerializer implements StructuredSerializer<GAccountByPkVars> { @override @@ -206,6 +257,87 @@ class GAccountsByNameOrPkVarsBuilder } } +class _$GAccountsByNameVars extends GAccountsByNameVars { + @override + final String? pattern; + + factory _$GAccountsByNameVars( + [void Function(GAccountsByNameVarsBuilder)? updates]) => + (new GAccountsByNameVarsBuilder()..update(updates))._build(); + + _$GAccountsByNameVars._({this.pattern}) : super._(); + + @override + GAccountsByNameVars rebuild( + void Function(GAccountsByNameVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAccountsByNameVarsBuilder toBuilder() => + new GAccountsByNameVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAccountsByNameVars && pattern == other.pattern; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, pattern.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAccountsByNameVars') + ..add('pattern', pattern)) + .toString(); + } +} + +class GAccountsByNameVarsBuilder + implements Builder<GAccountsByNameVars, GAccountsByNameVarsBuilder> { + _$GAccountsByNameVars? _$v; + + String? _pattern; + String? get pattern => _$this._pattern; + set pattern(String? pattern) => _$this._pattern = pattern; + + GAccountsByNameVarsBuilder(); + + GAccountsByNameVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _pattern = $v.pattern; + _$v = null; + } + return this; + } + + @override + void replace(GAccountsByNameVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAccountsByNameVars; + } + + @override + void update(void Function(GAccountsByNameVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAccountsByNameVars build() => _build(); + + _$GAccountsByNameVars _build() { + final _$result = _$v ?? new _$GAccountsByNameVars._(pattern: pattern); + replace(_$result); + return _$result; + } +} + class _$GAccountByPkVars extends GAccountByPkVars { @override final String id; diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.dart index c028e39f78be455a03a96e41d935ee1a43e1059e..ef3e259140ee9f05122459489e7734d06498298a 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.dart @@ -7,6 +7,30 @@ import 'package:built_value/serializer.dart'; import 'package:built_value/src/json_object_serializer.dart' show JsonObjectSerializer; import 'package:built_value/standard_json_plugin.dart' show StandardJsonPlugin; +import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer-queries.data.gql.dart' + show + GAccountByPkData, + GAccountByPkData_accountByPk, + GAccountsByNameData, + GAccountsByNameData_identity, + GAccountsByNameData_identity_account, + GAccountsByNameOrPkData, + GAccountsByNameOrPkData_identity, + GAccountsByNameOrPkData_identity_account, + GLastBlockData, + GLastBlockData_block; +import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer-queries.req.gql.dart' + show + GAccountByPkReq, + GAccountsByNameOrPkReq, + GAccountsByNameReq, + GLastBlockReq; +import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer-queries.var.gql.dart' + show + GAccountByPkVars, + GAccountsByNameOrPkVars, + GAccountsByNameVars, + GLastBlockVars; import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer.schema.schema.gql.dart' show GAccountAggregateBoolExp, @@ -329,19 +353,6 @@ import 'package:duniter_indexer/graphql/schema/__generated__/duniter-indexer.sch Gtimestamptz, GtransferAggregateBoolExpCount, GtxCommentAggregateBoolExpCount; -import 'package:duniter_indexer/graphql/schema/__generated__/duniter-queries.data.gql.dart' - show - GAccountByPkData, - GAccountByPkData_accountByPk, - GAccountsByNameOrPkData, - GAccountsByNameOrPkData_identity, - GAccountsByNameOrPkData_identity_account, - GLastBlockData, - GLastBlockData_block; -import 'package:duniter_indexer/graphql/schema/__generated__/duniter-queries.req.gql.dart' - show GAccountByPkReq, GAccountsByNameOrPkReq, GLastBlockReq; -import 'package:duniter_indexer/graphql/schema/__generated__/duniter-queries.var.gql.dart' - show GAccountByPkVars, GAccountsByNameOrPkVars, GLastBlockVars; import 'package:ferry_exec/ferry_exec.dart'; import 'package:gql_code_builder_serializers/gql_code_builder_serializers.dart' show OperationSerializer; @@ -368,11 +379,16 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GAccountSelectColumnAccountAggregateBoolExpBool_orArgumentsColumns, GAccountStreamCursorInput, GAccountStreamCursorValueInput, + GAccountsByNameData, + GAccountsByNameData_identity, + GAccountsByNameData_identity_account, GAccountsByNameOrPkData, GAccountsByNameOrPkData_identity, GAccountsByNameOrPkData_identity_account, GAccountsByNameOrPkReq, GAccountsByNameOrPkVars, + GAccountsByNameReq, + GAccountsByNameVars, GBlockBoolExp, GBlockOrderBy, GBlockSelectColumn, diff --git a/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.g.dart b/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.g.dart index 1b3ae178044159a7a7a1d8bbd8f667ff41f6d09e..38859a95920e3282137c51316e05058e7749db6b 100644 --- a/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.g.dart +++ b/packages/duniter_indexer/lib/graphql/schema/__generated__/serializers.gql.g.dart @@ -25,11 +25,16 @@ Serializers _$serializers = (new Serializers().toBuilder() .serializer) ..add(GAccountStreamCursorInput.serializer) ..add(GAccountStreamCursorValueInput.serializer) + ..add(GAccountsByNameData.serializer) + ..add(GAccountsByNameData_identity.serializer) + ..add(GAccountsByNameData_identity_account.serializer) ..add(GAccountsByNameOrPkData.serializer) ..add(GAccountsByNameOrPkData_identity.serializer) ..add(GAccountsByNameOrPkData_identity_account.serializer) ..add(GAccountsByNameOrPkReq.serializer) ..add(GAccountsByNameOrPkVars.serializer) + ..add(GAccountsByNameReq.serializer) + ..add(GAccountsByNameVars.serializer) ..add(GBlockBoolExp.serializer) ..add(GBlockOrderBy.serializer) ..add(GBlockSelectColumn.serializer) @@ -364,6 +369,10 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(GAccountSelectColumn)]), () => new ListBuilder<GAccountSelectColumn>()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GAccountsByNameData_identity)]), + () => new ListBuilder<GAccountsByNameData_identity>()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(GAccountsByNameOrPkData_identity)]), diff --git a/packages/duniter_indexer/lib/graphql/schema/duniter-queries.graphql b/packages/duniter_indexer/lib/graphql/schema/duniter-indexer-queries.graphql similarity index 82% rename from packages/duniter_indexer/lib/graphql/schema/duniter-queries.graphql rename to packages/duniter_indexer/lib/graphql/schema/duniter-indexer-queries.graphql index f9d6c833839f13342c6bda38a681fc27dfa1e653..92e5fcd1e50fe188eb87522b225bb344e01a2974 100644 --- a/packages/duniter_indexer/lib/graphql/schema/duniter-queries.graphql +++ b/packages/duniter_indexer/lib/graphql/schema/duniter-indexer-queries.graphql @@ -37,6 +37,24 @@ query AccountsByNameOrPk($pattern: String) { } } +query AccountsByName($pattern: String) { + identity( + where: + { name: { _iregex: $pattern } } + ) { + isMember + name + accountId + status + createdOn + account { + isActive + } + index + } +} + + query AccountByPk ($id: String!) { accountByPk(id: $id) { isActive