@maxim_mazurok/gapi.client.docs-v1 0.4.20260923 → 0.4.20260928
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 +147 -1
- 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: 20260928
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -150,6 +150,16 @@ declare namespace gapi.client {
|
|
|
150
150
|
/** Whether the thread is open or resolved. */
|
|
151
151
|
status?: 'STATUS_UNSPECIFIED' | 'OPEN' | 'RESOLVED';
|
|
152
152
|
}
|
|
153
|
+
interface CreateDropdownDefinitionRequest {
|
|
154
|
+
/** Required. The DropdownDefinition to create. */
|
|
155
|
+
dropdownDefinition?: DropdownDefinition;
|
|
156
|
+
/** The ID of the tab to create the dropdown definition 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. */
|
|
157
|
+
tabId?: string;
|
|
158
|
+
}
|
|
159
|
+
interface CreateDropdownDefinitionResponse {
|
|
160
|
+
/** The newly-created DropdownDefinition. */
|
|
161
|
+
dropdownDefinition?: DropdownDefinition;
|
|
162
|
+
}
|
|
153
163
|
interface CreateFooterRequest {
|
|
154
164
|
/** 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. */
|
|
155
165
|
sectionBreakLocation?: Location;
|
|
@@ -306,6 +316,12 @@ declare namespace gapi.client {
|
|
|
306
316
|
/** 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. */
|
|
307
317
|
range?: Range;
|
|
308
318
|
}
|
|
319
|
+
interface DeleteDropdownDefinitionRequest {
|
|
320
|
+
/** The ID of the DropdownDefinition to delete. */
|
|
321
|
+
dropdownDefinitionId?: string;
|
|
322
|
+
/** The ID of the tab that contains the dropdown definition 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. */
|
|
323
|
+
tabId?: string;
|
|
324
|
+
}
|
|
309
325
|
interface DeleteFooterRequest {
|
|
310
326
|
/** 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. */
|
|
311
327
|
footerId?: string;
|
|
@@ -501,6 +517,8 @@ declare namespace gapi.client {
|
|
|
501
517
|
commentAnchors?: {[P in string]: CommentAnchor};
|
|
502
518
|
/** The style of the document tab. */
|
|
503
519
|
documentStyle?: DocumentStyle;
|
|
520
|
+
/** The dropdown definitions in a document tab, keyed by dropdown definition ID. */
|
|
521
|
+
dropdownDefinitions?: {[P in string]: DropdownDefinition};
|
|
504
522
|
/** The footers in the document tab, keyed by footer ID. */
|
|
505
523
|
footers?: {[P in string]: Footer};
|
|
506
524
|
/** The footnotes in the document tab, keyed by footnote ID. */
|
|
@@ -522,6 +540,70 @@ declare namespace gapi.client {
|
|
|
522
540
|
/** The suggested changes to the named styles of the document tab, keyed by suggestion ID. */
|
|
523
541
|
suggestedNamedStylesChanges?: {[P in string]: SuggestedNamedStyles};
|
|
524
542
|
}
|
|
543
|
+
interface Dropdown {
|
|
544
|
+
/** The ID of this dropdown. */
|
|
545
|
+
dropdownId?: string;
|
|
546
|
+
/** The properties of this dropdown. */
|
|
547
|
+
dropdownProperties?: DropdownProperties;
|
|
548
|
+
/** IDs for suggestions that remove this dropdown from the document. If empty, then this dropdown isn't suggested for deletion. */
|
|
549
|
+
suggestedDeletionIds?: string[];
|
|
550
|
+
/** The suggested properties changes to this dropdown, keyed by suggestion ID. */
|
|
551
|
+
suggestedDropdownPropertiesChanges?: {
|
|
552
|
+
[P in string]: SuggestedDropdownProperties;
|
|
553
|
+
};
|
|
554
|
+
/** IDs for suggestions that insert this dropdown into the document. If empty, then this dropdown isn't a suggested insertion. */
|
|
555
|
+
suggestedInsertionIds?: string[];
|
|
556
|
+
/** The suggested text style changes to this dropdown, keyed by suggestion ID. */
|
|
557
|
+
suggestedTextStyleChanges?: {[P in string]: SuggestedTextStyle};
|
|
558
|
+
/** The text style of this dropdown. */
|
|
559
|
+
textStyle?: TextStyle;
|
|
560
|
+
}
|
|
561
|
+
interface DropdownDefinition {
|
|
562
|
+
/** The ID of this dropdown definition. If you specify an ID, it must be unique among all IDs in the tab. The ID must start with `kix.` and match regex `^kix\.[a-zA-Z0-9_-]{2,14}$` (length 6-18 chars). If you don't specify an ID, a unique one is generated. */
|
|
563
|
+
dropdownDefinitionId?: string;
|
|
564
|
+
/** The properties of this dropdown definition. */
|
|
565
|
+
dropdownDefinitionProperties?: DropdownDefinitionProperties;
|
|
566
|
+
/** ID for suggestion that deletes this dropdown definition. */
|
|
567
|
+
suggestedDeletionId?: string;
|
|
568
|
+
/** Suggested property changes to this definition, keyed by suggestion ID. */
|
|
569
|
+
suggestedDropdownDefinitionPropertiesChanges?: {
|
|
570
|
+
[P in string]: SuggestedDropdownDefinitionProperties;
|
|
571
|
+
};
|
|
572
|
+
/** ID for suggestion that inserts this dropdown definition. */
|
|
573
|
+
suggestedInsertionId?: string;
|
|
574
|
+
}
|
|
575
|
+
interface DropdownDefinitionProperties {
|
|
576
|
+
/** The list of options defined by this dropdown definition. A dropdown definition must have at least 2 options and at most 50 options. */
|
|
577
|
+
options?: DropdownOption[];
|
|
578
|
+
/** The title of the dropdown definition. */
|
|
579
|
+
title?: string;
|
|
580
|
+
}
|
|
581
|
+
interface DropdownDefinitionPropertiesSuggestionState {
|
|
582
|
+
/** Indicates if there was a suggested change to options. */
|
|
583
|
+
optionsSuggested?: boolean;
|
|
584
|
+
/** Indicates if there was a suggested change to title. */
|
|
585
|
+
titleSuggested?: boolean;
|
|
586
|
+
}
|
|
587
|
+
interface DropdownOption {
|
|
588
|
+
/** The display value of this dropdown option. */
|
|
589
|
+
displayValue?: string;
|
|
590
|
+
/** The ID of this dropdown option. If you specify an ID, it must be unique among all options in this dropdown definition. The ID must start with `dropdownItem.` and match regex `^dropdownItem\.[a-zA-Z0-9_-]{2,14}$` (length 15-27 chars). If you don't specify an ID, a unique one is generated. */
|
|
591
|
+
optionId?: string;
|
|
592
|
+
/** The text style of this dropdown option. Currently, only the `foreground_color` and `background_color` properties are supported. If other properties are set, a 400 bad request error is returned. */
|
|
593
|
+
textStyle?: TextStyle;
|
|
594
|
+
}
|
|
595
|
+
interface DropdownProperties {
|
|
596
|
+
/** The human-readable display text of the currently selected item. This field is populated by the server based on the dropdown definition and the selected option ID. It may differ from `DropdownOption.display_value` if the underlying option definition was modified or deleted, or during pending suggested changes. */
|
|
597
|
+
displayValue?: string;
|
|
598
|
+
/** The ID of the DropdownDefinition that defines the options for this dropdown. */
|
|
599
|
+
dropdownDefinitionId?: string;
|
|
600
|
+
/** The ID of the selected option in this dropdown. */
|
|
601
|
+
selectedOptionId?: string;
|
|
602
|
+
}
|
|
603
|
+
interface DropdownPropertiesSuggestionState {
|
|
604
|
+
/** Indicates if there was a suggested change to selected_option_id. */
|
|
605
|
+
selectedOptionIdSuggested?: boolean;
|
|
606
|
+
}
|
|
525
607
|
interface EmbeddedDrawingProperties {}
|
|
526
608
|
interface EmbeddedDrawingPropertiesSuggestionState {}
|
|
527
609
|
interface EmbeddedObject {
|
|
@@ -738,6 +820,20 @@ declare namespace gapi.client {
|
|
|
738
820
|
/** Inserts the date at a specific index in the document. The date 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 an existing table and its preceding paragraph). */
|
|
739
821
|
location?: Location;
|
|
740
822
|
}
|
|
823
|
+
interface InsertDropdownRequest {
|
|
824
|
+
/** Required. The DropdownDefinition ID. */
|
|
825
|
+
dropdownDefinitionId?: string;
|
|
826
|
+
/** The EndOfSegmentLocation in the document to insert the dropdown at. */
|
|
827
|
+
endOfSegmentLocation?: EndOfSegmentLocation;
|
|
828
|
+
/** The Location in the document to insert the dropdown at. */
|
|
829
|
+
location?: Location;
|
|
830
|
+
/** Optional initial value for the dropdown. If this field is not specified, the new dropdown will default to selecting the first option defined in the dropdown definition. If this field is specified but does not reference a valid option in the dropdown definition, a 400 bad request error is returned. */
|
|
831
|
+
selectedOptionId?: string;
|
|
832
|
+
}
|
|
833
|
+
interface InsertDropdownResponse {
|
|
834
|
+
/** The newly-inserted Dropdown. */
|
|
835
|
+
dropdown?: Dropdown;
|
|
836
|
+
}
|
|
741
837
|
interface InsertInlineImageRequest {
|
|
742
838
|
/** Inserts the text at the end of a header, footer or the document body. Inline images cannot be inserted inside a footnote. */
|
|
743
839
|
endOfSegmentLocation?: EndOfSegmentLocation;
|
|
@@ -1022,6 +1118,8 @@ declare namespace gapi.client {
|
|
|
1022
1118
|
columnBreak?: ColumnBreak;
|
|
1023
1119
|
/** A paragraph element that represents a date. */
|
|
1024
1120
|
dateElement?: DateElement;
|
|
1121
|
+
/** A paragraph element that represents a dropdown menu. */
|
|
1122
|
+
dropdown?: Dropdown;
|
|
1025
1123
|
/** The zero-base end index of this paragraph element, exclusive, in UTF-16 code units. */
|
|
1026
1124
|
endIndex?: number;
|
|
1027
1125
|
/** An equation paragraph element. */
|
|
@@ -1320,6 +1418,8 @@ declare namespace gapi.client {
|
|
|
1320
1418
|
addCommentReply?: AddCommentReplyRequest;
|
|
1321
1419
|
/** Adds a document tab. */
|
|
1322
1420
|
addDocumentTab?: AddDocumentTabRequest;
|
|
1421
|
+
/** Creates a DropdownDefinition. */
|
|
1422
|
+
createDropdownDefinition?: CreateDropdownDefinitionRequest;
|
|
1323
1423
|
/** Creates a footer. */
|
|
1324
1424
|
createFooter?: CreateFooterRequest;
|
|
1325
1425
|
/** Creates a footnote. */
|
|
@@ -1336,6 +1436,8 @@ declare namespace gapi.client {
|
|
|
1336
1436
|
deleteCommentReply?: DeleteCommentReplyRequest;
|
|
1337
1437
|
/** Deletes content from the document. */
|
|
1338
1438
|
deleteContentRange?: DeleteContentRangeRequest;
|
|
1439
|
+
/** Deletes a DropdownDefinition. */
|
|
1440
|
+
deleteDropdownDefinition?: DeleteDropdownDefinitionRequest;
|
|
1339
1441
|
/** Deletes a footer from the document. */
|
|
1340
1442
|
deleteFooter?: DeleteFooterRequest;
|
|
1341
1443
|
/** Deletes a header from the document. */
|
|
@@ -1358,6 +1460,8 @@ declare namespace gapi.client {
|
|
|
1358
1460
|
insertComment?: InsertCommentRequest;
|
|
1359
1461
|
/** Inserts a date. */
|
|
1360
1462
|
insertDate?: InsertDateRequest;
|
|
1463
|
+
/** Inserts a Dropdown at the specified location. */
|
|
1464
|
+
insertDropdown?: InsertDropdownRequest;
|
|
1361
1465
|
/** Inserts an inline image at the specified location. */
|
|
1362
1466
|
insertInlineImage?: InsertInlineImageRequest;
|
|
1363
1467
|
/** Inserts a page break at the specified location. */
|
|
@@ -1396,6 +1500,10 @@ declare namespace gapi.client {
|
|
|
1396
1500
|
updateDocumentStyle?: UpdateDocumentStyleRequest;
|
|
1397
1501
|
/** Updates the properties of a document tab. */
|
|
1398
1502
|
updateDocumentTabProperties?: UpdateDocumentTabPropertiesRequest;
|
|
1503
|
+
/** Updates the properties of a DropdownDefinition. */
|
|
1504
|
+
updateDropdownDefinitionProperties?: UpdateDropdownDefinitionPropertiesRequest;
|
|
1505
|
+
/** Updates the properties of a Dropdown. */
|
|
1506
|
+
updateDropdownProperties?: UpdateDropdownPropertiesRequest;
|
|
1399
1507
|
/** Updates a named style. */
|
|
1400
1508
|
updateNamedStyle?: UpdateNamedStyleRequest;
|
|
1401
1509
|
/** Updates the paragraph style at the specified range. */
|
|
@@ -1416,6 +1524,8 @@ declare namespace gapi.client {
|
|
|
1416
1524
|
addCommentReply?: AddCommentReplyResponse;
|
|
1417
1525
|
/** The result of adding a document tab. */
|
|
1418
1526
|
addDocumentTab?: AddDocumentTabResponse;
|
|
1527
|
+
/** The result of creating a dropdown definition. */
|
|
1528
|
+
createDropdownDefinition?: CreateDropdownDefinitionResponse;
|
|
1419
1529
|
/** The result of creating a footer. */
|
|
1420
1530
|
createFooter?: CreateFooterResponse;
|
|
1421
1531
|
/** The result of creating a footnote. */
|
|
@@ -1426,6 +1536,8 @@ declare namespace gapi.client {
|
|
|
1426
1536
|
createNamedRange?: CreateNamedRangeResponse;
|
|
1427
1537
|
/** The result of inserting a comment. [Developer Preview](https://developers.google.com/workspace/preview). */
|
|
1428
1538
|
insertComment?: InsertCommentResponse;
|
|
1539
|
+
/** The result of inserting a dropdown. */
|
|
1540
|
+
insertDropdown?: InsertDropdownResponse;
|
|
1429
1541
|
/** The result of inserting an inline image. */
|
|
1430
1542
|
insertInlineImage?: InsertInlineImageResponse;
|
|
1431
1543
|
/** The result of inserting an inline Google Sheets chart. */
|
|
@@ -1591,6 +1703,18 @@ declare namespace gapi.client {
|
|
|
1591
1703
|
/** A mask that indicates which of the fields on the base DocumentStyle have been changed in this suggestion. */
|
|
1592
1704
|
documentStyleSuggestionState?: DocumentStyleSuggestionState;
|
|
1593
1705
|
}
|
|
1706
|
+
interface SuggestedDropdownDefinitionProperties {
|
|
1707
|
+
/** A DropdownDefinitionProperties that only includes the changes made in this suggestion. This can be used along with the dropdown_definition_properties_suggestion_state to see which fields have changed and their new values. */
|
|
1708
|
+
dropdownDefinitionProperties?: DropdownDefinitionProperties;
|
|
1709
|
+
/** A mask that indicates which of the fields on the base DropdownDefinitionProperties have been changed in this suggestion. */
|
|
1710
|
+
dropdownDefinitionPropertiesSuggestionState?: DropdownDefinitionPropertiesSuggestionState;
|
|
1711
|
+
}
|
|
1712
|
+
interface SuggestedDropdownProperties {
|
|
1713
|
+
/** A DropdownProperties that only includes the changes made in this suggestion. This can be used along with the dropdown_properties_suggestion_state to see which fields have changed and their new values. */
|
|
1714
|
+
dropdownProperties?: DropdownProperties;
|
|
1715
|
+
/** A mask that indicates which of the fields on the base DropdownProperties have been changed in this suggestion. */
|
|
1716
|
+
dropdownPropertiesSuggestionState?: DropdownPropertiesSuggestionState;
|
|
1717
|
+
}
|
|
1594
1718
|
interface SuggestedInlineObjectProperties {
|
|
1595
1719
|
/** An InlineObjectProperties that only includes the changes made in this suggestion. This can be used along with the inline_object_properties_suggestion_state to see which fields have changed and their new values. */
|
|
1596
1720
|
inlineObjectProperties?: InlineObjectProperties;
|
|
@@ -1944,6 +2068,28 @@ declare namespace gapi.client {
|
|
|
1944
2068
|
/** The tab properties to update. */
|
|
1945
2069
|
tabProperties?: TabProperties;
|
|
1946
2070
|
}
|
|
2071
|
+
interface UpdateDropdownDefinitionPropertiesRequest {
|
|
2072
|
+
/** The ID of the DropdownDefinition to update. */
|
|
2073
|
+
dropdownDefinitionId?: string;
|
|
2074
|
+
/** The properties to update. */
|
|
2075
|
+
dropdownDefinitionProperties?: DropdownDefinitionProperties;
|
|
2076
|
+
/** The fields that should be updated. At least one field must be specified. The root `dropdown_definition_properties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. When `dropdown_definition_properties.options` is included in the field mask, the full, complete list of desired options must be provided in `dropdown_definition_properties.options`. */
|
|
2077
|
+
fields?: string;
|
|
2078
|
+
/** A map of option IDs to their replacements, used to automatically reassign orphaned Dropdown chips when an option is deleted. The keys are the IDs of the options being deleted, and the values are the IDs of their replacement options. If an option being deleted is selected in one or more Dropdown chips in the document, a replacement entry for that option must be provided in this map, and the replacement option ID must exist in the updated DropdownDefinition. If a replacement is required but not provided, a 400 bad request error is returned. Options being deleted that are not selected in any Dropdown chips do not require a replacement. For example, if option A is being replaced by option B, the map should be `{"A": "B"}`. */
|
|
2079
|
+
selectedOptionIdReplacements?: {[P in string]: string};
|
|
2080
|
+
/** The ID of the tab that contains the dropdown definition to update. 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. */
|
|
2081
|
+
tabId?: string;
|
|
2082
|
+
}
|
|
2083
|
+
interface UpdateDropdownPropertiesRequest {
|
|
2084
|
+
/** Required. The Dropdown ID. */
|
|
2085
|
+
dropdownId?: string;
|
|
2086
|
+
/** The properties to update. */
|
|
2087
|
+
dropdownProperties?: DropdownProperties;
|
|
2088
|
+
/** The fields that should be updated. At least one field must be specified. The root `dropdown_properties` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. */
|
|
2089
|
+
fields?: string;
|
|
2090
|
+
/** The ID of the tab that contains the dropdown to update. 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. */
|
|
2091
|
+
tabId?: string;
|
|
2092
|
+
}
|
|
1947
2093
|
interface UpdateNamedStyleRequest {
|
|
1948
2094
|
/** The NamedStyle fields that should be updated. At least `named_style_type` must be specified. The root `named_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 text style to bold, set `fields` to include `"text_style"` and `"text_style.bold"`. To update the paragraph style's alignment property, set `fields` to include `"paragraph_style"` and `"paragraph_style.alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. Specifying `"text_style"` or `"paragraph_style"` with an empty TextStyle or ParagraphStyle will reset all of its nested fields. */
|
|
1949
2095
|
fields?: string;
|