|
17 | 17 |
|
18 | 18 | import { Value as ProtoValue } from '../protos/firestore_proto_api';
|
19 | 19 | import {
|
20 |
| - DocumentChangeType, |
21 |
| - WhereFilterOp, |
| 20 | + CollectionReference as PublicCollectionReference, |
22 | 21 | DocumentChange as PublicDocumentChange,
|
23 |
| - OrderByDirection, |
24 |
| - PersistenceSettings as PublicPersistenceSettings, |
25 |
| - QueryDocumentSnapshot as PublicQueryDocumentSnapshot, |
26 |
| - GetOptions, |
27 |
| - SnapshotOptions as PublicSnapshotOptions, |
| 22 | + DocumentChangeType, |
28 | 23 | DocumentData,
|
29 |
| - QuerySnapshot as PublicQuerySnapshot, |
30 |
| - SnapshotMetadata as PublicSnapshotMetadata, |
31 |
| - SnapshotListenOptions, |
32 |
| - Settings as PublicSettings, |
33 |
| - FirebaseFirestore as PublicFirestore, |
34 | 24 | DocumentReference as PublicDocumentReference,
|
35 |
| - UpdateData, |
36 |
| - CollectionReference as PublicCollectionReference, |
37 | 25 | DocumentSnapshot as PublicDocumentSnapshot,
|
38 |
| - SetOptions, |
| 26 | + FirebaseFirestore as PublicFirestore, |
| 27 | + FirestoreDataConverter, |
| 28 | + GetOptions, |
39 | 29 | LogLevel as PublicLogLevel,
|
| 30 | + OrderByDirection, |
| 31 | + PersistenceSettings as PublicPersistenceSettings, |
40 | 32 | Query as PublicQuery,
|
41 |
| - FirestoreDataConverter, |
| 33 | + QueryDocumentSnapshot as PublicQueryDocumentSnapshot, |
| 34 | + QuerySnapshot as PublicQuerySnapshot, |
| 35 | + SetOptions, |
| 36 | + Settings as PublicSettings, |
| 37 | + SnapshotListenOptions, |
| 38 | + SnapshotMetadata as PublicSnapshotMetadata, |
| 39 | + SnapshotOptions as PublicSnapshotOptions, |
42 | 40 | Transaction as PublicTransaction,
|
| 41 | + UpdateData, |
| 42 | + WhereFilterOp, |
43 | 43 | WriteBatch as PublicWriteBatch
|
44 | 44 | } from '@firebase/firestore-types';
|
45 | 45 |
|
@@ -170,7 +170,7 @@ export interface FirestoreDatabase {
|
170 | 170 |
|
171 | 171 | /**
|
172 | 172 | * A concrete type describing all the values that can be applied via a
|
173 |
| - * user-supplied PublicSettings object. This is a separate type so that |
| 173 | + * user-supplied firestore.Settings object. This is a separate type so that |
174 | 174 | * defaults can be supplied and the value can be checked for equality.
|
175 | 175 | */
|
176 | 176 | class FirestoreSettings {
|
@@ -382,8 +382,8 @@ export class Firestore implements PublicFirestore, FirebaseService {
|
382 | 382 | }
|
383 | 383 |
|
384 | 384 | settings(settingsLiteral: PublicSettings): void {
|
385 |
| - validateExactNumberOfArgs('firestore.Settings', arguments, 1); |
386 |
| - validateArgType('firestore.Settings', 'object', 1, settingsLiteral); |
| 385 | + validateExactNumberOfArgs('Firestore.settings', arguments, 1); |
| 386 | + validateArgType('Firestore.settings', 'object', 1, settingsLiteral); |
387 | 387 |
|
388 | 388 | const newSettings = new FirestoreSettings(settingsLiteral);
|
389 | 389 | if (this._firestoreClient && !this._settings.isEqual(newSettings)) {
|
@@ -689,7 +689,7 @@ export class Firestore implements PublicFirestore, FirebaseService {
|
689 | 689 | }
|
690 | 690 | }
|
691 | 691 |
|
692 |
| - static setLogLevel(level: LogLevel): void { |
| 692 | + static setLogLevel(level: PublicLogLevel): void { |
693 | 693 | validateExactNumberOfArgs('Firestore.setLogLevel', arguments, 1);
|
694 | 694 | validateStringEnum(
|
695 | 695 | 'setLogLevel',
|
|
0 commit comments