@maxim_mazurok/gapi.client.datastore-v1beta1 0.1.20260310 → 0.2.20260529
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 +72 -20
- package/package.json +1 -1
- package/readme.md +17 -0
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=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260529
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -34,11 +34,22 @@ declare namespace gapi.client {
|
|
|
34
34
|
/** The client-assigned labels which were provided when the operation was created. May also include additional labels. */
|
|
35
35
|
labels?: {[P in string]: string};
|
|
36
36
|
/** The type of the operation. Can be used as a filter in ListOperationsRequest. */
|
|
37
|
-
operationType?:
|
|
37
|
+
operationType?:
|
|
38
|
+
| 'OPERATION_TYPE_UNSPECIFIED'
|
|
39
|
+
| 'EXPORT_ENTITIES'
|
|
40
|
+
| 'IMPORT_ENTITIES';
|
|
38
41
|
/** The time that work began on the operation. */
|
|
39
42
|
startTime?: string;
|
|
40
43
|
/** The current state of the Operation. */
|
|
41
|
-
state?:
|
|
44
|
+
state?:
|
|
45
|
+
| 'STATE_UNSPECIFIED'
|
|
46
|
+
| 'INITIALIZING'
|
|
47
|
+
| 'PROCESSING'
|
|
48
|
+
| 'CANCELLING'
|
|
49
|
+
| 'FINALIZING'
|
|
50
|
+
| 'SUCCESSFUL'
|
|
51
|
+
| 'FAILED'
|
|
52
|
+
| 'CANCELLED';
|
|
42
53
|
}
|
|
43
54
|
interface GoogleDatastoreAdminV1beta1EntityFilter {
|
|
44
55
|
/** If empty, then this represents all kinds. */
|
|
@@ -102,17 +113,42 @@ declare namespace gapi.client {
|
|
|
102
113
|
/** The client-assigned labels which were provided when the operation was created. May also include additional labels. */
|
|
103
114
|
labels?: {[P in string]: string};
|
|
104
115
|
/** The type of the operation. Can be used as a filter in ListOperationsRequest. */
|
|
105
|
-
operationType?:
|
|
116
|
+
operationType?:
|
|
117
|
+
| 'OPERATION_TYPE_UNSPECIFIED'
|
|
118
|
+
| 'EXPORT_ENTITIES'
|
|
119
|
+
| 'IMPORT_ENTITIES'
|
|
120
|
+
| 'CREATE_INDEX'
|
|
121
|
+
| 'DELETE_INDEX';
|
|
106
122
|
/** The time that work began on the operation. */
|
|
107
123
|
startTime?: string;
|
|
108
124
|
/** The current state of the Operation. */
|
|
109
|
-
state?:
|
|
125
|
+
state?:
|
|
126
|
+
| 'STATE_UNSPECIFIED'
|
|
127
|
+
| 'INITIALIZING'
|
|
128
|
+
| 'PROCESSING'
|
|
129
|
+
| 'CANCELLING'
|
|
130
|
+
| 'FINALIZING'
|
|
131
|
+
| 'SUCCESSFUL'
|
|
132
|
+
| 'FAILED'
|
|
133
|
+
| 'CANCELLED';
|
|
110
134
|
}
|
|
111
135
|
interface GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata {
|
|
112
136
|
/** The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode. */
|
|
113
|
-
migrationState?:
|
|
137
|
+
migrationState?:
|
|
138
|
+
| 'MIGRATION_STATE_UNSPECIFIED'
|
|
139
|
+
| 'RUNNING'
|
|
140
|
+
| 'PAUSED'
|
|
141
|
+
| 'COMPLETE';
|
|
114
142
|
/** The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode. */
|
|
115
|
-
migrationStep?:
|
|
143
|
+
migrationStep?:
|
|
144
|
+
| 'MIGRATION_STEP_UNSPECIFIED'
|
|
145
|
+
| 'PREPARE'
|
|
146
|
+
| 'START'
|
|
147
|
+
| 'APPLY_WRITES_SYNCHRONOUSLY'
|
|
148
|
+
| 'COPY_AND_VERIFY'
|
|
149
|
+
| 'REDIRECT_EVENTUALLY_CONSISTENT_READS'
|
|
150
|
+
| 'REDIRECT_STRONGLY_CONSISTENT_READS'
|
|
151
|
+
| 'REDIRECT_WRITES';
|
|
116
152
|
}
|
|
117
153
|
interface GoogleDatastoreAdminV1EntityFilter {
|
|
118
154
|
/** If empty, then this represents all kinds. */
|
|
@@ -162,15 +198,27 @@ declare namespace gapi.client {
|
|
|
162
198
|
/** Details for the `REDIRECT_WRITES` step. */
|
|
163
199
|
redirectWritesStepDetails?: GoogleDatastoreAdminV1RedirectWritesStepDetails;
|
|
164
200
|
/** The step that is starting. An event with step set to `START` indicates that the migration has been reverted back to the initial pre-migration state. */
|
|
165
|
-
step?:
|
|
201
|
+
step?:
|
|
202
|
+
| 'MIGRATION_STEP_UNSPECIFIED'
|
|
203
|
+
| 'PREPARE'
|
|
204
|
+
| 'START'
|
|
205
|
+
| 'APPLY_WRITES_SYNCHRONOUSLY'
|
|
206
|
+
| 'COPY_AND_VERIFY'
|
|
207
|
+
| 'REDIRECT_EVENTUALLY_CONSISTENT_READS'
|
|
208
|
+
| 'REDIRECT_STRONGLY_CONSISTENT_READS'
|
|
209
|
+
| 'REDIRECT_WRITES';
|
|
166
210
|
}
|
|
167
211
|
interface GoogleDatastoreAdminV1MigrationStateEvent {
|
|
168
212
|
/** The new state of the migration. */
|
|
169
|
-
state?:
|
|
213
|
+
state?: 'MIGRATION_STATE_UNSPECIFIED' | 'RUNNING' | 'PAUSED' | 'COMPLETE';
|
|
170
214
|
}
|
|
171
215
|
interface GoogleDatastoreAdminV1PrepareStepDetails {
|
|
172
216
|
/** The concurrency mode this database will use when it reaches the `REDIRECT_WRITES` step. */
|
|
173
|
-
concurrencyMode?:
|
|
217
|
+
concurrencyMode?:
|
|
218
|
+
| 'CONCURRENCY_MODE_UNSPECIFIED'
|
|
219
|
+
| 'PESSIMISTIC'
|
|
220
|
+
| 'OPTIMISTIC'
|
|
221
|
+
| 'OPTIMISTIC_WITH_ENTITY_GROUPS';
|
|
174
222
|
}
|
|
175
223
|
interface GoogleDatastoreAdminV1Progress {
|
|
176
224
|
/** The amount of work that has been completed. Note that this may be greater than work_estimated. */
|
|
@@ -180,7 +228,11 @@ declare namespace gapi.client {
|
|
|
180
228
|
}
|
|
181
229
|
interface GoogleDatastoreAdminV1RedirectWritesStepDetails {
|
|
182
230
|
/** The concurrency mode for this database. */
|
|
183
|
-
concurrencyMode?:
|
|
231
|
+
concurrencyMode?:
|
|
232
|
+
| 'CONCURRENCY_MODE_UNSPECIFIED'
|
|
233
|
+
| 'PESSIMISTIC'
|
|
234
|
+
| 'OPTIMISTIC'
|
|
235
|
+
| 'OPTIMISTIC_WITH_ENTITY_GROUPS';
|
|
184
236
|
}
|
|
185
237
|
interface GoogleLongrunningOperation {
|
|
186
238
|
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
@@ -198,7 +250,7 @@ declare namespace gapi.client {
|
|
|
198
250
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
199
251
|
code?: number;
|
|
200
252
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
201
|
-
details?:
|
|
253
|
+
details?: {[P in string]: any}[];
|
|
202
254
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
203
255
|
message?: string;
|
|
204
256
|
}
|
|
@@ -206,11 +258,11 @@ declare namespace gapi.client {
|
|
|
206
258
|
/** Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage. */
|
|
207
259
|
export(request: {
|
|
208
260
|
/** V1 error format. */
|
|
209
|
-
'$.xgafv'?:
|
|
261
|
+
'$.xgafv'?: '1' | '2';
|
|
210
262
|
/** OAuth access token. */
|
|
211
263
|
access_token?: string;
|
|
212
264
|
/** Data format for response. */
|
|
213
|
-
alt?:
|
|
265
|
+
alt?: 'json' | 'media' | 'proto';
|
|
214
266
|
/** JSONP */
|
|
215
267
|
callback?: string;
|
|
216
268
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -235,11 +287,11 @@ declare namespace gapi.client {
|
|
|
235
287
|
export(
|
|
236
288
|
request: {
|
|
237
289
|
/** V1 error format. */
|
|
238
|
-
'$.xgafv'?:
|
|
290
|
+
'$.xgafv'?: '1' | '2';
|
|
239
291
|
/** OAuth access token. */
|
|
240
292
|
access_token?: string;
|
|
241
293
|
/** Data format for response. */
|
|
242
|
-
alt?:
|
|
294
|
+
alt?: 'json' | 'media' | 'proto';
|
|
243
295
|
/** JSONP */
|
|
244
296
|
callback?: string;
|
|
245
297
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -264,11 +316,11 @@ declare namespace gapi.client {
|
|
|
264
316
|
/** Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore. */
|
|
265
317
|
import(request: {
|
|
266
318
|
/** V1 error format. */
|
|
267
|
-
'$.xgafv'?:
|
|
319
|
+
'$.xgafv'?: '1' | '2';
|
|
268
320
|
/** OAuth access token. */
|
|
269
321
|
access_token?: string;
|
|
270
322
|
/** Data format for response. */
|
|
271
|
-
alt?:
|
|
323
|
+
alt?: 'json' | 'media' | 'proto';
|
|
272
324
|
/** JSONP */
|
|
273
325
|
callback?: string;
|
|
274
326
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -293,11 +345,11 @@ declare namespace gapi.client {
|
|
|
293
345
|
import(
|
|
294
346
|
request: {
|
|
295
347
|
/** V1 error format. */
|
|
296
|
-
'$.xgafv'?:
|
|
348
|
+
'$.xgafv'?: '1' | '2';
|
|
297
349
|
/** OAuth access token. */
|
|
298
350
|
access_token?: string;
|
|
299
351
|
/** Data format for response. */
|
|
300
|
-
alt?:
|
|
352
|
+
alt?: 'json' | 'media' | 'proto';
|
|
301
353
|
/** JSONP */
|
|
302
354
|
callback?: string;
|
|
303
355
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Cloud Datastore API:
|
|
|
11
11
|
npm install @types/gapi.client.datastore-v1beta1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.datastore-v1beta1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|