/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
@google-cloud
/
firestore
/
build
/
src
/
/var/www/greso.tech/server/nsm/node_modules/@google-cloud/firestore/build/src
mkdir
upload
Name
Size
Mode
Actions
v1/
-
0755
rm
v1beta1/
-
0755
rm
backoff.d.ts
5547
0644
edit
dl
rm
backoff.js
7650
0644
edit
dl
rm
bulk-writer.d.ts
19230
0644
edit
dl
rm
bulk-writer.js
36112
0644
edit
dl
rm
bundle.d.ts
835
0644
edit
dl
rm
bundle.js
8427
0644
edit
dl
rm
collection-group.d.ts
3602
0644
edit
dl
rm
collection-group.js
4553
0644
edit
dl
rm
convert.d.ts
2776
0644
edit
dl
rm
convert.js
7168
0644
edit
dl
rm
document-change.d.ts
5033
0644
edit
dl
rm
document-change.js
5284
0644
edit
dl
rm
document-reader.d.ts
1842
0644
edit
dl
rm
document-reader.js
5394
0644
edit
dl
rm
document.d.ts
18149
0644
edit
dl
rm
document.js
30404
0644
edit
dl
rm
field-value.d.ts
8598
0644
edit
dl
rm
field-value.js
13884
0644
edit
dl
rm
filter.d.ts
6832
0644
edit
dl
rm
filter.js
6973
0644
edit
dl
rm
geo-point.d.ts
2644
0644
edit
dl
rm
geo-point.js
3217
0644
edit
dl
rm
index.d.ts
38229
0644
edit
dl
rm
index.js
63443
0644
edit
dl
rm
logger.d.ts
1310
0644
edit
dl
rm
logger.js
2112
0644
edit
dl
rm
order.d.ts
1096
0644
edit
dl
rm
order.js
7525
0644
edit
dl
rm
path.d.ts
12118
0644
edit
dl
rm
path.js
18995
0644
edit
dl
rm
pool.d.ts
4432
0644
edit
dl
rm
pool.js
10116
0644
edit
dl
rm
query-partition.d.ts
4011
0644
edit
dl
rm
query-partition.js
5761
0644
edit
dl
rm
rate-limiter.d.ts
3015
0644
edit
dl
rm
rate-limiter.js
5850
0644
edit
dl
rm
recursive-delete.d.ts
5714
0644
edit
dl
rm
recursive-delete.js
10040
0644
edit
dl
rm
reference.d.ts
53096
0644
edit
dl
rm
reference.js
103221
0644
edit
dl
rm
serializer.d.ts
2942
0644
edit
dl
rm
serializer.js
12817
0644
edit
dl
rm
status-code.d.ts
1121
0644
edit
dl
rm
status-code.js
712
0644
edit
dl
rm
timestamp.d.ts
6987
0644
edit
dl
rm
timestamp.js
9697
0644
edit
dl
rm
transaction.d.ts
10098
0644
edit
dl
rm
transaction.js
19139
0644
edit
dl
rm
types.d.ts
3992
0644
edit
dl
rm
types.js
1387
0644
edit
dl
rm
util.d.ts
4066
0644
edit
dl
rm
util.js
7373
0644
edit
dl
rm
validate.d.ts
6527
0644
edit
dl
rm
validate.js
12314
0644
edit
dl
rm
watch.d.ts
9738
0644
edit
dl
rm
watch.js
24988
0644
edit
dl
rm
write-batch.d.ts
10521
0644
edit
dl
rm
write-batch.js
27233
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/@google-cloud/firestore/build/src/query-partition.js
(5761B)
"use strict"; /* * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.QueryPartition = void 0; const reference_1 = require("./reference"); const path_1 = require("./path"); const serializer_1 = require("./serializer"); /** * A split point that can be used in a query as a starting and/or end point for * the query results. The cursors returned by {@link #startAt} and {@link * #endBefore} can only be used in a query that matches the constraint of query * that produced this partition. * * @class QueryPartition */ class QueryPartition { /** @private */ constructor(_firestore, _collectionId, _converter, _startAt, _endBefore) { this._firestore = _firestore; this._collectionId = _collectionId; this._converter = _converter; this._startAt = _startAt; this._endBefore = _endBefore; this._serializer = new serializer_1.Serializer(_firestore); } /** * The cursor that defines the first result for this partition or `undefined` * if this is the first partition. The cursor value must be * destructured when passed to `startAt()` (for example with * `query.startAt(...queryPartition.startAt)`). * * @example * ``` * const query = firestore.collectionGroup('collectionId'); * for await (const partition of query.getPartitions(42)) { * let partitionedQuery = query.orderBy(FieldPath.documentId()); * if (partition.startAt) { * partitionedQuery = partitionedQuery.startAt(...partition.startAt); * } * if (partition.endBefore) { * partitionedQuery = partitionedQuery.endBefore(...partition.endBefore); * } * const querySnapshot = await partitionedQuery.get(); * console.log(`Partition contained ${querySnapshot.length} documents`); * } * * ``` * @type {Array<*>} * @return {Array<*>} A cursor value that can be used with {@link * Query#startAt} or `undefined` if this is the first partition. */ get startAt() { if (this._startAt && !this._memoizedStartAt) { this._memoizedStartAt = this._startAt.map(v => this._serializer.decodeValue(v)); } return this._memoizedStartAt; } /** * The cursor that defines the first result after this partition or * `undefined` if this is the last partition. The cursor value must be * destructured when passed to `endBefore()` (for example with * `query.endBefore(...queryPartition.endBefore)`). * * @example * ``` * const query = firestore.collectionGroup('collectionId'); * for await (const partition of query.getPartitions(42)) { * let partitionedQuery = query.orderBy(FieldPath.documentId()); * if (partition.startAt) { * partitionedQuery = partitionedQuery.startAt(...partition.startAt); * } * if (partition.endBefore) { * partitionedQuery = partitionedQuery.endBefore(...partition.endBefore); * } * const querySnapshot = await partitionedQuery.get(); * console.log(`Partition contained ${querySnapshot.length} documents`); * } * * ``` * @type {Array<*>} * @return {Array<*>} A cursor value that can be used with {@link * Query#endBefore} or `undefined` if this is the last partition. */ get endBefore() { if (this._endBefore && !this._memoizedEndBefore) { this._memoizedEndBefore = this._endBefore.map(v => this._serializer.decodeValue(v)); } return this._memoizedEndBefore; } /** * Returns a query that only encapsulates the documents for this partition. * * @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`); * } * * ``` * @return {Query<T>} A query partitioned by a {@link Query#startAt} and * {@link Query#endBefore} cursor. */ toQuery() { // Since the api.Value to JavaScript type conversion can be lossy (unless // `useBigInt` is used), we pass the original protobuf representation to the // created query. let queryOptions = reference_1.QueryOptions.forCollectionGroupQuery(this._collectionId, this._converter); queryOptions = queryOptions.with({ fieldOrders: [new reference_1.FieldOrder(path_1.FieldPath.documentId())], }); if (this._startAt !== undefined) { queryOptions = queryOptions.with({ startAt: { before: true, values: this._startAt }, }); } if (this._endBefore !== undefined) { queryOptions = queryOptions.with({ endAt: { before: true, values: this._endBefore }, }); } return new reference_1.Query(this._firestore, queryOptions); } } exports.QueryPartition = QueryPartition; //# sourceMappingURL=query-partition.js.map
Save
cmd:
run