4
4
5
5
``` ts
6
6
7
- import { DocumentData as DocumentData_2 } from ' @firebase/firestore-types' ;
8
7
import { FirebaseApp } from ' @firebase/app-types-exp' ;
9
- import { FirebaseAuthInternalName } from ' @firebase/auth-interop-types' ;
10
- import { _FirebaseService } from ' @firebase/app-types-exp' ;
11
8
import { LogLevelString as LogLevel } from ' @firebase/logger' ;
12
- import { Provider } from ' @firebase/component' ;
13
- import { SetOptions as SetOptions_2 } from ' @firebase/firestore-types' ;
14
9
15
10
// @public
16
11
export function addDoc<T >(reference : CollectionReference <T >, data : T ): Promise <DocumentReference <T >>;
@@ -23,11 +18,6 @@ export function arrayUnion(...elements: unknown[]): FieldValue;
23
18
24
19
// @public
25
20
export class Bytes {
26
- constructor (byteString : ByteString );
27
- // Warning: (ae-forgotten-export) The symbol "ByteString" needs to be exported by the entry point index.d.ts
28
- //
29
- // (undocumented)
30
- _byteString: ByteString ;
31
21
static fromBase64String(base64 : string ): Bytes ;
32
22
static fromUint8Array(array : Uint8Array ): Bytes ;
33
23
isEqual(other : Bytes ): boolean ;
@@ -50,16 +40,11 @@ export function collectionGroup(firestore: FirebaseFirestore, collectionId: stri
50
40
51
41
// @public
52
42
export class CollectionReference <T = DocumentData > extends Query <T > {
53
- constructor (firestore : FirebaseFirestore , converter : FirestoreDataConverter <T > | null , _path : ResourcePath );
54
43
// (undocumented)
55
44
readonly firestore: FirebaseFirestore ;
56
45
get id(): string ;
57
46
get parent(): DocumentReference <DocumentData > | null ;
58
47
get path(): string ;
59
- // Warning: (ae-forgotten-export) The symbol "ResourcePath" needs to be exported by the entry point index.d.ts
60
- //
61
- // (undocumented)
62
- readonly _path: ResourcePath ;
63
48
// (undocumented)
64
49
readonly type = " collection" ;
65
50
withConverter<U >(converter : FirestoreDataConverter <U >): CollectionReference <U >;
@@ -91,47 +76,22 @@ export function documentId(): FieldPath;
91
76
92
77
// @public
93
78
export class DocumentReference <T = DocumentData > {
94
- constructor (firestore : FirebaseFirestore , _converter : FirestoreDataConverter <T > | null , _key : DocumentKey );
95
- // (undocumented)
96
- readonly _converter: FirestoreDataConverter <T > | null ;
97
79
readonly firestore: FirebaseFirestore ;
98
80
get id(): string ;
99
- // Warning: (ae-forgotten-export) The symbol "DocumentKey" needs to be exported by the entry point index.d.ts
100
- //
101
- // (undocumented)
102
- readonly _key: DocumentKey ;
103
81
get parent(): CollectionReference <T >;
104
82
get path(): string ;
105
- // (undocumented)
106
- get _path(): ResourcePath ;
107
83
readonly type = " document" ;
108
84
withConverter<U >(converter : FirestoreDataConverter <U >): DocumentReference <U >;
109
85
}
110
86
111
87
// @public
112
88
export class DocumentSnapshot <T = DocumentData > {
113
- constructor (_firestore : FirebaseFirestore , _userDataWriter : AbstractUserDataWriter , _key : DocumentKey , _document : Document_2 | null , _converter : UntypedFirestoreDataConverter <T > | null );
114
- // Warning: (ae-forgotten-export) The symbol "UntypedFirestoreDataConverter" needs to be exported by the entry point index.d.ts
115
- //
116
- // (undocumented)
117
- _converter: UntypedFirestoreDataConverter <T > | null ;
89
+ protected constructor ();
118
90
data(): T | undefined ;
119
- // Warning: (ae-forgotten-export) The symbol "Document" needs to be exported by the entry point index.d.ts
120
- //
121
- // (undocumented)
122
- _document: Document_2 | null ;
123
91
exists(): this is QueryDocumentSnapshot <T >;
124
- // (undocumented)
125
- _firestore: FirebaseFirestore ;
126
92
get(fieldPath : string | FieldPath ): any ;
127
93
get id(): string ;
128
- // (undocumented)
129
- _key: DocumentKey ;
130
94
get ref(): DocumentReference <T >;
131
- // Warning: (ae-forgotten-export) The symbol "AbstractUserDataWriter" needs to be exported by the entry point index.d.ts
132
- //
133
- // (undocumented)
134
- _userDataWriter: AbstractUserDataWriter ;
135
95
}
136
96
137
97
// @public
@@ -149,8 +109,6 @@ export function endBefore(...fieldValues: unknown[]): QueryConstraint;
149
109
// @public
150
110
export class FieldPath {
151
111
constructor (... fieldNames : string []);
152
- // Warning: (ae-forgotten-export) The symbol "FieldPath" needs to be exported by the entry point index.d.ts
153
- readonly _internalPath: FieldPath_2 ;
154
112
isEqual(other : FieldPath ): boolean ;
155
113
}
156
114
@@ -159,49 +117,14 @@ export abstract class FieldValue {
159
117
constructor (_methodName : string );
160
118
// (undocumented)
161
119
abstract isEqual(other : FieldValue ): boolean ;
162
- // (undocumented)
163
- _methodName: string ;
164
- // Warning: (ae-forgotten-export) The symbol "ParseContext" needs to be exported by the entry point index.d.ts
165
- // Warning: (ae-forgotten-export) The symbol "FieldTransform" needs to be exported by the entry point index.d.ts
166
- //
167
- // (undocumented)
168
- abstract _toFieldTransform(context : ParseContext ): FieldTransform | null ;
169
120
}
170
121
171
- // Warning: (ae-forgotten-export) The symbol "FirestoreService" needs to be exported by the entry point index.d.ts
172
- //
173
122
// @public
174
- export class FirebaseFirestore implements FirestoreService {
175
- constructor (databaseIdOrApp : DatabaseId | FirebaseApp , authProvider : Provider <FirebaseAuthInternalName >);
123
+ export class FirebaseFirestore {
176
124
get app(): FirebaseApp ;
177
- // Warning: (ae-forgotten-export) The symbol "CredentialsProvider" needs to be exported by the entry point index.d.ts
178
- //
179
- // (undocumented)
180
- _credentials: CredentialsProvider ;
181
- // Warning: (ae-forgotten-export) The symbol "DatabaseId" needs to be exported by the entry point index.d.ts
182
- //
183
- // (undocumented)
184
- readonly _databaseId: DatabaseId ;
185
125
// (undocumented)
186
- _delete(): Promise <void >;
187
- // (undocumented)
188
- _freezeSettings(): FirestoreSettings ;
189
- // Warning: (ae-forgotten-export) The symbol "FirestoreSettings" needs to be exported by the entry point index.d.ts
190
- //
191
- // (undocumented)
192
- _getSettings(): FirestoreSettings ;
193
- // (undocumented)
194
- get _initialized(): boolean ;
195
- // (undocumented)
196
- readonly _persistenceKey: string ;
197
- // Warning: (ae-forgotten-export) The symbol "PrivateSettings" needs to be exported by the entry point index.d.ts
198
- //
199
- // (undocumented)
200
- _setSettings(settings : PrivateSettings ): void ;
201
- protected _terminate(): Promise <void >;
202
- // (undocumented)
203
- get _terminated(): boolean ;
204
- }
126
+ toJSON(): object ;
127
+ }
205
128
206
129
// @public
207
130
export interface FirestoreDataConverter <T > {
@@ -212,7 +135,6 @@ export interface FirestoreDataConverter<T> {
212
135
213
136
// @public
214
137
export class FirestoreError extends Error {
215
- constructor (code : FirestoreErrorCode , message : string );
216
138
// (undocumented)
217
139
readonly code: FirestoreErrorCode ;
218
140
// (undocumented)
@@ -229,7 +151,6 @@ export type FirestoreErrorCode = 'cancelled' | 'unknown' | 'invalid-argument' |
229
151
// @public
230
152
export class GeoPoint {
231
153
constructor (latitude : number , longitude : number );
232
- _compareTo(other : GeoPoint ): number ;
233
154
isEqual(other : GeoPoint ): boolean ;
234
155
get latitude(): number ;
235
156
get longitude(): number ;
@@ -271,14 +192,8 @@ export type OrderByDirection = 'desc' | 'asc';
271
192
272
193
// @public
273
194
export class Query <T = DocumentData > {
274
- constructor (firestore : FirebaseFirestore , _converter : FirestoreDataConverter <T > | null , _query : Query_2 );
275
- // (undocumented)
276
- readonly _converter: FirestoreDataConverter <T > | null ;
195
+ protected constructor ();
277
196
readonly firestore: FirebaseFirestore ;
278
- // Warning: (ae-forgotten-export) The symbol "Query" needs to be exported by the entry point index.d.ts
279
- //
280
- // (undocumented)
281
- readonly _query: Query_2 ;
282
197
readonly type: ' query' | ' collection' ;
283
198
withConverter<U >(converter : FirestoreDataConverter <U >): Query <U >;
284
199
}
@@ -288,7 +203,6 @@ export function query<T>(query: Query<T>, ...queryConstraints: QueryConstraint[]
288
203
289
204
// @public
290
205
export abstract class QueryConstraint {
291
- abstract _apply<T >(query : Query <T >): Query <T >;
292
206
abstract readonly type: QueryConstraintType ;
293
207
}
294
208
@@ -306,10 +220,7 @@ export function queryEqual<T>(left: Query<T>, right: Query<T>): boolean;
306
220
307
221
// @public
308
222
export class QuerySnapshot <T = DocumentData > {
309
- constructor (_query : Query <T >, _docs : Array <QueryDocumentSnapshot <T >>);
310
223
get docs(): Array <QueryDocumentSnapshot <T >>;
311
- // (undocumented)
312
- readonly _docs: Array <QueryDocumentSnapshot <T >>;
313
224
get empty(): boolean ;
314
225
forEach(callback : (result : QueryDocumentSnapshot <T >) => void , thisArg ? : unknown ): void ;
315
226
readonly query: Query <T >;
@@ -378,8 +289,6 @@ export function terminate(firestore: FirebaseFirestore): Promise<void>;
378
289
// @public
379
290
export class Timestamp {
380
291
constructor (seconds : number , nanoseconds : number );
381
- // (undocumented)
382
- _compareTo(other : Timestamp ): number ;
383
292
static fromDate(date : Date ): Timestamp ;
384
293
static fromMillis(milliseconds : number ): Timestamp ;
385
294
isEqual(other : Timestamp ): boolean ;
@@ -402,11 +311,7 @@ export class Timestamp {
402
311
403
312
// @public
404
313
export class Transaction {
405
- // Warning: (ae-forgotten-export) The symbol "Transaction" needs to be exported by the entry point index.d.ts
406
- constructor (_firestore : FirebaseFirestore , _transaction : Transaction_2 );
407
314
delete(documentRef : DocumentReference <unknown >): this ;
408
- // (undocumented)
409
- protected readonly _firestore: FirebaseFirestore ;
410
315
get<T >(documentRef : DocumentReference <T >): Promise <DocumentSnapshot <T >>;
411
316
set<T >(documentRef : DocumentReference <T >, data : T ): this ;
412
317
set<T >(documentRef : DocumentReference <T >, data : Partial <T >, options : SetOptions ): this ;
@@ -437,15 +342,13 @@ export type WhereFilterOp = '<' | '<=' | '==' | '!=' | '>=' | '>' | 'array-conta
437
342
438
343
// @public
439
344
export class WriteBatch {
440
- // Warning: (ae-forgotten-export) The symbol "Mutation" needs to be exported by the entry point index.d.ts
441
- constructor (_firestore : FirebaseFirestore , _commitHandler : (m : Mutation []) => Promise <void >);
442
345
commit(): Promise <void >;
443
346
delete(documentRef : DocumentReference <unknown >): WriteBatch ;
444
347
set<T >(documentRef : DocumentReference <T >, data : T ): WriteBatch ;
445
348
set<T >(documentRef : DocumentReference <T >, data : Partial <T >, options : SetOptions ): WriteBatch ;
446
349
update(documentRef : DocumentReference <unknown >, data : UpdateData ): WriteBatch ;
447
350
update(documentRef : DocumentReference <unknown >, field : string | FieldPath , value : unknown , ... moreFieldsAndValues : unknown []): WriteBatch ;
448
- }
351
+ }
449
352
450
353
// @public
451
354
export function writeBatch(firestore : FirebaseFirestore ): WriteBatch ;
0 commit comments