@maxim_mazurok/gapi.client.firestore-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.
Files changed (2) hide show
  1. package/index.d.ts +20 -2
  2. 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://firestore.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20231221
12
+ // Revision: 20240109
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -608,7 +608,7 @@ declare namespace gapi.client {
608
608
  interface Order {
609
609
  /** The direction to order by. Defaults to `ASCENDING`. */
610
610
  direction?: string;
611
- /** Order based on the value referenced by this field. */
611
+ /** The field to order by. */
612
612
  field?: FieldReference;
613
613
  }
614
614
  interface PartitionQueryRequest {
@@ -639,6 +639,10 @@ declare namespace gapi.client {
639
639
  /** The fields to return. If empty, all fields are returned. To only return the name of the document, use `['__name__']`. */
640
640
  fields?: FieldReference[];
641
641
  }
642
+ interface QueryPlan {
643
+ /** 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)"} ] } */
644
+ planInfo?: {[P in string]: any};
645
+ }
642
646
  interface QueryTarget {
643
647
  /** The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` */
644
648
  parent?: string;
@@ -653,11 +657,19 @@ declare namespace gapi.client {
653
657
  /** An optional transaction to retry. */
654
658
  retryTransaction?: string;
655
659
  }
660
+ interface ResultSetStats {
661
+ /** Plan for the query. */
662
+ queryPlan?: QueryPlan;
663
+ /** 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" } */
664
+ queryStats?: {[P in string]: any};
665
+ }
656
666
  interface RollbackRequest {
657
667
  /** Required. The transaction to roll back. */
658
668
  transaction?: string;
659
669
  }
660
670
  interface RunAggregationQueryRequest {
671
+ /** 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. */
672
+ mode?: string;
661
673
  /** Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream. */
662
674
  newTransaction?: TransactionOptions;
663
675
  /** Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days. */
@@ -672,10 +684,14 @@ declare namespace gapi.client {
672
684
  readTime?: string;
673
685
  /** A single aggregation result. Not present when reporting partial progress. */
674
686
  result?: AggregationResult;
687
+ /** 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` and is sent only once with the last response in the stream. */
688
+ stats?: ResultSetStats;
675
689
  /** The transaction that was started as part of this request. Only present on the first response when the request requested to start a new transaction. */
676
690
  transaction?: string;
677
691
  }
678
692
  interface RunQueryRequest {
693
+ /** 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. */
694
+ mode?: string;
679
695
  /** Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream. */
680
696
  newTransaction?: TransactionOptions;
681
697
  /** Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days. */
@@ -694,6 +710,8 @@ declare namespace gapi.client {
694
710
  readTime?: string;
695
711
  /** The number of results that have been skipped due to an offset between the last response and the current response. */
696
712
  skippedResults?: number;
713
+ /** 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` and is sent only once with the last response in the stream. */
714
+ stats?: ResultSetStats;
697
715
  /** The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response. */
698
716
  transaction?: string;
699
717
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.firestore-v1",
3
- "version": "0.0.20231221",
3
+ "version": "0.0.20240109",
4
4
  "description": "TypeScript typings for Cloud Firestore API v1",
5
5
  "repository": {
6
6
  "type": "git",