@maxim_mazurok/gapi.client.docs-v1 0.0.20240711 → 0.0.20240722

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.
Files changed (2) hide show
  1. package/index.d.ts +95 -1
  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: 20240711
12
+ // Revision: 20240722
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -62,6 +62,12 @@ declare namespace gapi.client {
62
62
  /** The contents of the body. The indexes for the body's content begin at zero. */
63
63
  content?: StructuralElement[];
64
64
  }
65
+ interface BookmarkLink {
66
+ /** The ID of a bookmark in this document. */
67
+ id?: string;
68
+ /** The ID of the tab containing this bookmark. */
69
+ tabId?: string;
70
+ }
65
71
  interface Bullet {
66
72
  /** The ID of the list this paragraph belongs to. */
67
73
  listId?: string;
@@ -169,16 +175,22 @@ declare namespace gapi.client {
169
175
  interface DeleteFooterRequest {
170
176
  /** The id of the footer to delete. If this footer is defined on DocumentStyle, the reference to this footer is removed, resulting in no footer of that type for the first section of the document. If this footer is defined on a SectionStyle, the reference to this footer is removed and the footer of that type is now continued from the previous section. */
171
177
  footerId?: string;
178
+ /** The tab that contains the footer to delete. 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. */
179
+ tabId?: string;
172
180
  }
173
181
  interface DeleteHeaderRequest {
174
182
  /** The id of the header to delete. If this header is defined on DocumentStyle, the reference to this header is removed, resulting in no header of that type for the first section of the document. If this header is defined on a SectionStyle, the reference to this header is removed and the header of that type is now continued from the previous section. */
175
183
  headerId?: string;
184
+ /** The tab containing the header to delete. 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. */
185
+ tabId?: string;
176
186
  }
177
187
  interface DeleteNamedRangeRequest {
178
188
  /** The name of the range(s) to delete. All named ranges with the given name will be deleted. */
179
189
  name?: string;
180
190
  /** The ID of the named range to delete. */
181
191
  namedRangeId?: string;
192
+ /** Optional. The criteria used to specify which tab(s) the range deletion should occur in. When omitted, the range deletion is applied to all tabs. In a document containing a single tab: - If provided, must match the singular tab's ID. - If omitted, the range deletion applies to the singular tab. In a document containing multiple tabs: - If provided, the range deletion applies to the specified tabs. - If not provided, the range deletion applies to all tabs. */
193
+ tabsCriteria?: TabsCriteria;
182
194
  }
183
195
  interface DeleteParagraphBulletsRequest {
184
196
  /** The range to delete bullets from. */
@@ -187,6 +199,8 @@ declare namespace gapi.client {
187
199
  interface DeletePositionedObjectRequest {
188
200
  /** The ID of the positioned object to delete. */
189
201
  objectId?: string;
202
+ /** The tab that the positioned object to delete 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. */
203
+ tabId?: string;
190
204
  }
191
205
  interface DeleteTableColumnRequest {
192
206
  /** The reference table cell location from which the column will be deleted. The column this cell spans will be deleted. If this is a merged cell that spans multiple columns, all columns that the cell spans will be deleted. If no columns remain in the table after this deletion, the whole table is deleted. */
@@ -233,6 +247,8 @@ declare namespace gapi.client {
233
247
  suggestedNamedStylesChanges?: {[P in string]: SuggestedNamedStyles};
234
248
  /** 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. */
235
249
  suggestionsViewMode?: string;
250
+ /** 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.child_tabs field. */
251
+ tabs?: Tab[];
236
252
  /** The title of the document. */
237
253
  title?: string;
238
254
  }
@@ -316,6 +332,32 @@ declare namespace gapi.client {
316
332
  /** Indicates if there was a suggested change to use_first_page_header_footer. */
317
333
  useFirstPageHeaderFooterSuggested?: boolean;
318
334
  }
335
+ interface DocumentTab {
336
+ /** The main body of the document tab. */
337
+ body?: Body;
338
+ /** The style of the document tab. */
339
+ documentStyle?: DocumentStyle;
340
+ /** The footers in the document tab, keyed by footer ID. */
341
+ footers?: {[P in string]: Footer};
342
+ /** The footnotes in the document tab, keyed by footnote ID. */
343
+ footnotes?: {[P in string]: Footnote};
344
+ /** The headers in the document tab, keyed by header ID. */
345
+ headers?: {[P in string]: Header};
346
+ /** The inline objects in the document tab, keyed by object ID. */
347
+ inlineObjects?: {[P in string]: InlineObject};
348
+ /** The lists in the document tab, keyed by list ID. */
349
+ lists?: {[P in string]: List};
350
+ /** The named ranges in the document tab, keyed by name. */
351
+ namedRanges?: {[P in string]: NamedRanges};
352
+ /** The named styles of the document tab. */
353
+ namedStyles?: NamedStyles;
354
+ /** The positioned objects in the document tab, keyed by object ID. */
355
+ positionedObjects?: {[P in string]: PositionedObject};
356
+ /** The suggested changes to the style of the document tab, keyed by suggestion ID. */
357
+ suggestedDocumentStyleChanges?: {[P in string]: SuggestedDocumentStyle};
358
+ /** The suggested changes to the named styles of the document tab, keyed by suggestion ID. */
359
+ suggestedNamedStylesChanges?: {[P in string]: SuggestedNamedStyles};
360
+ }
319
361
  interface EmbeddedDrawingProperties {}
320
362
  interface EmbeddedDrawingPropertiesSuggestionState {}
321
363
  interface EmbeddedObject {
@@ -389,6 +431,8 @@ declare namespace gapi.client {
389
431
  interface EndOfSegmentLocation {
390
432
  /** The ID of the header, footer or footnote the location is in. An empty segment ID signifies the document's body. */
391
433
  segmentId?: string;
434
+ /** The tab that the location 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. */
435
+ tabId?: string;
392
436
  }
393
437
  interface Equation {
394
438
  /** The suggested deletion IDs. If empty, then there are no suggested deletions of this content. */
@@ -428,6 +472,12 @@ declare namespace gapi.client {
428
472
  /** The ID of the header. */
429
473
  headerId?: string;
430
474
  }
475
+ interface HeadingLink {
476
+ /** The ID of a heading in this document. */
477
+ id?: string;
478
+ /** The ID of the tab containing this heading. */
479
+ tabId?: string;
480
+ }
431
481
  interface HorizontalRule {
432
482
  /** The suggested deletion IDs. If empty, then there are no suggested deletions of this content. */
433
483
  suggestedDeletionIds?: string[];
@@ -567,10 +617,16 @@ declare namespace gapi.client {
567
617
  text?: string;
568
618
  }
569
619
  interface Link {
620
+ /** A bookmark in this document. In documents containing a single tab, links to bookmarks within the singular tab continue to return Link.bookmark_id when the includeTabsContent parameter is set to `false` or unset. Otherwise, this field is returned. */
621
+ bookmark?: BookmarkLink;
570
622
  /** The ID of a bookmark in this document. */
571
623
  bookmarkId?: string;
624
+ /** A heading in this document. In documents containing a single tab, links to headings within the singular tab continue to return Link.heading_id when the includeTabsContent parameter is set to `false` or unset. Otherwise, this field is returned. */
625
+ heading?: HeadingLink;
572
626
  /** The ID of a heading in this document. */
573
627
  headingId?: string;
628
+ /** The ID of a tab in this document. */
629
+ tabId?: string;
574
630
  /** An external URL. */
575
631
  url?: string;
576
632
  }
@@ -605,6 +661,8 @@ declare namespace gapi.client {
605
661
  index?: number;
606
662
  /** The ID of the header, footer or footnote the location is in. An empty segment ID signifies the document's body. */
607
663
  segmentId?: string;
664
+ /** The tab that the location 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. */
665
+ tabId?: string;
608
666
  }
609
667
  interface MergeTableCellsRequest {
610
668
  /** The table range specifying which cells of the table to merge. Any text in the cells being merged will be concatenated and stored in the "head" cell of the range. This is the upper-left cell of the range when the content direction is left to right, and the upper-right cell of the range otherwise. If the range is non-rectangular (which can occur in some cases where the range covers cells that are already merged or where the table is non-rectangular), a 400 bad request error is returned. */
@@ -919,12 +977,16 @@ declare namespace gapi.client {
919
977
  segmentId?: string;
920
978
  /** The zero-based start index of this range, in UTF-16 code units. In all current uses, a start index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. */
921
979
  startIndex?: number;
980
+ /** The tab that contains this range. 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 omitted, the request applies to the first tab in the document. */
981
+ tabId?: string;
922
982
  }
923
983
  interface ReplaceAllTextRequest {
924
984
  /** Finds text in the document matching this substring. */
925
985
  containsText?: SubstringMatchCriteria;
926
986
  /** The text that will replace the matched text. */
927
987
  replaceText?: string;
988
+ /** Optional. The criteria used to specify in which tabs the replacement occurs. When omitted, the replacement applies to all tabs. In a document containing a single tab: - If provided, must match the singular tab's ID. - If omitted, the replacement applies to the singular tab. In a document containing multiple tabs: - If provided, the replacement applies to the specified tabs. - If omitted, the replacement applies to all tabs. */
989
+ tabsCriteria?: TabsCriteria;
928
990
  }
929
991
  interface ReplaceAllTextResponse {
930
992
  /** The number of occurrences changed by replacing all text. */
@@ -935,6 +997,8 @@ declare namespace gapi.client {
935
997
  imageObjectId?: string;
936
998
  /** The replacement method. */
937
999
  imageReplaceMethod?: string;
1000
+ /** 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. */
1001
+ tabId?: string;
938
1002
  /** 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. */
939
1003
  uri?: string;
940
1004
  }
@@ -943,6 +1007,8 @@ declare namespace gapi.client {
943
1007
  namedRangeId?: string;
944
1008
  /** The name of the NamedRanges whose content will be replaced. If there are multiple named ranges with the given name, then the content of each one will be replaced. If there are no named ranges with the given name, then the request will be a no-op. */
945
1009
  namedRangeName?: string;
1010
+ /** Optional. The criteria used to specify in which tabs the replacement occurs. When omitted, the replacement applies to all tabs. In a document containing a single tab: - If provided, must match the singular tab's ID. - If omitted, the replacement applies to the singular tab. In a document containing multiple tabs: - If provided, the replacement applies to the specified tabs. - If omitted, the replacement applies to all tabs. */
1011
+ tabsCriteria?: TabsCriteria;
946
1012
  /** Replaces the content of the specified named range(s) with the given text. */
947
1013
  text?: string;
948
1014
  }
@@ -1226,6 +1292,14 @@ declare namespace gapi.client {
1226
1292
  /** A mask that indicates which of the fields on the base TextStyle have been changed in this suggestion. */
1227
1293
  textStyleSuggestionState?: TextStyleSuggestionState;
1228
1294
  }
1295
+ interface Tab {
1296
+ /** The child tabs nested within this tab. */
1297
+ childTabs?: Tab[];
1298
+ /** A tab with document contents, like text and images. */
1299
+ documentTab?: DocumentTab;
1300
+ /** The properties of the tab, like ID and title. */
1301
+ tabProperties?: TabProperties;
1302
+ }
1229
1303
  interface Table {
1230
1304
  /** Number of columns in the table. It's possible for a table to be non-rectangular, so some rows may have a different number of cells. */
1231
1305
  columns?: number;
@@ -1378,6 +1452,22 @@ declare namespace gapi.client {
1378
1452
  /** The properties of each column. Note that in Docs, tables contain rows and rows contain cells, similar to HTML. So the properties for a row can be found on the row's table_row_style. */
1379
1453
  tableColumnProperties?: TableColumnProperties[];
1380
1454
  }
1455
+ interface TabProperties {
1456
+ /** The index of the tab within the parent. */
1457
+ index?: number;
1458
+ /** Output only. The depth of the tab within the document. Root-level tabs start at 0. */
1459
+ nestingLevel?: number;
1460
+ /** 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. */
1461
+ parentTabId?: string;
1462
+ /** Output only. The ID of the tab. This field can't be changed. */
1463
+ tabId?: string;
1464
+ /** The user-visible name of the tab. */
1465
+ title?: string;
1466
+ }
1467
+ interface TabsCriteria {
1468
+ /** The list of tab IDs in which the request executes. */
1469
+ tabIds?: string[];
1470
+ }
1381
1471
  interface TabStop {
1382
1472
  /** The alignment of this tab stop. If unset, the value defaults to START. */
1383
1473
  alignment?: string;
@@ -1453,6 +1543,8 @@ declare namespace gapi.client {
1453
1543
  documentStyle?: DocumentStyle;
1454
1544
  /** The fields that should be updated. At least one field must be specified. The root `document_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 background, set `fields` to `"background"`. */
1455
1545
  fields?: string;
1546
+ /** 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. */
1547
+ tabId?: string;
1456
1548
  }
1457
1549
  interface UpdateParagraphStyleRequest {
1458
1550
  /** 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. */
@@ -1647,6 +1739,8 @@ declare namespace gapi.client {
1647
1739
  documentId: string;
1648
1740
  /** Selector specifying which fields to include in a partial response. */
1649
1741
  fields?: string;
1742
+ /** Whether to populate the Document.tabs field instead of the text content fields like body and documentStyle on Document. - When `True`: Document content populates in the Document.tabs field instead of the text content fields in Document. - When `False`: The content of the document's first tab populates the content fields in Document excluding Document.tabs. If a document has only one tab, then that tab is used to populate the document content. Document.tabs will be empty. */
1743
+ includeTabsContent?: boolean;
1650
1744
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1651
1745
  key?: string;
1652
1746
  /** OAuth 2.0 token for the current user. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.docs-v1",
3
- "version": "0.0.20240711",
3
+ "version": "0.0.20240722",
4
4
  "description": "TypeScript typings for Google Docs API v1",
5
5
  "repository": {
6
6
  "type": "git",