@maxim_mazurok/gapi.client.datastore-v1 0.0.20230722 → 0.0.20230806

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 (3) hide show
  1. package/index.d.ts +20 -4
  2. package/package.json +2 -2
  3. package/tests.ts +11 -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: 20230722
12
+ // Revision: 20230806
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -31,9 +31,15 @@ declare namespace gapi.client {
31
31
  */
32
32
  alias?:
33
33
  string;
34
+ /** Average aggregator. */
35
+ avg?:
36
+ Avg;
34
37
  /** Count aggregator. */
35
38
  count?:
36
39
  Count;
40
+ /** Sum aggregator. */
41
+ sum?:
42
+ Sum;
37
43
  }
38
44
  interface AggregationQuery {
39
45
  /** Optional. Series of aggregations to apply over the results of the `nested_query`. Requires: * A minimum of one and maximum of five aggregations per query. */
@@ -83,6 +89,11 @@ declare namespace gapi.client {
83
89
  values?:
84
90
  Value[];
85
91
  }
92
+ interface Avg {
93
+ /** The property to aggregate on. */
94
+ property?:
95
+ PropertyReference;
96
+ }
86
97
  interface BeginTransactionRequest {
87
98
  /** The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. */
88
99
  databaseId?:
@@ -502,9 +513,9 @@ declare namespace gapi.client {
502
513
  name?:
503
514
  string;
504
515
  /**
505
- * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
506
- * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
507
- * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
516
+ * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
517
+ * method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original
518
+ * method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
508
519
  */
509
520
  response?:
510
521
  { [P in string]: any };
@@ -901,6 +912,11 @@ declare namespace gapi.client {
901
912
  message?:
902
913
  string;
903
914
  }
915
+ interface Sum {
916
+ /** The property to aggregate on. */
917
+ property?:
918
+ PropertyReference;
919
+ }
904
920
  interface TransactionOptions {
905
921
  /** The transaction should only allow reads. */
906
922
  readOnly?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datastore-v1",
3
- "version": "0.0.20230722",
3
+ "version": "0.0.20230806",
4
4
  "description": "TypeScript typings for Cloud Datastore API v1",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -15,6 +15,6 @@
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
18
- "@types/gapi.client.discovery": "*"
18
+ "@types/gapi.client.discovery-v1": "*"
19
19
  }
20
20
  }
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230722
6
+ // Revision: 20230806
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -369,9 +369,19 @@ gapi.load('client', async () => {
369
369
  aggregations: [
370
370
  {
371
371
  alias: "Test string",
372
+ avg: {
373
+ property: {
374
+ name: "Test string",
375
+ },
376
+ },
372
377
  count: {
373
378
  upTo: "Test string",
374
379
  },
380
+ sum: {
381
+ property: {
382
+ name: "Test string",
383
+ },
384
+ },
375
385
  }
376
386
  ],
377
387
  nestedQuery: {