summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/firestore-compat/dist/src
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/firestore-compat/dist/src')
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/blob.d.ts29
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/database.d.ts228
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_path.d.ts36
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_value.d.ts29
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/geo_point.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/observer.d.ts29
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/timestamp.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/config.d.ts28
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.console.d.ts48
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.d.ts158
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.node.d.ts22
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.rn.d.ts22
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/register-module.d.ts42
-rw-r--r--frontend-old/node_modules/@firebase/firestore-compat/dist/src/util/input_validation.d.ts18
14 files changed, 723 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/blob.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/blob.d.ts
new file mode 100644
index 0000000..10d532d
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/blob.d.ts
@@ -0,0 +1,29 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Bytes } from '@firebase/firestore';
+import { Compat } from '@firebase/util';
+/** Immutable class holding a blob (binary data) */
+export declare class Blob implements Compat<Bytes> {
+ readonly _delegate: Bytes;
+ constructor(_delegate: Bytes);
+ static fromBase64String(base64: string): Blob;
+ static fromUint8Array(array: Uint8Array): Blob;
+ toBase64(): string;
+ toUint8Array(): Uint8Array;
+ isEqual(other: Blob): boolean;
+ toString(): string;
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/database.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/database.d.ts
new file mode 100644
index 0000000..403e63b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/database.d.ts
@@ -0,0 +1,228 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseApp } from '@firebase/app-types';
+import { FirebaseService } from '@firebase/app-types/private';
+import { LoadBundleTask, Firestore as ExpFirestore, Query as ExpQuery, CollectionReference as ExpCollectionReference, DocumentReference as ExpDocumentReference, Unsubscribe, DocumentChange as ExpDocumentChange, DocumentSnapshot as ExpDocumentSnapshot, QuerySnapshot as ExpQuerySnapshot, SnapshotMetadata, Transaction as ExpTransaction, WriteBatch as ExpWriteBatch, AbstractUserDataWriter, FirestoreDataConverter as ModularFirestoreDataConverter, _DatabaseId, _DocumentKey, _FieldPath, _ResourcePath, _ByteString } from '@firebase/firestore';
+import { CollectionReference as PublicCollectionReference, DocumentChange as PublicDocumentChange, DocumentChangeType as PublicDocumentChangeType, DocumentData, DocumentData as PublicDocumentData, DocumentReference as PublicDocumentReference, DocumentSnapshot as PublicDocumentSnapshot, FieldPath as PublicFieldPath, FirebaseFirestore as PublicFirestore, FirestoreDataConverter as PublicFirestoreDataConverter, GetOptions as PublicGetOptions, LogLevel as PublicLogLevel, OrderByDirection as PublicOrderByDirection, PersistenceSettings as PublicPersistenceSettings, Query as PublicQuery, QueryDocumentSnapshot as PublicQueryDocumentSnapshot, QuerySnapshot as PublicQuerySnapshot, SetOptions as PublicSetOptions, Settings as PublicSettings, SnapshotListenOptions as PublicSnapshotListenOptions, SnapshotOptions as PublicSnapshotOptions, Transaction as PublicTransaction, UpdateData as PublicUpdateData, WhereFilterOp as PublicWhereFilterOp, WriteBatch as PublicWriteBatch } from '@firebase/firestore-types';
+import { Compat, EmulatorMockTokenOptions } from '@firebase/util';
+import { Blob } from './blob';
+import { CompleteFn, ErrorFn, NextFn, PartialObserver } from './observer';
+/**
+ * A persistence provider for either memory-only or IndexedDB persistence.
+ * Mainly used to allow optional inclusion of IndexedDB code.
+ */
+export interface PersistenceProvider {
+ enableIndexedDbPersistence(firestore: Firestore, forceOwnership: boolean): Promise<void>;
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
+}
+/**
+ * The persistence provider included with the full Firestore SDK.
+ */
+export declare class IndexedDbPersistenceProvider implements PersistenceProvider {
+ enableIndexedDbPersistence(firestore: Firestore, forceOwnership: boolean): Promise<void>;
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
+}
+/**
+ * Compat class for Firestore. Exposes Firestore Legacy API, but delegates
+ * to the functional API of firestore-exp.
+ */
+export declare class Firestore implements PublicFirestore, FirebaseService, Compat<ExpFirestore> {
+ readonly _delegate: ExpFirestore;
+ private _persistenceProvider;
+ _appCompat?: FirebaseApp;
+ constructor(databaseIdOrApp: _DatabaseId | FirebaseApp, _delegate: ExpFirestore, _persistenceProvider: PersistenceProvider);
+ get _databaseId(): _DatabaseId;
+ settings(settingsLiteral: PublicSettings): void;
+ useEmulator(host: string, port: number, options?: {
+ mockUserToken?: EmulatorMockTokenOptions | string;
+ }): void;
+ enableNetwork(): Promise<void>;
+ disableNetwork(): Promise<void>;
+ enablePersistence(settings?: PublicPersistenceSettings): Promise<void>;
+ clearPersistence(): Promise<void>;
+ terminate(): Promise<void>;
+ waitForPendingWrites(): Promise<void>;
+ onSnapshotsInSync(observer: PartialObserver<void>): Unsubscribe;
+ onSnapshotsInSync(onSync: () => void): Unsubscribe;
+ get app(): FirebaseApp;
+ INTERNAL: {
+ delete: () => Promise<void>;
+ };
+ collection(pathString: string): PublicCollectionReference;
+ doc(pathString: string): PublicDocumentReference;
+ collectionGroup(collectionId: string): PublicQuery;
+ runTransaction<T>(updateFunction: (transaction: PublicTransaction) => Promise<T>): Promise<T>;
+ batch(): PublicWriteBatch;
+ loadBundle(bundleData: ArrayBuffer | ReadableStream<Uint8Array> | string): LoadBundleTask;
+ namedQuery(name: string): Promise<PublicQuery<DocumentData> | null>;
+}
+export declare class UserDataWriter extends AbstractUserDataWriter {
+ protected firestore: Firestore;
+ constructor(firestore: Firestore);
+ protected convertBytes(bytes: _ByteString): Blob;
+ protected convertReference(name: string): DocumentReference;
+}
+export declare function setLogLevel(level: PublicLogLevel): void;
+/**
+ * A reference to a transaction.
+ */
+export declare class Transaction implements PublicTransaction, Compat<ExpTransaction> {
+ private readonly _firestore;
+ readonly _delegate: ExpTransaction;
+ private _userDataWriter;
+ constructor(_firestore: Firestore, _delegate: ExpTransaction);
+ get<T>(documentRef: PublicDocumentReference<T>): Promise<PublicDocumentSnapshot<T>>;
+ set<T>(documentRef: DocumentReference<T>, data: Partial<T>, options: PublicSetOptions): Transaction;
+ set<T>(documentRef: DocumentReference<T>, data: T): Transaction;
+ update(documentRef: PublicDocumentReference<unknown>, data: PublicUpdateData): Transaction;
+ update(documentRef: PublicDocumentReference<unknown>, field: string | PublicFieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): Transaction;
+ delete(documentRef: PublicDocumentReference<unknown>): Transaction;
+}
+export declare class WriteBatch implements PublicWriteBatch, Compat<ExpWriteBatch> {
+ readonly _delegate: ExpWriteBatch;
+ constructor(_delegate: ExpWriteBatch);
+ set<T>(documentRef: DocumentReference<T>, data: Partial<T>, options: PublicSetOptions): WriteBatch;
+ set<T>(documentRef: DocumentReference<T>, data: T): WriteBatch;
+ update(documentRef: PublicDocumentReference<unknown>, data: PublicUpdateData): WriteBatch;
+ update(documentRef: PublicDocumentReference<unknown>, field: string | PublicFieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): WriteBatch;
+ delete(documentRef: PublicDocumentReference<unknown>): WriteBatch;
+ commit(): Promise<void>;
+}
+/**
+ * A reference to a particular document in a collection in the database.
+ */
+export declare class DocumentReference<T = PublicDocumentData> implements PublicDocumentReference<T>, Compat<ExpDocumentReference<T>> {
+ readonly firestore: Firestore;
+ readonly _delegate: ExpDocumentReference<T>;
+ private _userDataWriter;
+ constructor(firestore: Firestore, _delegate: ExpDocumentReference<T>);
+ static forPath<U>(path: _ResourcePath, firestore: Firestore, converter: ModularFirestoreDataConverter<U> | null): DocumentReference<U>;
+ static forKey<U>(key: _DocumentKey, firestore: Firestore, converter: ModularFirestoreDataConverter<U> | null): DocumentReference<U>;
+ get id(): string;
+ get parent(): PublicCollectionReference<T>;
+ get path(): string;
+ collection(pathString: string): PublicCollectionReference<PublicDocumentData>;
+ isEqual(other: PublicDocumentReference<T>): boolean;
+ set(value: Partial<T>, options: PublicSetOptions): Promise<void>;
+ set(value: T): Promise<void>;
+ update(value: PublicUpdateData): Promise<void>;
+ update(field: string | PublicFieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): Promise<void>;
+ delete(): Promise<void>;
+ onSnapshot(observer: PartialObserver<PublicDocumentSnapshot<T>>): Unsubscribe;
+ onSnapshot(options: PublicSnapshotListenOptions, observer: PartialObserver<PublicDocumentSnapshot<T>>): Unsubscribe;
+ onSnapshot(onNext: NextFn<PublicDocumentSnapshot<T>>, onError?: ErrorFn, onCompletion?: CompleteFn): Unsubscribe;
+ onSnapshot(options: PublicSnapshotListenOptions, onNext: NextFn<PublicDocumentSnapshot<T>>, onError?: ErrorFn, onCompletion?: CompleteFn): Unsubscribe;
+ get(options?: PublicGetOptions): Promise<PublicDocumentSnapshot<T>>;
+ withConverter(converter: null): PublicDocumentReference<PublicDocumentData>;
+ withConverter<U>(converter: PublicFirestoreDataConverter<U>): PublicDocumentReference<U>;
+}
+/**
+ * Iterates the list of arguments from an `onSnapshot` call and returns the
+ * first argument that may be an `SnapshotListenOptions` object. Returns an
+ * empty object if none is found.
+ */
+export declare function extractSnapshotOptions(args: unknown[]): PublicSnapshotListenOptions;
+/**
+ * Creates an observer that can be passed to the firestore-exp SDK. The
+ * observer converts all observed values into the format expected by the classic
+ * SDK.
+ *
+ * @param args - The list of arguments from an `onSnapshot` call.
+ * @param wrapper - The function that converts the firestore-exp type into the
+ * type used by this shim.
+ */
+export declare function wrapObserver<CompatType, ExpType>(args: unknown[], wrapper: (val: ExpType) => CompatType): PartialObserver<ExpType>;
+/**
+ * Options interface that can be provided to configure the deserialization of
+ * DocumentSnapshots.
+ */
+export interface SnapshotOptions extends PublicSnapshotOptions {
+}
+export declare class DocumentSnapshot<T = PublicDocumentData> implements PublicDocumentSnapshot<T>, Compat<ExpDocumentSnapshot<T>> {
+ private readonly _firestore;
+ readonly _delegate: ExpDocumentSnapshot<T>;
+ constructor(_firestore: Firestore, _delegate: ExpDocumentSnapshot<T>);
+ get ref(): DocumentReference<T>;
+ get id(): string;
+ get metadata(): SnapshotMetadata;
+ get exists(): boolean;
+ data(options?: PublicSnapshotOptions): T | undefined;
+ get(fieldPath: string | PublicFieldPath, options?: PublicSnapshotOptions): any;
+ isEqual(other: DocumentSnapshot<T>): boolean;
+}
+export declare class QueryDocumentSnapshot<T = PublicDocumentData> extends DocumentSnapshot<T> implements PublicQueryDocumentSnapshot<T> {
+ data(options?: PublicSnapshotOptions): T;
+}
+export declare class Query<T = PublicDocumentData> implements PublicQuery<T>, Compat<ExpQuery<T>> {
+ readonly firestore: Firestore;
+ readonly _delegate: ExpQuery<T>;
+ private readonly _userDataWriter;
+ constructor(firestore: Firestore, _delegate: ExpQuery<T>);
+ where(fieldPath: string | _FieldPath, opStr: PublicWhereFilterOp, value: unknown): Query<T>;
+ orderBy(fieldPath: string | _FieldPath, directionStr?: PublicOrderByDirection): Query<T>;
+ limit(n: number): Query<T>;
+ limitToLast(n: number): Query<T>;
+ startAt(...args: any[]): Query<T>;
+ startAfter(...args: any[]): Query<T>;
+ endBefore(...args: any[]): Query<T>;
+ endAt(...args: any[]): Query<T>;
+ isEqual(other: PublicQuery<T>): boolean;
+ get(options?: PublicGetOptions): Promise<QuerySnapshot<T>>;
+ onSnapshot(observer: PartialObserver<PublicQuerySnapshot<T>>): Unsubscribe;
+ onSnapshot(options: PublicSnapshotListenOptions, observer: PartialObserver<PublicQuerySnapshot<T>>): Unsubscribe;
+ onSnapshot(onNext: NextFn<PublicQuerySnapshot<T>>, onError?: ErrorFn, onCompletion?: CompleteFn): Unsubscribe;
+ onSnapshot(options: PublicSnapshotListenOptions, onNext: NextFn<PublicQuerySnapshot<T>>, onError?: ErrorFn, onCompletion?: CompleteFn): Unsubscribe;
+ withConverter(converter: null): Query<PublicDocumentData>;
+ withConverter<U>(converter: PublicFirestoreDataConverter<U>): Query<U>;
+}
+export declare class DocumentChange<T = PublicDocumentData> implements PublicDocumentChange<T>, Compat<ExpDocumentChange<T>> {
+ private readonly _firestore;
+ readonly _delegate: ExpDocumentChange<T>;
+ constructor(_firestore: Firestore, _delegate: ExpDocumentChange<T>);
+ get type(): PublicDocumentChangeType;
+ get doc(): QueryDocumentSnapshot<T>;
+ get oldIndex(): number;
+ get newIndex(): number;
+}
+export declare class QuerySnapshot<T = PublicDocumentData> implements PublicQuerySnapshot<T>, Compat<ExpQuerySnapshot<T>> {
+ readonly _firestore: Firestore;
+ readonly _delegate: ExpQuerySnapshot<T>;
+ constructor(_firestore: Firestore, _delegate: ExpQuerySnapshot<T>);
+ get query(): Query<T>;
+ get metadata(): SnapshotMetadata;
+ get size(): number;
+ get empty(): boolean;
+ get docs(): Array<QueryDocumentSnapshot<T>>;
+ docChanges(options?: PublicSnapshotListenOptions): Array<PublicDocumentChange<T>>;
+ forEach(callback: (result: QueryDocumentSnapshot<T>) => void, thisArg?: unknown): void;
+ isEqual(other: QuerySnapshot<T>): boolean;
+}
+export declare class CollectionReference<T = PublicDocumentData> extends Query<T> implements PublicCollectionReference<T> {
+ readonly firestore: Firestore;
+ readonly _delegate: ExpCollectionReference<T>;
+ constructor(firestore: Firestore, _delegate: ExpCollectionReference<T>);
+ get id(): string;
+ get path(): string;
+ get parent(): DocumentReference<PublicDocumentData> | null;
+ doc(documentPath?: string): DocumentReference<T>;
+ add(data: T): Promise<DocumentReference<T>>;
+ isEqual(other: CollectionReference<T>): boolean;
+ withConverter(converter: null): CollectionReference<PublicDocumentData>;
+ withConverter<U>(converter: PublicFirestoreDataConverter<U>): CollectionReference<U>;
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_path.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_path.d.ts
new file mode 100644
index 0000000..1602ad7
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_path.d.ts
@@ -0,0 +1,36 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FieldPath as ExpFieldPath } from '@firebase/firestore';
+import { FieldPath as PublicFieldPath } from '@firebase/firestore-types';
+import { Compat } from '@firebase/util';
+/**
+ * A `FieldPath` refers to a field in a document. The path may consist of a
+ * single field name (referring to a top-level field in the document), or a list
+ * of field names (referring to a nested field in the document).
+ */
+export declare class FieldPath implements PublicFieldPath, Compat<ExpFieldPath> {
+ readonly _delegate: ExpFieldPath;
+ /**
+ * Creates a FieldPath from the provided field names. If more than one field
+ * name is provided, the path will point to a nested field in a document.
+ *
+ * @param fieldNames - A list of field names.
+ */
+ constructor(...fieldNames: string[]);
+ static documentId(): FieldPath;
+ isEqual(other: PublicFieldPath): boolean;
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_value.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_value.d.ts
new file mode 100644
index 0000000..69110a9
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/field_value.d.ts
@@ -0,0 +1,29 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FieldValue as FieldValue1 } from '@firebase/firestore';
+import { FieldValue as PublicFieldValue } from '@firebase/firestore-types';
+import { Compat } from '@firebase/util';
+export declare class FieldValue implements PublicFieldValue, Compat<FieldValue1> {
+ readonly _delegate: FieldValue1;
+ static serverTimestamp(): FieldValue;
+ static delete(): FieldValue;
+ static arrayUnion(...elements: unknown[]): FieldValue;
+ static arrayRemove(...elements: unknown[]): FieldValue;
+ static increment(n: number): FieldValue;
+ constructor(_delegate: FieldValue1);
+ isEqual(other: FieldValue): boolean;
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/geo_point.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/geo_point.d.ts
new file mode 100644
index 0000000..39cb546
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/geo_point.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export { GeoPoint } from '@firebase/firestore';
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/observer.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/observer.d.ts
new file mode 100644
index 0000000..a59ec68
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/observer.d.ts
@@ -0,0 +1,29 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirestoreError } from '@firebase/firestore';
+/**
+ * Observer/Subscribe interfaces.
+ */
+export type NextFn<T> = (value: T) => void;
+export type ErrorFn = (error: FirestoreError) => void;
+export type CompleteFn = () => void;
+export interface PartialObserver<T> {
+ next?: NextFn<T>;
+ error?: ErrorFn;
+ complete?: CompleteFn;
+}
+export declare function isPartialObserver<T>(obj: unknown): obj is PartialObserver<T>;
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/timestamp.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/timestamp.d.ts
new file mode 100644
index 0000000..2758926
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/api/timestamp.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export { Timestamp } from '@firebase/firestore';
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/config.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/config.d.ts
new file mode 100644
index 0000000..f1b045a
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/config.d.ts
@@ -0,0 +1,28 @@
+/**
+ * @license
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseApp } from '@firebase/app-compat';
+import { FirebaseNamespace } from '@firebase/app-types';
+import { Firestore as ModularFirestore } from '@firebase/firestore';
+import { Firestore } from './api/database';
+/**
+ * Configures Firestore as part of the Firebase SDK by calling registerComponent.
+ *
+ * @param firebase - The FirebaseNamespace to register Firestore with
+ * @param firestoreFactory - A factory function that returns a new Firestore
+ * instance.
+ */
+export declare function configureForFirebase(firebase: FirebaseNamespace, firestoreFactory: (app: FirebaseApp, firestoreExp: ModularFirestore) => Firestore): void;
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.console.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.console.d.ts
new file mode 100644
index 0000000..efb8b31
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.console.d.ts
@@ -0,0 +1,48 @@
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
+import { Provider } from '@firebase/component';
+import { Query as ExpQuery } from '@firebase/firestore';
+import { Compat } from '@firebase/util';
+import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
+export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
+export { Blob } from './api/blob';
+export { GeoPoint } from './api/geo_point';
+export { FieldPath } from './api/field_path';
+export { FieldValue } from './api/field_value';
+export { Timestamp } from './api/timestamp';
+export interface FirestoreDatabase {
+ projectId: string;
+ database?: string;
+}
+/**
+ * The persistence provider included with the memory-only SDK. This provider
+ * errors for all attempts to access persistence.
+ */
+export declare class MemoryPersistenceProvider implements PersistenceProvider {
+ enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
+}
+/** Firestore class that exposes the constructor expected by the Console. */
+export declare class Firestore extends FirestoreCompat {
+ constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
+ INTERNAL: {
+ delete: () => Promise<void>;
+ count: (query: Compat<ExpQuery<unknown>>) => Promise<number>;
+ };
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.d.ts
new file mode 100644
index 0000000..4b64982
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.d.ts
@@ -0,0 +1,158 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import type { FirebaseNamespace } from '@firebase/app-types';
+import * as types from '@firebase/firestore-types';
+import './register-module';
+/**
+ * Registers the main Firestore build with the components framework.
+ * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
+ */
+export declare function registerFirestore(instance: FirebaseNamespace): void;
+declare module '@firebase/app-compat' {
+ interface FirebaseNamespace {
+ firestore: {
+ (app?: FirebaseApp): types.FirebaseFirestore;
+ Blob: typeof types.Blob;
+ CollectionReference: typeof types.CollectionReference;
+ DocumentReference: typeof types.DocumentReference;
+ DocumentSnapshot: typeof types.DocumentSnapshot;
+ FieldPath: typeof types.FieldPath;
+ FieldValue: typeof types.FieldValue;
+ Firestore: typeof types.FirebaseFirestore;
+ GeoPoint: typeof types.GeoPoint;
+ Query: typeof types.Query;
+ QueryDocumentSnapshot: typeof types.QueryDocumentSnapshot;
+ QuerySnapshot: typeof types.QuerySnapshot;
+ Timestamp: typeof types.Timestamp;
+ Transaction: typeof types.Transaction;
+ WriteBatch: typeof types.WriteBatch;
+ setLogLevel: typeof types.setLogLevel;
+ };
+ }
+ interface FirebaseApp {
+ firestore?(): types.FirebaseFirestore;
+ }
+}
+
+import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
+import { type DocumentData, type WithFieldValue, type DocumentReference, type CollectionReference, type Query, type EmulatorMockTokenOptions, type DocumentSnapshot, type FirestoreDataConverter, type PersistenceSettings, type AggregateSpec, type AggregateQuerySnapshot, type AggregateField, type QuerySnapshot, type Firestore, type PersistentCacheIndexManager, type FirestoreSettings, type LoadBundleTask, type FirestoreError, type Unsubscribe, type SnapshotListenOptions, type QueryCompositeFilterConstraint, type QueryNonFilterConstraint, type QueryConstraint, type Transaction, type TransactionOptions, type PartialWithFieldValue, type SetOptions, type IndexConfiguration, type UpdateData, type FieldPath, type WriteBatch } from "@firebase/firestore";
+declare module "@firebase/firestore" {
+ function addDoc<AppModelType, DbModelType extends DocumentData>(reference: types.CollectionReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>): Promise<DocumentReference<AppModelType, DbModelType>>;
+ function clearIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
+ function collection(firestore: types.FirebaseFirestore, path: string, ...pathSegments: string[]): CollectionReference<DocumentData, DocumentData>;
+ function collection<AppModelType, DbModelType extends DocumentData>(reference: types.CollectionReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): CollectionReference<DocumentData, DocumentData>;
+ function collection<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): CollectionReference<DocumentData, DocumentData>;
+ function collectionGroup(firestore: types.FirebaseFirestore, collectionId: string): Query<DocumentData, DocumentData>;
+ function connectFirestoreEmulator(firestore: types.FirebaseFirestore, host: string, port: number, options?: {
+ mockUserToken?: EmulatorMockTokenOptions | string;
+ }): void;
+ function deleteDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>): Promise<void>;
+ function disableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
+ function doc(firestore: types.FirebaseFirestore, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>;
+ function doc<AppModelType, DbModelType extends DocumentData>(reference: types.CollectionReference<AppModelType, DbModelType>, path?: string, ...pathSegments: string[]): DocumentReference<AppModelType, DbModelType>;
+ function doc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>;
+ function documentSnapshotFromJSON(db: types.FirebaseFirestore, json: object): DocumentSnapshot;
+ function documentSnapshotFromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(db: types.FirebaseFirestore, json: object, converter: FirestoreDataConverter<AppModelType, DbModelType>): DocumentSnapshot<AppModelType, DbModelType>;
+ function enableIndexedDbPersistence(firestore: types.FirebaseFirestore, persistenceSettings?: PersistenceSettings): Promise<void>;
+ function enableMultiTabIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
+ function enableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
+ function getAggregateFromServer<AggregateSpecType extends AggregateSpec, AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, aggregateSpec: AggregateSpecType): Promise<AggregateQuerySnapshot<AggregateSpecType, AppModelType, DbModelType>>;
+ function getCountFromServer<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>): Promise<AggregateQuerySnapshot<{
+ count: AggregateField<number>;
+ }, AppModelType, DbModelType>>;
+ function getDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>): Promise<DocumentSnapshot<AppModelType, DbModelType>>;
+ function getDocFromCache<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>): Promise<DocumentSnapshot<AppModelType, DbModelType>>;
+ function getDocFromServer<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>): Promise<DocumentSnapshot<AppModelType, DbModelType>>;
+ function getDocs<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>): Promise<QuerySnapshot<AppModelType, DbModelType>>;
+ function getDocsFromCache<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>): Promise<QuerySnapshot<AppModelType, DbModelType>>;
+ function getDocsFromServer<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>): Promise<QuerySnapshot<AppModelType, DbModelType>>;
+ function getFirestore(app: FirebaseAppCompat): Firestore;
+ function getFirestore(app: FirebaseAppCompat, databaseId: string): Firestore;
+ function getPersistentCacheIndexManager(firestore: types.FirebaseFirestore): PersistentCacheIndexManager | null;
+ function initializeFirestore(app: FirebaseAppCompat, settings: FirestoreSettings, databaseId?: string): Firestore;
+ function loadBundle(firestore: types.FirebaseFirestore, bundleData: ReadableStream<Uint8Array> | ArrayBuffer | string): LoadBundleTask;
+ function namedQuery(firestore: types.FirebaseFirestore, name: string): Promise<Query | null>;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, observer: {
+ next?: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, options: SnapshotListenOptions, observer: {
+ next?: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, onNext: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, options: SnapshotListenOptions, onNext: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, observer: {
+ next?: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, options: SnapshotListenOptions, observer: {
+ next?: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
+ function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, options: SnapshotListenOptions, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, onNext: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, onNext: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, observer: {
+ next: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, observer: {
+ next: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, observer: {
+ next: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, observer: {
+ next: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
+ function onSnapshotsInSync(firestore: types.FirebaseFirestore, observer: {
+ next?: (value: void) => void;
+ error?: (error: FirestoreError) => void;
+ complete?: () => void;
+ }): Unsubscribe;
+ function onSnapshotsInSync(firestore: types.FirebaseFirestore, onSync: () => void): Unsubscribe;
+ function query<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<AppModelType, DbModelType>;
+ function query<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, ...queryConstraints: QueryConstraint[]): Query<AppModelType, DbModelType>;
+ function queryEqual<AppModelType, DbModelType extends DocumentData>(left: types.Query<AppModelType, DbModelType>, right: types.Query<AppModelType, DbModelType>): boolean;
+ function querySnapshotFromJSON(db: types.FirebaseFirestore, json: object): QuerySnapshot;
+ function querySnapshotFromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(db: types.FirebaseFirestore, json: object, converter: FirestoreDataConverter<AppModelType, DbModelType>): QuerySnapshot<AppModelType, DbModelType>;
+ function runTransaction<T>(firestore: types.FirebaseFirestore, updateFunction: (transaction: Transaction) => Promise<T>, options?: TransactionOptions): Promise<T>;
+ function setDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>): Promise<void>;
+ function setDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, data: PartialWithFieldValue<AppModelType>, options: SetOptions): Promise<void>;
+ function setIndexConfiguration(firestore: types.FirebaseFirestore, configuration: IndexConfiguration): Promise<void>;
+ function setIndexConfiguration(firestore: types.FirebaseFirestore, json: string): Promise<void>;
+ function terminate(firestore: types.FirebaseFirestore): Promise<void>;
+ function updateDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, data: UpdateData<DbModelType>): Promise<void>;
+ function updateDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): Promise<void>;
+ function waitForPendingWrites(firestore: types.FirebaseFirestore): Promise<void>;
+ function writeBatch(firestore: types.FirebaseFirestore): WriteBatch;
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.node.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.node.d.ts
new file mode 100644
index 0000000..bfd630e
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.node.d.ts
@@ -0,0 +1,22 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseNamespace } from '@firebase/app-types';
+/**
+ * Registers the main Firestore Node build with the components framework.
+ * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
+ */
+export declare function registerFirestore(instance: FirebaseNamespace): void;
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.rn.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.rn.d.ts
new file mode 100644
index 0000000..33714dc
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/index.rn.d.ts
@@ -0,0 +1,22 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseNamespace } from '@firebase/app-types';
+/**
+ * Registers the main Firestore ReactNative build with the components framework.
+ * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
+ */
+export declare function registerFirestore(instance: FirebaseNamespace): void;
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/register-module.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/register-module.d.ts
new file mode 100644
index 0000000..2364be3
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/register-module.d.ts
@@ -0,0 +1,42 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import * as types from '@firebase/firestore-types';
+declare module '@firebase/app-compat' {
+ interface FirebaseNamespace {
+ firestore: {
+ (app?: FirebaseApp): types.FirebaseFirestore;
+ Blob: typeof types.Blob;
+ CollectionReference: typeof types.CollectionReference;
+ DocumentReference: typeof types.DocumentReference;
+ DocumentSnapshot: typeof types.DocumentSnapshot;
+ FieldPath: typeof types.FieldPath;
+ FieldValue: typeof types.FieldValue;
+ Firestore: typeof types.FirebaseFirestore;
+ GeoPoint: typeof types.GeoPoint;
+ Query: typeof types.Query;
+ QueryDocumentSnapshot: typeof types.QueryDocumentSnapshot;
+ QuerySnapshot: typeof types.QuerySnapshot;
+ Timestamp: typeof types.Timestamp;
+ Transaction: typeof types.Transaction;
+ WriteBatch: typeof types.WriteBatch;
+ setLogLevel: typeof types.setLogLevel;
+ };
+ }
+ interface FirebaseApp {
+ firestore?(): types.FirebaseFirestore;
+ }
+}
diff --git a/frontend-old/node_modules/@firebase/firestore-compat/dist/src/util/input_validation.d.ts b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/util/input_validation.d.ts
new file mode 100644
index 0000000..23469ed
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/firestore-compat/dist/src/util/input_validation.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { SetOptions } from '@firebase/firestore-types';
+export declare function validateSetOptions(methodName: string, options: SetOptions | undefined): SetOptions;