@maxim_mazurok/gapi.client.sheets-v4 0.3.20260915 → 0.3.20260923

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 +147 -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://sheets.googleapis.com/$discovery/rest?version=v4
12
- // Revision: 20260915
12
+ // Revision: 20260923
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -40,6 +40,16 @@ declare namespace gapi.client {
40
40
  /** The newly added chart. */
41
41
  chart?: EmbeddedChart;
42
42
  }
43
+ interface AddCommentReplyRequest {
44
+ /** The ID of the CommentThread to add the reply to. */
45
+ commentId?: string;
46
+ /** The Post representing the reply. */
47
+ post?: Post;
48
+ }
49
+ interface AddCommentReplyResponse {
50
+ /** The newly-inserted reply Post. */
51
+ post?: Post;
52
+ }
43
53
  interface AddConditionalFormatRuleRequest {
44
54
  /** The zero-based index where the rule should be inserted. */
45
55
  index?: number;
@@ -367,6 +377,12 @@ declare namespace gapi.client {
367
377
  valueRanges?: ValueRange[];
368
378
  }
369
379
  interface BatchUpdateSpreadsheetRequest {
380
+ /** The comments view mode to apply to the spreadsheet. This allows viewing the spreadsheet with comments omitted or included. If one is not specified, COMMENTS_VIEW_MODE_OMITTED is used. Meaningful only if include_spreadsheet_in_response is 'true'. [Developer Preview](https://developers.google.com/workspace/preview). */
381
+ commentsViewMode?:
382
+ | 'COMMENTS_VIEW_MODE_UNSPECIFIED'
383
+ | 'COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS'
384
+ | 'COMMENTS_VIEW_MODE_OMITTED'
385
+ | 'COMMENTS_VIEW_MODE_INCLUDED';
370
386
  /** Determines if the update response should include the spreadsheet resource. */
371
387
  includeSpreadsheetInResponse?: boolean;
372
388
  /** A list of updates to apply to the spreadsheet. Requests will be applied in the order they are specified. If any request is not valid, no requests will be applied. */
@@ -377,6 +393,12 @@ declare namespace gapi.client {
377
393
  responseRanges?: string[];
378
394
  }
379
395
  interface BatchUpdateSpreadsheetResponse {
396
+ /** Whether comment updates were applied in the batch request. [Developer Preview](https://developers.google.com/workspace/preview). */
397
+ commentUpdateState?:
398
+ | 'COMMENT_UPDATE_STATE_UNSPECIFIED'
399
+ | 'NO_UPDATES_REQUESTED'
400
+ | 'ALL_SAVED'
401
+ | 'ALL_FAILED_UNKNOWN_REASON';
380
402
  /** The reply of the updates. This maps 1:1 with the updates, although replies to some requests may be empty. */
381
403
  replies?: Response[];
382
404
  /** The spreadsheet the updates were applied to. */
@@ -850,6 +872,26 @@ declare namespace gapi.client {
850
872
  | 'ACCENT6'
851
873
  | 'LINK';
852
874
  }
875
+ interface CommentAnchor {
876
+ /** The unique ID of the comment anchor. Output only. */
877
+ anchorId?: string;
878
+ /** The coordinate range inside the sheet where this comment is anchored. */
879
+ range?: GridRange;
880
+ }
881
+ interface CommentThread {
882
+ /** The ID of the CommentAnchor in the sheet that this thread is tied to. */
883
+ anchorId?: string;
884
+ /** The unique ID of the comment thread. */
885
+ commentId?: string;
886
+ /** The first post in the thread. */
887
+ headPost?: Post;
888
+ /** The quoted text from the spreadsheet when the comment was created, formatted as plain-text. */
889
+ plainTextQuote?: string;
890
+ /** Replies to the head post. */
891
+ replies?: Post[];
892
+ /** Whether the thread is open or resolved. */
893
+ status?: 'STATUS_UNSPECIFIED' | 'OPEN' | 'RESOLVED';
894
+ }
853
895
  interface ConditionalFormatRule {
854
896
  /** The formatting is either "on" or "off" according to the rule. */
855
897
  booleanRule?: BooleanRule;
@@ -1156,6 +1198,16 @@ declare namespace gapi.client {
1156
1198
  /** The ID of the banded range to delete. */
1157
1199
  bandedRangeId?: number;
1158
1200
  }
1201
+ interface DeleteCommentReplyRequest {
1202
+ /** The ID of the CommentThread which the post belongs to. */
1203
+ commentId?: string;
1204
+ /** The ID of the reply Post being deleted. */
1205
+ postId?: string;
1206
+ }
1207
+ interface DeleteCommentRequest {
1208
+ /** The ID of the CommentThread that is being deleted. */
1209
+ commentId?: string;
1210
+ }
1159
1211
  interface DeleteConditionalFormatRuleRequest {
1160
1212
  /** The zero-based index of the rule to be deleted. */
1161
1213
  index?: number;
@@ -1468,6 +1520,12 @@ declare namespace gapi.client {
1468
1520
  valuesChanged?: number;
1469
1521
  }
1470
1522
  interface GetSpreadsheetByDataFilterRequest {
1523
+ /** The comments view mode to apply to the spreadsheet. This allows viewing the spreadsheet with comments omitted or included. If one is not specified, COMMENTS_VIEW_MODE_OMITTED is used. [Developer Preview](https://developers.google.com/workspace/preview). */
1524
+ commentsViewMode?:
1525
+ | 'COMMENTS_VIEW_MODE_UNSPECIFIED'
1526
+ | 'COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS'
1527
+ | 'COMMENTS_VIEW_MODE_OMITTED'
1528
+ | 'COMMENTS_VIEW_MODE_INCLUDED';
1471
1529
  /** The DataFilters used to select which ranges to retrieve from the spreadsheet. */
1472
1530
  dataFilters?: DataFilter[];
1473
1531
  /** True if tables should be excluded in the banded ranges. False if not set. */
@@ -1566,6 +1624,18 @@ declare namespace gapi.client {
1566
1624
  /** The data for this histogram series. */
1567
1625
  data?: ChartData;
1568
1626
  }
1627
+ interface InsertCommentRequest {
1628
+ /** Optional. The email address of the assignee of the comment. Leave empty for a non-assigned comment. May not exceed 2048 UTF-8 code units. */
1629
+ assigneeEmailAddress?: string;
1630
+ /** The text of the comment, as plain text. This text content will be handled similarly to comments created in the Sheets editor. It will have similar behaviors for formatting, notifications, etc. This field cannot be empty, and must not exceed 2048 UTF-8 code units. */
1631
+ content?: string;
1632
+ /** The GridCoordinate in the sheet that is tied to this comment. */
1633
+ coordinate?: GridCoordinate;
1634
+ }
1635
+ interface InsertCommentResponse {
1636
+ /** The newly-inserted comment thread. */
1637
+ commentThread?: CommentThread;
1638
+ }
1569
1639
  interface InsertDimensionRequest {
1570
1640
  /** Whether dimension properties should be extended from the dimensions before or after the newly inserted dimensions. True to inherit from the dimensions before (in which case the start index must be greater than 0), and false to inherit from the dimensions after. For example, if row index 0 has red background and row index 1 has a green background, then inserting 2 rows at index 1 can inherit either the green or red background. If `inheritFromBefore` is true, the two new rows will be red (because the row before the insertion point was red), whereas if `inheritFromBefore` is false, the two new rows will be green (because the row after the insertion point was green). */
1571
1641
  inheritFromBefore?: boolean;
@@ -1918,6 +1988,44 @@ declare namespace gapi.client {
1918
1988
  /** The point size. If empty, a default size is used. */
1919
1989
  size?: number;
1920
1990
  }
1991
+ interface Post {
1992
+ /** Optional. The email of the user who is being newly assigned to the thread as part of this post. Returns a 400 bad request error if: - The parent thread is a CommentThread whose headPost does not have an assignee. - commentAction is specified as `RESOLVE` or `REOPEN`. - `assignee_email` exceeds 2048 UTF-8 code units. */
1993
+ assigneeEmail?: string;
1994
+ /** Output only. The user who created the post. */
1995
+ author?: PostAuthor;
1996
+ /** Action taken as part of creating the post. */
1997
+ commentAction?:
1998
+ | 'COMMENT_ACTION_TYPE_UNSPECIFIED'
1999
+ | 'NO_COMMENT_ACTION_CHANGE'
2000
+ | 'RESOLVE'
2001
+ | 'REOPEN';
2002
+ /** The content of the post. Required to be non-empty if comment_action is not `RESOLVE` or `REOPEN`. This text content will be handled similarly to comments created in the Sheets editor. It will have similar behaviors for formatting, notifications, etc. May not exceed 2048 UTF-8 code units. */
2003
+ content?: string;
2004
+ /** Output only. The content of the post as HTML. */
2005
+ contentHtml?: string;
2006
+ /** Output only. The time the post was created. */
2007
+ createTime?: string;
2008
+ /** Output only. Whether the post is deleted. If `true`, content and author fields will be empty. */
2009
+ deleted?: boolean;
2010
+ /** Output only. Whether the post is from a copied spreadsheet. This field cannot be set directly by callers. */
2011
+ fromCopiedSpreadsheet?: boolean;
2012
+ /** Output only. Whether the post is from an imported spreadsheet. This field cannot be set directly by callers. */
2013
+ fromImportedSpreadsheet?: boolean;
2014
+ /** Output only. The unique ID of the post. */
2015
+ postId?: string;
2016
+ /** Output only. The time the post was last updated. */
2017
+ updateTime?: string;
2018
+ }
2019
+ interface PostAuthor {
2020
+ /** Whether the user is anonymous. */
2021
+ anonymous?: boolean;
2022
+ /** The display name of the user. May be absent if the author is anonymous. */
2023
+ displayName?: string;
2024
+ /** Whether the user is the authenticated user making the request. */
2025
+ me?: boolean;
2026
+ /** The resource name of the post author user, which can also be used to identify the user in the [Google People API](https://developers.google.com/people/api/rest/v1/people). Format: `users/{user}`. Will not be populated if the anonymous field is `true` or if the post is from an imported spreadsheet. */
2027
+ user?: string;
2028
+ }
1921
2029
  interface ProtectedRange {
1922
2030
  /** The description of this protected range. */
1923
2031
  description?: string;
@@ -1990,6 +2098,8 @@ declare namespace gapi.client {
1990
2098
  addBanding?: AddBandingRequest;
1991
2099
  /** Adds a chart. */
1992
2100
  addChart?: AddChartRequest;
2101
+ /** Adds a reply to a CommentThread. [Developer Preview](https://developers.google.com/workspace/preview). */
2102
+ addCommentReply?: AddCommentReplyRequest;
1993
2103
  /** Adds a new conditional format rule. */
1994
2104
  addConditionalFormatRule?: AddConditionalFormatRuleRequest;
1995
2105
  /** Adds a data source. */
@@ -2028,6 +2138,10 @@ declare namespace gapi.client {
2028
2138
  cutPaste?: CutPasteRequest;
2029
2139
  /** Removes a banded range */
2030
2140
  deleteBanding?: DeleteBandingRequest;
2141
+ /** Deletes a CommentThread. [Developer Preview](https://developers.google.com/workspace/preview). */
2142
+ deleteComment?: DeleteCommentRequest;
2143
+ /** Deletes a reply Post from a CommentThread [Developer Preview](https://developers.google.com/workspace/preview). */
2144
+ deleteCommentReply?: DeleteCommentReplyRequest;
2031
2145
  /** Deletes an existing conditional format rule. */
2032
2146
  deleteConditionalFormatRule?: DeleteConditionalFormatRuleRequest;
2033
2147
  /** Deletes a data source. */
@@ -2060,6 +2174,8 @@ declare namespace gapi.client {
2060
2174
  duplicateSheet?: DuplicateSheetRequest;
2061
2175
  /** Finds and replaces occurrences of some text with other text. */
2062
2176
  findReplace?: FindReplaceRequest;
2177
+ /** Inserts a CommentThread into the spreadsheet. [Developer Preview](https://developers.google.com/workspace/preview). */
2178
+ insertComment?: InsertCommentRequest;
2063
2179
  /** Inserts new rows or columns in a sheet. */
2064
2180
  insertDimension?: InsertDimensionRequest;
2065
2181
  /** Inserts new cells in a sheet, shifting the existing cells. */
@@ -2096,6 +2212,8 @@ declare namespace gapi.client {
2096
2212
  updateCells?: UpdateCellsRequest;
2097
2213
  /** Updates a chart's specifications. */
2098
2214
  updateChartSpec?: UpdateChartSpecRequest;
2215
+ /** Updates an existing post (head post or reply) of a CommentThread. [Developer Preview](https://developers.google.com/workspace/preview). */
2216
+ updateCommentPost?: UpdateCommentPostRequest;
2099
2217
  /** Updates an existing conditional format rule. */
2100
2218
  updateConditionalFormatRule?: UpdateConditionalFormatRuleRequest;
2101
2219
  /** Updates a data source. */
@@ -2130,6 +2248,8 @@ declare namespace gapi.client {
2130
2248
  addBanding?: AddBandingResponse;
2131
2249
  /** A reply from adding a chart. */
2132
2250
  addChart?: AddChartResponse;
2251
+ /** The result of creating a reply. [Developer Preview](https://developers.google.com/workspace/preview). */
2252
+ addCommentReply?: AddCommentReplyResponse;
2133
2253
  /** A reply from adding a data source. */
2134
2254
  addDataSource?: AddDataSourceResponse;
2135
2255
  /** A reply from adding a dimension group. */
@@ -2164,6 +2284,8 @@ declare namespace gapi.client {
2164
2284
  duplicateSheet?: DuplicateSheetResponse;
2165
2285
  /** A reply from doing a find/replace. */
2166
2286
  findReplace?: FindReplaceResponse;
2287
+ /** The result of creating a comment. [Developer Preview](https://developers.google.com/workspace/preview). */
2288
+ insertComment?: InsertCommentResponse;
2167
2289
  /** A reply from refreshing data source objects. */
2168
2290
  refreshDataSource?: RefreshDataSourceResponse;
2169
2291
  /** A reply from trimming whitespace. */
@@ -2242,6 +2364,8 @@ declare namespace gapi.client {
2242
2364
  charts?: EmbeddedChart[];
2243
2365
  /** All column groups on this sheet, ordered by increasing range start index, then by group depth. */
2244
2366
  columnGroups?: DimensionGroup[];
2367
+ /** The comment anchors on this sheet. [Developer Preview](https://developers.google.com/workspace/preview). */
2368
+ commentAnchors?: CommentAnchor[];
2245
2369
  /** The conditional format rules in this sheet. */
2246
2370
  conditionalFormats?: ConditionalFormatRule[];
2247
2371
  /** Data in the grid, if this is a grid sheet. The number of GridData objects returned is dependent on the number of ranges requested on this sheet. For example, if this is representing `Sheet1`, and the spreadsheet was requested with ranges `Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a startRow/startColumn of `0`, while the second one will have `startRow 14` (zero-based row 15), and `startColumn 3` (zero-based column D). For a DATA_SOURCE sheet, you can not request a specific range, the GridData contains all the values. */
@@ -2345,6 +2469,14 @@ declare namespace gapi.client {
2345
2469
  source?: GridRange;
2346
2470
  }
2347
2471
  interface Spreadsheet {
2472
+ /** The comment threads associated with the spreadsheet. [Developer Preview](https://developers.google.com/workspace/preview). */
2473
+ comments?: CommentThread[];
2474
+ /** Output only. The comments view mode applied to the spreadsheet. [Developer Preview](https://developers.google.com/workspace/preview). */
2475
+ commentsViewMode?:
2476
+ | 'COMMENTS_VIEW_MODE_UNSPECIFIED'
2477
+ | 'COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS'
2478
+ | 'COMMENTS_VIEW_MODE_OMITTED'
2479
+ | 'COMMENTS_VIEW_MODE_INCLUDED';
2348
2480
  /** A list of external data sources connected with the spreadsheet. */
2349
2481
  dataSources?: DataSource[];
2350
2482
  /** Output only. A list of data source refresh schedules. */
@@ -2612,6 +2744,14 @@ declare namespace gapi.client {
2612
2744
  /** The specification to apply to the chart. */
2613
2745
  spec?: ChartSpec;
2614
2746
  }
2747
+ interface UpdateCommentPostRequest {
2748
+ /** The ID of the CommentThread which the post belongs to. */
2749
+ commentId?: string;
2750
+ /** The new text of the comment, as plain text. This text content will be handled similarly to comments created in the Sheets editor. It will have similar behaviors for formatting, notifications, etc. This field cannot be empty, and must not exceed 2048 UTF-8 code units. */
2751
+ content?: string;
2752
+ /** The ID of the post being updated. */
2753
+ postId?: string;
2754
+ }
2615
2755
  interface UpdateConditionalFormatRuleRequest {
2616
2756
  /** The zero-based index of the rule that should be replaced or moved. */
2617
2757
  index?: number;
@@ -3695,6 +3835,12 @@ declare namespace gapi.client {
3695
3835
  alt?: 'json' | 'media' | 'proto';
3696
3836
  /** JSONP */
3697
3837
  callback?: string;
3838
+ /** The comments view mode to apply to the spreadsheet. This allows viewing the spreadsheet with comments omitted or included. If one is not specified, COMMENTS_VIEW_MODE_OMITTED is used. [Developer Preview](https://developers.google.com/workspace/preview). */
3839
+ commentsViewMode?:
3840
+ | 'COMMENTS_VIEW_MODE_UNSPECIFIED'
3841
+ | 'COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS'
3842
+ | 'COMMENTS_VIEW_MODE_OMITTED'
3843
+ | 'COMMENTS_VIEW_MODE_INCLUDED';
3698
3844
  /** True if tables should be excluded in the banded ranges. False if not set. */
3699
3845
  excludeTablesInBandedRanges?: boolean;
3700
3846
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sheets-v4",
3
- "version": "0.3.20260915",
3
+ "version": "0.3.20260923",
4
4
  "description": "TypeScript typings for Google Sheets API v4",
5
5
  "repository": {
6
6
  "type": "git",