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.
- package/lib/apphosting/app.js +41 -60
- package/lib/apphosting/githubConnections.js +6 -8
- package/lib/apphosting/index.js +56 -27
- package/lib/apphosting/repo.js +2 -2
- package/lib/commands/apphosting-backends-create.js +6 -5
- package/lib/commands/dataconnect-sdk-generate.js +2 -1
- package/lib/commands/{dataconnect-list.js → dataconnect-services-list.js} +23 -6
- package/lib/commands/dataconnect-sql-migrate.js +9 -4
- package/lib/commands/index.js +2 -1
- package/lib/commands/init.js +3 -3
- package/lib/dataconnect/client.js +2 -2
- package/lib/dataconnect/errors.js +31 -0
- package/lib/dataconnect/fileUtils.js +10 -7
- package/lib/dataconnect/freeTrial.js +1 -1
- package/lib/dataconnect/graphqlError.js +2 -2
- package/lib/dataconnect/provisionCloudSql.js +5 -21
- package/lib/dataconnect/schemaMigration.js +166 -59
- package/lib/deploy/dataconnect/deploy.js +4 -14
- package/lib/deploy/dataconnect/prepare.js +3 -0
- package/lib/deploy/dataconnect/release.js +7 -9
- package/lib/deploy/functions/release/fabricator.js +7 -2
- package/lib/emulator/constants.js +1 -1
- package/lib/emulator/controller.js +1 -0
- package/lib/emulator/dataconnectEmulator.js +4 -1
- package/lib/emulator/downloadableEmulators.js +9 -9
- package/lib/emulator/portUtils.js +1 -2
- package/lib/emulator/registry.js +1 -1
- package/lib/experiments.js +12 -5
- package/lib/frameworks/next/index.js +3 -1
- package/lib/frameworks/next/utils.js +1 -1
- package/lib/gcp/cloudsql/cloudsqladmin.js +39 -19
- package/lib/gcp/cloudsql/connect.js +2 -1
- package/lib/gcp/firedata.js +27 -0
- package/lib/hosting/interactive.js +4 -0
- package/lib/init/features/dataconnect/index.js +79 -37
- package/lib/init/features/emulators.js +9 -10
- package/lib/init/features/functions/index.js +4 -0
- package/lib/init/features/functions/npm-dependencies.js +12 -23
- package/lib/init/features/genkit.js +54 -0
- package/lib/init/features/index.js +3 -1
- package/lib/init/index.js +1 -0
- package/lib/init/spawn.js +23 -0
- package/lib/operation-poller.js +1 -1
- package/lib/requireTosAcceptance.js +22 -0
- package/lib/utils.js +6 -2
- package/package.json +1 -1
- package/templates/init/dataconnect/mutations.gql +29 -4
- package/templates/init/dataconnect/queries.gql +49 -5
- package/templates/init/dataconnect/schema.gql +23 -11
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
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
|
|
9
|
-
#
|
|
8
|
+
# type Email @table {
|
|
9
|
+
# subject: String!
|
|
10
|
+
# sent: Date!
|
|
11
|
+
# text: String!
|
|
12
|
+
# from: User!
|
|
10
13
|
# }
|
|
11
14
|
|
|
12
|
-
# type
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
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
|
# }
|