firebase-tools 13.8.0 → 13.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/apphosting/app.js +41 -60
  2. package/lib/apphosting/githubConnections.js +6 -8
  3. package/lib/apphosting/index.js +56 -27
  4. package/lib/apphosting/repo.js +2 -2
  5. package/lib/commands/apphosting-backends-create.js +6 -5
  6. package/lib/commands/dataconnect-sdk-generate.js +2 -1
  7. package/lib/commands/{dataconnect-list.js → dataconnect-services-list.js} +23 -6
  8. package/lib/commands/dataconnect-sql-migrate.js +9 -4
  9. package/lib/commands/index.js +2 -1
  10. package/lib/commands/init.js +3 -3
  11. package/lib/dataconnect/client.js +2 -2
  12. package/lib/dataconnect/errors.js +31 -0
  13. package/lib/dataconnect/fileUtils.js +10 -7
  14. package/lib/dataconnect/freeTrial.js +1 -1
  15. package/lib/dataconnect/graphqlError.js +2 -2
  16. package/lib/dataconnect/provisionCloudSql.js +5 -21
  17. package/lib/dataconnect/schemaMigration.js +166 -59
  18. package/lib/deploy/dataconnect/deploy.js +4 -14
  19. package/lib/deploy/dataconnect/prepare.js +3 -0
  20. package/lib/deploy/dataconnect/release.js +7 -9
  21. package/lib/deploy/functions/release/fabricator.js +7 -2
  22. package/lib/emulator/constants.js +1 -1
  23. package/lib/emulator/controller.js +1 -0
  24. package/lib/emulator/dataconnectEmulator.js +4 -1
  25. package/lib/emulator/downloadableEmulators.js +9 -9
  26. package/lib/emulator/portUtils.js +1 -2
  27. package/lib/emulator/registry.js +1 -1
  28. package/lib/experiments.js +12 -5
  29. package/lib/frameworks/next/index.js +3 -1
  30. package/lib/frameworks/next/utils.js +1 -1
  31. package/lib/gcp/cloudsql/cloudsqladmin.js +39 -19
  32. package/lib/gcp/cloudsql/connect.js +2 -1
  33. package/lib/gcp/firedata.js +27 -0
  34. package/lib/hosting/interactive.js +4 -0
  35. package/lib/init/features/dataconnect/index.js +79 -37
  36. package/lib/init/features/emulators.js +9 -10
  37. package/lib/init/features/functions/index.js +4 -0
  38. package/lib/init/features/functions/npm-dependencies.js +12 -23
  39. package/lib/init/features/genkit.js +54 -0
  40. package/lib/init/features/index.js +3 -1
  41. package/lib/init/index.js +1 -0
  42. package/lib/init/spawn.js +23 -0
  43. package/lib/operation-poller.js +1 -1
  44. package/lib/requireTosAcceptance.js +22 -0
  45. package/lib/utils.js +6 -2
  46. package/package.json +1 -1
  47. package/templates/init/dataconnect/mutations.gql +29 -4
  48. package/templates/init/dataconnect/queries.gql +49 -5
  49. package/templates/init/dataconnect/schema.gql +23 -11
@@ -1,16 +1,28 @@
1
- # # Example schema
2
- # # TODO: Replace with a really good illustrative example from devrel!
3
- # type Product @table {
4
- # name: String!
5
- # price: Int!
1
+ ## Example schema for simple email app
2
+ # type User @table(key: "uid") {
3
+ # uid: String!
4
+ # name: String!
5
+ # address: String!
6
6
  # }
7
7
 
8
- # type Order @table {
9
- # name: String!
8
+ # type Email @table {
9
+ # subject: String!
10
+ # sent: Date!
11
+ # text: String!
12
+ # from: User!
10
13
  # }
11
14
 
12
- # type OrderItem @table(key: ["order", "product"]) {
13
- # order: Order!
14
- # product: Product!
15
- # quantity: Int!
15
+ # type Recipient @table(key: ["email", "user"]) {
16
+ # email: Email!
17
+ # user: User!
18
+ # }
19
+
20
+ # type EmailMeta @table(key: ["user", "email"]) {
21
+ # user: User!
22
+ # email: Email!
23
+ # labels: [String]
24
+ # read: Boolean!
25
+ # starred: Boolean!
26
+ # muted: Boolean!
27
+ # snoozed: Date
16
28
  # }