@maxim_mazurok/gapi.client.datastore-v1 0.0.20230102 → 0.0.20230118
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 +24 -1
- package/package.json +1 -1
- package/tests.ts +33 -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:
|
|
12
|
+
// Revision: 20230118
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -92,6 +92,11 @@ declare namespace gapi.client {
|
|
|
92
92
|
* is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
|
|
93
93
|
*/
|
|
94
94
|
mutations?: Mutation[];
|
|
95
|
+
/**
|
|
96
|
+
* Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, TransactionOptions.mode must be
|
|
97
|
+
* TransactionOptions.ReadWrite.
|
|
98
|
+
*/
|
|
99
|
+
singleUseTransaction?: TransactionOptions;
|
|
95
100
|
/** The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction. */
|
|
96
101
|
transaction?: string;
|
|
97
102
|
}
|
|
@@ -133,6 +138,8 @@ declare namespace gapi.client {
|
|
|
133
138
|
properties?: { [P in string]: Value };
|
|
134
139
|
}
|
|
135
140
|
interface EntityResult {
|
|
141
|
+
/** The time at which the entity was created. This field is set for `FULL` entity results. If this entity is missing, this field will not be set. */
|
|
142
|
+
createTime?: string;
|
|
136
143
|
/** A cursor that points to the position after the result entity. Set only when the `EntityResult` is part of a `QueryResultBatch` message. */
|
|
137
144
|
cursor?: string;
|
|
138
145
|
/** The resulting entity. */
|
|
@@ -457,6 +464,8 @@ declare namespace gapi.client {
|
|
|
457
464
|
missing?: EntityResult[];
|
|
458
465
|
/** The time at which these entities were read or found missing. */
|
|
459
466
|
readTime?: string;
|
|
467
|
+
/** The identifier of the transaction that was started as part of this Lookup request. Set only when ReadOptions.begin_transaction was set in LookupRequest.read_options. */
|
|
468
|
+
transaction?: string;
|
|
460
469
|
}
|
|
461
470
|
interface Mutation {
|
|
462
471
|
/** 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. */
|
|
@@ -475,6 +484,8 @@ declare namespace gapi.client {
|
|
|
475
484
|
interface MutationResult {
|
|
476
485
|
/** Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation. */
|
|
477
486
|
conflictDetected?: boolean;
|
|
487
|
+
/** The create time of the entity. This field will not be set after a 'delete'. */
|
|
488
|
+
createTime?: string;
|
|
478
489
|
/** The automatically allocated key. Set only when the mutation allocated a key. */
|
|
479
490
|
key?: Key;
|
|
480
491
|
/**
|
|
@@ -592,6 +603,11 @@ declare namespace gapi.client {
|
|
|
592
603
|
readTime?: string;
|
|
593
604
|
}
|
|
594
605
|
interface ReadOptions {
|
|
606
|
+
/**
|
|
607
|
+
* Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either LookupResponse.transaction or
|
|
608
|
+
* RunQueryResponse.transaction.
|
|
609
|
+
*/
|
|
610
|
+
newTransaction?: TransactionOptions;
|
|
595
611
|
/** The non-transactional read consistency to use. */
|
|
596
612
|
readConsistency?: string;
|
|
597
613
|
/** Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode. */
|
|
@@ -641,6 +657,11 @@ declare namespace gapi.client {
|
|
|
641
657
|
batch?: AggregationResultBatch;
|
|
642
658
|
/** The parsed form of the `GqlQuery` from the request, if it was set. */
|
|
643
659
|
query?: AggregationQuery;
|
|
660
|
+
/**
|
|
661
|
+
* The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.begin_transaction was set in
|
|
662
|
+
* RunAggregationQueryRequest.read_options.
|
|
663
|
+
*/
|
|
664
|
+
transaction?: string;
|
|
644
665
|
}
|
|
645
666
|
interface RunQueryRequest {
|
|
646
667
|
/** The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. */
|
|
@@ -662,6 +683,8 @@ declare namespace gapi.client {
|
|
|
662
683
|
batch?: QueryResultBatch;
|
|
663
684
|
/** The parsed form of the `GqlQuery` from the request, if it was set. */
|
|
664
685
|
query?: Query;
|
|
686
|
+
/** The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.begin_transaction was set in RunQueryRequest.read_options. */
|
|
687
|
+
transaction?: string;
|
|
665
688
|
}
|
|
666
689
|
interface Status {
|
|
667
690
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230118
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -246,6 +246,14 @@ gapi.load('client', async () => {
|
|
|
246
246
|
},
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
|
+
singleUseTransaction: {
|
|
250
|
+
readOnly: {
|
|
251
|
+
readTime: "Test string",
|
|
252
|
+
},
|
|
253
|
+
readWrite: {
|
|
254
|
+
previousTransaction: "Test string",
|
|
255
|
+
},
|
|
256
|
+
},
|
|
249
257
|
transaction: "Test string",
|
|
250
258
|
});
|
|
251
259
|
/**
|
|
@@ -311,6 +319,14 @@ gapi.load('client', async () => {
|
|
|
311
319
|
}
|
|
312
320
|
],
|
|
313
321
|
readOptions: {
|
|
322
|
+
newTransaction: {
|
|
323
|
+
readOnly: {
|
|
324
|
+
readTime: "Test string",
|
|
325
|
+
},
|
|
326
|
+
readWrite: {
|
|
327
|
+
previousTransaction: "Test string",
|
|
328
|
+
},
|
|
329
|
+
},
|
|
314
330
|
readConsistency: "Test string",
|
|
315
331
|
readTime: "Test string",
|
|
316
332
|
transaction: "Test string",
|
|
@@ -570,6 +586,14 @@ gapi.load('client', async () => {
|
|
|
570
586
|
projectId: "Test string",
|
|
571
587
|
},
|
|
572
588
|
readOptions: {
|
|
589
|
+
newTransaction: {
|
|
590
|
+
readOnly: {
|
|
591
|
+
readTime: "Test string",
|
|
592
|
+
},
|
|
593
|
+
readWrite: {
|
|
594
|
+
previousTransaction: "Test string",
|
|
595
|
+
},
|
|
596
|
+
},
|
|
573
597
|
readConsistency: "Test string",
|
|
574
598
|
readTime: "Test string",
|
|
575
599
|
transaction: "Test string",
|
|
@@ -790,6 +814,14 @@ gapi.load('client', async () => {
|
|
|
790
814
|
startCursor: "Test string",
|
|
791
815
|
},
|
|
792
816
|
readOptions: {
|
|
817
|
+
newTransaction: {
|
|
818
|
+
readOnly: {
|
|
819
|
+
readTime: "Test string",
|
|
820
|
+
},
|
|
821
|
+
readWrite: {
|
|
822
|
+
previousTransaction: "Test string",
|
|
823
|
+
},
|
|
824
|
+
},
|
|
793
825
|
readConsistency: "Test string",
|
|
794
826
|
readTime: "Test string",
|
|
795
827
|
transaction: "Test string",
|