@maxim_mazurok/gapi.client.sheets-v4 0.1.20260217 → 0.2.20260217

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 (3) hide show
  1. package/index.d.ts +18 -18
  2. package/package.json +1 -1
  3. package/readme.md +1 -1
package/index.d.ts CHANGED
@@ -65,7 +65,7 @@ declare namespace gapi.client {
65
65
  dimensionGroups?: DimensionGroup[];
66
66
  }
67
67
  interface AddFilterViewRequest {
68
- /** The filter to add. The filterViewId field is optional; if one is not set, an id will be randomly generated. (It is an error to specify the ID of a filter that already exists.) */
68
+ /** The filter to add. The filterViewId field is optional. If one is not set, an ID will be randomly generated. (It is an error to specify the ID of a filter that already exists.) */
69
69
  filter?: FilterView;
70
70
  }
71
71
  interface AddFilterViewResponse {
@@ -291,7 +291,7 @@ declare namespace gapi.client {
291
291
  dataFilters?: DataFilter[];
292
292
  }
293
293
  interface BatchClearValuesByDataFilterResponse {
294
- /** The ranges that were cleared, in [A1 notation](https://developers.google.com/workspace/sheets/api/guides/concepts#cell). If the requests are for an unbounded range or a ranger larger than the bounds of the sheet, this is the actual ranges that were cleared, bounded to the sheet's limits. */
294
+ /** The ranges that were cleared, in [A1 notation](https://developers.google.com/workspace/sheets/api/guides/concepts#cell). If the requests are for an unbounded range or a range larger than the bounds of the sheet, this is the actual ranges that were cleared, bounded to the sheet's limits. */
295
295
  clearedRanges?: string[];
296
296
  /** The spreadsheet the updates were applied to. */
297
297
  spreadsheetId?: string;
@@ -301,7 +301,7 @@ declare namespace gapi.client {
301
301
  ranges?: string[];
302
302
  }
303
303
  interface BatchClearValuesResponse {
304
- /** The ranges that were cleared, in A1 notation. If the requests are for an unbounded range or a ranger larger than the bounds of the sheet, this is the actual ranges that were cleared, bounded to the sheet's limits. */
304
+ /** The ranges that were cleared, in A1 notation. If the requests are for an unbounded range or a range larger than the bounds of the sheet, this is the actual ranges that were cleared, bounded to the sheet's limits. */
305
305
  clearedRanges?: string[];
306
306
  /** The spreadsheet the updates were applied to. */
307
307
  spreadsheetId?: string;
@@ -688,7 +688,7 @@ declare namespace gapi.client {
688
688
  }
689
689
  interface ClearValuesRequest {}
690
690
  interface ClearValuesResponse {
691
- /** The range (in A1 notation) that was cleared. (If the request was for an unbounded range or a ranger larger than the bounds of the sheet, this will be the actual range that was cleared, bounded to the sheet's limits.) */
691
+ /** The range (in A1 notation) that was cleared. (If the request was for an unbounded range or a range larger than the bounds of the sheet, this will be the actual range that was cleared, bounded to the sheet's limits.) */
692
692
  clearedRange?: string;
693
693
  /** The spreadsheet the updates were applied to. */
694
694
  spreadsheetId?: string;
@@ -1014,11 +1014,11 @@ declare namespace gapi.client {
1014
1014
  metadataKey?: string;
1015
1015
  /** Data associated with the metadata's key. */
1016
1016
  metadataValue?: string;
1017
- /** The metadata visibility. Developer metadata must always have a visibility specified. */
1017
+ /** The metadata visibility. Developer metadata must always have visibility specified. */
1018
1018
  visibility?: string;
1019
1019
  }
1020
1020
  interface DeveloperMetadataLocation {
1021
- /** Represents the row or column when metadata is associated with a dimension. The specified DimensionRange must represent a single row or column; it cannot be unbounded or span multiple rows or columns. */
1021
+ /** Represents the row or column when metadata is associated with a dimension. The specified DimensionRange must represent a single row or column. It cannot be unbounded or span multiple rows or columns. */
1022
1022
  dimensionRange?: DimensionRange;
1023
1023
  /** The type of location this object represents. This field is read-only. */
1024
1024
  locationType?: string;
@@ -1030,7 +1030,7 @@ declare namespace gapi.client {
1030
1030
  interface DeveloperMetadataLookup {
1031
1031
  /** Determines how this lookup matches the location. If this field is specified as EXACT, only developer metadata associated on the exact location specified is matched. If this field is specified to INTERSECTING, developer metadata associated on intersecting locations is also matched. If left unspecified, this field assumes a default value of INTERSECTING. If this field is specified, a metadataLocation must also be specified. */
1032
1032
  locationMatchingStrategy?: string;
1033
- /** Limits the selected developer metadata to those entries which are associated with locations of the specified type. For example, when this field is specified as ROW this lookup only considers developer metadata associated on rows. If the field is left unspecified, all location types are considered. This field cannot be specified as SPREADSHEET when the locationMatchingStrategy is specified as INTERSECTING or when the metadataLocation is specified as a non-spreadsheet location: spreadsheet metadata cannot intersect any other developer metadata location. This field also must be left unspecified when the locationMatchingStrategy is specified as EXACT. */
1033
+ /** Limits the selected developer metadata to those entries which are associated with locations of the specified type. For example, when this field is specified as ROW this lookup only considers developer metadata associated on rows. If the field is left unspecified, all location types are considered. This field cannot be specified as SPREADSHEET when the locationMatchingStrategy is specified as INTERSECTING or when the metadataLocation is specified as a non-spreadsheet location. Spreadsheet metadata cannot intersect any other developer metadata location. This field also must be left unspecified when the locationMatchingStrategy is specified as EXACT. */
1034
1034
  locationType?: string;
1035
1035
  /** Limits the selected developer metadata to that which has a matching DeveloperMetadata.metadata_id. */
1036
1036
  metadataId?: number;
@@ -1146,7 +1146,7 @@ declare namespace gapi.client {
1146
1146
  stringValue?: string;
1147
1147
  }
1148
1148
  interface FilterCriteria {
1149
- /** A condition that must be true for values to be shown. (This does not override hidden_values -- if a value is listed there, it will still be hidden.) */
1149
+ /** A condition that must be `true` for values to be shown. (This does not override hidden_values -- if a value is listed there, it will still be hidden.) */
1150
1150
  condition?: BooleanCondition;
1151
1151
  /** Values that should be hidden. */
1152
1152
  hiddenValues?: string[];
@@ -1170,17 +1170,17 @@ declare namespace gapi.client {
1170
1170
  interface FilterView {
1171
1171
  /** The criteria for showing/hiding values per column. The map's key is the column index, and the value is the criteria for that column. This field is deprecated in favor of filter_specs. */
1172
1172
  criteria?: {[P in string]: FilterCriteria};
1173
- /** The filter criteria for showing/hiding values per column. Both criteria and filter_specs are populated in responses. If both fields are specified in an update request, this field takes precedence. */
1173
+ /** The filter criteria for showing or hiding values per column. Both criteria and filter_specs are populated in responses. If both fields are specified in an update request, this field takes precedence. */
1174
1174
  filterSpecs?: FilterSpec[];
1175
1175
  /** The ID of the filter view. */
1176
1176
  filterViewId?: number;
1177
- /** The named range this filter view is backed by, if any. When writing, only one of range or named_range_id or table_id may be set. */
1177
+ /** The named range this filter view is backed by, if any. When writing, only one of range, named_range_id, or table_id may be set. */
1178
1178
  namedRangeId?: string;
1179
- /** The range this filter view covers. When writing, only one of range or named_range_id or table_id may be set. */
1179
+ /** The range this filter view covers. When writing, only one of range, named_range_id, or table_id may be set. */
1180
1180
  range?: GridRange;
1181
1181
  /** The sort order per column. Later specifications are used when values are equal in the earlier specifications. */
1182
1182
  sortSpecs?: SortSpec[];
1183
- /** The table this filter view is backed by, if any. When writing, only one of range or named_range_id or table_id may be set. */
1183
+ /** The table this filter view is backed by, if any. When writing, only one of range, named_range_id, or table_id may be set. */
1184
1184
  tableId?: string;
1185
1185
  /** The name of the filter view. */
1186
1186
  title?: string;
@@ -2446,7 +2446,7 @@ declare namespace gapi.client {
2446
2446
  totalDataLabel?: DataLabel;
2447
2447
  }
2448
2448
  interface DeveloperMetadataResource {
2449
- /** Returns the developer metadata with the specified ID. The caller must specify the spreadsheet ID and the developer metadata's unique metadataId. */
2449
+ /** Returns the developer metadata with the specified ID. The caller must specify the spreadsheet ID and the developer metadata's unique metadataId. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). */
2450
2450
  get(request?: {
2451
2451
  /** V1 error format. */
2452
2452
  '$.xgafv'?: string;
@@ -2475,7 +2475,7 @@ declare namespace gapi.client {
2475
2475
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2476
2476
  uploadType?: string;
2477
2477
  }): client.Request<DeveloperMetadata>;
2478
- /** Returns all developer metadata matching the specified DataFilter. If the provided DataFilter represents a DeveloperMetadataLookup object, this will return all DeveloperMetadata entries selected by it. If the DataFilter represents a location in a spreadsheet, this will return all developer metadata associated with locations intersecting that region. */
2478
+ /** Returns all developer metadata matching the specified DataFilter. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). If the provided DataFilter represents a DeveloperMetadataLookup object, this will return all DeveloperMetadata entries selected by it. If the DataFilter represents a location in a spreadsheet, this will return all developer metadata associated with locations intersecting that region. */
2479
2479
  search(request: {
2480
2480
  /** V1 error format. */
2481
2481
  '$.xgafv'?: string;
@@ -2739,7 +2739,7 @@ declare namespace gapi.client {
2739
2739
  },
2740
2740
  body: BatchClearValuesRequest,
2741
2741
  ): client.Request<BatchClearValuesResponse>;
2742
- /** Clears one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges matching any of the specified data filters will be cleared. Only values are cleared -- all other properties of the cell (such as formatting, data validation, etc..) are kept. */
2742
+ /** Clears one or more ranges of values from a spreadsheet. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). The caller must specify the spreadsheet ID and one or more DataFilters. Ranges matching any of the specified data filters will be cleared. Only values are cleared -- all other properties of the cell (such as formatting, data validation, etc.) are kept. */
2743
2743
  batchClearByDataFilter(request: {
2744
2744
  /** V1 error format. */
2745
2745
  '$.xgafv'?: string;
@@ -2832,7 +2832,7 @@ declare namespace gapi.client {
2832
2832
  /** How values should be represented in the output. The default render option is ValueRenderOption.FORMATTED_VALUE. */
2833
2833
  valueRenderOption?: string;
2834
2834
  }): client.Request<BatchGetValuesResponse>;
2835
- /** Returns one or more ranges of values that match the specified data filters. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges that match any of the data filters in the request will be returned. */
2835
+ /** Returns one or more ranges of values that match the specified data filters. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). The caller must specify the spreadsheet ID and one or more DataFilters. Ranges that match any of the data filters in the request will be returned. */
2836
2836
  batchGetByDataFilter(request: {
2837
2837
  /** V1 error format. */
2838
2838
  '$.xgafv'?: string;
@@ -2948,7 +2948,7 @@ declare namespace gapi.client {
2948
2948
  },
2949
2949
  body: BatchUpdateValuesRequest,
2950
2950
  ): client.Request<BatchUpdateValuesResponse>;
2951
- /** Sets values in one or more ranges of a spreadsheet. The caller must specify the spreadsheet ID, a valueInputOption, and one or more DataFilterValueRanges. */
2951
+ /** Sets values in one or more ranges of a spreadsheet. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). The caller must specify the spreadsheet ID, a valueInputOption, and one or more DataFilterValueRanges. */
2952
2952
  batchUpdateByDataFilter(request: {
2953
2953
  /** V1 error format. */
2954
2954
  '$.xgafv'?: string;
@@ -3328,7 +3328,7 @@ declare namespace gapi.client {
3328
3328
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3329
3329
  uploadType?: string;
3330
3330
  }): client.Request<Spreadsheet>;
3331
- /** Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a [field mask](https://developers.google.com/workspace/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. */
3331
+ /** Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data in one of two ways: * Specify a [field mask](https://developers.google.com/workspace/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP. * Set the includeGridData parameter to `true`. If a field mask is set, the `includeGridData` parameter is ignored. For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want. */
3332
3332
  getByDataFilter(request: {
3333
3333
  /** V1 error format. */
3334
3334
  '$.xgafv'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sheets-v4",
3
- "version": "0.1.20260217",
3
+ "version": "0.2.20260217",
4
4
  "description": "TypeScript typings for Google Sheets API v4",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -99,7 +99,7 @@ Returns the spreadsheet at the given ID. The caller must specify the spreadsheet
99
99
  await gapi.client.sheets.spreadsheets.get({spreadsheetId: 'spreadsheetId'});
100
100
 
101
101
  /*
102
- Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: * Specify a [field mask](https://developers.google.com/workspace/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP * Set the includeGridData parameter to true. If a field mask is set, the `includeGridData` parameter is ignored For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.
102
+ Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/api/guides/metadata). This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data in one of two ways: * Specify a [field mask](https://developers.google.com/workspace/sheets/api/guides/field-masks) listing your desired fields using the `fields` URL parameter in HTTP. * Set the includeGridData parameter to `true`. If a field mask is set, the `includeGridData` parameter is ignored. For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.
103
103
  */
104
104
  await gapi.client.sheets.spreadsheets.getByDataFilter({
105
105
  spreadsheetId: 'spreadsheetId',