@maxim_mazurok/gapi.client.firestore-v1 0.0.20231221 → 0.0.20240117
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 +22 -3
- 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:
|
|
12
|
+
// Revision: 20240117
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -137,6 +137,7 @@ declare namespace gapi.client {
|
|
|
137
137
|
interface Document {
|
|
138
138
|
/** Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query. */
|
|
139
139
|
createTime?: string;
|
|
140
|
+
/** The document's fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The field names, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by a dot-delimited (`.`) string of segments. Each segment is either a simple field name (defined below) or a quoted field name. For example, the structured field `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be represented by the field path `` foo.`x&y` ``. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. A quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&y` `` represents `x&y` and `` `bak\`tik` `` represents `` bak`tik ``. */
|
|
140
141
|
fields?: {[P in string]: Value};
|
|
141
142
|
/** The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */
|
|
142
143
|
name?: string;
|
|
@@ -608,7 +609,7 @@ declare namespace gapi.client {
|
|
|
608
609
|
interface Order {
|
|
609
610
|
/** The direction to order by. Defaults to `ASCENDING`. */
|
|
610
611
|
direction?: string;
|
|
611
|
-
/**
|
|
612
|
+
/** The field to order by. */
|
|
612
613
|
field?: FieldReference;
|
|
613
614
|
}
|
|
614
615
|
interface PartitionQueryRequest {
|
|
@@ -639,6 +640,10 @@ declare namespace gapi.client {
|
|
|
639
640
|
/** The fields to return. If empty, all fields are returned. To only return the name of the document, use `['__name__']`. */
|
|
640
641
|
fields?: FieldReference[];
|
|
641
642
|
}
|
|
643
|
+
interface QueryPlan {
|
|
644
|
+
/** 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)"} ] } */
|
|
645
|
+
planInfo?: {[P in string]: any};
|
|
646
|
+
}
|
|
642
647
|
interface QueryTarget {
|
|
643
648
|
/** 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
649
|
parent?: string;
|
|
@@ -653,11 +658,19 @@ declare namespace gapi.client {
|
|
|
653
658
|
/** An optional transaction to retry. */
|
|
654
659
|
retryTransaction?: string;
|
|
655
660
|
}
|
|
661
|
+
interface ResultSetStats {
|
|
662
|
+
/** Plan for the query. */
|
|
663
|
+
queryPlan?: QueryPlan;
|
|
664
|
+
/** 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" } */
|
|
665
|
+
queryStats?: {[P in string]: any};
|
|
666
|
+
}
|
|
656
667
|
interface RollbackRequest {
|
|
657
668
|
/** Required. The transaction to roll back. */
|
|
658
669
|
transaction?: string;
|
|
659
670
|
}
|
|
660
671
|
interface RunAggregationQueryRequest {
|
|
672
|
+
/** 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. */
|
|
673
|
+
mode?: string;
|
|
661
674
|
/** 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
675
|
newTransaction?: TransactionOptions;
|
|
663
676
|
/** 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 +685,14 @@ declare namespace gapi.client {
|
|
|
672
685
|
readTime?: string;
|
|
673
686
|
/** A single aggregation result. Not present when reporting partial progress. */
|
|
674
687
|
result?: AggregationResult;
|
|
688
|
+
/** 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. */
|
|
689
|
+
stats?: ResultSetStats;
|
|
675
690
|
/** 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
691
|
transaction?: string;
|
|
677
692
|
}
|
|
678
693
|
interface RunQueryRequest {
|
|
694
|
+
/** 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. */
|
|
695
|
+
mode?: string;
|
|
679
696
|
/** 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
697
|
newTransaction?: TransactionOptions;
|
|
681
698
|
/** 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 +711,8 @@ declare namespace gapi.client {
|
|
|
694
711
|
readTime?: string;
|
|
695
712
|
/** The number of results that have been skipped due to an offset between the last response and the current response. */
|
|
696
713
|
skippedResults?: number;
|
|
714
|
+
/** 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. */
|
|
715
|
+
stats?: ResultSetStats;
|
|
697
716
|
/** 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
717
|
transaction?: string;
|
|
699
718
|
}
|
|
@@ -1068,7 +1087,7 @@ declare namespace gapi.client {
|
|
|
1068
1087
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1069
1088
|
uploadType?: string;
|
|
1070
1089
|
}): Request<GoogleFirestoreAdminV1Field>;
|
|
1071
|
-
/** Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to `indexConfig.usesAncestorConfig:false or `ttlConfig:*`. */
|
|
1090
|
+
/** Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to `indexConfig.usesAncestorConfig:false` or `ttlConfig:*`. */
|
|
1072
1091
|
list(request?: {
|
|
1073
1092
|
/** V1 error format. */
|
|
1074
1093
|
'$.xgafv'?: string;
|