@googleapis/docs 2.0.1 → 2.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.3](https://github.com/googleapis/google-api-nodejs-client/compare/docs-v2.0.2...docs-v2.0.3) (2023-08-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **docs:** update the API ([9cdab2d](https://github.com/googleapis/google-api-nodejs-client/commit/9cdab2d96b6d1059554dacbf42e61a52d6eb64c3))
9
+
10
+ ## [2.0.2](https://github.com/googleapis/google-api-nodejs-client/compare/docs-v2.0.1...docs-v2.0.2) (2023-08-09)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **docs:** update the API ([9cdab2d](https://github.com/googleapis/google-api-nodejs-client/commit/9cdab2d96b6d1059554dacbf42e61a52d6eb64c3))
16
+
3
17
  ## [2.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/docs-v2.0.0...docs-v2.0.1) (2023-03-13)
4
18
 
5
19
 
package/build/v1.d.ts CHANGED
@@ -3255,63 +3255,6 @@ export declare namespace docs_v1 {
3255
3255
  constructor(context: APIRequestContext);
3256
3256
  /**
3257
3257
  * Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.
3258
- * @example
3259
- * ```js
3260
- * // Before running the sample:
3261
- * // - Enable the API at:
3262
- * // https://console.developers.google.com/apis/api/docs.googleapis.com
3263
- * // - Login into gcloud by running:
3264
- * // `$ gcloud auth application-default login`
3265
- * // - Install the npm module by running:
3266
- * // `$ npm install googleapis`
3267
- *
3268
- * const {google} = require('googleapis');
3269
- * const docs = google.docs('v1');
3270
- *
3271
- * async function main() {
3272
- * const auth = new google.auth.GoogleAuth({
3273
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3274
- * scopes: [
3275
- * 'https://www.googleapis.com/auth/documents',
3276
- * 'https://www.googleapis.com/auth/drive',
3277
- * 'https://www.googleapis.com/auth/drive.file',
3278
- * ],
3279
- * });
3280
- *
3281
- * // Acquire an auth client, and bind it to all future calls
3282
- * const authClient = await auth.getClient();
3283
- * google.options({auth: authClient});
3284
- *
3285
- * // Do the magic
3286
- * const res = await docs.documents.batchUpdate({
3287
- * // The ID of the document to update.
3288
- * documentId: 'placeholder-value',
3289
- *
3290
- * // Request body metadata
3291
- * requestBody: {
3292
- * // request body parameters
3293
- * // {
3294
- * // "requests": [],
3295
- * // "writeControl": {}
3296
- * // }
3297
- * },
3298
- * });
3299
- * console.log(res.data);
3300
- *
3301
- * // Example response
3302
- * // {
3303
- * // "documentId": "my_documentId",
3304
- * // "replies": [],
3305
- * // "writeControl": {}
3306
- * // }
3307
- * }
3308
- *
3309
- * main().catch(e => {
3310
- * console.error(e);
3311
- * throw e;
3312
- * });
3313
- *
3314
- * ```
3315
3258
  *
3316
3259
  * @param params - Parameters for request
3317
3260
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3326,87 +3269,6 @@ export declare namespace docs_v1 {
3326
3269
  batchUpdate(callback: BodyResponseCallback<Schema$BatchUpdateDocumentResponse>): void;
3327
3270
  /**
3328
3271
  * Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
3329
- * @example
3330
- * ```js
3331
- * // Before running the sample:
3332
- * // - Enable the API at:
3333
- * // https://console.developers.google.com/apis/api/docs.googleapis.com
3334
- * // - Login into gcloud by running:
3335
- * // `$ gcloud auth application-default login`
3336
- * // - Install the npm module by running:
3337
- * // `$ npm install googleapis`
3338
- *
3339
- * const {google} = require('googleapis');
3340
- * const docs = google.docs('v1');
3341
- *
3342
- * async function main() {
3343
- * const auth = new google.auth.GoogleAuth({
3344
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3345
- * scopes: [
3346
- * 'https://www.googleapis.com/auth/documents',
3347
- * 'https://www.googleapis.com/auth/drive',
3348
- * 'https://www.googleapis.com/auth/drive.file',
3349
- * ],
3350
- * });
3351
- *
3352
- * // Acquire an auth client, and bind it to all future calls
3353
- * const authClient = await auth.getClient();
3354
- * google.options({auth: authClient});
3355
- *
3356
- * // Do the magic
3357
- * const res = await docs.documents.create({
3358
- * // Request body metadata
3359
- * requestBody: {
3360
- * // request body parameters
3361
- * // {
3362
- * // "body": {},
3363
- * // "documentId": "my_documentId",
3364
- * // "documentStyle": {},
3365
- * // "footers": {},
3366
- * // "footnotes": {},
3367
- * // "headers": {},
3368
- * // "inlineObjects": {},
3369
- * // "lists": {},
3370
- * // "namedRanges": {},
3371
- * // "namedStyles": {},
3372
- * // "positionedObjects": {},
3373
- * // "revisionId": "my_revisionId",
3374
- * // "suggestedDocumentStyleChanges": {},
3375
- * // "suggestedNamedStylesChanges": {},
3376
- * // "suggestionsViewMode": "my_suggestionsViewMode",
3377
- * // "title": "my_title"
3378
- * // }
3379
- * },
3380
- * });
3381
- * console.log(res.data);
3382
- *
3383
- * // Example response
3384
- * // {
3385
- * // "body": {},
3386
- * // "documentId": "my_documentId",
3387
- * // "documentStyle": {},
3388
- * // "footers": {},
3389
- * // "footnotes": {},
3390
- * // "headers": {},
3391
- * // "inlineObjects": {},
3392
- * // "lists": {},
3393
- * // "namedRanges": {},
3394
- * // "namedStyles": {},
3395
- * // "positionedObjects": {},
3396
- * // "revisionId": "my_revisionId",
3397
- * // "suggestedDocumentStyleChanges": {},
3398
- * // "suggestedNamedStylesChanges": {},
3399
- * // "suggestionsViewMode": "my_suggestionsViewMode",
3400
- * // "title": "my_title"
3401
- * // }
3402
- * }
3403
- *
3404
- * main().catch(e => {
3405
- * console.error(e);
3406
- * throw e;
3407
- * });
3408
- *
3409
- * ```
3410
3272
  *
3411
3273
  * @param params - Parameters for request
3412
3274
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3421,71 +3283,6 @@ export declare namespace docs_v1 {
3421
3283
  create(callback: BodyResponseCallback<Schema$Document>): void;
3422
3284
  /**
3423
3285
  * Gets the latest version of the specified document.
3424
- * @example
3425
- * ```js
3426
- * // Before running the sample:
3427
- * // - Enable the API at:
3428
- * // https://console.developers.google.com/apis/api/docs.googleapis.com
3429
- * // - Login into gcloud by running:
3430
- * // `$ gcloud auth application-default login`
3431
- * // - Install the npm module by running:
3432
- * // `$ npm install googleapis`
3433
- *
3434
- * const {google} = require('googleapis');
3435
- * const docs = google.docs('v1');
3436
- *
3437
- * async function main() {
3438
- * const auth = new google.auth.GoogleAuth({
3439
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3440
- * scopes: [
3441
- * 'https://www.googleapis.com/auth/documents',
3442
- * 'https://www.googleapis.com/auth/documents.readonly',
3443
- * 'https://www.googleapis.com/auth/drive',
3444
- * 'https://www.googleapis.com/auth/drive.file',
3445
- * 'https://www.googleapis.com/auth/drive.readonly',
3446
- * ],
3447
- * });
3448
- *
3449
- * // Acquire an auth client, and bind it to all future calls
3450
- * const authClient = await auth.getClient();
3451
- * google.options({auth: authClient});
3452
- *
3453
- * // Do the magic
3454
- * const res = await docs.documents.get({
3455
- * // The ID of the document to retrieve.
3456
- * documentId: 'placeholder-value',
3457
- * // The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.
3458
- * suggestionsViewMode: 'placeholder-value',
3459
- * });
3460
- * console.log(res.data);
3461
- *
3462
- * // Example response
3463
- * // {
3464
- * // "body": {},
3465
- * // "documentId": "my_documentId",
3466
- * // "documentStyle": {},
3467
- * // "footers": {},
3468
- * // "footnotes": {},
3469
- * // "headers": {},
3470
- * // "inlineObjects": {},
3471
- * // "lists": {},
3472
- * // "namedRanges": {},
3473
- * // "namedStyles": {},
3474
- * // "positionedObjects": {},
3475
- * // "revisionId": "my_revisionId",
3476
- * // "suggestedDocumentStyleChanges": {},
3477
- * // "suggestedNamedStylesChanges": {},
3478
- * // "suggestionsViewMode": "my_suggestionsViewMode",
3479
- * // "title": "my_title"
3480
- * // }
3481
- * }
3482
- *
3483
- * main().catch(e => {
3484
- * console.error(e);
3485
- * throw e;
3486
- * });
3487
- *
3488
- * ```
3489
3286
  *
3490
3287
  * @param params - Parameters for request
3491
3288
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
package/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,OAAO,CAwqHvB;AAxqHD,WAAiB,OAAO;IAgEtB;;;;;;;;;;OAUG;IACH,MAAa,IAAI;QAIf,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC;KACF;IAZY,YAAI,OAYhB,CAAA;IA4lGD,MAAa,kBAAkB;QAE7B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QA8FD,WAAW,CACT,gBAGkC,EAClC,iBAIkC,EAClC,QA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,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;YAClE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,4BAA4B,CAAC,CAAC,OAAO,CACnD,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;iBACd,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,UAAU,EAAE,CAAC,YAAY,CAAC;gBAC1B,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAkB,UAAU,CAAC,CAAC;aACtD;QACH,CAAC;KACF;IA5QY,0BAAkB,qBA4Q9B,CAAA;AA8BH,CAAC,EA79GgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA69GvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/docs",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "docs",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
package/v1.ts CHANGED
@@ -3294,63 +3294,6 @@ export namespace docs_v1 {
3294
3294
 
3295
3295
  /**
3296
3296
  * Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.
3297
- * @example
3298
- * ```js
3299
- * // Before running the sample:
3300
- * // - Enable the API at:
3301
- * // https://console.developers.google.com/apis/api/docs.googleapis.com
3302
- * // - Login into gcloud by running:
3303
- * // `$ gcloud auth application-default login`
3304
- * // - Install the npm module by running:
3305
- * // `$ npm install googleapis`
3306
- *
3307
- * const {google} = require('googleapis');
3308
- * const docs = google.docs('v1');
3309
- *
3310
- * async function main() {
3311
- * const auth = new google.auth.GoogleAuth({
3312
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3313
- * scopes: [
3314
- * 'https://www.googleapis.com/auth/documents',
3315
- * 'https://www.googleapis.com/auth/drive',
3316
- * 'https://www.googleapis.com/auth/drive.file',
3317
- * ],
3318
- * });
3319
- *
3320
- * // Acquire an auth client, and bind it to all future calls
3321
- * const authClient = await auth.getClient();
3322
- * google.options({auth: authClient});
3323
- *
3324
- * // Do the magic
3325
- * const res = await docs.documents.batchUpdate({
3326
- * // The ID of the document to update.
3327
- * documentId: 'placeholder-value',
3328
- *
3329
- * // Request body metadata
3330
- * requestBody: {
3331
- * // request body parameters
3332
- * // {
3333
- * // "requests": [],
3334
- * // "writeControl": {}
3335
- * // }
3336
- * },
3337
- * });
3338
- * console.log(res.data);
3339
- *
3340
- * // Example response
3341
- * // {
3342
- * // "documentId": "my_documentId",
3343
- * // "replies": [],
3344
- * // "writeControl": {}
3345
- * // }
3346
- * }
3347
- *
3348
- * main().catch(e => {
3349
- * console.error(e);
3350
- * throw e;
3351
- * });
3352
- *
3353
- * ```
3354
3297
  *
3355
3298
  * @param params - Parameters for request
3356
3299
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3445,87 +3388,6 @@ export namespace docs_v1 {
3445
3388
 
3446
3389
  /**
3447
3390
  * Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
3448
- * @example
3449
- * ```js
3450
- * // Before running the sample:
3451
- * // - Enable the API at:
3452
- * // https://console.developers.google.com/apis/api/docs.googleapis.com
3453
- * // - Login into gcloud by running:
3454
- * // `$ gcloud auth application-default login`
3455
- * // - Install the npm module by running:
3456
- * // `$ npm install googleapis`
3457
- *
3458
- * const {google} = require('googleapis');
3459
- * const docs = google.docs('v1');
3460
- *
3461
- * async function main() {
3462
- * const auth = new google.auth.GoogleAuth({
3463
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3464
- * scopes: [
3465
- * 'https://www.googleapis.com/auth/documents',
3466
- * 'https://www.googleapis.com/auth/drive',
3467
- * 'https://www.googleapis.com/auth/drive.file',
3468
- * ],
3469
- * });
3470
- *
3471
- * // Acquire an auth client, and bind it to all future calls
3472
- * const authClient = await auth.getClient();
3473
- * google.options({auth: authClient});
3474
- *
3475
- * // Do the magic
3476
- * const res = await docs.documents.create({
3477
- * // Request body metadata
3478
- * requestBody: {
3479
- * // request body parameters
3480
- * // {
3481
- * // "body": {},
3482
- * // "documentId": "my_documentId",
3483
- * // "documentStyle": {},
3484
- * // "footers": {},
3485
- * // "footnotes": {},
3486
- * // "headers": {},
3487
- * // "inlineObjects": {},
3488
- * // "lists": {},
3489
- * // "namedRanges": {},
3490
- * // "namedStyles": {},
3491
- * // "positionedObjects": {},
3492
- * // "revisionId": "my_revisionId",
3493
- * // "suggestedDocumentStyleChanges": {},
3494
- * // "suggestedNamedStylesChanges": {},
3495
- * // "suggestionsViewMode": "my_suggestionsViewMode",
3496
- * // "title": "my_title"
3497
- * // }
3498
- * },
3499
- * });
3500
- * console.log(res.data);
3501
- *
3502
- * // Example response
3503
- * // {
3504
- * // "body": {},
3505
- * // "documentId": "my_documentId",
3506
- * // "documentStyle": {},
3507
- * // "footers": {},
3508
- * // "footnotes": {},
3509
- * // "headers": {},
3510
- * // "inlineObjects": {},
3511
- * // "lists": {},
3512
- * // "namedRanges": {},
3513
- * // "namedStyles": {},
3514
- * // "positionedObjects": {},
3515
- * // "revisionId": "my_revisionId",
3516
- * // "suggestedDocumentStyleChanges": {},
3517
- * // "suggestedNamedStylesChanges": {},
3518
- * // "suggestionsViewMode": "my_suggestionsViewMode",
3519
- * // "title": "my_title"
3520
- * // }
3521
- * }
3522
- *
3523
- * main().catch(e => {
3524
- * console.error(e);
3525
- * throw e;
3526
- * });
3527
- *
3528
- * ```
3529
3391
  *
3530
3392
  * @param params - Parameters for request
3531
3393
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3609,71 +3471,6 @@ export namespace docs_v1 {
3609
3471
 
3610
3472
  /**
3611
3473
  * Gets the latest version of the specified document.
3612
- * @example
3613
- * ```js
3614
- * // Before running the sample:
3615
- * // - Enable the API at:
3616
- * // https://console.developers.google.com/apis/api/docs.googleapis.com
3617
- * // - Login into gcloud by running:
3618
- * // `$ gcloud auth application-default login`
3619
- * // - Install the npm module by running:
3620
- * // `$ npm install googleapis`
3621
- *
3622
- * const {google} = require('googleapis');
3623
- * const docs = google.docs('v1');
3624
- *
3625
- * async function main() {
3626
- * const auth = new google.auth.GoogleAuth({
3627
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3628
- * scopes: [
3629
- * 'https://www.googleapis.com/auth/documents',
3630
- * 'https://www.googleapis.com/auth/documents.readonly',
3631
- * 'https://www.googleapis.com/auth/drive',
3632
- * 'https://www.googleapis.com/auth/drive.file',
3633
- * 'https://www.googleapis.com/auth/drive.readonly',
3634
- * ],
3635
- * });
3636
- *
3637
- * // Acquire an auth client, and bind it to all future calls
3638
- * const authClient = await auth.getClient();
3639
- * google.options({auth: authClient});
3640
- *
3641
- * // Do the magic
3642
- * const res = await docs.documents.get({
3643
- * // The ID of the document to retrieve.
3644
- * documentId: 'placeholder-value',
3645
- * // The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.
3646
- * suggestionsViewMode: 'placeholder-value',
3647
- * });
3648
- * console.log(res.data);
3649
- *
3650
- * // Example response
3651
- * // {
3652
- * // "body": {},
3653
- * // "documentId": "my_documentId",
3654
- * // "documentStyle": {},
3655
- * // "footers": {},
3656
- * // "footnotes": {},
3657
- * // "headers": {},
3658
- * // "inlineObjects": {},
3659
- * // "lists": {},
3660
- * // "namedRanges": {},
3661
- * // "namedStyles": {},
3662
- * // "positionedObjects": {},
3663
- * // "revisionId": "my_revisionId",
3664
- * // "suggestedDocumentStyleChanges": {},
3665
- * // "suggestedNamedStylesChanges": {},
3666
- * // "suggestionsViewMode": "my_suggestionsViewMode",
3667
- * // "title": "my_title"
3668
- * // }
3669
- * }
3670
- *
3671
- * main().catch(e => {
3672
- * console.error(e);
3673
- * throw e;
3674
- * });
3675
- *
3676
- * ```
3677
3474
  *
3678
3475
  * @param params - Parameters for request
3679
3476
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.