@googleapis/docs 0.2.0 → 1.0.0
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 +48 -0
- package/README.md +4 -23
- package/build/v1.d.ts +95 -10
- package/build/v1.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +95 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/docs-v0.4.2...docs-v1.0.0) (2022-06-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* run the generator ([#2971](https://github.com/googleapis/google-api-nodejs-client/issues/2971)) ([adddf01](https://github.com/googleapis/google-api-nodejs-client/commit/adddf018e7cb73adab7341053dd80d72c5a6248d))
|
|
13
|
+
|
|
14
|
+
### [0.4.2](https://github.com/googleapis/google-api-nodejs-client/compare/docs-v0.4.1...docs-v0.4.2) (2022-04-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **docs:** update the API ([4189154](https://github.com/googleapis/google-api-nodejs-client/commit/4189154feea1b67c29e05bd120a738a2356c2b71))
|
|
20
|
+
|
|
21
|
+
### [0.4.1](https://github.com/googleapis/google-api-nodejs-client/compare/docs-v0.4.0...docs-v0.4.1) (2022-04-01)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **docs:** update the API ([644ab97](https://github.com/googleapis/google-api-nodejs-client/commit/644ab97c8136cfae8b9992ce68b6a3d5914d5a88))
|
|
27
|
+
|
|
28
|
+
## [0.4.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/docs-v0.3.0...docs-v0.4.0) (2021-09-14)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **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))
|
|
34
|
+
* **docs:** update the API ([4d84c10](https://www.github.com/googleapis/google-api-nodejs-client/commit/4d84c1075833ab7a155a68022a62e6c19dc1822b))
|
|
35
|
+
* **docs:** update the API ([d854642](https://www.github.com/googleapis/google-api-nodejs-client/commit/d8546425ed347c70a702f38ea028ea163a8214ac))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* **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))
|
|
41
|
+
* **docs:** update the API ([d7a259c](https://www.github.com/googleapis/google-api-nodejs-client/commit/d7a259c33610a3892a71e38ee319743b7b4b36fc))
|
|
42
|
+
* 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))
|
|
43
|
+
|
|
44
|
+
## [0.3.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/docs-v0.2.0...docs-v0.3.0) (2021-07-08)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
* **docs:** update the API ([4d84c10](https://www.github.com/googleapis/google-api-nodejs-client/commit/4d84c1075833ab7a155a68022a62e6c19dc1822b))
|
|
50
|
+
|
|
3
51
|
## [0.2.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/docs-v0.1.0...docs-v0.2.0) (2021-03-18)
|
|
4
52
|
|
|
5
53
|
|
package/README.md
CHANGED
|
@@ -7,37 +7,18 @@
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
$ npm install googleapis
|
|
10
|
+
$ npm install @googleapis/docs
|
|
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/docs
|
|
23
|
-
$ npm install
|
|
24
|
-
$ npm run webpack
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
The generated bundle will be written to `dist/docs.min.js`. Use it from your HTML file:
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<script src="/path/to/docs.min.js"></script>
|
|
31
|
-
<script>
|
|
32
|
-
const { docs, auth } = Docs;
|
|
33
|
-
</script>
|
|
34
|
-
```
|
|
15
|
+
Information on classes can be found in [Googleapis Documentation](https://googleapis.dev/nodejs/googleapis/latest/docs/classes/Docs.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
|
@@ -222,7 +222,7 @@ export declare namespace docs_v1 {
|
|
|
222
222
|
textStyle?: Schema$TextStyle;
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if
|
|
225
|
+
* Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a footer of the specified type already exists, a 400 bad request error is returned.
|
|
226
226
|
*/
|
|
227
227
|
export interface Schema$CreateFooterRequest {
|
|
228
228
|
/**
|
|
@@ -266,7 +266,7 @@ export declare namespace docs_v1 {
|
|
|
266
266
|
footnoteId?: string | null;
|
|
267
267
|
}
|
|
268
268
|
/**
|
|
269
|
-
* Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if
|
|
269
|
+
* Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a header of the specified type already exists, a 400 bad request error is returned.
|
|
270
270
|
*/
|
|
271
271
|
export interface Schema$CreateHeaderRequest {
|
|
272
272
|
/**
|
|
@@ -524,7 +524,7 @@ export declare namespace docs_v1 {
|
|
|
524
524
|
[key: string]: Schema$PositionedObject;
|
|
525
525
|
} | null;
|
|
526
526
|
/**
|
|
527
|
-
* Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The format of the revision ID
|
|
527
|
+
* Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. 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 document has not changed. Conversely, a changed ID (for the same document and user) usually means the document has been updated. However, a changed ID can also be due to internal factors such as ID format changes.
|
|
528
528
|
*/
|
|
529
529
|
revisionId?: string | null;
|
|
530
530
|
/**
|
|
@@ -1042,7 +1042,7 @@ export declare namespace docs_v1 {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
inlineObjectProperties?: Schema$InlineObjectProperties;
|
|
1044
1044
|
/**
|
|
1045
|
-
* The ID of this inline object.
|
|
1045
|
+
* The ID of this inline object. Can be used to update an object’s properties.
|
|
1046
1046
|
*/
|
|
1047
1047
|
objectId?: string | null;
|
|
1048
1048
|
/**
|
|
@@ -1633,6 +1633,10 @@ export declare namespace docs_v1 {
|
|
|
1633
1633
|
* A paragraph element that links to a person or email address.
|
|
1634
1634
|
*/
|
|
1635
1635
|
person?: Schema$Person;
|
|
1636
|
+
/**
|
|
1637
|
+
* A paragraph element that links to a Google resource (such as a file in Drive, a Youtube video, a Calendar event, etc.)
|
|
1638
|
+
*/
|
|
1639
|
+
richLink?: Schema$RichLink;
|
|
1636
1640
|
/**
|
|
1637
1641
|
* The zero-based start index of this paragraph element, in UTF-16 code units.
|
|
1638
1642
|
*/
|
|
@@ -1710,6 +1714,10 @@ export declare namespace docs_v1 {
|
|
|
1710
1714
|
* The named style type of the paragraph. Since updating the named style type affects other properties within ParagraphStyle, the named style type is applied before the other properties are updated.
|
|
1711
1715
|
*/
|
|
1712
1716
|
namedStyleType?: string | null;
|
|
1717
|
+
/**
|
|
1718
|
+
* Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update page_break_before for paragraphs in unsupported regions, including Table, Header, Footer and Footnote, can result in an invalid document state which returns a 400 bad request error.
|
|
1719
|
+
*/
|
|
1720
|
+
pageBreakBefore?: boolean | null;
|
|
1713
1721
|
/**
|
|
1714
1722
|
* The shading of the paragraph. If unset, the value is inherited from the parent.
|
|
1715
1723
|
*/
|
|
@@ -1799,6 +1807,10 @@ export declare namespace docs_v1 {
|
|
|
1799
1807
|
* Indicates if there was a suggested change to named_style_type.
|
|
1800
1808
|
*/
|
|
1801
1809
|
namedStyleTypeSuggested?: boolean | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* Indicates if there was a suggested change to page_break_before.
|
|
1812
|
+
*/
|
|
1813
|
+
pageBreakBeforeSuggested?: boolean | null;
|
|
1802
1814
|
/**
|
|
1803
1815
|
* A mask that indicates which of the fields in shading have been changed in this suggestion.
|
|
1804
1816
|
*/
|
|
@@ -1860,6 +1872,19 @@ export declare namespace docs_v1 {
|
|
|
1860
1872
|
*/
|
|
1861
1873
|
name?: string | null;
|
|
1862
1874
|
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Updates the number of pinned table header rows in a table.
|
|
1877
|
+
*/
|
|
1878
|
+
export interface Schema$PinTableHeaderRowsRequest {
|
|
1879
|
+
/**
|
|
1880
|
+
* The number of table rows to pin, where 0 implies that all rows are unpinned.
|
|
1881
|
+
*/
|
|
1882
|
+
pinnedHeaderRowsCount?: number | null;
|
|
1883
|
+
/**
|
|
1884
|
+
* The location where the table starts in the document.
|
|
1885
|
+
*/
|
|
1886
|
+
tableStartLocation?: Schema$Location;
|
|
1887
|
+
}
|
|
1863
1888
|
/**
|
|
1864
1889
|
* An object that is tethered to a Paragraph and positioned relative to the beginning of the paragraph. A PositionedObject contains an EmbeddedObject such as an image.
|
|
1865
1890
|
*/
|
|
@@ -1991,7 +2016,7 @@ export declare namespace docs_v1 {
|
|
|
1991
2016
|
*/
|
|
1992
2017
|
export interface Schema$ReplaceImageRequest {
|
|
1993
2018
|
/**
|
|
1994
|
-
* The ID of the existing image that will be replaced.
|
|
2019
|
+
* The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request.
|
|
1995
2020
|
*/
|
|
1996
2021
|
imageObjectId?: string | null;
|
|
1997
2022
|
/**
|
|
@@ -1999,7 +2024,7 @@ export declare namespace docs_v1 {
|
|
|
1999
2024
|
*/
|
|
2000
2025
|
imageReplaceMethod?: string | null;
|
|
2001
2026
|
/**
|
|
2002
|
-
* The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB
|
|
2027
|
+
* The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URI can't surpass 2 KB in length. The URI is saved with the image, and exposed through the ImageProperties.source_uri field.
|
|
2003
2028
|
*/
|
|
2004
2029
|
uri?: string | null;
|
|
2005
2030
|
}
|
|
@@ -2108,6 +2133,10 @@ export declare namespace docs_v1 {
|
|
|
2108
2133
|
* Merges cells in a table.
|
|
2109
2134
|
*/
|
|
2110
2135
|
mergeTableCells?: Schema$MergeTableCellsRequest;
|
|
2136
|
+
/**
|
|
2137
|
+
* Updates the number of pinned header rows in a table.
|
|
2138
|
+
*/
|
|
2139
|
+
pinTableHeaderRows?: Schema$PinTableHeaderRowsRequest;
|
|
2111
2140
|
/**
|
|
2112
2141
|
* Replaces all instances of the specified text.
|
|
2113
2142
|
*/
|
|
@@ -2203,6 +2232,54 @@ export declare namespace docs_v1 {
|
|
|
2203
2232
|
*/
|
|
2204
2233
|
red?: number | null;
|
|
2205
2234
|
}
|
|
2235
|
+
/**
|
|
2236
|
+
* A link to a Google resource (e.g., a file in Drive, a YouTube video, a Calendar event, etc.).
|
|
2237
|
+
*/
|
|
2238
|
+
export interface Schema$RichLink {
|
|
2239
|
+
/**
|
|
2240
|
+
* Output only. The ID of this link.
|
|
2241
|
+
*/
|
|
2242
|
+
richLinkId?: string | null;
|
|
2243
|
+
/**
|
|
2244
|
+
* Output only. The properties of this RichLink. This field is always present.
|
|
2245
|
+
*/
|
|
2246
|
+
richLinkProperties?: Schema$RichLinkProperties;
|
|
2247
|
+
/**
|
|
2248
|
+
* IDs for suggestions that remove this link from the document. A RichLink might have multiple deletion IDs if, for example, multiple users suggest to delete it. If empty, then this person link isn't suggested for deletion.
|
|
2249
|
+
*/
|
|
2250
|
+
suggestedDeletionIds?: string[] | null;
|
|
2251
|
+
/**
|
|
2252
|
+
* IDs for suggestions that insert this link into the document. A RichLink might have multiple insertion IDs if it is a nested suggested change (a suggestion within a suggestion made by a different user, for example). If empty, then this person link isn't a suggested insertion.
|
|
2253
|
+
*/
|
|
2254
|
+
suggestedInsertionIds?: string[] | null;
|
|
2255
|
+
/**
|
|
2256
|
+
* The suggested text style changes to this RichLink, keyed by suggestion ID.
|
|
2257
|
+
*/
|
|
2258
|
+
suggestedTextStyleChanges?: {
|
|
2259
|
+
[key: string]: Schema$SuggestedTextStyle;
|
|
2260
|
+
} | null;
|
|
2261
|
+
/**
|
|
2262
|
+
* The text style of this RichLink.
|
|
2263
|
+
*/
|
|
2264
|
+
textStyle?: Schema$TextStyle;
|
|
2265
|
+
}
|
|
2266
|
+
/**
|
|
2267
|
+
* Properties specific to a RichLink.
|
|
2268
|
+
*/
|
|
2269
|
+
export interface Schema$RichLinkProperties {
|
|
2270
|
+
/**
|
|
2271
|
+
* Output only. The [MIME type](https://developers.google.com/drive/api/v3/mime-types) of the RichLink, if there is one (i.e., when it is a file in Drive).
|
|
2272
|
+
*/
|
|
2273
|
+
mimeType?: string | null;
|
|
2274
|
+
/**
|
|
2275
|
+
* Output only. The title of the RichLink as displayed in the link. This title matches the title of the linked resource at the time of the insertion or last update of the link. This field is always present.
|
|
2276
|
+
*/
|
|
2277
|
+
title?: string | null;
|
|
2278
|
+
/**
|
|
2279
|
+
* Output only. The URI to the RichLink. This is always present.
|
|
2280
|
+
*/
|
|
2281
|
+
uri?: string | null;
|
|
2282
|
+
}
|
|
2206
2283
|
/**
|
|
2207
2284
|
* A StructuralElement representing a section break. A section is a range of content which has the same SectionStyle. A section break represents the start of a new section, and the section style applies to the section after the section break. The document body always begins with a section break.
|
|
2208
2285
|
*/
|
|
@@ -2492,7 +2569,7 @@ export declare namespace docs_v1 {
|
|
|
2492
2569
|
*/
|
|
2493
2570
|
export interface Schema$SuggestedParagraphStyle {
|
|
2494
2571
|
/**
|
|
2495
|
-
* A ParagraphStyle that only includes the changes made in this suggestion. This can be used along with the
|
|
2572
|
+
* A ParagraphStyle that only includes the changes made in this suggestion. This can be used along with the paragraph_style_suggestion_state to see which fields have changed and their new values.
|
|
2496
2573
|
*/
|
|
2497
2574
|
paragraphStyle?: Schema$ParagraphStyle;
|
|
2498
2575
|
/**
|
|
@@ -2846,6 +2923,14 @@ export declare namespace docs_v1 {
|
|
|
2846
2923
|
* The minimum height of the row. The row will be rendered in the Docs editor at a height equal to or greater than this value in order to show all the content in the row's cells.
|
|
2847
2924
|
*/
|
|
2848
2925
|
minRowHeight?: Schema$Dimension;
|
|
2926
|
+
/**
|
|
2927
|
+
* Whether the row cannot overflow across page or column boundaries.
|
|
2928
|
+
*/
|
|
2929
|
+
preventOverflow?: boolean | null;
|
|
2930
|
+
/**
|
|
2931
|
+
* Whether the row is a table header.
|
|
2932
|
+
*/
|
|
2933
|
+
tableHeader?: boolean | null;
|
|
2849
2934
|
}
|
|
2850
2935
|
/**
|
|
2851
2936
|
* A mask that indicates which of the fields on the base TableRowStyle have been changed in this suggestion. For any field set to true, there is a new suggested value.
|
|
@@ -3030,7 +3115,7 @@ export declare namespace docs_v1 {
|
|
|
3030
3115
|
*/
|
|
3031
3116
|
export interface Schema$UpdateParagraphStyleRequest {
|
|
3032
3117
|
/**
|
|
3033
|
-
* The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. For example, to update the paragraph style's alignment property, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
|
|
3118
|
+
* The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example, to update the paragraph style's alignment property, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
|
|
3034
3119
|
*/
|
|
3035
3120
|
fields?: string | null;
|
|
3036
3121
|
/**
|
|
@@ -3157,11 +3242,11 @@ export declare namespace docs_v1 {
|
|
|
3157
3242
|
*/
|
|
3158
3243
|
export interface Schema$WriteControl {
|
|
3159
3244
|
/**
|
|
3160
|
-
* The revision ID of the document
|
|
3245
|
+
* The optional revision ID of the document the write request is applied to. If this is not the latest revision of the document, 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.
|
|
3161
3246
|
*/
|
|
3162
3247
|
requiredRevisionId?: string | null;
|
|
3163
3248
|
/**
|
|
3164
|
-
* The target revision ID of the document
|
|
3249
|
+
* The optional target revision ID of the document the write request is applied to. If collaborator changes have occurred after the document was read using the API, the changes produced by this write request are applied against the collaborator changes. This results in a new revision of the document that incorporates both the collaborator changes and the changes in the request, with the Docs server resolving conflicting changes. When using target revision ID, the API client can be thought of as another collaborator of the document. The target revision ID can only be used to write to recent versions of a document. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 bad request error. The request should be tried again after retrieving the latest version of the document. Usually a revision ID remains valid for use as a target revision for several minutes after it's read, but for frequently edited documents this window might be shorter.
|
|
3165
3250
|
*/
|
|
3166
3251
|
targetRevisionId?: string | null;
|
|
3167
3252
|
}
|
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,yDAAyD;AACzD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDA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AAO,KAAP,eAAO,QAwqHvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "docs",
|
|
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
|
@@ -276,7 +276,7 @@ export namespace docs_v1 {
|
|
|
276
276
|
textStyle?: Schema$TextStyle;
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
|
-
* Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if
|
|
279
|
+
* Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a footer of the specified type already exists, a 400 bad request error is returned.
|
|
280
280
|
*/
|
|
281
281
|
export interface Schema$CreateFooterRequest {
|
|
282
282
|
/**
|
|
@@ -320,7 +320,7 @@ export namespace docs_v1 {
|
|
|
320
320
|
footnoteId?: string | null;
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
* Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if
|
|
323
|
+
* Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a header of the specified type already exists, a 400 bad request error is returned.
|
|
324
324
|
*/
|
|
325
325
|
export interface Schema$CreateHeaderRequest {
|
|
326
326
|
/**
|
|
@@ -564,7 +564,7 @@ export namespace docs_v1 {
|
|
|
564
564
|
*/
|
|
565
565
|
positionedObjects?: {[key: string]: Schema$PositionedObject} | null;
|
|
566
566
|
/**
|
|
567
|
-
* Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The format of the revision ID
|
|
567
|
+
* Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. 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 document has not changed. Conversely, a changed ID (for the same document and user) usually means the document has been updated. However, a changed ID can also be due to internal factors such as ID format changes.
|
|
568
568
|
*/
|
|
569
569
|
revisionId?: string | null;
|
|
570
570
|
/**
|
|
@@ -1080,7 +1080,7 @@ export namespace docs_v1 {
|
|
|
1080
1080
|
*/
|
|
1081
1081
|
inlineObjectProperties?: Schema$InlineObjectProperties;
|
|
1082
1082
|
/**
|
|
1083
|
-
* The ID of this inline object.
|
|
1083
|
+
* The ID of this inline object. Can be used to update an object’s properties.
|
|
1084
1084
|
*/
|
|
1085
1085
|
objectId?: string | null;
|
|
1086
1086
|
/**
|
|
@@ -1669,6 +1669,10 @@ export namespace docs_v1 {
|
|
|
1669
1669
|
* A paragraph element that links to a person or email address.
|
|
1670
1670
|
*/
|
|
1671
1671
|
person?: Schema$Person;
|
|
1672
|
+
/**
|
|
1673
|
+
* A paragraph element that links to a Google resource (such as a file in Drive, a Youtube video, a Calendar event, etc.)
|
|
1674
|
+
*/
|
|
1675
|
+
richLink?: Schema$RichLink;
|
|
1672
1676
|
/**
|
|
1673
1677
|
* The zero-based start index of this paragraph element, in UTF-16 code units.
|
|
1674
1678
|
*/
|
|
@@ -1746,6 +1750,10 @@ export namespace docs_v1 {
|
|
|
1746
1750
|
* The named style type of the paragraph. Since updating the named style type affects other properties within ParagraphStyle, the named style type is applied before the other properties are updated.
|
|
1747
1751
|
*/
|
|
1748
1752
|
namedStyleType?: string | null;
|
|
1753
|
+
/**
|
|
1754
|
+
* Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update page_break_before for paragraphs in unsupported regions, including Table, Header, Footer and Footnote, can result in an invalid document state which returns a 400 bad request error.
|
|
1755
|
+
*/
|
|
1756
|
+
pageBreakBefore?: boolean | null;
|
|
1749
1757
|
/**
|
|
1750
1758
|
* The shading of the paragraph. If unset, the value is inherited from the parent.
|
|
1751
1759
|
*/
|
|
@@ -1835,6 +1843,10 @@ export namespace docs_v1 {
|
|
|
1835
1843
|
* Indicates if there was a suggested change to named_style_type.
|
|
1836
1844
|
*/
|
|
1837
1845
|
namedStyleTypeSuggested?: boolean | null;
|
|
1846
|
+
/**
|
|
1847
|
+
* Indicates if there was a suggested change to page_break_before.
|
|
1848
|
+
*/
|
|
1849
|
+
pageBreakBeforeSuggested?: boolean | null;
|
|
1838
1850
|
/**
|
|
1839
1851
|
* A mask that indicates which of the fields in shading have been changed in this suggestion.
|
|
1840
1852
|
*/
|
|
@@ -1896,6 +1908,19 @@ export namespace docs_v1 {
|
|
|
1896
1908
|
*/
|
|
1897
1909
|
name?: string | null;
|
|
1898
1910
|
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Updates the number of pinned table header rows in a table.
|
|
1913
|
+
*/
|
|
1914
|
+
export interface Schema$PinTableHeaderRowsRequest {
|
|
1915
|
+
/**
|
|
1916
|
+
* The number of table rows to pin, where 0 implies that all rows are unpinned.
|
|
1917
|
+
*/
|
|
1918
|
+
pinnedHeaderRowsCount?: number | null;
|
|
1919
|
+
/**
|
|
1920
|
+
* The location where the table starts in the document.
|
|
1921
|
+
*/
|
|
1922
|
+
tableStartLocation?: Schema$Location;
|
|
1923
|
+
}
|
|
1899
1924
|
/**
|
|
1900
1925
|
* An object that is tethered to a Paragraph and positioned relative to the beginning of the paragraph. A PositionedObject contains an EmbeddedObject such as an image.
|
|
1901
1926
|
*/
|
|
@@ -2027,7 +2052,7 @@ export namespace docs_v1 {
|
|
|
2027
2052
|
*/
|
|
2028
2053
|
export interface Schema$ReplaceImageRequest {
|
|
2029
2054
|
/**
|
|
2030
|
-
* The ID of the existing image that will be replaced.
|
|
2055
|
+
* The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request.
|
|
2031
2056
|
*/
|
|
2032
2057
|
imageObjectId?: string | null;
|
|
2033
2058
|
/**
|
|
@@ -2035,7 +2060,7 @@ export namespace docs_v1 {
|
|
|
2035
2060
|
*/
|
|
2036
2061
|
imageReplaceMethod?: string | null;
|
|
2037
2062
|
/**
|
|
2038
|
-
* The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB
|
|
2063
|
+
* The URI of the new image. The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URI can't surpass 2 KB in length. The URI is saved with the image, and exposed through the ImageProperties.source_uri field.
|
|
2039
2064
|
*/
|
|
2040
2065
|
uri?: string | null;
|
|
2041
2066
|
}
|
|
@@ -2144,6 +2169,10 @@ export namespace docs_v1 {
|
|
|
2144
2169
|
* Merges cells in a table.
|
|
2145
2170
|
*/
|
|
2146
2171
|
mergeTableCells?: Schema$MergeTableCellsRequest;
|
|
2172
|
+
/**
|
|
2173
|
+
* Updates the number of pinned header rows in a table.
|
|
2174
|
+
*/
|
|
2175
|
+
pinTableHeaderRows?: Schema$PinTableHeaderRowsRequest;
|
|
2147
2176
|
/**
|
|
2148
2177
|
* Replaces all instances of the specified text.
|
|
2149
2178
|
*/
|
|
@@ -2239,6 +2268,54 @@ export namespace docs_v1 {
|
|
|
2239
2268
|
*/
|
|
2240
2269
|
red?: number | null;
|
|
2241
2270
|
}
|
|
2271
|
+
/**
|
|
2272
|
+
* A link to a Google resource (e.g., a file in Drive, a YouTube video, a Calendar event, etc.).
|
|
2273
|
+
*/
|
|
2274
|
+
export interface Schema$RichLink {
|
|
2275
|
+
/**
|
|
2276
|
+
* Output only. The ID of this link.
|
|
2277
|
+
*/
|
|
2278
|
+
richLinkId?: string | null;
|
|
2279
|
+
/**
|
|
2280
|
+
* Output only. The properties of this RichLink. This field is always present.
|
|
2281
|
+
*/
|
|
2282
|
+
richLinkProperties?: Schema$RichLinkProperties;
|
|
2283
|
+
/**
|
|
2284
|
+
* IDs for suggestions that remove this link from the document. A RichLink might have multiple deletion IDs if, for example, multiple users suggest to delete it. If empty, then this person link isn't suggested for deletion.
|
|
2285
|
+
*/
|
|
2286
|
+
suggestedDeletionIds?: string[] | null;
|
|
2287
|
+
/**
|
|
2288
|
+
* IDs for suggestions that insert this link into the document. A RichLink might have multiple insertion IDs if it is a nested suggested change (a suggestion within a suggestion made by a different user, for example). If empty, then this person link isn't a suggested insertion.
|
|
2289
|
+
*/
|
|
2290
|
+
suggestedInsertionIds?: string[] | null;
|
|
2291
|
+
/**
|
|
2292
|
+
* The suggested text style changes to this RichLink, keyed by suggestion ID.
|
|
2293
|
+
*/
|
|
2294
|
+
suggestedTextStyleChanges?: {
|
|
2295
|
+
[key: string]: Schema$SuggestedTextStyle;
|
|
2296
|
+
} | null;
|
|
2297
|
+
/**
|
|
2298
|
+
* The text style of this RichLink.
|
|
2299
|
+
*/
|
|
2300
|
+
textStyle?: Schema$TextStyle;
|
|
2301
|
+
}
|
|
2302
|
+
/**
|
|
2303
|
+
* Properties specific to a RichLink.
|
|
2304
|
+
*/
|
|
2305
|
+
export interface Schema$RichLinkProperties {
|
|
2306
|
+
/**
|
|
2307
|
+
* Output only. The [MIME type](https://developers.google.com/drive/api/v3/mime-types) of the RichLink, if there is one (i.e., when it is a file in Drive).
|
|
2308
|
+
*/
|
|
2309
|
+
mimeType?: string | null;
|
|
2310
|
+
/**
|
|
2311
|
+
* Output only. The title of the RichLink as displayed in the link. This title matches the title of the linked resource at the time of the insertion or last update of the link. This field is always present.
|
|
2312
|
+
*/
|
|
2313
|
+
title?: string | null;
|
|
2314
|
+
/**
|
|
2315
|
+
* Output only. The URI to the RichLink. This is always present.
|
|
2316
|
+
*/
|
|
2317
|
+
uri?: string | null;
|
|
2318
|
+
}
|
|
2242
2319
|
/**
|
|
2243
2320
|
* A StructuralElement representing a section break. A section is a range of content which has the same SectionStyle. A section break represents the start of a new section, and the section style applies to the section after the section break. The document body always begins with a section break.
|
|
2244
2321
|
*/
|
|
@@ -2528,7 +2605,7 @@ export namespace docs_v1 {
|
|
|
2528
2605
|
*/
|
|
2529
2606
|
export interface Schema$SuggestedParagraphStyle {
|
|
2530
2607
|
/**
|
|
2531
|
-
* A ParagraphStyle that only includes the changes made in this suggestion. This can be used along with the
|
|
2608
|
+
* A ParagraphStyle that only includes the changes made in this suggestion. This can be used along with the paragraph_style_suggestion_state to see which fields have changed and their new values.
|
|
2532
2609
|
*/
|
|
2533
2610
|
paragraphStyle?: Schema$ParagraphStyle;
|
|
2534
2611
|
/**
|
|
@@ -2882,6 +2959,14 @@ export namespace docs_v1 {
|
|
|
2882
2959
|
* The minimum height of the row. The row will be rendered in the Docs editor at a height equal to or greater than this value in order to show all the content in the row's cells.
|
|
2883
2960
|
*/
|
|
2884
2961
|
minRowHeight?: Schema$Dimension;
|
|
2962
|
+
/**
|
|
2963
|
+
* Whether the row cannot overflow across page or column boundaries.
|
|
2964
|
+
*/
|
|
2965
|
+
preventOverflow?: boolean | null;
|
|
2966
|
+
/**
|
|
2967
|
+
* Whether the row is a table header.
|
|
2968
|
+
*/
|
|
2969
|
+
tableHeader?: boolean | null;
|
|
2885
2970
|
}
|
|
2886
2971
|
/**
|
|
2887
2972
|
* A mask that indicates which of the fields on the base TableRowStyle have been changed in this suggestion. For any field set to true, there is a new suggested value.
|
|
@@ -3066,7 +3151,7 @@ export namespace docs_v1 {
|
|
|
3066
3151
|
*/
|
|
3067
3152
|
export interface Schema$UpdateParagraphStyleRequest {
|
|
3068
3153
|
/**
|
|
3069
|
-
* The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. For example, to update the paragraph style's alignment property, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
|
|
3154
|
+
* The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example, to update the paragraph style's alignment property, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
|
|
3070
3155
|
*/
|
|
3071
3156
|
fields?: string | null;
|
|
3072
3157
|
/**
|
|
@@ -3193,11 +3278,11 @@ export namespace docs_v1 {
|
|
|
3193
3278
|
*/
|
|
3194
3279
|
export interface Schema$WriteControl {
|
|
3195
3280
|
/**
|
|
3196
|
-
* The revision ID of the document
|
|
3281
|
+
* The optional revision ID of the document the write request is applied to. If this is not the latest revision of the document, 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.
|
|
3197
3282
|
*/
|
|
3198
3283
|
requiredRevisionId?: string | null;
|
|
3199
3284
|
/**
|
|
3200
|
-
* The target revision ID of the document
|
|
3285
|
+
* The optional target revision ID of the document the write request is applied to. If collaborator changes have occurred after the document was read using the API, the changes produced by this write request are applied against the collaborator changes. This results in a new revision of the document that incorporates both the collaborator changes and the changes in the request, with the Docs server resolving conflicting changes. When using target revision ID, the API client can be thought of as another collaborator of the document. The target revision ID can only be used to write to recent versions of a document. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 bad request error. The request should be tried again after retrieving the latest version of the document. Usually a revision ID remains valid for use as a target revision for several minutes after it's read, but for frequently edited documents this window might be shorter.
|
|
3201
3286
|
*/
|
|
3202
3287
|
targetRevisionId?: string | null;
|
|
3203
3288
|
}
|