@maxim_mazurok/gapi.client.datastore-v1beta3 0.0.20220715
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 +931 -0
- package/package.json +20 -0
- package/readme.md +106 -0
- package/tests.ts +505 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.datastore-v1beta3",
|
|
3
|
+
"version": "0.0.20220715",
|
|
4
|
+
"description": "TypeScript typings for Cloud Datastore API v1beta3",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"email": "maxim@mazurok.com",
|
|
8
|
+
"name": "Maxim Mazurok",
|
|
9
|
+
"url": "https://maxim.mazurok.com"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
+
},
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@types/gapi.client": "*",
|
|
18
|
+
"@types/gapi.client.discovery": "*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# TypeScript typings for Cloud Datastore API v1beta3
|
|
2
|
+
|
|
3
|
+
Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
|
|
4
|
+
For detailed description please check [documentation](https://cloud.google.com/datastore/).
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Install typings for Cloud Datastore API:
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install @types/gapi.client.datastore-v1beta3 --save-dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
You need to initialize Google API client in your code:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
gapi.load('client', () => {
|
|
20
|
+
// now we can use gapi.client
|
|
21
|
+
// ...
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then load api client wrapper:
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
gapi.client.load('https://datastore.googleapis.com/$discovery/rest?version=v1beta3', () => {
|
|
29
|
+
// now we can use:
|
|
30
|
+
// gapi.client.datastore
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
|
|
36
|
+
gapi.client.load('datastore', 'v1beta3', () => {
|
|
37
|
+
// now we can use:
|
|
38
|
+
// gapi.client.datastore
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Don't forget to authenticate your client before sending any request to resources:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
// declare client_id registered in Google Developers Console
|
|
46
|
+
var client_id = '',
|
|
47
|
+
scope = [
|
|
48
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
49
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
50
|
+
|
|
51
|
+
// View and manage your Google Cloud Datastore data
|
|
52
|
+
'https://www.googleapis.com/auth/datastore',
|
|
53
|
+
],
|
|
54
|
+
immediate = true;
|
|
55
|
+
// ...
|
|
56
|
+
|
|
57
|
+
gapi.auth.authorize(
|
|
58
|
+
{ client_id: client_id, scope: scope, immediate: immediate },
|
|
59
|
+
authResult => {
|
|
60
|
+
if (authResult && !authResult.error) {
|
|
61
|
+
/* handle successful authorization */
|
|
62
|
+
} else {
|
|
63
|
+
/* handle authorization error */
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
After that you can use Cloud Datastore API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
|
|
74
|
+
*/
|
|
75
|
+
await gapi.client.datastore.projects.allocateIds({ projectId: "projectId", });
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
Begins a new transaction.
|
|
79
|
+
*/
|
|
80
|
+
await gapi.client.datastore.projects.beginTransaction({ projectId: "projectId", });
|
|
81
|
+
|
|
82
|
+
/*
|
|
83
|
+
Commits a transaction, optionally creating, deleting or modifying some entities.
|
|
84
|
+
*/
|
|
85
|
+
await gapi.client.datastore.projects.commit({ projectId: "projectId", });
|
|
86
|
+
|
|
87
|
+
/*
|
|
88
|
+
Looks up entities by key.
|
|
89
|
+
*/
|
|
90
|
+
await gapi.client.datastore.projects.lookup({ projectId: "projectId", });
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
|
|
94
|
+
*/
|
|
95
|
+
await gapi.client.datastore.projects.reserveIds({ projectId: "projectId", });
|
|
96
|
+
|
|
97
|
+
/*
|
|
98
|
+
Rolls back a transaction.
|
|
99
|
+
*/
|
|
100
|
+
await gapi.client.datastore.projects.rollback({ projectId: "projectId", });
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
Queries for entities.
|
|
104
|
+
*/
|
|
105
|
+
await gapi.client.datastore.projects.runQuery({ projectId: "projectId", });
|
|
106
|
+
```
|
package/tests.ts
ADDED
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.datastore-v1beta3 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220715
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://datastore.googleapis.com/$discovery/rest?version=v1beta3');
|
|
12
|
+
/** now we can use gapi.client.datastore */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
+
/** View and manage your Google Cloud Datastore data */
|
|
21
|
+
'https://www.googleapis.com/auth/datastore',
|
|
22
|
+
];
|
|
23
|
+
const immediate = false;
|
|
24
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
25
|
+
if (authResult && !authResult.error) {
|
|
26
|
+
/** handle successful authorization */
|
|
27
|
+
run();
|
|
28
|
+
} else {
|
|
29
|
+
/** handle authorization error */
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
async function run() {
|
|
34
|
+
/** Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. */
|
|
35
|
+
await gapi.client.datastore.projects.allocateIds({
|
|
36
|
+
projectId: "Test string",
|
|
37
|
+
}, {
|
|
38
|
+
keys: [
|
|
39
|
+
{
|
|
40
|
+
partitionId: {
|
|
41
|
+
namespaceId: "Test string",
|
|
42
|
+
projectId: "Test string",
|
|
43
|
+
},
|
|
44
|
+
path: [
|
|
45
|
+
{
|
|
46
|
+
id: "Test string",
|
|
47
|
+
kind: "Test string",
|
|
48
|
+
name: "Test string",
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
/** Begins a new transaction. */
|
|
55
|
+
await gapi.client.datastore.projects.beginTransaction({
|
|
56
|
+
projectId: "Test string",
|
|
57
|
+
}, {
|
|
58
|
+
transactionOptions: {
|
|
59
|
+
readOnly: {
|
|
60
|
+
readTime: "Test string",
|
|
61
|
+
},
|
|
62
|
+
readWrite: {
|
|
63
|
+
previousTransaction: "Test string",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
/** Commits a transaction, optionally creating, deleting or modifying some entities. */
|
|
68
|
+
await gapi.client.datastore.projects.commit({
|
|
69
|
+
projectId: "Test string",
|
|
70
|
+
}, {
|
|
71
|
+
mode: "Test string",
|
|
72
|
+
mutations: [
|
|
73
|
+
{
|
|
74
|
+
baseVersion: "Test string",
|
|
75
|
+
delete: {
|
|
76
|
+
partitionId: {
|
|
77
|
+
namespaceId: "Test string",
|
|
78
|
+
projectId: "Test string",
|
|
79
|
+
},
|
|
80
|
+
path: [
|
|
81
|
+
{
|
|
82
|
+
id: "Test string",
|
|
83
|
+
kind: "Test string",
|
|
84
|
+
name: "Test string",
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
insert: {
|
|
89
|
+
key: {
|
|
90
|
+
partitionId: {
|
|
91
|
+
namespaceId: "Test string",
|
|
92
|
+
projectId: "Test string",
|
|
93
|
+
},
|
|
94
|
+
path: [
|
|
95
|
+
{
|
|
96
|
+
id: "Test string",
|
|
97
|
+
kind: "Test string",
|
|
98
|
+
name: "Test string",
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
properties: {
|
|
103
|
+
A: {
|
|
104
|
+
arrayValue: {
|
|
105
|
+
values: undefined,
|
|
106
|
+
},
|
|
107
|
+
blobValue: "Test string",
|
|
108
|
+
booleanValue: true,
|
|
109
|
+
doubleValue: 42,
|
|
110
|
+
entityValue: undefined,
|
|
111
|
+
excludeFromIndexes: true,
|
|
112
|
+
geoPointValue: {
|
|
113
|
+
latitude: 42,
|
|
114
|
+
longitude: 42,
|
|
115
|
+
},
|
|
116
|
+
integerValue: "Test string",
|
|
117
|
+
keyValue: {
|
|
118
|
+
partitionId: {
|
|
119
|
+
namespaceId: "Test string",
|
|
120
|
+
projectId: "Test string",
|
|
121
|
+
},
|
|
122
|
+
path: [
|
|
123
|
+
{
|
|
124
|
+
id: "Test string",
|
|
125
|
+
kind: "Test string",
|
|
126
|
+
name: "Test string",
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
meaning: 42,
|
|
131
|
+
nullValue: "Test string",
|
|
132
|
+
stringValue: "Test string",
|
|
133
|
+
timestampValue: "Test string",
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
update: {
|
|
138
|
+
key: {
|
|
139
|
+
partitionId: {
|
|
140
|
+
namespaceId: "Test string",
|
|
141
|
+
projectId: "Test string",
|
|
142
|
+
},
|
|
143
|
+
path: [
|
|
144
|
+
{
|
|
145
|
+
id: "Test string",
|
|
146
|
+
kind: "Test string",
|
|
147
|
+
name: "Test string",
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
properties: {
|
|
152
|
+
A: {
|
|
153
|
+
arrayValue: {
|
|
154
|
+
values: undefined,
|
|
155
|
+
},
|
|
156
|
+
blobValue: "Test string",
|
|
157
|
+
booleanValue: true,
|
|
158
|
+
doubleValue: 42,
|
|
159
|
+
entityValue: undefined,
|
|
160
|
+
excludeFromIndexes: true,
|
|
161
|
+
geoPointValue: {
|
|
162
|
+
latitude: 42,
|
|
163
|
+
longitude: 42,
|
|
164
|
+
},
|
|
165
|
+
integerValue: "Test string",
|
|
166
|
+
keyValue: {
|
|
167
|
+
partitionId: {
|
|
168
|
+
namespaceId: "Test string",
|
|
169
|
+
projectId: "Test string",
|
|
170
|
+
},
|
|
171
|
+
path: [
|
|
172
|
+
{
|
|
173
|
+
id: "Test string",
|
|
174
|
+
kind: "Test string",
|
|
175
|
+
name: "Test string",
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
meaning: 42,
|
|
180
|
+
nullValue: "Test string",
|
|
181
|
+
stringValue: "Test string",
|
|
182
|
+
timestampValue: "Test string",
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
updateTime: "Test string",
|
|
187
|
+
upsert: {
|
|
188
|
+
key: {
|
|
189
|
+
partitionId: {
|
|
190
|
+
namespaceId: "Test string",
|
|
191
|
+
projectId: "Test string",
|
|
192
|
+
},
|
|
193
|
+
path: [
|
|
194
|
+
{
|
|
195
|
+
id: "Test string",
|
|
196
|
+
kind: "Test string",
|
|
197
|
+
name: "Test string",
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
properties: {
|
|
202
|
+
A: {
|
|
203
|
+
arrayValue: {
|
|
204
|
+
values: undefined,
|
|
205
|
+
},
|
|
206
|
+
blobValue: "Test string",
|
|
207
|
+
booleanValue: true,
|
|
208
|
+
doubleValue: 42,
|
|
209
|
+
entityValue: undefined,
|
|
210
|
+
excludeFromIndexes: true,
|
|
211
|
+
geoPointValue: {
|
|
212
|
+
latitude: 42,
|
|
213
|
+
longitude: 42,
|
|
214
|
+
},
|
|
215
|
+
integerValue: "Test string",
|
|
216
|
+
keyValue: {
|
|
217
|
+
partitionId: {
|
|
218
|
+
namespaceId: "Test string",
|
|
219
|
+
projectId: "Test string",
|
|
220
|
+
},
|
|
221
|
+
path: [
|
|
222
|
+
{
|
|
223
|
+
id: "Test string",
|
|
224
|
+
kind: "Test string",
|
|
225
|
+
name: "Test string",
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
meaning: 42,
|
|
230
|
+
nullValue: "Test string",
|
|
231
|
+
stringValue: "Test string",
|
|
232
|
+
timestampValue: "Test string",
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
transaction: "Test string",
|
|
239
|
+
});
|
|
240
|
+
/** Looks up entities by key. */
|
|
241
|
+
await gapi.client.datastore.projects.lookup({
|
|
242
|
+
projectId: "Test string",
|
|
243
|
+
}, {
|
|
244
|
+
keys: [
|
|
245
|
+
{
|
|
246
|
+
partitionId: {
|
|
247
|
+
namespaceId: "Test string",
|
|
248
|
+
projectId: "Test string",
|
|
249
|
+
},
|
|
250
|
+
path: [
|
|
251
|
+
{
|
|
252
|
+
id: "Test string",
|
|
253
|
+
kind: "Test string",
|
|
254
|
+
name: "Test string",
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
readOptions: {
|
|
260
|
+
readConsistency: "Test string",
|
|
261
|
+
readTime: "Test string",
|
|
262
|
+
transaction: "Test string",
|
|
263
|
+
},
|
|
264
|
+
});
|
|
265
|
+
/** Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore. */
|
|
266
|
+
await gapi.client.datastore.projects.reserveIds({
|
|
267
|
+
projectId: "Test string",
|
|
268
|
+
}, {
|
|
269
|
+
databaseId: "Test string",
|
|
270
|
+
keys: [
|
|
271
|
+
{
|
|
272
|
+
partitionId: {
|
|
273
|
+
namespaceId: "Test string",
|
|
274
|
+
projectId: "Test string",
|
|
275
|
+
},
|
|
276
|
+
path: [
|
|
277
|
+
{
|
|
278
|
+
id: "Test string",
|
|
279
|
+
kind: "Test string",
|
|
280
|
+
name: "Test string",
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
});
|
|
286
|
+
/** Rolls back a transaction. */
|
|
287
|
+
await gapi.client.datastore.projects.rollback({
|
|
288
|
+
projectId: "Test string",
|
|
289
|
+
}, {
|
|
290
|
+
transaction: "Test string",
|
|
291
|
+
});
|
|
292
|
+
/** Queries for entities. */
|
|
293
|
+
await gapi.client.datastore.projects.runQuery({
|
|
294
|
+
projectId: "Test string",
|
|
295
|
+
}, {
|
|
296
|
+
gqlQuery: {
|
|
297
|
+
allowLiterals: true,
|
|
298
|
+
namedBindings: {
|
|
299
|
+
A: {
|
|
300
|
+
cursor: "Test string",
|
|
301
|
+
value: {
|
|
302
|
+
arrayValue: {
|
|
303
|
+
values: undefined,
|
|
304
|
+
},
|
|
305
|
+
blobValue: "Test string",
|
|
306
|
+
booleanValue: true,
|
|
307
|
+
doubleValue: 42,
|
|
308
|
+
entityValue: {
|
|
309
|
+
key: {
|
|
310
|
+
partitionId: {
|
|
311
|
+
namespaceId: "Test string",
|
|
312
|
+
projectId: "Test string",
|
|
313
|
+
},
|
|
314
|
+
path: [
|
|
315
|
+
{
|
|
316
|
+
id: "Test string",
|
|
317
|
+
kind: "Test string",
|
|
318
|
+
name: "Test string",
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
properties: undefined,
|
|
323
|
+
},
|
|
324
|
+
excludeFromIndexes: true,
|
|
325
|
+
geoPointValue: {
|
|
326
|
+
latitude: 42,
|
|
327
|
+
longitude: 42,
|
|
328
|
+
},
|
|
329
|
+
integerValue: "Test string",
|
|
330
|
+
keyValue: {
|
|
331
|
+
partitionId: {
|
|
332
|
+
namespaceId: "Test string",
|
|
333
|
+
projectId: "Test string",
|
|
334
|
+
},
|
|
335
|
+
path: [
|
|
336
|
+
{
|
|
337
|
+
id: "Test string",
|
|
338
|
+
kind: "Test string",
|
|
339
|
+
name: "Test string",
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
},
|
|
343
|
+
meaning: 42,
|
|
344
|
+
nullValue: "Test string",
|
|
345
|
+
stringValue: "Test string",
|
|
346
|
+
timestampValue: "Test string",
|
|
347
|
+
},
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
positionalBindings: [
|
|
351
|
+
{
|
|
352
|
+
cursor: "Test string",
|
|
353
|
+
value: {
|
|
354
|
+
arrayValue: {
|
|
355
|
+
values: undefined,
|
|
356
|
+
},
|
|
357
|
+
blobValue: "Test string",
|
|
358
|
+
booleanValue: true,
|
|
359
|
+
doubleValue: 42,
|
|
360
|
+
entityValue: {
|
|
361
|
+
key: {
|
|
362
|
+
partitionId: {
|
|
363
|
+
namespaceId: "Test string",
|
|
364
|
+
projectId: "Test string",
|
|
365
|
+
},
|
|
366
|
+
path: [
|
|
367
|
+
{
|
|
368
|
+
id: "Test string",
|
|
369
|
+
kind: "Test string",
|
|
370
|
+
name: "Test string",
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
},
|
|
374
|
+
properties: undefined,
|
|
375
|
+
},
|
|
376
|
+
excludeFromIndexes: true,
|
|
377
|
+
geoPointValue: {
|
|
378
|
+
latitude: 42,
|
|
379
|
+
longitude: 42,
|
|
380
|
+
},
|
|
381
|
+
integerValue: "Test string",
|
|
382
|
+
keyValue: {
|
|
383
|
+
partitionId: {
|
|
384
|
+
namespaceId: "Test string",
|
|
385
|
+
projectId: "Test string",
|
|
386
|
+
},
|
|
387
|
+
path: [
|
|
388
|
+
{
|
|
389
|
+
id: "Test string",
|
|
390
|
+
kind: "Test string",
|
|
391
|
+
name: "Test string",
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
},
|
|
395
|
+
meaning: 42,
|
|
396
|
+
nullValue: "Test string",
|
|
397
|
+
stringValue: "Test string",
|
|
398
|
+
timestampValue: "Test string",
|
|
399
|
+
},
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
queryString: "Test string",
|
|
403
|
+
},
|
|
404
|
+
partitionId: {
|
|
405
|
+
namespaceId: "Test string",
|
|
406
|
+
projectId: "Test string",
|
|
407
|
+
},
|
|
408
|
+
query: {
|
|
409
|
+
distinctOn: [
|
|
410
|
+
{
|
|
411
|
+
name: "Test string",
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
endCursor: "Test string",
|
|
415
|
+
filter: {
|
|
416
|
+
compositeFilter: {
|
|
417
|
+
filters: undefined,
|
|
418
|
+
op: "Test string",
|
|
419
|
+
},
|
|
420
|
+
propertyFilter: {
|
|
421
|
+
op: "Test string",
|
|
422
|
+
property: {
|
|
423
|
+
name: "Test string",
|
|
424
|
+
},
|
|
425
|
+
value: {
|
|
426
|
+
arrayValue: {
|
|
427
|
+
values: undefined,
|
|
428
|
+
},
|
|
429
|
+
blobValue: "Test string",
|
|
430
|
+
booleanValue: true,
|
|
431
|
+
doubleValue: 42,
|
|
432
|
+
entityValue: {
|
|
433
|
+
key: {
|
|
434
|
+
partitionId: {
|
|
435
|
+
namespaceId: "Test string",
|
|
436
|
+
projectId: "Test string",
|
|
437
|
+
},
|
|
438
|
+
path: [
|
|
439
|
+
{
|
|
440
|
+
id: "Test string",
|
|
441
|
+
kind: "Test string",
|
|
442
|
+
name: "Test string",
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
},
|
|
446
|
+
properties: undefined,
|
|
447
|
+
},
|
|
448
|
+
excludeFromIndexes: true,
|
|
449
|
+
geoPointValue: {
|
|
450
|
+
latitude: 42,
|
|
451
|
+
longitude: 42,
|
|
452
|
+
},
|
|
453
|
+
integerValue: "Test string",
|
|
454
|
+
keyValue: {
|
|
455
|
+
partitionId: {
|
|
456
|
+
namespaceId: "Test string",
|
|
457
|
+
projectId: "Test string",
|
|
458
|
+
},
|
|
459
|
+
path: [
|
|
460
|
+
{
|
|
461
|
+
id: "Test string",
|
|
462
|
+
kind: "Test string",
|
|
463
|
+
name: "Test string",
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
},
|
|
467
|
+
meaning: 42,
|
|
468
|
+
nullValue: "Test string",
|
|
469
|
+
stringValue: "Test string",
|
|
470
|
+
timestampValue: "Test string",
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
kind: [
|
|
475
|
+
{
|
|
476
|
+
name: "Test string",
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
limit: 42,
|
|
480
|
+
offset: 42,
|
|
481
|
+
order: [
|
|
482
|
+
{
|
|
483
|
+
direction: "Test string",
|
|
484
|
+
property: {
|
|
485
|
+
name: "Test string",
|
|
486
|
+
},
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
projection: [
|
|
490
|
+
{
|
|
491
|
+
property: {
|
|
492
|
+
name: "Test string",
|
|
493
|
+
},
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
startCursor: "Test string",
|
|
497
|
+
},
|
|
498
|
+
readOptions: {
|
|
499
|
+
readConsistency: "Test string",
|
|
500
|
+
readTime: "Test string",
|
|
501
|
+
transaction: "Test string",
|
|
502
|
+
},
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": ["es6", "dom"],
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"baseUrl": "../",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../"
|
|
11
|
+
],
|
|
12
|
+
"types": [],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"strictFunctionTypes": true
|
|
16
|
+
},
|
|
17
|
+
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
+
}
|