@maxim_mazurok/gapi.client.datastore-v1 0.0.20231221 → 0.0.20240109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +19 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://datastore.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240109
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -469,6 +469,10 @@ declare namespace gapi.client {
|
|
|
469
469
|
/** A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). */
|
|
470
470
|
startCursor?: string;
|
|
471
471
|
}
|
|
472
|
+
interface QueryPlan {
|
|
473
|
+
/** Planning phase information for the query. It will include: { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] } */
|
|
474
|
+
planInfo?: {[P in string]: any};
|
|
475
|
+
}
|
|
472
476
|
interface QueryResultBatch {
|
|
473
477
|
/** A cursor that points to the position after the last result in the batch. */
|
|
474
478
|
endCursor?: string;
|
|
@@ -512,6 +516,12 @@ declare namespace gapi.client {
|
|
|
512
516
|
keys?: Key[];
|
|
513
517
|
}
|
|
514
518
|
interface ReserveIdsResponse {}
|
|
519
|
+
interface ResultSetStats {
|
|
520
|
+
/** Plan for the query. */
|
|
521
|
+
queryPlan?: QueryPlan;
|
|
522
|
+
/** Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" } */
|
|
523
|
+
queryStats?: {[P in string]: any};
|
|
524
|
+
}
|
|
515
525
|
interface RollbackRequest {
|
|
516
526
|
/** The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. */
|
|
517
527
|
databaseId?: string;
|
|
@@ -526,6 +536,8 @@ declare namespace gapi.client {
|
|
|
526
536
|
databaseId?: string;
|
|
527
537
|
/** The GQL query to run. This query must be an aggregation query. */
|
|
528
538
|
gqlQuery?: GqlQuery;
|
|
539
|
+
/** Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results. */
|
|
540
|
+
mode?: string;
|
|
529
541
|
/** Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID. */
|
|
530
542
|
partitionId?: PartitionId;
|
|
531
543
|
/** The options for this query. */
|
|
@@ -536,6 +548,8 @@ declare namespace gapi.client {
|
|
|
536
548
|
batch?: AggregationResultBatch;
|
|
537
549
|
/** The parsed form of the `GqlQuery` from the request, if it was set. */
|
|
538
550
|
query?: AggregationQuery;
|
|
551
|
+
/** Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`. */
|
|
552
|
+
stats?: ResultSetStats;
|
|
539
553
|
/** The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.new_transaction was set in RunAggregationQueryRequest.read_options. */
|
|
540
554
|
transaction?: string;
|
|
541
555
|
}
|
|
@@ -544,6 +558,8 @@ declare namespace gapi.client {
|
|
|
544
558
|
databaseId?: string;
|
|
545
559
|
/** The GQL query to run. This query must be a non-aggregation query. */
|
|
546
560
|
gqlQuery?: GqlQuery;
|
|
561
|
+
/** Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results. */
|
|
562
|
+
mode?: string;
|
|
547
563
|
/** Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID. */
|
|
548
564
|
partitionId?: PartitionId;
|
|
549
565
|
/** The query to run. */
|
|
@@ -556,6 +572,8 @@ declare namespace gapi.client {
|
|
|
556
572
|
batch?: QueryResultBatch;
|
|
557
573
|
/** The parsed form of the `GqlQuery` from the request, if it was set. */
|
|
558
574
|
query?: Query;
|
|
575
|
+
/** Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`. */
|
|
576
|
+
stats?: ResultSetStats;
|
|
559
577
|
/** The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.new_transaction was set in RunQueryRequest.read_options. */
|
|
560
578
|
transaction?: string;
|
|
561
579
|
}
|