This commit is contained in:
+1
-1
Submodule graphql-contracts updated: d694c7d78c...57dcd3aba8
@@ -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<PlaceViewState> {
|
||||
|
||||
final results = await Future.wait<Object?>([
|
||||
_authRepository.authenticateTelegram(),
|
||||
_location.resolve(),
|
||||
_placesRepository.fetchPlaces(),
|
||||
]);
|
||||
final currentUser = results[0] as AppUser;
|
||||
final userCoordinate = results[1] as LatLng?;
|
||||
final places = results[2] as List<PlaceRecommendation>;
|
||||
final places = results[1] as List<PlaceRecommendation>;
|
||||
emit(
|
||||
PlaceViewState.ready(
|
||||
PlaceState(
|
||||
@@ -168,13 +168,14 @@ class PlaceCubit extends Cubit<PlaceViewState> {
|
||||
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<PlaceViewState> {
|
||||
);
|
||||
}
|
||||
|
||||
Future<PlaceRecommendation> 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<void> toggleFavorite(PlaceRecommendation place) async {
|
||||
final value = _requireReady();
|
||||
final updated = place.isFavorite
|
||||
@@ -336,6 +359,15 @@ class PlaceCubit extends Cubit<PlaceViewState> {
|
||||
];
|
||||
}
|
||||
|
||||
Future<void> _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) {
|
||||
|
||||
+134
-137
@@ -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]);
|
||||
|
||||
+46
-50
@@ -17,9 +17,9 @@ abstract class GAddFavoritePlaceData
|
||||
implements Built<GAddFavoritePlaceData, GAddFavoritePlaceDataBuilder> {
|
||||
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<GAddFavoritePlaceData> get serializer =>
|
||||
_$gAddFavoritePlaceDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GAddFavoritePlaceData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAddFavoritePlaceData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAddFavoritePlaceData? fromJson(Map<String, dynamic> 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,
|
||||
GAddFavoritePlaceData_addFavoritePlaceBuilder> {
|
||||
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<GAddFavoritePlaceData_addFavoritePlace> get serializer =>
|
||||
_$gAddFavoritePlaceDataAddFavoritePlaceSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAddFavoritePlaceData_addFavoritePlace? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GAddFavoritePlaceData_addFavoritePlace_experiencesBuilder> {
|
||||
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<GAddFavoritePlaceData_addFavoritePlace_experiences>
|
||||
get serializer =>
|
||||
_$gAddFavoritePlaceDataAddFavoritePlaceExperiencesSerializer;
|
||||
get serializer =>
|
||||
_$gAddFavoritePlaceDataAddFavoritePlaceExperiencesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace_experiences.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace_experiences.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAddFavoritePlaceData_addFavoritePlace_experiences? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GAddFavoritePlaceData_addFavoritePlace_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+20
-19
@@ -20,15 +20,13 @@ part 'add_favorite_place.req.gql.g.dart';
|
||||
abstract class GAddFavoritePlaceReq
|
||||
implements
|
||||
Built<GAddFavoritePlaceReq, GAddFavoritePlaceReqBuilder>,
|
||||
_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<GAddFavoritePlaceReq> get serializer =>
|
||||
_$gAddFavoritePlaceReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GAddFavoritePlaceReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GAddFavoritePlaceReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAddFavoritePlaceReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(GAddFavoritePlaceReq.serializer, json);
|
||||
_i6.serializers.deserializeWith(
|
||||
GAddFavoritePlaceReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+11
-7
@@ -13,18 +13,22 @@ abstract class GAddFavoritePlaceVars
|
||||
implements Built<GAddFavoritePlaceVars, GAddFavoritePlaceVarsBuilder> {
|
||||
GAddFavoritePlaceVars._();
|
||||
|
||||
factory GAddFavoritePlaceVars([
|
||||
void Function(GAddFavoritePlaceVarsBuilder b) updates,
|
||||
]) = _$GAddFavoritePlaceVars;
|
||||
factory GAddFavoritePlaceVars(
|
||||
[void Function(GAddFavoritePlaceVarsBuilder b) updates]) =
|
||||
_$GAddFavoritePlaceVars;
|
||||
|
||||
String get placeId;
|
||||
static Serializer<GAddFavoritePlaceVars> get serializer =>
|
||||
_$gAddFavoritePlaceVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GAddFavoritePlaceVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAddFavoritePlaceVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAddFavoritePlaceVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(GAddFavoritePlaceVars.serializer, json);
|
||||
_i1.serializers.deserializeWith(
|
||||
GAddFavoritePlaceVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+75
-81
@@ -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]);
|
||||
|
||||
+49
-54
@@ -14,9 +14,9 @@ abstract class GAuthenticateTelegramData
|
||||
Built<GAuthenticateTelegramData, GAuthenticateTelegramDataBuilder> {
|
||||
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<GAuthenticateTelegramData> get serializer =>
|
||||
_$gAuthenticateTelegramDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GAuthenticateTelegramData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramData? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GAuthenticateTelegramData.serializer, json);
|
||||
static GAuthenticateTelegramData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GAuthenticateTelegramData_authenticateTelegram
|
||||
implements
|
||||
Built<
|
||||
GAuthenticateTelegramData_authenticateTelegram,
|
||||
GAuthenticateTelegramData_authenticateTelegramBuilder
|
||||
> {
|
||||
Built<GAuthenticateTelegramData_authenticateTelegram,
|
||||
GAuthenticateTelegramData_authenticateTelegramBuilder> {
|
||||
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<GAuthenticateTelegramData_authenticateTelegram>
|
||||
get serializer => _$gAuthenticateTelegramDataAuthenticateTelegramSerializer;
|
||||
get serializer =>
|
||||
_$gAuthenticateTelegramDataAuthenticateTelegramSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramData_authenticateTelegram? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GAuthenticateTelegramData_authenticateTelegram_userBuilder> {
|
||||
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<GAuthenticateTelegramData_authenticateTelegram_user>
|
||||
get serializer =>
|
||||
_$gAuthenticateTelegramDataAuthenticateTelegramUserSerializer;
|
||||
get serializer =>
|
||||
_$gAuthenticateTelegramDataAuthenticateTelegramUserSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram_user.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram_user.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramData_authenticateTelegram_user? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram_user.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramData_authenticateTelegram_user.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+22
-24
@@ -20,15 +20,13 @@ part 'authenticate_telegram.req.gql.g.dart';
|
||||
abstract class GAuthenticateTelegramReq
|
||||
implements
|
||||
Built<GAuthenticateTelegramReq, GAuthenticateTelegramReqBuilder>,
|
||||
_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<GAuthenticateTelegramReq> get serializer =>
|
||||
_$gAuthenticateTelegramReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GAuthenticateTelegramReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GAuthenticateTelegramReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramReq? fromJson(Map<String, dynamic> json) => _i6
|
||||
.serializers
|
||||
.deserializeWith(GAuthenticateTelegramReq.serializer, json);
|
||||
static GAuthenticateTelegramReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
GAuthenticateTelegramReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+12
-9
@@ -16,19 +16,22 @@ abstract class GAuthenticateTelegramVars
|
||||
Built<GAuthenticateTelegramVars, GAuthenticateTelegramVarsBuilder> {
|
||||
GAuthenticateTelegramVars._();
|
||||
|
||||
factory GAuthenticateTelegramVars([
|
||||
void Function(GAuthenticateTelegramVarsBuilder b) updates,
|
||||
]) = _$GAuthenticateTelegramVars;
|
||||
factory GAuthenticateTelegramVars(
|
||||
[void Function(GAuthenticateTelegramVarsBuilder b) updates]) =
|
||||
_$GAuthenticateTelegramVars;
|
||||
|
||||
_i1.GAuthenticateTelegramInput get input;
|
||||
static Serializer<GAuthenticateTelegramVars> get serializer =>
|
||||
_$gAuthenticateTelegramVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(GAuthenticateTelegramVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramVars? fromJson(Map<String, dynamic> json) => _i2
|
||||
.serializers
|
||||
.deserializeWith(GAuthenticateTelegramVars.serializer, json);
|
||||
static GAuthenticateTelegramVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
GAuthenticateTelegramVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+75
-81
@@ -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]);
|
||||
|
||||
+53
-66
@@ -11,15 +11,13 @@ part 'authenticate_telegram_login.data.gql.g.dart';
|
||||
|
||||
abstract class GAuthenticateTelegramLoginData
|
||||
implements
|
||||
Built<
|
||||
GAuthenticateTelegramLoginData,
|
||||
GAuthenticateTelegramLoginDataBuilder
|
||||
> {
|
||||
Built<GAuthenticateTelegramLoginData,
|
||||
GAuthenticateTelegramLoginDataBuilder> {
|
||||
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<GAuthenticateTelegramLoginData> get serializer =>
|
||||
_$gAuthenticateTelegramLoginDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginData.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramLoginData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
@@ -47,63 +43,56 @@ abstract class GAuthenticateTelegramLoginData
|
||||
|
||||
abstract class GAuthenticateTelegramLoginData_authenticateTelegramLogin
|
||||
implements
|
||||
Built<
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin,
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder
|
||||
> {
|
||||
Built<GAuthenticateTelegramLoginData_authenticateTelegramLogin,
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLoginBuilder> {
|
||||
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<GAuthenticateTelegramLoginData_authenticateTelegramLogin>
|
||||
get serializer =>
|
||||
_$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginSerializer;
|
||||
get serializer =>
|
||||
_$gAuthenticateTelegramLoginDataAuthenticateTelegramLoginSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramLoginData_authenticateTelegramLogin? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin_userBuilder> {
|
||||
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<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin_user
|
||||
.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin_user
|
||||
.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramLoginData_authenticateTelegramLogin_user?
|
||||
fromJson(Map<String, dynamic> json) => _i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin_user.serializer,
|
||||
json,
|
||||
);
|
||||
fromJson(Map<String, dynamic> json) => _i1.serializers.deserializeWith(
|
||||
GAuthenticateTelegramLoginData_authenticateTelegramLogin_user
|
||||
.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+19
-28
@@ -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<GAuthenticateTelegramLoginReq,
|
||||
GAuthenticateTelegramLoginReqBuilder>,
|
||||
_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<GAuthenticateTelegramLoginReq> get serializer =>
|
||||
_$gAuthenticateTelegramLoginReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginReq.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramLoginReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
|
||||
+9
-13
@@ -13,26 +13,22 @@ part 'authenticate_telegram_login.var.gql.g.dart';
|
||||
|
||||
abstract class GAuthenticateTelegramLoginVars
|
||||
implements
|
||||
Built<
|
||||
GAuthenticateTelegramLoginVars,
|
||||
GAuthenticateTelegramLoginVarsBuilder
|
||||
> {
|
||||
Built<GAuthenticateTelegramLoginVars,
|
||||
GAuthenticateTelegramLoginVarsBuilder> {
|
||||
GAuthenticateTelegramLoginVars._();
|
||||
|
||||
factory GAuthenticateTelegramLoginVars([
|
||||
void Function(GAuthenticateTelegramLoginVarsBuilder b) updates,
|
||||
]) = _$GAuthenticateTelegramLoginVars;
|
||||
factory GAuthenticateTelegramLoginVars(
|
||||
[void Function(GAuthenticateTelegramLoginVarsBuilder b) updates]) =
|
||||
_$GAuthenticateTelegramLoginVars;
|
||||
|
||||
_i1.GAuthenticateTelegramLoginInput get input;
|
||||
static Serializer<GAuthenticateTelegramLoginVars> get serializer =>
|
||||
_$gAuthenticateTelegramLoginVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginVars.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramLoginVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
|
||||
+75
-81
@@ -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]);
|
||||
|
||||
+50
-65
@@ -11,15 +11,13 @@ part 'complete_telegram_bot_login.data.gql.g.dart';
|
||||
|
||||
abstract class GCompleteTelegramBotLoginData
|
||||
implements
|
||||
Built<
|
||||
GCompleteTelegramBotLoginData,
|
||||
GCompleteTelegramBotLoginDataBuilder
|
||||
> {
|
||||
Built<GCompleteTelegramBotLoginData,
|
||||
GCompleteTelegramBotLoginDataBuilder> {
|
||||
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<GCompleteTelegramBotLoginData> get serializer =>
|
||||
_$gCompleteTelegramBotLoginDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginData.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCompleteTelegramBotLoginData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
@@ -47,64 +43,56 @@ abstract class GCompleteTelegramBotLoginData
|
||||
|
||||
abstract class GCompleteTelegramBotLoginData_completeTelegramBotLogin
|
||||
implements
|
||||
Built<
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin,
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder
|
||||
> {
|
||||
Built<GCompleteTelegramBotLoginData_completeTelegramBotLogin,
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLoginBuilder> {
|
||||
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<GCompleteTelegramBotLoginData_completeTelegramBotLogin>
|
||||
get serializer =>
|
||||
_$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginSerializer;
|
||||
get serializer =>
|
||||
_$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCompleteTelegramBotLoginData_completeTelegramBotLogin? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin_userBuilder> {
|
||||
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<GCompleteTelegramBotLoginData_completeTelegramBotLogin_user>
|
||||
get serializer =>
|
||||
_$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginUserSerializer;
|
||||
get serializer =>
|
||||
_$gCompleteTelegramBotLoginDataCompleteTelegramBotLoginUserSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin_user
|
||||
.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCompleteTelegramBotLoginData_completeTelegramBotLogin_user? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GCompleteTelegramBotLoginData_completeTelegramBotLogin_user.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+19
-28
@@ -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<GCompleteTelegramBotLoginReq,
|
||||
GCompleteTelegramBotLoginReqBuilder>,
|
||||
_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<GCompleteTelegramBotLoginReq> get serializer =>
|
||||
_$gCompleteTelegramBotLoginReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginReq.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCompleteTelegramBotLoginReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
|
||||
+9
-13
@@ -11,26 +11,22 @@ part 'complete_telegram_bot_login.var.gql.g.dart';
|
||||
|
||||
abstract class GCompleteTelegramBotLoginVars
|
||||
implements
|
||||
Built<
|
||||
GCompleteTelegramBotLoginVars,
|
||||
GCompleteTelegramBotLoginVarsBuilder
|
||||
> {
|
||||
Built<GCompleteTelegramBotLoginVars,
|
||||
GCompleteTelegramBotLoginVarsBuilder> {
|
||||
GCompleteTelegramBotLoginVars._();
|
||||
|
||||
factory GCompleteTelegramBotLoginVars([
|
||||
void Function(GCompleteTelegramBotLoginVarsBuilder b) updates,
|
||||
]) = _$GCompleteTelegramBotLoginVars;
|
||||
factory GCompleteTelegramBotLoginVars(
|
||||
[void Function(GCompleteTelegramBotLoginVarsBuilder b) updates]) =
|
||||
_$GCompleteTelegramBotLoginVars;
|
||||
|
||||
String get token;
|
||||
static Serializer<GCompleteTelegramBotLoginVars> get serializer =>
|
||||
_$gCompleteTelegramBotLoginVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginVars.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GCompleteTelegramBotLoginVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCompleteTelegramBotLoginVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
|
||||
+23
-27
@@ -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]);
|
||||
|
||||
+30
-34
@@ -14,9 +14,9 @@ abstract class GCreateVoiceExperienceData
|
||||
Built<GCreateVoiceExperienceData, GCreateVoiceExperienceDataBuilder> {
|
||||
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<GCreateVoiceExperienceData> get serializer =>
|
||||
_$gCreateVoiceExperienceDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GCreateVoiceExperienceData.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GCreateVoiceExperienceData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCreateVoiceExperienceData? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GCreateVoiceExperienceData.serializer, json);
|
||||
static GCreateVoiceExperienceData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GCreateVoiceExperienceData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GCreateVoiceExperienceData_createVoiceExperience
|
||||
implements
|
||||
Built<
|
||||
GCreateVoiceExperienceData_createVoiceExperience,
|
||||
GCreateVoiceExperienceData_createVoiceExperienceBuilder
|
||||
> {
|
||||
Built<GCreateVoiceExperienceData_createVoiceExperience,
|
||||
GCreateVoiceExperienceData_createVoiceExperienceBuilder> {
|
||||
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<GCreateVoiceExperienceData_createVoiceExperience>
|
||||
get serializer => _$gCreateVoiceExperienceDataCreateVoiceExperienceSerializer;
|
||||
get serializer =>
|
||||
_$gCreateVoiceExperienceDataCreateVoiceExperienceSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GCreateVoiceExperienceData_createVoiceExperience.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GCreateVoiceExperienceData_createVoiceExperience.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCreateVoiceExperienceData_createVoiceExperience? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GCreateVoiceExperienceData_createVoiceExperience.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GCreateVoiceExperienceData_createVoiceExperience.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+22
-24
@@ -20,15 +20,13 @@ part 'create_voice_experience.req.gql.g.dart';
|
||||
abstract class GCreateVoiceExperienceReq
|
||||
implements
|
||||
Built<GCreateVoiceExperienceReq, GCreateVoiceExperienceReqBuilder>,
|
||||
_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<GCreateVoiceExperienceReq> get serializer =>
|
||||
_$gCreateVoiceExperienceReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GCreateVoiceExperienceReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GCreateVoiceExperienceReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCreateVoiceExperienceReq? fromJson(Map<String, dynamic> json) => _i6
|
||||
.serializers
|
||||
.deserializeWith(GCreateVoiceExperienceReq.serializer, json);
|
||||
static GCreateVoiceExperienceReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
GCreateVoiceExperienceReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+12
-12
@@ -16,22 +16,22 @@ abstract class GCreateVoiceExperienceVars
|
||||
Built<GCreateVoiceExperienceVars, GCreateVoiceExperienceVarsBuilder> {
|
||||
GCreateVoiceExperienceVars._();
|
||||
|
||||
factory GCreateVoiceExperienceVars([
|
||||
void Function(GCreateVoiceExperienceVarsBuilder b) updates,
|
||||
]) = _$GCreateVoiceExperienceVars;
|
||||
factory GCreateVoiceExperienceVars(
|
||||
[void Function(GCreateVoiceExperienceVarsBuilder b) updates]) =
|
||||
_$GCreateVoiceExperienceVars;
|
||||
|
||||
_i1.GCreateVoiceExperienceInput get input;
|
||||
static Serializer<GCreateVoiceExperienceVars> get serializer =>
|
||||
_$gCreateVoiceExperienceVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GCreateVoiceExperienceVars.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GCreateVoiceExperienceVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCreateVoiceExperienceVars? fromJson(Map<String, dynamic> json) => _i2
|
||||
.serializers
|
||||
.deserializeWith(GCreateVoiceExperienceVars.serializer, json);
|
||||
static GCreateVoiceExperienceVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
GCreateVoiceExperienceVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+124
-130
@@ -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]);
|
||||
|
||||
+43
-47
@@ -17,9 +17,9 @@ abstract class GFavoritePlacesData
|
||||
implements Built<GFavoritePlacesData, GFavoritePlacesDataBuilder> {
|
||||
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<GFavoritePlacesData> get serializer =>
|
||||
_$gFavoritePlacesDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GFavoritePlacesData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GFavoritePlacesData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GFavoritePlacesData? fromJson(Map<String, dynamic> 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,
|
||||
GFavoritePlacesData_favoritePlacesBuilder> {
|
||||
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<GFavoritePlacesData_favoritePlaces> get serializer =>
|
||||
_$gFavoritePlacesDataFavoritePlacesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GFavoritePlacesData_favoritePlaces.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GFavoritePlacesData_favoritePlaces.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GFavoritePlacesData_favoritePlaces? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GFavoritePlacesData_favoritePlaces.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GFavoritePlacesData_favoritePlaces_experiencesBuilder> {
|
||||
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<GFavoritePlacesData_favoritePlaces_experiences>
|
||||
get serializer => _$gFavoritePlacesDataFavoritePlacesExperiencesSerializer;
|
||||
get serializer =>
|
||||
_$gFavoritePlacesDataFavoritePlacesExperiencesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GFavoritePlacesData_favoritePlaces_experiences.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GFavoritePlacesData_favoritePlaces_experiences.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GFavoritePlacesData_favoritePlaces_experiences? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GFavoritePlacesData_favoritePlaces_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GFavoritePlacesData_favoritePlaces_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+18
-15
@@ -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<GFavoritePlacesReq> get serializer =>
|
||||
_$gFavoritePlacesReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GFavoritePlacesReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GFavoritePlacesReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GFavoritePlacesReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(GFavoritePlacesReq.serializer, json);
|
||||
_i6.serializers.deserializeWith(
|
||||
GFavoritePlacesReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+11
-7
@@ -13,17 +13,21 @@ abstract class GFavoritePlacesVars
|
||||
implements Built<GFavoritePlacesVars, GFavoritePlacesVarsBuilder> {
|
||||
GFavoritePlacesVars._();
|
||||
|
||||
factory GFavoritePlacesVars([
|
||||
void Function(GFavoritePlacesVarsBuilder b) updates,
|
||||
]) = _$GFavoritePlacesVars;
|
||||
factory GFavoritePlacesVars(
|
||||
[void Function(GFavoritePlacesVarsBuilder b) updates]) =
|
||||
_$GFavoritePlacesVars;
|
||||
|
||||
static Serializer<GFavoritePlacesVars> get serializer =>
|
||||
_$gFavoritePlacesVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GFavoritePlacesVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GFavoritePlacesVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GFavoritePlacesVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(GFavoritePlacesVars.serializer, json);
|
||||
_i1.serializers.deserializeWith(
|
||||
GFavoritePlacesVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+65
-69
@@ -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]);
|
||||
|
||||
@@ -21,12 +21,16 @@ abstract class GMeData implements Built<GMeData, GMeDataBuilder> {
|
||||
GMeData_me get me;
|
||||
static Serializer<GMeData> get serializer => _$gMeDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GMeData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GMeData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GMeData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(GMeData.serializer, json);
|
||||
_i1.serializers.deserializeWith(
|
||||
GMeData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GMeData_me implements Built<GMeData_me, GMeData_meBuilder> {
|
||||
@@ -50,10 +54,14 @@ abstract class GMeData_me implements Built<GMeData_me, GMeData_meBuilder> {
|
||||
bool get isAdmin;
|
||||
static Serializer<GMeData_me> get serializer => _$gMeDataMeSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GMeData_me.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GMeData_me.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GMeData_me? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(GMeData_me.serializer, json);
|
||||
_i1.serializers.deserializeWith(
|
||||
GMeData_me.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+22
-12
@@ -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<GMeReq> get serializer => _$gMeReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GMeReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GMeReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GMeReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(GMeReq.serializer, json);
|
||||
_i6.serializers.deserializeWith(
|
||||
GMeReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,10 +16,14 @@ abstract class GMeVars implements Built<GMeVars, GMeVarsBuilder> {
|
||||
|
||||
static Serializer<GMeVars> get serializer => _$gMeVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GMeVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GMeVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GMeVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(GMeVars.serializer, json);
|
||||
_i1.serializers.deserializeWith(
|
||||
GMeVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+130
-136
@@ -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]);
|
||||
|
||||
+37
-41
@@ -17,9 +17,9 @@ abstract class GNearbyPlacesData
|
||||
implements Built<GNearbyPlacesData, GNearbyPlacesDataBuilder> {
|
||||
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<GNearbyPlacesData> get serializer =>
|
||||
_$gNearbyPlacesDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GNearbyPlacesData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GNearbyPlacesData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GNearbyPlacesData? fromJson(Map<String, dynamic> 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,
|
||||
GNearbyPlacesData_nearbyPlacesBuilder> {
|
||||
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<GNearbyPlacesData_nearbyPlaces> get serializer =>
|
||||
_$gNearbyPlacesDataNearbyPlacesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GNearbyPlacesData_nearbyPlaces.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GNearbyPlacesData_nearbyPlaces.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GNearbyPlacesData_nearbyPlaces? fromJson(Map<String, dynamic> 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,
|
||||
GNearbyPlacesData_nearbyPlaces_experiencesBuilder> {
|
||||
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<GNearbyPlacesData_nearbyPlaces_experiences>
|
||||
get serializer => _$gNearbyPlacesDataNearbyPlacesExperiencesSerializer;
|
||||
get serializer => _$gNearbyPlacesDataNearbyPlacesExperiencesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GNearbyPlacesData_nearbyPlaces_experiences.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GNearbyPlacesData_nearbyPlaces_experiences.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GNearbyPlacesData_nearbyPlaces_experiences? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GNearbyPlacesData_nearbyPlaces_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GNearbyPlacesData_nearbyPlaces_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+15
-12
@@ -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<GNearbyPlacesReq> get serializer =>
|
||||
_$gNearbyPlacesReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GNearbyPlacesReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GNearbyPlacesReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GNearbyPlacesReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(GNearbyPlacesReq.serializer, json);
|
||||
_i6.serializers.deserializeWith(
|
||||
GNearbyPlacesReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+11
-7
@@ -15,18 +15,22 @@ abstract class GNearbyPlacesVars
|
||||
implements Built<GNearbyPlacesVars, GNearbyPlacesVarsBuilder> {
|
||||
GNearbyPlacesVars._();
|
||||
|
||||
factory GNearbyPlacesVars([
|
||||
void Function(GNearbyPlacesVarsBuilder b) updates,
|
||||
]) = _$GNearbyPlacesVars;
|
||||
factory GNearbyPlacesVars(
|
||||
[void Function(GNearbyPlacesVarsBuilder b) updates]) =
|
||||
_$GNearbyPlacesVars;
|
||||
|
||||
_i1.GNearbyPlacesInput get input;
|
||||
static Serializer<GNearbyPlacesVars> get serializer =>
|
||||
_$gNearbyPlacesVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(GNearbyPlacesVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GNearbyPlacesVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GNearbyPlacesVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(GNearbyPlacesVars.serializer, json);
|
||||
_i2.serializers.deserializeWith(
|
||||
GNearbyPlacesVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
@@ -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, GPlaceDataBuilder> {
|
||||
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<GPlaceData> get serializer => _$gPlaceDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GPlaceData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GPlaceData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GPlaceData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GPlaceData_place
|
||||
implements Built<GPlaceData_place, GPlaceData_placeBuilder> {
|
||||
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<String> get googleTypes;
|
||||
_i2.JsonObject? get googleRegularOpeningHours;
|
||||
_i2.JsonObject? get googleCurrentOpeningHours;
|
||||
BuiltList<String> get photoUrls;
|
||||
BuiltList<String> get traits;
|
||||
bool get isFavorite;
|
||||
static Serializer<GPlaceData_place> get serializer =>
|
||||
_$gPlaceDataPlaceSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GPlaceData_place.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GPlaceData_place? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GPlaceData_place.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,716 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'place.data.gql.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// BuiltValueGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Serializer<GPlaceData> _$gPlaceDataSerializer = _$GPlaceDataSerializer();
|
||||
Serializer<GPlaceData_place> _$gPlaceDataPlaceSerializer =
|
||||
_$GPlaceData_placeSerializer();
|
||||
|
||||
class _$GPlaceDataSerializer implements StructuredSerializer<GPlaceData> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GPlaceData, _$GPlaceData];
|
||||
@override
|
||||
final String wireName = 'GPlaceData';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(
|
||||
Serializers serializers,
|
||||
GPlaceData object, {
|
||||
FullType specifiedType = FullType.unspecified,
|
||||
}) {
|
||||
final result = <Object?>[
|
||||
'__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<Object?> 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<GPlaceData_place> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GPlaceData_place, _$GPlaceData_place];
|
||||
@override
|
||||
final String wireName = 'GPlaceData_place';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(
|
||||
Serializers serializers,
|
||||
GPlaceData_place object, {
|
||||
FullType specifiedType = FullType.unspecified,
|
||||
}) {
|
||||
final result = <Object?>[
|
||||
'__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<Object?> 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<Object?>,
|
||||
);
|
||||
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<Object?>,
|
||||
);
|
||||
break;
|
||||
case 'traits':
|
||||
result.traits.replace(
|
||||
serializers.deserialize(
|
||||
value,
|
||||
specifiedType: const FullType(BuiltList, const [
|
||||
const FullType(String),
|
||||
]),
|
||||
)!
|
||||
as BuiltList<Object?>,
|
||||
);
|
||||
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, GPlaceDataBuilder> {
|
||||
_$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<String> googleTypes;
|
||||
@override
|
||||
final _i2.JsonObject? googleRegularOpeningHours;
|
||||
@override
|
||||
final _i2.JsonObject? googleCurrentOpeningHours;
|
||||
@override
|
||||
final BuiltList<String> photoUrls;
|
||||
@override
|
||||
final BuiltList<String> 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, GPlaceData_placeBuilder> {
|
||||
_$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<String>? _googleTypes;
|
||||
ListBuilder<String> get googleTypes =>
|
||||
_$this._googleTypes ??= ListBuilder<String>();
|
||||
set googleTypes(ListBuilder<String>? 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<String>? _photoUrls;
|
||||
ListBuilder<String> get photoUrls =>
|
||||
_$this._photoUrls ??= ListBuilder<String>();
|
||||
set photoUrls(ListBuilder<String>? photoUrls) =>
|
||||
_$this._photoUrls = photoUrls;
|
||||
|
||||
ListBuilder<String>? _traits;
|
||||
ListBuilder<String> get traits => _$this._traits ??= ListBuilder<String>();
|
||||
set traits(ListBuilder<String>? 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
|
||||
@@ -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<GPlaceReq, GPlaceReqBuilder>,
|
||||
_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<String, dynamic>? get updateCacheHandlerContext;
|
||||
@override
|
||||
_i1.FetchPolicy? get fetchPolicy;
|
||||
@override
|
||||
bool get executeOnListen;
|
||||
@override
|
||||
@BuiltValueField(serialize: false)
|
||||
_i4.Context? get context;
|
||||
@override
|
||||
_i2.GPlaceData? parseData(Map<String, dynamic> json) =>
|
||||
_i2.GPlaceData.fromJson(json);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> varsToJson() => vars.toJson();
|
||||
|
||||
@override
|
||||
Map<String, dynamic> 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<GPlaceReq> get serializer => _$gPlaceReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GPlaceReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GPlaceReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
GPlaceReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,417 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'place.req.gql.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// BuiltValueGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Serializer<GPlaceReq> _$gPlaceReqSerializer = _$GPlaceReqSerializer();
|
||||
|
||||
class _$GPlaceReqSerializer implements StructuredSerializer<GPlaceReq> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GPlaceReq, _$GPlaceReq];
|
||||
@override
|
||||
final String wireName = 'GPlaceReq';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(
|
||||
Serializers serializers,
|
||||
GPlaceReq object, {
|
||||
FullType specifiedType = FullType.unspecified,
|
||||
}) {
|
||||
final result = <Object?>[
|
||||
'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<Object?> 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<String, dynamic>?;
|
||||
break;
|
||||
case 'fetchPolicy':
|
||||
result.fetchPolicy =
|
||||
serializers.deserialize(
|
||||
value,
|
||||
specifiedType: const FullType(_i1.FetchPolicy),
|
||||
)
|
||||
as _i1.FetchPolicy?;
|
||||
break;
|
||||
case 'executeOnListen':
|
||||
result.executeOnListen =
|
||||
serializers.deserialize(
|
||||
value,
|
||||
specifiedType: const FullType(bool),
|
||||
)!
|
||||
as bool;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result.build();
|
||||
}
|
||||
}
|
||||
|
||||
class _$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<String, dynamic>? 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, GPlaceReqBuilder> {
|
||||
_$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<String, dynamic>? _updateCacheHandlerContext;
|
||||
Map<String, dynamic>? get updateCacheHandlerContext =>
|
||||
_$this._updateCacheHandlerContext;
|
||||
set updateCacheHandlerContext(
|
||||
Map<String, dynamic>? updateCacheHandlerContext,
|
||||
) => _$this._updateCacheHandlerContext = updateCacheHandlerContext;
|
||||
|
||||
_i1.FetchPolicy? _fetchPolicy;
|
||||
_i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy;
|
||||
set fetchPolicy(_i1.FetchPolicy? fetchPolicy) =>
|
||||
_$this._fetchPolicy = fetchPolicy;
|
||||
|
||||
bool? _executeOnListen;
|
||||
bool? get executeOnListen => _$this._executeOnListen;
|
||||
set executeOnListen(bool? executeOnListen) =>
|
||||
_$this._executeOnListen = executeOnListen;
|
||||
|
||||
_i4.Context? _context;
|
||||
_i4.Context? get context => _$this._context;
|
||||
set context(_i4.Context? context) => _$this._context = context;
|
||||
|
||||
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
|
||||
@@ -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, GPlaceVarsBuilder> {
|
||||
GPlaceVars._();
|
||||
|
||||
factory GPlaceVars([void Function(GPlaceVarsBuilder b) updates]) =
|
||||
_$GPlaceVars;
|
||||
|
||||
String get id;
|
||||
static Serializer<GPlaceVars> get serializer => _$gPlaceVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GPlaceVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GPlaceVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GPlaceVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'place.var.gql.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// BuiltValueGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Serializer<GPlaceVars> _$gPlaceVarsSerializer = _$GPlaceVarsSerializer();
|
||||
|
||||
class _$GPlaceVarsSerializer implements StructuredSerializer<GPlaceVars> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GPlaceVars, _$GPlaceVars];
|
||||
@override
|
||||
final String wireName = 'GPlaceVars';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(
|
||||
Serializers serializers,
|
||||
GPlaceVars object, {
|
||||
FullType specifiedType = FullType.unspecified,
|
||||
}) {
|
||||
final result = <Object?>[
|
||||
'id',
|
||||
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
||||
];
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@override
|
||||
GPlaceVars deserialize(
|
||||
Serializers serializers,
|
||||
Iterable<Object?> 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, GPlaceVarsBuilder> {
|
||||
_$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
|
||||
+178
-186
@@ -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]);
|
||||
|
||||
+78
-94
@@ -18,9 +18,9 @@ abstract class GRecommendPlacesByVoiceData
|
||||
Built<GRecommendPlacesByVoiceData, GRecommendPlacesByVoiceDataBuilder> {
|
||||
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<GRecommendPlacesByVoiceData> get serializer =>
|
||||
_$gRecommendPlacesByVoiceDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRecommendPlacesByVoiceData? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GRecommendPlacesByVoiceData.serializer, json);
|
||||
static GRecommendPlacesByVoiceData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GRecommendPlacesByVoiceData_recommendPlacesByVoice
|
||||
implements
|
||||
Built<
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice,
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder
|
||||
> {
|
||||
Built<GRecommendPlacesByVoiceData_recommendPlacesByVoice,
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoiceBuilder> {
|
||||
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<String> get tags;
|
||||
String get summary;
|
||||
BuiltList<GRecommendPlacesByVoiceData_recommendPlacesByVoice_places>
|
||||
get places;
|
||||
get places;
|
||||
static Serializer<GRecommendPlacesByVoiceData_recommendPlacesByVoice>
|
||||
get serializer =>
|
||||
_$gRecommendPlacesByVoiceDataRecommendPlacesByVoiceSerializer;
|
||||
get serializer =>
|
||||
_$gRecommendPlacesByVoiceDataRecommendPlacesByVoiceSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRecommendPlacesByVoiceData_recommendPlacesByVoice? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_placesBuilder> {
|
||||
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<String> get traits;
|
||||
bool get isFavorite;
|
||||
BuiltList<
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences
|
||||
>
|
||||
get experiences;
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences>
|
||||
get experiences;
|
||||
static Serializer<GRecommendPlacesByVoiceData_recommendPlacesByVoice_places>
|
||||
get serializer =>
|
||||
_$gRecommendPlacesByVoiceDataRecommendPlacesByVoicePlacesSerializer;
|
||||
get serializer =>
|
||||
_$gRecommendPlacesByVoiceDataRecommendPlacesByVoicePlacesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places
|
||||
.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRecommendPlacesByVoiceData_recommendPlacesByVoice_places? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences
|
||||
.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences
|
||||
.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences?
|
||||
fromJson(Map<String, dynamic> json) => _i1.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences
|
||||
.serializer,
|
||||
json,
|
||||
);
|
||||
fromJson(Map<String, dynamic> json) => _i1.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceData_recommendPlacesByVoice_places_experiences
|
||||
.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+22
-27
@@ -20,15 +20,13 @@ part 'recommend_places_by_voice.req.gql.g.dart';
|
||||
abstract class GRecommendPlacesByVoiceReq
|
||||
implements
|
||||
Built<GRecommendPlacesByVoiceReq, GRecommendPlacesByVoiceReqBuilder>,
|
||||
_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<GRecommendPlacesByVoiceReq> get serializer =>
|
||||
_$gRecommendPlacesByVoiceReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceReq.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRecommendPlacesByVoiceReq? fromJson(Map<String, dynamic> json) => _i6
|
||||
.serializers
|
||||
.deserializeWith(GRecommendPlacesByVoiceReq.serializer, json);
|
||||
static GRecommendPlacesByVoiceReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+12
-12
@@ -16,22 +16,22 @@ abstract class GRecommendPlacesByVoiceVars
|
||||
Built<GRecommendPlacesByVoiceVars, GRecommendPlacesByVoiceVarsBuilder> {
|
||||
GRecommendPlacesByVoiceVars._();
|
||||
|
||||
factory GRecommendPlacesByVoiceVars([
|
||||
void Function(GRecommendPlacesByVoiceVarsBuilder b) updates,
|
||||
]) = _$GRecommendPlacesByVoiceVars;
|
||||
factory GRecommendPlacesByVoiceVars(
|
||||
[void Function(GRecommendPlacesByVoiceVarsBuilder b) updates]) =
|
||||
_$GRecommendPlacesByVoiceVars;
|
||||
|
||||
_i1.GVoicePlaceRecommendationsInput get input;
|
||||
static Serializer<GRecommendPlacesByVoiceVars> get serializer =>
|
||||
_$gRecommendPlacesByVoiceVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceVars.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GRecommendPlacesByVoiceVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRecommendPlacesByVoiceVars? fromJson(Map<String, dynamic> json) => _i2
|
||||
.serializers
|
||||
.deserializeWith(GRecommendPlacesByVoiceVars.serializer, json);
|
||||
static GRecommendPlacesByVoiceVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
GRecommendPlacesByVoiceVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+134
-137
@@ -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]);
|
||||
|
||||
+49
-57
@@ -18,9 +18,9 @@ abstract class GRemoveFavoritePlaceData
|
||||
Built<GRemoveFavoritePlaceData, GRemoveFavoritePlaceDataBuilder> {
|
||||
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<GRemoveFavoritePlaceData> get serializer =>
|
||||
_$gRemoveFavoritePlaceDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GRemoveFavoritePlaceData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRemoveFavoritePlaceData? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GRemoveFavoritePlaceData.serializer, json);
|
||||
static GRemoveFavoritePlaceData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GRemoveFavoritePlaceData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GRemoveFavoritePlaceData_removeFavoritePlace
|
||||
implements
|
||||
Built<
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace,
|
||||
GRemoveFavoritePlaceData_removeFavoritePlaceBuilder
|
||||
> {
|
||||
Built<GRemoveFavoritePlaceData_removeFavoritePlace,
|
||||
GRemoveFavoritePlaceData_removeFavoritePlaceBuilder> {
|
||||
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<String> get traits;
|
||||
bool get isFavorite;
|
||||
BuiltList<GRemoveFavoritePlaceData_removeFavoritePlace_experiences>
|
||||
get experiences;
|
||||
get experiences;
|
||||
static Serializer<GRemoveFavoritePlaceData_removeFavoritePlace>
|
||||
get serializer => _$gRemoveFavoritePlaceDataRemoveFavoritePlaceSerializer;
|
||||
get serializer => _$gRemoveFavoritePlaceDataRemoveFavoritePlaceSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRemoveFavoritePlaceData_removeFavoritePlace? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace_experiencesBuilder> {
|
||||
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<GRemoveFavoritePlaceData_removeFavoritePlace_experiences>
|
||||
get serializer =>
|
||||
_$gRemoveFavoritePlaceDataRemoveFavoritePlaceExperiencesSerializer;
|
||||
get serializer =>
|
||||
_$gRemoveFavoritePlaceDataRemoveFavoritePlaceExperiencesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRemoveFavoritePlaceData_removeFavoritePlace_experiences? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GRemoveFavoritePlaceData_removeFavoritePlace_experiences.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+21
-22
@@ -20,15 +20,13 @@ part 'remove_favorite_place.req.gql.g.dart';
|
||||
abstract class GRemoveFavoritePlaceReq
|
||||
implements
|
||||
Built<GRemoveFavoritePlaceReq, GRemoveFavoritePlaceReqBuilder>,
|
||||
_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<GRemoveFavoritePlaceReq> get serializer =>
|
||||
_$gRemoveFavoritePlaceReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GRemoveFavoritePlaceReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRemoveFavoritePlaceReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(GRemoveFavoritePlaceReq.serializer, json);
|
||||
_i6.serializers.deserializeWith(
|
||||
GRemoveFavoritePlaceReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+12
-9
@@ -14,19 +14,22 @@ abstract class GRemoveFavoritePlaceVars
|
||||
Built<GRemoveFavoritePlaceVars, GRemoveFavoritePlaceVarsBuilder> {
|
||||
GRemoveFavoritePlaceVars._();
|
||||
|
||||
factory GRemoveFavoritePlaceVars([
|
||||
void Function(GRemoveFavoritePlaceVarsBuilder b) updates,
|
||||
]) = _$GRemoveFavoritePlaceVars;
|
||||
factory GRemoveFavoritePlaceVars(
|
||||
[void Function(GRemoveFavoritePlaceVarsBuilder b) updates]) =
|
||||
_$GRemoveFavoritePlaceVars;
|
||||
|
||||
String get placeId;
|
||||
static Serializer<GRemoveFavoritePlaceVars> get serializer =>
|
||||
_$gRemoveFavoritePlaceVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GRemoveFavoritePlaceVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GRemoveFavoritePlaceVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GRemoveFavoritePlaceVars? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GRemoveFavoritePlaceVars.serializer, json);
|
||||
static GRemoveFavoritePlaceVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GRemoveFavoritePlaceVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+59
-33
@@ -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,
|
||||
]);
|
||||
|
||||
@@ -46,9 +46,9 @@ abstract class GCreateVoiceExperienceInput
|
||||
Built<GCreateVoiceExperienceInput, GCreateVoiceExperienceInputBuilder> {
|
||||
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<GCreateVoiceExperienceInput> get serializer =>
|
||||
_$gCreateVoiceExperienceInputSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GCreateVoiceExperienceInput.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GCreateVoiceExperienceInput.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GCreateVoiceExperienceInput? fromJson(Map<String, dynamic> json) => _i2
|
||||
.serializers
|
||||
.deserializeWith(GCreateVoiceExperienceInput.serializer, json);
|
||||
static GCreateVoiceExperienceInput? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
GCreateVoiceExperienceInput.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GNearbyPlacesInput
|
||||
implements Built<GNearbyPlacesInput, GNearbyPlacesInputBuilder> {
|
||||
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<GNearbyPlacesInput> get serializer =>
|
||||
_$gNearbyPlacesInputSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(GNearbyPlacesInput.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GNearbyPlacesInput.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GNearbyPlacesInput? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(GNearbyPlacesInput.serializer, json);
|
||||
_i2.serializers.deserializeWith(
|
||||
GNearbyPlacesInput.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GVoicePlaceRecommendationsInput
|
||||
implements
|
||||
Built<
|
||||
GVoicePlaceRecommendationsInput,
|
||||
GVoicePlaceRecommendationsInputBuilder
|
||||
> {
|
||||
Built<GVoicePlaceRecommendationsInput,
|
||||
GVoicePlaceRecommendationsInputBuilder> {
|
||||
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<GVoicePlaceRecommendationsInput> get serializer =>
|
||||
_$gVoicePlaceRecommendationsInputSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GVoicePlaceRecommendationsInput.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GVoicePlaceRecommendationsInput.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoicePlaceRecommendationsInput? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
@@ -136,37 +136,35 @@ abstract class GAuthenticateTelegramInput
|
||||
Built<GAuthenticateTelegramInput, GAuthenticateTelegramInputBuilder> {
|
||||
GAuthenticateTelegramInput._();
|
||||
|
||||
factory GAuthenticateTelegramInput([
|
||||
void Function(GAuthenticateTelegramInputBuilder b) updates,
|
||||
]) = _$GAuthenticateTelegramInput;
|
||||
factory GAuthenticateTelegramInput(
|
||||
[void Function(GAuthenticateTelegramInputBuilder b) updates]) =
|
||||
_$GAuthenticateTelegramInput;
|
||||
|
||||
String get initData;
|
||||
static Serializer<GAuthenticateTelegramInput> get serializer =>
|
||||
_$gAuthenticateTelegramInputSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramInput.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramInput.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramInput? fromJson(Map<String, dynamic> json) => _i2
|
||||
.serializers
|
||||
.deserializeWith(GAuthenticateTelegramInput.serializer, json);
|
||||
static GAuthenticateTelegramInput? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
GAuthenticateTelegramInput.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GAuthenticateTelegramLoginInput
|
||||
implements
|
||||
Built<
|
||||
GAuthenticateTelegramLoginInput,
|
||||
GAuthenticateTelegramLoginInputBuilder
|
||||
> {
|
||||
Built<GAuthenticateTelegramLoginInput,
|
||||
GAuthenticateTelegramLoginInputBuilder> {
|
||||
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<GAuthenticateTelegramLoginInput> get serializer =>
|
||||
_$gAuthenticateTelegramLoginInputSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginInput.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i2.serializers.serializeWith(
|
||||
GAuthenticateTelegramLoginInput.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GAuthenticateTelegramLoginInput? fromJson(Map<String, dynamic> json) =>
|
||||
_i2.serializers.deserializeWith(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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<String>(),
|
||||
)
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(String)]),
|
||||
() => ListBuilder<String>(),
|
||||
)
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(String)]),
|
||||
() => ListBuilder<String>(),
|
||||
)
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [const FullType(String)]),
|
||||
() => ListBuilder<String>(),
|
||||
)
|
||||
..addBuilderFactory(
|
||||
const FullType(BuiltList, const [
|
||||
const FullType(
|
||||
|
||||
+30
-34
@@ -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]);
|
||||
|
||||
+30
-34
@@ -14,9 +14,9 @@ abstract class GStartTelegramBotLoginData
|
||||
Built<GStartTelegramBotLoginData, GStartTelegramBotLoginDataBuilder> {
|
||||
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<GStartTelegramBotLoginData> get serializer =>
|
||||
_$gStartTelegramBotLoginDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GStartTelegramBotLoginData.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GStartTelegramBotLoginData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GStartTelegramBotLoginData? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GStartTelegramBotLoginData.serializer, json);
|
||||
static GStartTelegramBotLoginData? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GStartTelegramBotLoginData.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class GStartTelegramBotLoginData_startTelegramBotLogin
|
||||
implements
|
||||
Built<
|
||||
GStartTelegramBotLoginData_startTelegramBotLogin,
|
||||
GStartTelegramBotLoginData_startTelegramBotLoginBuilder
|
||||
> {
|
||||
Built<GStartTelegramBotLoginData_startTelegramBotLogin,
|
||||
GStartTelegramBotLoginData_startTelegramBotLoginBuilder> {
|
||||
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<GStartTelegramBotLoginData_startTelegramBotLogin>
|
||||
get serializer => _$gStartTelegramBotLoginDataStartTelegramBotLoginSerializer;
|
||||
get serializer =>
|
||||
_$gStartTelegramBotLoginDataStartTelegramBotLoginSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GStartTelegramBotLoginData_startTelegramBotLogin.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GStartTelegramBotLoginData_startTelegramBotLogin.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GStartTelegramBotLoginData_startTelegramBotLogin? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GStartTelegramBotLoginData_startTelegramBotLogin.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GStartTelegramBotLoginData_startTelegramBotLogin.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+22
-24
@@ -20,15 +20,13 @@ part 'start_telegram_bot_login.req.gql.g.dart';
|
||||
abstract class GStartTelegramBotLoginReq
|
||||
implements
|
||||
Built<GStartTelegramBotLoginReq, GStartTelegramBotLoginReqBuilder>,
|
||||
_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<GStartTelegramBotLoginReq> get serializer =>
|
||||
_$gStartTelegramBotLoginReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GStartTelegramBotLoginReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GStartTelegramBotLoginReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GStartTelegramBotLoginReq? fromJson(Map<String, dynamic> json) => _i6
|
||||
.serializers
|
||||
.deserializeWith(GStartTelegramBotLoginReq.serializer, json);
|
||||
static GStartTelegramBotLoginReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(
|
||||
GStartTelegramBotLoginReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+12
-12
@@ -14,21 +14,21 @@ abstract class GStartTelegramBotLoginVars
|
||||
Built<GStartTelegramBotLoginVars, GStartTelegramBotLoginVarsBuilder> {
|
||||
GStartTelegramBotLoginVars._();
|
||||
|
||||
factory GStartTelegramBotLoginVars([
|
||||
void Function(GStartTelegramBotLoginVarsBuilder b) updates,
|
||||
]) = _$GStartTelegramBotLoginVars;
|
||||
factory GStartTelegramBotLoginVars(
|
||||
[void Function(GStartTelegramBotLoginVarsBuilder b) updates]) =
|
||||
_$GStartTelegramBotLoginVars;
|
||||
|
||||
static Serializer<GStartTelegramBotLoginVars> get serializer =>
|
||||
_$gStartTelegramBotLoginVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GStartTelegramBotLoginVars.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GStartTelegramBotLoginVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GStartTelegramBotLoginVars? fromJson(Map<String, dynamic> json) => _i1
|
||||
.serializers
|
||||
.deserializeWith(GStartTelegramBotLoginVars.serializer, json);
|
||||
static GStartTelegramBotLoginVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GStartTelegramBotLoginVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+109
-117
@@ -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]);
|
||||
|
||||
+61
-70
@@ -17,9 +17,9 @@ abstract class GVoiceExperiencesData
|
||||
implements Built<GVoiceExperiencesData, GVoiceExperiencesDataBuilder> {
|
||||
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<GVoiceExperiencesData> get serializer =>
|
||||
_$gVoiceExperiencesDataSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GVoiceExperiencesData.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoiceExperiencesData? fromJson(Map<String, dynamic> 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,
|
||||
GVoiceExperiencesData_voiceExperiencesBuilder> {
|
||||
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<GVoiceExperiencesData_voiceExperiences> get serializer =>
|
||||
_$gVoiceExperiencesDataVoiceExperiencesSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoiceExperiencesData_voiceExperiences? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GVoiceExperiencesData_voiceExperiences_placeBuilder> {
|
||||
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<GVoiceExperiencesData_voiceExperiences_place>
|
||||
get serializer => _$gVoiceExperiencesDataVoiceExperiencesPlaceSerializer;
|
||||
get serializer => _$gVoiceExperiencesDataVoiceExperiencesPlaceSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_place.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_place.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoiceExperiencesData_voiceExperiences_place? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_place.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> 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,
|
||||
GVoiceExperiencesData_voiceExperiences_userBuilder> {
|
||||
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<GVoiceExperiencesData_voiceExperiences_user>
|
||||
get serializer => _$gVoiceExperiencesDataVoiceExperiencesUserSerializer;
|
||||
get serializer => _$gVoiceExperiencesDataVoiceExperiencesUserSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_user.serializer,
|
||||
this,
|
||||
)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_user.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoiceExperiencesData_voiceExperiences_user? fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _i1.serializers.deserializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_user.serializer,
|
||||
json,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(
|
||||
GVoiceExperiencesData_voiceExperiences_user.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+20
-19
@@ -20,15 +20,13 @@ part 'voice_experiences.req.gql.g.dart';
|
||||
abstract class GVoiceExperiencesReq
|
||||
implements
|
||||
Built<GVoiceExperiencesReq, GVoiceExperiencesReqBuilder>,
|
||||
_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<GVoiceExperiencesReq> get serializer =>
|
||||
_$gVoiceExperiencesReqSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i6.serializers.serializeWith(GVoiceExperiencesReq.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i6.serializers.serializeWith(
|
||||
GVoiceExperiencesReq.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoiceExperiencesReq? fromJson(Map<String, dynamic> json) =>
|
||||
_i6.serializers.deserializeWith(GVoiceExperiencesReq.serializer, json);
|
||||
_i6.serializers.deserializeWith(
|
||||
GVoiceExperiencesReq.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
+11
-7
@@ -13,17 +13,21 @@ abstract class GVoiceExperiencesVars
|
||||
implements Built<GVoiceExperiencesVars, GVoiceExperiencesVarsBuilder> {
|
||||
GVoiceExperiencesVars._();
|
||||
|
||||
factory GVoiceExperiencesVars([
|
||||
void Function(GVoiceExperiencesVarsBuilder b) updates,
|
||||
]) = _$GVoiceExperiencesVars;
|
||||
factory GVoiceExperiencesVars(
|
||||
[void Function(GVoiceExperiencesVarsBuilder b) updates]) =
|
||||
_$GVoiceExperiencesVars;
|
||||
|
||||
static Serializer<GVoiceExperiencesVars> get serializer =>
|
||||
_$gVoiceExperiencesVarsSerializer;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
(_i1.serializers.serializeWith(GVoiceExperiencesVars.serializer, this)
|
||||
as Map<String, dynamic>);
|
||||
Map<String, dynamic> toJson() => (_i1.serializers.serializeWith(
|
||||
GVoiceExperiencesVars.serializer,
|
||||
this,
|
||||
) as Map<String, dynamic>);
|
||||
|
||||
static GVoiceExperiencesVars? fromJson(Map<String, dynamic> json) =>
|
||||
_i1.serializers.deserializeWith(GVoiceExperiencesVars.serializer, json);
|
||||
_i1.serializers.deserializeWith(
|
||||
GVoiceExperiencesVars.serializer,
|
||||
json,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
query Place($id: ID!) {
|
||||
place(id: $id) {
|
||||
id
|
||||
googlePlaceId
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
googlePrimaryType
|
||||
googleTypes
|
||||
googleRegularOpeningHours
|
||||
googleCurrentOpeningHours
|
||||
photoUrls
|
||||
traits
|
||||
isFavorite
|
||||
}
|
||||
}
|
||||
@@ -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<String>(),
|
||||
coordinate: LatLng(place.latitude, place.longitude),
|
||||
traits: _traitsFromTags(place.traits),
|
||||
googlePrimaryType: place.googlePrimaryType,
|
||||
googleTypes: place.googleTypes.toList().cast<String>(),
|
||||
googleBusinessStatus: null,
|
||||
googleRating: null,
|
||||
googleUserRatingCount: null,
|
||||
googleRegularOpeningHours: _jsonMap(place.googleRegularOpeningHours),
|
||||
googleCurrentOpeningHours: _jsonMap(place.googleCurrentOpeningHours),
|
||||
isFavorite: place.isFavorite,
|
||||
);
|
||||
}
|
||||
|
||||
PlaceRecommendation placeRecommendationFromNearbyPlace(
|
||||
GNearbyPlacesData_nearbyPlaces place,
|
||||
) {
|
||||
|
||||
@@ -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<PlaceRecommendation> fetchPlace(String placeId) async {
|
||||
final data = await _client.request(
|
||||
GPlaceReq((b) {
|
||||
b.vars.id = placeId;
|
||||
}),
|
||||
);
|
||||
return placeRecommendationFromPlaceDetails(data.place);
|
||||
}
|
||||
|
||||
Future<List<PlaceRecommendation>> fetchFavoritePlaces() async {
|
||||
final data = await _client.request(GFavoritePlacesReq());
|
||||
return data.favoritePlaces
|
||||
|
||||
@@ -223,17 +223,31 @@ class _MapContent extends StatelessWidget {
|
||||
|
||||
void _selectAndShowPlace(BuildContext context, PlaceRecommendation place) {
|
||||
final placeCubit = context.read<PlaceCubit>()..selectPlace(place.id);
|
||||
final placeDetails = placeCubit.loadPlaceDetails(place);
|
||||
unawaited(
|
||||
showModalBottomSheet<void>(
|
||||
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<int> onPhotoTap;
|
||||
final Future<PlaceRecommendation> details;
|
||||
final ScrollController scrollController;
|
||||
final ValueChanged<PlaceRecommendation> onFavoriteToggle;
|
||||
final void Function(List<String> 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<PlaceRecommendation>(
|
||||
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<String> photoUrls;
|
||||
final bool loading;
|
||||
final ValueChanged<int> 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,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user