@maxim_mazurok/gapi.client.dataportability-v1beta 0.1.20260316 → 0.1.20260604
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 +33 -25
- 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://dataportability.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260604
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -48,7 +48,10 @@ declare namespace gapi.client {
|
|
|
48
48
|
}
|
|
49
49
|
interface InitiatePortabilityArchiveResponse {
|
|
50
50
|
/** The access type of the Archive job initiated by the API. */
|
|
51
|
-
accessType?:
|
|
51
|
+
accessType?:
|
|
52
|
+
| 'ACCESS_TYPE_UNSPECIFIED'
|
|
53
|
+
| 'ACCESS_TYPE_ONE_TIME'
|
|
54
|
+
| 'ACCESS_TYPE_TIME_BASED';
|
|
52
55
|
/** The archive job ID that is initiated in the API. This can be used to get the state of the job. */
|
|
53
56
|
archiveJobId?: string;
|
|
54
57
|
}
|
|
@@ -60,7 +63,12 @@ declare namespace gapi.client {
|
|
|
60
63
|
/** The timestamp that represents the starting point for the data you are exporting. This field is set only if the start_time field is specified in the InitiatePortabilityArchiveRequest. */
|
|
61
64
|
startTime?: string;
|
|
62
65
|
/** Resource that represents the state of the Archive job. */
|
|
63
|
-
state?:
|
|
66
|
+
state?:
|
|
67
|
+
| 'STATE_UNSPECIFIED'
|
|
68
|
+
| 'IN_PROGRESS'
|
|
69
|
+
| 'COMPLETE'
|
|
70
|
+
| 'FAILED'
|
|
71
|
+
| 'CANCELLED';
|
|
64
72
|
/** If the state is complete, this method returns the signed URLs of the objects in the Cloud Storage bucket. */
|
|
65
73
|
urls?: string[];
|
|
66
74
|
}
|
|
@@ -74,11 +82,11 @@ declare namespace gapi.client {
|
|
|
74
82
|
/** Gets the access type of the token. */
|
|
75
83
|
check(request: {
|
|
76
84
|
/** V1 error format. */
|
|
77
|
-
'$.xgafv'?:
|
|
85
|
+
'$.xgafv'?: '1' | '2';
|
|
78
86
|
/** OAuth access token. */
|
|
79
87
|
access_token?: string;
|
|
80
88
|
/** Data format for response. */
|
|
81
|
-
alt?:
|
|
89
|
+
alt?: 'json' | 'media' | 'proto';
|
|
82
90
|
/** JSONP */
|
|
83
91
|
callback?: string;
|
|
84
92
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -101,11 +109,11 @@ declare namespace gapi.client {
|
|
|
101
109
|
check(
|
|
102
110
|
request: {
|
|
103
111
|
/** V1 error format. */
|
|
104
|
-
'$.xgafv'?:
|
|
112
|
+
'$.xgafv'?: '1' | '2';
|
|
105
113
|
/** OAuth access token. */
|
|
106
114
|
access_token?: string;
|
|
107
115
|
/** Data format for response. */
|
|
108
|
-
alt?:
|
|
116
|
+
alt?: 'json' | 'media' | 'proto';
|
|
109
117
|
/** JSONP */
|
|
110
118
|
callback?: string;
|
|
111
119
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -130,11 +138,11 @@ declare namespace gapi.client {
|
|
|
130
138
|
/** Cancels a Portability Archive job. */
|
|
131
139
|
cancel(request: {
|
|
132
140
|
/** V1 error format. */
|
|
133
|
-
'$.xgafv'?:
|
|
141
|
+
'$.xgafv'?: '1' | '2';
|
|
134
142
|
/** OAuth access token. */
|
|
135
143
|
access_token?: string;
|
|
136
144
|
/** Data format for response. */
|
|
137
|
-
alt?:
|
|
145
|
+
alt?: 'json' | 'media' | 'proto';
|
|
138
146
|
/** JSONP */
|
|
139
147
|
callback?: string;
|
|
140
148
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -159,11 +167,11 @@ declare namespace gapi.client {
|
|
|
159
167
|
cancel(
|
|
160
168
|
request: {
|
|
161
169
|
/** V1 error format. */
|
|
162
|
-
'$.xgafv'?:
|
|
170
|
+
'$.xgafv'?: '1' | '2';
|
|
163
171
|
/** OAuth access token. */
|
|
164
172
|
access_token?: string;
|
|
165
173
|
/** Data format for response. */
|
|
166
|
-
alt?:
|
|
174
|
+
alt?: 'json' | 'media' | 'proto';
|
|
167
175
|
/** JSONP */
|
|
168
176
|
callback?: string;
|
|
169
177
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -188,11 +196,11 @@ declare namespace gapi.client {
|
|
|
188
196
|
/** Retrieves the state of an Archive job for the Portability API. */
|
|
189
197
|
getPortabilityArchiveState(request?: {
|
|
190
198
|
/** V1 error format. */
|
|
191
|
-
'$.xgafv'?:
|
|
199
|
+
'$.xgafv'?: '1' | '2';
|
|
192
200
|
/** OAuth access token. */
|
|
193
201
|
access_token?: string;
|
|
194
202
|
/** Data format for response. */
|
|
195
|
-
alt?:
|
|
203
|
+
alt?: 'json' | 'media' | 'proto';
|
|
196
204
|
/** JSONP */
|
|
197
205
|
callback?: string;
|
|
198
206
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -215,11 +223,11 @@ declare namespace gapi.client {
|
|
|
215
223
|
/** Retries a failed Portability Archive job. */
|
|
216
224
|
retry(request: {
|
|
217
225
|
/** V1 error format. */
|
|
218
|
-
'$.xgafv'?:
|
|
226
|
+
'$.xgafv'?: '1' | '2';
|
|
219
227
|
/** OAuth access token. */
|
|
220
228
|
access_token?: string;
|
|
221
229
|
/** Data format for response. */
|
|
222
|
-
alt?:
|
|
230
|
+
alt?: 'json' | 'media' | 'proto';
|
|
223
231
|
/** JSONP */
|
|
224
232
|
callback?: string;
|
|
225
233
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -244,11 +252,11 @@ declare namespace gapi.client {
|
|
|
244
252
|
retry(
|
|
245
253
|
request: {
|
|
246
254
|
/** V1 error format. */
|
|
247
|
-
'$.xgafv'?:
|
|
255
|
+
'$.xgafv'?: '1' | '2';
|
|
248
256
|
/** OAuth access token. */
|
|
249
257
|
access_token?: string;
|
|
250
258
|
/** Data format for response. */
|
|
251
|
-
alt?:
|
|
259
|
+
alt?: 'json' | 'media' | 'proto';
|
|
252
260
|
/** JSONP */
|
|
253
261
|
callback?: string;
|
|
254
262
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -275,11 +283,11 @@ declare namespace gapi.client {
|
|
|
275
283
|
/** Revokes OAuth tokens and resets exhausted scopes for a user/project pair. This method allows you to initiate a request after a new consent is granted. This method also indicates that previous archives can be garbage collected. You should call this method when all jobs are complete and all archives are downloaded. Do not call it only when you start a new job. */
|
|
276
284
|
reset(request: {
|
|
277
285
|
/** V1 error format. */
|
|
278
|
-
'$.xgafv'?:
|
|
286
|
+
'$.xgafv'?: '1' | '2';
|
|
279
287
|
/** OAuth access token. */
|
|
280
288
|
access_token?: string;
|
|
281
289
|
/** Data format for response. */
|
|
282
|
-
alt?:
|
|
290
|
+
alt?: 'json' | 'media' | 'proto';
|
|
283
291
|
/** JSONP */
|
|
284
292
|
callback?: string;
|
|
285
293
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -302,11 +310,11 @@ declare namespace gapi.client {
|
|
|
302
310
|
reset(
|
|
303
311
|
request: {
|
|
304
312
|
/** V1 error format. */
|
|
305
|
-
'$.xgafv'?:
|
|
313
|
+
'$.xgafv'?: '1' | '2';
|
|
306
314
|
/** OAuth access token. */
|
|
307
315
|
access_token?: string;
|
|
308
316
|
/** Data format for response. */
|
|
309
|
-
alt?:
|
|
317
|
+
alt?: 'json' | 'media' | 'proto';
|
|
310
318
|
/** JSONP */
|
|
311
319
|
callback?: string;
|
|
312
320
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -331,11 +339,11 @@ declare namespace gapi.client {
|
|
|
331
339
|
/** Initiates a new Archive job for the Portability API. */
|
|
332
340
|
initiate(request: {
|
|
333
341
|
/** V1 error format. */
|
|
334
|
-
'$.xgafv'?:
|
|
342
|
+
'$.xgafv'?: '1' | '2';
|
|
335
343
|
/** OAuth access token. */
|
|
336
344
|
access_token?: string;
|
|
337
345
|
/** Data format for response. */
|
|
338
|
-
alt?:
|
|
346
|
+
alt?: 'json' | 'media' | 'proto';
|
|
339
347
|
/** JSONP */
|
|
340
348
|
callback?: string;
|
|
341
349
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -358,11 +366,11 @@ declare namespace gapi.client {
|
|
|
358
366
|
initiate(
|
|
359
367
|
request: {
|
|
360
368
|
/** V1 error format. */
|
|
361
|
-
'$.xgafv'?:
|
|
369
|
+
'$.xgafv'?: '1' | '2';
|
|
362
370
|
/** OAuth access token. */
|
|
363
371
|
access_token?: string;
|
|
364
372
|
/** Data format for response. */
|
|
365
|
-
alt?:
|
|
373
|
+
alt?: 'json' | 'media' | 'proto';
|
|
366
374
|
/** JSONP */
|
|
367
375
|
callback?: string;
|
|
368
376
|
/** 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 Data Portability API:
|
|
|
11
11
|
npm install @types/gapi.client.dataportability-v1beta --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.dataportability-v1beta"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|