/var/www/greso.tech/server/nsm/node_modules/@google-cloud/firestore/build/src
NameSizeModeActions
v1/-0755rm
v1beta1/-0755rm
backoff.d.ts55470644editdlrm
backoff.js76500644editdlrm
bulk-writer.d.ts192300644editdlrm
bulk-writer.js361120644editdlrm
bundle.d.ts8350644editdlrm
bundle.js84270644editdlrm
collection-group.d.ts36020644editdlrm
collection-group.js45530644editdlrm
convert.d.ts27760644editdlrm
convert.js71680644editdlrm
document-change.d.ts50330644editdlrm
document-change.js52840644editdlrm
document-reader.d.ts18420644editdlrm
document-reader.js53940644editdlrm
document.d.ts181490644editdlrm
document.js304040644editdlrm
field-value.d.ts85980644editdlrm
field-value.js138840644editdlrm
filter.d.ts68320644editdlrm
filter.js69730644editdlrm
geo-point.d.ts26440644editdlrm
geo-point.js32170644editdlrm
index.d.ts382290644editdlrm
index.js634430644editdlrm
logger.d.ts13100644editdlrm
logger.js21120644editdlrm
order.d.ts10960644editdlrm
order.js75250644editdlrm
path.d.ts121180644editdlrm
path.js189950644editdlrm
pool.d.ts44320644editdlrm
pool.js101160644editdlrm
query-partition.d.ts40110644editdlrm
query-partition.js57610644editdlrm
rate-limiter.d.ts30150644editdlrm
rate-limiter.js58500644editdlrm
recursive-delete.d.ts57140644editdlrm
recursive-delete.js100400644editdlrm
reference.d.ts530960644editdlrm
reference.js1032210644editdlrm
serializer.d.ts29420644editdlrm
serializer.js128170644editdlrm
status-code.d.ts11210644editdlrm
status-code.js7120644editdlrm
timestamp.d.ts69870644editdlrm
timestamp.js96970644editdlrm
transaction.d.ts100980644editdlrm
transaction.js191390644editdlrm
types.d.ts39920644editdlrm
types.js13870644editdlrm
util.d.ts40660644editdlrm
util.js73730644editdlrm
validate.d.ts65270644editdlrm
validate.js123140644editdlrm
watch.d.ts97380644editdlrm
watch.js249880644editdlrm
write-batch.d.ts105210644editdlrm
write-batch.js272330644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/@google-cloud/firestore/build/src/collection-group.d.ts (3602B)
import * as firestore from '@google-cloud/firestore'; import { QueryPartition } from './query-partition'; import { Query } from './reference'; import { Firestore } from './index'; /** * A `CollectionGroup` refers to all documents that are contained in a * collection or subcollection with a specific collection ID. * * @class CollectionGroup */ export declare class CollectionGroup extends Query implements firestore.CollectionGroup { /** @private */ constructor(firestore: Firestore, collectionId: string, converter: firestore.FirestoreDataConverter | undefined); /** * Partitions a query by returning partition cursors that can be used to run * the query in parallel. The returned cursors are split points that can be * used as starting and end points for individual query invocations. * * @example * ``` * const query = firestore.collectionGroup('collectionId'); * for await (const partition of query.getPartitions(42)) { * const partitionedQuery = partition.toQuery(); * const querySnapshot = await partitionedQuery.get(); * console.log(`Partition contained ${querySnapshot.length} documents`); * } * * ``` * @param {number} desiredPartitionCount The desired maximum number of * partition points. The number must be strictly positive. The actual number * of partitions returned may be fewer. * @return {AsyncIterable} An AsyncIterable of * `QueryPartition`s. */ getPartitions(desiredPartitionCount: number): AsyncIterable>; /** * Applies a custom data converter to this `CollectionGroup`, allowing you * to use your own custom model objects with Firestore. When you call get() * on the returned `CollectionGroup`, the provided converter will convert * between Firestore data and your custom type U. * * Using the converter allows you to specify generic type arguments when * storing and retrieving objects from Firestore. * * Passing in `null` as the converter parameter removes the current * converter. * * @example * ``` * class Post { * constructor(readonly title: string, readonly author: string) {} * * toString(): string { * return this.title + ', by ' + this.author; * } * } * * const postConverter = { * toFirestore(post: Post): FirebaseFirestore.DocumentData { * return {title: post.title, author: post.author}; * }, * fromFirestore( * snapshot: FirebaseFirestore.QueryDocumentSnapshot * ): Post { * const data = snapshot.data(); * return new Post(data.title, data.author); * } * }; * * const querySnapshot = await Firestore() * .collectionGroup('posts') * .withConverter(postConverter) * .get(); * for (const doc of querySnapshot.docs) { * const post = doc.data(); * post.title; // string * post.toString(); // Should be defined * post.someNonExistentProperty; // TS error * } * * ``` * @param {FirestoreDataConverter | null} converter Converts objects to and * from Firestore. Passing in `null` removes the current converter. * @return {CollectionGroup} A `CollectionGroup` that uses the provided * converter. */ withConverter(converter: null): CollectionGroup; withConverter(converter: firestore.FirestoreDataConverter): CollectionGroup; }