From c0d93a8214f98097aeb0d79d30ec2245d964e200 Mon Sep 17 00:00:00 2001 From: Maxim Mazurok Date: Thu, 9 Apr 2020 05:58:53 +1000 Subject: [PATCH] [gapi.client.sheets] automatic update (#43734) * automatic gapi.client.sheets update @ Wed, 08 Apr 2020 14:04:17 GMT * automatic gapi.client.sheets update @ Wed, 08 Apr 2020 17:14:04 GMT * automatic gapi.client.sheets update @ Wed, 08 Apr 2020 18:14:20 GMT * automatic gapi.client.sheets update @ Wed, 08 Apr 2020 19:15:40 GMT --- .../gapi.client.sheets-tests.ts | 9125 ++++++++++++++++- types/gapi.client.sheets/index.d.ts | 1458 ++- types/gapi.client.sheets/readme.md | 42 +- types/gapi.client.sheets/tsconfig.json | 38 +- types/gapi.client.sheets/tslint.json | 7 +- 5 files changed, 9854 insertions(+), 816 deletions(-) diff --git a/types/gapi.client.sheets/gapi.client.sheets-tests.ts b/types/gapi.client.sheets/gapi.client.sheets-tests.ts index 3576ff8a70..bb5e8d51e0 100644 --- a/types/gapi.client.sheets/gapi.client.sheets-tests.ts +++ b/types/gapi.client.sheets/gapi.client.sheets-tests.ts @@ -57,12 +57,8470 @@ gapi.load('client', () => { * should reflect your changes. */ await gapi.client.sheets.spreadsheets.batchUpdate({ - spreadsheetId: 'spreadsheetId', - resource: {}, + spreadsheetId: "Test string", + }, { + includeSpreadsheetInResponse: true, + requests: [ + { + addBanding: { + bandedRange: { + bandedRangeId: 42, + columnProperties: { + firstBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + firstBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + footerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + footerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + secondBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + secondBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + rowProperties: { + firstBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + firstBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + footerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + footerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + secondBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + secondBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + }, + }, + addChart: { + chart: { + chartId: 42, + position: { + newSheet: true, + overlayPosition: { + anchorCell: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + heightPixels: 42, + offsetXPixels: 42, + offsetYPixels: 42, + widthPixels: 42, + }, + sheetId: 42, + }, + spec: { + altText: "Test string", + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + basicChart: { + axis: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + position: "Test string", + title: "Test string", + titleTextPosition: { + horizontalAlignment: "Test string", + }, + viewWindowOptions: { + viewWindowMax: 42, + viewWindowMin: 42, + viewWindowMode: "Test string", + }, + } ], + chartType: "Test string", + compareMode: "Test string", + domains: [ + { + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + } ], + headerCount: 42, + interpolateNulls: true, + legendPosition: "Test string", + lineSmoothing: true, + series: [ + { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + lineStyle: { + type: "Test string", + width: 42, + }, + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + targetAxis: "Test string", + type: "Test string", + } ], + stackedType: "Test string", + threeDimensional: true, + }, + bubbleChart: { + bubbleBorderColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + bubbleBorderColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + bubbleLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + bubbleMaxRadiusSize: 42, + bubbleMinRadiusSize: 42, + bubbleOpacity: 42, + bubbleSizes: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + bubbleTextStyle: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + groupIds: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + legendPosition: "Test string", + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + candlestickChart: { + data: [ + { + closeSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + highSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + lowSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + openSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + } ], + domain: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + }, + }, + fontName: "Test string", + hiddenDimensionStrategy: "Test string", + histogramChart: { + bucketSize: 42, + legendPosition: "Test string", + outlierPercentile: 42, + series: [ + { + barColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + barColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + } ], + showItemDividers: true, + }, + maximized: true, + orgChart: { + labels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + nodeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + nodeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + nodeSize: "Test string", + parentLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + selectedNodeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + selectedNodeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + tooltips: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + pieChart: { + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + legendPosition: "Test string", + pieHole: 42, + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + threeDimensional: true, + }, + scorecardChart: { + aggregateType: "Test string", + baselineValueData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + baselineValueFormat: { + comparisonType: "Test string", + description: "Test string", + negativeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + negativeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + position: { + horizontalAlignment: "Test string", + }, + positiveColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + positiveColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + customFormatOptions: { + prefix: "Test string", + suffix: "Test string", + }, + keyValueData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + keyValueFormat: { + position: { + horizontalAlignment: "Test string", + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + numberFormatSource: "Test string", + scaleFactor: 42, + }, + subtitle: "Test string", + subtitleTextFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + subtitleTextPosition: { + horizontalAlignment: "Test string", + }, + title: "Test string", + titleTextFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + titleTextPosition: { + horizontalAlignment: "Test string", + }, + treemapChart: { + colorData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + colorScale: { + maxValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + maxValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + midValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + midValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + minValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + minValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + noDataColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + noDataColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + hideTooltips: true, + hintedLevels: 42, + labels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + levels: 42, + maxValue: 42, + minValue: 42, + parentLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + sizeData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + waterfallChart: { + connectorLineStyle: { + type: "Test string", + width: 42, + }, + domain: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + }, + firstValueIsTotal: true, + hideConnectorLines: true, + series: [ + { + customSubtotals: [ + { + dataIsSubtotal: true, + label: "Test string", + subtotalIndex: 42, + } ], + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + hideTrailingSubtotal: true, + negativeColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + positiveColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + subtotalColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + } ], + stackedType: "Test string", + }, + }, + }, + }, + addConditionalFormatRule: { + index: 42, + rule: { + booleanRule: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + format: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + }, + gradientRule: { + maxpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + midpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + minpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + }, + ranges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + addDimensionGroup: { + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + addFilterView: { + filter: { + criteria: { + A: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + } }, + filterViewId: 42, + namedRangeId: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sortSpecs: [ + { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + dimensionIndex: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + sortOrder: "Test string", + } ], + title: "Test string", + }, + }, + addNamedRange: { + namedRange: { + name: "Test string", + namedRangeId: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + }, + addProtectedRange: { + protectedRange: { + description: "Test string", + editors: { + domainUsersCanEdit: true, + groups: [ + "Test string" ], + users: [ + "Test string" ], + }, + namedRangeId: "Test string", + protectedRangeId: 42, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + requestingUserCanEdit: true, + unprotectedRanges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + warningOnly: true, + }, + }, + addSheet: { + properties: { + gridProperties: { + columnCount: 42, + columnGroupControlAfter: true, + frozenColumnCount: 42, + frozenRowCount: 42, + hideGridlines: true, + rowCount: 42, + rowGroupControlAfter: true, + }, + hidden: true, + index: 42, + rightToLeft: true, + sheetId: 42, + sheetType: "Test string", + tabColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + tabColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + title: "Test string", + }, + }, + addSlicer: { + slicer: { + position: { + newSheet: true, + overlayPosition: { + anchorCell: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + heightPixels: 42, + offsetXPixels: 42, + offsetYPixels: 42, + widthPixels: 42, + }, + sheetId: 42, + }, + slicerId: 42, + spec: { + applyToPivotTables: true, + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + columnIndex: 42, + dataRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + filterCriteria: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + horizontalAlignment: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + title: "Test string", + }, + }, + }, + appendCells: { + fields: "Test string", + rows: [ + { + values: [ + { + dataValidation: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + inputMessage: "Test string", + showCustomUi: true, + strict: true, + }, + effectiveFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + effectiveValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + formattedValue: "Test string", + hyperlink: "Test string", + note: "Test string", + pivotTable: { + columns: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + criteria: { + A: { + visibleValues: [ + "Test string" ], + } }, + rows: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + valueLayout: "Test string", + values: [ + { + calculatedDisplayType: "Test string", + formula: "Test string", + name: "Test string", + sourceColumnOffset: 42, + summarizeFunction: "Test string", + } ], + }, + textFormatRuns: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + startIndex: 42, + } ], + userEnteredFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + userEnteredValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + sheetId: 42, + }, + appendDimension: { + dimension: "Test string", + length: 42, + sheetId: 42, + }, + autoFill: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sourceAndDestination: { + dimension: "Test string", + fillLength: 42, + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + useAlternateSeries: true, + }, + autoResizeDimensions: { + dimensions: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + clearBasicFilter: { + sheetId: 42, + }, + copyPaste: { + destination: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + pasteOrientation: "Test string", + pasteType: "Test string", + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + createDeveloperMetadata: { + developerMetadata: { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + }, + }, + cutPaste: { + destination: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + pasteType: "Test string", + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + deleteBanding: { + bandedRangeId: 42, + }, + deleteConditionalFormatRule: { + index: 42, + sheetId: 42, + }, + deleteDeveloperMetadata: { + dataFilter: { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + }, + deleteDimension: { + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + deleteDimensionGroup: { + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + deleteDuplicates: { + comparisonColumns: [ + { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + } ], + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + deleteEmbeddedObject: { + objectId: 42, + }, + deleteFilterView: { + filterId: 42, + }, + deleteNamedRange: { + namedRangeId: "Test string", + }, + deleteProtectedRange: { + protectedRangeId: 42, + }, + deleteRange: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + shiftDimension: "Test string", + }, + deleteSheet: { + sheetId: 42, + }, + duplicateFilterView: { + filterId: 42, + }, + duplicateSheet: { + insertSheetIndex: 42, + newSheetId: 42, + newSheetName: "Test string", + sourceSheetId: 42, + }, + findReplace: { + allSheets: true, + find: "Test string", + includeFormulas: true, + matchCase: true, + matchEntireCell: true, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + replacement: "Test string", + searchByRegex: true, + sheetId: 42, + }, + insertDimension: { + inheritFromBefore: true, + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + insertRange: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + shiftDimension: "Test string", + }, + mergeCells: { + mergeType: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + moveDimension: { + destinationIndex: 42, + source: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + pasteData: { + coordinate: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + data: "Test string", + delimiter: "Test string", + html: true, + type: "Test string", + }, + randomizeRange: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + repeatCell: { + cell: { + dataValidation: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + inputMessage: "Test string", + showCustomUi: true, + strict: true, + }, + effectiveFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + effectiveValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + formattedValue: "Test string", + hyperlink: "Test string", + note: "Test string", + pivotTable: { + columns: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + criteria: { + A: { + visibleValues: [ + "Test string" ], + } }, + rows: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + valueLayout: "Test string", + values: [ + { + calculatedDisplayType: "Test string", + formula: "Test string", + name: "Test string", + sourceColumnOffset: 42, + summarizeFunction: "Test string", + } ], + }, + textFormatRuns: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + startIndex: 42, + } ], + userEnteredFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + userEnteredValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + }, + fields: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + setBasicFilter: { + filter: { + criteria: { + A: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + } }, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sortSpecs: [ + { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + dimensionIndex: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + sortOrder: "Test string", + } ], + }, + }, + setDataValidation: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + rule: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + inputMessage: "Test string", + showCustomUi: true, + strict: true, + }, + }, + sortRange: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sortSpecs: [ + { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + dimensionIndex: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + sortOrder: "Test string", + } ], + }, + textToColumns: { + delimiter: "Test string", + delimiterType: "Test string", + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + trimWhitespace: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + unmergeCells: { + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + updateBanding: { + bandedRange: { + bandedRangeId: 42, + columnProperties: { + firstBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + firstBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + footerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + footerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + secondBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + secondBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + rowProperties: { + firstBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + firstBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + footerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + footerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + secondBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + secondBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + }, + fields: "Test string", + }, + updateBorders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + innerHorizontal: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + innerVertical: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + updateCells: { + fields: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + rows: [ + { + values: [ + { + dataValidation: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + inputMessage: "Test string", + showCustomUi: true, + strict: true, + }, + effectiveFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + effectiveValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + formattedValue: "Test string", + hyperlink: "Test string", + note: "Test string", + pivotTable: { + columns: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + criteria: { + A: { + visibleValues: [ + "Test string" ], + } }, + rows: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + valueLayout: "Test string", + values: [ + { + calculatedDisplayType: "Test string", + formula: "Test string", + name: "Test string", + sourceColumnOffset: 42, + summarizeFunction: "Test string", + } ], + }, + textFormatRuns: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + startIndex: 42, + } ], + userEnteredFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + userEnteredValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + start: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + }, + updateChartSpec: { + chartId: 42, + spec: { + altText: "Test string", + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + basicChart: { + axis: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + position: "Test string", + title: "Test string", + titleTextPosition: { + horizontalAlignment: "Test string", + }, + viewWindowOptions: { + viewWindowMax: 42, + viewWindowMin: 42, + viewWindowMode: "Test string", + }, + } ], + chartType: "Test string", + compareMode: "Test string", + domains: [ + { + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + } ], + headerCount: 42, + interpolateNulls: true, + legendPosition: "Test string", + lineSmoothing: true, + series: [ + { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + lineStyle: { + type: "Test string", + width: 42, + }, + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + targetAxis: "Test string", + type: "Test string", + } ], + stackedType: "Test string", + threeDimensional: true, + }, + bubbleChart: { + bubbleBorderColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + bubbleBorderColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + bubbleLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + bubbleMaxRadiusSize: 42, + bubbleMinRadiusSize: 42, + bubbleOpacity: 42, + bubbleSizes: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + bubbleTextStyle: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + groupIds: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + legendPosition: "Test string", + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + candlestickChart: { + data: [ + { + closeSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + highSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + lowSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + openSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + } ], + domain: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + }, + }, + fontName: "Test string", + hiddenDimensionStrategy: "Test string", + histogramChart: { + bucketSize: 42, + legendPosition: "Test string", + outlierPercentile: 42, + series: [ + { + barColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + barColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + } ], + showItemDividers: true, + }, + maximized: true, + orgChart: { + labels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + nodeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + nodeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + nodeSize: "Test string", + parentLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + selectedNodeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + selectedNodeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + tooltips: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + pieChart: { + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + legendPosition: "Test string", + pieHole: 42, + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + threeDimensional: true, + }, + scorecardChart: { + aggregateType: "Test string", + baselineValueData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + baselineValueFormat: { + comparisonType: "Test string", + description: "Test string", + negativeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + negativeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + position: { + horizontalAlignment: "Test string", + }, + positiveColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + positiveColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + customFormatOptions: { + prefix: "Test string", + suffix: "Test string", + }, + keyValueData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + keyValueFormat: { + position: { + horizontalAlignment: "Test string", + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + numberFormatSource: "Test string", + scaleFactor: 42, + }, + subtitle: "Test string", + subtitleTextFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + subtitleTextPosition: { + horizontalAlignment: "Test string", + }, + title: "Test string", + titleTextFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + titleTextPosition: { + horizontalAlignment: "Test string", + }, + treemapChart: { + colorData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + colorScale: { + maxValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + maxValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + midValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + midValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + minValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + minValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + noDataColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + noDataColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + hideTooltips: true, + hintedLevels: 42, + labels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + levels: 42, + maxValue: 42, + minValue: 42, + parentLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + sizeData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + waterfallChart: { + connectorLineStyle: { + type: "Test string", + width: 42, + }, + domain: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + }, + firstValueIsTotal: true, + hideConnectorLines: true, + series: [ + { + customSubtotals: [ + { + dataIsSubtotal: true, + label: "Test string", + subtotalIndex: 42, + } ], + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + hideTrailingSubtotal: true, + negativeColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + positiveColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + subtotalColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + } ], + stackedType: "Test string", + }, + }, + }, + updateConditionalFormatRule: { + index: 42, + newIndex: 42, + rule: { + booleanRule: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + format: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + }, + gradientRule: { + maxpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + midpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + minpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + }, + ranges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + sheetId: 42, + }, + updateDeveloperMetadata: { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + developerMetadata: { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + }, + fields: "Test string", + }, + updateDimensionGroup: { + dimensionGroup: { + collapsed: true, + depth: 42, + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + fields: "Test string", + }, + updateDimensionProperties: { + fields: "Test string", + properties: { + developerMetadata: [ + { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + } ], + hiddenByFilter: true, + hiddenByUser: true, + pixelSize: 42, + }, + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + }, + updateEmbeddedObjectPosition: { + fields: "Test string", + newPosition: { + newSheet: true, + overlayPosition: { + anchorCell: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + heightPixels: 42, + offsetXPixels: 42, + offsetYPixels: 42, + widthPixels: 42, + }, + sheetId: 42, + }, + objectId: 42, + }, + updateFilterView: { + fields: "Test string", + filter: { + criteria: { + A: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + } }, + filterViewId: 42, + namedRangeId: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sortSpecs: [ + { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + dimensionIndex: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + sortOrder: "Test string", + } ], + title: "Test string", + }, + }, + updateNamedRange: { + fields: "Test string", + namedRange: { + name: "Test string", + namedRangeId: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + }, + updateProtectedRange: { + fields: "Test string", + protectedRange: { + description: "Test string", + editors: { + domainUsersCanEdit: true, + groups: [ + "Test string" ], + users: [ + "Test string" ], + }, + namedRangeId: "Test string", + protectedRangeId: 42, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + requestingUserCanEdit: true, + unprotectedRanges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + warningOnly: true, + }, + }, + updateSheetProperties: { + fields: "Test string", + properties: { + gridProperties: { + columnCount: 42, + columnGroupControlAfter: true, + frozenColumnCount: 42, + frozenRowCount: 42, + hideGridlines: true, + rowCount: 42, + rowGroupControlAfter: true, + }, + hidden: true, + index: 42, + rightToLeft: true, + sheetId: 42, + sheetType: "Test string", + tabColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + tabColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + title: "Test string", + }, + }, + updateSlicerSpec: { + fields: "Test string", + slicerId: 42, + spec: { + applyToPivotTables: true, + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + columnIndex: 42, + dataRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + filterCriteria: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + horizontalAlignment: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + title: "Test string", + }, + }, + updateSpreadsheetProperties: { + fields: "Test string", + properties: { + autoRecalc: "Test string", + defaultFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + iterativeCalculationSettings: { + convergenceThreshold: 42, + maxIterations: 42, + }, + locale: "Test string", + spreadsheetTheme: { + primaryFontFamily: "Test string", + themeColors: [ + { + color: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + colorType: "Test string", + } ], + }, + timeZone: "Test string", + title: "Test string", + }, + }, + } ], + responseIncludeGridData: true, + responseRanges: [ + "Test string" ], + }); + /** + * Returns the developer metadata with the specified ID. + * The caller must specify the spreadsheet ID and the developer metadata's + * unique metadataId. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.get({ + metadataId: 42, + spreadsheetId: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.search({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Copies a single sheet from a spreadsheet to another spreadsheet. + * Returns the properties of the newly created sheet. + */ + await gapi.client.sheets.spreadsheets.sheets.copyTo({ + sheetId: 42, + spreadsheetId: "Test string", + }, { + destinationSpreadsheetId: "Test string", + }); + /** + * Appends values to a spreadsheet. The input range is used to search for + * existing data and find a "table" within that range. Values will be + * appended to the next row of the table, starting with the first column of + * the table. See the + * [guide](/sheets/api/guides/values#appending_values) + * and + * [sample code](/sheets/api/samples/writing#append_values) + * for specific details of how tables are detected and data is appended. + * + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. The `valueInputOption` only + * controls how the input data will be added to the sheet (column-wise or + * row-wise), it does not influence what cell the data starts being written + * to. + */ + await gapi.client.sheets.spreadsheets.values.append({ + includeValuesInResponse: true, + insertDataOption: "Test string", + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + }); + /** + * Clears one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.batchClear({ + spreadsheetId: "Test string", + }, { + ranges: [ + "Test string" ], + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchClearByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Returns one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + */ + await gapi.client.sheets.spreadsheets.values.batchGet({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + ranges: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchGetByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * ValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdate({ + spreadsheetId: "Test string", + }, { + data: [ + { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * DataFilterValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdateByDataFilter({ + spreadsheetId: "Test string", + }, { + data: [ + { + dataFilter: { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + majorDimension: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Clears values from a spreadsheet. + * The caller must specify the spreadsheet ID and range. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.clear({ + range: "Test string", + spreadsheetId: "Test string", + }, { + }); + /** + * Returns a range of values from a spreadsheet. + * The caller must specify the spreadsheet ID and a range. + */ + await gapi.client.sheets.spreadsheets.values.get({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + range: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in a range of a spreadsheet. + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. + */ + await gapi.client.sheets.spreadsheets.values.update({ + includeValuesInResponse: true, + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], }); /** Creates a spreadsheet, returning the newly created spreadsheet. */ await gapi.client.sheets.spreadsheets.create({ - resource: {}, + }, { + developerMetadata: [ + { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + } ], + namedRanges: [ + { + name: "Test string", + namedRangeId: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + properties: { + autoRecalc: "Test string", + defaultFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + iterativeCalculationSettings: { + convergenceThreshold: 42, + maxIterations: 42, + }, + locale: "Test string", + spreadsheetTheme: { + primaryFontFamily: "Test string", + themeColors: [ + { + color: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + colorType: "Test string", + } ], + }, + timeZone: "Test string", + title: "Test string", + }, + sheets: [ + { + bandedRanges: [ + { + bandedRangeId: 42, + columnProperties: { + firstBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + firstBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + footerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + footerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + secondBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + secondBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + rowProperties: { + firstBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + firstBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + footerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + footerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + secondBandColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + secondBandColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + } ], + basicFilter: { + criteria: { + A: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + } }, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sortSpecs: [ + { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + dimensionIndex: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + sortOrder: "Test string", + } ], + }, + charts: [ + { + chartId: 42, + position: { + newSheet: true, + overlayPosition: { + anchorCell: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + heightPixels: 42, + offsetXPixels: 42, + offsetYPixels: 42, + widthPixels: 42, + }, + sheetId: 42, + }, + spec: { + altText: "Test string", + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + basicChart: { + axis: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + position: "Test string", + title: "Test string", + titleTextPosition: { + horizontalAlignment: "Test string", + }, + viewWindowOptions: { + viewWindowMax: 42, + viewWindowMin: 42, + viewWindowMode: "Test string", + }, + } ], + chartType: "Test string", + compareMode: "Test string", + domains: [ + { + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + } ], + headerCount: 42, + interpolateNulls: true, + legendPosition: "Test string", + lineSmoothing: true, + series: [ + { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + lineStyle: { + type: "Test string", + width: 42, + }, + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + targetAxis: "Test string", + type: "Test string", + } ], + stackedType: "Test string", + threeDimensional: true, + }, + bubbleChart: { + bubbleBorderColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + bubbleBorderColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + bubbleLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + bubbleMaxRadiusSize: 42, + bubbleMinRadiusSize: 42, + bubbleOpacity: 42, + bubbleSizes: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + bubbleTextStyle: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + groupIds: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + legendPosition: "Test string", + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + candlestickChart: { + data: [ + { + closeSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + highSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + lowSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + openSeries: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + } ], + domain: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + }, + }, + fontName: "Test string", + hiddenDimensionStrategy: "Test string", + histogramChart: { + bucketSize: 42, + legendPosition: "Test string", + outlierPercentile: 42, + series: [ + { + barColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + barColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + } ], + showItemDividers: true, + }, + maximized: true, + orgChart: { + labels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + nodeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + nodeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + nodeSize: "Test string", + parentLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + selectedNodeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + selectedNodeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + tooltips: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + }, + pieChart: { + domain: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + legendPosition: "Test string", + pieHole: 42, + series: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + threeDimensional: true, + }, + scorecardChart: { + aggregateType: "Test string", + baselineValueData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + baselineValueFormat: { + comparisonType: "Test string", + description: "Test string", + negativeColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + negativeColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + position: { + horizontalAlignment: "Test string", + }, + positiveColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + positiveColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + customFormatOptions: { + prefix: "Test string", + suffix: "Test string", + }, + keyValueData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + keyValueFormat: { + position: { + horizontalAlignment: "Test string", + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + numberFormatSource: "Test string", + scaleFactor: 42, + }, + subtitle: "Test string", + subtitleTextFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + subtitleTextPosition: { + horizontalAlignment: "Test string", + }, + title: "Test string", + titleTextFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + titleTextPosition: { + horizontalAlignment: "Test string", + }, + treemapChart: { + colorData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + colorScale: { + maxValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + maxValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + midValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + midValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + minValueColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + minValueColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + noDataColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + noDataColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + headerColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + headerColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + hideTooltips: true, + hintedLevels: 42, + labels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + levels: 42, + maxValue: 42, + minValue: 42, + parentLabels: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + sizeData: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + }, + waterfallChart: { + connectorLineStyle: { + type: "Test string", + width: 42, + }, + domain: { + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + reversed: true, + }, + firstValueIsTotal: true, + hideConnectorLines: true, + series: [ + { + customSubtotals: [ + { + dataIsSubtotal: true, + label: "Test string", + subtotalIndex: 42, + } ], + data: { + sourceRange: { + sources: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + }, + }, + hideTrailingSubtotal: true, + negativeColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + positiveColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + subtotalColumnsStyle: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + label: "Test string", + }, + } ], + stackedType: "Test string", + }, + }, + } ], + columnGroups: [ + { + collapsed: true, + depth: 42, + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + } ], + conditionalFormats: [ + { + booleanRule: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + format: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + }, + gradientRule: { + maxpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + midpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + minpoint: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + type: "Test string", + value: "Test string", + }, + }, + ranges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + } ], + data: [ + { + columnMetadata: [ + { + developerMetadata: [ + { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + } ], + hiddenByFilter: true, + hiddenByUser: true, + pixelSize: 42, + } ], + rowData: [ + { + values: [ + { + dataValidation: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + inputMessage: "Test string", + showCustomUi: true, + strict: true, + }, + effectiveFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + effectiveValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + formattedValue: "Test string", + hyperlink: "Test string", + note: "Test string", + pivotTable: { + columns: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + criteria: { + A: { + visibleValues: [ + "Test string" ], + } }, + rows: [ + { + groupRule: { + dateTimeRule: { + type: "Test string", + }, + histogramRule: { + end: 42, + interval: 42, + start: 42, + }, + manualRule: { + groups: [ + { + groupName: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + items: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + } ], + }, + }, + label: "Test string", + repeatHeadings: true, + showTotals: true, + sortOrder: "Test string", + sourceColumnOffset: 42, + valueBucket: { + buckets: [ + { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + } ], + valuesIndex: 42, + }, + valueMetadata: [ + { + collapsed: true, + value: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + source: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + valueLayout: "Test string", + values: [ + { + calculatedDisplayType: "Test string", + formula: "Test string", + name: "Test string", + sourceColumnOffset: 42, + summarizeFunction: "Test string", + } ], + }, + textFormatRuns: [ + { + format: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + startIndex: 42, + } ], + userEnteredFormat: { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + borders: { + bottom: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + left: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + right: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + top: { + color: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + colorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + style: "Test string", + width: 42, + }, + }, + horizontalAlignment: "Test string", + hyperlinkDisplayType: "Test string", + numberFormat: { + pattern: "Test string", + type: "Test string", + }, + padding: { + bottom: 42, + left: 42, + right: 42, + top: 42, + }, + textDirection: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + textRotation: { + angle: 42, + vertical: true, + }, + verticalAlignment: "Test string", + wrapStrategy: "Test string", + }, + userEnteredValue: { + boolValue: true, + errorValue: { + message: "Test string", + type: "Test string", + }, + formulaValue: "Test string", + numberValue: 42, + stringValue: "Test string", + }, + } ], + } ], + rowMetadata: [ + { + developerMetadata: [ + { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + } ], + hiddenByFilter: true, + hiddenByUser: true, + pixelSize: 42, + } ], + startColumn: 42, + startRow: 42, + } ], + developerMetadata: [ + { + location: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataId: 42, + metadataKey: "Test string", + metadataValue: "Test string", + visibility: "Test string", + } ], + filterViews: [ + { + criteria: { + A: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + } }, + filterViewId: 42, + namedRangeId: "Test string", + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + sortSpecs: [ + { + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + dimensionIndex: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + sortOrder: "Test string", + } ], + title: "Test string", + } ], + merges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + properties: { + gridProperties: { + columnCount: 42, + columnGroupControlAfter: true, + frozenColumnCount: 42, + frozenRowCount: 42, + hideGridlines: true, + rowCount: 42, + rowGroupControlAfter: true, + }, + hidden: true, + index: 42, + rightToLeft: true, + sheetId: 42, + sheetType: "Test string", + tabColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + tabColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + title: "Test string", + }, + protectedRanges: [ + { + description: "Test string", + editors: { + domainUsersCanEdit: true, + groups: [ + "Test string" ], + users: [ + "Test string" ], + }, + namedRangeId: "Test string", + protectedRangeId: 42, + range: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + requestingUserCanEdit: true, + unprotectedRanges: [ + { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + } ], + warningOnly: true, + } ], + rowGroups: [ + { + collapsed: true, + depth: 42, + range: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + } ], + slicers: [ + { + position: { + newSheet: true, + overlayPosition: { + anchorCell: { + columnIndex: 42, + rowIndex: 42, + sheetId: 42, + }, + heightPixels: 42, + offsetXPixels: 42, + offsetYPixels: 42, + widthPixels: 42, + }, + sheetId: 42, + }, + slicerId: 42, + spec: { + applyToPivotTables: true, + backgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + backgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + columnIndex: 42, + dataRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + filterCriteria: { + condition: { + type: "Test string", + values: [ + { + relativeDate: "Test string", + userEnteredValue: "Test string", + } ], + }, + hiddenValues: [ + "Test string" ], + visibleBackgroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleBackgroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + visibleForegroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + visibleForegroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + }, + horizontalAlignment: "Test string", + textFormat: { + bold: true, + fontFamily: "Test string", + fontSize: 42, + foregroundColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + foregroundColorStyle: { + rgbColor: { + alpha: 42, + blue: 42, + green: 42, + red: 42, + }, + themeColor: "Test string", + }, + italic: true, + strikethrough: true, + underline: true, + }, + title: "Test string", + }, + } ], + } ], + spreadsheetId: "Test string", + spreadsheetUrl: "Test string", + }); + /** + * Returns the developer metadata with the specified ID. + * The caller must specify the spreadsheet ID and the developer metadata's + * unique metadataId. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.get({ + metadataId: 42, + spreadsheetId: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.search({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Copies a single sheet from a spreadsheet to another spreadsheet. + * Returns the properties of the newly created sheet. + */ + await gapi.client.sheets.spreadsheets.sheets.copyTo({ + sheetId: 42, + spreadsheetId: "Test string", + }, { + destinationSpreadsheetId: "Test string", + }); + /** + * Appends values to a spreadsheet. The input range is used to search for + * existing data and find a "table" within that range. Values will be + * appended to the next row of the table, starting with the first column of + * the table. See the + * [guide](/sheets/api/guides/values#appending_values) + * and + * [sample code](/sheets/api/samples/writing#append_values) + * for specific details of how tables are detected and data is appended. + * + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. The `valueInputOption` only + * controls how the input data will be added to the sheet (column-wise or + * row-wise), it does not influence what cell the data starts being written + * to. + */ + await gapi.client.sheets.spreadsheets.values.append({ + includeValuesInResponse: true, + insertDataOption: "Test string", + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + }); + /** + * Clears one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.batchClear({ + spreadsheetId: "Test string", + }, { + ranges: [ + "Test string" ], + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchClearByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Returns one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + */ + await gapi.client.sheets.spreadsheets.values.batchGet({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + ranges: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchGetByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * ValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdate({ + spreadsheetId: "Test string", + }, { + data: [ + { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * DataFilterValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdateByDataFilter({ + spreadsheetId: "Test string", + }, { + data: [ + { + dataFilter: { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + majorDimension: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Clears values from a spreadsheet. + * The caller must specify the spreadsheet ID and range. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.clear({ + range: "Test string", + spreadsheetId: "Test string", + }, { + }); + /** + * Returns a range of values from a spreadsheet. + * The caller must specify the spreadsheet ID and a range. + */ + await gapi.client.sheets.spreadsheets.values.get({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + range: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in a range of a spreadsheet. + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. + */ + await gapi.client.sheets.spreadsheets.values.update({ + includeValuesInResponse: true, + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], }); /** * Returns the spreadsheet at the given ID. @@ -89,8 +8547,319 @@ gapi.load('client', () => { */ await gapi.client.sheets.spreadsheets.get({ includeGridData: true, - ranges: 'ranges', - spreadsheetId: 'spreadsheetId', + ranges: "Test string", + spreadsheetId: "Test string", + }); + /** + * Returns the developer metadata with the specified ID. + * The caller must specify the spreadsheet ID and the developer metadata's + * unique metadataId. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.get({ + metadataId: 42, + spreadsheetId: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.search({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Copies a single sheet from a spreadsheet to another spreadsheet. + * Returns the properties of the newly created sheet. + */ + await gapi.client.sheets.spreadsheets.sheets.copyTo({ + sheetId: 42, + spreadsheetId: "Test string", + }, { + destinationSpreadsheetId: "Test string", + }); + /** + * Appends values to a spreadsheet. The input range is used to search for + * existing data and find a "table" within that range. Values will be + * appended to the next row of the table, starting with the first column of + * the table. See the + * [guide](/sheets/api/guides/values#appending_values) + * and + * [sample code](/sheets/api/samples/writing#append_values) + * for specific details of how tables are detected and data is appended. + * + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. The `valueInputOption` only + * controls how the input data will be added to the sheet (column-wise or + * row-wise), it does not influence what cell the data starts being written + * to. + */ + await gapi.client.sheets.spreadsheets.values.append({ + includeValuesInResponse: true, + insertDataOption: "Test string", + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + }); + /** + * Clears one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.batchClear({ + spreadsheetId: "Test string", + }, { + ranges: [ + "Test string" ], + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchClearByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Returns one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + */ + await gapi.client.sheets.spreadsheets.values.batchGet({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + ranges: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchGetByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * ValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdate({ + spreadsheetId: "Test string", + }, { + data: [ + { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * DataFilterValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdateByDataFilter({ + spreadsheetId: "Test string", + }, { + data: [ + { + dataFilter: { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + majorDimension: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Clears values from a spreadsheet. + * The caller must specify the spreadsheet ID and range. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.clear({ + range: "Test string", + spreadsheetId: "Test string", + }, { + }); + /** + * Returns a range of values from a spreadsheet. + * The caller must specify the spreadsheet ID and a range. + */ + await gapi.client.sheets.spreadsheets.values.get({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + range: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in a range of a spreadsheet. + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. + */ + await gapi.client.sheets.spreadsheets.values.update({ + includeValuesInResponse: true, + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], }); /** * Returns the spreadsheet at the given ID. @@ -117,8 +8886,350 @@ gapi.load('client', () => { * fields of the spreadsheet that you want. */ await gapi.client.sheets.spreadsheets.getByDataFilter({ - spreadsheetId: 'spreadsheetId', - resource: {}, + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + includeGridData: true, + }); + /** + * Returns the developer metadata with the specified ID. + * The caller must specify the spreadsheet ID and the developer metadata's + * unique metadataId. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.get({ + metadataId: 42, + spreadsheetId: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.developerMetadata.search({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Copies a single sheet from a spreadsheet to another spreadsheet. + * Returns the properties of the newly created sheet. + */ + await gapi.client.sheets.spreadsheets.sheets.copyTo({ + sheetId: 42, + spreadsheetId: "Test string", + }, { + destinationSpreadsheetId: "Test string", + }); + /** + * Appends values to a spreadsheet. The input range is used to search for + * existing data and find a "table" within that range. Values will be + * appended to the next row of the table, starting with the first column of + * the table. See the + * [guide](/sheets/api/guides/values#appending_values) + * and + * [sample code](/sheets/api/samples/writing#append_values) + * for specific details of how tables are detected and data is appended. + * + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. The `valueInputOption` only + * controls how the input data will be added to the sheet (column-wise or + * row-wise), it does not influence what cell the data starts being written + * to. + */ + await gapi.client.sheets.spreadsheets.values.append({ + includeValuesInResponse: true, + insertDataOption: "Test string", + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + }); + /** + * Clears one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.batchClear({ + spreadsheetId: "Test string", + }, { + ranges: [ + "Test string" ], + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchClearByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + }); + /** + * Returns one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + */ + await gapi.client.sheets.spreadsheets.values.batchGet({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + ranges: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * 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. + */ + await gapi.client.sheets.spreadsheets.values.batchGetByDataFilter({ + spreadsheetId: "Test string", + }, { + dataFilters: [ + { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + } ], + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * ValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdate({ + spreadsheetId: "Test string", + }, { + data: [ + { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Sets values in one or more ranges of a spreadsheet. + * The caller must specify the spreadsheet ID, + * a valueInputOption, and one or more + * DataFilterValueRanges. + */ + await gapi.client.sheets.spreadsheets.values.batchUpdateByDataFilter({ + spreadsheetId: "Test string", + }, { + data: [ + { + dataFilter: { + a1Range: "Test string", + developerMetadataLookup: { + locationMatchingStrategy: "Test string", + locationType: "Test string", + metadataId: 42, + metadataKey: "Test string", + metadataLocation: { + dimensionRange: { + dimension: "Test string", + endIndex: 42, + sheetId: 42, + startIndex: 42, + }, + locationType: "Test string", + sheetId: 42, + spreadsheet: true, + }, + metadataValue: "Test string", + visibility: "Test string", + }, + gridRange: { + endColumnIndex: 42, + endRowIndex: 42, + sheetId: 42, + startColumnIndex: 42, + startRowIndex: 42, + }, + }, + majorDimension: "Test string", + values: [ + [ + 42 ] ], + } ], + includeValuesInResponse: true, + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + valueInputOption: "Test string", + }); + /** + * Clears values from a spreadsheet. + * The caller must specify the spreadsheet ID and range. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + */ + await gapi.client.sheets.spreadsheets.values.clear({ + range: "Test string", + spreadsheetId: "Test string", + }, { + }); + /** + * Returns a range of values from a spreadsheet. + * The caller must specify the spreadsheet ID and a range. + */ + await gapi.client.sheets.spreadsheets.values.get({ + dateTimeRenderOption: "Test string", + majorDimension: "Test string", + range: "Test string", + spreadsheetId: "Test string", + valueRenderOption: "Test string", + }); + /** + * Sets values in a range of a spreadsheet. + * The caller must specify the spreadsheet ID, range, and + * a valueInputOption. + */ + await gapi.client.sheets.spreadsheets.values.update({ + includeValuesInResponse: true, + range: "Test string", + responseDateTimeRenderOption: "Test string", + responseValueRenderOption: "Test string", + spreadsheetId: "Test string", + valueInputOption: "Test string", + }, { + majorDimension: "Test string", + range: "Test string", + values: [ + [ + 42 ] ], }); } }); diff --git a/types/gapi.client.sheets/index.d.ts b/types/gapi.client.sheets/index.d.ts index def8ea62b4..3e8af8827d 100644 --- a/types/gapi.client.sheets/index.d.ts +++ b/types/gapi.client.sheets/index.d.ts @@ -2,19 +2,20 @@ // Project: https://developers.google.com/sheets/ // Definitions by: Maxim Mazurok // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.7 +// TypeScript Version: 2.8 // IMPORTANT // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually. // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator // Generated from: https://sheets.googleapis.com/$discovery/rest?version=v4 +// Revision: 20200402 /// declare namespace gapi.client { /** Load Google Sheets API v4 */ - function load(name: 'sheets', version: 'v4'): PromiseLike; - function load(name: 'sheets', version: 'v4', callback: () => any): void; + function load(name: "sheets", version: "v4"): PromiseLike; + function load(name: "sheets", version: "v4", callback: () => any): void; namespace sheets { interface AddBandingRequest { @@ -25,12 +26,10 @@ declare namespace gapi.client { */ bandedRange?: BandedRange; } - interface AddBandingResponse { /** The banded range that was added. */ bandedRange?: BandedRange; } - interface AddChartRequest { /** * The chart that should be added to the spreadsheet, including the position @@ -40,29 +39,24 @@ declare namespace gapi.client { */ chart?: EmbeddedChart; } - interface AddChartResponse { /** The newly added chart. */ chart?: EmbeddedChart; } - interface AddConditionalFormatRuleRequest { /** The zero-based index where the rule should be inserted. */ index?: number; /** The rule to add. */ rule?: ConditionalFormatRule; } - interface AddDimensionGroupRequest { /** The range over which to create a group. */ range?: DimensionRange; } - interface AddDimensionGroupResponse { /** All groups of a dimension after adding a group to that dimension. */ dimensionGroups?: DimensionGroup[]; } - interface AddFilterViewRequest { /** * The filter to add. The filterViewId @@ -71,12 +65,10 @@ declare namespace gapi.client { */ filter?: FilterView; } - interface AddFilterViewResponse { /** The newly added filter view. */ filter?: FilterView; } - interface AddNamedRangeRequest { /** * The named range to add. The namedRangeId @@ -85,12 +77,10 @@ declare namespace gapi.client { */ namedRange?: NamedRange; } - interface AddNamedRangeResponse { /** The named range to add. */ namedRange?: NamedRange; } - interface AddProtectedRangeRequest { /** * The protected range to be added. The @@ -100,12 +90,10 @@ declare namespace gapi.client { */ protectedRange?: ProtectedRange; } - interface AddProtectedRangeResponse { /** The newly added protected range. */ protectedRange?: ProtectedRange; } - interface AddSheetRequest { /** * The properties the new sheet should have. @@ -116,12 +104,10 @@ declare namespace gapi.client { */ properties?: SheetProperties; } - interface AddSheetResponse { /** The properties of the newly added sheet. */ properties?: SheetProperties; } - interface AddSlicerRequest { /** * The slicer that should be added to the spreadsheet, including @@ -131,12 +117,10 @@ declare namespace gapi.client { */ slicer?: Slicer; } - interface AddSlicerResponse { /** The newly added slicer. */ slicer?: Slicer; } - interface AppendCellsRequest { /** * The fields of CellData that should be updated. @@ -150,7 +134,6 @@ declare namespace gapi.client { /** The sheet ID to append the data to. */ sheetId?: number; } - interface AppendDimensionRequest { /** Whether rows or columns should be appended. */ dimension?: string; @@ -159,7 +142,6 @@ declare namespace gapi.client { /** The sheet to append rows or columns to. */ sheetId?: number; } - interface AppendValuesResponse { /** The spreadsheet the updates were applied to. */ spreadsheetId?: string; @@ -172,7 +154,6 @@ declare namespace gapi.client { /** Information about the updates that were applied. */ updates?: UpdateValuesResponse; } - interface AutoFillRequest { /** * The range to autofill. This will examine the range and detect @@ -192,12 +173,10 @@ declare namespace gapi.client { */ useAlternateSeries?: boolean; } - interface AutoResizeDimensionsRequest { /** The dimensions to automatically resize. */ dimensions?: DimensionRange; } - interface BandedRange { /** The id of the banded range. */ bandedRangeId?: number; @@ -216,30 +195,55 @@ declare namespace gapi.client { */ rowProperties?: BandingProperties; } - interface BandingProperties { /** The first color that is alternating. (Required) */ firstBandColor?: Color; + /** + * The first color that is alternating. (Required) + * If first_band_color is also set, this field takes precedence. + */ + firstBandColorStyle?: ColorStyle; /** * The color of the last row or column. If this field is not set, the last - * row or column will be filled with either first_band_color or + * row or column is filled with either first_band_color or * second_band_color, depending on the color of the previous row or * column. */ footerColor?: Color; /** - * The color of the first row or column. If this field is set, the first - * row or column will be filled with this color and the colors will - * alternate between first_band_color and second_band_color starting - * from the second row or column. Otherwise, the first row or column will be - * filled with first_band_color and the colors will proceed to alternate - * as they normally would. + * The color of the last row or column. If this field is not set, the last + * row or column is filled with either first_band_color or + * second_band_color, depending on the color of the previous row or + * column. + * If footer_color is also set, this field takes precedence. + */ + footerColorStyle?: ColorStyle; + /** + * The color of the first row or column. If this field is set, the first row + * or column is filled with this color and the colors alternate between + * first_band_color and second_band_color starting from the second + * row or column. Otherwise, the first row or column is filled with + * first_band_color and the colors proceed to alternate as they normally + * would. */ headerColor?: Color; + /** + * The color of the first row or column. If this field is set, the first row + * or column is filled with this color and the colors alternate between + * first_band_color and second_band_color starting from the second + * row or column. Otherwise, the first row or column is filled with + * first_band_color and the colors proceed to alternate as they normally + * would. If header_color is also set, this field takes precedence. + */ + headerColorStyle?: ColorStyle; /** The second color that is alternating. (Required) */ secondBandColor?: Color; + /** + * The second color that is alternating. (Required) + * If second_band_color is also set, this field takes precedence. + */ + secondBandColorStyle?: ColorStyle; } - interface BaselineValueFormat { /** The comparison type of key value with baseline value. */ comparisonType?: string; @@ -253,6 +257,12 @@ declare namespace gapi.client { * key value. This field is optional. */ negativeColor?: Color; + /** + * Color to be used, in case baseline value represents a negative change for + * key value. This field is optional. + * If negative_color is also set, this field takes precedence. + */ + negativeColorStyle?: ColorStyle; /** * Specifies the horizontal text positioning of baseline value. * This field is optional. If not specified, default positioning is used. @@ -263,10 +273,15 @@ declare namespace gapi.client { * key value. This field is optional. */ positiveColor?: Color; + /** + * Color to be used, in case baseline value represents a positive change for + * key value. This field is optional. + * If positive_color is also set, this field takes precedence. + */ + positiveColorStyle?: ColorStyle; /** Text formatting options for baseline value. */ textFormat?: TextFormat; } - interface BasicChartAxis { /** * The format of the title. @@ -285,7 +300,6 @@ declare namespace gapi.client { /** The view window options for this axis. */ viewWindowOptions?: ChartAxisViewWindowOptions; } - interface BasicChartDomain { /** * The data of the domain. For example, if charting stock prices over time, @@ -295,13 +309,18 @@ declare namespace gapi.client { /** True to reverse the order of the domain values (horizontal axis). */ reversed?: boolean; } - interface BasicChartSeries { /** - * The color for elements (i.e. bars, lines, points) associated with this - * series. If empty, a default color is used. + * The color for elements (such as bars, lines, and points) associated with + * this series. If empty, a default color is used. */ color?: Color; + /** + * The color for elements (such as bars, lines, and points) associated with + * this series. If empty, a default color is used. + * If color is also set, this field takes precedence. + */ + colorStyle?: ColorStyle; /** * The line style of this series. Valid only if the * chartType is AREA, @@ -333,7 +352,6 @@ declare namespace gapi.client { */ type?: string; } - interface BasicChartSpec { /** The axis on the chart. */ axis?: BasicChartAxis[]; @@ -385,7 +403,6 @@ declare namespace gapi.client { */ threeDimensional?: boolean; } - interface BasicFilter { /** * The criteria for showing/hiding values per column. @@ -401,46 +418,38 @@ declare namespace gapi.client { */ sortSpecs?: SortSpec[]; } - interface BatchClearValuesByDataFilterRequest { /** The DataFilters used to determine which ranges to clear. */ dataFilters?: DataFilter[]; } - interface BatchClearValuesByDataFilterResponse { /** - * The ranges that were cleared, in A1 notation. - * (If the requests were for an unbounded range or a ranger larger - * than the bounds of the sheet, this will be the actual ranges - * that were cleared, bounded to the sheet's limits.) + * 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. */ clearedRanges?: string[]; /** The spreadsheet the updates were applied to. */ spreadsheetId?: string; } - interface BatchClearValuesRequest { /** The ranges to clear, in A1 notation. */ ranges?: string[]; } - interface BatchClearValuesResponse { /** - * The ranges that were cleared, in A1 notation. - * (If the requests were for an unbounded range or a ranger larger - * than the bounds of the sheet, this will be the actual ranges - * that were cleared, bounded to the sheet's limits.) + * 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. */ clearedRanges?: string[]; /** The spreadsheet the updates were applied to. */ spreadsheetId?: string; } - interface BatchGetValuesByDataFilterRequest { /** - * The data filters used to match the ranges of values to retrieve. Ranges - * that match any of the specified data filters will be included in the - * response. + * The data filters used to match the ranges of values to retrieve. Ranges + * that match any of the specified data filters are included in the response. */ dataFilters?: DataFilter[]; /** @@ -454,10 +463,9 @@ declare namespace gapi.client { * The major dimension that results should use. * * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - * then a request that selects that range and sets `majorDimension=ROWS` will - * return `[[1,2],[3,4]]`, - * whereas a request that sets `majorDimension=COLUMNS` will return - * `[[1,3],[2,4]]`. + * then a request that selects that range and sets `majorDimension=ROWS` + * returns `[[1,2],[3,4]]`, whereas a request that sets + * `majorDimension=COLUMNS` returns `[[1,3],[2,4]]`. */ majorDimension?: string; /** @@ -466,14 +474,12 @@ declare namespace gapi.client { */ valueRenderOption?: string; } - interface BatchGetValuesByDataFilterResponse { /** The ID of the spreadsheet the data was retrieved from. */ spreadsheetId?: string; /** The requested values with the list of data filters that matched them. */ valueRanges?: MatchedValueRange[]; } - interface BatchGetValuesResponse { /** The ID of the spreadsheet the data was retrieved from. */ spreadsheetId?: string; @@ -483,7 +489,6 @@ declare namespace gapi.client { */ valueRanges?: ValueRange[]; } - interface BatchUpdateSpreadsheetRequest { /** * Determines if the update response should include the spreadsheet @@ -498,17 +503,16 @@ declare namespace gapi.client { requests?: Request[]; /** * True if grid data should be returned. Meaningful only if - * if include_spreadsheet_in_response is 'true'. + * include_spreadsheet_in_response is 'true'. * This parameter is ignored if a field mask was set in the request. */ responseIncludeGridData?: boolean; /** * Limits the ranges included in the response spreadsheet. - * Meaningful only if include_spreadsheet_response is 'true'. + * Meaningful only if include_spreadsheet_in_response is 'true'. */ responseRanges?: string[]; } - interface BatchUpdateSpreadsheetResponse { /** * The reply of the updates. This maps 1:1 with the updates, although @@ -523,22 +527,21 @@ declare namespace gapi.client { */ updatedSpreadsheet?: Spreadsheet; } - interface BatchUpdateValuesByDataFilterRequest { /** * The new values to apply to the spreadsheet. If more than one range is - * matched by the specified DataFilter the specified values will be - * applied to all of those ranges. + * matched by the specified DataFilter the specified values are applied to + * all of those ranges. */ data?: DataFilterValueRange[]; /** * Determines if the update response should include the values * of the cells that were updated. By default, responses * do not include the updated values. The `updatedData` field within - * each of the BatchUpdateValuesResponse.responses will contain - * the updated values. If the range to write was larger than than the range - * actually written, the response will include all values in the requested - * range (excluding trailing empty rows and columns). + * each of the BatchUpdateValuesResponse.responses contains the updated + * values. If the range to write was larger than the range actually written, + * the response includes all values in the requested range (excluding trailing + * empty rows and columns). */ includeValuesInResponse?: boolean; /** @@ -557,7 +560,6 @@ declare namespace gapi.client { /** How the input data should be interpreted. */ valueInputOption?: string; } - interface BatchUpdateValuesByDataFilterResponse { /** The response for each range updated. */ responses?: UpdateValuesByDataFilterResponse[]; @@ -578,7 +580,6 @@ declare namespace gapi.client { */ totalUpdatedSheets?: number; } - interface BatchUpdateValuesRequest { /** The new values to apply to the spreadsheet. */ data?: ValueRange[]; @@ -586,10 +587,10 @@ declare namespace gapi.client { * Determines if the update response should include the values * of the cells that were updated. By default, responses * do not include the updated values. The `updatedData` field within - * each of the BatchUpdateValuesResponse.responses will contain - * the updated values. If the range to write was larger than than the range - * actually written, the response will include all values in the requested - * range (excluding trailing empty rows and columns). + * each of the BatchUpdateValuesResponse.responses contains the updated + * values. If the range to write was larger than the range actually written, + * the response includes all values in the requested range (excluding trailing + * empty rows and columns). */ includeValuesInResponse?: boolean; /** @@ -608,7 +609,6 @@ declare namespace gapi.client { /** How the input data should be interpreted. */ valueInputOption?: string; } - interface BatchUpdateValuesResponse { /** * One UpdateValuesResponse per requested range, in the same order as @@ -632,7 +632,6 @@ declare namespace gapi.client { */ totalUpdatedSheets?: number; } - interface BooleanCondition { /** The type of condition. */ type?: string; @@ -644,7 +643,6 @@ declare namespace gapi.client { */ values?: ConditionValue[]; } - interface BooleanRule { /** * The condition of the rule. If the condition evaluates to true, @@ -661,10 +659,14 @@ declare namespace gapi.client { */ format?: CellFormat; } - interface Border { /** The color of the border. */ color?: Color; + /** + * The color of the border. + * If color is also set, this field takes precedence. + */ + colorStyle?: ColorStyle; /** The style of the border. */ style?: string; /** @@ -673,7 +675,6 @@ declare namespace gapi.client { */ width?: number; } - interface Borders { /** The bottom border of the cell. */ bottom?: Border; @@ -684,10 +685,14 @@ declare namespace gapi.client { /** The top border of the cell. */ top?: Border; } - interface BubbleChartSpec { /** The bubble border color. */ bubbleBorderColor?: Color; + /** + * The bubble border color. + * If bubble_border_color is also set, this field takes precedence. + */ + bubbleBorderColorStyle?: ColorStyle; /** The data containing the bubble labels. These do not need to be unique. */ bubbleLabels?: ChartData; /** @@ -737,7 +742,6 @@ declare namespace gapi.client { */ series?: ChartData; } - interface CandlestickChartSpec { /** * The Candlestick chart data. @@ -751,7 +755,6 @@ declare namespace gapi.client { */ domain?: CandlestickDomain; } - interface CandlestickData { /** * The range data (vertical axis) for the close/final value for each candle. @@ -776,19 +779,16 @@ declare namespace gapi.client { */ openSeries?: CandlestickSeries; } - interface CandlestickDomain { /** The data of the CandlestickDomain. */ data?: ChartData; /** True to reverse the order of the domain values (horizontal axis). */ reversed?: boolean; } - interface CandlestickSeries { /** The data of the CandlestickSeries. */ data?: ChartData; } - interface CellData { /** * A data validation rule on the cell, if any. @@ -860,10 +860,14 @@ declare namespace gapi.client { */ userEnteredValue?: ExtendedValue; } - interface CellFormat { /** The background color of the cell. */ backgroundColor?: Color; + /** + * The background color of the cell. + * If background_color is also set, this field takes precedence. + */ + backgroundColorStyle?: ColorStyle; /** The borders of the cell. */ borders?: Borders; /** The horizontal alignment of the value in the cell. */ @@ -885,7 +889,6 @@ declare namespace gapi.client { /** The wrap strategy for the value in the cell. */ wrapStrategy?: string; } - interface ChartAxisViewWindowOptions { /** * The maximum numeric value to be shown in this view window. If unset, will @@ -900,7 +903,6 @@ declare namespace gapi.client { /** The view window's mode. */ viewWindowMode?: string; } - interface ChartCustomNumberFormatOptions { /** * Custom prefix to be prepended to the chart attribute. @@ -913,12 +915,10 @@ declare namespace gapi.client { */ suffix?: string; } - interface ChartData { /** The source ranges of the data. */ sourceRange?: ChartSourceRange; } - interface ChartSourceRange { /** * The ranges of data for a series or domain. @@ -942,7 +942,6 @@ declare namespace gapi.client { */ sources?: GridRange[]; } - interface ChartSpec { /** * The alternative text that describes the chart. This is often used @@ -954,6 +953,12 @@ declare namespace gapi.client { * Not applicable to Org charts. */ backgroundColor?: Color; + /** + * The background color of the entire chart. + * Not applicable to Org charts. + * If background_color is also set, this field takes precedence. + */ + backgroundColorStyle?: ColorStyle; /** * A basic chart specification, can be one of many kinds of charts. * See BasicChartType for the list of all @@ -1015,16 +1020,13 @@ declare namespace gapi.client { /** A waterfall chart specification. */ waterfallChart?: WaterfallChartSpec; } - interface ClearBasicFilterRequest { /** The sheet ID on which the basic filter should be cleared. */ sheetId?: number; } - // tslint:disable-next-line:no-empty-interface interface ClearValuesRequest { } - interface ClearValuesResponse { /** * The range (in A1 notation) that was cleared. @@ -1036,7 +1038,6 @@ declare namespace gapi.client { /** The spreadsheet the updates were applied to. */ spreadsheetId?: string; } - interface Color { /** * The fraction of this color that should be applied to the pixel. That is, @@ -1059,14 +1060,23 @@ declare namespace gapi.client { /** The amount of red in the color as a value in the interval [0, 1]. */ red?: number; } - interface ColorStyle { /** RGB color. */ rgbColor?: Color; /** Theme color. */ themeColor?: string; } - + interface ConditionalFormatRule { + /** The formatting is either "on" or "off" according to the rule. */ + booleanRule?: BooleanRule; + /** The formatting will vary based on the gradients in the rule. */ + gradientRule?: GradientRule; + /** + * The ranges that are formatted if the condition is true. + * All the ranges must be on the same grid. + */ + ranges?: GridRange[]; + } interface ConditionValue { /** * A relative date (based on the current date). @@ -1088,19 +1098,6 @@ declare namespace gapi.client { */ userEnteredValue?: string; } - - interface ConditionalFormatRule { - /** The formatting is either "on" or "off" according to the rule. */ - booleanRule?: BooleanRule; - /** The formatting will vary based on the gradients in the rule. */ - gradientRule?: GradientRule; - /** - * The ranges that are formatted if the condition is true. - * All the ranges must be on the same grid. - */ - ranges?: GridRange[]; - } - interface CopyPasteRequest { /** * The location to paste to. If the range covers a span that's @@ -1117,22 +1114,18 @@ declare namespace gapi.client { /** The source range to copy. */ source?: GridRange; } - interface CopySheetToAnotherSpreadsheetRequest { /** The ID of the spreadsheet to copy the sheet to. */ destinationSpreadsheetId?: string; } - interface CreateDeveloperMetadataRequest { /** The developer metadata to create. */ developerMetadata?: DeveloperMetadata; } - interface CreateDeveloperMetadataResponse { /** The developer metadata that was created. */ developerMetadata?: DeveloperMetadata; } - interface CutPasteRequest { /** The top-left coordinate where the data should be pasted. */ destination?: GridCoordinate; @@ -1144,7 +1137,6 @@ declare namespace gapi.client { /** The source data to cut. */ source?: GridRange; } - interface DataFilter { /** Selects data that matches the specified A1 range. */ a1Range?: string; @@ -1156,7 +1148,6 @@ declare namespace gapi.client { /** Selects data that matches the range described by the GridRange. */ gridRange?: GridRange; } - interface DataFilterValueRange { /** The data filter describing the location of the values in the spreadsheet. */ dataFilter?: DataFilter; @@ -1164,13 +1155,12 @@ declare namespace gapi.client { majorDimension?: string; /** * The data to be written. If the provided values exceed any of the ranges - * matched by the data filter then the request will fail. If the provided - * values are less than the matched ranges only the specified values will be - * written, existing values in the matched ranges will remain unaffected. + * matched by the data filter then the request fails. If the provided values + * are less than the matched ranges only the specified values are written, + * existing values in the matched ranges remain unaffected. */ values?: any[][]; } - interface DataValidationRule { /** The condition that data in the cell must match. */ condition?: BooleanCondition; @@ -1184,29 +1174,24 @@ declare namespace gapi.client { /** True if invalid data should be rejected. */ strict?: boolean; } - interface DateTimeRule { /** The type of date-time grouping to apply. */ type?: string; } - interface DeleteBandingRequest { /** The ID of the banded range to delete. */ bandedRangeId?: number; } - interface DeleteConditionalFormatRuleRequest { /** The zero-based index of the rule to be deleted. */ index?: number; /** The sheet the rule is being deleted from. */ sheetId?: number; } - interface DeleteConditionalFormatRuleResponse { /** The rule that was deleted. */ rule?: ConditionalFormatRule; } - interface DeleteDeveloperMetadataRequest { /** * The data filter describing the criteria used to select which developer @@ -1214,27 +1199,22 @@ declare namespace gapi.client { */ dataFilter?: DataFilter; } - interface DeleteDeveloperMetadataResponse { /** The metadata that was deleted. */ deletedDeveloperMetadata?: DeveloperMetadata[]; } - interface DeleteDimensionGroupRequest { /** The range of the group to be deleted. */ range?: DimensionRange; } - interface DeleteDimensionGroupResponse { /** All groups of a dimension after deleting a group from that dimension. */ dimensionGroups?: DimensionGroup[]; } - interface DeleteDimensionRequest { /** The dimensions to delete from the sheet. */ range?: DimensionRange; } - interface DeleteDuplicatesRequest { /** * The columns in the range to analyze for duplicate values. If no columns are @@ -1244,32 +1224,26 @@ declare namespace gapi.client { /** The range to remove duplicates rows from. */ range?: GridRange; } - interface DeleteDuplicatesResponse { /** The number of duplicate rows removed. */ duplicatesRemovedCount?: number; } - interface DeleteEmbeddedObjectRequest { /** The ID of the embedded object to delete. */ objectId?: number; } - interface DeleteFilterViewRequest { /** The ID of the filter to delete. */ filterId?: number; } - interface DeleteNamedRangeRequest { /** The ID of the named range to delete. */ namedRangeId?: string; } - interface DeleteProtectedRangeRequest { /** The ID of the protected range to delete. */ protectedRangeId?: number; } - interface DeleteRangeRequest { /** The range of cells to delete. */ range?: GridRange; @@ -1281,12 +1255,10 @@ declare namespace gapi.client { */ shiftDimension?: string; } - interface DeleteSheetRequest { /** The ID of the sheet to delete. */ sheetId?: number; } - interface DeveloperMetadata { /** The location where the metadata is associated. */ location?: DeveloperMetadataLocation; @@ -1309,7 +1281,6 @@ declare namespace gapi.client { */ visibility?: string; } - interface DeveloperMetadataLocation { /** * Represents the row or column when metadata is associated with @@ -1324,7 +1295,6 @@ declare namespace gapi.client { /** True when metadata is associated with an entire spreadsheet. */ spreadsheet?: boolean; } - interface DeveloperMetadataLookup { /** * Determines how this lookup matches the location. If this field is @@ -1382,7 +1352,6 @@ declare namespace gapi.client { */ visibility?: string; } - interface DimensionGroup { /** * This field is true if this group is collapsed. A collapsed group remains @@ -1403,7 +1372,6 @@ declare namespace gapi.client { /** The range over which this group exists. */ range?: DimensionRange; } - interface DimensionProperties { /** The developer metadata associated with a single row or column. */ developerMetadata?: DeveloperMetadata[]; @@ -1417,7 +1385,6 @@ declare namespace gapi.client { /** The height (if a row) or width (if a column) of the dimension in pixels. */ pixelSize?: number; } - interface DimensionRange { /** The dimension of the span. */ dimension?: string; @@ -1428,17 +1395,14 @@ declare namespace gapi.client { /** The start (inclusive) of the span, or not set if unbounded. */ startIndex?: number; } - interface DuplicateFilterViewRequest { /** The ID of the filter being duplicated. */ filterId?: number; } - interface DuplicateFilterViewResponse { /** The newly created filter. */ filter?: FilterView; } - interface DuplicateSheetRequest { /** * The zero-based index where the new sheet should be inserted. @@ -1456,12 +1420,10 @@ declare namespace gapi.client { /** The sheet to duplicate. */ sourceSheetId?: number; } - interface DuplicateSheetResponse { /** The properties of the duplicate sheet. */ properties?: SheetProperties; } - interface Editors { /** * True if anyone in the document's domain has edit access to the protected @@ -1473,7 +1435,6 @@ declare namespace gapi.client { /** The email addresses of users with edit access to the protected range. */ users?: string[]; } - interface EmbeddedChart { /** The ID of the chart. */ chartId?: number; @@ -1482,7 +1443,6 @@ declare namespace gapi.client { /** The specification of the chart. */ spec?: ChartSpec; } - interface EmbeddedObjectPosition { /** * If true, the embedded object is put on a new sheet whose ID @@ -1497,7 +1457,6 @@ declare namespace gapi.client { */ sheetId?: number; } - interface ErrorValue { /** * A message with more information about the error @@ -1507,7 +1466,6 @@ declare namespace gapi.client { /** The type of error. */ type?: string; } - interface ExtendedValue { /** Represents a boolean value. */ boolValue?: boolean; @@ -1532,7 +1490,6 @@ declare namespace gapi.client { */ stringValue?: string; } - interface FilterCriteria { /** * A condition that must be true for values to be shown. @@ -1544,19 +1501,29 @@ declare namespace gapi.client { hiddenValues?: string[]; /** * The background fill color to filter by; only cells with this fill color are - * shown. Mutually exclusive with all other filter criteria. Requests to set - * this field will fail with a 400 error if any other filter criteria field is - * set. + * shown. Mutually exclusive with visible_foreground_color. */ visibleBackgroundColor?: Color; /** - * The text color to filter by; only cells with this text color are shown. - * Mutually exclusive with all other filter criteria. Requests to set this - * field will fail with a 400 error if any other filter criteria field is set. + * The background fill color to filter by; only cells with this fill color are + * shown. This field is mutually exclusive with visible_foreground_color, + * and must be set to an RGB-type color. If visible_background_color is + * also set, this field takes precedence. + */ + visibleBackgroundColorStyle?: ColorStyle; + /** + * The foreground color to filter by; only cells with this foreground color + * are shown. Mutually exclusive with visible_background_color. */ visibleForegroundColor?: Color; + /** + * The foreground color to filter by; only cells with this foreground color + * are shown. This field is mutually exclusive with + * visible_background_color, and must be set to an RGB-type color. If + * visible_foreground_color is also set, this field takes precedence. + */ + visibleForegroundColorStyle?: ColorStyle; } - interface FilterView { /** * The criteria for showing/hiding values per column. @@ -1588,7 +1555,6 @@ declare namespace gapi.client { /** The name of the filter view. */ title?: string; } - interface FindReplaceRequest { /** True to find/replace over all sheets. */ allSheets?: boolean; @@ -1621,7 +1587,6 @@ declare namespace gapi.client { /** The sheet to find/replace over. */ sheetId?: number; } - interface FindReplaceResponse { /** The number of formula cells changed. */ formulasChanged?: number; @@ -1638,7 +1603,6 @@ declare namespace gapi.client { /** The number of non-formula cells changed. */ valuesChanged?: number; } - interface GetSpreadsheetByDataFilterRequest { /** * The DataFilters used to select which ranges to retrieve from @@ -1651,7 +1615,6 @@ declare namespace gapi.client { */ includeGridData?: boolean; } - interface GradientRule { /** The final interpolation point. */ maxpoint?: InterpolationPoint; @@ -1660,7 +1623,6 @@ declare namespace gapi.client { /** The starting interpolation point. */ minpoint?: InterpolationPoint; } - interface GridCoordinate { /** The column index of the coordinate. */ columnIndex?: number; @@ -1669,7 +1631,6 @@ declare namespace gapi.client { /** The sheet this coordinate is on. */ sheetId?: number; } - interface GridData { /** * Metadata about the requested columns in the grid, starting with the column @@ -1693,7 +1654,6 @@ declare namespace gapi.client { /** The first row this GridData refers to, zero-based. */ startRow?: number; } - interface GridProperties { /** The number of columns in the grid. */ columnCount?: number; @@ -1710,7 +1670,6 @@ declare namespace gapi.client { /** True if the row grouping control toggle is shown after the group. */ rowGroupControlAfter?: boolean; } - interface GridRange { /** The end column (exclusive) of the range, or not set if unbounded. */ endColumnIndex?: number; @@ -1723,7 +1682,6 @@ declare namespace gapi.client { /** The start row (inclusive) of the range, or not set if unbounded. */ startRowIndex?: number; } - interface HistogramChartSpec { /** * By default the bucket size (the range of values stacked in a single @@ -1756,7 +1714,6 @@ declare namespace gapi.client { */ showItemDividers?: boolean; } - interface HistogramRule { /** * The maximum value at which items are placed into buckets @@ -1773,17 +1730,22 @@ declare namespace gapi.client { */ start?: number; } - interface HistogramSeries { /** * The color of the column representing this series in each bucket. * This field is optional. */ barColor?: Color; + /** + * The color of the column representing this series in each bucket. + * This field is optional. + * If bar_color is also set, this field takes precedence. + */ + barColorStyle?: ColorStyle; /** The data for this histogram series. */ data?: ChartData; } - + // tslint:disable-next-line:interface-name interface InsertDimensionRequest { /** * Whether dimension properties should be extended from the dimensions @@ -1803,7 +1765,7 @@ declare namespace gapi.client { /** The dimensions to insert. Both the start and end indexes must be bounded. */ range?: DimensionRange; } - + // tslint:disable-next-line:interface-name interface InsertRangeRequest { /** The range to insert new cells into. */ range?: GridRange; @@ -1814,10 +1776,15 @@ declare namespace gapi.client { */ shiftDimension?: string; } - + // tslint:disable-next-line:interface-name interface InterpolationPoint { /** The color this interpolation point should use. */ color?: Color; + /** + * The color this interpolation point should use. + * If color is also set, this field takes precedence. + */ + colorStyle?: ColorStyle; /** How the value should be interpreted. */ type?: string; /** @@ -1827,7 +1794,7 @@ declare namespace gapi.client { */ value?: string; } - + // tslint:disable-next-line:interface-name interface IterativeCalculationSettings { /** * When iterative calculation is enabled and successive results differ by @@ -1840,7 +1807,6 @@ declare namespace gapi.client { */ maxIterations?: number; } - interface KeyValueFormat { /** * Specifies the horizontal text positioning of key value. @@ -1850,14 +1816,12 @@ declare namespace gapi.client { /** Text formatting options for key value. */ textFormat?: TextFormat; } - interface LineStyle { /** The dash type of the line. */ type?: string; /** The thickness of the line, in px. */ width?: number; } - interface ManualRule { /** * The list of group names and the corresponding items from the source data @@ -1865,7 +1829,6 @@ declare namespace gapi.client { */ groups?: ManualRuleGroup[]; } - interface ManualRuleGroup { /** * The group name, which must be a string. Each group in a given @@ -1880,14 +1843,12 @@ declare namespace gapi.client { */ items?: ExtendedValue[]; } - interface MatchedDeveloperMetadata { /** All filters matching the returned developer metadata. */ dataFilters?: DataFilter[]; /** The developer metadata matching the specified filters. */ developerMetadata?: DeveloperMetadata; } - interface MatchedValueRange { /** * The DataFilters from the request that matched the range of @@ -1897,14 +1858,12 @@ declare namespace gapi.client { /** The values matched by the DataFilter. */ valueRange?: ValueRange; } - interface MergeCellsRequest { /** How the cells should be merged. */ mergeType?: string; /** The range of cells to merge. */ range?: GridRange; } - interface MoveDimensionRequest { /** * The zero-based start index of where to move the source data to, @@ -1924,7 +1883,6 @@ declare namespace gapi.client { /** The source dimensions to move. */ source?: DimensionRange; } - interface NamedRange { /** The name of the named range. */ name?: string; @@ -1933,7 +1891,6 @@ declare namespace gapi.client { /** The range this represents. */ range?: GridRange; } - interface NumberFormat { /** * Pattern string used for formatting. If not set, a default pattern based on @@ -1948,7 +1905,6 @@ declare namespace gapi.client { */ type?: string; } - interface OrgChartSpec { /** * The data containing the labels for all the nodes in the chart. Labels @@ -1957,6 +1913,11 @@ declare namespace gapi.client { labels?: ChartData; /** The color of the org chart nodes. */ nodeColor?: Color; + /** + * The color of the org chart nodes. + * If node_color is also set, this field takes precedence. + */ + nodeColorStyle?: ColorStyle; /** The size of the org chart nodes. */ nodeSize?: string; /** @@ -1968,6 +1929,11 @@ declare namespace gapi.client { parentLabels?: ChartData; /** The color of the selected org chart nodes. */ selectedNodeColor?: Color; + /** + * The color of the selected org chart nodes. + * If selected_node_color is also set, this field takes precedence. + */ + selectedNodeColorStyle?: ColorStyle; /** * The data containing the tooltip for the corresponding node. A blank value * results in no tooltip being displayed for the node. @@ -1975,7 +1941,6 @@ declare namespace gapi.client { */ tooltips?: ChartData; } - interface OverlayPosition { /** The cell the object is anchored to. */ anchorCell?: GridCoordinate; @@ -1994,7 +1959,6 @@ declare namespace gapi.client { /** The width of the object, in pixels. Defaults to 600. */ widthPixels?: number; } - interface Padding { /** The bottom padding of the cell. */ bottom?: number; @@ -2005,7 +1969,6 @@ declare namespace gapi.client { /** The top padding of the cell. */ top?: number; } - interface PasteDataRequest { /** The coordinate at which the data should start being inserted. */ coordinate?: GridCoordinate; @@ -2018,7 +1981,6 @@ declare namespace gapi.client { /** How the data should be pasted. */ type?: string; } - interface PieChartSpec { /** The data that covers the domain of the pie chart. */ domain?: ChartData; @@ -2031,12 +1993,10 @@ declare namespace gapi.client { /** True if the pie is three dimensional. */ threeDimensional?: boolean; } - interface PivotFilterCriteria { /** Values that should be included. Values not listed here are excluded. */ visibleValues?: string[]; } - interface PivotGroup { /** The group rule to apply to this row/column group. */ groupRule?: PivotGroupRule; @@ -2100,7 +2060,6 @@ declare namespace gapi.client { /** Metadata about values in the grouping. */ valueMetadata?: PivotGroupValueMetadata[]; } - interface PivotGroupRule { /** A DateTimeRule. */ dateTimeRule?: DateTimeRule; @@ -2109,7 +2068,6 @@ declare namespace gapi.client { /** A ManualRule. */ manualRule?: ManualRule; } - interface PivotGroupSortValueBucket { /** * Determines the bucket from which values are chosen to sort. @@ -2129,7 +2087,6 @@ declare namespace gapi.client { */ valuesIndex?: number; } - interface PivotGroupValueMetadata { /** True if the data corresponding to the value is collapsed. */ collapsed?: boolean; @@ -2140,7 +2097,6 @@ declare namespace gapi.client { */ value?: ExtendedValue; } - interface PivotTable { /** Each column grouping in the pivot table. */ columns?: PivotGroup[]; @@ -2167,7 +2123,6 @@ declare namespace gapi.client { /** A list of values to include in the pivot table. */ values?: PivotValue[]; } - interface PivotValue { /** * If specified, indicates that pivot values should be displayed as @@ -2203,7 +2158,6 @@ declare namespace gapi.client { */ summarizeFunction?: string; } - interface ProtectedRange { /** The description of this protected range. */ description?: string; @@ -2259,12 +2213,10 @@ declare namespace gapi.client { */ warningOnly?: boolean; } - interface RandomizeRangeRequest { /** The range to randomize. */ range?: GridRange; } - interface RepeatCellRequest { /** The data to write. */ cell?: CellData; @@ -2277,7 +2229,6 @@ declare namespace gapi.client { /** The range to repeat the cell in. */ range?: GridRange; } - interface Request { /** Adds a new banded range */ addBanding?: AddBandingRequest; @@ -2406,7 +2357,6 @@ declare namespace gapi.client { /** Updates the spreadsheet's properties. */ updateSpreadsheetProperties?: UpdateSpreadsheetPropertiesRequest; } - interface Response { /** A reply from adding a banded range. */ addBanding?: AddBandingResponse; @@ -2449,12 +2399,10 @@ declare namespace gapi.client { /** A reply from updating an embedded object's position. */ updateEmbeddedObjectPosition?: UpdateEmbeddedObjectPositionResponse; } - interface RowData { /** The values in the row, one per column. */ values?: CellData[]; } - interface ScorecardChartSpec { /** * The aggregation type for key and baseline chart data in scorecard chart. @@ -2493,26 +2441,22 @@ declare namespace gapi.client { */ scaleFactor?: number; } - interface SearchDeveloperMetadataRequest { /** * The data filters describing the criteria used to determine which * DeveloperMetadata entries to return. DeveloperMetadata matching any of the - * specified filters will be included in the response. + * specified filters are included in the response. */ dataFilters?: DataFilter[]; } - interface SearchDeveloperMetadataResponse { /** The metadata matching the criteria of the search request. */ matchedDeveloperMetadata?: MatchedDeveloperMetadata[]; } - interface SetBasicFilterRequest { /** The filter to set. */ filter?: BasicFilter; } - interface SetDataValidationRequest { /** The range the data validation rule should apply to. */ range?: GridRange; @@ -2522,7 +2466,6 @@ declare namespace gapi.client { */ rule?: DataValidationRule; } - interface Sheet { /** The banded (alternating colors) ranges on this sheet. */ bandedRanges?: BandedRange[]; @@ -2539,6 +2482,7 @@ declare namespace gapi.client { conditionalFormats?: ConditionalFormatRule[]; /** * 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 @@ -2566,7 +2510,6 @@ declare namespace gapi.client { /** The slicers on this sheet. */ slicers?: Slicer[]; } - interface SheetProperties { /** * Additional properties of the sheet if this sheet is a grid. @@ -2604,10 +2547,14 @@ declare namespace gapi.client { sheetType?: string; /** The color of the tab in the UI. */ tabColor?: Color; + /** + * The color of the tab in the UI. + * If tab_color is also set, this field takes precedence. + */ + tabColorStyle?: ColorStyle; /** The name of the sheet. */ title?: string; } - interface Slicer { /** * The position of the slicer. Note that slicer can be positioned only on @@ -2620,7 +2567,6 @@ declare namespace gapi.client { /** The specification of the slicer. */ spec?: SlicerSpec; } - interface SlicerSpec { /** * True if the filter should apply to pivot tables. @@ -2629,6 +2575,11 @@ declare namespace gapi.client { applyToPivotTables?: boolean; /** The background color of the slicer. */ backgroundColor?: Color; + /** + * The background color of the slicer. + * If background_color is also set, this field takes precedence. + */ + backgroundColorStyle?: ColorStyle; /** The column index in the data table on which the filter is applied to. */ columnIndex?: number; /** The data range of the slicer. */ @@ -2645,7 +2596,6 @@ declare namespace gapi.client { /** The title of the slicer. */ title?: string; } - interface SortRangeRequest { /** The range to sort. */ range?: GridRange; @@ -2655,26 +2605,36 @@ declare namespace gapi.client { */ sortSpecs?: SortSpec[]; } - interface SortSpec { /** - * The background fill color to sort by. Mutually exclusive with sorting by - * text color. Requests to set this field will fail with a 400 error if - * foreground color is also set. + * The background fill color to sort by; cells with this fill color are sorted + * to the top. Mutually exclusive with foreground_color. */ backgroundColor?: Color; + /** + * The background fill color to sort by; cells with this fill color are sorted + * to the top. Mutually exclusive with foreground_color, and must be an + * RGB-type color. If background_color is also set, this field takes + * precedence. + */ + backgroundColorStyle?: ColorStyle; /** The dimension the sort should be applied to. */ dimensionIndex?: number; /** - * The text color to sort by. Mutually exclusive with sorting by background - * fill color. Requests to set this field will fail with a 400 error if - * background color is also set. + * The foreground color to sort by; cells with this foreground color are + * sorted to the top. Mutually exclusive with background_color. */ foregroundColor?: Color; + /** + * The foreground color to sort by; cells with this foreground color are + * sorted to the top. Mutually exclusive with background_color, and must + * be an RGB-type color. If foreground_color is also set, this field takes + * precedence. + */ + foregroundColorStyle?: ColorStyle; /** The order data should be sorted. */ sortOrder?: string; } - interface SourceAndDestination { /** The dimension that data should be filled into. */ dimension?: string; @@ -2688,7 +2648,6 @@ declare namespace gapi.client { /** The location of the data to use as the source of the autofill. */ source?: GridRange; } - interface Spreadsheet { /** The developer metadata associated with a spreadsheet. */ developerMetadata?: DeveloperMetadata[]; @@ -2709,7 +2668,6 @@ declare namespace gapi.client { */ spreadsheetUrl?: string; } - interface SpreadsheetProperties { /** The amount of time to wait before volatile functions are recalculated. */ autoRecalc?: string; @@ -2721,8 +2679,8 @@ declare namespace gapi.client { defaultFormat?: CellFormat; /** * Determines whether and how circular references are resolved with iterative - * calculation. Absence of this field means that circular references will - * result in calculation errors. + * calculation. Absence of this field means that circular references result + * in calculation errors. */ iterativeCalculationSettings?: IterativeCalculationSettings; /** @@ -2748,17 +2706,15 @@ declare namespace gapi.client { /** The title of the spreadsheet. */ title?: string; } - interface SpreadsheetTheme { /** / Name of the primary font family. */ primaryFontFamily?: string; /** - * The spreadsheet theme color pairs. For update users need to give all pairs - * of theme colors. + * The spreadsheet theme color pairs. To update you must provide all theme + * color pairs. */ themeColors?: ThemeColorPair[]; } - interface TextFormat { /** True if the text is bold. */ bold?: boolean; @@ -2768,6 +2724,11 @@ declare namespace gapi.client { fontSize?: number; /** The foreground color of the text. */ foregroundColor?: Color; + /** + * The foreground color of the text. + * If foreground_color is also set, this field takes precedence. + */ + foregroundColorStyle?: ColorStyle; /** True if the text is italicized. */ italic?: boolean; /** True if the text has a strikethrough. */ @@ -2775,19 +2736,16 @@ declare namespace gapi.client { /** True if the text is underlined. */ underline?: boolean; } - interface TextFormatRun { /** The format of this run. Absent values inherit the cell's format. */ format?: TextFormat; /** The character index where this run starts. */ startIndex?: number; } - interface TextPosition { /** Horizontal alignment setting for the piece of text. */ horizontalAlignment?: string; } - interface TextRotation { /** * The angle between the standard orientation and the desired orientation. @@ -2815,7 +2773,6 @@ declare namespace gapi.client { */ vertical?: boolean; } - interface TextToColumnsRequest { /** * The delimiter to use. Used only if delimiterType is @@ -2827,14 +2784,12 @@ declare namespace gapi.client { /** The source data range. This must span exactly one column. */ source?: GridRange; } - interface ThemeColorPair { /** The concrete color corresponding to the theme color type. */ color?: ColorStyle; /** The type of the spreadsheet theme color. */ colorType?: string; } - interface TreemapChartColorScale { /** * The background color for cells with a color value greater than or equal @@ -2842,6 +2797,13 @@ declare namespace gapi.client { * specified. */ maxValueColor?: Color; + /** + * The background color for cells with a color value greater than or equal + * to maxValue. Defaults to #109618 if not + * specified. + * If max_value_color is also set, this field takes precedence. + */ + maxValueColorStyle?: ColorStyle; /** * The background color for cells with a color value at the midpoint between * minValue and @@ -2849,19 +2811,39 @@ declare namespace gapi.client { * specified. */ midValueColor?: Color; + /** + * The background color for cells with a color value at the midpoint between + * minValue and + * maxValue. Defaults to #efe6dc if not + * specified. + * If mid_value_color is also set, this field takes precedence. + */ + midValueColorStyle?: ColorStyle; /** * The background color for cells with a color value less than or equal to * minValue. Defaults to #dc3912 if not * specified. */ minValueColor?: Color; + /** + * The background color for cells with a color value less than or equal to + * minValue. Defaults to #dc3912 if not + * specified. + * If min_value_color is also set, this field takes precedence. + */ + minValueColorStyle?: ColorStyle; /** * The background color for cells that have no color data associated with * them. Defaults to #000000 if not specified. */ noDataColor?: Color; + /** + * The background color for cells that have no color data associated with + * them. Defaults to #000000 if not specified. + * If no_data_color is also set, this field takes precedence. + */ + noDataColorStyle?: ColorStyle; } - interface TreemapChartSpec { /** * The data that determines the background color of each treemap data cell. @@ -2892,6 +2874,11 @@ declare namespace gapi.client { colorScale?: TreemapChartColorScale; /** The background color for header cells. */ headerColor?: Color; + /** + * The background color for header cells. + * If header_color is also set, this field takes precedence. + */ + headerColorStyle?: ColorStyle; /** True to hide tooltips. */ hideTooltips?: boolean; /** @@ -2934,17 +2921,14 @@ declare namespace gapi.client { /** The text format for all labels on the chart. */ textFormat?: TextFormat; } - interface TrimWhitespaceRequest { /** The range whose cells to trim. */ range?: GridRange; } - interface TrimWhitespaceResponse { /** The number of cells that were trimmed of whitespace. */ cellsChangedCount?: number; } - interface UnmergeCellsRequest { /** * The range within which all cells should be unmerged. @@ -2953,7 +2937,6 @@ declare namespace gapi.client { */ range?: GridRange; } - interface UpdateBandingRequest { /** The banded range to update with the new properties. */ bandedRange?: BandedRange; @@ -2964,7 +2947,6 @@ declare namespace gapi.client { */ fields?: string; } - interface UpdateBordersRequest { /** The border to put at the bottom of the range. */ bottom?: Border; @@ -2981,7 +2963,6 @@ declare namespace gapi.client { /** The border to put at the top of the range. */ top?: Border; } - interface UpdateCellsRequest { /** * The fields of CellData that should be updated. @@ -3006,14 +2987,12 @@ declare namespace gapi.client { */ start?: GridCoordinate; } - interface UpdateChartSpecRequest { /** The ID of the chart to update. */ chartId?: number; /** The specification to apply to the chart. */ spec?: ChartSpec; } - interface UpdateConditionalFormatRuleRequest { /** The zero-based index of the rule that should be replaced or moved. */ index?: number; @@ -3027,7 +3006,6 @@ declare namespace gapi.client { */ sheetId?: number; } - interface UpdateConditionalFormatRuleResponse { /** The index of the new rule. */ newIndex?: number; @@ -3047,7 +3025,6 @@ declare namespace gapi.client { */ oldRule?: ConditionalFormatRule; } - interface UpdateDeveloperMetadataRequest { /** The filters matching the developer metadata entries to update. */ dataFilters?: DataFilter[]; @@ -3060,12 +3037,10 @@ declare namespace gapi.client { */ fields?: string; } - interface UpdateDeveloperMetadataResponse { /** The updated developer metadata. */ developerMetadata?: DeveloperMetadata[]; } - interface UpdateDimensionGroupRequest { /** * The group whose state should be updated. The range and depth of the group @@ -3079,7 +3054,6 @@ declare namespace gapi.client { */ fields?: string; } - interface UpdateDimensionPropertiesRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3092,7 +3066,6 @@ declare namespace gapi.client { /** The rows or columns to update. */ range?: DimensionRange; } - interface UpdateEmbeddedObjectPositionRequest { /** * The fields of OverlayPosition @@ -3115,12 +3088,10 @@ declare namespace gapi.client { /** The ID of the object to moved. */ objectId?: number; } - interface UpdateEmbeddedObjectPositionResponse { /** The new position of the embedded object. */ position?: EmbeddedObjectPosition; } - interface UpdateFilterViewRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3131,7 +3102,6 @@ declare namespace gapi.client { /** The new properties of the filter view. */ filter?: FilterView; } - interface UpdateNamedRangeRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3142,7 +3112,6 @@ declare namespace gapi.client { /** The named range to update with the new properties. */ namedRange?: NamedRange; } - interface UpdateProtectedRangeRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3153,7 +3122,6 @@ declare namespace gapi.client { /** The protected range to update with the new properties. */ protectedRange?: ProtectedRange; } - interface UpdateSheetPropertiesRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3164,7 +3132,6 @@ declare namespace gapi.client { /** The properties to update. */ properties?: SheetProperties; } - interface UpdateSlicerSpecRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3177,7 +3144,6 @@ declare namespace gapi.client { /** The specification to apply to the slicer. */ spec?: SlicerSpec; } - interface UpdateSpreadsheetPropertiesRequest { /** * The fields that should be updated. At least one field must be specified. @@ -3188,7 +3154,6 @@ declare namespace gapi.client { /** The properties to update. */ properties?: SpreadsheetProperties; } - interface UpdateValuesByDataFilterResponse { /** The data filter that selected the range that was updated. */ dataFilter?: DataFilter; @@ -3207,7 +3172,6 @@ declare namespace gapi.client { /** The number of rows where at least one cell in the row was updated. */ updatedRows?: number; } - interface UpdateValuesResponse { /** The spreadsheet the updates were applied to. */ spreadsheetId?: string; @@ -3226,7 +3190,6 @@ declare namespace gapi.client { /** The number of rows where at least one cell in the row was updated. */ updatedRows?: number; } - interface ValueRange { /** * The major dimension of the values. @@ -3266,14 +3229,17 @@ declare namespace gapi.client { */ values?: any[][]; } - interface WaterfallChartColumnStyle { /** The color of the column. */ color?: Color; + /** + * The color of the column. + * If color is also set, this field takes precedence. + */ + colorStyle?: ColorStyle; /** The label of the column's legend. */ label?: string; } - interface WaterfallChartCustomSubtotal { /** * True if the data point at subtotal_index is the subtotal. If false, @@ -3294,14 +3260,12 @@ declare namespace gapi.client { */ subtotalIndex?: number; } - interface WaterfallChartDomain { /** The data of the WaterfallChartDomain. */ data?: ChartData; /** True to reverse the order of the domain values (horizontal axis). */ reversed?: boolean; } - interface WaterfallChartSeries { /** * Custom subtotal columns appearing in this series. The order in which @@ -3324,7 +3288,6 @@ declare namespace gapi.client { /** Styles for all subtotal columns in this series. */ subtotalColumnsStyle?: WaterfallChartColumnStyle; } - interface WaterfallChartSpec { /** The line style for the connector lines. */ connectorLineStyle?: LineStyle; @@ -3339,16 +3302,15 @@ declare namespace gapi.client { /** The stacked type. */ stackedType?: string; } - interface DeveloperMetadataResource { /** * Returns the developer metadata with the specified ID. * The caller must specify the spreadsheet ID and the developer metadata's * unique metadataId. */ - get(request: { + get(request?: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3369,12 +3331,11 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to retrieve metadata from. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; }): client.Request; - /** * Returns all developer metadata matching the specified DataFilter. * If the provided DataFilter represents a DeveloperMetadataLookup object, @@ -3384,7 +3345,7 @@ declare namespace gapi.client { */ search(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3403,43 +3364,41 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to retrieve metadata from. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: SearchDeveloperMetadataRequest; }): client.Request; - search(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the spreadsheet to retrieve metadata from. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: SearchDeveloperMetadataRequest): client.Request; + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the spreadsheet to retrieve metadata from. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: SearchDeveloperMetadataRequest): client.Request; } - interface SheetsResource { /** * Copies a single sheet from a spreadsheet to another spreadsheet. @@ -3447,7 +3406,7 @@ declare namespace gapi.client { */ copyTo(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3468,45 +3427,43 @@ declare namespace gapi.client { sheetId: number; /** The ID of the spreadsheet containing the sheet to copy. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: CopySheetToAnotherSpreadsheetRequest; }): client.Request; - copyTo(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the sheet to copy. */ - sheetId: number; - /** The ID of the spreadsheet containing the sheet to copy. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: CopySheetToAnotherSpreadsheetRequest): client.Request; + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the sheet to copy. */ + sheetId: number; + /** The ID of the spreadsheet containing the sheet to copy. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: CopySheetToAnotherSpreadsheetRequest): client.Request; } - interface ValuesResource { /** * Appends values to a spreadsheet. The input range is used to search for @@ -3526,7 +3483,7 @@ declare namespace gapi.client { */ append(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3553,7 +3510,7 @@ declare namespace gapi.client { quotaUser?: string; /** * The A1 notation of a range to search for a logical table of data. - * Values will be appended after the last row of the table. + * Values are appended after the last row of the table. */ range: string; /** @@ -3570,71 +3527,69 @@ declare namespace gapi.client { responseValueRenderOption?: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** How the input data should be interpreted. */ valueInputOption?: string; /** Request body */ resource: ValueRange; }): client.Request; - append(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** - * Determines if the update response should include the values - * of the cells that were appended. By default, responses - * do not include the updated values. - */ - includeValuesInResponse?: boolean; - /** How the input data should be inserted. */ - insertDataOption?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** - * The A1 notation of a range to search for a logical table of data. - * Values will be appended after the last row of the table. - */ - range: string; - /** - * Determines how dates, times, and durations in the response should be - * rendered. This is ignored if response_value_render_option is - * FORMATTED_VALUE. - * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. - */ - responseDateTimeRenderOption?: string; - /** - * Determines how values in the response should be rendered. - * The default render option is ValueRenderOption.FORMATTED_VALUE. - */ - responseValueRenderOption?: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - /** How the input data should be interpreted. */ - valueInputOption?: string; - }, - body: ValueRange): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** + * Determines if the update response should include the values + * of the cells that were appended. By default, responses + * do not include the updated values. + */ + includeValuesInResponse?: boolean; + /** How the input data should be inserted. */ + insertDataOption?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** + * The A1 notation of a range to search for a logical table of data. + * Values are appended after the last row of the table. + */ + range: string; + /** + * Determines how dates, times, and durations in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + */ + responseDateTimeRenderOption?: string; + /** + * Determines how values in the response should be rendered. + * The default render option is ValueRenderOption.FORMATTED_VALUE. + */ + responseValueRenderOption?: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + /** How the input data should be interpreted. */ + valueInputOption?: string; + }, + body: ValueRange): client.Request; /** * Clears one or more ranges of values from a spreadsheet. * The caller must specify the spreadsheet ID and one or more ranges. @@ -3643,7 +3598,7 @@ declare namespace gapi.client { */ batchClear(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3662,42 +3617,40 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: BatchClearValuesRequest; }): client.Request; - batchClear(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: BatchClearValuesRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: BatchClearValuesRequest): client.Request; /** * Clears one or more ranges of values from a spreadsheet. * The caller must specify the spreadsheet ID and one or more @@ -3707,7 +3660,7 @@ declare namespace gapi.client { */ batchClearByDataFilter(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3726,49 +3679,47 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: BatchClearValuesByDataFilterRequest; }): client.Request; - batchClearByDataFilter(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: BatchClearValuesByDataFilterRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: BatchClearValuesByDataFilterRequest): client.Request; /** * Returns one or more ranges of values from a spreadsheet. * The caller must specify the spreadsheet ID and one or more ranges. */ - batchGet(request: { + batchGet(request?: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3790,9 +3741,8 @@ declare namespace gapi.client { * The major dimension that results should use. * * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - * then requesting `range=A1:B2,majorDimension=ROWS` will return - * `[[1,2],[3,4]]`, - * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + * then requesting `range=A1:B2,majorDimension=ROWS` returns `[[1,2],[3,4]]`, + * whereas requesting `range=A1:B2,majorDimension=COLUMNS` returns * `[[1,3],[2,4]]`. */ majorDimension?: string; @@ -3806,17 +3756,16 @@ declare namespace gapi.client { ranges?: string | string[]; /** The ID of the spreadsheet to retrieve data from. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** * How values should be represented in the output. * The default render option is ValueRenderOption.FORMATTED_VALUE. */ valueRenderOption?: string; }): client.Request; - /** * Returns one or more ranges of values that match the specified data filters. * The caller must specify the spreadsheet ID and one or more @@ -3825,7 +3774,7 @@ declare namespace gapi.client { */ batchGetByDataFilter(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3844,42 +3793,40 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to retrieve data from. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: BatchGetValuesByDataFilterRequest; }): client.Request; - batchGetByDataFilter(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the spreadsheet to retrieve data from. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: BatchGetValuesByDataFilterRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the spreadsheet to retrieve data from. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: BatchGetValuesByDataFilterRequest): client.Request; /** * Sets values in one or more ranges of a spreadsheet. * The caller must specify the spreadsheet ID, @@ -3888,7 +3835,7 @@ declare namespace gapi.client { */ batchUpdate(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3907,42 +3854,40 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: BatchUpdateValuesRequest; }): client.Request; - batchUpdate(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: BatchUpdateValuesRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: BatchUpdateValuesRequest): client.Request; /** * Sets values in one or more ranges of a spreadsheet. * The caller must specify the spreadsheet ID, @@ -3951,7 +3896,7 @@ declare namespace gapi.client { */ batchUpdateByDataFilter(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -3970,42 +3915,40 @@ declare namespace gapi.client { quotaUser?: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: BatchUpdateValuesByDataFilterRequest; }): client.Request; - batchUpdateByDataFilter(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: BatchUpdateValuesByDataFilterRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: BatchUpdateValuesByDataFilterRequest): client.Request; /** * Clears values from a spreadsheet. * The caller must specify the spreadsheet ID and range. @@ -4014,7 +3957,7 @@ declare namespace gapi.client { */ clear(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4035,51 +3978,49 @@ declare namespace gapi.client { range: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: ClearValuesRequest; }): client.Request; - clear(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The A1 notation of the values to clear. */ - range: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: ClearValuesRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The A1 notation of the values to clear. */ + range: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: ClearValuesRequest): client.Request; /** * Returns a range of values from a spreadsheet. * The caller must specify the spreadsheet ID and a range. */ - get(request: { + get(request?: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4100,10 +4041,9 @@ declare namespace gapi.client { /** * The major dimension that results should use. * - * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - * then requesting `range=A1:B2,majorDimension=ROWS` will return - * `[[1,2],[3,4]]`, - * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then + * requesting `range=A1:B2,majorDimension=ROWS` returns `[[1,2],[3,4]]`, + * whereas requesting `range=A1:B2,majorDimension=COLUMNS` returns * `[[1,3],[2,4]]`. */ majorDimension?: string; @@ -4117,17 +4057,16 @@ declare namespace gapi.client { range: string; /** The ID of the spreadsheet to retrieve data from. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** * How values should be represented in the output. * The default render option is ValueRenderOption.FORMATTED_VALUE. */ valueRenderOption?: string; }): client.Request; - /** * Sets values in a range of a spreadsheet. * The caller must specify the spreadsheet ID, range, and @@ -4135,7 +4074,7 @@ declare namespace gapi.client { */ update(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4148,9 +4087,9 @@ declare namespace gapi.client { * Determines if the update response should include the values * of the cells that were updated. By default, responses * do not include the updated values. - * If the range to write was larger than than the range actually written, - * the response will include all values in the requested range (excluding - * trailing empty rows and columns). + * If the range to write was larger than the range actually written, the + * response includes all values in the requested range (excluding trailing + * empty rows and columns). */ includeValuesInResponse?: boolean; /** 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. */ @@ -4178,71 +4117,69 @@ declare namespace gapi.client { responseValueRenderOption?: string; /** The ID of the spreadsheet to update. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** How the input data should be interpreted. */ valueInputOption?: string; /** Request body */ resource: ValueRange; }): client.Request; - update(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** - * Determines if the update response should include the values - * of the cells that were updated. By default, responses - * do not include the updated values. - * If the range to write was larger than than the range actually written, - * the response will include all values in the requested range (excluding - * trailing empty rows and columns). - */ - includeValuesInResponse?: boolean; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The A1 notation of the values to update. */ - range: string; - /** - * Determines how dates, times, and durations in the response should be - * rendered. This is ignored if response_value_render_option is - * FORMATTED_VALUE. - * The default dateTime render option is - * DateTimeRenderOption.SERIAL_NUMBER. - */ - responseDateTimeRenderOption?: string; - /** - * Determines how values in the response should be rendered. - * The default render option is ValueRenderOption.FORMATTED_VALUE. - */ - responseValueRenderOption?: string; - /** The ID of the spreadsheet to update. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - /** How the input data should be interpreted. */ - valueInputOption?: string; - }, - body: ValueRange): client.Request; + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** + * Determines if the update response should include the values + * of the cells that were updated. By default, responses + * do not include the updated values. + * If the range to write was larger than the range actually written, the + * response includes all values in the requested range (excluding trailing + * empty rows and columns). + */ + includeValuesInResponse?: boolean; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The A1 notation of the values to update. */ + range: string; + /** + * Determines how dates, times, and durations in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. + * The default dateTime render option is + * DateTimeRenderOption.SERIAL_NUMBER. + */ + responseDateTimeRenderOption?: string; + /** + * Determines how values in the response should be rendered. + * The default render option is ValueRenderOption.FORMATTED_VALUE. + */ + responseValueRenderOption?: string; + /** The ID of the spreadsheet to update. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + /** How the input data should be interpreted. */ + valueInputOption?: string; + }, + body: ValueRange): client.Request; } - interface SpreadsheetsResource { /** * Applies one or more updates to the spreadsheet. @@ -4267,7 +4204,7 @@ declare namespace gapi.client { */ batchUpdate(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4286,46 +4223,16 @@ declare namespace gapi.client { quotaUser?: string; /** The spreadsheet to apply the updates to. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: BatchUpdateSpreadsheetRequest; }): client.Request; - batchUpdate(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The spreadsheet to apply the updates to. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: BatchUpdateSpreadsheetRequest): client.Request; - - /** Creates a spreadsheet, returning the newly created spreadsheet. */ - create(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4342,40 +4249,66 @@ declare namespace gapi.client { prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; + /** The spreadsheet to apply the updates to. */ + spreadsheetId: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: BatchUpdateSpreadsheetRequest): client.Request; + /** Creates a spreadsheet, returning the newly created spreadsheet. */ + create(request: { + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: Spreadsheet; }): client.Request; - create(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: Spreadsheet): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: Spreadsheet): client.Request; /** * Returns the spreadsheet at the given ID. * The caller must specify the spreadsheet ID. @@ -4399,9 +4332,9 @@ declare namespace gapi.client { * return only the portions of the spreadsheet that intersect the requested * ranges. Ranges are specified using A1 notation. */ - get(request: { + get(request?: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4427,12 +4360,11 @@ declare namespace gapi.client { ranges?: string | string[]; /** The spreadsheet to request. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; }): client.Request; - /** * Returns the spreadsheet at the given ID. * The caller must specify the spreadsheet ID. @@ -4459,7 +4391,7 @@ declare namespace gapi.client { */ getByDataFilter(request: { /** V1 error format. */ - '$.xgafv'?: string; + "$.xgafv"?: string; /** OAuth access token. */ access_token?: string; /** Data format for response. */ @@ -4478,42 +4410,40 @@ declare namespace gapi.client { quotaUser?: string; /** The spreadsheet to request. */ spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; /** Request body */ resource: GetSpreadsheetByDataFilterRequest; }): client.Request; - getByDataFilter(request: { - /** V1 error format. */ - '$.xgafv'?: string; - /** OAuth access token. */ - access_token?: string; - /** Data format for response. */ - alt?: string; - /** JSONP */ - callback?: string; - /** Selector specifying which fields to include in a partial response. */ - fields?: string; - /** 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. */ - key?: string; - /** OAuth 2.0 token for the current user. */ - oauth_token?: string; - /** Returns response with indentations and line breaks. */ - prettyPrint?: boolean; - /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ - quotaUser?: string; - /** The spreadsheet to request. */ - spreadsheetId: string; - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - uploadType?: string; - /** Upload protocol for media (e.g. "raw", "multipart"). */ - upload_protocol?: string; - }, - body: GetSpreadsheetByDataFilterRequest): client.Request; - + /** V1 error format. */ + "$.xgafv"?: string; + /** OAuth access token. */ + access_token?: string; + /** Data format for response. */ + alt?: string; + /** JSONP */ + callback?: string; + /** Selector specifying which fields to include in a partial response. */ + fields?: string; + /** 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. */ + key?: string; + /** OAuth 2.0 token for the current user. */ + oauth_token?: string; + /** Returns response with indentations and line breaks. */ + prettyPrint?: boolean; + /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ + quotaUser?: string; + /** The spreadsheet to request. */ + spreadsheetId: string; + /** Upload protocol for media (e.g. "raw", "multipart"). */ + upload_protocol?: string; + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + uploadType?: string; + }, + body: GetSpreadsheetByDataFilterRequest): client.Request; developerMetadata: DeveloperMetadataResource; sheets: SheetsResource; values: ValuesResource; diff --git a/types/gapi.client.sheets/readme.md b/types/gapi.client.sheets/readme.md index e027a1b6de..4c51b71670 100644 --- a/types/gapi.client.sheets/readme.md +++ b/types/gapi.client.sheets/readme.md @@ -1,10 +1,12 @@ # TypeScript typings for Google Sheets API v4 + Reads and writes Google Sheets. For detailed description please check [documentation](https://developers.google.com/sheets/). ## Installing Install typings for Google Sheets API: + ``` npm install @types/gapi.client.sheets@v4 --save-dev ``` @@ -12,46 +14,50 @@ npm install @types/gapi.client.sheets@v4 --save-dev ## Usage You need to initialize Google API client in your code: + ```typescript -gapi.load("client", () => { - // now we can use gapi.client - // ... +gapi.load('client', () => { + // now we can use gapi.client + // ... }); ``` Then load api client wrapper: + ```typescript gapi.client.load('sheets', 'v4', () => { - // now we can use gapi.client.sheets - // ... + // now we can use gapi.client.sheets + // ... }); ``` Don't forget to authenticate your client before sending any request to resources: -```typescript +```typescript // declare client_id registered in Google Developers Console var client_id = '', - scope = [ - // See, edit, create, and delete all of your Google Drive files - 'https://www.googleapis.com/auth/drive', + scope = [ + // See, edit, create, and delete all of your Google Drive files + 'https://www.googleapis.com/auth/drive', - // View and manage Google Drive files and folders that you have opened or created with this app - 'https://www.googleapis.com/auth/drive.file', + // View and manage Google Drive files and folders that you have opened or created with this app + 'https://www.googleapis.com/auth/drive.file', - // See and download all your Google Drive files - 'https://www.googleapis.com/auth/drive.readonly', + // See and download all your Google Drive files + 'https://www.googleapis.com/auth/drive.readonly', - // See, edit, create, and delete your spreadsheets in Google Drive - 'https://www.googleapis.com/auth/spreadsheets', + // See, edit, create, and delete your spreadsheets in Google Drive + 'https://www.googleapis.com/auth/spreadsheets', - // View your Google Spreadsheets - 'https://www.googleapis.com/auth/spreadsheets.readonly', + // View your Google Spreadsheets + 'https://www.googleapis.com/auth/spreadsheets.readonly', ], immediate = true; // ... -gapi.auth.authorize({ client_id: client_id, scope: scope, immediate: immediate }, authResult => { +gapi.auth.authorize( + { client_id: client_id, scope: scope, immediate: immediate }, + authResult => { if (authResult && !authResult.error) { /* handle successful authorization */ } else { diff --git a/types/gapi.client.sheets/tsconfig.json b/types/gapi.client.sheets/tsconfig.json index ec186dbfb8..a306633047 100644 --- a/types/gapi.client.sheets/tsconfig.json +++ b/types/gapi.client.sheets/tsconfig.json @@ -1,24 +1,18 @@ { - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true - }, - "files": [ - "index.d.ts", - "gapi.client.sheets-tests.ts" - ] + "compilerOptions": { + "module": "commonjs", + "lib": ["es6", "dom"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": ["index.d.ts", "gapi.client.sheets-tests.ts"] } diff --git a/types/gapi.client.sheets/tslint.json b/types/gapi.client.sheets/tslint.json index 67b2259f70..d88586e5bd 100644 --- a/types/gapi.client.sheets/tslint.json +++ b/types/gapi.client.sheets/tslint.json @@ -1,6 +1,3 @@ { - "extends": "dtslint/dt.json", - "rules": { - "await-promise": false - } -} \ No newline at end of file + "extends": "dtslint/dt.json" +}