@maxim_mazurok/gapi.client.datastore-v1 0.0.20240226 → 0.0.20240317

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 +43 -1
  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://datastore.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240226
12
+ // Revision: 20240317
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -129,6 +129,26 @@ declare namespace gapi.client {
129
129
  /** The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for `FULL` entity results. For missing entities in `LookupResponse`, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads. */
130
130
  version?: string;
131
131
  }
132
+ interface ExecutionStats {
133
+ /** Debugging statistics from the execution of the query. Note that the debugging stats are subject to change as Firestore evolves. It could include: { "indexes_entries_scanned": "1000", "documents_scanned": "20", "billing_details" : { "documents_billable": "20", "index_entries_billable": "1000", "min_query_cost": "0" } } */
134
+ debugStats?: {[P in string]: any};
135
+ /** Total time to execute the query in the backend. */
136
+ executionDuration?: string;
137
+ /** Total billable read operations. */
138
+ readOperations?: string;
139
+ /** Total number of results returned, including documents, projections, aggregation results, keys. */
140
+ resultsReturned?: string;
141
+ }
142
+ interface ExplainMetrics {
143
+ /** Aggregated stats from the execution of the query. Only present when ExplainOptions.analyze is set to true. */
144
+ executionStats?: ExecutionStats;
145
+ /** Planning phase information for the query. */
146
+ planSummary?: PlanSummary;
147
+ }
148
+ interface ExplainOptions {
149
+ /** Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics. */
150
+ analyze?: boolean;
151
+ }
132
152
  interface Filter {
133
153
  /** A composite filter. */
134
154
  compositeFilter?: CompositeFilter;
@@ -370,6 +390,8 @@ declare namespace gapi.client {
370
390
  databaseId?: string;
371
391
  /** Required. Keys of entities to look up. */
372
392
  keys?: Key[];
393
+ /** The properties to return. Defaults to returning all properties. If this field is set and an entity has a property not referenced in the mask, it will be absent from LookupResponse.found.entity.properties. The entity's key is always returned. */
394
+ propertyMask?: PropertyMask;
373
395
  /** The options for this lookup request. */
374
396
  readOptions?: ReadOptions;
375
397
  }
@@ -392,6 +414,8 @@ declare namespace gapi.client {
392
414
  delete?: Key;
393
415
  /** The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete. */
394
416
  insert?: Entity;
417
+ /** The properties to write in this mutation. None of the properties in the mask may have a reserved name, except for `__key__`. This field is ignored for `delete`. If the entity already exists, only properties referenced in the mask are updated, others are left untouched. Properties referenced in the mask but not in the entity are deleted. */
418
+ propertyMask?: PropertyMask;
395
419
  /** The entity to update. The entity must already exist. Must have a complete key path. */
396
420
  update?: Entity;
397
421
  /** The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts. */
@@ -427,6 +451,10 @@ declare namespace gapi.client {
427
451
  /** The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`. Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are encoded as `__bytes__` where `` is the base-64 encoding of the bytes. */
428
452
  name?: string;
429
453
  }
454
+ interface PlanSummary {
455
+ /** The indexes selected for the query. For example: [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] */
456
+ indexesUsed?: Array<{[P in string]: any}>;
457
+ }
430
458
  interface Projection {
431
459
  /** The property to project. */
432
460
  property?: PropertyReference;
@@ -439,6 +467,10 @@ declare namespace gapi.client {
439
467
  /** The value to compare the property to. */
440
468
  value?: Value;
441
469
  }
470
+ interface PropertyMask {
471
+ /** The paths to the properties covered by this mask. A path is a list of property names separated by dots (`.`), for example `foo.bar` means the property `bar` inside the entity property `foo` inside the entity associated with this path. If a property name contains a dot `.` or a backslash `\`, then that name must be escaped. A path must not be empty, and may not reference a value inside an array value. */
472
+ paths?: string[];
473
+ }
442
474
  interface PropertyOrder {
443
475
  /** The direction to order by. Defaults to `ASCENDING`. */
444
476
  direction?: string;
@@ -524,6 +556,8 @@ declare namespace gapi.client {
524
556
  aggregationQuery?: AggregationQuery;
525
557
  /** The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. */
526
558
  databaseId?: string;
559
+ /** Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned. */
560
+ explainOptions?: ExplainOptions;
527
561
  /** The GQL query to run. This query must be an aggregation query. */
528
562
  gqlQuery?: GqlQuery;
529
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. */
@@ -534,6 +568,8 @@ declare namespace gapi.client {
534
568
  interface RunAggregationQueryResponse {
535
569
  /** A batch of aggregation results. Always present. */
536
570
  batch?: AggregationResultBatch;
571
+ /** Query explain metrics. This is only present when the RunAggregationQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream. */
572
+ explainMetrics?: ExplainMetrics;
537
573
  /** The parsed form of the `GqlQuery` from the request, if it was set. */
538
574
  query?: AggregationQuery;
539
575
  /** 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. */
@@ -542,10 +578,14 @@ declare namespace gapi.client {
542
578
  interface RunQueryRequest {
543
579
  /** The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. */
544
580
  databaseId?: string;
581
+ /** Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned. */
582
+ explainOptions?: ExplainOptions;
545
583
  /** The GQL query to run. This query must be a non-aggregation query. */
546
584
  gqlQuery?: GqlQuery;
547
585
  /** 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
586
  partitionId?: PartitionId;
587
+ /** The properties to return. This field must not be set for a projection query. See LookupRequest.property_mask. */
588
+ propertyMask?: PropertyMask;
549
589
  /** The query to run. */
550
590
  query?: Query;
551
591
  /** The options for this query. */
@@ -554,6 +594,8 @@ declare namespace gapi.client {
554
594
  interface RunQueryResponse {
555
595
  /** A batch of query results (always present). */
556
596
  batch?: QueryResultBatch;
597
+ /** Query explain metrics. This is only present when the RunQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream. */
598
+ explainMetrics?: ExplainMetrics;
557
599
  /** The parsed form of the `GqlQuery` from the request, if it was set. */
558
600
  query?: Query;
559
601
  /** 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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datastore-v1",
3
- "version": "0.0.20240226",
3
+ "version": "0.0.20240317",
4
4
  "description": "TypeScript typings for Cloud Datastore API v1",
5
5
  "repository": {
6
6
  "type": "git",