-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(fdc): Upgrade to v1beta endpoint #13373
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
66a49d3
Updated to v1beta
maneesht 2484579
Upgraded to v1beta
maneesht 5e2db00
Removed .firebaserc
maneesht 8f7ad08
Fixed formatting
maneesht 16946be
Added back headers to generated files
maneesht a29eac8
Merge remote-tracking branch 'origin/main' into mtewani/upgrade-v1beta
maneesht File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
packages/firebase_data_connect/firebase_data_connect/example/lib/generated/seed_movies.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
part of movies; | ||
|
||
class SeedMovies { | ||
String name = "seedMovies"; | ||
SeedMovies({required this.dataConnect}); | ||
|
||
Deserializer<SeedMoviesResponse> dataDeserializer = (String json) => | ||
SeedMoviesResponse.fromJson(jsonDecode(json) as Map<String, dynamic>); | ||
|
||
MutationRef<SeedMoviesResponse, void> ref() { | ||
return dataConnect.mutation( | ||
this.name, dataDeserializer, emptySerializer, null); | ||
} | ||
|
||
FirebaseDataConnect dataConnect; | ||
} | ||
|
||
class SeedMoviesTheMatrix { | ||
late String id; | ||
|
||
SeedMoviesTheMatrix.fromJson(Map<String, dynamic> json) : id = json['id'] {} | ||
|
||
// TODO(mtewani): Fix up to create a map on the fly | ||
Map<String, dynamic> toJson() { | ||
Map<String, dynamic> json = {}; | ||
|
||
json['id'] = id; | ||
|
||
return json; | ||
} | ||
|
||
SeedMoviesTheMatrix({ | ||
required this.id, | ||
}) { | ||
// TODO(mtewani): Only show this if there are optional fields. | ||
} | ||
} | ||
|
||
class SeedMoviesJurassicPark { | ||
late String id; | ||
|
||
SeedMoviesJurassicPark.fromJson(Map<String, dynamic> json) | ||
: id = json['id'] {} | ||
|
||
// TODO(mtewani): Fix up to create a map on the fly | ||
Map<String, dynamic> toJson() { | ||
Map<String, dynamic> json = {}; | ||
|
||
json['id'] = id; | ||
|
||
return json; | ||
} | ||
|
||
SeedMoviesJurassicPark({ | ||
required this.id, | ||
}) { | ||
// TODO(mtewani): Only show this if there are optional fields. | ||
} | ||
} | ||
|
||
class SeedMoviesResponse { | ||
late SeedMoviesTheMatrix the_matrix; | ||
|
||
late SeedMoviesJurassicPark jurassic_park; | ||
|
||
SeedMoviesResponse.fromJson(Map<String, dynamic> json) | ||
: the_matrix = SeedMoviesTheMatrix.fromJson(json['the_matrix']), | ||
jurassic_park = | ||
SeedMoviesJurassicPark.fromJson(json['jurassic_park']) {} | ||
|
||
// TODO(mtewani): Fix up to create a map on the fly | ||
Map<String, dynamic> toJson() { | ||
Map<String, dynamic> json = {}; | ||
|
||
json['the_matrix'] = the_matrix.toJson(); | ||
|
||
json['jurassic_park'] = jurassic_park.toJson(); | ||
|
||
return json; | ||
} | ||
|
||
SeedMoviesResponse({ | ||
required this.the_matrix, | ||
required this.jurassic_park, | ||
}) { | ||
// TODO(mtewani): Only show this if there are optional fields. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...rebase_data_connect/firebase_data_connect/lib/src/generated/connector_service.pbenum.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...ebase_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pb.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...e_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbenum.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...e_data_connect/firebase_data_connect/lib/src/generated/google/protobuf/struct.pbjson.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...s/firebase_data_connect/firebase_data_connect/lib/src/generated/graphql_error.pbenum.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I see this removed in the generation code.