File tree 8 files changed +293
-17
lines changed
8 files changed +293
-17
lines changed Original file line number Diff line number Diff line change 4
4
.awcache
5
5
.cache
6
6
/config /project.json
7
+ /config /prod.project.json
7
8
scripts /docgen-compat /html
8
9
9
10
# OS Specific Files
Original file line number Diff line number Diff line change 5
5
" node_modules/typescript/lib/lib.dom.d.ts" ,
6
6
" node_modules/typescript/lib/lib.es2015.promise.d.ts" ,
7
7
" node_modules/typescript/lib/lib.es2015.symbol.d.ts" ,
8
+ " node_modules/typescript/lib/lib.es2020.bigint.d.ts" ,
8
9
" node_modules/typescript/lib/lib.es2015.iterable.d.ts" ,
9
10
" node_modules/typescript/lib/lib.es2015.collection.d.ts" ,
10
11
" node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts" ,
11
12
" node_modules/typescript/lib/lib.es2015.core.d.ts" ,
12
13
" node_modules/typescript/lib/lib.es2017.object.d.ts" ,
13
14
" node_modules/typescript/lib/lib.es2017.string.d.ts" ,
15
+ " node_modules/typescript/lib/lib.es2019.array.d.ts" ,
16
+ " node_modules/re2js/build/index.esm.d.ts" ,
14
17
" packages/app-types/index.d.ts" ,
15
18
" packages/app-types/private.d.ts" ,
16
19
" packages/app/dist/app.d.ts" ,
Original file line number Diff line number Diff line change 119
119
"license" : " Apache-2.0" ,
120
120
"files" : [
121
121
" dist" ,
122
- " lite/package.json"
122
+ " lite" ,
123
+ " pipelines"
123
124
],
124
125
"dependencies" : {
125
126
"@firebase/component" : " 0.6.13" ,
128
129
"@firebase/webchannel-wrapper" : " 1.0.3" ,
129
130
"@grpc/grpc-js" : " ~1.9.0" ,
130
131
"@grpc/proto-loader" : " ^0.7.8" ,
131
- "tslib" : " ^2.1.0"
132
+ "re2js" : " ^0.4.2" ,
133
+ "tslib" : " ^2.1.0" ,
134
+ "undici" : " 6.19.7"
132
135
},
133
136
"peerDependencies" : {
134
137
"@firebase/app" : " 0.x"
146
149
"rollup" : " 2.79.2" ,
147
150
"rollup-plugin-copy" : " 3.5.0" ,
148
151
"rollup-plugin-copy-assets" : " 2.0.3" ,
152
+ "rollup-plugin-dts" : " 5.3.1" ,
149
153
"rollup-plugin-replace" : " 2.2.0" ,
150
154
"rollup-plugin-sourcemaps" : " 0.6.3" ,
151
155
"@rollup/plugin-terser" : " 0.4.4" ,
162
166
"bugs" : {
163
167
"url" : " https://github.com/firebase/firebase-js-sdk/issues"
164
168
},
165
- "types" : " dist/index.d.ts" ,
169
+ "types" : " dist/firestore/src/ index.d.ts" ,
166
170
"nyc" : {
167
171
"extension" : [
168
172
" .ts"
Original file line number Diff line number Diff line change @@ -356,6 +356,9 @@ export declare namespace firestoreV1ApiClientInterfaces {
356
356
parent ?: string ;
357
357
structuredQuery ?: StructuredQuery ;
358
358
}
359
+ interface PipelineQueryTarget {
360
+ structuredPipeline ?: StructuredPipeline ;
361
+ }
359
362
interface ReadOnly {
360
363
readTime ?: string ;
361
364
}
@@ -424,6 +427,7 @@ export declare namespace firestoreV1ApiClientInterfaces {
424
427
interface Target {
425
428
query ?: QueryTarget ;
426
429
documents ?: DocumentsTarget ;
430
+ pipelineQuery ?: PipelineQueryTarget ;
427
431
resumeToken ?: string | Uint8Array ;
428
432
readTime ?: Timestamp ;
429
433
targetId ?: number ;
@@ -555,6 +559,8 @@ export declare type Pipeline = firestoreV1ApiClientInterfaces.Pipeline;
555
559
export declare type Precondition = firestoreV1ApiClientInterfaces . Precondition ;
556
560
export declare type Projection = firestoreV1ApiClientInterfaces . Projection ;
557
561
export declare type QueryTarget = firestoreV1ApiClientInterfaces . QueryTarget ;
562
+ export declare type PipelineQueryTarget =
563
+ firestoreV1ApiClientInterfaces . PipelineQueryTarget ;
558
564
export declare type ReadOnly = firestoreV1ApiClientInterfaces . ReadOnly ;
559
565
export declare type ReadWrite = firestoreV1ApiClientInterfaces . ReadWrite ;
560
566
export declare type RollbackRequest =
Original file line number Diff line number Diff line change @@ -913,13 +913,25 @@ message Target {
913
913
}
914
914
}
915
915
916
+ // A target specified by a pipeline query.
917
+ message PipelineQueryTarget {
918
+ // The pipeline to run.
919
+ oneof pipeline_type {
920
+ // A pipelined operation in structured format.
921
+ StructuredPipeline structured_pipeline = 1 ;
922
+ }
923
+ }
924
+
916
925
// The type of target to listen to.
917
926
oneof target_type {
918
927
// A target specified by a query.
919
928
QueryTarget query = 2 ;
920
929
921
930
// A target specified by a set of document names.
922
931
DocumentsTarget documents = 3 ;
932
+
933
+ // A target specified by a pipeline query.
934
+ PipelineQueryTarget pipeline_query = 13 ;
923
935
}
924
936
925
937
// When to start listening.
Original file line number Diff line number Diff line change @@ -198,6 +198,12 @@ message WriteResult {
198
198
//
199
199
// Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be returned for the same logical
200
200
// change, if multiple targets are affected.
201
+ //
202
+ // For PipelineQueryTargets, `document` will be in the new pipeline format,
203
+ // (-- TODO(b/330735468): Insert link to spec. --)
204
+ // For a Listen stream with both QueryTargets and PipelineQueryTargets present,
205
+ // if a document matches both types of queries, then a separate DocumentChange
206
+ // messages will be sent out one for each set.
201
207
message DocumentChange {
202
208
// The new state of the [Document][google.firestore.v1.Document].
203
209
//
Original file line number Diff line number Diff line change 2343
2343
"targetType" : {
2344
2344
"oneof" : [
2345
2345
" query" ,
2346
- " documents"
2346
+ " documents" ,
2347
+ " pipeline_query"
2347
2348
]
2348
2349
},
2349
2350
"resumeType" : {
2362
2363
"type" : " DocumentsTarget" ,
2363
2364
"id" : 3
2364
2365
},
2366
+ "pipelineQuery" : {
2367
+ "type" : " PipelineQueryTarget" ,
2368
+ "id" : 13
2369
+ },
2365
2370
"resumeToken" : {
2366
2371
"type" : " bytes" ,
2367
2372
"id" : 4
2411
2416
"id" : 2
2412
2417
}
2413
2418
}
2419
+ },
2420
+ "PipelineQueryTarget" : {
2421
+ "oneofs" : {
2422
+ "pipelineType" : {
2423
+ "oneof" : [
2424
+ " structuredPipeline"
2425
+ ]
2426
+ }
2427
+ },
2428
+ "fields" : {
2429
+ "structuredPipeline" : {
2430
+ "type" : " StructuredPipeline" ,
2431
+ "id" : 1
2432
+ }
2433
+ }
2414
2434
}
2415
2435
}
2416
2436
},
3266
3286
}
3267
3287
}
3268
3288
}
3269
- }
3289
+ }
You can’t perform that action at this time.
0 commit comments