@maxim_mazurok/gapi.client.keep-v1 0.1.20260311 → 0.2.20260601
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 +22 -22
- package/package.json +1 -1
- package/readme.md +12 -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://keep.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260601
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -104,7 +104,7 @@ declare namespace gapi.client {
|
|
|
104
104
|
/** Output only. The resource name. */
|
|
105
105
|
name?: string;
|
|
106
106
|
/** The role granted by this permission. The role determines the entity’s ability to read, write, and share notes. */
|
|
107
|
-
role?:
|
|
107
|
+
role?: 'ROLE_UNSPECIFIED' | 'OWNER' | 'WRITER';
|
|
108
108
|
/** Output only. The user to whom this role applies. */
|
|
109
109
|
user?: User;
|
|
110
110
|
}
|
|
@@ -126,11 +126,11 @@ declare namespace gapi.client {
|
|
|
126
126
|
/** Gets an attachment. To download attachment media via REST requires the alt=media query parameter. Returns a 400 bad request error if attachment media is not available in the requested MIME type. */
|
|
127
127
|
download(request?: {
|
|
128
128
|
/** V1 error format. */
|
|
129
|
-
'$.xgafv'?:
|
|
129
|
+
'$.xgafv'?: '1' | '2';
|
|
130
130
|
/** OAuth access token. */
|
|
131
131
|
access_token?: string;
|
|
132
132
|
/** Data format for response. */
|
|
133
|
-
alt?:
|
|
133
|
+
alt?: 'json' | 'media' | 'proto';
|
|
134
134
|
/** JSONP */
|
|
135
135
|
callback?: string;
|
|
136
136
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -157,11 +157,11 @@ declare namespace gapi.client {
|
|
|
157
157
|
/** Creates one or more permissions on the note. Only permissions with the `WRITER` role may be created. If adding any permission fails, then the entire request fails and no changes are made. */
|
|
158
158
|
batchCreate(request: {
|
|
159
159
|
/** V1 error format. */
|
|
160
|
-
'$.xgafv'?:
|
|
160
|
+
'$.xgafv'?: '1' | '2';
|
|
161
161
|
/** OAuth access token. */
|
|
162
162
|
access_token?: string;
|
|
163
163
|
/** Data format for response. */
|
|
164
|
-
alt?:
|
|
164
|
+
alt?: 'json' | 'media' | 'proto';
|
|
165
165
|
/** JSONP */
|
|
166
166
|
callback?: string;
|
|
167
167
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -186,11 +186,11 @@ declare namespace gapi.client {
|
|
|
186
186
|
batchCreate(
|
|
187
187
|
request: {
|
|
188
188
|
/** V1 error format. */
|
|
189
|
-
'$.xgafv'?:
|
|
189
|
+
'$.xgafv'?: '1' | '2';
|
|
190
190
|
/** OAuth access token. */
|
|
191
191
|
access_token?: string;
|
|
192
192
|
/** Data format for response. */
|
|
193
|
-
alt?:
|
|
193
|
+
alt?: 'json' | 'media' | 'proto';
|
|
194
194
|
/** JSONP */
|
|
195
195
|
callback?: string;
|
|
196
196
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -215,11 +215,11 @@ declare namespace gapi.client {
|
|
|
215
215
|
/** Deletes one or more permissions on the note. The specified entities will immediately lose access. A permission with the `OWNER` role can't be removed. If removing a permission fails, then the entire request fails and no changes are made. Returns a 400 bad request error if a specified permission does not exist on the note. */
|
|
216
216
|
batchDelete(request: {
|
|
217
217
|
/** V1 error format. */
|
|
218
|
-
'$.xgafv'?:
|
|
218
|
+
'$.xgafv'?: '1' | '2';
|
|
219
219
|
/** OAuth access token. */
|
|
220
220
|
access_token?: string;
|
|
221
221
|
/** Data format for response. */
|
|
222
|
-
alt?:
|
|
222
|
+
alt?: 'json' | 'media' | 'proto';
|
|
223
223
|
/** JSONP */
|
|
224
224
|
callback?: string;
|
|
225
225
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -244,11 +244,11 @@ declare namespace gapi.client {
|
|
|
244
244
|
batchDelete(
|
|
245
245
|
request: {
|
|
246
246
|
/** V1 error format. */
|
|
247
|
-
'$.xgafv'?:
|
|
247
|
+
'$.xgafv'?: '1' | '2';
|
|
248
248
|
/** OAuth access token. */
|
|
249
249
|
access_token?: string;
|
|
250
250
|
/** Data format for response. */
|
|
251
|
-
alt?:
|
|
251
|
+
alt?: 'json' | 'media' | 'proto';
|
|
252
252
|
/** JSONP */
|
|
253
253
|
callback?: string;
|
|
254
254
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -275,11 +275,11 @@ declare namespace gapi.client {
|
|
|
275
275
|
/** Creates a new note. */
|
|
276
276
|
create(request: {
|
|
277
277
|
/** V1 error format. */
|
|
278
|
-
'$.xgafv'?:
|
|
278
|
+
'$.xgafv'?: '1' | '2';
|
|
279
279
|
/** OAuth access token. */
|
|
280
280
|
access_token?: string;
|
|
281
281
|
/** Data format for response. */
|
|
282
|
-
alt?:
|
|
282
|
+
alt?: 'json' | 'media' | 'proto';
|
|
283
283
|
/** JSONP */
|
|
284
284
|
callback?: string;
|
|
285
285
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -302,11 +302,11 @@ declare namespace gapi.client {
|
|
|
302
302
|
create(
|
|
303
303
|
request: {
|
|
304
304
|
/** V1 error format. */
|
|
305
|
-
'$.xgafv'?:
|
|
305
|
+
'$.xgafv'?: '1' | '2';
|
|
306
306
|
/** OAuth access token. */
|
|
307
307
|
access_token?: string;
|
|
308
308
|
/** Data format for response. */
|
|
309
|
-
alt?:
|
|
309
|
+
alt?: 'json' | 'media' | 'proto';
|
|
310
310
|
/** JSONP */
|
|
311
311
|
callback?: string;
|
|
312
312
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -329,11 +329,11 @@ declare namespace gapi.client {
|
|
|
329
329
|
/** Deletes a note. Caller must have the `OWNER` role on the note to delete. Deleting a note removes the resource immediately and cannot be undone. Any collaborators will lose access to the note. */
|
|
330
330
|
delete(request?: {
|
|
331
331
|
/** V1 error format. */
|
|
332
|
-
'$.xgafv'?:
|
|
332
|
+
'$.xgafv'?: '1' | '2';
|
|
333
333
|
/** OAuth access token. */
|
|
334
334
|
access_token?: string;
|
|
335
335
|
/** Data format for response. */
|
|
336
|
-
alt?:
|
|
336
|
+
alt?: 'json' | 'media' | 'proto';
|
|
337
337
|
/** JSONP */
|
|
338
338
|
callback?: string;
|
|
339
339
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -356,11 +356,11 @@ declare namespace gapi.client {
|
|
|
356
356
|
/** Gets a note. */
|
|
357
357
|
get(request?: {
|
|
358
358
|
/** V1 error format. */
|
|
359
|
-
'$.xgafv'?:
|
|
359
|
+
'$.xgafv'?: '1' | '2';
|
|
360
360
|
/** OAuth access token. */
|
|
361
361
|
access_token?: string;
|
|
362
362
|
/** Data format for response. */
|
|
363
|
-
alt?:
|
|
363
|
+
alt?: 'json' | 'media' | 'proto';
|
|
364
364
|
/** JSONP */
|
|
365
365
|
callback?: string;
|
|
366
366
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -383,11 +383,11 @@ declare namespace gapi.client {
|
|
|
383
383
|
/** Lists notes. Every list call returns a page of results with `page_size` as the upper bound of returned items. A `page_size` of zero allows the server to choose the upper bound. The ListNotesResponse contains at most `page_size` entries. If there are more things left to list, it provides a `next_page_token` value. (Page tokens are opaque values.) To get the next page of results, copy the result's `next_page_token` into the next request's `page_token`. Repeat until the `next_page_token` returned with a page of results is empty. ListNotes return consistent results in the face of concurrent changes, or signals that it cannot with an ABORTED error. */
|
|
384
384
|
list(request?: {
|
|
385
385
|
/** V1 error format. */
|
|
386
|
-
'$.xgafv'?:
|
|
386
|
+
'$.xgafv'?: '1' | '2';
|
|
387
387
|
/** OAuth access token. */
|
|
388
388
|
access_token?: string;
|
|
389
389
|
/** Data format for response. */
|
|
390
|
-
alt?:
|
|
390
|
+
alt?: 'json' | 'media' | 'proto';
|
|
391
391
|
/** JSONP */
|
|
392
392
|
callback?: string;
|
|
393
393
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Google Keep API:
|
|
|
11
11
|
npm install @types/gapi.client.keep-v1 --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": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.keep-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|