@googleapis/slides 0.2.0 → 0.7.1
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 +73 -0
- package/README.md +4 -23
- package/build/v1.d.ts +39 -10
- package/build/v1.js +0 -1
- package/build/v1.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +39 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.1](https://github.com/googleapis/google-api-nodejs-client/compare/slides-v0.7.0...slides-v0.7.1) (2022-06-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **slides:** update the API ([0c7355f](https://github.com/googleapis/google-api-nodejs-client/commit/0c7355f936123da3d1c7a69129b6260064d49745))
|
|
9
|
+
|
|
10
|
+
## [0.7.0](https://github.com/googleapis/google-api-nodejs-client/compare/slides-v0.6.1...slides-v0.7.0) (2022-06-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* regenerate index files ([43ae576](https://github.com/googleapis/google-api-nodejs-client/commit/43ae57651332bdf31af52ea3abb9e2934798a404))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **slides:** update the API ([8d26226](https://github.com/googleapis/google-api-nodejs-client/commit/8d262269dc9465f8ed74a7c4b9ecfcc7a6545c08))
|
|
21
|
+
|
|
22
|
+
### [0.6.1](https://github.com/googleapis/google-api-nodejs-client/compare/slides-v0.6.0...slides-v0.6.1) (2022-04-01)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **slides:** update the API ([4c3e931](https://github.com/googleapis/google-api-nodejs-client/commit/4c3e9310fe4faf8ca1b22c92af01576d57c8b4fe))
|
|
28
|
+
|
|
29
|
+
## [0.6.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/slides-v0.5.0...slides-v0.6.0) (2021-09-14)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **auth:** adds support workload identity federation ([#2517](https://www.github.com/googleapis/google-api-nodejs-client/issues/2517)) ([a10707c](https://www.github.com/googleapis/google-api-nodejs-client/commit/a10707c477759e7c9ef6360a2fe800856fb600c1))
|
|
35
|
+
* **slides:** update the API ([7ef8314](https://www.github.com/googleapis/google-api-nodejs-client/commit/7ef8314c55e53f84a49f2cb182cf40753ec3d7ec))
|
|
36
|
+
* **slides:** update the API ([e942819](https://www.github.com/googleapis/google-api-nodejs-client/commit/e94281991063194424eb53dc3e7e55e6ed1e8646))
|
|
37
|
+
* **slides:** update the API ([5c23f85](https://www.github.com/googleapis/google-api-nodejs-client/commit/5c23f850a1edbdf9dabc75cb742514e02755aa79))
|
|
38
|
+
* **slides:** update the API ([dec09a5](https://www.github.com/googleapis/google-api-nodejs-client/commit/dec09a553fdbaf84f7c7fd61a5b02e844b2fa4d2))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* **deps:** update dependency googleapis-common to v5 ([#2497](https://www.github.com/googleapis/google-api-nodejs-client/issues/2497)) ([fec087a](https://www.github.com/googleapis/google-api-nodejs-client/commit/fec087abcf3d994dd41c3ffa0a0c12b1f9f09dae))
|
|
44
|
+
* **slides:** update the API ([b10274a](https://www.github.com/googleapis/google-api-nodejs-client/commit/b10274a6744d896b1c50e5665ba110bf09c4e97e))
|
|
45
|
+
* **slides:** update the API ([77594fa](https://www.github.com/googleapis/google-api-nodejs-client/commit/77594fa6224ed331af32ceb31a12962fef1126d2))
|
|
46
|
+
* upgrade webpack from 4 to 5 ([#2524](https://www.github.com/googleapis/google-api-nodejs-client/issues/2524)) ([ecfd8bf](https://www.github.com/googleapis/google-api-nodejs-client/commit/ecfd8bfcd06e1beabff7ec9a8c4000222379eb8d))
|
|
47
|
+
|
|
48
|
+
## [0.5.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/slides-v0.4.0...slides-v0.5.0) (2021-08-31)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Features
|
|
52
|
+
|
|
53
|
+
* **slides:** update the API ([7ef8314](https://www.github.com/googleapis/google-api-nodejs-client/commit/7ef8314c55e53f84a49f2cb182cf40753ec3d7ec))
|
|
54
|
+
|
|
55
|
+
## [0.4.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/slides-v0.3.1...slides-v0.4.0) (2021-07-24)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
* **slides:** update the API ([e942819](https://www.github.com/googleapis/google-api-nodejs-client/commit/e94281991063194424eb53dc3e7e55e6ed1e8646))
|
|
61
|
+
|
|
62
|
+
### [0.3.1](https://www.github.com/googleapis/google-api-nodejs-client/compare/slides-v0.3.0...slides-v0.3.1) (2021-07-08)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* **slides:** update the API ([77594fa](https://www.github.com/googleapis/google-api-nodejs-client/commit/77594fa6224ed331af32ceb31a12962fef1126d2))
|
|
68
|
+
|
|
69
|
+
## [0.3.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/slides-v0.2.0...slides-v0.3.0) (2021-07-02)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* **slides:** update the API ([5c23f85](https://www.github.com/googleapis/google-api-nodejs-client/commit/5c23f850a1edbdf9dabc75cb742514e02755aa79))
|
|
75
|
+
|
|
3
76
|
## [0.2.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/slides-v0.1.0...slides-v0.2.0) (2021-03-18)
|
|
4
77
|
|
|
5
78
|
|
package/README.md
CHANGED
|
@@ -7,37 +7,18 @@
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
$ npm install googleapis
|
|
10
|
+
$ npm install @googleapis/slides
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).
|
|
15
|
-
|
|
16
|
-
## Building a browser bundle
|
|
17
|
-
|
|
18
|
-
This library can be used in a browser. To prepare a single file bundle, clone the
|
|
19
|
-
[repository](https://github.com/googleapis/google-api-nodejs-client) and run
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
$ cd src/apis/slides
|
|
23
|
-
$ npm install
|
|
24
|
-
$ npm run webpack
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
The generated bundle will be written to `dist/slides.min.js`. Use it from your HTML file:
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<script src="/path/to/slides.min.js"></script>
|
|
31
|
-
<script>
|
|
32
|
-
const { slides, auth } = Slides;
|
|
33
|
-
</script>
|
|
34
|
-
```
|
|
15
|
+
Information on classes can be found in [Googleapis Documentation](https://googleapis.dev/nodejs/googleapis/latest/slides/classes/Slides.html).
|
|
35
16
|
|
|
36
17
|
## License
|
|
37
|
-
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/
|
|
18
|
+
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/main/LICENSE).
|
|
38
19
|
|
|
39
20
|
## Contributing
|
|
40
|
-
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/
|
|
21
|
+
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/main/.github/CONTRIBUTING.md).
|
|
41
22
|
|
|
42
23
|
## Questions/problems?
|
|
43
24
|
* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
|
package/build/v1.d.ts
CHANGED
|
@@ -339,7 +339,7 @@ export declare namespace slides_v1 {
|
|
|
339
339
|
*/
|
|
340
340
|
objectId?: string | null;
|
|
341
341
|
/**
|
|
342
|
-
* The ID of the Google Sheets spreadsheet that contains the chart.
|
|
342
|
+
* The ID of the Google Sheets spreadsheet that contains the chart. You might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys).
|
|
343
343
|
*/
|
|
344
344
|
spreadsheetId?: string | null;
|
|
345
345
|
}
|
|
@@ -421,7 +421,7 @@ export declare namespace slides_v1 {
|
|
|
421
421
|
*/
|
|
422
422
|
elementProperties?: Schema$PageElementProperties;
|
|
423
423
|
/**
|
|
424
|
-
* The video source's unique identifier for this video. e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is 7U3axjORYZ0. For a Google Drive video https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q.
|
|
424
|
+
* The video source's unique identifier for this video. e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is 7U3axjORYZ0. For a Google Drive video https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q. To access a Google Drive video file, you might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys).
|
|
425
425
|
*/
|
|
426
426
|
id?: string | null;
|
|
427
427
|
/**
|
|
@@ -472,7 +472,7 @@ export declare namespace slides_v1 {
|
|
|
472
472
|
*/
|
|
473
473
|
export interface Schema$DeleteObjectRequest {
|
|
474
474
|
/**
|
|
475
|
-
* The object ID of the page or page element to delete. If after a delete operation a group contains only 1 or no page elements, the group is also deleted. If a placeholder is deleted on a layout, any empty inheriting
|
|
475
|
+
* The object ID of the page or page element to delete. If after a delete operation a group contains only 1 or no page elements, the group is also deleted. If a placeholder is deleted on a layout, any empty inheriting placeholders are also deleted.
|
|
476
476
|
*/
|
|
477
477
|
objectId?: string | null;
|
|
478
478
|
}
|
|
@@ -587,7 +587,7 @@ export declare namespace slides_v1 {
|
|
|
587
587
|
*/
|
|
588
588
|
export interface Schema$GroupObjectsRequest {
|
|
589
589
|
/**
|
|
590
|
-
* The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some page elements, such as videos, tables and
|
|
590
|
+
* The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some page elements, such as videos, tables and placeholders cannot be grouped.
|
|
591
591
|
*/
|
|
592
592
|
childrenObjectIds?: string[] | null;
|
|
593
593
|
/**
|
|
@@ -616,6 +616,10 @@ export declare namespace slides_v1 {
|
|
|
616
616
|
* The properties of the image.
|
|
617
617
|
*/
|
|
618
618
|
imageProperties?: Schema$ImageProperties;
|
|
619
|
+
/**
|
|
620
|
+
* Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the image is a placeholder image and any inherited properties can be resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field.
|
|
621
|
+
*/
|
|
622
|
+
placeholder?: Schema$Placeholder;
|
|
619
623
|
/**
|
|
620
624
|
* The source URL is the URL used to insert the image. The source URL can be empty.
|
|
621
625
|
*/
|
|
@@ -1005,7 +1009,7 @@ export declare namespace slides_v1 {
|
|
|
1005
1009
|
*/
|
|
1006
1010
|
pageType?: string | null;
|
|
1007
1011
|
/**
|
|
1008
|
-
* The revision ID of the presentation
|
|
1012
|
+
* Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes.
|
|
1009
1013
|
*/
|
|
1010
1014
|
revisionId?: string | null;
|
|
1011
1015
|
/**
|
|
@@ -1217,7 +1221,7 @@ export declare namespace slides_v1 {
|
|
|
1217
1221
|
*/
|
|
1218
1222
|
presentationId?: string | null;
|
|
1219
1223
|
/**
|
|
1220
|
-
* The revision ID of the presentation. Can be used in update requests to assert
|
|
1224
|
+
* Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but a nebulous string. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes.
|
|
1221
1225
|
*/
|
|
1222
1226
|
revisionId?: string | null;
|
|
1223
1227
|
/**
|
|
@@ -1367,7 +1371,7 @@ export declare namespace slides_v1 {
|
|
|
1367
1371
|
*/
|
|
1368
1372
|
export interface Schema$ReplaceImageRequest {
|
|
1369
1373
|
/**
|
|
1370
|
-
* The ID of the existing image that will be replaced.
|
|
1374
|
+
* The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request.
|
|
1371
1375
|
*/
|
|
1372
1376
|
imageObjectId?: string | null;
|
|
1373
1377
|
/**
|
|
@@ -1375,7 +1379,7 @@ export declare namespace slides_v1 {
|
|
|
1375
1379
|
*/
|
|
1376
1380
|
imageReplaceMethod?: string | null;
|
|
1377
1381
|
/**
|
|
1378
|
-
* The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB
|
|
1382
|
+
* The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URL can't surpass 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field.
|
|
1379
1383
|
*/
|
|
1380
1384
|
url?: string | null;
|
|
1381
1385
|
}
|
|
@@ -1527,6 +1531,10 @@ export declare namespace slides_v1 {
|
|
|
1527
1531
|
* Updates the properties of a Shape.
|
|
1528
1532
|
*/
|
|
1529
1533
|
updateShapeProperties?: Schema$UpdateShapePropertiesRequest;
|
|
1534
|
+
/**
|
|
1535
|
+
* Updates the properties of a Slide
|
|
1536
|
+
*/
|
|
1537
|
+
updateSlideProperties?: Schema$UpdateSlidePropertiesRequest;
|
|
1530
1538
|
/**
|
|
1531
1539
|
* Updates the position of a set of slides in the presentation.
|
|
1532
1540
|
*/
|
|
@@ -1677,7 +1685,7 @@ export declare namespace slides_v1 {
|
|
|
1677
1685
|
*/
|
|
1678
1686
|
export interface Schema$Shape {
|
|
1679
1687
|
/**
|
|
1680
|
-
* Placeholders are
|
|
1688
|
+
* Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the shape is a placeholder shape and any inherited properties can be resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field.
|
|
1681
1689
|
*/
|
|
1682
1690
|
placeholder?: Schema$Placeholder;
|
|
1683
1691
|
/**
|
|
@@ -1782,6 +1790,10 @@ export declare namespace slides_v1 {
|
|
|
1782
1790
|
* The properties of Page that are only relevant for pages with page_type SLIDE.
|
|
1783
1791
|
*/
|
|
1784
1792
|
export interface Schema$SlideProperties {
|
|
1793
|
+
/**
|
|
1794
|
+
* Whether the slide is skipped in the presentation mode. Defaults to false.
|
|
1795
|
+
*/
|
|
1796
|
+
isSkipped?: boolean | null;
|
|
1785
1797
|
/**
|
|
1786
1798
|
* The object ID of the layout that this slide is based on. This property is read-only.
|
|
1787
1799
|
*/
|
|
@@ -2338,6 +2350,23 @@ export declare namespace slides_v1 {
|
|
|
2338
2350
|
*/
|
|
2339
2351
|
shapeProperties?: Schema$ShapeProperties;
|
|
2340
2352
|
}
|
|
2353
|
+
/**
|
|
2354
|
+
* Updates the properties of a Slide.
|
|
2355
|
+
*/
|
|
2356
|
+
export interface Schema$UpdateSlidePropertiesRequest {
|
|
2357
|
+
/**
|
|
2358
|
+
* The fields that should be updated. At least one field must be specified. The root 'slideProperties' is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update whether a slide is skipped, set `fields` to `"isSkipped"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
|
|
2359
|
+
*/
|
|
2360
|
+
fields?: string | null;
|
|
2361
|
+
/**
|
|
2362
|
+
* The object ID of the slide the update is applied to.
|
|
2363
|
+
*/
|
|
2364
|
+
objectId?: string | null;
|
|
2365
|
+
/**
|
|
2366
|
+
* The slide properties to update.
|
|
2367
|
+
*/
|
|
2368
|
+
slideProperties?: Schema$SlideProperties;
|
|
2369
|
+
}
|
|
2341
2370
|
/**
|
|
2342
2371
|
* Updates the position of slides in the presentation.
|
|
2343
2372
|
*/
|
|
@@ -2554,7 +2583,7 @@ export declare namespace slides_v1 {
|
|
|
2554
2583
|
*/
|
|
2555
2584
|
export interface Schema$WriteControl {
|
|
2556
2585
|
/**
|
|
2557
|
-
* The revision ID of the presentation required for the write request. If specified and the
|
|
2586
|
+
* The revision ID of the presentation required for the write request. If specified and the required revision ID doesn't match the presentation's current revision ID, the request is not processed and returns a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.
|
|
2558
2587
|
*/
|
|
2559
2588
|
requiredRevisionId?: string | null;
|
|
2560
2589
|
}
|
package/build/v1.js
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16
|
-
/* eslint-disable @typescript-eslint/class-name-casing */
|
|
17
16
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
18
17
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
19
18
|
/* eslint-disable @typescript-eslint/no-namespace */
|
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,
|
|
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,SAAS,CAk1GzB;AAl1GD,WAAiB,SAAS;IAgExB;;;;;;;;;;OAUG;IACH,MAAa,MAAM;QAIjB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,aAAa,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChE,CAAC;KACF;IAZY,gBAAM,SAYlB,CAAA;IAi9ED,MAAa,sBAAsB;QAGjC,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,KAAK,GAAG,IAAI,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,CAAC;QAiGD,WAAW,CACT,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAAG,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C;gBAC9C,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,oCAAgB,CACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,oCAAgB,CAAmB,UAAU,CAAC,CAAC;aACvD;QACH,CAAC;KACF;IArSY,sCAA4B,+BAqSxC,CAAA;AAgCH,CAAC,EAl1GgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAk1GzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/slides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "slides",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@microsoft/api-extractor": "^7.8.10",
|
|
36
36
|
"gts": "^2.0.0",
|
|
37
37
|
"null-loader": "^4.0.0",
|
|
38
|
-
"ts-loader": "^
|
|
38
|
+
"ts-loader": "^9.0.0",
|
|
39
39
|
"typescript": "~3.7.0",
|
|
40
40
|
"webpack": "^5.0.0",
|
|
41
41
|
"webpack-cli": "^4.0.0"
|
package/v1.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
|
-
/* eslint-disable @typescript-eslint/class-name-casing */
|
|
16
15
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
16
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
18
17
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -393,7 +392,7 @@ export namespace slides_v1 {
|
|
|
393
392
|
*/
|
|
394
393
|
objectId?: string | null;
|
|
395
394
|
/**
|
|
396
|
-
* The ID of the Google Sheets spreadsheet that contains the chart.
|
|
395
|
+
* The ID of the Google Sheets spreadsheet that contains the chart. You might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys).
|
|
397
396
|
*/
|
|
398
397
|
spreadsheetId?: string | null;
|
|
399
398
|
}
|
|
@@ -475,7 +474,7 @@ export namespace slides_v1 {
|
|
|
475
474
|
*/
|
|
476
475
|
elementProperties?: Schema$PageElementProperties;
|
|
477
476
|
/**
|
|
478
|
-
* The video source's unique identifier for this video. e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is 7U3axjORYZ0. For a Google Drive video https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q.
|
|
477
|
+
* The video source's unique identifier for this video. e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is 7U3axjORYZ0. For a Google Drive video https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q. To access a Google Drive video file, you might need to add a resource key to the HTTP header for a subset of old files. For more information, see [Access link-shared files using resource keys](https://developers.google.com/drive/api/v3/resource-keys).
|
|
479
478
|
*/
|
|
480
479
|
id?: string | null;
|
|
481
480
|
/**
|
|
@@ -526,7 +525,7 @@ export namespace slides_v1 {
|
|
|
526
525
|
*/
|
|
527
526
|
export interface Schema$DeleteObjectRequest {
|
|
528
527
|
/**
|
|
529
|
-
* The object ID of the page or page element to delete. If after a delete operation a group contains only 1 or no page elements, the group is also deleted. If a placeholder is deleted on a layout, any empty inheriting
|
|
528
|
+
* The object ID of the page or page element to delete. If after a delete operation a group contains only 1 or no page elements, the group is also deleted. If a placeholder is deleted on a layout, any empty inheriting placeholders are also deleted.
|
|
530
529
|
*/
|
|
531
530
|
objectId?: string | null;
|
|
532
531
|
}
|
|
@@ -639,7 +638,7 @@ export namespace slides_v1 {
|
|
|
639
638
|
*/
|
|
640
639
|
export interface Schema$GroupObjectsRequest {
|
|
641
640
|
/**
|
|
642
|
-
* The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some page elements, such as videos, tables and
|
|
641
|
+
* The object IDs of the objects to group. Only page elements can be grouped. There should be at least two page elements on the same page that are not already in another group. Some page elements, such as videos, tables and placeholders cannot be grouped.
|
|
643
642
|
*/
|
|
644
643
|
childrenObjectIds?: string[] | null;
|
|
645
644
|
/**
|
|
@@ -668,6 +667,10 @@ export namespace slides_v1 {
|
|
|
668
667
|
* The properties of the image.
|
|
669
668
|
*/
|
|
670
669
|
imageProperties?: Schema$ImageProperties;
|
|
670
|
+
/**
|
|
671
|
+
* Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the image is a placeholder image and any inherited properties can be resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field.
|
|
672
|
+
*/
|
|
673
|
+
placeholder?: Schema$Placeholder;
|
|
671
674
|
/**
|
|
672
675
|
* The source URL is the URL used to insert the image. The source URL can be empty.
|
|
673
676
|
*/
|
|
@@ -1055,7 +1058,7 @@ export namespace slides_v1 {
|
|
|
1055
1058
|
*/
|
|
1056
1059
|
pageType?: string | null;
|
|
1057
1060
|
/**
|
|
1058
|
-
* The revision ID of the presentation
|
|
1061
|
+
* Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes.
|
|
1059
1062
|
*/
|
|
1060
1063
|
revisionId?: string | null;
|
|
1061
1064
|
/**
|
|
@@ -1267,7 +1270,7 @@ export namespace slides_v1 {
|
|
|
1267
1270
|
*/
|
|
1268
1271
|
presentationId?: string | null;
|
|
1269
1272
|
/**
|
|
1270
|
-
* The revision ID of the presentation. Can be used in update requests to assert
|
|
1273
|
+
* Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but a nebulous string. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes.
|
|
1271
1274
|
*/
|
|
1272
1275
|
revisionId?: string | null;
|
|
1273
1276
|
/**
|
|
@@ -1417,7 +1420,7 @@ export namespace slides_v1 {
|
|
|
1417
1420
|
*/
|
|
1418
1421
|
export interface Schema$ReplaceImageRequest {
|
|
1419
1422
|
/**
|
|
1420
|
-
* The ID of the existing image that will be replaced.
|
|
1423
|
+
* The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request.
|
|
1421
1424
|
*/
|
|
1422
1425
|
imageObjectId?: string | null;
|
|
1423
1426
|
/**
|
|
@@ -1425,7 +1428,7 @@ export namespace slides_v1 {
|
|
|
1425
1428
|
*/
|
|
1426
1429
|
imageReplaceMethod?: string | null;
|
|
1427
1430
|
/**
|
|
1428
|
-
* The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB
|
|
1431
|
+
* The image URL. The image is fetched once at insertion time and a copy is stored for display inside the presentation. Images must be less than 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URL can't surpass 2 KB in length. The URL is saved with the image, and exposed through the Image.source_url field.
|
|
1429
1432
|
*/
|
|
1430
1433
|
url?: string | null;
|
|
1431
1434
|
}
|
|
@@ -1577,6 +1580,10 @@ export namespace slides_v1 {
|
|
|
1577
1580
|
* Updates the properties of a Shape.
|
|
1578
1581
|
*/
|
|
1579
1582
|
updateShapeProperties?: Schema$UpdateShapePropertiesRequest;
|
|
1583
|
+
/**
|
|
1584
|
+
* Updates the properties of a Slide
|
|
1585
|
+
*/
|
|
1586
|
+
updateSlideProperties?: Schema$UpdateSlidePropertiesRequest;
|
|
1580
1587
|
/**
|
|
1581
1588
|
* Updates the position of a set of slides in the presentation.
|
|
1582
1589
|
*/
|
|
@@ -1727,7 +1734,7 @@ export namespace slides_v1 {
|
|
|
1727
1734
|
*/
|
|
1728
1735
|
export interface Schema$Shape {
|
|
1729
1736
|
/**
|
|
1730
|
-
* Placeholders are
|
|
1737
|
+
* Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the shape is a placeholder shape and any inherited properties can be resolved by looking at the parent placeholder identified by the Placeholder.parent_object_id field.
|
|
1731
1738
|
*/
|
|
1732
1739
|
placeholder?: Schema$Placeholder;
|
|
1733
1740
|
/**
|
|
@@ -1832,6 +1839,10 @@ export namespace slides_v1 {
|
|
|
1832
1839
|
* The properties of Page that are only relevant for pages with page_type SLIDE.
|
|
1833
1840
|
*/
|
|
1834
1841
|
export interface Schema$SlideProperties {
|
|
1842
|
+
/**
|
|
1843
|
+
* Whether the slide is skipped in the presentation mode. Defaults to false.
|
|
1844
|
+
*/
|
|
1845
|
+
isSkipped?: boolean | null;
|
|
1835
1846
|
/**
|
|
1836
1847
|
* The object ID of the layout that this slide is based on. This property is read-only.
|
|
1837
1848
|
*/
|
|
@@ -2386,6 +2397,23 @@ export namespace slides_v1 {
|
|
|
2386
2397
|
*/
|
|
2387
2398
|
shapeProperties?: Schema$ShapeProperties;
|
|
2388
2399
|
}
|
|
2400
|
+
/**
|
|
2401
|
+
* Updates the properties of a Slide.
|
|
2402
|
+
*/
|
|
2403
|
+
export interface Schema$UpdateSlidePropertiesRequest {
|
|
2404
|
+
/**
|
|
2405
|
+
* The fields that should be updated. At least one field must be specified. The root 'slideProperties' is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example to update whether a slide is skipped, set `fields` to `"isSkipped"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
|
|
2406
|
+
*/
|
|
2407
|
+
fields?: string | null;
|
|
2408
|
+
/**
|
|
2409
|
+
* The object ID of the slide the update is applied to.
|
|
2410
|
+
*/
|
|
2411
|
+
objectId?: string | null;
|
|
2412
|
+
/**
|
|
2413
|
+
* The slide properties to update.
|
|
2414
|
+
*/
|
|
2415
|
+
slideProperties?: Schema$SlideProperties;
|
|
2416
|
+
}
|
|
2389
2417
|
/**
|
|
2390
2418
|
* Updates the position of slides in the presentation.
|
|
2391
2419
|
*/
|
|
@@ -2602,7 +2630,7 @@ export namespace slides_v1 {
|
|
|
2602
2630
|
*/
|
|
2603
2631
|
export interface Schema$WriteControl {
|
|
2604
2632
|
/**
|
|
2605
|
-
* The revision ID of the presentation required for the write request. If specified and the
|
|
2633
|
+
* The revision ID of the presentation required for the write request. If specified and the required revision ID doesn't match the presentation's current revision ID, the request is not processed and returns a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.
|
|
2606
2634
|
*/
|
|
2607
2635
|
requiredRevisionId?: string | null;
|
|
2608
2636
|
}
|