@maxim_mazurok/gapi.client.datastore-v1 0.0.20240917 → 0.0.20241008

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 +23 -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: 20240917
12
+ // Revision: 20241008
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -410,12 +410,16 @@ declare namespace gapi.client {
410
410
  interface Mutation {
411
411
  /** The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts. */
412
412
  baseVersion?: string;
413
+ /** The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`. If this is set, then `conflict_detection_strategy` must also be set. */
414
+ conflictResolutionStrategy?: string;
413
415
  /** The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only. */
414
416
  delete?: Key;
415
417
  /** The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete. */
416
418
  insert?: Entity;
417
419
  /** 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
420
  propertyMask?: PropertyMask;
421
+ /** Optional. The transforms to perform on the entity. This field can be set only when the operation is `insert`, `update`, or `upsert`. If present, the transforms are be applied to the entity regardless of the property mask, in order, after the operation. */
422
+ propertyTransforms?: PropertyTransform[];
419
423
  /** The entity to update. The entity must already exist. Must have a complete key path. */
420
424
  update?: Entity;
421
425
  /** 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. */
@@ -430,6 +434,8 @@ declare namespace gapi.client {
430
434
  createTime?: string;
431
435
  /** The automatically allocated key. Set only when the mutation allocated a key. */
432
436
  key?: Key;
437
+ /** The results of applying each PropertyTransform, in the same order of the request. */
438
+ transformResults?: Value[];
433
439
  /** The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'. */
434
440
  updateTime?: string;
435
441
  /** The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity. */
@@ -481,6 +487,22 @@ declare namespace gapi.client {
481
487
  /** A reference to a property. Requires: * MUST be a dot-delimited (`.`) string of segments, where each segment conforms to entity property name limitations. */
482
488
  name?: string;
483
489
  }
490
+ interface PropertyTransform {
491
+ /** Appends the given elements in order if they are not already present in the current property value. If the property is not an array, or if the property does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and the null value is equal to the null value. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform result will be the null value. */
492
+ appendMissingElements?: ArrayValue;
493
+ /** Adds the given value to the property's current value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If either of the given value or the current property value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follows IEEE 754 semantics. If there is positive/negative integer overflow, the property is resolved to the largest magnitude positive/negative integer. */
494
+ increment?: Value;
495
+ /** Sets the property to the maximum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If a maximum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN. */
496
+ maximum?: Value;
497
+ /** Sets the property to the minimum of its current value and the given value. This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the input value. If a minimum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN. */
498
+ minimum?: Value;
499
+ /** Optional. The name of the property. Property paths (a list of property names separated by dots (`.`)) may be used to refer to properties inside entity values. For example `foo.bar` means the property `bar` inside the entity property `foo`. If a property name contains a dot `.` or a backlslash `\`, then that name must be escaped. */
500
+ property?: string;
501
+ /** Removes all of the given elements from the array in the property. If the property is not an array, or if the property does not yet exist, it is set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and the null value is equal to the null value. This will remove all equivalent values if there are duplicates. The corresponding transform result will be the null value. */
502
+ removeAllFromArray?: ArrayValue;
503
+ /** Sets the property to the given server value. */
504
+ setToServerValue?: string;
505
+ }
484
506
  interface Query {
485
507
  /** The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`. */
486
508
  distinctOn?: PropertyReference[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datastore-v1",
3
- "version": "0.0.20240917",
3
+ "version": "0.0.20241008",
4
4
  "description": "TypeScript typings for Cloud Datastore API v1",
5
5
  "repository": {
6
6
  "type": "git",