@maxim_mazurok/gapi.client.docs-v1 0.2.20260310 → 0.3.20260311
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 +157 -45
- package/package.json +1 -1
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://docs.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260311
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -42,7 +42,7 @@ declare namespace gapi.client {
|
|
|
42
42
|
/** The text style of this AutoText. */
|
|
43
43
|
textStyle?: TextStyle;
|
|
44
44
|
/** The type of this auto text. */
|
|
45
|
-
type?:
|
|
45
|
+
type?: 'TYPE_UNSPECIFIED' | 'PAGE_NUMBER' | 'PAGE_COUNT';
|
|
46
46
|
}
|
|
47
47
|
interface Background {
|
|
48
48
|
/** The background color. */
|
|
@@ -110,7 +110,7 @@ declare namespace gapi.client {
|
|
|
110
110
|
/** The location of the SectionBreak immediately preceding the section whose SectionStyle this footer should belong to. If this is unset or refers to the first section break in the document, the footer applies to the document style. */
|
|
111
111
|
sectionBreakLocation?: Location;
|
|
112
112
|
/** The type of footer to create. */
|
|
113
|
-
type?:
|
|
113
|
+
type?: 'HEADER_FOOTER_TYPE_UNSPECIFIED' | 'DEFAULT';
|
|
114
114
|
}
|
|
115
115
|
interface CreateFooterResponse {
|
|
116
116
|
/** The ID of the created footer. */
|
|
@@ -130,7 +130,7 @@ declare namespace gapi.client {
|
|
|
130
130
|
/** The location of the SectionBreak which begins the section this header should belong to. If `section_break_location' is unset or if it refers to the first section break in the document body, the header applies to the DocumentStyle */
|
|
131
131
|
sectionBreakLocation?: Location;
|
|
132
132
|
/** The type of header to create. */
|
|
133
|
-
type?:
|
|
133
|
+
type?: 'HEADER_FOOTER_TYPE_UNSPECIFIED' | 'DEFAULT';
|
|
134
134
|
}
|
|
135
135
|
interface CreateHeaderResponse {
|
|
136
136
|
/** The ID of the created header. */
|
|
@@ -148,7 +148,23 @@ declare namespace gapi.client {
|
|
|
148
148
|
}
|
|
149
149
|
interface CreateParagraphBulletsRequest {
|
|
150
150
|
/** The kinds of bullet glyphs to be used. */
|
|
151
|
-
bulletPreset?:
|
|
151
|
+
bulletPreset?:
|
|
152
|
+
| 'BULLET_GLYPH_PRESET_UNSPECIFIED'
|
|
153
|
+
| 'BULLET_DISC_CIRCLE_SQUARE'
|
|
154
|
+
| 'BULLET_DIAMONDX_ARROW3D_SQUARE'
|
|
155
|
+
| 'BULLET_CHECKBOX'
|
|
156
|
+
| 'BULLET_ARROW_DIAMOND_DISC'
|
|
157
|
+
| 'BULLET_STAR_CIRCLE_SQUARE'
|
|
158
|
+
| 'BULLET_ARROW3D_CIRCLE_SQUARE'
|
|
159
|
+
| 'BULLET_LEFTTRIANGLE_DIAMOND_DISC'
|
|
160
|
+
| 'BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE'
|
|
161
|
+
| 'BULLET_DIAMOND_CIRCLE_SQUARE'
|
|
162
|
+
| 'NUMBERED_DECIMAL_ALPHA_ROMAN'
|
|
163
|
+
| 'NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS'
|
|
164
|
+
| 'NUMBERED_DECIMAL_NESTED'
|
|
165
|
+
| 'NUMBERED_UPPERALPHA_ALPHA_ROMAN'
|
|
166
|
+
| 'NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL'
|
|
167
|
+
| 'NUMBERED_ZERODECIMAL_ALPHA_ROMAN';
|
|
152
168
|
/** The range to apply the bullet preset to. */
|
|
153
169
|
range?: Range;
|
|
154
170
|
}
|
|
@@ -195,14 +211,24 @@ declare namespace gapi.client {
|
|
|
195
211
|
textStyle?: TextStyle;
|
|
196
212
|
}
|
|
197
213
|
interface DateElementProperties {
|
|
198
|
-
/** Determines how the date part of the DateElement will be displayed in the document. If unset, the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be formatted as `MMM d, y` in `
|
|
199
|
-
dateFormat?:
|
|
214
|
+
/** Determines how the date part of the DateElement will be displayed in the document. If unset, the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be formatted as `MMM d, y` in `en`, or locale specific equivalent. */
|
|
215
|
+
dateFormat?:
|
|
216
|
+
| 'DATE_FORMAT_UNSPECIFIED'
|
|
217
|
+
| 'DATE_FORMAT_CUSTOM'
|
|
218
|
+
| 'DATE_FORMAT_MONTH_DAY_ABBREVIATED'
|
|
219
|
+
| 'DATE_FORMAT_MONTH_DAY_FULL'
|
|
220
|
+
| 'DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED'
|
|
221
|
+
| 'DATE_FORMAT_ISO8601';
|
|
200
222
|
/** Output only. Indicates how the DateElement is displayed in the document. */
|
|
201
223
|
displayText?: string;
|
|
202
|
-
/** The
|
|
224
|
+
/** The language code of the DateElement. For example, `en`. If unset, the default locale is `en`. Limited to the following locales: `af`, `am`, `ar`, `az`, `be`, `bg`, `bn`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-CA`, `en-GB`, `es`, `es-419`, `et`, `eu`, `fa`, `fi`, `fil`, `fr`, `fr-CA`, `gl`, `gu`, `hi`, `hr`, `hu`, `hy`, `id`, `is`, `it`, `iw`, `ja`, `ka`, `kk`, `km`, `kn`, `ko`, `lo`, `lt`, `lv`, `ml`, `mn`, `mr`, `ms`, `ne`, `nl`, `no`, `pa`, `pl`, `pt-BR`, `pt-PT`, `ro`, `ru`, `si`, `sk`, `sl`, `sr`, `sv`, `sw`, `ta`, `te`, `th`, `tr`, `uk`, `ur`, `vi`, `zh-CN`, `zh-HK`, `zh-TW`, `zu`, `cy`, `my`. */
|
|
203
225
|
locale?: string;
|
|
204
226
|
/** Determines how the time part of the DateElement will be displayed in the document. If unset, the default value is TIME_FORMAT_DISABLED, indicating no time should be shown. */
|
|
205
|
-
timeFormat?:
|
|
227
|
+
timeFormat?:
|
|
228
|
+
| 'TIME_FORMAT_UNSPECIFIED'
|
|
229
|
+
| 'TIME_FORMAT_DISABLED'
|
|
230
|
+
| 'TIME_FORMAT_HOUR_MINUTE'
|
|
231
|
+
| 'TIME_FORMAT_HOUR_MINUTE_TIMEZONE';
|
|
206
232
|
/** The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is adjusted according to the time zone. For example, a timestamp of `18000` with a date format of `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as `1970-01-01 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`, time format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/New_York` will instead be `1970-01-01 12:00 AM`. */
|
|
207
233
|
timestamp?: string;
|
|
208
234
|
/** The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository (CLDR) project. For example, `America/New York`. If unset, the default time zone is `etc/UTC`. */
|
|
@@ -270,7 +296,7 @@ declare namespace gapi.client {
|
|
|
270
296
|
/** The magnitude. */
|
|
271
297
|
magnitude?: number;
|
|
272
298
|
/** The units for magnitude. */
|
|
273
|
-
unit?:
|
|
299
|
+
unit?: 'UNIT_UNSPECIFIED' | 'PT';
|
|
274
300
|
}
|
|
275
301
|
interface Document {
|
|
276
302
|
/** Output only. The main body of the document. Legacy field: Instead, use Document.tabs.documentTab.body, which exposes the actual document content from all tabs when the includeTabsContent parameter is set to `true`. If `false` or unset, this field contains information about the first tab in the document. */
|
|
@@ -302,7 +328,11 @@ declare namespace gapi.client {
|
|
|
302
328
|
/** Output only. The suggested changes to the named styles of the document, keyed by suggestion ID. Legacy field: Instead, use Document.tabs.documentTab.suggestedNamedStylesChanges, which exposes the actual document content from all tabs when the includeTabsContent parameter is set to `true`. If `false` or unset, this field contains information about the first tab in the document. */
|
|
303
329
|
suggestedNamedStylesChanges?: {[P in string]: SuggestedNamedStyles};
|
|
304
330
|
/** Output only. The suggestions view mode applied to the document. Note: When editing a document, changes must be based on a document with SUGGESTIONS_INLINE. */
|
|
305
|
-
suggestionsViewMode?:
|
|
331
|
+
suggestionsViewMode?:
|
|
332
|
+
| 'DEFAULT_FOR_CURRENT_ACCESS'
|
|
333
|
+
| 'SUGGESTIONS_INLINE'
|
|
334
|
+
| 'PREVIEW_SUGGESTIONS_ACCEPTED'
|
|
335
|
+
| 'PREVIEW_WITHOUT_SUGGESTIONS';
|
|
306
336
|
/** Tabs that are part of a document. Tabs can contain child tabs, a tab nested within another tab. Child tabs are represented by the Tab.childTabs field. */
|
|
307
337
|
tabs?: Tab[];
|
|
308
338
|
/** The title of the document. */
|
|
@@ -310,7 +340,7 @@ declare namespace gapi.client {
|
|
|
310
340
|
}
|
|
311
341
|
interface DocumentFormat {
|
|
312
342
|
/** Whether the document has pages or is pageless. */
|
|
313
|
-
documentMode?:
|
|
343
|
+
documentMode?: 'DOCUMENT_MODE_UNSPECIFIED' | 'PAGES' | 'PAGELESS';
|
|
314
344
|
}
|
|
315
345
|
interface DocumentStyle {
|
|
316
346
|
/** The background of the document. Documents cannot have a transparent background color. */
|
|
@@ -450,9 +480,9 @@ declare namespace gapi.client {
|
|
|
450
480
|
/** The color of the border. */
|
|
451
481
|
color?: OptionalColor;
|
|
452
482
|
/** The dash style of the border. */
|
|
453
|
-
dashStyle?:
|
|
483
|
+
dashStyle?: 'DASH_STYLE_UNSPECIFIED' | 'SOLID' | 'DOT' | 'DASH';
|
|
454
484
|
/** The property state of the border property. */
|
|
455
|
-
propertyState?:
|
|
485
|
+
propertyState?: 'RENDERED' | 'NOT_RENDERED';
|
|
456
486
|
/** The width of the border. */
|
|
457
487
|
width?: Dimension;
|
|
458
488
|
}
|
|
@@ -662,7 +692,7 @@ declare namespace gapi.client {
|
|
|
662
692
|
/** Inserts a newline and a section break at a specific index in the document. The section break must be inserted inside the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between the table and its preceding paragraph). Section breaks cannot be inserted inside a table, equation, footnote, header, or footer. Since section breaks can only be inserted inside the body, the segment ID field must be empty. */
|
|
663
693
|
location?: Location;
|
|
664
694
|
/** The type of section to insert. */
|
|
665
|
-
sectionType?:
|
|
695
|
+
sectionType?: 'SECTION_TYPE_UNSPECIFIED' | 'CONTINUOUS' | 'NEXT_PAGE';
|
|
666
696
|
}
|
|
667
697
|
interface InsertTableColumnRequest {
|
|
668
698
|
/** Whether to insert new column to the right of the reference cell location. - `True`: insert to the right. - `False`: insert to the left. */
|
|
@@ -762,7 +792,17 @@ declare namespace gapi.client {
|
|
|
762
792
|
}
|
|
763
793
|
interface NamedStyle {
|
|
764
794
|
/** The type of this named style. */
|
|
765
|
-
namedStyleType?:
|
|
795
|
+
namedStyleType?:
|
|
796
|
+
| 'NAMED_STYLE_TYPE_UNSPECIFIED'
|
|
797
|
+
| 'NORMAL_TEXT'
|
|
798
|
+
| 'TITLE'
|
|
799
|
+
| 'SUBTITLE'
|
|
800
|
+
| 'HEADING_1'
|
|
801
|
+
| 'HEADING_2'
|
|
802
|
+
| 'HEADING_3'
|
|
803
|
+
| 'HEADING_4'
|
|
804
|
+
| 'HEADING_5'
|
|
805
|
+
| 'HEADING_6';
|
|
766
806
|
/** The paragraph style of this named style. */
|
|
767
807
|
paragraphStyle?: ParagraphStyle;
|
|
768
808
|
/** The text style of this named style. */
|
|
@@ -778,7 +818,17 @@ declare namespace gapi.client {
|
|
|
778
818
|
}
|
|
779
819
|
interface NamedStyleSuggestionState {
|
|
780
820
|
/** The named style type that this suggestion state corresponds to. This field is provided as a convenience for matching the NamedStyleSuggestionState with its corresponding NamedStyle. */
|
|
781
|
-
namedStyleType?:
|
|
821
|
+
namedStyleType?:
|
|
822
|
+
| 'NAMED_STYLE_TYPE_UNSPECIFIED'
|
|
823
|
+
| 'NORMAL_TEXT'
|
|
824
|
+
| 'TITLE'
|
|
825
|
+
| 'SUBTITLE'
|
|
826
|
+
| 'HEADING_1'
|
|
827
|
+
| 'HEADING_2'
|
|
828
|
+
| 'HEADING_3'
|
|
829
|
+
| 'HEADING_4'
|
|
830
|
+
| 'HEADING_5'
|
|
831
|
+
| 'HEADING_6';
|
|
782
832
|
/** A mask that indicates which of the fields in paragraph style have been changed in this suggestion. */
|
|
783
833
|
paragraphStyleSuggestionState?: ParagraphStyleSuggestionState;
|
|
784
834
|
/** A mask that indicates which of the fields in text style have been changed in this suggestion. */
|
|
@@ -786,13 +836,25 @@ declare namespace gapi.client {
|
|
|
786
836
|
}
|
|
787
837
|
interface NestingLevel {
|
|
788
838
|
/** The alignment of the bullet within the space allotted for rendering the bullet. */
|
|
789
|
-
bulletAlignment?:
|
|
839
|
+
bulletAlignment?:
|
|
840
|
+
| 'BULLET_ALIGNMENT_UNSPECIFIED'
|
|
841
|
+
| 'START'
|
|
842
|
+
| 'CENTER'
|
|
843
|
+
| 'END';
|
|
790
844
|
/** The format string used by bullets at this level of nesting. The glyph format contains one or more placeholders, and these placeholders are replaced with the appropriate values depending on the glyph_type or glyph_symbol. The placeholders follow the pattern `%[nesting_level]`. Furthermore, placeholders can have prefixes and suffixes. Thus, the glyph format follows the pattern `%[nesting_level]`. Note that the prefix and suffix are optional and can be arbitrary strings. For example, the glyph format `%0.` indicates that the rendered glyph will replace the placeholder with the corresponding glyph for nesting level 0 followed by a period as the suffix. So a list with a glyph type of UPPER_ALPHA and glyph format `%0.` at nesting level 0 will result in a list with rendered glyphs `A.` `B.` `C.` The glyph format can contain placeholders for the current nesting level as well as placeholders for parent nesting levels. For example, a list can have a glyph format of `%0.` at nesting level 0 and a glyph format of `%0.%1.` at nesting level 1. Assuming both nesting levels have DECIMAL glyph types, this would result in a list with rendered glyphs `1.` `2.` ` 2.1.` ` 2.2.` `3.` For nesting levels that are ordered, the string that replaces a placeholder in the glyph format for a particular paragraph depends on the paragraph's order within the list. */
|
|
791
845
|
glyphFormat?: string;
|
|
792
846
|
/** A custom glyph symbol used by bullets when paragraphs at this level of nesting is unordered. The glyph symbol replaces placeholders within the glyph_format. For example, if the glyph_symbol is the solid circle corresponding to Unicode U+25cf code point and the glyph_format is `%0`, the rendered glyph would be the solid circle. */
|
|
793
847
|
glyphSymbol?: string;
|
|
794
848
|
/** The type of glyph used by bullets when paragraphs at this level of nesting is ordered. The glyph type determines the type of glyph used to replace placeholders within the glyph_format when paragraphs at this level of nesting are ordered. For example, if the nesting level is 0, the glyph_format is `%0.` and the glyph type is DECIMAL, then the rendered glyph would replace the placeholder `%0` in the glyph format with a number corresponding to the list item's order within the list. */
|
|
795
|
-
glyphType?:
|
|
849
|
+
glyphType?:
|
|
850
|
+
| 'GLYPH_TYPE_UNSPECIFIED'
|
|
851
|
+
| 'NONE'
|
|
852
|
+
| 'DECIMAL'
|
|
853
|
+
| 'ZERO_DECIMAL'
|
|
854
|
+
| 'UPPER_ALPHA'
|
|
855
|
+
| 'ALPHA'
|
|
856
|
+
| 'UPPER_ROMAN'
|
|
857
|
+
| 'ROMAN';
|
|
796
858
|
/** The amount of indentation for the first line of paragraphs at this level of nesting. */
|
|
797
859
|
indentFirstLine?: Dimension;
|
|
798
860
|
/** The amount of indentation for paragraphs at this level of nesting. Applied to the side that corresponds to the start of the text, based on the paragraph's content direction. */
|
|
@@ -858,7 +920,7 @@ declare namespace gapi.client {
|
|
|
858
920
|
/** The color of the border. */
|
|
859
921
|
color?: OptionalColor;
|
|
860
922
|
/** The dash style of the border. */
|
|
861
|
-
dashStyle?:
|
|
923
|
+
dashStyle?: 'DASH_STYLE_UNSPECIFIED' | 'SOLID' | 'DOT' | 'DASH';
|
|
862
924
|
/** The padding of the border. */
|
|
863
925
|
padding?: Dimension;
|
|
864
926
|
/** The width of the border. */
|
|
@@ -894,7 +956,12 @@ declare namespace gapi.client {
|
|
|
894
956
|
}
|
|
895
957
|
interface ParagraphStyle {
|
|
896
958
|
/** The text alignment for this paragraph. */
|
|
897
|
-
alignment?:
|
|
959
|
+
alignment?:
|
|
960
|
+
| 'ALIGNMENT_UNSPECIFIED'
|
|
961
|
+
| 'START'
|
|
962
|
+
| 'CENTER'
|
|
963
|
+
| 'END'
|
|
964
|
+
| 'JUSTIFIED';
|
|
898
965
|
/** Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent. */
|
|
899
966
|
avoidWidowAndOrphan?: boolean;
|
|
900
967
|
/** The border between this paragraph and the next and previous paragraphs. If unset, the value is inherited from the parent. The between border is rendered when the adjacent paragraph has the same border and indent properties. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety. */
|
|
@@ -908,7 +975,10 @@ declare namespace gapi.client {
|
|
|
908
975
|
/** The border at the top of this paragraph. If unset, the value is inherited from the parent. The top border is rendered when the paragraph above has different border and indent properties. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety. */
|
|
909
976
|
borderTop?: ParagraphBorder;
|
|
910
977
|
/** The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since paragraph direction is not inherited. */
|
|
911
|
-
direction?:
|
|
978
|
+
direction?:
|
|
979
|
+
| 'CONTENT_DIRECTION_UNSPECIFIED'
|
|
980
|
+
| 'LEFT_TO_RIGHT'
|
|
981
|
+
| 'RIGHT_TO_LEFT';
|
|
912
982
|
/** The heading ID of the paragraph. If empty, then this paragraph is not a heading. This property is read-only. */
|
|
913
983
|
headingId?: string;
|
|
914
984
|
/** The amount of indentation for the paragraph on the side that corresponds to the end of the text, based on the current paragraph direction. If unset, the value is inherited from the parent. */
|
|
@@ -924,7 +994,17 @@ declare namespace gapi.client {
|
|
|
924
994
|
/** The amount of space between lines, as a percentage of normal, where normal is represented as 100.0. If unset, the value is inherited from the parent. */
|
|
925
995
|
lineSpacing?: number;
|
|
926
996
|
/** 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. */
|
|
927
|
-
namedStyleType?:
|
|
997
|
+
namedStyleType?:
|
|
998
|
+
| 'NAMED_STYLE_TYPE_UNSPECIFIED'
|
|
999
|
+
| 'NORMAL_TEXT'
|
|
1000
|
+
| 'TITLE'
|
|
1001
|
+
| 'SUBTITLE'
|
|
1002
|
+
| 'HEADING_1'
|
|
1003
|
+
| 'HEADING_2'
|
|
1004
|
+
| 'HEADING_3'
|
|
1005
|
+
| 'HEADING_4'
|
|
1006
|
+
| 'HEADING_5'
|
|
1007
|
+
| 'HEADING_6';
|
|
928
1008
|
/** 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 that returns a 400 bad request error. */
|
|
929
1009
|
pageBreakBefore?: boolean;
|
|
930
1010
|
/** The shading of the paragraph. If unset, the value is inherited from the parent. */
|
|
@@ -934,7 +1014,10 @@ declare namespace gapi.client {
|
|
|
934
1014
|
/** The amount of extra space below the paragraph. If unset, the value is inherited from the parent. */
|
|
935
1015
|
spaceBelow?: Dimension;
|
|
936
1016
|
/** The spacing mode for the paragraph. */
|
|
937
|
-
spacingMode?:
|
|
1017
|
+
spacingMode?:
|
|
1018
|
+
| 'SPACING_MODE_UNSPECIFIED'
|
|
1019
|
+
| 'NEVER_COLLAPSE'
|
|
1020
|
+
| 'COLLAPSE_LISTS';
|
|
938
1021
|
/** A list of the tab stops for this paragraph. The list of tab stops is not inherited. This property is read-only. */
|
|
939
1022
|
tabStops?: TabStop[];
|
|
940
1023
|
}
|
|
@@ -1024,7 +1107,14 @@ declare namespace gapi.client {
|
|
|
1024
1107
|
}
|
|
1025
1108
|
interface PositionedObjectPositioning {
|
|
1026
1109
|
/** The layout of this positioned object. */
|
|
1027
|
-
layout?:
|
|
1110
|
+
layout?:
|
|
1111
|
+
| 'POSITIONED_OBJECT_LAYOUT_UNSPECIFIED'
|
|
1112
|
+
| 'WRAP_TEXT'
|
|
1113
|
+
| 'BREAK_LEFT'
|
|
1114
|
+
| 'BREAK_RIGHT'
|
|
1115
|
+
| 'BREAK_LEFT_RIGHT'
|
|
1116
|
+
| 'IN_FRONT_OF_TEXT'
|
|
1117
|
+
| 'BEHIND_TEXT';
|
|
1028
1118
|
/** The offset of the left edge of the positioned object relative to the beginning of the Paragraph it's tethered to. The exact positioning of the object can depend on other content in the document and the document's styling. */
|
|
1029
1119
|
leftOffset?: Dimension;
|
|
1030
1120
|
/** The offset of the top edge of the positioned object relative to the beginning of the Paragraph it's tethered to. The exact positioning of the object can depend on other content in the document and the document's styling. */
|
|
@@ -1076,7 +1166,7 @@ declare namespace gapi.client {
|
|
|
1076
1166
|
/** The ID of the existing image that will be replaced. The ID can be retrieved from the response of a get request. */
|
|
1077
1167
|
imageObjectId?: string;
|
|
1078
1168
|
/** The replacement method. */
|
|
1079
|
-
imageReplaceMethod?:
|
|
1169
|
+
imageReplaceMethod?: 'IMAGE_REPLACE_METHOD_UNSPECIFIED' | 'CENTER_CROP';
|
|
1080
1170
|
/** The tab that the image to be replaced is in. When omitted, the request is applied to the first tab. In a document containing a single tab: - If provided, must match the singular tab's ID. - If omitted, the request applies to the singular tab. In a document containing multiple tabs: - If provided, the request applies to the specified tab. - If omitted, the request applies to the first tab in the document. */
|
|
1081
1171
|
tabId?: string;
|
|
1082
1172
|
/** 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. */
|
|
@@ -1236,9 +1326,15 @@ declare namespace gapi.client {
|
|
|
1236
1326
|
/** The section's columns properties. If empty, the section contains one column with the default properties in the Docs editor. A section can be updated to have no more than 3 columns. When updating this property, setting a concrete value is required. Unsetting this property will result in a 400 bad request error. */
|
|
1237
1327
|
columnProperties?: SectionColumnProperties[];
|
|
1238
1328
|
/** The style of column separators. This style can be set even when there's one column in the section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. */
|
|
1239
|
-
columnSeparatorStyle?:
|
|
1329
|
+
columnSeparatorStyle?:
|
|
1330
|
+
| 'COLUMN_SEPARATOR_STYLE_UNSPECIFIED'
|
|
1331
|
+
| 'NONE'
|
|
1332
|
+
| 'BETWEEN_EACH_COLUMN';
|
|
1240
1333
|
/** The content direction of this section. If unset, the value defaults to LEFT_TO_RIGHT. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. */
|
|
1241
|
-
contentDirection?:
|
|
1334
|
+
contentDirection?:
|
|
1335
|
+
| 'CONTENT_DIRECTION_UNSPECIFIED'
|
|
1336
|
+
| 'LEFT_TO_RIGHT'
|
|
1337
|
+
| 'RIGHT_TO_LEFT';
|
|
1242
1338
|
/** The ID of the default footer. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only. */
|
|
1243
1339
|
defaultFooterId?: string;
|
|
1244
1340
|
/** The ID of the default header. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only. */
|
|
@@ -1268,7 +1364,7 @@ declare namespace gapi.client {
|
|
|
1268
1364
|
/** The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first SectionBreak, refer to DocumentStyle's page_number_start. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. */
|
|
1269
1365
|
pageNumberStart?: number;
|
|
1270
1366
|
/** Output only. The type of section. */
|
|
1271
|
-
sectionType?:
|
|
1367
|
+
sectionType?: 'SECTION_TYPE_UNSPECIFIED' | 'CONTINUOUS' | 'NEXT_PAGE';
|
|
1272
1368
|
/** Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's use_first_page_header_footer for the first section. If the value is unset for subsequent sectors, it should be interpreted as false. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. */
|
|
1273
1369
|
useFirstPageHeaderFooter?: boolean;
|
|
1274
1370
|
}
|
|
@@ -1434,7 +1530,7 @@ declare namespace gapi.client {
|
|
|
1434
1530
|
/** The color of the border. This color cannot be transparent. */
|
|
1435
1531
|
color?: OptionalColor;
|
|
1436
1532
|
/** The dash style of the border. */
|
|
1437
|
-
dashStyle?:
|
|
1533
|
+
dashStyle?: 'DASH_STYLE_UNSPECIFIED' | 'SOLID' | 'DOT' | 'DASH';
|
|
1438
1534
|
/** The width of the border. */
|
|
1439
1535
|
width?: Dimension;
|
|
1440
1536
|
}
|
|
@@ -1460,7 +1556,12 @@ declare namespace gapi.client {
|
|
|
1460
1556
|
/** The column span of the cell. This property is read-only. */
|
|
1461
1557
|
columnSpan?: number;
|
|
1462
1558
|
/** The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Docs editor. */
|
|
1463
|
-
contentAlignment?:
|
|
1559
|
+
contentAlignment?:
|
|
1560
|
+
| 'CONTENT_ALIGNMENT_UNSPECIFIED'
|
|
1561
|
+
| 'CONTENT_ALIGNMENT_UNSUPPORTED'
|
|
1562
|
+
| 'TOP'
|
|
1563
|
+
| 'MIDDLE'
|
|
1564
|
+
| 'BOTTOM';
|
|
1464
1565
|
/** The bottom padding of the cell. */
|
|
1465
1566
|
paddingBottom?: Dimension;
|
|
1466
1567
|
/** The left padding of the cell. */
|
|
@@ -1502,7 +1603,10 @@ declare namespace gapi.client {
|
|
|
1502
1603
|
/** The width of the column. Set when the column's `width_type` is FIXED_WIDTH. */
|
|
1503
1604
|
width?: Dimension;
|
|
1504
1605
|
/** The width type of the column. */
|
|
1505
|
-
widthType?:
|
|
1606
|
+
widthType?:
|
|
1607
|
+
| 'WIDTH_TYPE_UNSPECIFIED'
|
|
1608
|
+
| 'EVENLY_DISTRIBUTED'
|
|
1609
|
+
| 'FIXED_WIDTH';
|
|
1506
1610
|
}
|
|
1507
1611
|
interface TableOfContents {
|
|
1508
1612
|
/** The content of the table of contents. */
|
|
@@ -1572,7 +1676,7 @@ declare namespace gapi.client {
|
|
|
1572
1676
|
}
|
|
1573
1677
|
interface TabStop {
|
|
1574
1678
|
/** The alignment of this tab stop. If unset, the value defaults to START. */
|
|
1575
|
-
alignment?:
|
|
1679
|
+
alignment?: 'TAB_STOP_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
1576
1680
|
/** The offset between this tab stop and the start margin. */
|
|
1577
1681
|
offset?: Dimension;
|
|
1578
1682
|
}
|
|
@@ -1592,7 +1696,11 @@ declare namespace gapi.client {
|
|
|
1592
1696
|
/** The background color of the text. If set, the color is either an RGB color or transparent, depending on the `color` field. */
|
|
1593
1697
|
backgroundColor?: OptionalColor;
|
|
1594
1698
|
/** The text's vertical offset from its normal position. Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically rendered in a smaller font size, computed based on the `font_size` field. Changes in this field don't affect the `font_size`. */
|
|
1595
|
-
baselineOffset?:
|
|
1699
|
+
baselineOffset?:
|
|
1700
|
+
| 'BASELINE_OFFSET_UNSPECIFIED'
|
|
1701
|
+
| 'NONE'
|
|
1702
|
+
| 'SUPERSCRIPT'
|
|
1703
|
+
| 'SUBSCRIPT';
|
|
1596
1704
|
/** Whether or not the text is rendered as bold. */
|
|
1597
1705
|
bold?: boolean;
|
|
1598
1706
|
/** The size of the text's font. */
|
|
@@ -1724,11 +1832,11 @@ declare namespace gapi.client {
|
|
|
1724
1832
|
/** 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. */
|
|
1725
1833
|
batchUpdate(request: {
|
|
1726
1834
|
/** V1 error format. */
|
|
1727
|
-
'$.xgafv'?:
|
|
1835
|
+
'$.xgafv'?: '1' | '2';
|
|
1728
1836
|
/** OAuth access token. */
|
|
1729
1837
|
access_token?: string;
|
|
1730
1838
|
/** Data format for response. */
|
|
1731
|
-
alt?:
|
|
1839
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1732
1840
|
/** JSONP */
|
|
1733
1841
|
callback?: string;
|
|
1734
1842
|
/** The ID of the document to update. */
|
|
@@ -1753,11 +1861,11 @@ declare namespace gapi.client {
|
|
|
1753
1861
|
batchUpdate(
|
|
1754
1862
|
request: {
|
|
1755
1863
|
/** V1 error format. */
|
|
1756
|
-
'$.xgafv'?:
|
|
1864
|
+
'$.xgafv'?: '1' | '2';
|
|
1757
1865
|
/** OAuth access token. */
|
|
1758
1866
|
access_token?: string;
|
|
1759
1867
|
/** Data format for response. */
|
|
1760
|
-
alt?:
|
|
1868
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1761
1869
|
/** JSONP */
|
|
1762
1870
|
callback?: string;
|
|
1763
1871
|
/** The ID of the document to update. */
|
|
@@ -1782,11 +1890,11 @@ declare namespace gapi.client {
|
|
|
1782
1890
|
/** 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. */
|
|
1783
1891
|
create(request: {
|
|
1784
1892
|
/** V1 error format. */
|
|
1785
|
-
'$.xgafv'?:
|
|
1893
|
+
'$.xgafv'?: '1' | '2';
|
|
1786
1894
|
/** OAuth access token. */
|
|
1787
1895
|
access_token?: string;
|
|
1788
1896
|
/** Data format for response. */
|
|
1789
|
-
alt?:
|
|
1897
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1790
1898
|
/** JSONP */
|
|
1791
1899
|
callback?: string;
|
|
1792
1900
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1809,11 +1917,11 @@ declare namespace gapi.client {
|
|
|
1809
1917
|
create(
|
|
1810
1918
|
request: {
|
|
1811
1919
|
/** V1 error format. */
|
|
1812
|
-
'$.xgafv'?:
|
|
1920
|
+
'$.xgafv'?: '1' | '2';
|
|
1813
1921
|
/** OAuth access token. */
|
|
1814
1922
|
access_token?: string;
|
|
1815
1923
|
/** Data format for response. */
|
|
1816
|
-
alt?:
|
|
1924
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1817
1925
|
/** JSONP */
|
|
1818
1926
|
callback?: string;
|
|
1819
1927
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1836,11 +1944,11 @@ declare namespace gapi.client {
|
|
|
1836
1944
|
/** Gets the latest version of the specified document. */
|
|
1837
1945
|
get(request?: {
|
|
1838
1946
|
/** V1 error format. */
|
|
1839
|
-
'$.xgafv'?:
|
|
1947
|
+
'$.xgafv'?: '1' | '2';
|
|
1840
1948
|
/** OAuth access token. */
|
|
1841
1949
|
access_token?: string;
|
|
1842
1950
|
/** Data format for response. */
|
|
1843
|
-
alt?:
|
|
1951
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1844
1952
|
/** JSONP */
|
|
1845
1953
|
callback?: string;
|
|
1846
1954
|
/** The ID of the document to retrieve. */
|
|
@@ -1858,7 +1966,11 @@ declare namespace gapi.client {
|
|
|
1858
1966
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1859
1967
|
quotaUser?: string;
|
|
1860
1968
|
/** 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. */
|
|
1861
|
-
suggestionsViewMode?:
|
|
1969
|
+
suggestionsViewMode?:
|
|
1970
|
+
| 'DEFAULT_FOR_CURRENT_ACCESS'
|
|
1971
|
+
| 'SUGGESTIONS_INLINE'
|
|
1972
|
+
| 'PREVIEW_SUGGESTIONS_ACCEPTED'
|
|
1973
|
+
| 'PREVIEW_WITHOUT_SUGGESTIONS';
|
|
1862
1974
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1863
1975
|
upload_protocol?: string;
|
|
1864
1976
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|