From c7c1ca62efb45084bba1d17879cb32e6877e7fde Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Mon, 22 Jun 2026 14:03:29 +0700 Subject: [PATCH] Load place details lazily --- graphql-contracts | 2 +- .../mapflow/application/place_cubit.dart | 40 +- .../add_favorite_place.ast.gql.dart | 271 ++++--- .../add_favorite_place.data.gql.dart | 96 ++- .../add_favorite_place.req.gql.dart | 39 +- .../add_favorite_place.var.gql.dart | 18 +- .../authenticate_telegram.ast.gql.dart | 156 ++-- .../authenticate_telegram.data.gql.dart | 103 ++- .../authenticate_telegram.req.gql.dart | 46 +- .../authenticate_telegram.var.gql.dart | 21 +- .../authenticate_telegram_login.ast.gql.dart | 156 ++-- .../authenticate_telegram_login.data.gql.dart | 119 ++- .../authenticate_telegram_login.req.gql.dart | 47 +- .../authenticate_telegram_login.var.gql.dart | 22 +- .../complete_telegram_bot_login.ast.gql.dart | 156 ++-- .../complete_telegram_bot_login.data.gql.dart | 115 ++- .../complete_telegram_bot_login.req.gql.dart | 47 +- .../complete_telegram_bot_login.var.gql.dart | 22 +- .../create_voice_experience.ast.gql.dart | 50 +- .../create_voice_experience.data.gql.dart | 64 +- .../create_voice_experience.req.gql.dart | 46 +- .../create_voice_experience.var.gql.dart | 24 +- .../favorite_places.ast.gql.dart | 254 +++---- .../favorite_places.data.gql.dart | 90 ++- .../favorite_places.req.gql.dart | 33 +- .../favorite_places.var.gql.dart | 18 +- .../graphql/__generated__/me.ast.gql.dart | 134 ++-- .../graphql/__generated__/me.data.gql.dart | 24 +- .../graphql/__generated__/me.req.gql.dart | 34 +- .../graphql/__generated__/me.var.gql.dart | 12 +- .../__generated__/nearby_places.ast.gql.dart | 266 ++++--- .../__generated__/nearby_places.data.gql.dart | 78 +- .../__generated__/nearby_places.req.gql.dart | 27 +- .../__generated__/nearby_places.var.gql.dart | 18 +- .../graphql/__generated__/place.ast.gql.dart | 122 +++ .../graphql/__generated__/place.data.gql.dart | 77 ++ .../__generated__/place.data.gql.g.dart | 716 ++++++++++++++++++ .../graphql/__generated__/place.req.gql.dart | 94 +++ .../__generated__/place.req.gql.g.dart | 417 ++++++++++ .../graphql/__generated__/place.var.gql.dart | 31 + .../__generated__/place.var.gql.g.dart | 139 ++++ .../recommend_places_by_voice.ast.gql.dart | 364 +++++---- .../recommend_places_by_voice.data.gql.dart | 172 ++--- .../recommend_places_by_voice.req.gql.dart | 49 +- .../recommend_places_by_voice.var.gql.dart | 24 +- .../remove_favorite_place.ast.gql.dart | 271 ++++--- .../remove_favorite_place.data.gql.dart | 106 ++- .../remove_favorite_place.req.gql.dart | 43 +- .../remove_favorite_place.var.gql.dart | 21 +- .../graphql/__generated__/schema.ast.gql.dart | 92 ++- .../__generated__/schema.schema.gql.dart | 110 ++- .../__generated__/serializers.gql.dart | 10 + .../__generated__/serializers.gql.g.dart | 16 + .../start_telegram_bot_login.ast.gql.dart | 64 +- .../start_telegram_bot_login.data.gql.dart | 64 +- .../start_telegram_bot_login.req.gql.dart | 46 +- .../start_telegram_bot_login.var.gql.dart | 24 +- .../voice_experiences.ast.gql.dart | 226 +++--- .../voice_experiences.data.gql.dart | 131 ++-- .../voice_experiences.req.gql.dart | 39 +- .../voice_experiences.var.gql.dart | 18 +- .../mapflow/data/graphql/place.graphql | 16 + .../mapflow/data/mapflow_data_mappers.dart | 23 + .../mapflow/data/places_repository.dart | 10 + .../mapflow/presentation/mapflow_shell.dart | 219 +++--- 65 files changed, 4019 insertions(+), 2383 deletions(-) create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.ast.gql.dart create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.data.gql.dart create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.data.gql.g.dart create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.req.gql.dart create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.req.gql.g.dart create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.var.gql.dart create mode 100644 lib/features/mapflow/data/graphql/__generated__/place.var.gql.g.dart create mode 100644 lib/features/mapflow/data/graphql/place.graphql diff --git a/graphql-contracts b/graphql-contracts index d694c7d..57dcd3a 160000 --- a/graphql-contracts +++ b/graphql-contracts @@ -1 +1 @@ -Subproject commit d694c7d78c3e234ae19bf41af6b0e555d048109c +Subproject commit 57dcd3aba861200379c7dc82a403b56d4c5cd40e diff --git a/lib/features/mapflow/application/place_cubit.dart b/lib/features/mapflow/application/place_cubit.dart index 911a186..4be20fa 100644 --- a/lib/features/mapflow/application/place_cubit.dart +++ b/lib/features/mapflow/application/place_cubit.dart @@ -1,3 +1,5 @@ +import 'dart:async'; + import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:latlong2/latlong.dart'; @@ -154,12 +156,10 @@ class PlaceCubit extends Cubit { final results = await Future.wait([ _authRepository.authenticateTelegram(), - _location.resolve(), _placesRepository.fetchPlaces(), ]); final currentUser = results[0] as AppUser; - final userCoordinate = results[1] as LatLng?; - final places = results[2] as List; + final places = results[1] as List; emit( PlaceViewState.ready( PlaceState( @@ -168,13 +168,14 @@ class PlaceCubit extends Cubit { selectedPlaceId: places.isEmpty ? null : places.first.id, currentUser: currentUser, hasTelegramAuth: _authRepository.hasTelegramAuth, - userCoordinate: userCoordinate, + userCoordinate: null, reviewDraft: _emptyDraft, voiceFilterTranscript: '', voiceFilterTags: const [], ), ), ); + unawaited(_resolveLocation()); } void selectTrait(PlaceTrait trait) { @@ -253,6 +254,28 @@ class PlaceCubit extends Cubit { ); } + Future loadPlaceDetails( + PlaceRecommendation place, + ) async { + if (place.photoUrls.isNotEmpty || + place.googleCurrentOpeningHours != null || + place.googleRegularOpeningHours != null) { + return place; + } + + final updated = await _placesRepository.fetchPlace(place.id); + final value = _requireReady(); + emit( + PlaceViewState.ready( + value.copyWith( + places: _replacePlace(updated), + selectedPlaceId: updated.id, + ), + ), + ); + return updated; + } + Future toggleFavorite(PlaceRecommendation place) async { final value = _requireReady(); final updated = place.isFavorite @@ -336,6 +359,15 @@ class PlaceCubit extends Cubit { ]; } + Future _resolveLocation() async { + final coordinate = await _location.resolve().catchError((Object _) => null); + final value = state.placeState; + if (value == null || coordinate == null) { + return; + } + emit(PlaceViewState.ready(value.copyWith(userCoordinate: coordinate))); + } + PlaceState _requireReady() { final value = state.placeState; if (value == null) { diff --git a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.ast.gql.dart index 31dd7a7..2aed449 100644 --- a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.ast.gql.dart @@ -10,26 +10,138 @@ const AddFavoritePlace = _i1.OperationDefinitionNode( variableDefinitions: [ _i1.VariableDefinitionNode( variable: _i1.VariableNode(name: _i1.NameNode(value: 'placeId')), - type: _i1.NamedTypeNode(name: _i1.NameNode(value: 'ID'), isNonNull: true), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'addFavoritePlace'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'placeId'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'placeId')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'addFavoritePlace'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'placeId'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'placeId')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePlaceId'), + 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: 'latitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'longitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePrimaryType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleTypes'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleBusinessStatus'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRating'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleUserRatingCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRegularOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleCurrentOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrls'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'traits'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isFavorite'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'experiences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( name: _i1.NameNode(value: 'id'), alias: null, @@ -38,138 +150,23 @@ const AddFavoritePlace = _i1.OperationDefinitionNode( selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'googlePlaceId'), + name: _i1.NameNode(value: 'status'), alias: null, arguments: [], directives: [], selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'name'), + name: _i1.NameNode(value: 'createdAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), - _i1.FieldNode( - name: _i1.NameNode(value: 'latitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'longitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googlePrimaryType'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleTypes'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleBusinessStatus'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRating'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleUserRatingCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRegularOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleCurrentOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrls'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'traits'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isFavorite'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'experiences'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], + ]), ), - ), - ], - ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [AddFavoritePlace]); diff --git a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.data.gql.dart index 38c7f76..6ae8af9 100644 --- a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.data.gql.dart @@ -17,9 +17,9 @@ abstract class GAddFavoritePlaceData implements Built { GAddFavoritePlaceData._(); - factory GAddFavoritePlaceData([ - void Function(GAddFavoritePlaceDataBuilder b) updates, - ]) = _$GAddFavoritePlaceData; + factory GAddFavoritePlaceData( + [void Function(GAddFavoritePlaceDataBuilder b) updates]) = + _$GAddFavoritePlaceData; static void _initializeBuilder(GAddFavoritePlaceDataBuilder b) => b..G__typename = 'Mutation'; @@ -30,29 +30,31 @@ abstract class GAddFavoritePlaceData static Serializer get serializer => _$gAddFavoritePlaceDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GAddFavoritePlaceData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAddFavoritePlaceData.serializer, + this, + ) as Map); static GAddFavoritePlaceData? fromJson(Map json) => - _i1.serializers.deserializeWith(GAddFavoritePlaceData.serializer, json); + _i1.serializers.deserializeWith( + GAddFavoritePlaceData.serializer, + json, + ); } abstract class GAddFavoritePlaceData_addFavoritePlace implements - Built< - GAddFavoritePlaceData_addFavoritePlace, - GAddFavoritePlaceData_addFavoritePlaceBuilder - > { + Built { GAddFavoritePlaceData_addFavoritePlace._(); - factory GAddFavoritePlaceData_addFavoritePlace([ - void Function(GAddFavoritePlaceData_addFavoritePlaceBuilder b) updates, - ]) = _$GAddFavoritePlaceData_addFavoritePlace; + factory GAddFavoritePlaceData_addFavoritePlace( + [void Function(GAddFavoritePlaceData_addFavoritePlaceBuilder b) + updates]) = _$GAddFavoritePlaceData_addFavoritePlace; static void _initializeBuilder( - GAddFavoritePlaceData_addFavoritePlaceBuilder b, - ) => b..G__typename = 'Place'; + GAddFavoritePlaceData_addFavoritePlaceBuilder b) => + b..G__typename = 'Place'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -75,37 +77,33 @@ abstract class GAddFavoritePlaceData_addFavoritePlace static Serializer get serializer => _$gAddFavoritePlaceDataAddFavoritePlaceSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAddFavoritePlaceData_addFavoritePlace.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAddFavoritePlaceData_addFavoritePlace.serializer, + this, + ) as Map); static GAddFavoritePlaceData_addFavoritePlace? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GAddFavoritePlaceData_addFavoritePlace.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GAddFavoritePlaceData_addFavoritePlace.serializer, + json, + ); } abstract class GAddFavoritePlaceData_addFavoritePlace_experiences implements - Built< - GAddFavoritePlaceData_addFavoritePlace_experiences, - GAddFavoritePlaceData_addFavoritePlace_experiencesBuilder - > { + Built { GAddFavoritePlaceData_addFavoritePlace_experiences._(); - factory GAddFavoritePlaceData_addFavoritePlace_experiences([ - void Function(GAddFavoritePlaceData_addFavoritePlace_experiencesBuilder b) - updates, - ]) = _$GAddFavoritePlaceData_addFavoritePlace_experiences; + factory GAddFavoritePlaceData_addFavoritePlace_experiences( + [void Function( + GAddFavoritePlaceData_addFavoritePlace_experiencesBuilder b) + updates]) = _$GAddFavoritePlaceData_addFavoritePlace_experiences; static void _initializeBuilder( - GAddFavoritePlaceData_addFavoritePlace_experiencesBuilder b, - ) => b..G__typename = 'VoiceExperience'; + GAddFavoritePlaceData_addFavoritePlace_experiencesBuilder b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -113,20 +111,18 @@ abstract class GAddFavoritePlaceData_addFavoritePlace_experiences _i3.GVoiceExperienceStatus get status; String get createdAt; static Serializer - get serializer => - _$gAddFavoritePlaceDataAddFavoritePlaceExperiencesSerializer; + get serializer => + _$gAddFavoritePlaceDataAddFavoritePlaceExperiencesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAddFavoritePlaceData_addFavoritePlace_experiences.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAddFavoritePlaceData_addFavoritePlace_experiences.serializer, + this, + ) as Map); static GAddFavoritePlaceData_addFavoritePlace_experiences? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GAddFavoritePlaceData_addFavoritePlace_experiences.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GAddFavoritePlaceData_addFavoritePlace_experiences.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.req.gql.dart index ab0926f..82851d8 100644 --- a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.req.gql.dart @@ -20,15 +20,13 @@ part 'add_favorite_place.req.gql.g.dart'; abstract class GAddFavoritePlaceReq implements Built, - _i1.OperationRequest< - _i2.GAddFavoritePlaceData, - _i3.GAddFavoritePlaceVars - > { + _i1.OperationRequest<_i2.GAddFavoritePlaceData, + _i3.GAddFavoritePlaceVars> { GAddFavoritePlaceReq._(); - factory GAddFavoritePlaceReq([ - void Function(GAddFavoritePlaceReqBuilder b) updates, - ]) = _$GAddFavoritePlaceReq; + factory GAddFavoritePlaceReq( + [void Function(GAddFavoritePlaceReqBuilder b) updates]) = + _$GAddFavoritePlaceReq; static void _initializeBuilder(GAddFavoritePlaceReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GAddFavoritePlaceReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GAddFavoritePlaceReq _i2.GAddFavoritePlaceData? Function( _i2.GAddFavoritePlaceData?, _i2.GAddFavoritePlaceData?, - )? - get updateResult; + )? get updateResult; @override _i2.GAddFavoritePlaceData? get optimisticResponse; @override @@ -83,16 +80,20 @@ abstract class GAddFavoritePlaceReq @override _i1.OperationRequest<_i2.GAddFavoritePlaceData, _i3.GAddFavoritePlaceVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gAddFavoritePlaceReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GAddFavoritePlaceReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GAddFavoritePlaceReq.serializer, + this, + ) as Map); static GAddFavoritePlaceReq? fromJson(Map json) => - _i6.serializers.deserializeWith(GAddFavoritePlaceReq.serializer, json); + _i6.serializers.deserializeWith( + GAddFavoritePlaceReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.var.gql.dart index 5d55e2a..fbf045a 100644 --- a/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/add_favorite_place.var.gql.dart @@ -13,18 +13,22 @@ abstract class GAddFavoritePlaceVars implements Built { GAddFavoritePlaceVars._(); - factory GAddFavoritePlaceVars([ - void Function(GAddFavoritePlaceVarsBuilder b) updates, - ]) = _$GAddFavoritePlaceVars; + factory GAddFavoritePlaceVars( + [void Function(GAddFavoritePlaceVarsBuilder b) updates]) = + _$GAddFavoritePlaceVars; String get placeId; static Serializer get serializer => _$gAddFavoritePlaceVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GAddFavoritePlaceVars.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAddFavoritePlaceVars.serializer, + this, + ) as Map); static GAddFavoritePlaceVars? fromJson(Map json) => - _i1.serializers.deserializeWith(GAddFavoritePlaceVars.serializer, json); + _i1.serializers.deserializeWith( + GAddFavoritePlaceVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.ast.gql.dart index 854fe19..18dfe65 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.ast.gql.dart @@ -16,93 +16,87 @@ const AuthenticateTelegram = _i1.OperationDefinitionNode( ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'authenticateTelegram'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'authenticateTelegram'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( - name: _i1.NameNode(value: 'user'), + name: _i1.NameNode(value: 'id'), alias: null, arguments: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'telegramId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'username'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'firstName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'lastName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'languageCode'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isAdmin'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), + selectionSet: null, ), - ], - ), - ), - ], - ), + _i1.FieldNode( + name: _i1.NameNode(value: 'telegramId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'username'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'firstName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'languageCode'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isAdmin'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [AuthenticateTelegram]); diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.data.gql.dart index 6147c2a..21b0f65 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.data.gql.dart @@ -14,9 +14,9 @@ abstract class GAuthenticateTelegramData Built { GAuthenticateTelegramData._(); - factory GAuthenticateTelegramData([ - void Function(GAuthenticateTelegramDataBuilder b) updates, - ]) = _$GAuthenticateTelegramData; + factory GAuthenticateTelegramData( + [void Function(GAuthenticateTelegramDataBuilder b) updates]) = + _$GAuthenticateTelegramData; static void _initializeBuilder(GAuthenticateTelegramDataBuilder b) => b..G__typename = 'Mutation'; @@ -27,69 +27,66 @@ abstract class GAuthenticateTelegramData static Serializer get serializer => _$gAuthenticateTelegramDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GAuthenticateTelegramData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAuthenticateTelegramData.serializer, + this, + ) as Map); - static GAuthenticateTelegramData? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GAuthenticateTelegramData.serializer, json); + static GAuthenticateTelegramData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAuthenticateTelegramData.serializer, + json, + ); } abstract class GAuthenticateTelegramData_authenticateTelegram implements - Built< - GAuthenticateTelegramData_authenticateTelegram, - GAuthenticateTelegramData_authenticateTelegramBuilder - > { + Built { GAuthenticateTelegramData_authenticateTelegram._(); - factory GAuthenticateTelegramData_authenticateTelegram([ - void Function(GAuthenticateTelegramData_authenticateTelegramBuilder b) - updates, - ]) = _$GAuthenticateTelegramData_authenticateTelegram; + factory GAuthenticateTelegramData_authenticateTelegram( + [void Function(GAuthenticateTelegramData_authenticateTelegramBuilder b) + updates]) = _$GAuthenticateTelegramData_authenticateTelegram; static void _initializeBuilder( - GAuthenticateTelegramData_authenticateTelegramBuilder b, - ) => b..G__typename = 'AuthPayload'; + GAuthenticateTelegramData_authenticateTelegramBuilder b) => + b..G__typename = 'AuthPayload'; @BuiltValueField(wireName: '__typename') String get G__typename; GAuthenticateTelegramData_authenticateTelegram_user get user; static Serializer - get serializer => _$gAuthenticateTelegramDataAuthenticateTelegramSerializer; + get serializer => + _$gAuthenticateTelegramDataAuthenticateTelegramSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAuthenticateTelegramData_authenticateTelegram.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAuthenticateTelegramData_authenticateTelegram.serializer, + this, + ) as Map); static GAuthenticateTelegramData_authenticateTelegram? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GAuthenticateTelegramData_authenticateTelegram.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GAuthenticateTelegramData_authenticateTelegram.serializer, + json, + ); } abstract class GAuthenticateTelegramData_authenticateTelegram_user implements - Built< - GAuthenticateTelegramData_authenticateTelegram_user, - GAuthenticateTelegramData_authenticateTelegram_userBuilder - > { + Built { GAuthenticateTelegramData_authenticateTelegram_user._(); - factory GAuthenticateTelegramData_authenticateTelegram_user([ - void Function(GAuthenticateTelegramData_authenticateTelegram_userBuilder b) - updates, - ]) = _$GAuthenticateTelegramData_authenticateTelegram_user; + factory GAuthenticateTelegramData_authenticateTelegram_user( + [void Function( + GAuthenticateTelegramData_authenticateTelegram_userBuilder b) + updates]) = _$GAuthenticateTelegramData_authenticateTelegram_user; static void _initializeBuilder( - GAuthenticateTelegramData_authenticateTelegram_userBuilder b, - ) => b..G__typename = 'User'; + GAuthenticateTelegramData_authenticateTelegram_userBuilder b) => + b..G__typename = 'User'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -102,20 +99,18 @@ abstract class GAuthenticateTelegramData_authenticateTelegram_user String? get languageCode; bool get isAdmin; static Serializer - get serializer => - _$gAuthenticateTelegramDataAuthenticateTelegramUserSerializer; + get serializer => + _$gAuthenticateTelegramDataAuthenticateTelegramUserSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAuthenticateTelegramData_authenticateTelegram_user.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAuthenticateTelegramData_authenticateTelegram_user.serializer, + this, + ) as Map); static GAuthenticateTelegramData_authenticateTelegram_user? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GAuthenticateTelegramData_authenticateTelegram_user.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GAuthenticateTelegramData_authenticateTelegram_user.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.req.gql.dart index fb8b898..200fbea 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.req.gql.dart @@ -20,15 +20,13 @@ part 'authenticate_telegram.req.gql.g.dart'; abstract class GAuthenticateTelegramReq implements Built, - _i1.OperationRequest< - _i2.GAuthenticateTelegramData, - _i3.GAuthenticateTelegramVars - > { + _i1.OperationRequest<_i2.GAuthenticateTelegramData, + _i3.GAuthenticateTelegramVars> { GAuthenticateTelegramReq._(); - factory GAuthenticateTelegramReq([ - void Function(GAuthenticateTelegramReqBuilder b) updates, - ]) = _$GAuthenticateTelegramReq; + factory GAuthenticateTelegramReq( + [void Function(GAuthenticateTelegramReqBuilder b) updates]) = + _$GAuthenticateTelegramReq; static void _initializeBuilder(GAuthenticateTelegramReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GAuthenticateTelegramReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GAuthenticateTelegramReq _i2.GAuthenticateTelegramData? Function( _i2.GAuthenticateTelegramData?, _i2.GAuthenticateTelegramData?, - )? - get updateResult; + )? get updateResult; @override _i2.GAuthenticateTelegramData? get optimisticResponse; @override @@ -82,21 +79,22 @@ abstract class GAuthenticateTelegramReq data.toJson(); @override - _i1.OperationRequest< - _i2.GAuthenticateTelegramData, - _i3.GAuthenticateTelegramVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GAuthenticateTelegramData, + _i3.GAuthenticateTelegramVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gAuthenticateTelegramReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GAuthenticateTelegramReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GAuthenticateTelegramReq.serializer, + this, + ) as Map); - static GAuthenticateTelegramReq? fromJson(Map json) => _i6 - .serializers - .deserializeWith(GAuthenticateTelegramReq.serializer, json); + static GAuthenticateTelegramReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAuthenticateTelegramReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.var.gql.dart index 94e49d8..826eb6c 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram.var.gql.dart @@ -16,19 +16,22 @@ abstract class GAuthenticateTelegramVars Built { GAuthenticateTelegramVars._(); - factory GAuthenticateTelegramVars([ - void Function(GAuthenticateTelegramVarsBuilder b) updates, - ]) = _$GAuthenticateTelegramVars; + factory GAuthenticateTelegramVars( + [void Function(GAuthenticateTelegramVarsBuilder b) updates]) = + _$GAuthenticateTelegramVars; _i1.GAuthenticateTelegramInput get input; static Serializer get serializer => _$gAuthenticateTelegramVarsSerializer; - Map toJson() => - (_i2.serializers.serializeWith(GAuthenticateTelegramVars.serializer, this) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GAuthenticateTelegramVars.serializer, + this, + ) as Map); - static GAuthenticateTelegramVars? fromJson(Map json) => _i2 - .serializers - .deserializeWith(GAuthenticateTelegramVars.serializer, json); + static GAuthenticateTelegramVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GAuthenticateTelegramVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.ast.gql.dart index 4240380..12e1072 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.ast.gql.dart @@ -16,93 +16,87 @@ const AuthenticateTelegramLogin = _i1.OperationDefinitionNode( ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'authenticateTelegramLogin'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'authenticateTelegramLogin'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( - name: _i1.NameNode(value: 'user'), + name: _i1.NameNode(value: 'id'), alias: null, arguments: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'telegramId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'username'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'firstName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'lastName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'languageCode'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isAdmin'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), + selectionSet: null, ), - ], - ), - ), - ], - ), + _i1.FieldNode( + name: _i1.NameNode(value: 'telegramId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'username'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'firstName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'languageCode'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isAdmin'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [AuthenticateTelegramLogin]); diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.data.gql.dart index bcf1039..e716038 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.data.gql.dart @@ -11,15 +11,13 @@ part 'authenticate_telegram_login.data.gql.g.dart'; abstract class GAuthenticateTelegramLoginData implements - Built< - GAuthenticateTelegramLoginData, - GAuthenticateTelegramLoginDataBuilder - > { + Built { GAuthenticateTelegramLoginData._(); - factory GAuthenticateTelegramLoginData([ - void Function(GAuthenticateTelegramLoginDataBuilder b) updates, - ]) = _$GAuthenticateTelegramLoginData; + factory GAuthenticateTelegramLoginData( + [void Function(GAuthenticateTelegramLoginDataBuilder b) updates]) = + _$GAuthenticateTelegramLoginData; static void _initializeBuilder(GAuthenticateTelegramLoginDataBuilder b) => b..G__typename = 'Mutation'; @@ -27,16 +25,14 @@ abstract class GAuthenticateTelegramLoginData @BuiltValueField(wireName: '__typename') String get G__typename; GAuthenticateTelegramLoginData_authenticateTelegramLogin - get authenticateTelegramLogin; + get authenticateTelegramLogin; static Serializer get serializer => _$gAuthenticateTelegramLoginDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAuthenticateTelegramLoginData.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAuthenticateTelegramLoginData.serializer, + this, + ) as Map); static GAuthenticateTelegramLoginData? fromJson(Map json) => _i1.serializers.deserializeWith( @@ -47,63 +43,56 @@ abstract class GAuthenticateTelegramLoginData abstract class GAuthenticateTelegramLoginData_authenticateTelegramLogin implements - Built< - GAuthenticateTelegramLoginData_authenticateTelegramLogin, - GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder - > { + Built { GAuthenticateTelegramLoginData_authenticateTelegramLogin._(); - factory GAuthenticateTelegramLoginData_authenticateTelegramLogin([ - void Function( - GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder b, - ) - updates, - ]) = _$GAuthenticateTelegramLoginData_authenticateTelegramLogin; + factory GAuthenticateTelegramLoginData_authenticateTelegramLogin( + [void Function( + GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder b) + updates]) = _$GAuthenticateTelegramLoginData_authenticateTelegramLogin; static void _initializeBuilder( - GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder b, - ) => b..G__typename = 'AuthPayload'; + GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder b) => + b..G__typename = 'AuthPayload'; @BuiltValueField(wireName: '__typename') String get G__typename; GAuthenticateTelegramLoginData_authenticateTelegramLogin_user get user; static Serializer - get serializer => - _$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginSerializer; + get serializer => + _$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer, + this, + ) as Map); static GAuthenticateTelegramLoginData_authenticateTelegramLogin? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer, + json, + ); } abstract class GAuthenticateTelegramLoginData_authenticateTelegramLogin_user implements - Built< - GAuthenticateTelegramLoginData_authenticateTelegramLogin_user, - GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder - > { + Built { GAuthenticateTelegramLoginData_authenticateTelegramLogin_user._(); - factory GAuthenticateTelegramLoginData_authenticateTelegramLogin_user([ - void Function( - GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder b, - ) - updates, - ]) = _$GAuthenticateTelegramLoginData_authenticateTelegramLogin_user; + factory GAuthenticateTelegramLoginData_authenticateTelegramLogin_user( + [void Function( + GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder + b) + updates]) = + _$GAuthenticateTelegramLoginData_authenticateTelegramLogin_user; static void _initializeBuilder( - GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder b, - ) => b..G__typename = 'User'; + GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder + b) => + b..G__typename = 'User'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -116,22 +105,20 @@ abstract class GAuthenticateTelegramLoginData_authenticateTelegramLogin_user String? get languageCode; bool get isAdmin; static Serializer< - GAuthenticateTelegramLoginData_authenticateTelegramLogin_user - > - get serializer => - _$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginUserSerializer; + GAuthenticateTelegramLoginData_authenticateTelegramLogin_user> + get serializer => + _$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginUserSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GAuthenticateTelegramLoginData_authenticateTelegramLogin_user - .serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GAuthenticateTelegramLoginData_authenticateTelegramLogin_user + .serializer, + this, + ) as Map); static GAuthenticateTelegramLoginData_authenticateTelegramLogin_user? - fromJson(Map json) => _i1.serializers.deserializeWith( - GAuthenticateTelegramLoginData_authenticateTelegramLogin_user.serializer, - json, - ); + fromJson(Map json) => _i1.serializers.deserializeWith( + GAuthenticateTelegramLoginData_authenticateTelegramLogin_user + .serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.req.gql.dart index f661a3d..a040cc3 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.req.gql.dart @@ -19,19 +19,15 @@ part 'authenticate_telegram_login.req.gql.g.dart'; abstract class GAuthenticateTelegramLoginReq implements - Built< - GAuthenticateTelegramLoginReq, - GAuthenticateTelegramLoginReqBuilder - >, - _i1.OperationRequest< - _i2.GAuthenticateTelegramLoginData, - _i3.GAuthenticateTelegramLoginVars - > { + Built, + _i1.OperationRequest<_i2.GAuthenticateTelegramLoginData, + _i3.GAuthenticateTelegramLoginVars> { GAuthenticateTelegramLoginReq._(); - factory GAuthenticateTelegramLoginReq([ - void Function(GAuthenticateTelegramLoginReqBuilder b) updates, - ]) = _$GAuthenticateTelegramLoginReq; + factory GAuthenticateTelegramLoginReq( + [void Function(GAuthenticateTelegramLoginReqBuilder b) updates]) = + _$GAuthenticateTelegramLoginReq; static void _initializeBuilder(GAuthenticateTelegramLoginReqBuilder b) => b ..operation = _i4.Operation( @@ -46,10 +42,10 @@ abstract class GAuthenticateTelegramLoginReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -58,8 +54,7 @@ abstract class GAuthenticateTelegramLoginReq _i2.GAuthenticateTelegramLoginData? Function( _i2.GAuthenticateTelegramLoginData?, _i2.GAuthenticateTelegramLoginData?, - )? - get updateResult; + )? get updateResult; @override _i2.GAuthenticateTelegramLoginData? get optimisticResponse; @override @@ -85,22 +80,18 @@ abstract class GAuthenticateTelegramLoginReq data.toJson(); @override - _i1.OperationRequest< - _i2.GAuthenticateTelegramLoginData, - _i3.GAuthenticateTelegramLoginVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GAuthenticateTelegramLoginData, + _i3.GAuthenticateTelegramLoginVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gAuthenticateTelegramLoginReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith( - GAuthenticateTelegramLoginReq.serializer, - this, - ) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GAuthenticateTelegramLoginReq.serializer, + this, + ) as Map); static GAuthenticateTelegramLoginReq? fromJson(Map json) => _i6.serializers.deserializeWith( diff --git a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.var.gql.dart index e082112..89bf568 100644 --- a/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/authenticate_telegram_login.var.gql.dart @@ -13,26 +13,22 @@ part 'authenticate_telegram_login.var.gql.g.dart'; abstract class GAuthenticateTelegramLoginVars implements - Built< - GAuthenticateTelegramLoginVars, - GAuthenticateTelegramLoginVarsBuilder - > { + Built { GAuthenticateTelegramLoginVars._(); - factory GAuthenticateTelegramLoginVars([ - void Function(GAuthenticateTelegramLoginVarsBuilder b) updates, - ]) = _$GAuthenticateTelegramLoginVars; + factory GAuthenticateTelegramLoginVars( + [void Function(GAuthenticateTelegramLoginVarsBuilder b) updates]) = + _$GAuthenticateTelegramLoginVars; _i1.GAuthenticateTelegramLoginInput get input; static Serializer get serializer => _$gAuthenticateTelegramLoginVarsSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GAuthenticateTelegramLoginVars.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GAuthenticateTelegramLoginVars.serializer, + this, + ) as Map); static GAuthenticateTelegramLoginVars? fromJson(Map json) => _i2.serializers.deserializeWith( diff --git a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.ast.gql.dart index 9c7d779..0791bb1 100644 --- a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.ast.gql.dart @@ -16,100 +16,94 @@ const CompleteTelegramBotLogin = _i1.OperationDefinitionNode( ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'completeTelegramBotLogin'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'token'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'token')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'completeTelegramBotLogin'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'token'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'token')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'sessionToken'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( - name: _i1.NameNode(value: 'sessionToken'), + name: _i1.NameNode(value: 'id'), alias: null, arguments: [], directives: [], selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'user'), + name: _i1.NameNode(value: 'telegramId'), alias: null, arguments: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'telegramId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'username'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'firstName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'lastName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'languageCode'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isAdmin'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), + selectionSet: null, ), - ], + _i1.FieldNode( + name: _i1.NameNode(value: 'username'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'firstName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'languageCode'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isAdmin'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), ), - ), - ], - ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [CompleteTelegramBotLogin]); diff --git a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.data.gql.dart index afb9df1..4e65362 100644 --- a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.data.gql.dart @@ -11,15 +11,13 @@ part 'complete_telegram_bot_login.data.gql.g.dart'; abstract class GCompleteTelegramBotLoginData implements - Built< - GCompleteTelegramBotLoginData, - GCompleteTelegramBotLoginDataBuilder - > { + Built { GCompleteTelegramBotLoginData._(); - factory GCompleteTelegramBotLoginData([ - void Function(GCompleteTelegramBotLoginDataBuilder b) updates, - ]) = _$GCompleteTelegramBotLoginData; + factory GCompleteTelegramBotLoginData( + [void Function(GCompleteTelegramBotLoginDataBuilder b) updates]) = + _$GCompleteTelegramBotLoginData; static void _initializeBuilder(GCompleteTelegramBotLoginDataBuilder b) => b..G__typename = 'Mutation'; @@ -27,16 +25,14 @@ abstract class GCompleteTelegramBotLoginData @BuiltValueField(wireName: '__typename') String get G__typename; GCompleteTelegramBotLoginData_completeTelegramBotLogin - get completeTelegramBotLogin; + get completeTelegramBotLogin; static Serializer get serializer => _$gCompleteTelegramBotLoginDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GCompleteTelegramBotLoginData.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GCompleteTelegramBotLoginData.serializer, + this, + ) as Map); static GCompleteTelegramBotLoginData? fromJson(Map json) => _i1.serializers.deserializeWith( @@ -47,64 +43,56 @@ abstract class GCompleteTelegramBotLoginData abstract class GCompleteTelegramBotLoginData_completeTelegramBotLogin implements - Built< - GCompleteTelegramBotLoginData_completeTelegramBotLogin, - GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder - > { + Built { GCompleteTelegramBotLoginData_completeTelegramBotLogin._(); - factory GCompleteTelegramBotLoginData_completeTelegramBotLogin([ - void Function( - GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder b, - ) - updates, - ]) = _$GCompleteTelegramBotLoginData_completeTelegramBotLogin; + factory GCompleteTelegramBotLoginData_completeTelegramBotLogin( + [void Function( + GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder b) + updates]) = _$GCompleteTelegramBotLoginData_completeTelegramBotLogin; static void _initializeBuilder( - GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder b, - ) => b..G__typename = 'TelegramBotLoginSession'; + GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder b) => + b..G__typename = 'TelegramBotLoginSession'; @BuiltValueField(wireName: '__typename') String get G__typename; String get sessionToken; GCompleteTelegramBotLoginData_completeTelegramBotLogin_user get user; static Serializer - get serializer => - _$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginSerializer; + get serializer => + _$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer, + this, + ) as Map); static GCompleteTelegramBotLoginData_completeTelegramBotLogin? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer, + json, + ); } abstract class GCompleteTelegramBotLoginData_completeTelegramBotLogin_user implements - Built< - GCompleteTelegramBotLoginData_completeTelegramBotLogin_user, - GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder - > { + Built { GCompleteTelegramBotLoginData_completeTelegramBotLogin_user._(); - factory GCompleteTelegramBotLoginData_completeTelegramBotLogin_user([ - void Function( - GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder b, - ) - updates, - ]) = _$GCompleteTelegramBotLoginData_completeTelegramBotLogin_user; + factory GCompleteTelegramBotLoginData_completeTelegramBotLogin_user( + [void Function( + GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder + b) + updates]) = _$GCompleteTelegramBotLoginData_completeTelegramBotLogin_user; static void _initializeBuilder( - GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder b, - ) => b..G__typename = 'User'; + GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder + b) => + b..G__typename = 'User'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -117,21 +105,18 @@ abstract class GCompleteTelegramBotLoginData_completeTelegramBotLogin_user String? get languageCode; bool get isAdmin; static Serializer - get serializer => - _$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginUserSerializer; + get serializer => + _$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginUserSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GCompleteTelegramBotLoginData_completeTelegramBotLogin_user - .serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer, + this, + ) as Map); static GCompleteTelegramBotLoginData_completeTelegramBotLogin_user? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.req.gql.dart index 7e15dda..150983b 100644 --- a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.req.gql.dart @@ -19,19 +19,15 @@ part 'complete_telegram_bot_login.req.gql.g.dart'; abstract class GCompleteTelegramBotLoginReq implements - Built< - GCompleteTelegramBotLoginReq, - GCompleteTelegramBotLoginReqBuilder - >, - _i1.OperationRequest< - _i2.GCompleteTelegramBotLoginData, - _i3.GCompleteTelegramBotLoginVars - > { + Built, + _i1.OperationRequest<_i2.GCompleteTelegramBotLoginData, + _i3.GCompleteTelegramBotLoginVars> { GCompleteTelegramBotLoginReq._(); - factory GCompleteTelegramBotLoginReq([ - void Function(GCompleteTelegramBotLoginReqBuilder b) updates, - ]) = _$GCompleteTelegramBotLoginReq; + factory GCompleteTelegramBotLoginReq( + [void Function(GCompleteTelegramBotLoginReqBuilder b) updates]) = + _$GCompleteTelegramBotLoginReq; static void _initializeBuilder(GCompleteTelegramBotLoginReqBuilder b) => b ..operation = _i4.Operation( @@ -46,10 +42,10 @@ abstract class GCompleteTelegramBotLoginReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -58,8 +54,7 @@ abstract class GCompleteTelegramBotLoginReq _i2.GCompleteTelegramBotLoginData? Function( _i2.GCompleteTelegramBotLoginData?, _i2.GCompleteTelegramBotLoginData?, - )? - get updateResult; + )? get updateResult; @override _i2.GCompleteTelegramBotLoginData? get optimisticResponse; @override @@ -85,22 +80,18 @@ abstract class GCompleteTelegramBotLoginReq data.toJson(); @override - _i1.OperationRequest< - _i2.GCompleteTelegramBotLoginData, - _i3.GCompleteTelegramBotLoginVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GCompleteTelegramBotLoginData, + _i3.GCompleteTelegramBotLoginVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gCompleteTelegramBotLoginReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith( - GCompleteTelegramBotLoginReq.serializer, - this, - ) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GCompleteTelegramBotLoginReq.serializer, + this, + ) as Map); static GCompleteTelegramBotLoginReq? fromJson(Map json) => _i6.serializers.deserializeWith( diff --git a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.var.gql.dart index 186a60d..b0e56f4 100644 --- a/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/complete_telegram_bot_login.var.gql.dart @@ -11,26 +11,22 @@ part 'complete_telegram_bot_login.var.gql.g.dart'; abstract class GCompleteTelegramBotLoginVars implements - Built< - GCompleteTelegramBotLoginVars, - GCompleteTelegramBotLoginVarsBuilder - > { + Built { GCompleteTelegramBotLoginVars._(); - factory GCompleteTelegramBotLoginVars([ - void Function(GCompleteTelegramBotLoginVarsBuilder b) updates, - ]) = _$GCompleteTelegramBotLoginVars; + factory GCompleteTelegramBotLoginVars( + [void Function(GCompleteTelegramBotLoginVarsBuilder b) updates]) = + _$GCompleteTelegramBotLoginVars; String get token; static Serializer get serializer => _$gCompleteTelegramBotLoginVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GCompleteTelegramBotLoginVars.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GCompleteTelegramBotLoginVars.serializer, + this, + ) as Map); static GCompleteTelegramBotLoginVars? fromJson(Map json) => _i1.serializers.deserializeWith( diff --git a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.ast.gql.dart index 7fd9a4d..d24c030 100644 --- a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.ast.gql.dart @@ -16,34 +16,30 @@ const CreateVoiceExperience = _i1.OperationDefinitionNode( ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'createVoiceExperience'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], - ), + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'createVoiceExperience'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [CreateVoiceExperience]); diff --git a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.data.gql.dart index efed521..3f1bb11 100644 --- a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.data.gql.dart @@ -14,9 +14,9 @@ abstract class GCreateVoiceExperienceData Built { GCreateVoiceExperienceData._(); - factory GCreateVoiceExperienceData([ - void Function(GCreateVoiceExperienceDataBuilder b) updates, - ]) = _$GCreateVoiceExperienceData; + factory GCreateVoiceExperienceData( + [void Function(GCreateVoiceExperienceDataBuilder b) updates]) = + _$GCreateVoiceExperienceData; static void _initializeBuilder(GCreateVoiceExperienceDataBuilder b) => b..G__typename = 'Mutation'; @@ -27,52 +27,48 @@ abstract class GCreateVoiceExperienceData static Serializer get serializer => _$gCreateVoiceExperienceDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GCreateVoiceExperienceData.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GCreateVoiceExperienceData.serializer, + this, + ) as Map); - static GCreateVoiceExperienceData? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GCreateVoiceExperienceData.serializer, json); + static GCreateVoiceExperienceData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateVoiceExperienceData.serializer, + json, + ); } abstract class GCreateVoiceExperienceData_createVoiceExperience implements - Built< - GCreateVoiceExperienceData_createVoiceExperience, - GCreateVoiceExperienceData_createVoiceExperienceBuilder - > { + Built { GCreateVoiceExperienceData_createVoiceExperience._(); - factory GCreateVoiceExperienceData_createVoiceExperience([ - void Function(GCreateVoiceExperienceData_createVoiceExperienceBuilder b) - updates, - ]) = _$GCreateVoiceExperienceData_createVoiceExperience; + factory GCreateVoiceExperienceData_createVoiceExperience( + [void Function(GCreateVoiceExperienceData_createVoiceExperienceBuilder b) + updates]) = _$GCreateVoiceExperienceData_createVoiceExperience; static void _initializeBuilder( - GCreateVoiceExperienceData_createVoiceExperienceBuilder b, - ) => b..G__typename = 'VoiceExperience'; + GCreateVoiceExperienceData_createVoiceExperienceBuilder b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; String get id; static Serializer - get serializer => _$gCreateVoiceExperienceDataCreateVoiceExperienceSerializer; + get serializer => + _$gCreateVoiceExperienceDataCreateVoiceExperienceSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GCreateVoiceExperienceData_createVoiceExperience.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GCreateVoiceExperienceData_createVoiceExperience.serializer, + this, + ) as Map); static GCreateVoiceExperienceData_createVoiceExperience? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GCreateVoiceExperienceData_createVoiceExperience.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GCreateVoiceExperienceData_createVoiceExperience.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.req.gql.dart index a99a573..ba4a88b 100644 --- a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.req.gql.dart @@ -20,15 +20,13 @@ part 'create_voice_experience.req.gql.g.dart'; abstract class GCreateVoiceExperienceReq implements Built, - _i1.OperationRequest< - _i2.GCreateVoiceExperienceData, - _i3.GCreateVoiceExperienceVars - > { + _i1.OperationRequest<_i2.GCreateVoiceExperienceData, + _i3.GCreateVoiceExperienceVars> { GCreateVoiceExperienceReq._(); - factory GCreateVoiceExperienceReq([ - void Function(GCreateVoiceExperienceReqBuilder b) updates, - ]) = _$GCreateVoiceExperienceReq; + factory GCreateVoiceExperienceReq( + [void Function(GCreateVoiceExperienceReqBuilder b) updates]) = + _$GCreateVoiceExperienceReq; static void _initializeBuilder(GCreateVoiceExperienceReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GCreateVoiceExperienceReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GCreateVoiceExperienceReq _i2.GCreateVoiceExperienceData? Function( _i2.GCreateVoiceExperienceData?, _i2.GCreateVoiceExperienceData?, - )? - get updateResult; + )? get updateResult; @override _i2.GCreateVoiceExperienceData? get optimisticResponse; @override @@ -82,21 +79,22 @@ abstract class GCreateVoiceExperienceReq data.toJson(); @override - _i1.OperationRequest< - _i2.GCreateVoiceExperienceData, - _i3.GCreateVoiceExperienceVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GCreateVoiceExperienceData, + _i3.GCreateVoiceExperienceVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gCreateVoiceExperienceReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GCreateVoiceExperienceReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GCreateVoiceExperienceReq.serializer, + this, + ) as Map); - static GCreateVoiceExperienceReq? fromJson(Map json) => _i6 - .serializers - .deserializeWith(GCreateVoiceExperienceReq.serializer, json); + static GCreateVoiceExperienceReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCreateVoiceExperienceReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.var.gql.dart index d41941b..6ff64be 100644 --- a/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/create_voice_experience.var.gql.dart @@ -16,22 +16,22 @@ abstract class GCreateVoiceExperienceVars Built { GCreateVoiceExperienceVars._(); - factory GCreateVoiceExperienceVars([ - void Function(GCreateVoiceExperienceVarsBuilder b) updates, - ]) = _$GCreateVoiceExperienceVars; + factory GCreateVoiceExperienceVars( + [void Function(GCreateVoiceExperienceVarsBuilder b) updates]) = + _$GCreateVoiceExperienceVars; _i1.GCreateVoiceExperienceInput get input; static Serializer get serializer => _$gCreateVoiceExperienceVarsSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GCreateVoiceExperienceVars.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GCreateVoiceExperienceVars.serializer, + this, + ) as Map); - static GCreateVoiceExperienceVars? fromJson(Map json) => _i2 - .serializers - .deserializeWith(GCreateVoiceExperienceVars.serializer, json); + static GCreateVoiceExperienceVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCreateVoiceExperienceVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/favorite_places.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/favorite_places.ast.gql.dart index 49c3d7c..fa1df96 100644 --- a/lib/features/mapflow/data/graphql/__generated__/favorite_places.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/favorite_places.ast.gql.dart @@ -9,15 +9,124 @@ const FavoritePlaces = _i1.OperationDefinitionNode( name: _i1.NameNode(value: 'FavoritePlaces'), variableDefinitions: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'favoritePlaces'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'favoritePlaces'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePlaceId'), + 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: 'latitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'longitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePrimaryType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleTypes'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleBusinessStatus'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRating'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleUserRatingCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRegularOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleCurrentOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrls'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'traits'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isFavorite'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'experiences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( name: _i1.NameNode(value: 'id'), alias: null, @@ -26,138 +135,23 @@ const FavoritePlaces = _i1.OperationDefinitionNode( selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'googlePlaceId'), + name: _i1.NameNode(value: 'status'), alias: null, arguments: [], directives: [], selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'name'), + name: _i1.NameNode(value: 'createdAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), - _i1.FieldNode( - name: _i1.NameNode(value: 'latitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'longitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googlePrimaryType'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleTypes'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleBusinessStatus'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRating'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleUserRatingCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRegularOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleCurrentOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrls'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'traits'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isFavorite'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'experiences'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], + ]), ), - ), - ], - ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [FavoritePlaces]); diff --git a/lib/features/mapflow/data/graphql/__generated__/favorite_places.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/favorite_places.data.gql.dart index 1fb7bac..2c41bed 100644 --- a/lib/features/mapflow/data/graphql/__generated__/favorite_places.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/favorite_places.data.gql.dart @@ -17,9 +17,9 @@ abstract class GFavoritePlacesData implements Built { GFavoritePlacesData._(); - factory GFavoritePlacesData([ - void Function(GFavoritePlacesDataBuilder b) updates, - ]) = _$GFavoritePlacesData; + factory GFavoritePlacesData( + [void Function(GFavoritePlacesDataBuilder b) updates]) = + _$GFavoritePlacesData; static void _initializeBuilder(GFavoritePlacesDataBuilder b) => b..G__typename = 'Query'; @@ -30,25 +30,27 @@ abstract class GFavoritePlacesData static Serializer get serializer => _$gFavoritePlacesDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GFavoritePlacesData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GFavoritePlacesData.serializer, + this, + ) as Map); static GFavoritePlacesData? fromJson(Map json) => - _i1.serializers.deserializeWith(GFavoritePlacesData.serializer, json); + _i1.serializers.deserializeWith( + GFavoritePlacesData.serializer, + json, + ); } abstract class GFavoritePlacesData_favoritePlaces implements - Built< - GFavoritePlacesData_favoritePlaces, - GFavoritePlacesData_favoritePlacesBuilder - > { + Built { GFavoritePlacesData_favoritePlaces._(); - factory GFavoritePlacesData_favoritePlaces([ - void Function(GFavoritePlacesData_favoritePlacesBuilder b) updates, - ]) = _$GFavoritePlacesData_favoritePlaces; + factory GFavoritePlacesData_favoritePlaces( + [void Function(GFavoritePlacesData_favoritePlacesBuilder b) + updates]) = _$GFavoritePlacesData_favoritePlaces; static void _initializeBuilder(GFavoritePlacesData_favoritePlacesBuilder b) => b..G__typename = 'Place'; @@ -74,37 +76,32 @@ abstract class GFavoritePlacesData_favoritePlaces static Serializer get serializer => _$gFavoritePlacesDataFavoritePlacesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GFavoritePlacesData_favoritePlaces.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GFavoritePlacesData_favoritePlaces.serializer, + this, + ) as Map); static GFavoritePlacesData_favoritePlaces? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GFavoritePlacesData_favoritePlaces.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GFavoritePlacesData_favoritePlaces.serializer, + json, + ); } abstract class GFavoritePlacesData_favoritePlaces_experiences implements - Built< - GFavoritePlacesData_favoritePlaces_experiences, - GFavoritePlacesData_favoritePlaces_experiencesBuilder - > { + Built { GFavoritePlacesData_favoritePlaces_experiences._(); - factory GFavoritePlacesData_favoritePlaces_experiences([ - void Function(GFavoritePlacesData_favoritePlaces_experiencesBuilder b) - updates, - ]) = _$GFavoritePlacesData_favoritePlaces_experiences; + factory GFavoritePlacesData_favoritePlaces_experiences( + [void Function(GFavoritePlacesData_favoritePlaces_experiencesBuilder b) + updates]) = _$GFavoritePlacesData_favoritePlaces_experiences; static void _initializeBuilder( - GFavoritePlacesData_favoritePlaces_experiencesBuilder b, - ) => b..G__typename = 'VoiceExperience'; + GFavoritePlacesData_favoritePlaces_experiencesBuilder b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -112,19 +109,18 @@ abstract class GFavoritePlacesData_favoritePlaces_experiences _i3.GVoiceExperienceStatus get status; String get createdAt; static Serializer - get serializer => _$gFavoritePlacesDataFavoritePlacesExperiencesSerializer; + get serializer => + _$gFavoritePlacesDataFavoritePlacesExperiencesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GFavoritePlacesData_favoritePlaces_experiences.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GFavoritePlacesData_favoritePlaces_experiences.serializer, + this, + ) as Map); static GFavoritePlacesData_favoritePlaces_experiences? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GFavoritePlacesData_favoritePlaces_experiences.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GFavoritePlacesData_favoritePlaces_experiences.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/favorite_places.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/favorite_places.req.gql.dart index a24b553..1e5bf77 100644 --- a/lib/features/mapflow/data/graphql/__generated__/favorite_places.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/favorite_places.req.gql.dart @@ -23,9 +23,9 @@ abstract class GFavoritePlacesReq _i1.OperationRequest<_i2.GFavoritePlacesData, _i3.GFavoritePlacesVars> { GFavoritePlacesReq._(); - factory GFavoritePlacesReq([ - void Function(GFavoritePlacesReqBuilder b) updates, - ]) = _$GFavoritePlacesReq; + factory GFavoritePlacesReq( + [void Function(GFavoritePlacesReqBuilder b) updates]) = + _$GFavoritePlacesReq; static void _initializeBuilder(GFavoritePlacesReqBuilder b) => b ..operation = _i4.Operation( @@ -40,10 +40,10 @@ abstract class GFavoritePlacesReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -52,8 +52,7 @@ abstract class GFavoritePlacesReq _i2.GFavoritePlacesData? Function( _i2.GFavoritePlacesData?, _i2.GFavoritePlacesData?, - )? - get updateResult; + )? get updateResult; @override _i2.GFavoritePlacesData? get optimisticResponse; @override @@ -80,16 +79,20 @@ abstract class GFavoritePlacesReq @override _i1.OperationRequest<_i2.GFavoritePlacesData, _i3.GFavoritePlacesVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gFavoritePlacesReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GFavoritePlacesReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GFavoritePlacesReq.serializer, + this, + ) as Map); static GFavoritePlacesReq? fromJson(Map json) => - _i6.serializers.deserializeWith(GFavoritePlacesReq.serializer, json); + _i6.serializers.deserializeWith( + GFavoritePlacesReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/favorite_places.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/favorite_places.var.gql.dart index f784772..e471c15 100644 --- a/lib/features/mapflow/data/graphql/__generated__/favorite_places.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/favorite_places.var.gql.dart @@ -13,17 +13,21 @@ abstract class GFavoritePlacesVars implements Built { GFavoritePlacesVars._(); - factory GFavoritePlacesVars([ - void Function(GFavoritePlacesVarsBuilder b) updates, - ]) = _$GFavoritePlacesVars; + factory GFavoritePlacesVars( + [void Function(GFavoritePlacesVarsBuilder b) updates]) = + _$GFavoritePlacesVars; static Serializer get serializer => _$gFavoritePlacesVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GFavoritePlacesVars.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GFavoritePlacesVars.serializer, + this, + ) as Map); static GFavoritePlacesVars? fromJson(Map json) => - _i1.serializers.deserializeWith(GFavoritePlacesVars.serializer, json); + _i1.serializers.deserializeWith( + GFavoritePlacesVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/me.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/me.ast.gql.dart index 7efd590..385085b 100644 --- a/lib/features/mapflow/data/graphql/__generated__/me.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/me.ast.gql.dart @@ -9,75 +9,71 @@ const Me = _i1.OperationDefinitionNode( name: _i1.NameNode(value: 'Me'), variableDefinitions: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'me'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'telegramId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'username'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'firstName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'lastName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'languageCode'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isAdmin'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'me'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, ), - ), - ], - ), + _i1.FieldNode( + name: _i1.NameNode(value: 'telegramId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'username'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'firstName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'languageCode'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isAdmin'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [Me]); diff --git a/lib/features/mapflow/data/graphql/__generated__/me.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/me.data.gql.dart index 50991d4..35d9791 100644 --- a/lib/features/mapflow/data/graphql/__generated__/me.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/me.data.gql.dart @@ -21,12 +21,16 @@ abstract class GMeData implements Built { GMeData_me get me; static Serializer get serializer => _$gMeDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GMeData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GMeData.serializer, + this, + ) as Map); static GMeData? fromJson(Map json) => - _i1.serializers.deserializeWith(GMeData.serializer, json); + _i1.serializers.deserializeWith( + GMeData.serializer, + json, + ); } abstract class GMeData_me implements Built { @@ -50,10 +54,14 @@ abstract class GMeData_me implements Built { bool get isAdmin; static Serializer get serializer => _$gMeDataMeSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GMeData_me.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GMeData_me.serializer, + this, + ) as Map); static GMeData_me? fromJson(Map json) => - _i1.serializers.deserializeWith(GMeData_me.serializer, json); + _i1.serializers.deserializeWith( + GMeData_me.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/me.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/me.req.gql.dart index 63b31a2..1cc1a8e 100644 --- a/lib/features/mapflow/data/graphql/__generated__/me.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/me.req.gql.dart @@ -26,7 +26,10 @@ abstract class GMeReq factory GMeReq([void Function(GMeReqBuilder b) updates]) = _$GMeReq; static void _initializeBuilder(GMeReqBuilder b) => b - ..operation = _i4.Operation(document: _i5.document, operationName: 'Me') + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'Me', + ) ..executeOnListen = true; @override @@ -35,16 +38,19 @@ abstract class GMeReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @override @BuiltValueField(serialize: false) - _i2.GMeData? Function(_i2.GMeData?, _i2.GMeData?)? get updateResult; + _i2.GMeData? Function( + _i2.GMeData?, + _i2.GMeData?, + )? get updateResult; @override _i2.GMeData? get optimisticResponse; @override @@ -70,15 +76,19 @@ abstract class GMeReq @override _i1.OperationRequest<_i2.GMeData, _i3.GMeVars> transformOperation( - _i4.Operation Function(_i4.Operation) transform, - ) => this.rebuild((b) => b..operation = transform(operation)); + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gMeReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GMeReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GMeReq.serializer, + this, + ) as Map); static GMeReq? fromJson(Map json) => - _i6.serializers.deserializeWith(GMeReq.serializer, json); + _i6.serializers.deserializeWith( + GMeReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/me.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/me.var.gql.dart index c5271b4..f17755e 100644 --- a/lib/features/mapflow/data/graphql/__generated__/me.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/me.var.gql.dart @@ -16,10 +16,14 @@ abstract class GMeVars implements Built { static Serializer get serializer => _$gMeVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GMeVars.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GMeVars.serializer, + this, + ) as Map); static GMeVars? fromJson(Map json) => - _i1.serializers.deserializeWith(GMeVars.serializer, json); + _i1.serializers.deserializeWith( + GMeVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/nearby_places.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/nearby_places.ast.gql.dart index c4f8669..bc662ae 100644 --- a/lib/features/mapflow/data/graphql/__generated__/nearby_places.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/nearby_places.ast.gql.dart @@ -16,23 +16,132 @@ const NearbyPlaces = _i1.OperationDefinitionNode( ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'nearbyPlaces'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'nearbyPlaces'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePlaceId'), + 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: 'latitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'longitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePrimaryType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleTypes'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleBusinessStatus'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRating'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleUserRatingCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRegularOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleCurrentOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrls'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'traits'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isFavorite'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'experiences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( name: _i1.NameNode(value: 'id'), alias: null, @@ -41,138 +150,23 @@ const NearbyPlaces = _i1.OperationDefinitionNode( selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'googlePlaceId'), + name: _i1.NameNode(value: 'status'), alias: null, arguments: [], directives: [], selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'name'), + name: _i1.NameNode(value: 'createdAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), - _i1.FieldNode( - name: _i1.NameNode(value: 'latitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'longitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googlePrimaryType'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleTypes'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleBusinessStatus'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRating'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleUserRatingCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRegularOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleCurrentOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrls'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'traits'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isFavorite'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'experiences'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], + ]), ), - ), - ], - ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [NearbyPlaces]); diff --git a/lib/features/mapflow/data/graphql/__generated__/nearby_places.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/nearby_places.data.gql.dart index 3652ce8..c30725f 100644 --- a/lib/features/mapflow/data/graphql/__generated__/nearby_places.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/nearby_places.data.gql.dart @@ -17,9 +17,9 @@ abstract class GNearbyPlacesData implements Built { GNearbyPlacesData._(); - factory GNearbyPlacesData([ - void Function(GNearbyPlacesDataBuilder b) updates, - ]) = _$GNearbyPlacesData; + factory GNearbyPlacesData( + [void Function(GNearbyPlacesDataBuilder b) updates]) = + _$GNearbyPlacesData; static void _initializeBuilder(GNearbyPlacesDataBuilder b) => b..G__typename = 'Query'; @@ -30,25 +30,27 @@ abstract class GNearbyPlacesData static Serializer get serializer => _$gNearbyPlacesDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GNearbyPlacesData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GNearbyPlacesData.serializer, + this, + ) as Map); static GNearbyPlacesData? fromJson(Map json) => - _i1.serializers.deserializeWith(GNearbyPlacesData.serializer, json); + _i1.serializers.deserializeWith( + GNearbyPlacesData.serializer, + json, + ); } abstract class GNearbyPlacesData_nearbyPlaces implements - Built< - GNearbyPlacesData_nearbyPlaces, - GNearbyPlacesData_nearbyPlacesBuilder - > { + Built { GNearbyPlacesData_nearbyPlaces._(); - factory GNearbyPlacesData_nearbyPlaces([ - void Function(GNearbyPlacesData_nearbyPlacesBuilder b) updates, - ]) = _$GNearbyPlacesData_nearbyPlaces; + factory GNearbyPlacesData_nearbyPlaces( + [void Function(GNearbyPlacesData_nearbyPlacesBuilder b) updates]) = + _$GNearbyPlacesData_nearbyPlaces; static void _initializeBuilder(GNearbyPlacesData_nearbyPlacesBuilder b) => b..G__typename = 'Place'; @@ -74,12 +76,10 @@ abstract class GNearbyPlacesData_nearbyPlaces static Serializer get serializer => _$gNearbyPlacesDataNearbyPlacesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GNearbyPlacesData_nearbyPlaces.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GNearbyPlacesData_nearbyPlaces.serializer, + this, + ) as Map); static GNearbyPlacesData_nearbyPlaces? fromJson(Map json) => _i1.serializers.deserializeWith( @@ -90,19 +90,17 @@ abstract class GNearbyPlacesData_nearbyPlaces abstract class GNearbyPlacesData_nearbyPlaces_experiences implements - Built< - GNearbyPlacesData_nearbyPlaces_experiences, - GNearbyPlacesData_nearbyPlaces_experiencesBuilder - > { + Built { GNearbyPlacesData_nearbyPlaces_experiences._(); - factory GNearbyPlacesData_nearbyPlaces_experiences([ - void Function(GNearbyPlacesData_nearbyPlaces_experiencesBuilder b) updates, - ]) = _$GNearbyPlacesData_nearbyPlaces_experiences; + factory GNearbyPlacesData_nearbyPlaces_experiences( + [void Function(GNearbyPlacesData_nearbyPlaces_experiencesBuilder b) + updates]) = _$GNearbyPlacesData_nearbyPlaces_experiences; static void _initializeBuilder( - GNearbyPlacesData_nearbyPlaces_experiencesBuilder b, - ) => b..G__typename = 'VoiceExperience'; + GNearbyPlacesData_nearbyPlaces_experiencesBuilder b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -110,19 +108,17 @@ abstract class GNearbyPlacesData_nearbyPlaces_experiences _i3.GVoiceExperienceStatus get status; String get createdAt; static Serializer - get serializer => _$gNearbyPlacesDataNearbyPlacesExperiencesSerializer; + get serializer => _$gNearbyPlacesDataNearbyPlacesExperiencesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GNearbyPlacesData_nearbyPlaces_experiences.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GNearbyPlacesData_nearbyPlaces_experiences.serializer, + this, + ) as Map); static GNearbyPlacesData_nearbyPlaces_experiences? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GNearbyPlacesData_nearbyPlaces_experiences.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GNearbyPlacesData_nearbyPlaces_experiences.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/nearby_places.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/nearby_places.req.gql.dart index 06a8362..07fa92d 100644 --- a/lib/features/mapflow/data/graphql/__generated__/nearby_places.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/nearby_places.req.gql.dart @@ -39,10 +39,10 @@ abstract class GNearbyPlacesReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -51,8 +51,7 @@ abstract class GNearbyPlacesReq _i2.GNearbyPlacesData? Function( _i2.GNearbyPlacesData?, _i2.GNearbyPlacesData?, - )? - get updateResult; + )? get updateResult; @override _i2.GNearbyPlacesData? get optimisticResponse; @override @@ -78,16 +77,20 @@ abstract class GNearbyPlacesReq @override _i1.OperationRequest<_i2.GNearbyPlacesData, _i3.GNearbyPlacesVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gNearbyPlacesReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GNearbyPlacesReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GNearbyPlacesReq.serializer, + this, + ) as Map); static GNearbyPlacesReq? fromJson(Map json) => - _i6.serializers.deserializeWith(GNearbyPlacesReq.serializer, json); + _i6.serializers.deserializeWith( + GNearbyPlacesReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/nearby_places.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/nearby_places.var.gql.dart index 249bf3b..b091190 100644 --- a/lib/features/mapflow/data/graphql/__generated__/nearby_places.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/nearby_places.var.gql.dart @@ -15,18 +15,22 @@ abstract class GNearbyPlacesVars implements Built { GNearbyPlacesVars._(); - factory GNearbyPlacesVars([ - void Function(GNearbyPlacesVarsBuilder b) updates, - ]) = _$GNearbyPlacesVars; + factory GNearbyPlacesVars( + [void Function(GNearbyPlacesVarsBuilder b) updates]) = + _$GNearbyPlacesVars; _i1.GNearbyPlacesInput get input; static Serializer get serializer => _$gNearbyPlacesVarsSerializer; - Map toJson() => - (_i2.serializers.serializeWith(GNearbyPlacesVars.serializer, this) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GNearbyPlacesVars.serializer, + this, + ) as Map); static GNearbyPlacesVars? fromJson(Map json) => - _i2.serializers.deserializeWith(GNearbyPlacesVars.serializer, json); + _i2.serializers.deserializeWith( + GNearbyPlacesVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/place.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/place.ast.gql.dart new file mode 100644 index 0000000..0788b99 --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.ast.gql.dart @@ -0,0 +1,122 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const Place = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'Place'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'place'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePlaceId'), + 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: 'latitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'longitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePrimaryType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleTypes'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRegularOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleCurrentOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrls'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'traits'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isFavorite'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [Place]); diff --git a/lib/features/mapflow/data/graphql/__generated__/place.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/place.data.gql.dart new file mode 100644 index 0000000..00ed158 --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.data.gql.dart @@ -0,0 +1,77 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/json_object.dart' as _i2; +import 'package:built_value/serializer.dart'; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'place.data.gql.g.dart'; + +abstract class GPlaceData implements Built { + GPlaceData._(); + + factory GPlaceData([void Function(GPlaceDataBuilder b) updates]) = + _$GPlaceData; + + static void _initializeBuilder(GPlaceDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GPlaceData_place get place; + static Serializer get serializer => _$gPlaceDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPlaceData.serializer, + this, + ) as Map); + + static GPlaceData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPlaceData.serializer, + json, + ); +} + +abstract class GPlaceData_place + implements Built { + GPlaceData_place._(); + + factory GPlaceData_place([void Function(GPlaceData_placeBuilder b) updates]) = + _$GPlaceData_place; + + static void _initializeBuilder(GPlaceData_placeBuilder b) => + b..G__typename = 'Place'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get id; + String get googlePlaceId; + String get name; + double get latitude; + double get longitude; + String? get googlePrimaryType; + BuiltList get googleTypes; + _i2.JsonObject? get googleRegularOpeningHours; + _i2.JsonObject? get googleCurrentOpeningHours; + BuiltList get photoUrls; + BuiltList get traits; + bool get isFavorite; + static Serializer get serializer => + _$gPlaceDataPlaceSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPlaceData_place.serializer, + this, + ) as Map); + + static GPlaceData_place? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPlaceData_place.serializer, + json, + ); +} diff --git a/lib/features/mapflow/data/graphql/__generated__/place.data.gql.g.dart b/lib/features/mapflow/data/graphql/__generated__/place.data.gql.g.dart new file mode 100644 index 0000000..e274946 --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.data.gql.g.dart @@ -0,0 +1,716 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'place.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPlaceDataSerializer = _$GPlaceDataSerializer(); +Serializer _$gPlaceDataPlaceSerializer = + _$GPlaceData_placeSerializer(); + +class _$GPlaceDataSerializer implements StructuredSerializer { + @override + final Iterable types = const [GPlaceData, _$GPlaceData]; + @override + final String wireName = 'GPlaceData'; + + @override + Iterable serialize( + Serializers serializers, + GPlaceData object, { + FullType specifiedType = FullType.unspecified, + }) { + final result = [ + '__typename', + serializers.serialize( + object.G__typename, + specifiedType: const FullType(String), + ), + 'place', + serializers.serialize( + object.place, + specifiedType: const FullType(GPlaceData_place), + ), + ]; + + return result; + } + + @override + GPlaceData deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = GPlaceDataBuilder(); + + 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 'place': + result.place.replace( + serializers.deserialize( + value, + specifiedType: const FullType(GPlaceData_place), + )! + as GPlaceData_place, + ); + break; + } + } + + return result.build(); + } +} + +class _$GPlaceData_placeSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GPlaceData_place, _$GPlaceData_place]; + @override + final String wireName = 'GPlaceData_place'; + + @override + Iterable serialize( + Serializers serializers, + GPlaceData_place object, { + FullType specifiedType = FullType.unspecified, + }) { + final result = [ + '__typename', + serializers.serialize( + object.G__typename, + specifiedType: const FullType(String), + ), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'googlePlaceId', + serializers.serialize( + object.googlePlaceId, + specifiedType: const FullType(String), + ), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'latitude', + serializers.serialize( + object.latitude, + specifiedType: const FullType(double), + ), + 'longitude', + serializers.serialize( + object.longitude, + specifiedType: const FullType(double), + ), + 'googleTypes', + serializers.serialize( + object.googleTypes, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + ), + 'photoUrls', + serializers.serialize( + object.photoUrls, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + ), + 'traits', + serializers.serialize( + object.traits, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + ), + 'isFavorite', + serializers.serialize( + object.isFavorite, + specifiedType: const FullType(bool), + ), + ]; + Object? value; + value = object.googlePrimaryType; + if (value != null) { + result + ..add('googlePrimaryType') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + value = object.googleRegularOpeningHours; + if (value != null) { + result + ..add('googleRegularOpeningHours') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(_i2.JsonObject), + ), + ); + } + value = object.googleCurrentOpeningHours; + if (value != null) { + result + ..add('googleCurrentOpeningHours') + ..add( + serializers.serialize( + value, + specifiedType: const FullType(_i2.JsonObject), + ), + ); + } + return result; + } + + @override + GPlaceData_place deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = GPlaceData_placeBuilder(); + + 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 'id': + result.id = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; + break; + case 'googlePlaceId': + result.googlePlaceId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; + break; + case 'name': + result.name = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; + break; + case 'latitude': + result.latitude = + serializers.deserialize( + value, + specifiedType: const FullType(double), + )! + as double; + break; + case 'longitude': + result.longitude = + serializers.deserialize( + value, + specifiedType: const FullType(double), + )! + as double; + break; + case 'googlePrimaryType': + result.googlePrimaryType = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; + break; + case 'googleTypes': + result.googleTypes.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + )! + as BuiltList, + ); + break; + case 'googleRegularOpeningHours': + result.googleRegularOpeningHours = + serializers.deserialize( + value, + specifiedType: const FullType(_i2.JsonObject), + ) + as _i2.JsonObject?; + break; + case 'googleCurrentOpeningHours': + result.googleCurrentOpeningHours = + serializers.deserialize( + value, + specifiedType: const FullType(_i2.JsonObject), + ) + as _i2.JsonObject?; + break; + case 'photoUrls': + result.photoUrls.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + )! + as BuiltList, + ); + break; + case 'traits': + result.traits.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + )! + as BuiltList, + ); + break; + case 'isFavorite': + result.isFavorite = + serializers.deserialize( + value, + specifiedType: const FullType(bool), + )! + as bool; + break; + } + } + + return result.build(); + } +} + +class _$GPlaceData extends GPlaceData { + @override + final String G__typename; + @override + final GPlaceData_place place; + + factory _$GPlaceData([void Function(GPlaceDataBuilder)? updates]) => + (GPlaceDataBuilder()..update(updates))._build(); + + _$GPlaceData._({required this.G__typename, required this.place}) : super._(); + @override + GPlaceData rebuild(void Function(GPlaceDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPlaceDataBuilder toBuilder() => GPlaceDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPlaceData && + G__typename == other.G__typename && + place == other.place; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, place.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPlaceData') + ..add('G__typename', G__typename) + ..add('place', place)) + .toString(); + } +} + +class GPlaceDataBuilder implements Builder { + _$GPlaceData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GPlaceData_placeBuilder? _place; + GPlaceData_placeBuilder get place => + _$this._place ??= GPlaceData_placeBuilder(); + set place(GPlaceData_placeBuilder? place) => _$this._place = place; + + GPlaceDataBuilder() { + GPlaceData._initializeBuilder(this); + } + + GPlaceDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _place = $v.place.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GPlaceData other) { + _$v = other as _$GPlaceData; + } + + @override + void update(void Function(GPlaceDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPlaceData build() => _build(); + + _$GPlaceData _build() { + _$GPlaceData _$result; + try { + _$result = + _$v ?? + _$GPlaceData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GPlaceData', + 'G__typename', + ), + place: place.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'place'; + place.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'GPlaceData', + _$failedField, + e.toString(), + ); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GPlaceData_place extends GPlaceData_place { + @override + final String G__typename; + @override + final String id; + @override + final String googlePlaceId; + @override + final String name; + @override + final double latitude; + @override + final double longitude; + @override + final String? googlePrimaryType; + @override + final BuiltList googleTypes; + @override + final _i2.JsonObject? googleRegularOpeningHours; + @override + final _i2.JsonObject? googleCurrentOpeningHours; + @override + final BuiltList photoUrls; + @override + final BuiltList traits; + @override + final bool isFavorite; + + factory _$GPlaceData_place([ + void Function(GPlaceData_placeBuilder)? updates, + ]) => (GPlaceData_placeBuilder()..update(updates))._build(); + + _$GPlaceData_place._({ + required this.G__typename, + required this.id, + required this.googlePlaceId, + required this.name, + required this.latitude, + required this.longitude, + this.googlePrimaryType, + required this.googleTypes, + this.googleRegularOpeningHours, + this.googleCurrentOpeningHours, + required this.photoUrls, + required this.traits, + required this.isFavorite, + }) : super._(); + @override + GPlaceData_place rebuild(void Function(GPlaceData_placeBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPlaceData_placeBuilder toBuilder() => + GPlaceData_placeBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPlaceData_place && + G__typename == other.G__typename && + id == other.id && + googlePlaceId == other.googlePlaceId && + name == other.name && + latitude == other.latitude && + longitude == other.longitude && + googlePrimaryType == other.googlePrimaryType && + googleTypes == other.googleTypes && + googleRegularOpeningHours == other.googleRegularOpeningHours && + googleCurrentOpeningHours == other.googleCurrentOpeningHours && + photoUrls == other.photoUrls && + traits == other.traits && + isFavorite == other.isFavorite; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, googlePlaceId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, latitude.hashCode); + _$hash = $jc(_$hash, longitude.hashCode); + _$hash = $jc(_$hash, googlePrimaryType.hashCode); + _$hash = $jc(_$hash, googleTypes.hashCode); + _$hash = $jc(_$hash, googleRegularOpeningHours.hashCode); + _$hash = $jc(_$hash, googleCurrentOpeningHours.hashCode); + _$hash = $jc(_$hash, photoUrls.hashCode); + _$hash = $jc(_$hash, traits.hashCode); + _$hash = $jc(_$hash, isFavorite.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPlaceData_place') + ..add('G__typename', G__typename) + ..add('id', id) + ..add('googlePlaceId', googlePlaceId) + ..add('name', name) + ..add('latitude', latitude) + ..add('longitude', longitude) + ..add('googlePrimaryType', googlePrimaryType) + ..add('googleTypes', googleTypes) + ..add('googleRegularOpeningHours', googleRegularOpeningHours) + ..add('googleCurrentOpeningHours', googleCurrentOpeningHours) + ..add('photoUrls', photoUrls) + ..add('traits', traits) + ..add('isFavorite', isFavorite)) + .toString(); + } +} + +class GPlaceData_placeBuilder + implements Builder { + _$GPlaceData_place? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _googlePlaceId; + String? get googlePlaceId => _$this._googlePlaceId; + set googlePlaceId(String? googlePlaceId) => + _$this._googlePlaceId = googlePlaceId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + double? _latitude; + double? get latitude => _$this._latitude; + set latitude(double? latitude) => _$this._latitude = latitude; + + double? _longitude; + double? get longitude => _$this._longitude; + set longitude(double? longitude) => _$this._longitude = longitude; + + String? _googlePrimaryType; + String? get googlePrimaryType => _$this._googlePrimaryType; + set googlePrimaryType(String? googlePrimaryType) => + _$this._googlePrimaryType = googlePrimaryType; + + ListBuilder? _googleTypes; + ListBuilder get googleTypes => + _$this._googleTypes ??= ListBuilder(); + set googleTypes(ListBuilder? googleTypes) => + _$this._googleTypes = googleTypes; + + _i2.JsonObject? _googleRegularOpeningHours; + _i2.JsonObject? get googleRegularOpeningHours => + _$this._googleRegularOpeningHours; + set googleRegularOpeningHours(_i2.JsonObject? googleRegularOpeningHours) => + _$this._googleRegularOpeningHours = googleRegularOpeningHours; + + _i2.JsonObject? _googleCurrentOpeningHours; + _i2.JsonObject? get googleCurrentOpeningHours => + _$this._googleCurrentOpeningHours; + set googleCurrentOpeningHours(_i2.JsonObject? googleCurrentOpeningHours) => + _$this._googleCurrentOpeningHours = googleCurrentOpeningHours; + + ListBuilder? _photoUrls; + ListBuilder get photoUrls => + _$this._photoUrls ??= ListBuilder(); + set photoUrls(ListBuilder? photoUrls) => + _$this._photoUrls = photoUrls; + + ListBuilder? _traits; + ListBuilder get traits => _$this._traits ??= ListBuilder(); + set traits(ListBuilder? traits) => _$this._traits = traits; + + bool? _isFavorite; + bool? get isFavorite => _$this._isFavorite; + set isFavorite(bool? isFavorite) => _$this._isFavorite = isFavorite; + + GPlaceData_placeBuilder() { + GPlaceData_place._initializeBuilder(this); + } + + GPlaceData_placeBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _id = $v.id; + _googlePlaceId = $v.googlePlaceId; + _name = $v.name; + _latitude = $v.latitude; + _longitude = $v.longitude; + _googlePrimaryType = $v.googlePrimaryType; + _googleTypes = $v.googleTypes.toBuilder(); + _googleRegularOpeningHours = $v.googleRegularOpeningHours; + _googleCurrentOpeningHours = $v.googleCurrentOpeningHours; + _photoUrls = $v.photoUrls.toBuilder(); + _traits = $v.traits.toBuilder(); + _isFavorite = $v.isFavorite; + _$v = null; + } + return this; + } + + @override + void replace(GPlaceData_place other) { + _$v = other as _$GPlaceData_place; + } + + @override + void update(void Function(GPlaceData_placeBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPlaceData_place build() => _build(); + + _$GPlaceData_place _build() { + _$GPlaceData_place _$result; + try { + _$result = + _$v ?? + _$GPlaceData_place._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GPlaceData_place', + 'G__typename', + ), + id: BuiltValueNullFieldError.checkNotNull( + id, + r'GPlaceData_place', + 'id', + ), + googlePlaceId: BuiltValueNullFieldError.checkNotNull( + googlePlaceId, + r'GPlaceData_place', + 'googlePlaceId', + ), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GPlaceData_place', + 'name', + ), + latitude: BuiltValueNullFieldError.checkNotNull( + latitude, + r'GPlaceData_place', + 'latitude', + ), + longitude: BuiltValueNullFieldError.checkNotNull( + longitude, + r'GPlaceData_place', + 'longitude', + ), + googlePrimaryType: googlePrimaryType, + googleTypes: googleTypes.build(), + googleRegularOpeningHours: googleRegularOpeningHours, + googleCurrentOpeningHours: googleCurrentOpeningHours, + photoUrls: photoUrls.build(), + traits: traits.build(), + isFavorite: BuiltValueNullFieldError.checkNotNull( + isFavorite, + r'GPlaceData_place', + 'isFavorite', + ), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'googleTypes'; + googleTypes.build(); + + _$failedField = 'photoUrls'; + photoUrls.build(); + _$failedField = 'traits'; + traits.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'GPlaceData_place', + _$failedField, + e.toString(), + ); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/features/mapflow/data/graphql/__generated__/place.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/place.req.gql.dart new file mode 100644 index 0000000..38a13a1 --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.req.gql.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/place.ast.gql.dart' + as _i5; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/place.data.gql.dart' + as _i2; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/place.var.gql.dart' + as _i3; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'place.req.gql.g.dart'; + +abstract class GPlaceReq + implements + Built, + _i1.OperationRequest<_i2.GPlaceData, _i3.GPlaceVars> { + GPlaceReq._(); + + factory GPlaceReq([void Function(GPlaceReqBuilder b) updates]) = _$GPlaceReq; + + static void _initializeBuilder(GPlaceReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'Place', + ) + ..executeOnListen = true; + + @override + _i3.GPlaceVars 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.GPlaceData? Function( + _i2.GPlaceData?, + _i2.GPlaceData?, + )? get updateResult; + @override + _i2.GPlaceData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GPlaceData? parseData(Map json) => + _i2.GPlaceData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GPlaceData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GPlaceData, _i3.GPlaceVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => _$gPlaceReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GPlaceReq.serializer, + this, + ) as Map); + + static GPlaceReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GPlaceReq.serializer, + json, + ); +} diff --git a/lib/features/mapflow/data/graphql/__generated__/place.req.gql.g.dart b/lib/features/mapflow/data/graphql/__generated__/place.req.gql.g.dart new file mode 100644 index 0000000..8eafe1e --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.req.gql.g.dart @@ -0,0 +1,417 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'place.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPlaceReqSerializer = _$GPlaceReqSerializer(); + +class _$GPlaceReqSerializer implements StructuredSerializer { + @override + final Iterable types = const [GPlaceReq, _$GPlaceReq]; + @override + final String wireName = 'GPlaceReq'; + + @override + Iterable serialize( + Serializers serializers, + GPlaceReq object, { + FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'vars', + serializers.serialize( + object.vars, + specifiedType: const FullType(_i3.GPlaceVars), + ), + '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.GPlaceData), + ), + ); + } + 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 + GPlaceReq deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = GPlaceReqBuilder(); + + 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.GPlaceVars), + )! + as _i3.GPlaceVars, + ); + 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.GPlaceData), + )! + as _i2.GPlaceData, + ); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = + serializers.deserialize( + value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic), + ]), + ) + as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = + serializers.deserialize( + value, + specifiedType: const FullType(_i1.FetchPolicy), + ) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = + serializers.deserialize( + value, + specifiedType: const FullType(bool), + )! + as bool; + break; + } + } + + return result.build(); + } +} + +class _$GPlaceReq extends GPlaceReq { + @override + final _i3.GPlaceVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GPlaceData? Function(_i2.GPlaceData?, _i2.GPlaceData?)? + updateResult; + @override + final _i2.GPlaceData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GPlaceReq([void Function(GPlaceReqBuilder)? updates]) => + (GPlaceReqBuilder()..update(updates))._build(); + + _$GPlaceReq._({ + required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context, + }) : super._(); + @override + GPlaceReq rebuild(void Function(GPlaceReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPlaceReqBuilder toBuilder() => GPlaceReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPlaceReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == other.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'GPlaceReq') + ..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 GPlaceReqBuilder implements Builder { + _$GPlaceReq? _$v; + + _i3.GPlaceVarsBuilder? _vars; + _i3.GPlaceVarsBuilder get vars => _$this._vars ??= _i3.GPlaceVarsBuilder(); + set vars(_i3.GPlaceVarsBuilder? 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.GPlaceData? Function(_i2.GPlaceData?, _i2.GPlaceData?)? _updateResult; + _i2.GPlaceData? Function(_i2.GPlaceData?, _i2.GPlaceData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GPlaceData? Function(_i2.GPlaceData?, _i2.GPlaceData?)? updateResult, + ) => _$this._updateResult = updateResult; + + _i2.GPlaceDataBuilder? _optimisticResponse; + _i2.GPlaceDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= _i2.GPlaceDataBuilder(); + set optimisticResponse(_i2.GPlaceDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext, + ) => _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GPlaceReqBuilder() { + GPlaceReq._initializeBuilder(this); + } + + GPlaceReqBuilder 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(GPlaceReq other) { + _$v = other as _$GPlaceReq; + } + + @override + void update(void Function(GPlaceReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPlaceReq build() => _build(); + + _$GPlaceReq _build() { + _$GPlaceReq _$result; + try { + _$result = + _$v ?? + _$GPlaceReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, + r'GPlaceReq', + 'operation', + ), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GPlaceReq', + 'executeOnListen', + ), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw BuiltValueNestedFieldError( + r'GPlaceReq', + _$failedField, + e.toString(), + ); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/features/mapflow/data/graphql/__generated__/place.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/place.var.gql.dart new file mode 100644 index 0000000..cfd0375 --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.var.gql.dart @@ -0,0 +1,31 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'place.var.gql.g.dart'; + +abstract class GPlaceVars implements Built { + GPlaceVars._(); + + factory GPlaceVars([void Function(GPlaceVarsBuilder b) updates]) = + _$GPlaceVars; + + String get id; + static Serializer get serializer => _$gPlaceVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPlaceVars.serializer, + this, + ) as Map); + + static GPlaceVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPlaceVars.serializer, + json, + ); +} diff --git a/lib/features/mapflow/data/graphql/__generated__/place.var.gql.g.dart b/lib/features/mapflow/data/graphql/__generated__/place.var.gql.g.dart new file mode 100644 index 0000000..99e2b6a --- /dev/null +++ b/lib/features/mapflow/data/graphql/__generated__/place.var.gql.g.dart @@ -0,0 +1,139 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'place.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPlaceVarsSerializer = _$GPlaceVarsSerializer(); + +class _$GPlaceVarsSerializer implements StructuredSerializer { + @override + final Iterable types = const [GPlaceVars, _$GPlaceVars]; + @override + final String wireName = 'GPlaceVars'; + + @override + Iterable serialize( + Serializers serializers, + GPlaceVars object, { + FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPlaceVars deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = GPlaceVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; + break; + } + } + + return result.build(); + } +} + +class _$GPlaceVars extends GPlaceVars { + @override + final String id; + + factory _$GPlaceVars([void Function(GPlaceVarsBuilder)? updates]) => + (GPlaceVarsBuilder()..update(updates))._build(); + + _$GPlaceVars._({required this.id}) : super._(); + @override + GPlaceVars rebuild(void Function(GPlaceVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPlaceVarsBuilder toBuilder() => GPlaceVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPlaceVars && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPlaceVars', + )..add('id', id)).toString(); + } +} + +class GPlaceVarsBuilder implements Builder { + _$GPlaceVars? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + GPlaceVarsBuilder(); + + GPlaceVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GPlaceVars other) { + _$v = other as _$GPlaceVars; + } + + @override + void update(void Function(GPlaceVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPlaceVars build() => _build(); + + _$GPlaceVars _build() { + final _$result = + _$v ?? + _$GPlaceVars._( + id: BuiltValueNullFieldError.checkNotNull(id, r'GPlaceVars', 'id'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.ast.gql.dart index 17b6153..2a112f4 100644 --- a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.ast.gql.dart @@ -16,194 +16,186 @@ const RecommendPlacesByVoice = _i1.OperationDefinitionNode( ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'recommendPlacesByVoice'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'transcript'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'tags'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'summary'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'places'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googlePlaceId'), - 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: 'latitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'longitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googlePrimaryType'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleTypes'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleBusinessStatus'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRating'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleUserRatingCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRegularOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleCurrentOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrls'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'traits'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isFavorite'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'experiences'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], - ), - ), - ], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'recommendPlacesByVoice'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'transcript'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, ), - ), - ], - ), + _i1.FieldNode( + name: _i1.NameNode(value: 'tags'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'places'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePlaceId'), + 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: 'latitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'longitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePrimaryType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleTypes'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleBusinessStatus'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRating'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleUserRatingCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRegularOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleCurrentOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrls'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'traits'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isFavorite'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'experiences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), + ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [RecommendPlacesByVoice]); diff --git a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.data.gql.dart index 5380a01..1be6db2 100644 --- a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.data.gql.dart @@ -18,9 +18,9 @@ abstract class GRecommendPlacesByVoiceData Built { GRecommendPlacesByVoiceData._(); - factory GRecommendPlacesByVoiceData([ - void Function(GRecommendPlacesByVoiceDataBuilder b) updates, - ]) = _$GRecommendPlacesByVoiceData; + factory GRecommendPlacesByVoiceData( + [void Function(GRecommendPlacesByVoiceDataBuilder b) updates]) = + _$GRecommendPlacesByVoiceData; static void _initializeBuilder(GRecommendPlacesByVoiceDataBuilder b) => b..G__typename = 'Mutation'; @@ -31,34 +31,32 @@ abstract class GRecommendPlacesByVoiceData static Serializer get serializer => _$gRecommendPlacesByVoiceDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GRecommendPlacesByVoiceData.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRecommendPlacesByVoiceData.serializer, + this, + ) as Map); - static GRecommendPlacesByVoiceData? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GRecommendPlacesByVoiceData.serializer, json); + static GRecommendPlacesByVoiceData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRecommendPlacesByVoiceData.serializer, + json, + ); } abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice implements - Built< - GRecommendPlacesByVoiceData_recommendPlacesByVoice, - GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder - > { + Built { GRecommendPlacesByVoiceData_recommendPlacesByVoice._(); - factory GRecommendPlacesByVoiceData_recommendPlacesByVoice([ - void Function(GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder b) - updates, - ]) = _$GRecommendPlacesByVoiceData_recommendPlacesByVoice; + factory GRecommendPlacesByVoiceData_recommendPlacesByVoice( + [void Function( + GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder b) + updates]) = _$GRecommendPlacesByVoiceData_recommendPlacesByVoice; static void _initializeBuilder( - GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder b, - ) => b..G__typename = 'VoicePlaceRecommendationsPayload'; + GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder b) => + b..G__typename = 'VoicePlaceRecommendationsPayload'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -66,44 +64,39 @@ abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice BuiltList get tags; String get summary; BuiltList - get places; + get places; static Serializer - get serializer => - _$gRecommendPlacesByVoiceDataRecommendPlacesByVoiceSerializer; + get serializer => + _$gRecommendPlacesByVoiceDataRecommendPlacesByVoiceSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer, + this, + ) as Map); static GRecommendPlacesByVoiceData_recommendPlacesByVoice? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer, + json, + ); } abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice_places implements - Built< - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places, - GRecommendPlacesByVoiceData_recommendPlacesByVoice_placesBuilder - > { + Built { GRecommendPlacesByVoiceData_recommendPlacesByVoice_places._(); - factory GRecommendPlacesByVoiceData_recommendPlacesByVoice_places([ - void Function( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_placesBuilder b, - ) - updates, - ]) = _$GRecommendPlacesByVoiceData_recommendPlacesByVoice_places; + factory GRecommendPlacesByVoiceData_recommendPlacesByVoice_places( + [void Function( + GRecommendPlacesByVoiceData_recommendPlacesByVoice_placesBuilder + b) + updates]) = _$GRecommendPlacesByVoiceData_recommendPlacesByVoice_places; static void _initializeBuilder( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_placesBuilder b, - ) => b..G__typename = 'Place'; + GRecommendPlacesByVoiceData_recommendPlacesByVoice_placesBuilder b) => + b..G__typename = 'Place'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -123,49 +116,43 @@ abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice_places BuiltList get traits; bool get isFavorite; BuiltList< - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences - > - get experiences; + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences> + get experiences; static Serializer - get serializer => - _$gRecommendPlacesByVoiceDataRecommendPlacesByVoicePlacesSerializer; + get serializer => + _$gRecommendPlacesByVoiceDataRecommendPlacesByVoicePlacesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places - .serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places.serializer, + this, + ) as Map); static GRecommendPlacesByVoiceData_recommendPlacesByVoice_places? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places.serializer, + json, + ); } abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences implements Built< - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences, - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiencesBuilder - > { + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences, + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiencesBuilder> { GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences._(); - factory GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences([ - void Function( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiencesBuilder - b, - ) - updates, - ]) = _$GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences; + factory GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences( + [void Function( + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiencesBuilder + b) + updates]) = + _$GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences; static void _initializeBuilder( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiencesBuilder - b, - ) => b..G__typename = 'VoiceExperience'; + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiencesBuilder + b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -173,23 +160,20 @@ abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experie _i3.GVoiceExperienceStatus get status; String get createdAt; static Serializer< - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences - > - get serializer => - _$gRecommendPlacesByVoiceDataRecommendPlacesByVoicePlacesExperiencesSerializer; + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences> + get serializer => + _$gRecommendPlacesByVoiceDataRecommendPlacesByVoicePlacesExperiencesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences - .serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences + .serializer, + this, + ) as Map); static GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences? - fromJson(Map json) => _i1.serializers.deserializeWith( - GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences - .serializer, - json, - ); + fromJson(Map json) => _i1.serializers.deserializeWith( + GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences + .serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.req.gql.dart index 0281581..2b9c018 100644 --- a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.req.gql.dart @@ -20,15 +20,13 @@ part 'recommend_places_by_voice.req.gql.g.dart'; abstract class GRecommendPlacesByVoiceReq implements Built, - _i1.OperationRequest< - _i2.GRecommendPlacesByVoiceData, - _i3.GRecommendPlacesByVoiceVars - > { + _i1.OperationRequest<_i2.GRecommendPlacesByVoiceData, + _i3.GRecommendPlacesByVoiceVars> { GRecommendPlacesByVoiceReq._(); - factory GRecommendPlacesByVoiceReq([ - void Function(GRecommendPlacesByVoiceReqBuilder b) updates, - ]) = _$GRecommendPlacesByVoiceReq; + factory GRecommendPlacesByVoiceReq( + [void Function(GRecommendPlacesByVoiceReqBuilder b) updates]) = + _$GRecommendPlacesByVoiceReq; static void _initializeBuilder(GRecommendPlacesByVoiceReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GRecommendPlacesByVoiceReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GRecommendPlacesByVoiceReq _i2.GRecommendPlacesByVoiceData? Function( _i2.GRecommendPlacesByVoiceData?, _i2.GRecommendPlacesByVoiceData?, - )? - get updateResult; + )? get updateResult; @override _i2.GRecommendPlacesByVoiceData? get optimisticResponse; @override @@ -82,24 +79,22 @@ abstract class GRecommendPlacesByVoiceReq data.toJson(); @override - _i1.OperationRequest< - _i2.GRecommendPlacesByVoiceData, - _i3.GRecommendPlacesByVoiceVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GRecommendPlacesByVoiceData, + _i3.GRecommendPlacesByVoiceVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gRecommendPlacesByVoiceReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith( - GRecommendPlacesByVoiceReq.serializer, - this, - ) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GRecommendPlacesByVoiceReq.serializer, + this, + ) as Map); - static GRecommendPlacesByVoiceReq? fromJson(Map json) => _i6 - .serializers - .deserializeWith(GRecommendPlacesByVoiceReq.serializer, json); + static GRecommendPlacesByVoiceReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRecommendPlacesByVoiceReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.var.gql.dart index e1d084f..d944930 100644 --- a/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/recommend_places_by_voice.var.gql.dart @@ -16,22 +16,22 @@ abstract class GRecommendPlacesByVoiceVars Built { GRecommendPlacesByVoiceVars._(); - factory GRecommendPlacesByVoiceVars([ - void Function(GRecommendPlacesByVoiceVarsBuilder b) updates, - ]) = _$GRecommendPlacesByVoiceVars; + factory GRecommendPlacesByVoiceVars( + [void Function(GRecommendPlacesByVoiceVarsBuilder b) updates]) = + _$GRecommendPlacesByVoiceVars; _i1.GVoicePlaceRecommendationsInput get input; static Serializer get serializer => _$gRecommendPlacesByVoiceVarsSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GRecommendPlacesByVoiceVars.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GRecommendPlacesByVoiceVars.serializer, + this, + ) as Map); - static GRecommendPlacesByVoiceVars? fromJson(Map json) => _i2 - .serializers - .deserializeWith(GRecommendPlacesByVoiceVars.serializer, json); + static GRecommendPlacesByVoiceVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GRecommendPlacesByVoiceVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.ast.gql.dart index 348883a..ad753ba 100644 --- a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.ast.gql.dart @@ -10,26 +10,138 @@ const RemoveFavoritePlace = _i1.OperationDefinitionNode( variableDefinitions: [ _i1.VariableDefinitionNode( variable: _i1.VariableNode(name: _i1.NameNode(value: 'placeId')), - type: _i1.NamedTypeNode(name: _i1.NameNode(value: 'ID'), isNonNull: true), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), defaultValue: _i1.DefaultValueNode(value: null), directives: [], - ), + ) ], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'removeFavoritePlace'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'placeId'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'placeId')), - ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'removeFavoritePlace'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'placeId'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'placeId')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePlaceId'), + 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: 'latitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'longitude'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googlePrimaryType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleTypes'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleBusinessStatus'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRating'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleUserRatingCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleRegularOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'googleCurrentOpeningHours'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'photoUrls'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'traits'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isFavorite'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'experiences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ _i1.FieldNode( name: _i1.NameNode(value: 'id'), alias: null, @@ -38,138 +150,23 @@ const RemoveFavoritePlace = _i1.OperationDefinitionNode( selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'googlePlaceId'), + name: _i1.NameNode(value: 'status'), alias: null, arguments: [], directives: [], selectionSet: null, ), _i1.FieldNode( - name: _i1.NameNode(value: 'name'), + name: _i1.NameNode(value: 'createdAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), - _i1.FieldNode( - name: _i1.NameNode(value: 'latitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'longitude'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googlePrimaryType'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleTypes'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleBusinessStatus'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRating'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleUserRatingCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleRegularOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'googleCurrentOpeningHours'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'photoUrls'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'traits'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'isFavorite'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'experiences'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], + ]), ), - ), - ], - ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [RemoveFavoritePlace]); diff --git a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.data.gql.dart index 1472a26..8edc3b3 100644 --- a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.data.gql.dart @@ -18,9 +18,9 @@ abstract class GRemoveFavoritePlaceData Built { GRemoveFavoritePlaceData._(); - factory GRemoveFavoritePlaceData([ - void Function(GRemoveFavoritePlaceDataBuilder b) updates, - ]) = _$GRemoveFavoritePlaceData; + factory GRemoveFavoritePlaceData( + [void Function(GRemoveFavoritePlaceDataBuilder b) updates]) = + _$GRemoveFavoritePlaceData; static void _initializeBuilder(GRemoveFavoritePlaceDataBuilder b) => b..G__typename = 'Mutation'; @@ -31,31 +31,31 @@ abstract class GRemoveFavoritePlaceData static Serializer get serializer => _$gRemoveFavoritePlaceDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GRemoveFavoritePlaceData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRemoveFavoritePlaceData.serializer, + this, + ) as Map); - static GRemoveFavoritePlaceData? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GRemoveFavoritePlaceData.serializer, json); + static GRemoveFavoritePlaceData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRemoveFavoritePlaceData.serializer, + json, + ); } abstract class GRemoveFavoritePlaceData_removeFavoritePlace implements - Built< - GRemoveFavoritePlaceData_removeFavoritePlace, - GRemoveFavoritePlaceData_removeFavoritePlaceBuilder - > { + Built { GRemoveFavoritePlaceData_removeFavoritePlace._(); - factory GRemoveFavoritePlaceData_removeFavoritePlace([ - void Function(GRemoveFavoritePlaceData_removeFavoritePlaceBuilder b) - updates, - ]) = _$GRemoveFavoritePlaceData_removeFavoritePlace; + factory GRemoveFavoritePlaceData_removeFavoritePlace( + [void Function(GRemoveFavoritePlaceData_removeFavoritePlaceBuilder b) + updates]) = _$GRemoveFavoritePlaceData_removeFavoritePlace; static void _initializeBuilder( - GRemoveFavoritePlaceData_removeFavoritePlaceBuilder b, - ) => b..G__typename = 'Place'; + GRemoveFavoritePlaceData_removeFavoritePlaceBuilder b) => + b..G__typename = 'Place'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -75,43 +75,37 @@ abstract class GRemoveFavoritePlaceData_removeFavoritePlace BuiltList get traits; bool get isFavorite; BuiltList - get experiences; + get experiences; static Serializer - get serializer => _$gRemoveFavoritePlaceDataRemoveFavoritePlaceSerializer; + get serializer => _$gRemoveFavoritePlaceDataRemoveFavoritePlaceSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GRemoveFavoritePlaceData_removeFavoritePlace.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRemoveFavoritePlaceData_removeFavoritePlace.serializer, + this, + ) as Map); static GRemoveFavoritePlaceData_removeFavoritePlace? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GRemoveFavoritePlaceData_removeFavoritePlace.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GRemoveFavoritePlaceData_removeFavoritePlace.serializer, + json, + ); } abstract class GRemoveFavoritePlaceData_removeFavoritePlace_experiences implements - Built< - GRemoveFavoritePlaceData_removeFavoritePlace_experiences, - GRemoveFavoritePlaceData_removeFavoritePlace_experiencesBuilder - > { + Built { GRemoveFavoritePlaceData_removeFavoritePlace_experiences._(); - factory GRemoveFavoritePlaceData_removeFavoritePlace_experiences([ - void Function( - GRemoveFavoritePlaceData_removeFavoritePlace_experiencesBuilder b, - ) - updates, - ]) = _$GRemoveFavoritePlaceData_removeFavoritePlace_experiences; + factory GRemoveFavoritePlaceData_removeFavoritePlace_experiences( + [void Function( + GRemoveFavoritePlaceData_removeFavoritePlace_experiencesBuilder b) + updates]) = _$GRemoveFavoritePlaceData_removeFavoritePlace_experiences; static void _initializeBuilder( - GRemoveFavoritePlaceData_removeFavoritePlace_experiencesBuilder b, - ) => b..G__typename = 'VoiceExperience'; + GRemoveFavoritePlaceData_removeFavoritePlace_experiencesBuilder b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -119,20 +113,18 @@ abstract class GRemoveFavoritePlaceData_removeFavoritePlace_experiences _i3.GVoiceExperienceStatus get status; String get createdAt; static Serializer - get serializer => - _$gRemoveFavoritePlaceDataRemoveFavoritePlaceExperiencesSerializer; + get serializer => + _$gRemoveFavoritePlaceDataRemoveFavoritePlaceExperiencesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer, + this, + ) as Map); static GRemoveFavoritePlaceData_removeFavoritePlace_experiences? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.req.gql.dart index 7f3a138..b507e4f 100644 --- a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.req.gql.dart @@ -20,15 +20,13 @@ part 'remove_favorite_place.req.gql.g.dart'; abstract class GRemoveFavoritePlaceReq implements Built, - _i1.OperationRequest< - _i2.GRemoveFavoritePlaceData, - _i3.GRemoveFavoritePlaceVars - > { + _i1.OperationRequest<_i2.GRemoveFavoritePlaceData, + _i3.GRemoveFavoritePlaceVars> { GRemoveFavoritePlaceReq._(); - factory GRemoveFavoritePlaceReq([ - void Function(GRemoveFavoritePlaceReqBuilder b) updates, - ]) = _$GRemoveFavoritePlaceReq; + factory GRemoveFavoritePlaceReq( + [void Function(GRemoveFavoritePlaceReqBuilder b) updates]) = + _$GRemoveFavoritePlaceReq; static void _initializeBuilder(GRemoveFavoritePlaceReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GRemoveFavoritePlaceReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GRemoveFavoritePlaceReq _i2.GRemoveFavoritePlaceData? Function( _i2.GRemoveFavoritePlaceData?, _i2.GRemoveFavoritePlaceData?, - )? - get updateResult; + )? get updateResult; @override _i2.GRemoveFavoritePlaceData? get optimisticResponse; @override @@ -82,20 +79,22 @@ abstract class GRemoveFavoritePlaceReq data.toJson(); @override - _i1.OperationRequest< - _i2.GRemoveFavoritePlaceData, - _i3.GRemoveFavoritePlaceVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GRemoveFavoritePlaceData, + _i3.GRemoveFavoritePlaceVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gRemoveFavoritePlaceReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GRemoveFavoritePlaceReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GRemoveFavoritePlaceReq.serializer, + this, + ) as Map); static GRemoveFavoritePlaceReq? fromJson(Map json) => - _i6.serializers.deserializeWith(GRemoveFavoritePlaceReq.serializer, json); + _i6.serializers.deserializeWith( + GRemoveFavoritePlaceReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.var.gql.dart index 77e85e8..fe5cd68 100644 --- a/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/remove_favorite_place.var.gql.dart @@ -14,19 +14,22 @@ abstract class GRemoveFavoritePlaceVars Built { GRemoveFavoritePlaceVars._(); - factory GRemoveFavoritePlaceVars([ - void Function(GRemoveFavoritePlaceVarsBuilder b) updates, - ]) = _$GRemoveFavoritePlaceVars; + factory GRemoveFavoritePlaceVars( + [void Function(GRemoveFavoritePlaceVarsBuilder b) updates]) = + _$GRemoveFavoritePlaceVars; String get placeId; static Serializer get serializer => _$gRemoveFavoritePlaceVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GRemoveFavoritePlaceVars.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GRemoveFavoritePlaceVars.serializer, + this, + ) as Map); - static GRemoveFavoritePlaceVars? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GRemoveFavoritePlaceVars.serializer, json); + static GRemoveFavoritePlaceVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRemoveFavoritePlaceVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/schema.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/schema.ast.gql.dart index 95423ac..cbc8096 100644 --- a/lib/features/mapflow/data/graphql/__generated__/schema.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/schema.ast.gql.dart @@ -47,7 +47,10 @@ const Place = _i1.ObjectTypeDefinitionNode( name: _i1.NameNode(value: 'id'), directives: [], args: [], - type: _i1.NamedTypeNode(name: _i1.NameNode(value: 'ID'), isNonNull: true), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), ), _i1.FieldDefinitionNode( name: _i1.NameNode(value: 'googlePlaceId'), @@ -234,7 +237,10 @@ const User = _i1.ObjectTypeDefinitionNode( name: _i1.NameNode(value: 'id'), directives: [], args: [], - type: _i1.NamedTypeNode(name: _i1.NameNode(value: 'ID'), isNonNull: true), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), ), _i1.FieldDefinitionNode( name: _i1.NameNode(value: 'telegramId'), @@ -310,7 +316,10 @@ const VoiceExperience = _i1.ObjectTypeDefinitionNode( name: _i1.NameNode(value: 'id'), directives: [], args: [], - type: _i1.NamedTypeNode(name: _i1.NameNode(value: 'ID'), isNonNull: true), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), ), _i1.FieldDefinitionNode( name: _i1.NameNode(value: 'place'), @@ -605,7 +614,7 @@ const AuthenticateTelegramInput = _i1.InputObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], ); const AuthenticateTelegramLoginInput = _i1.InputObjectTypeDefinitionNode( @@ -690,7 +699,7 @@ const AuthPayload = _i1.ObjectTypeDefinitionNode( name: _i1.NameNode(value: 'User'), isNonNull: true, ), - ), + ) ], ); const TelegramBotLoginPayload = _i1.ObjectTypeDefinitionNode( @@ -836,6 +845,25 @@ const Query = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'place'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ID'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Place'), + isNonNull: true, + ), + ), _i1.FieldDefinitionNode( name: _i1.NameNode(value: 'favoritePlaces'), directives: [], @@ -860,7 +888,7 @@ const Query = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.ListTypeNode( type: _i1.NamedTypeNode( @@ -910,7 +938,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'TelegramBotLoginSession'), @@ -929,7 +957,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'AuthPayload'), @@ -948,7 +976,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'AuthPayload'), @@ -967,7 +995,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'VoiceExperience'), @@ -986,7 +1014,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'VoicePlaceRecommendationsPayload'), @@ -1005,7 +1033,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'Place'), @@ -1024,7 +1052,7 @@ const Mutation = _i1.ObjectTypeDefinitionNode( isNonNull: true, ), defaultValue: null, - ), + ) ], type: _i1.NamedTypeNode( name: _i1.NameNode(value: 'Place'), @@ -1033,23 +1061,21 @@ const Mutation = _i1.ObjectTypeDefinitionNode( ), ], ); -const document = _i1.DocumentNode( - definitions: [ - JSON, - VoiceExperienceStatus, - Place, - User, - VoiceExperience, - CreateVoiceExperienceInput, - NearbyPlacesInput, - VoicePlaceRecommendationsInput, - AuthenticateTelegramInput, - AuthenticateTelegramLoginInput, - AuthPayload, - TelegramBotLoginPayload, - TelegramBotLoginSession, - VoicePlaceRecommendationsPayload, - Query, - Mutation, - ], -); +const document = _i1.DocumentNode(definitions: [ + JSON, + VoiceExperienceStatus, + Place, + User, + VoiceExperience, + CreateVoiceExperienceInput, + NearbyPlacesInput, + VoicePlaceRecommendationsInput, + AuthenticateTelegramInput, + AuthenticateTelegramLoginInput, + AuthPayload, + TelegramBotLoginPayload, + TelegramBotLoginSession, + VoicePlaceRecommendationsPayload, + Query, + Mutation, +]); diff --git a/lib/features/mapflow/data/graphql/__generated__/schema.schema.gql.dart b/lib/features/mapflow/data/graphql/__generated__/schema.schema.gql.dart index 4c71207..bd94640 100644 --- a/lib/features/mapflow/data/graphql/__generated__/schema.schema.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/schema.schema.gql.dart @@ -46,9 +46,9 @@ abstract class GCreateVoiceExperienceInput Built { GCreateVoiceExperienceInput._(); - factory GCreateVoiceExperienceInput([ - void Function(GCreateVoiceExperienceInputBuilder b) updates, - ]) = _$GCreateVoiceExperienceInput; + factory GCreateVoiceExperienceInput( + [void Function(GCreateVoiceExperienceInputBuilder b) updates]) = + _$GCreateVoiceExperienceInput; String get googlePlaceId; String get googleName; @@ -66,25 +66,25 @@ abstract class GCreateVoiceExperienceInput static Serializer get serializer => _$gCreateVoiceExperienceInputSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GCreateVoiceExperienceInput.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GCreateVoiceExperienceInput.serializer, + this, + ) as Map); - static GCreateVoiceExperienceInput? fromJson(Map json) => _i2 - .serializers - .deserializeWith(GCreateVoiceExperienceInput.serializer, json); + static GCreateVoiceExperienceInput? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCreateVoiceExperienceInput.serializer, + json, + ); } abstract class GNearbyPlacesInput implements Built { GNearbyPlacesInput._(); - factory GNearbyPlacesInput([ - void Function(GNearbyPlacesInputBuilder b) updates, - ]) = _$GNearbyPlacesInput; + factory GNearbyPlacesInput( + [void Function(GNearbyPlacesInputBuilder b) updates]) = + _$GNearbyPlacesInput; double get latitude; double get longitude; @@ -92,37 +92,37 @@ abstract class GNearbyPlacesInput static Serializer get serializer => _$gNearbyPlacesInputSerializer; - Map toJson() => - (_i2.serializers.serializeWith(GNearbyPlacesInput.serializer, this) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GNearbyPlacesInput.serializer, + this, + ) as Map); static GNearbyPlacesInput? fromJson(Map json) => - _i2.serializers.deserializeWith(GNearbyPlacesInput.serializer, json); + _i2.serializers.deserializeWith( + GNearbyPlacesInput.serializer, + json, + ); } abstract class GVoicePlaceRecommendationsInput implements - Built< - GVoicePlaceRecommendationsInput, - GVoicePlaceRecommendationsInputBuilder - > { + Built { GVoicePlaceRecommendationsInput._(); - factory GVoicePlaceRecommendationsInput([ - void Function(GVoicePlaceRecommendationsInputBuilder b) updates, - ]) = _$GVoicePlaceRecommendationsInput; + factory GVoicePlaceRecommendationsInput( + [void Function(GVoicePlaceRecommendationsInputBuilder b) updates]) = + _$GVoicePlaceRecommendationsInput; String get audioContentBase64; String get audioMimeType; static Serializer get serializer => _$gVoicePlaceRecommendationsInputSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GVoicePlaceRecommendationsInput.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GVoicePlaceRecommendationsInput.serializer, + this, + ) as Map); static GVoicePlaceRecommendationsInput? fromJson(Map json) => _i2.serializers.deserializeWith( @@ -136,37 +136,35 @@ abstract class GAuthenticateTelegramInput Built { GAuthenticateTelegramInput._(); - factory GAuthenticateTelegramInput([ - void Function(GAuthenticateTelegramInputBuilder b) updates, - ]) = _$GAuthenticateTelegramInput; + factory GAuthenticateTelegramInput( + [void Function(GAuthenticateTelegramInputBuilder b) updates]) = + _$GAuthenticateTelegramInput; String get initData; static Serializer get serializer => _$gAuthenticateTelegramInputSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GAuthenticateTelegramInput.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GAuthenticateTelegramInput.serializer, + this, + ) as Map); - static GAuthenticateTelegramInput? fromJson(Map json) => _i2 - .serializers - .deserializeWith(GAuthenticateTelegramInput.serializer, json); + static GAuthenticateTelegramInput? fromJson(Map json) => + _i2.serializers.deserializeWith( + GAuthenticateTelegramInput.serializer, + json, + ); } abstract class GAuthenticateTelegramLoginInput implements - Built< - GAuthenticateTelegramLoginInput, - GAuthenticateTelegramLoginInputBuilder - > { + Built { GAuthenticateTelegramLoginInput._(); - factory GAuthenticateTelegramLoginInput([ - void Function(GAuthenticateTelegramLoginInputBuilder b) updates, - ]) = _$GAuthenticateTelegramLoginInput; + factory GAuthenticateTelegramLoginInput( + [void Function(GAuthenticateTelegramLoginInputBuilder b) updates]) = + _$GAuthenticateTelegramLoginInput; double get id; String? get first_name; @@ -178,12 +176,10 @@ abstract class GAuthenticateTelegramLoginInput static Serializer get serializer => _$gAuthenticateTelegramLoginInputSerializer; - Map toJson() => - (_i2.serializers.serializeWith( - GAuthenticateTelegramLoginInput.serializer, - this, - ) - as Map); + Map toJson() => (_i2.serializers.serializeWith( + GAuthenticateTelegramLoginInput.serializer, + this, + ) as Map); static GAuthenticateTelegramLoginInput? fromJson(Map json) => _i2.serializers.deserializeWith( diff --git a/lib/features/mapflow/data/graphql/__generated__/serializers.gql.dart b/lib/features/mapflow/data/graphql/__generated__/serializers.gql.dart index 5b9c89c..f8e7eb3 100644 --- a/lib/features/mapflow/data/graphql/__generated__/serializers.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/serializers.gql.dart @@ -76,6 +76,12 @@ import 'package:mapflow/features/mapflow/data/graphql/__generated__/nearby_place show GNearbyPlacesReq; import 'package:mapflow/features/mapflow/data/graphql/__generated__/nearby_places.var.gql.dart' show GNearbyPlacesVars; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/place.data.gql.dart' + show GPlaceData, GPlaceData_place; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/place.req.gql.dart' + show GPlaceReq; +import 'package:mapflow/features/mapflow/data/graphql/__generated__/place.var.gql.dart' + show GPlaceVars; import 'package:mapflow/features/mapflow/data/graphql/__generated__/places.data.gql.dart' show GPlacesData, GPlacesData_places; import 'package:mapflow/features/mapflow/data/graphql/__generated__/places.req.gql.dart' @@ -176,6 +182,10 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GNearbyPlacesInput, GNearbyPlacesReq, GNearbyPlacesVars, + GPlaceData, + GPlaceData_place, + GPlaceReq, + GPlaceVars, GPlacesData, GPlacesData_places, GPlacesReq, diff --git a/lib/features/mapflow/data/graphql/__generated__/serializers.gql.g.dart b/lib/features/mapflow/data/graphql/__generated__/serializers.gql.g.dart index 6b8ddc4..beacc9b 100644 --- a/lib/features/mapflow/data/graphql/__generated__/serializers.gql.g.dart +++ b/lib/features/mapflow/data/graphql/__generated__/serializers.gql.g.dart @@ -61,6 +61,10 @@ Serializers _$serializers = ..add(GNearbyPlacesInput.serializer) ..add(GNearbyPlacesReq.serializer) ..add(GNearbyPlacesVars.serializer) + ..add(GPlaceData.serializer) + ..add(GPlaceData_place.serializer) + ..add(GPlaceReq.serializer) + ..add(GPlaceVars.serializer) ..add(GPlacesData.serializer) ..add(GPlacesData_places.serializer) ..add(GPlacesReq.serializer) @@ -167,6 +171,18 @@ Serializers _$serializers = const FullType(BuiltList, const [const FullType(String)]), () => ListBuilder(), ) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => ListBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => ListBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => ListBuilder(), + ) ..addBuilderFactory( const FullType(BuiltList, const [ const FullType( diff --git a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.ast.gql.dart index 6aaf6fc..74349ff 100644 --- a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.ast.gql.dart @@ -9,40 +9,36 @@ const StartTelegramBotLogin = _i1.OperationDefinitionNode( name: _i1.NameNode(value: 'StartTelegramBotLogin'), variableDefinitions: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'startTelegramBotLogin'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'token'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'botUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'expiresAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'startTelegramBotLogin'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'token'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, ), - ), - ], - ), + _i1.FieldNode( + name: _i1.NameNode(value: 'botUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'expiresAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [StartTelegramBotLogin]); diff --git a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.data.gql.dart index b14cd39..8951eb9 100644 --- a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.data.gql.dart @@ -14,9 +14,9 @@ abstract class GStartTelegramBotLoginData Built { GStartTelegramBotLoginData._(); - factory GStartTelegramBotLoginData([ - void Function(GStartTelegramBotLoginDataBuilder b) updates, - ]) = _$GStartTelegramBotLoginData; + factory GStartTelegramBotLoginData( + [void Function(GStartTelegramBotLoginDataBuilder b) updates]) = + _$GStartTelegramBotLoginData; static void _initializeBuilder(GStartTelegramBotLoginDataBuilder b) => b..G__typename = 'Mutation'; @@ -27,34 +27,31 @@ abstract class GStartTelegramBotLoginData static Serializer get serializer => _$gStartTelegramBotLoginDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GStartTelegramBotLoginData.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GStartTelegramBotLoginData.serializer, + this, + ) as Map); - static GStartTelegramBotLoginData? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GStartTelegramBotLoginData.serializer, json); + static GStartTelegramBotLoginData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStartTelegramBotLoginData.serializer, + json, + ); } abstract class GStartTelegramBotLoginData_startTelegramBotLogin implements - Built< - GStartTelegramBotLoginData_startTelegramBotLogin, - GStartTelegramBotLoginData_startTelegramBotLoginBuilder - > { + Built { GStartTelegramBotLoginData_startTelegramBotLogin._(); - factory GStartTelegramBotLoginData_startTelegramBotLogin([ - void Function(GStartTelegramBotLoginData_startTelegramBotLoginBuilder b) - updates, - ]) = _$GStartTelegramBotLoginData_startTelegramBotLogin; + factory GStartTelegramBotLoginData_startTelegramBotLogin( + [void Function(GStartTelegramBotLoginData_startTelegramBotLoginBuilder b) + updates]) = _$GStartTelegramBotLoginData_startTelegramBotLogin; static void _initializeBuilder( - GStartTelegramBotLoginData_startTelegramBotLoginBuilder b, - ) => b..G__typename = 'TelegramBotLoginPayload'; + GStartTelegramBotLoginData_startTelegramBotLoginBuilder b) => + b..G__typename = 'TelegramBotLoginPayload'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -62,19 +59,18 @@ abstract class GStartTelegramBotLoginData_startTelegramBotLogin String get botUrl; String get expiresAt; static Serializer - get serializer => _$gStartTelegramBotLoginDataStartTelegramBotLoginSerializer; + get serializer => + _$gStartTelegramBotLoginDataStartTelegramBotLoginSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GStartTelegramBotLoginData_startTelegramBotLogin.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GStartTelegramBotLoginData_startTelegramBotLogin.serializer, + this, + ) as Map); static GStartTelegramBotLoginData_startTelegramBotLogin? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GStartTelegramBotLoginData_startTelegramBotLogin.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GStartTelegramBotLoginData_startTelegramBotLogin.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.req.gql.dart index 3e94264..f496571 100644 --- a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.req.gql.dart @@ -20,15 +20,13 @@ part 'start_telegram_bot_login.req.gql.g.dart'; abstract class GStartTelegramBotLoginReq implements Built, - _i1.OperationRequest< - _i2.GStartTelegramBotLoginData, - _i3.GStartTelegramBotLoginVars - > { + _i1.OperationRequest<_i2.GStartTelegramBotLoginData, + _i3.GStartTelegramBotLoginVars> { GStartTelegramBotLoginReq._(); - factory GStartTelegramBotLoginReq([ - void Function(GStartTelegramBotLoginReqBuilder b) updates, - ]) = _$GStartTelegramBotLoginReq; + factory GStartTelegramBotLoginReq( + [void Function(GStartTelegramBotLoginReqBuilder b) updates]) = + _$GStartTelegramBotLoginReq; static void _initializeBuilder(GStartTelegramBotLoginReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GStartTelegramBotLoginReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GStartTelegramBotLoginReq _i2.GStartTelegramBotLoginData? Function( _i2.GStartTelegramBotLoginData?, _i2.GStartTelegramBotLoginData?, - )? - get updateResult; + )? get updateResult; @override _i2.GStartTelegramBotLoginData? get optimisticResponse; @override @@ -82,21 +79,22 @@ abstract class GStartTelegramBotLoginReq data.toJson(); @override - _i1.OperationRequest< - _i2.GStartTelegramBotLoginData, - _i3.GStartTelegramBotLoginVars - > - transformOperation(_i4.Operation Function(_i4.Operation) transform) => + _i1.OperationRequest<_i2.GStartTelegramBotLoginData, + _i3.GStartTelegramBotLoginVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gStartTelegramBotLoginReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GStartTelegramBotLoginReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GStartTelegramBotLoginReq.serializer, + this, + ) as Map); - static GStartTelegramBotLoginReq? fromJson(Map json) => _i6 - .serializers - .deserializeWith(GStartTelegramBotLoginReq.serializer, json); + static GStartTelegramBotLoginReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GStartTelegramBotLoginReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.var.gql.dart index b407ce8..2da1968 100644 --- a/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/start_telegram_bot_login.var.gql.dart @@ -14,21 +14,21 @@ abstract class GStartTelegramBotLoginVars Built { GStartTelegramBotLoginVars._(); - factory GStartTelegramBotLoginVars([ - void Function(GStartTelegramBotLoginVarsBuilder b) updates, - ]) = _$GStartTelegramBotLoginVars; + factory GStartTelegramBotLoginVars( + [void Function(GStartTelegramBotLoginVarsBuilder b) updates]) = + _$GStartTelegramBotLoginVars; static Serializer get serializer => _$gStartTelegramBotLoginVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GStartTelegramBotLoginVars.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GStartTelegramBotLoginVars.serializer, + this, + ) as Map); - static GStartTelegramBotLoginVars? fromJson(Map json) => _i1 - .serializers - .deserializeWith(GStartTelegramBotLoginVars.serializer, json); + static GStartTelegramBotLoginVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStartTelegramBotLoginVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.ast.gql.dart b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.ast.gql.dart index c3203d0..f83c74a 100644 --- a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.ast.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.ast.gql.dart @@ -9,123 +9,115 @@ const VoiceExperiences = _i1.OperationDefinitionNode( name: _i1.NameNode(value: 'VoiceExperiences'), variableDefinitions: [], directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'voiceExperiences'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'durationSeconds'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'transcript'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'analysis'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'recordingPayload'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'promptHintsShown'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'place'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'user'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode( - selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'telegramId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'username'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'firstName'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ], - ), - ), - ], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'voiceExperiences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, ), - ), - ], - ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'durationSeconds'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'transcript'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'analysis'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'recordingPayload'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'promptHintsShown'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'place'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'telegramId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'username'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'firstName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), + ) + ]), ); const document = _i1.DocumentNode(definitions: [VoiceExperiences]); diff --git a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.data.gql.dart b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.data.gql.dart index f25f429..d9aef9f 100644 --- a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.data.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.data.gql.dart @@ -17,9 +17,9 @@ abstract class GVoiceExperiencesData implements Built { GVoiceExperiencesData._(); - factory GVoiceExperiencesData([ - void Function(GVoiceExperiencesDataBuilder b) updates, - ]) = _$GVoiceExperiencesData; + factory GVoiceExperiencesData( + [void Function(GVoiceExperiencesDataBuilder b) updates]) = + _$GVoiceExperiencesData; static void _initializeBuilder(GVoiceExperiencesDataBuilder b) => b..G__typename = 'Query'; @@ -30,29 +30,31 @@ abstract class GVoiceExperiencesData static Serializer get serializer => _$gVoiceExperiencesDataSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GVoiceExperiencesData.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GVoiceExperiencesData.serializer, + this, + ) as Map); static GVoiceExperiencesData? fromJson(Map json) => - _i1.serializers.deserializeWith(GVoiceExperiencesData.serializer, json); + _i1.serializers.deserializeWith( + GVoiceExperiencesData.serializer, + json, + ); } abstract class GVoiceExperiencesData_voiceExperiences implements - Built< - GVoiceExperiencesData_voiceExperiences, - GVoiceExperiencesData_voiceExperiencesBuilder - > { + Built { GVoiceExperiencesData_voiceExperiences._(); - factory GVoiceExperiencesData_voiceExperiences([ - void Function(GVoiceExperiencesData_voiceExperiencesBuilder b) updates, - ]) = _$GVoiceExperiencesData_voiceExperiences; + factory GVoiceExperiencesData_voiceExperiences( + [void Function(GVoiceExperiencesData_voiceExperiencesBuilder b) + updates]) = _$GVoiceExperiencesData_voiceExperiences; static void _initializeBuilder( - GVoiceExperiencesData_voiceExperiencesBuilder b, - ) => b..G__typename = 'VoiceExperience'; + GVoiceExperiencesData_voiceExperiencesBuilder b) => + b..G__typename = 'VoiceExperience'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -69,74 +71,65 @@ abstract class GVoiceExperiencesData_voiceExperiences static Serializer get serializer => _$gVoiceExperiencesDataVoiceExperiencesSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GVoiceExperiencesData_voiceExperiences.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GVoiceExperiencesData_voiceExperiences.serializer, + this, + ) as Map); static GVoiceExperiencesData_voiceExperiences? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GVoiceExperiencesData_voiceExperiences.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GVoiceExperiencesData_voiceExperiences.serializer, + json, + ); } abstract class GVoiceExperiencesData_voiceExperiences_place implements - Built< - GVoiceExperiencesData_voiceExperiences_place, - GVoiceExperiencesData_voiceExperiences_placeBuilder - > { + Built { GVoiceExperiencesData_voiceExperiences_place._(); - factory GVoiceExperiencesData_voiceExperiences_place([ - void Function(GVoiceExperiencesData_voiceExperiences_placeBuilder b) - updates, - ]) = _$GVoiceExperiencesData_voiceExperiences_place; + factory GVoiceExperiencesData_voiceExperiences_place( + [void Function(GVoiceExperiencesData_voiceExperiences_placeBuilder b) + updates]) = _$GVoiceExperiencesData_voiceExperiences_place; static void _initializeBuilder( - GVoiceExperiencesData_voiceExperiences_placeBuilder b, - ) => b..G__typename = 'Place'; + GVoiceExperiencesData_voiceExperiences_placeBuilder b) => + b..G__typename = 'Place'; @BuiltValueField(wireName: '__typename') String get G__typename; String get name; static Serializer - get serializer => _$gVoiceExperiencesDataVoiceExperiencesPlaceSerializer; + get serializer => _$gVoiceExperiencesDataVoiceExperiencesPlaceSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GVoiceExperiencesData_voiceExperiences_place.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GVoiceExperiencesData_voiceExperiences_place.serializer, + this, + ) as Map); static GVoiceExperiencesData_voiceExperiences_place? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GVoiceExperiencesData_voiceExperiences_place.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GVoiceExperiencesData_voiceExperiences_place.serializer, + json, + ); } abstract class GVoiceExperiencesData_voiceExperiences_user implements - Built< - GVoiceExperiencesData_voiceExperiences_user, - GVoiceExperiencesData_voiceExperiences_userBuilder - > { + Built { GVoiceExperiencesData_voiceExperiences_user._(); - factory GVoiceExperiencesData_voiceExperiences_user([ - void Function(GVoiceExperiencesData_voiceExperiences_userBuilder b) updates, - ]) = _$GVoiceExperiencesData_voiceExperiences_user; + factory GVoiceExperiencesData_voiceExperiences_user( + [void Function(GVoiceExperiencesData_voiceExperiences_userBuilder b) + updates]) = _$GVoiceExperiencesData_voiceExperiences_user; static void _initializeBuilder( - GVoiceExperiencesData_voiceExperiences_userBuilder b, - ) => b..G__typename = 'User'; + GVoiceExperiencesData_voiceExperiences_userBuilder b) => + b..G__typename = 'User'; @BuiltValueField(wireName: '__typename') String get G__typename; @@ -144,19 +137,17 @@ abstract class GVoiceExperiencesData_voiceExperiences_user String? get username; String? get firstName; static Serializer - get serializer => _$gVoiceExperiencesDataVoiceExperiencesUserSerializer; + get serializer => _$gVoiceExperiencesDataVoiceExperiencesUserSerializer; - Map toJson() => - (_i1.serializers.serializeWith( - GVoiceExperiencesData_voiceExperiences_user.serializer, - this, - ) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GVoiceExperiencesData_voiceExperiences_user.serializer, + this, + ) as Map); static GVoiceExperiencesData_voiceExperiences_user? fromJson( - Map json, - ) => _i1.serializers.deserializeWith( - GVoiceExperiencesData_voiceExperiences_user.serializer, - json, - ); + Map json) => + _i1.serializers.deserializeWith( + GVoiceExperiencesData_voiceExperiences_user.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.req.gql.dart b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.req.gql.dart index 7b6ea4b..3274f91 100644 --- a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.req.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.req.gql.dart @@ -20,15 +20,13 @@ part 'voice_experiences.req.gql.g.dart'; abstract class GVoiceExperiencesReq implements Built, - _i1.OperationRequest< - _i2.GVoiceExperiencesData, - _i3.GVoiceExperiencesVars - > { + _i1.OperationRequest<_i2.GVoiceExperiencesData, + _i3.GVoiceExperiencesVars> { GVoiceExperiencesReq._(); - factory GVoiceExperiencesReq([ - void Function(GVoiceExperiencesReqBuilder b) updates, - ]) = _$GVoiceExperiencesReq; + factory GVoiceExperiencesReq( + [void Function(GVoiceExperiencesReqBuilder b) updates]) = + _$GVoiceExperiencesReq; static void _initializeBuilder(GVoiceExperiencesReqBuilder b) => b ..operation = _i4.Operation( @@ -43,10 +41,10 @@ abstract class GVoiceExperiencesReq _i4.Operation get operation; @override _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); @override String? get requestId; @@ -55,8 +53,7 @@ abstract class GVoiceExperiencesReq _i2.GVoiceExperiencesData? Function( _i2.GVoiceExperiencesData?, _i2.GVoiceExperiencesData?, - )? - get updateResult; + )? get updateResult; @override _i2.GVoiceExperiencesData? get optimisticResponse; @override @@ -83,16 +80,20 @@ abstract class GVoiceExperiencesReq @override _i1.OperationRequest<_i2.GVoiceExperiencesData, _i3.GVoiceExperiencesVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); static Serializer get serializer => _$gVoiceExperiencesReqSerializer; - Map toJson() => - (_i6.serializers.serializeWith(GVoiceExperiencesReq.serializer, this) - as Map); + Map toJson() => (_i6.serializers.serializeWith( + GVoiceExperiencesReq.serializer, + this, + ) as Map); static GVoiceExperiencesReq? fromJson(Map json) => - _i6.serializers.deserializeWith(GVoiceExperiencesReq.serializer, json); + _i6.serializers.deserializeWith( + GVoiceExperiencesReq.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.var.gql.dart b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.var.gql.dart index 03732f1..708b559 100644 --- a/lib/features/mapflow/data/graphql/__generated__/voice_experiences.var.gql.dart +++ b/lib/features/mapflow/data/graphql/__generated__/voice_experiences.var.gql.dart @@ -13,17 +13,21 @@ abstract class GVoiceExperiencesVars implements Built { GVoiceExperiencesVars._(); - factory GVoiceExperiencesVars([ - void Function(GVoiceExperiencesVarsBuilder b) updates, - ]) = _$GVoiceExperiencesVars; + factory GVoiceExperiencesVars( + [void Function(GVoiceExperiencesVarsBuilder b) updates]) = + _$GVoiceExperiencesVars; static Serializer get serializer => _$gVoiceExperiencesVarsSerializer; - Map toJson() => - (_i1.serializers.serializeWith(GVoiceExperiencesVars.serializer, this) - as Map); + Map toJson() => (_i1.serializers.serializeWith( + GVoiceExperiencesVars.serializer, + this, + ) as Map); static GVoiceExperiencesVars? fromJson(Map json) => - _i1.serializers.deserializeWith(GVoiceExperiencesVars.serializer, json); + _i1.serializers.deserializeWith( + GVoiceExperiencesVars.serializer, + json, + ); } diff --git a/lib/features/mapflow/data/graphql/place.graphql b/lib/features/mapflow/data/graphql/place.graphql new file mode 100644 index 0000000..9377672 --- /dev/null +++ b/lib/features/mapflow/data/graphql/place.graphql @@ -0,0 +1,16 @@ +query Place($id: ID!) { + place(id: $id) { + id + googlePlaceId + name + latitude + longitude + googlePrimaryType + googleTypes + googleRegularOpeningHours + googleCurrentOpeningHours + photoUrls + traits + isFavorite + } +} diff --git a/lib/features/mapflow/data/mapflow_data_mappers.dart b/lib/features/mapflow/data/mapflow_data_mappers.dart index 8ce7269..855411f 100644 --- a/lib/features/mapflow/data/mapflow_data_mappers.dart +++ b/lib/features/mapflow/data/mapflow_data_mappers.dart @@ -9,6 +9,7 @@ import 'graphql/__generated__/complete_telegram_bot_login.data.gql.dart'; import 'graphql/__generated__/favorite_places.data.gql.dart'; import 'graphql/__generated__/me.data.gql.dart'; import 'graphql/__generated__/nearby_places.data.gql.dart'; +import 'graphql/__generated__/place.data.gql.dart'; import 'graphql/__generated__/places.data.gql.dart'; import 'graphql/__generated__/recommend_places_by_voice.data.gql.dart'; import 'graphql/__generated__/remove_favorite_place.data.gql.dart'; @@ -114,6 +115,28 @@ PlaceRecommendation placeRecommendationFromPlace(GPlacesData_places place) { ); } +PlaceRecommendation placeRecommendationFromPlaceDetails( + GPlaceData_place place, +) { + return PlaceRecommendation( + id: place.id, + googlePlaceId: place.googlePlaceId, + name: place.name, + area: '', + photoUrls: place.photoUrls.toList().cast(), + coordinate: LatLng(place.latitude, place.longitude), + traits: _traitsFromTags(place.traits), + googlePrimaryType: place.googlePrimaryType, + googleTypes: place.googleTypes.toList().cast(), + googleBusinessStatus: null, + googleRating: null, + googleUserRatingCount: null, + googleRegularOpeningHours: _jsonMap(place.googleRegularOpeningHours), + googleCurrentOpeningHours: _jsonMap(place.googleCurrentOpeningHours), + isFavorite: place.isFavorite, + ); +} + PlaceRecommendation placeRecommendationFromNearbyPlace( GNearbyPlacesData_nearbyPlaces place, ) { diff --git a/lib/features/mapflow/data/places_repository.dart b/lib/features/mapflow/data/places_repository.dart index 52d98da..7a21889 100644 --- a/lib/features/mapflow/data/places_repository.dart +++ b/lib/features/mapflow/data/places_repository.dart @@ -4,6 +4,7 @@ import '../domain/place_models.dart'; import 'graphql/__generated__/add_favorite_place.req.gql.dart'; import 'graphql/__generated__/favorite_places.req.gql.dart'; import 'graphql/__generated__/nearby_places.req.gql.dart'; +import 'graphql/__generated__/place.req.gql.dart'; import 'graphql/__generated__/places.req.gql.dart'; import 'graphql/__generated__/recommend_places_by_voice.req.gql.dart'; import 'graphql/__generated__/remove_favorite_place.req.gql.dart'; @@ -21,6 +22,15 @@ class PlacesRepository { return data.places.map(placeRecommendationFromPlace).toList(); } + Future fetchPlace(String placeId) async { + final data = await _client.request( + GPlaceReq((b) { + b.vars.id = placeId; + }), + ); + return placeRecommendationFromPlaceDetails(data.place); + } + Future> fetchFavoritePlaces() async { final data = await _client.request(GFavoritePlacesReq()); return data.favoritePlaces diff --git a/lib/features/mapflow/presentation/mapflow_shell.dart b/lib/features/mapflow/presentation/mapflow_shell.dart index 1a309ea..3baea5f 100644 --- a/lib/features/mapflow/presentation/mapflow_shell.dart +++ b/lib/features/mapflow/presentation/mapflow_shell.dart @@ -223,17 +223,31 @@ class _MapContent extends StatelessWidget { void _selectAndShowPlace(BuildContext context, PlaceRecommendation place) { final placeCubit = context.read()..selectPlace(place.id); + final placeDetails = placeCubit.loadPlaceDetails(place); unawaited( showModalBottomSheet( context: context, isScrollControlled: true, + isDismissible: true, + enableDrag: true, showDragHandle: true, builder: (sheetContext) { - return _PlaceDetailsSheet( - place: place, - onFavoriteToggle: () => placeCubit.toggleFavorite(place), - onPhotoTap: (index) => - _openPhotoViewer(sheetContext, place.photoUrls, index), + return DraggableScrollableSheet( + expand: false, + initialChildSize: 0.64, + minChildSize: 0.24, + maxChildSize: 0.9, + builder: (_, scrollController) { + return _PlaceDetailsSheet( + place: place, + details: placeDetails, + scrollController: scrollController, + onFavoriteToggle: (selectedPlace) => + placeCubit.toggleFavorite(selectedPlace), + onPhotoTap: (photoUrls, index) => + _openPhotoViewer(sheetContext, photoUrls, index), + ); + }, ); }, ), @@ -1094,13 +1108,17 @@ class _PlaceCarousel extends StatelessWidget { class _PlaceDetailsSheet extends StatefulWidget { const _PlaceDetailsSheet({ required this.place, + required this.details, + required this.scrollController, required this.onFavoriteToggle, required this.onPhotoTap, }); final PlaceRecommendation place; - final VoidCallback onFavoriteToggle; - final ValueChanged onPhotoTap; + final Future details; + final ScrollController scrollController; + final ValueChanged onFavoriteToggle; + final void Function(List photoUrls, int index) onPhotoTap; @override State<_PlaceDetailsSheet> createState() => _PlaceDetailsSheetState(); @@ -1114,93 +1132,110 @@ class _PlaceDetailsSheetState extends State<_PlaceDetailsSheet> { Widget build(BuildContext context) { final tokens = context.mapflowTokens; final colorScheme = Theme.of(context).colorScheme; - final openingSummary = _openingSummary(widget.place); - final weekdayDescriptions = _weekdayDescriptions(widget.place); - final typeLabel = _placeTypeLabel(widget.place); + return FutureBuilder( + future: widget.details, + builder: (context, snapshot) { + final place = snapshot.data ?? widget.place; + final loadingDetails = + snapshot.connectionState != ConnectionState.done && + place.photoUrls.isEmpty; + final openingSummary = _openingSummary(place); + final weekdayDescriptions = _weekdayDescriptions(place); + final typeLabel = _placeTypeLabel(place); - return SafeArea( - top: false, - child: ConstrainedBox( - constraints: BoxConstraints( - maxHeight: MediaQuery.sizeOf(context).height * 0.86, - ), - child: ListView( - padding: const EdgeInsets.fromLTRB(16, 0, 16, 18), - children: [ - _PlaceDetailsPhotos( - photoUrls: widget.place.photoUrls, - onPhotoTap: widget.onPhotoTap, - ), - const SizedBox(height: 14), - Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - widget.place.name, - style: Theme.of(context).textTheme.headlineSmall - ?.copyWith( - fontWeight: FontWeight.w900, - letterSpacing: 0, - ), - ), - if (typeLabel != null) ...[ - const SizedBox(height: 4), - Text( - typeLabel, - style: Theme.of(context).textTheme.bodyMedium - ?.copyWith(color: colorScheme.onSurfaceVariant), - ), - ], - ], - ), - ), - IconButton.filledTonal( - onPressed: _toggleFavorite, - icon: Icon( - _isFavorite ? Icons.favorite : Icons.favorite_border, - ), - tooltip: 'Избранное', - ), - ], - ), - const SizedBox(height: 12), - if (openingSummary != null || weekdayDescriptions.isNotEmpty) - _OpeningHoursTile( - summary: openingSummary, - weekdayDescriptions: weekdayDescriptions, - expanded: _hoursExpanded, - onExpansionChanged: (value) => - setState(() => _hoursExpanded = value), + return SafeArea( + top: false, + child: ListView( + controller: widget.scrollController, + padding: const EdgeInsets.fromLTRB(16, 0, 16, 18), + children: [ + _PlaceDetailsPhotos( + photoUrls: place.photoUrls, + loading: loadingDetails, + onPhotoTap: (index) => + widget.onPhotoTap(place.photoUrls, index), ), - if (widget.place.traits.isNotEmpty) ...[ - const SizedBox(height: 16), - Wrap( - spacing: 8, - runSpacing: 8, + const SizedBox(height: 14), + Row( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - for (final trait in widget.place.traits) - Chip( - avatar: Icon(trait.icon, size: 16), - label: Text(trait.label), - side: BorderSide(color: tokens.mapPanelBorder), - backgroundColor: tokens.mapPanel, + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + place.name, + style: Theme.of(context).textTheme.headlineSmall + ?.copyWith( + fontWeight: FontWeight.w900, + letterSpacing: 0, + ), + ), + if (typeLabel != null) ...[ + const SizedBox(height: 4), + Text( + typeLabel, + style: Theme.of(context).textTheme.bodyMedium + ?.copyWith(color: colorScheme.onSurfaceVariant), + ), + ], + ], ), + ), + IconButton.filledTonal( + onPressed: _toggleFavorite, + icon: Icon( + _isFavorite ? Icons.favorite : Icons.favorite_border, + ), + tooltip: 'Избранное', + ), ], ), + const SizedBox(height: 12), + if (snapshot.hasError) ...[ + Text( + 'Не удалось загрузить детали заведения', + style: Theme.of(context).textTheme.bodyMedium?.copyWith( + color: colorScheme.error, + fontWeight: FontWeight.w700, + ), + ), + const SizedBox(height: 12), + ], + if (openingSummary != null || weekdayDescriptions.isNotEmpty) + _OpeningHoursTile( + summary: openingSummary, + weekdayDescriptions: weekdayDescriptions, + expanded: _hoursExpanded, + onExpansionChanged: (value) => + setState(() => _hoursExpanded = value), + ), + if (place.traits.isNotEmpty) ...[ + const SizedBox(height: 16), + Wrap( + spacing: 8, + runSpacing: 8, + children: [ + for (final trait in place.traits) + Chip( + avatar: Icon(trait.icon, size: 16), + label: Text(trait.label), + side: BorderSide(color: tokens.mapPanelBorder), + backgroundColor: tokens.mapPanel, + ), + ], + ), + ], ], - ], - ), - ), + ), + ); + }, ); } void _toggleFavorite() { setState(() => _isFavorite = !_isFavorite); - widget.onFavoriteToggle(); + widget.onFavoriteToggle(widget.place); } } @@ -1274,10 +1309,12 @@ class _OpeningHoursTile extends StatelessWidget { class _PlaceDetailsPhotos extends StatelessWidget { const _PlaceDetailsPhotos({ required this.photoUrls, + required this.loading, required this.onPhotoTap, }); final List photoUrls; + final bool loading; final ValueChanged onPhotoTap; @override @@ -1292,10 +1329,20 @@ class _PlaceDetailsPhotos extends StatelessWidget { color: tokens.mapPanelBorder, borderRadius: BorderRadius.circular(tokens.panelRadius), ), - child: Icon( - Icons.place_outlined, - color: colorScheme.onSurfaceVariant, - size: 40, + child: Center( + child: loading + ? SizedBox.square( + dimension: 28, + child: CircularProgressIndicator( + strokeWidth: 2.4, + color: colorScheme.primary, + ), + ) + : Icon( + Icons.place_outlined, + color: colorScheme.onSurfaceVariant, + size: 40, + ), ), ), );