File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ import {
99const AUTOPUSH_ORIGIN = "https://autopush-firebasedataconnect.sandbox.googleapis.com" ;
1010const apiClient = new Client ( { urlPrefix : AUTOPUSH_ORIGIN , auth : true } ) ;
1111
12+ export const PROMPT_GENERATE_CONNECTOR =
13+ "Create 4 operations for an app using the instance schema with proper authentication." ;
14+
15+ export const PROMPT_GENERATE_SEED_DATA =
16+ "Create a mutation to populate the database with some seed data." ;
17+
1218/**
1319 * generateSchema generates a schema based on the users app design prompt.
1420 * @param prompt description of the app the user would like to generate.
@@ -102,7 +108,9 @@ async function readStream(stream: NodeJS.ReadableStream): Promise<string> {
102108 stream . on ( "end" , ( ) => {
103109 resolve ( data ) ;
104110 } ) ;
105- stream . on ( "error" , ( reject ) ) ;
111+ stream . on ( "error" , ( err ) => {
112+ reject ( err ) ;
113+ } ) ;
106114 } ) ;
107115}
108116
You can’t perform that action at this time.
0 commit comments