@maxim_mazurok/gapi.client.docs-v1 0.2.20251201 → 0.2.20251215
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 +66 -2
- 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: 20251215
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,6 +24,14 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(name: 'docs', version: 'v1', callback: () => any): void;
|
|
25
25
|
|
|
26
26
|
namespace docs {
|
|
27
|
+
interface AddDocumentTabRequest {
|
|
28
|
+
/** The properties of the tab to add. All properties are optional. */
|
|
29
|
+
tabProperties?: TabProperties;
|
|
30
|
+
}
|
|
31
|
+
interface AddDocumentTabResponse {
|
|
32
|
+
/** The properties of the newly added tab. */
|
|
33
|
+
tabProperties?: TabProperties;
|
|
34
|
+
}
|
|
27
35
|
interface AutoText {
|
|
28
36
|
/** The suggested deletion IDs. If empty, then there are no suggested deletions of this content. */
|
|
29
37
|
suggestedDeletionIds?: string[];
|
|
@@ -168,6 +176,24 @@ declare namespace gapi.client {
|
|
|
168
176
|
/** Indicates if there was a suggested change to offset_top. */
|
|
169
177
|
offsetTopSuggested?: boolean;
|
|
170
178
|
}
|
|
179
|
+
interface DateElement {
|
|
180
|
+
/** The properties of this DateElement. */
|
|
181
|
+
dateElementProperties?: DateElementProperties;
|
|
182
|
+
/** Output only. The unique ID of this date. */
|
|
183
|
+
dateId?: string;
|
|
184
|
+
/** The suggested changes to the date element properties, keyed by suggestion ID. */
|
|
185
|
+
suggestedDateElementPropertiesChanges?: {
|
|
186
|
+
[P in string]: SuggestedDateElementProperties;
|
|
187
|
+
};
|
|
188
|
+
/** IDs for suggestions that remove this date from the document. A DateElement might have multiple deletion IDs if, for example, multiple users suggest deleting it. If empty, then this date isn't suggested for deletion. */
|
|
189
|
+
suggestedDeletionIds?: string[];
|
|
190
|
+
/** IDs for suggestions that insert this date into the document. A DateElement might have multiple insertion IDs if it's a nested suggested change (a suggestion within a suggestion made by a different user, for example). If empty, then this date isn't a suggested insertion. */
|
|
191
|
+
suggestedInsertionIds?: string[];
|
|
192
|
+
/** The suggested text style changes to this DateElement, keyed by suggestion ID. */
|
|
193
|
+
suggestedTextStyleChanges?: {[P in string]: SuggestedTextStyle};
|
|
194
|
+
/** The text style of this DateElement. */
|
|
195
|
+
textStyle?: TextStyle;
|
|
196
|
+
}
|
|
171
197
|
interface DateElementProperties {
|
|
172
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 `en_US`, or locale specific equivalent. */
|
|
173
199
|
dateFormat?: string;
|
|
@@ -182,6 +208,18 @@ declare namespace gapi.client {
|
|
|
182
208
|
/** 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`. */
|
|
183
209
|
timeZoneId?: string;
|
|
184
210
|
}
|
|
211
|
+
interface DateElementPropertiesSuggestionState {
|
|
212
|
+
/** Indicates if there was a suggested change to date_format. */
|
|
213
|
+
dateFormatSuggested?: boolean;
|
|
214
|
+
/** Indicates if there was a suggested change to locale. */
|
|
215
|
+
localeSuggested?: boolean;
|
|
216
|
+
/** Indicates if there was a suggested change to time_format. */
|
|
217
|
+
timeFormatSuggested?: boolean;
|
|
218
|
+
/** Indicates if there was a suggested change to timestamp. */
|
|
219
|
+
timestampSuggested?: boolean;
|
|
220
|
+
/** Indicates if there was a suggested change to time_zone_id. */
|
|
221
|
+
timeZoneIdSuggested?: boolean;
|
|
222
|
+
}
|
|
185
223
|
interface DeleteContentRangeRequest {
|
|
186
224
|
/** The range of content to delete. Deleting text that crosses a paragraph boundary may result in changes to paragraph styles, lists, positioned objects and bookmarks as the two paragraphs are merged. Attempting to delete certain ranges can result in an invalid document structure in which case a 400 bad request error is returned. Some examples of invalid delete requests include: * Deleting one code unit of a surrogate pair. * Deleting the last newline character of a Body, Header, Footer, Footnote, TableCell or TableOfContents. * Deleting the start or end of a Table, TableOfContents or Equation without deleting the entire element. * Deleting the newline character before a Table, TableOfContents or SectionBreak without deleting the element. * Deleting individual rows or cells of a table. Deleting the content within a table cell is allowed. */
|
|
187
225
|
range?: Range;
|
|
@@ -224,6 +262,10 @@ declare namespace gapi.client {
|
|
|
224
262
|
/** The reference table cell location from which the row will be deleted. The row this cell spans will be deleted. If this is a merged cell that spans multiple rows, all rows that the cell spans will be deleted. If no rows remain in the table after this deletion, the whole table is deleted. */
|
|
225
263
|
tableCellLocation?: TableCellLocation;
|
|
226
264
|
}
|
|
265
|
+
interface DeleteTabRequest {
|
|
266
|
+
/** The ID of the tab to delete. */
|
|
267
|
+
tabId?: string;
|
|
268
|
+
}
|
|
227
269
|
interface Dimension {
|
|
228
270
|
/** The magnitude. */
|
|
229
271
|
magnitude?: number;
|
|
@@ -827,6 +869,8 @@ declare namespace gapi.client {
|
|
|
827
869
|
autoText?: AutoText;
|
|
828
870
|
/** A column break paragraph element. */
|
|
829
871
|
columnBreak?: ColumnBreak;
|
|
872
|
+
/** A paragraph element that represents a date. */
|
|
873
|
+
dateElement?: DateElement;
|
|
830
874
|
/** The zero-base end index of this paragraph element, exclusive, in UTF-16 code units. */
|
|
831
875
|
endIndex?: number;
|
|
832
876
|
/** An equation paragraph element. */
|
|
@@ -1049,6 +1093,8 @@ declare namespace gapi.client {
|
|
|
1049
1093
|
text?: string;
|
|
1050
1094
|
}
|
|
1051
1095
|
interface Request {
|
|
1096
|
+
/** Adds a document tab. */
|
|
1097
|
+
addDocumentTab?: AddDocumentTabRequest;
|
|
1052
1098
|
/** Creates a footer. */
|
|
1053
1099
|
createFooter?: CreateFooterRequest;
|
|
1054
1100
|
/** Creates a footnote. */
|
|
@@ -1071,6 +1117,8 @@ declare namespace gapi.client {
|
|
|
1071
1117
|
deleteParagraphBullets?: DeleteParagraphBulletsRequest;
|
|
1072
1118
|
/** Deletes a positioned object from the document. */
|
|
1073
1119
|
deletePositionedObject?: DeletePositionedObjectRequest;
|
|
1120
|
+
/** Deletes a document tab. */
|
|
1121
|
+
deleteTab?: DeleteTabRequest;
|
|
1074
1122
|
/** Deletes a column from a table. */
|
|
1075
1123
|
deleteTableColumn?: DeleteTableColumnRequest;
|
|
1076
1124
|
/** Deletes a row from a table. */
|
|
@@ -1107,6 +1155,8 @@ declare namespace gapi.client {
|
|
|
1107
1155
|
unmergeTableCells?: UnmergeTableCellsRequest;
|
|
1108
1156
|
/** Updates the style of the document. */
|
|
1109
1157
|
updateDocumentStyle?: UpdateDocumentStyleRequest;
|
|
1158
|
+
/** Updates the properties of a document tab. */
|
|
1159
|
+
updateDocumentTabProperties?: UpdateDocumentTabPropertiesRequest;
|
|
1110
1160
|
/** Updates the paragraph style at the specified range. */
|
|
1111
1161
|
updateParagraphStyle?: UpdateParagraphStyleRequest;
|
|
1112
1162
|
/** Updates the section style of the specified range. */
|
|
@@ -1121,6 +1171,8 @@ declare namespace gapi.client {
|
|
|
1121
1171
|
updateTextStyle?: UpdateTextStyleRequest;
|
|
1122
1172
|
}
|
|
1123
1173
|
interface Response {
|
|
1174
|
+
/** The result of adding a document tab. */
|
|
1175
|
+
addDocumentTab?: AddDocumentTabResponse;
|
|
1124
1176
|
/** The result of creating a footer. */
|
|
1125
1177
|
createFooter?: CreateFooterResponse;
|
|
1126
1178
|
/** The result of creating a footnote. */
|
|
@@ -1280,6 +1332,12 @@ declare namespace gapi.client {
|
|
|
1280
1332
|
/** A mask that indicates which of the fields on the base Bullet have been changed in this suggestion. */
|
|
1281
1333
|
bulletSuggestionState?: BulletSuggestionState;
|
|
1282
1334
|
}
|
|
1335
|
+
interface SuggestedDateElementProperties {
|
|
1336
|
+
/** DateElementProperties that only includes the changes made in this suggestion. This can be used along with the date_element_properties_suggestion_state to see which fields have changed and their new values. */
|
|
1337
|
+
dateElementProperties?: DateElementProperties;
|
|
1338
|
+
/** A mask that indicates which of the fields on the base DateElementProperties have been changed in this suggestion. */
|
|
1339
|
+
dateElementPropertiesSuggestionState?: DateElementPropertiesSuggestionState;
|
|
1340
|
+
}
|
|
1283
1341
|
interface SuggestedDocumentStyle {
|
|
1284
1342
|
/** A DocumentStyle that only includes the changes made in this suggestion. This can be used along with the document_style_suggestion_state to see which fields have changed and their new values. */
|
|
1285
1343
|
documentStyle?: DocumentStyle;
|
|
@@ -1503,7 +1561,7 @@ declare namespace gapi.client {
|
|
|
1503
1561
|
nestingLevel?: number;
|
|
1504
1562
|
/** Optional. The ID of the parent tab. Empty when the current tab is a root-level tab, which means it doesn't have any parents. */
|
|
1505
1563
|
parentTabId?: string;
|
|
1506
|
-
/**
|
|
1564
|
+
/** The immutable ID of the tab. */
|
|
1507
1565
|
tabId?: string;
|
|
1508
1566
|
/** The user-visible name of the tab. */
|
|
1509
1567
|
title?: string;
|
|
@@ -1590,6 +1648,12 @@ declare namespace gapi.client {
|
|
|
1590
1648
|
/** The tab that contains the style to update. When omitted, the request applies 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 not provided, the request applies to the first tab in the document. */
|
|
1591
1649
|
tabId?: string;
|
|
1592
1650
|
}
|
|
1651
|
+
interface UpdateDocumentTabPropertiesRequest {
|
|
1652
|
+
/** The fields that should be updated. At least one field must be specified. The root `tab_properties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. */
|
|
1653
|
+
fields?: string;
|
|
1654
|
+
/** The tab properties to update. */
|
|
1655
|
+
tabProperties?: TabProperties;
|
|
1656
|
+
}
|
|
1593
1657
|
interface UpdateParagraphStyleRequest {
|
|
1594
1658
|
/** 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. */
|
|
1595
1659
|
fields?: string;
|