[@types/google-apps-script] Add Advanced Service Types (#34212)

* Flatten APIs directory

* [@types/google-apps-script] Add Advanced Service types

* [@types/google-apps-script] Add content API.

* [@types/google-apps-script] Add other APIs

* [@types/google-apps-script] Add other APIs

* Remove "Blob" type
This commit is contained in:
Grant Timmerman
2019-03-26 13:27:26 -07:00
committed by Ron Buckton
parent 923fe86451
commit 1a2118b087
63 changed files with 20115 additions and 2109 deletions
View File
+434
View File
@@ -0,0 +1,434 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Adsense_v1_4 {
namespace Collection {
namespace Accounts {
namespace Adunits {
export interface CustomchannelsCollection {
// List all custom channels which the specified ad unit belongs to.
list(accountId: string, adClientId: string, adUnitId: string): Adsense_v1_4.Schema.CustomChannels;
// List all custom channels which the specified ad unit belongs to.
list(accountId: string, adClientId: string, adUnitId: string, optionalArgs: object): Adsense_v1_4.Schema.CustomChannels;
}
}
namespace Customchannels {
export interface AdunitsCollection {
// List all ad units in the specified custom channel.
list(accountId: string, adClientId: string, customChannelId: string): Adsense_v1_4.Schema.AdUnits;
// List all ad units in the specified custom channel.
list(accountId: string, adClientId: string, customChannelId: string, optionalArgs: object): Adsense_v1_4.Schema.AdUnits;
}
}
namespace Reports {
export interface SavedCollection {
// Generate an AdSense report based on the saved report ID sent in the query parameters.
generate(accountId: string, savedReportId: string): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
// Generate an AdSense report based on the saved report ID sent in the query parameters.
generate(accountId: string, savedReportId: string, optionalArgs: object): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
// List all saved reports in the specified AdSense account.
list(accountId: string): Adsense_v1_4.Schema.SavedReports;
// List all saved reports in the specified AdSense account.
list(accountId: string, optionalArgs: object): Adsense_v1_4.Schema.SavedReports;
}
}
export interface AdclientsCollection {
// Get Auto ad code for a given ad client.
getAdCode(accountId: string, adClientId: string): Adsense_v1_4.Schema.AdCode;
// List all ad clients in the specified account.
list(accountId: string): Adsense_v1_4.Schema.AdClients;
// List all ad clients in the specified account.
list(accountId: string, optionalArgs: object): Adsense_v1_4.Schema.AdClients;
}
export interface AdunitsCollection {
Customchannels?: Adsense_v1_4.Collection.Accounts.Adunits.CustomchannelsCollection;
// Gets the specified ad unit in the specified ad client for the specified account.
get(accountId: string, adClientId: string, adUnitId: string): Adsense_v1_4.Schema.AdUnit;
// Get ad code for the specified ad unit.
getAdCode(accountId: string, adClientId: string, adUnitId: string): Adsense_v1_4.Schema.AdCode;
// List all ad units in the specified ad client for the specified account.
list(accountId: string, adClientId: string): Adsense_v1_4.Schema.AdUnits;
// List all ad units in the specified ad client for the specified account.
list(accountId: string, adClientId: string, optionalArgs: object): Adsense_v1_4.Schema.AdUnits;
}
export interface AlertsCollection {
// List the alerts for the specified AdSense account.
list(accountId: string): Adsense_v1_4.Schema.Alerts;
// List the alerts for the specified AdSense account.
list(accountId: string, optionalArgs: object): Adsense_v1_4.Schema.Alerts;
// Dismiss (delete) the specified alert from the specified publisher AdSense account.
remove(accountId: string, alertId: string): void;
}
export interface CustomchannelsCollection {
Adunits?: Adsense_v1_4.Collection.Accounts.Customchannels.AdunitsCollection;
// Get the specified custom channel from the specified ad client for the specified account.
get(accountId: string, adClientId: string, customChannelId: string): Adsense_v1_4.Schema.CustomChannel;
// List all custom channels in the specified ad client for the specified account.
list(accountId: string, adClientId: string): Adsense_v1_4.Schema.CustomChannels;
// List all custom channels in the specified ad client for the specified account.
list(accountId: string, adClientId: string, optionalArgs: object): Adsense_v1_4.Schema.CustomChannels;
}
export interface PaymentsCollection {
// List the payments for the specified AdSense account.
list(accountId: string): Adsense_v1_4.Schema.Payments;
}
export interface ReportsCollection {
Saved?: Adsense_v1_4.Collection.Accounts.Reports.SavedCollection;
// Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
generate(accountId: string, startDate: string, endDate: string): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
// Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
generate(accountId: string, startDate: string, endDate: string, optionalArgs: object): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
}
export interface SavedadstylesCollection {
// List a specific saved ad style for the specified account.
get(accountId: string, savedAdStyleId: string): Adsense_v1_4.Schema.SavedAdStyle;
// List all saved ad styles in the specified account.
list(accountId: string): Adsense_v1_4.Schema.SavedAdStyles;
// List all saved ad styles in the specified account.
list(accountId: string, optionalArgs: object): Adsense_v1_4.Schema.SavedAdStyles;
}
export interface UrlchannelsCollection {
// List all URL channels in the specified ad client for the specified account.
list(accountId: string, adClientId: string): Adsense_v1_4.Schema.UrlChannels;
// List all URL channels in the specified ad client for the specified account.
list(accountId: string, adClientId: string, optionalArgs: object): Adsense_v1_4.Schema.UrlChannels;
}
}
namespace Adunits {
export interface CustomchannelsCollection {
// List all custom channels which the specified ad unit belongs to.
list(adClientId: string, adUnitId: string): Adsense_v1_4.Schema.CustomChannels;
// List all custom channels which the specified ad unit belongs to.
list(adClientId: string, adUnitId: string, optionalArgs: object): Adsense_v1_4.Schema.CustomChannels;
}
}
namespace Customchannels {
export interface AdunitsCollection {
// List all ad units in the specified custom channel.
list(adClientId: string, customChannelId: string): Adsense_v1_4.Schema.AdUnits;
// List all ad units in the specified custom channel.
list(adClientId: string, customChannelId: string, optionalArgs: object): Adsense_v1_4.Schema.AdUnits;
}
}
namespace Metadata {
export interface DimensionsCollection {
// List the metadata for the dimensions available to this AdSense account.
list(): Adsense_v1_4.Schema.Metadata;
}
export interface MetricsCollection {
// List the metadata for the metrics available to this AdSense account.
list(): Adsense_v1_4.Schema.Metadata;
}
}
namespace Reports {
export interface SavedCollection {
// Generate an AdSense report based on the saved report ID sent in the query parameters.
generate(savedReportId: string): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
// Generate an AdSense report based on the saved report ID sent in the query parameters.
generate(savedReportId: string, optionalArgs: object): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
// List all saved reports in this AdSense account.
list(): Adsense_v1_4.Schema.SavedReports;
// List all saved reports in this AdSense account.
list(optionalArgs: object): Adsense_v1_4.Schema.SavedReports;
}
}
export interface AccountsCollection {
Adclients?: Adsense_v1_4.Collection.Accounts.AdclientsCollection;
Adunits?: Adsense_v1_4.Collection.Accounts.AdunitsCollection;
Alerts?: Adsense_v1_4.Collection.Accounts.AlertsCollection;
Customchannels?: Adsense_v1_4.Collection.Accounts.CustomchannelsCollection;
Payments?: Adsense_v1_4.Collection.Accounts.PaymentsCollection;
Reports?: Adsense_v1_4.Collection.Accounts.ReportsCollection;
Savedadstyles?: Adsense_v1_4.Collection.Accounts.SavedadstylesCollection;
Urlchannels?: Adsense_v1_4.Collection.Accounts.UrlchannelsCollection;
// Get information about the selected AdSense account.
get(accountId: string): Adsense_v1_4.Schema.Account;
// Get information about the selected AdSense account.
get(accountId: string, optionalArgs: object): Adsense_v1_4.Schema.Account;
// List all accounts available to this AdSense account.
list(): Adsense_v1_4.Schema.Accounts;
// List all accounts available to this AdSense account.
list(optionalArgs: object): Adsense_v1_4.Schema.Accounts;
}
export interface AdclientsCollection {
// List all ad clients in this AdSense account.
list(): Adsense_v1_4.Schema.AdClients;
// List all ad clients in this AdSense account.
list(optionalArgs: object): Adsense_v1_4.Schema.AdClients;
}
export interface AdunitsCollection {
Customchannels?: Adsense_v1_4.Collection.Adunits.CustomchannelsCollection;
// Gets the specified ad unit in the specified ad client.
get(adClientId: string, adUnitId: string): Adsense_v1_4.Schema.AdUnit;
// Get ad code for the specified ad unit.
getAdCode(adClientId: string, adUnitId: string): Adsense_v1_4.Schema.AdCode;
// List all ad units in the specified ad client for this AdSense account.
list(adClientId: string): Adsense_v1_4.Schema.AdUnits;
// List all ad units in the specified ad client for this AdSense account.
list(adClientId: string, optionalArgs: object): Adsense_v1_4.Schema.AdUnits;
}
export interface AlertsCollection {
// List the alerts for this AdSense account.
list(): Adsense_v1_4.Schema.Alerts;
// List the alerts for this AdSense account.
list(optionalArgs: object): Adsense_v1_4.Schema.Alerts;
// Dismiss (delete) the specified alert from the publisher's AdSense account.
remove(alertId: string): void;
}
export interface CustomchannelsCollection {
Adunits?: Adsense_v1_4.Collection.Customchannels.AdunitsCollection;
// Get the specified custom channel from the specified ad client.
get(adClientId: string, customChannelId: string): Adsense_v1_4.Schema.CustomChannel;
// List all custom channels in the specified ad client for this AdSense account.
list(adClientId: string): Adsense_v1_4.Schema.CustomChannels;
// List all custom channels in the specified ad client for this AdSense account.
list(adClientId: string, optionalArgs: object): Adsense_v1_4.Schema.CustomChannels;
}
export interface MetadataCollection {
Dimensions?: Adsense_v1_4.Collection.Metadata.DimensionsCollection;
Metrics?: Adsense_v1_4.Collection.Metadata.MetricsCollection;
}
export interface PaymentsCollection {
// List the payments for this AdSense account.
list(): Adsense_v1_4.Schema.Payments;
}
export interface ReportsCollection {
Saved?: Adsense_v1_4.Collection.Reports.SavedCollection;
// Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
generate(startDate: string, endDate: string): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
// Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
generate(startDate: string, endDate: string, optionalArgs: object): Adsense_v1_4.Schema.AdsenseReportsGenerateResponse;
}
export interface SavedadstylesCollection {
// Get a specific saved ad style from the user's account.
get(savedAdStyleId: string): Adsense_v1_4.Schema.SavedAdStyle;
// List all saved ad styles in the user's account.
list(): Adsense_v1_4.Schema.SavedAdStyles;
// List all saved ad styles in the user's account.
list(optionalArgs: object): Adsense_v1_4.Schema.SavedAdStyles;
}
export interface UrlchannelsCollection {
// List all URL channels in the specified ad client for this AdSense account.
list(adClientId: string): Adsense_v1_4.Schema.UrlChannels;
// List all URL channels in the specified ad client for this AdSense account.
list(adClientId: string, optionalArgs: object): Adsense_v1_4.Schema.UrlChannels;
}
}
namespace Schema {
export interface Account {
creation_time?: string;
id?: string;
kind?: string;
name?: string;
premium?: boolean;
subAccounts?: Adsense_v1_4.Schema.Account[];
timezone?: string;
}
export interface Accounts {
etag?: string;
items?: Adsense_v1_4.Schema.Account[];
kind?: string;
nextPageToken?: string;
}
export interface AdClient {
arcOptIn?: boolean;
id?: string;
kind?: string;
productCode?: string;
supportsReporting?: boolean;
}
export interface AdClients {
etag?: string;
items?: Adsense_v1_4.Schema.AdClient[];
kind?: string;
nextPageToken?: string;
}
export interface AdCode {
adCode?: string;
ampBody?: string;
ampHead?: string;
kind?: string;
}
export interface AdStyle {
colors?: Adsense_v1_4.Schema.AdStyleColors;
corners?: string;
font?: Adsense_v1_4.Schema.AdStyleFont;
kind?: string;
}
export interface AdStyleColors {
background?: string;
border?: string;
text?: string;
title?: string;
url?: string;
}
export interface AdStyleFont {
family?: string;
size?: string;
}
export interface AdUnit {
code?: string;
contentAdsSettings?: Adsense_v1_4.Schema.AdUnitContentAdsSettings;
customStyle?: Adsense_v1_4.Schema.AdStyle;
feedAdsSettings?: Adsense_v1_4.Schema.AdUnitFeedAdsSettings;
id?: string;
kind?: string;
mobileContentAdsSettings?: Adsense_v1_4.Schema.AdUnitMobileContentAdsSettings;
name?: string;
savedStyleId?: string;
status?: string;
}
export interface AdUnitContentAdsSettings {
backupOption?: Adsense_v1_4.Schema.AdUnitContentAdsSettingsBackupOption;
size?: string;
type?: string;
}
export interface AdUnitContentAdsSettingsBackupOption {
color?: string;
type?: string;
url?: string;
}
export interface AdUnitFeedAdsSettings {
adPosition?: string;
frequency?: number;
minimumWordCount?: number;
type?: string;
}
export interface AdUnitMobileContentAdsSettings {
markupLanguage?: string;
scriptingLanguage?: string;
size?: string;
type?: string;
}
export interface AdUnits {
etag?: string;
items?: Adsense_v1_4.Schema.AdUnit[];
kind?: string;
nextPageToken?: string;
}
export interface AdsenseReportsGenerateResponse {
averages?: string[];
endDate?: string;
headers?: Adsense_v1_4.Schema.AdsenseReportsGenerateResponseHeaders[];
kind?: string;
rows?: String[][];
startDate?: string;
totalMatchedRows?: string;
totals?: string[];
warnings?: string[];
}
export interface AdsenseReportsGenerateResponseHeaders {
currency?: string;
name?: string;
type?: string;
}
export interface Alert {
id?: string;
isDismissible?: boolean;
kind?: string;
message?: string;
severity?: string;
type?: string;
}
export interface Alerts {
items?: Adsense_v1_4.Schema.Alert[];
kind?: string;
}
export interface CustomChannel {
code?: string;
id?: string;
kind?: string;
name?: string;
targetingInfo?: Adsense_v1_4.Schema.CustomChannelTargetingInfo;
}
export interface CustomChannelTargetingInfo {
adsAppearOn?: string;
description?: string;
location?: string;
siteLanguage?: string;
}
export interface CustomChannels {
etag?: string;
items?: Adsense_v1_4.Schema.CustomChannel[];
kind?: string;
nextPageToken?: string;
}
export interface Metadata {
items?: Adsense_v1_4.Schema.ReportingMetadataEntry[];
kind?: string;
}
export interface Payment {
id?: string;
kind?: string;
paymentAmount?: string;
paymentAmountCurrencyCode?: string;
paymentDate?: string;
}
export interface Payments {
items?: Adsense_v1_4.Schema.Payment[];
kind?: string;
}
export interface ReportingMetadataEntry {
compatibleDimensions?: string[];
compatibleMetrics?: string[];
id?: string;
kind?: string;
requiredDimensions?: string[];
requiredMetrics?: string[];
supportedProducts?: string[];
}
export interface SavedAdStyle {
adStyle?: Adsense_v1_4.Schema.AdStyle;
id?: string;
kind?: string;
name?: string;
}
export interface SavedAdStyles {
etag?: string;
items?: Adsense_v1_4.Schema.SavedAdStyle[];
kind?: string;
nextPageToken?: string;
}
export interface SavedReport {
id?: string;
kind?: string;
name?: string;
}
export interface SavedReports {
etag?: string;
items?: Adsense_v1_4.Schema.SavedReport[];
kind?: string;
nextPageToken?: string;
}
export interface UrlChannel {
id?: string;
kind?: string;
urlPattern?: string;
}
export interface UrlChannels {
etag?: string;
items?: Adsense_v1_4.Schema.UrlChannel[];
kind?: string;
nextPageToken?: string;
}
}
}
export interface Adsense_v1_4 {
Accounts?: Adsense_v1_4.Collection.AccountsCollection;
Adclients?: Adsense_v1_4.Collection.AdclientsCollection;
Adunits?: Adsense_v1_4.Collection.AdunitsCollection;
Alerts?: Adsense_v1_4.Collection.AlertsCollection;
Customchannels?: Adsense_v1_4.Collection.CustomchannelsCollection;
Metadata?: Adsense_v1_4.Collection.MetadataCollection;
Payments?: Adsense_v1_4.Collection.PaymentsCollection;
Reports?: Adsense_v1_4.Collection.ReportsCollection;
Savedadstyles?: Adsense_v1_4.Collection.SavedadstylesCollection;
Urlchannels?: Adsense_v1_4.Collection.UrlchannelsCollection;
}
}
declare var Adsense_v1_4: GoogleAppsScript.Adsense_v1_4;
View File
File diff suppressed because it is too large Load Diff
+361
View File
@@ -0,0 +1,361 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Analyticsreporting_v4 {
namespace Collection {
export interface ReportsCollection {
// Returns the Analytics data.
batchGet(resource: Schema.GetReportsRequest): Analyticsreporting_v4.Schema.GetReportsResponse;
}
export interface UserActivityCollection {
// Returns User Activity data.
search(resource: Schema.SearchUserActivityRequest): Analyticsreporting_v4.Schema.SearchUserActivityResponse;
}
}
namespace Schema {
export interface Activity {
activityTime?: string;
activityType?: string;
appview?: Analyticsreporting_v4.Schema.ScreenviewData;
campaign?: string;
channelGrouping?: string;
customDimension?: Analyticsreporting_v4.Schema.CustomDimension[];
ecommerce?: Analyticsreporting_v4.Schema.EcommerceData;
event?: Analyticsreporting_v4.Schema.EventData;
goals?: Analyticsreporting_v4.Schema.GoalSetData;
hostname?: string;
keyword?: string;
landingPagePath?: string;
medium?: string;
pageview?: Analyticsreporting_v4.Schema.PageviewData;
source?: string;
}
export interface Cohort {
dateRange?: Analyticsreporting_v4.Schema.DateRange;
name?: string;
type?: string;
}
export interface CohortGroup {
cohorts?: Analyticsreporting_v4.Schema.Cohort[];
lifetimeValue?: boolean;
}
export interface ColumnHeader {
dimensions?: string[];
metricHeader?: Analyticsreporting_v4.Schema.MetricHeader;
}
export interface CustomDimension {
index?: number;
value?: string;
}
export interface DateRange {
endDate?: string;
startDate?: string;
}
export interface DateRangeValues {
pivotValueRegions?: Analyticsreporting_v4.Schema.PivotValueRegion[];
values?: string[];
}
export interface Dimension {
histogramBuckets?: string[];
name?: string;
}
export interface DimensionFilter {
caseSensitive?: boolean;
dimensionName?: string;
expressions?: string[];
not?: boolean;
operator?: string;
}
export interface DimensionFilterClause {
filters?: Analyticsreporting_v4.Schema.DimensionFilter[];
operator?: string;
}
export interface DynamicSegment {
name?: string;
sessionSegment?: Analyticsreporting_v4.Schema.SegmentDefinition;
userSegment?: Analyticsreporting_v4.Schema.SegmentDefinition;
}
export interface EcommerceData {
actionType?: string;
ecommerceType?: string;
products?: Analyticsreporting_v4.Schema.ProductData[];
transaction?: Analyticsreporting_v4.Schema.TransactionData;
}
export interface EventData {
eventAction?: string;
eventCategory?: string;
eventCount?: string;
eventLabel?: string;
eventValue?: string;
}
export interface GetReportsRequest {
reportRequests?: Analyticsreporting_v4.Schema.ReportRequest[];
useResourceQuotas?: boolean;
}
export interface GetReportsResponse {
queryCost?: number;
reports?: Analyticsreporting_v4.Schema.Report[];
resourceQuotasRemaining?: Analyticsreporting_v4.Schema.ResourceQuotasRemaining;
}
export interface GoalData {
goalCompletionLocation?: string;
goalCompletions?: string;
goalIndex?: number;
goalName?: string;
goalPreviousStep1?: string;
goalPreviousStep2?: string;
goalPreviousStep3?: string;
goalValue?: Number;
}
export interface GoalSetData {
goals?: Analyticsreporting_v4.Schema.GoalData[];
}
export interface Metric {
alias?: string;
expression?: string;
formattingType?: string;
}
export interface MetricFilter {
comparisonValue?: string;
metricName?: string;
not?: boolean;
operator?: string;
}
export interface MetricFilterClause {
filters?: Analyticsreporting_v4.Schema.MetricFilter[];
operator?: string;
}
export interface MetricHeader {
metricHeaderEntries?: Analyticsreporting_v4.Schema.MetricHeaderEntry[];
pivotHeaders?: Analyticsreporting_v4.Schema.PivotHeader[];
}
export interface MetricHeaderEntry {
name?: string;
type?: string;
}
export interface OrFiltersForSegment {
segmentFilterClauses?: Analyticsreporting_v4.Schema.SegmentFilterClause[];
}
export interface OrderBy {
fieldName?: string;
orderType?: string;
sortOrder?: string;
}
export interface PageviewData {
pagePath?: string;
pageTitle?: string;
}
export interface Pivot {
dimensionFilterClauses?: Analyticsreporting_v4.Schema.DimensionFilterClause[];
dimensions?: Analyticsreporting_v4.Schema.Dimension[];
maxGroupCount?: number;
metrics?: Analyticsreporting_v4.Schema.Metric[];
startGroup?: number;
}
export interface PivotHeader {
pivotHeaderEntries?: Analyticsreporting_v4.Schema.PivotHeaderEntry[];
totalPivotGroupsCount?: number;
}
export interface PivotHeaderEntry {
dimensionNames?: string[];
dimensionValues?: string[];
metric?: Analyticsreporting_v4.Schema.MetricHeaderEntry;
}
export interface PivotValueRegion {
values?: string[];
}
export interface ProductData {
itemRevenue?: Number;
productName?: string;
productQuantity?: string;
productSku?: string;
}
export interface Report {
columnHeader?: Analyticsreporting_v4.Schema.ColumnHeader;
data?: Analyticsreporting_v4.Schema.ReportData;
nextPageToken?: string;
}
export interface ReportData {
dataLastRefreshed?: string;
isDataGolden?: boolean;
maximums?: Analyticsreporting_v4.Schema.DateRangeValues[];
minimums?: Analyticsreporting_v4.Schema.DateRangeValues[];
rowCount?: number;
rows?: Analyticsreporting_v4.Schema.ReportRow[];
samplesReadCounts?: string[];
samplingSpaceSizes?: string[];
totals?: Analyticsreporting_v4.Schema.DateRangeValues[];
}
export interface ReportRequest {
cohortGroup?: Analyticsreporting_v4.Schema.CohortGroup;
dateRanges?: Analyticsreporting_v4.Schema.DateRange[];
dimensionFilterClauses?: Analyticsreporting_v4.Schema.DimensionFilterClause[];
dimensions?: Analyticsreporting_v4.Schema.Dimension[];
filtersExpression?: string;
hideTotals?: boolean;
hideValueRanges?: boolean;
includeEmptyRows?: boolean;
metricFilterClauses?: Analyticsreporting_v4.Schema.MetricFilterClause[];
metrics?: Analyticsreporting_v4.Schema.Metric[];
orderBys?: Analyticsreporting_v4.Schema.OrderBy[];
pageSize?: number;
pageToken?: string;
pivots?: Analyticsreporting_v4.Schema.Pivot[];
samplingLevel?: string;
segments?: Analyticsreporting_v4.Schema.Segment[];
viewId?: string;
}
export interface ReportRow {
dimensions?: string[];
metrics?: Analyticsreporting_v4.Schema.DateRangeValues[];
}
export interface ResourceQuotasRemaining {
dailyQuotaTokensRemaining?: number;
hourlyQuotaTokensRemaining?: number;
}
export interface ScreenviewData {
appName?: string;
mobileDeviceBranding?: string;
mobileDeviceModel?: string;
screenName?: string;
}
export interface SearchUserActivityRequest {
activityTypes?: string[];
dateRange?: Analyticsreporting_v4.Schema.DateRange;
pageSize?: number;
pageToken?: string;
user?: Analyticsreporting_v4.Schema.User;
viewId?: string;
}
export interface SearchUserActivityResponse {
nextPageToken?: string;
sampleRate?: Number;
sessions?: Analyticsreporting_v4.Schema.UserActivitySession[];
totalRows?: number;
}
export interface Segment {
dynamicSegment?: Analyticsreporting_v4.Schema.DynamicSegment;
segmentId?: string;
}
export interface SegmentDefinition {
segmentFilters?: Analyticsreporting_v4.Schema.SegmentFilter[];
}
export interface SegmentDimensionFilter {
caseSensitive?: boolean;
dimensionName?: string;
expressions?: string[];
maxComparisonValue?: string;
minComparisonValue?: string;
operator?: string;
}
export interface SegmentFilter {
not?: boolean;
sequenceSegment?: Analyticsreporting_v4.Schema.SequenceSegment;
simpleSegment?: Analyticsreporting_v4.Schema.SimpleSegment;
}
export interface SegmentFilterClause {
dimensionFilter?: Analyticsreporting_v4.Schema.SegmentDimensionFilter;
metricFilter?: Analyticsreporting_v4.Schema.SegmentMetricFilter;
not?: boolean;
}
export interface SegmentMetricFilter {
comparisonValue?: string;
maxComparisonValue?: string;
metricName?: string;
operator?: string;
scope?: string;
}
export interface SegmentSequenceStep {
matchType?: string;
orFiltersForSegment?: Analyticsreporting_v4.Schema.OrFiltersForSegment[];
}
export interface SequenceSegment {
firstStepShouldMatchFirstHit?: boolean;
segmentSequenceSteps?: Analyticsreporting_v4.Schema.SegmentSequenceStep[];
}
export interface SimpleSegment {
orFiltersForSegment?: Analyticsreporting_v4.Schema.OrFiltersForSegment[];
}
export interface TransactionData {
transactionId?: string;
transactionRevenue?: Number;
transactionShipping?: Number;
transactionTax?: Number;
}
export interface User {
type?: string;
userId?: string;
}
export interface UserActivitySession {
activities?: Analyticsreporting_v4.Schema.Activity[];
dataSource?: string;
deviceCategory?: string;
platform?: string;
sessionDate?: string;
sessionId?: string;
}
}
}
export interface Analyticsreporting_v4 {
Reports?: Analyticsreporting_v4.Collection.ReportsCollection;
UserActivity?: Analyticsreporting_v4.Collection.UserActivityCollection;
// Create a new instance of Cohort
newCohort(): Analyticsreporting_v4.Schema.Cohort;
// Create a new instance of CohortGroup
newCohortGroup(): Analyticsreporting_v4.Schema.CohortGroup;
// Create a new instance of DateRange
newDateRange(): Analyticsreporting_v4.Schema.DateRange;
// Create a new instance of Dimension
newDimension(): Analyticsreporting_v4.Schema.Dimension;
// Create a new instance of DimensionFilter
newDimensionFilter(): Analyticsreporting_v4.Schema.DimensionFilter;
// Create a new instance of DimensionFilterClause
newDimensionFilterClause(): Analyticsreporting_v4.Schema.DimensionFilterClause;
// Create a new instance of DynamicSegment
newDynamicSegment(): Analyticsreporting_v4.Schema.DynamicSegment;
// Create a new instance of GetReportsRequest
newGetReportsRequest(): Analyticsreporting_v4.Schema.GetReportsRequest;
// Create a new instance of Metric
newMetric(): Analyticsreporting_v4.Schema.Metric;
// Create a new instance of MetricFilter
newMetricFilter(): Analyticsreporting_v4.Schema.MetricFilter;
// Create a new instance of MetricFilterClause
newMetricFilterClause(): Analyticsreporting_v4.Schema.MetricFilterClause;
// Create a new instance of OrFiltersForSegment
newOrFiltersForSegment(): Analyticsreporting_v4.Schema.OrFiltersForSegment;
// Create a new instance of OrderBy
newOrderBy(): Analyticsreporting_v4.Schema.OrderBy;
// Create a new instance of Pivot
newPivot(): Analyticsreporting_v4.Schema.Pivot;
// Create a new instance of ReportRequest
newReportRequest(): Analyticsreporting_v4.Schema.ReportRequest;
// Create a new instance of SearchUserActivityRequest
newSearchUserActivityRequest(): Analyticsreporting_v4.Schema.SearchUserActivityRequest;
// Create a new instance of Segment
newSegment(): Analyticsreporting_v4.Schema.Segment;
// Create a new instance of SegmentDefinition
newSegmentDefinition(): Analyticsreporting_v4.Schema.SegmentDefinition;
// Create a new instance of SegmentDimensionFilter
newSegmentDimensionFilter(): Analyticsreporting_v4.Schema.SegmentDimensionFilter;
// Create a new instance of SegmentFilter
newSegmentFilter(): Analyticsreporting_v4.Schema.SegmentFilter;
// Create a new instance of SegmentFilterClause
newSegmentFilterClause(): Analyticsreporting_v4.Schema.SegmentFilterClause;
// Create a new instance of SegmentMetricFilter
newSegmentMetricFilter(): Analyticsreporting_v4.Schema.SegmentMetricFilter;
// Create a new instance of SegmentSequenceStep
newSegmentSequenceStep(): Analyticsreporting_v4.Schema.SegmentSequenceStep;
// Create a new instance of SequenceSegment
newSequenceSegment(): Analyticsreporting_v4.Schema.SequenceSegment;
// Create a new instance of SimpleSegment
newSimpleSegment(): Analyticsreporting_v4.Schema.SimpleSegment;
// Create a new instance of User
newUser(): Analyticsreporting_v4.Schema.User;
}
}
declare var Analyticsreporting_v4: GoogleAppsScript.Analyticsreporting_v4;
+84
View File
@@ -0,0 +1,84 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Appsactivity_v1 {
namespace Collection {
export interface ActivitiesCollection {
// Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.
list(): Appsactivity_v1.Schema.ListActivitiesResponse;
// Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.
list(optionalArgs: object): Appsactivity_v1.Schema.ListActivitiesResponse;
}
}
namespace Schema {
export interface Activity {
combinedEvent?: Appsactivity_v1.Schema.Event;
singleEvents?: Appsactivity_v1.Schema.Event[];
}
export interface Event {
additionalEventTypes?: string[];
eventTimeMillis?: string;
fromUserDeletion?: boolean;
move?: Appsactivity_v1.Schema.Move;
permissionChanges?: Appsactivity_v1.Schema.PermissionChange[];
primaryEventType?: string;
rename?: Appsactivity_v1.Schema.Rename;
target?: Appsactivity_v1.Schema.Target;
user?: Appsactivity_v1.Schema.User;
}
export interface ListActivitiesResponse {
activities?: Appsactivity_v1.Schema.Activity[];
nextPageToken?: string;
}
export interface Move {
addedParents?: Appsactivity_v1.Schema.Parent[];
removedParents?: Appsactivity_v1.Schema.Parent[];
}
export interface Parent {
id?: string;
isRoot?: boolean;
title?: string;
}
export interface Permission {
name?: string;
permissionId?: string;
role?: string;
type?: string;
user?: Appsactivity_v1.Schema.User;
withLink?: boolean;
}
export interface PermissionChange {
addedPermissions?: Appsactivity_v1.Schema.Permission[];
removedPermissions?: Appsactivity_v1.Schema.Permission[];
}
export interface Photo {
url?: string;
}
export interface Rename {
newTitle?: string;
oldTitle?: string;
}
export interface Target {
id?: string;
mimeType?: string;
name?: string;
}
export interface User {
isDeleted?: boolean;
isMe?: boolean;
name?: string;
permissionId?: string;
photo?: Appsactivity_v1.Schema.Photo;
}
}
}
export interface Appsactivity_v1 {
Activities?: Appsactivity_v1.Collection.ActivitiesCollection;
}
}
declare var Appsactivity_v1: GoogleAppsScript.Appsactivity_v1;
View File
+799
View File
@@ -0,0 +1,799 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Bigquery_v2 {
namespace Collection {
export interface DatasetsCollection {
// Returns the dataset specified by datasetID.
get(projectId: string, datasetId: string): Bigquery_v2.Schema.Dataset;
// Creates a new empty dataset.
insert(resource: Bigquery_v2.Schema.Dataset, projectId: string): Bigquery_v2.Schema.Dataset;
// Lists all datasets in the specified project to which you have been granted the READER dataset role.
list(projectId: string): Bigquery_v2.Schema.DatasetList;
// Lists all datasets in the specified project to which you have been granted the READER dataset role.
list(projectId: string, optionalArgs: object): Bigquery_v2.Schema.DatasetList;
// Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics.
patch(resource: Bigquery_v2.Schema.Dataset, projectId: string, datasetId: string): Bigquery_v2.Schema.Dataset;
// Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.
remove(projectId: string, datasetId: string): void;
// Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.
remove(projectId: string, datasetId: string, optionalArgs: object): void;
// Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.
update(resource: Bigquery_v2.Schema.Dataset, projectId: string, datasetId: string): Bigquery_v2.Schema.Dataset;
}
export interface JobsCollection {
// Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.
cancel(projectId: string, jobId: string): Bigquery_v2.Schema.JobCancelResponse;
// Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.
cancel(projectId: string, jobId: string, optionalArgs: object): Bigquery_v2.Schema.JobCancelResponse;
// Returns information about a specific job. Job information is available for a six month period after creation. Requires that you're the person who ran the job, or have the Is Owner project role.
get(projectId: string, jobId: string): Bigquery_v2.Schema.Job;
// Returns information about a specific job. Job information is available for a six month period after creation. Requires that you're the person who ran the job, or have the Is Owner project role.
get(projectId: string, jobId: string, optionalArgs: object): Bigquery_v2.Schema.Job;
// Retrieves the results of a query job.
getQueryResults(projectId: string, jobId: string): Bigquery_v2.Schema.GetQueryResultsResponse;
// Retrieves the results of a query job.
getQueryResults(projectId: string, jobId: string, optionalArgs: object): Bigquery_v2.Schema.GetQueryResultsResponse;
// Starts a new asynchronous job. Requires the Can View project role.
insert(resource: Bigquery_v2.Schema.Job, projectId: string): Bigquery_v2.Schema.Job;
// Starts a new asynchronous job. Requires the Can View project role.
insert(resource: Bigquery_v2.Schema.Job, projectId: string, mediaData: any): Bigquery_v2.Schema.Job;
// Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property.
list(projectId: string): Bigquery_v2.Schema.JobList;
// Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property.
list(projectId: string, optionalArgs: object): Bigquery_v2.Schema.JobList;
// Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.
query(resource: Bigquery_v2.Schema.QueryRequest, projectId: string): Bigquery_v2.Schema.QueryResponse;
}
export interface ProjectsCollection {
// Returns the email address of the service account for your project used for interactions with Google Cloud KMS.
getServiceAccount(projectId: string): Bigquery_v2.Schema.GetServiceAccountResponse;
// Lists all projects to which you have been granted any project role.
list(): Bigquery_v2.Schema.ProjectList;
// Lists all projects to which you have been granted any project role.
list(optionalArgs: object): Bigquery_v2.Schema.ProjectList;
}
export interface TabledataCollection {
// Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role.
insertAll(resource: Bigquery_v2.Schema.TableDataInsertAllRequest, projectId: string, datasetId: string, tableId: string): Bigquery_v2.Schema.TableDataInsertAllResponse;
// Retrieves table data from a specified set of rows. Requires the READER dataset role.
list(projectId: string, datasetId: string, tableId: string): Bigquery_v2.Schema.TableDataList;
// Retrieves table data from a specified set of rows. Requires the READER dataset role.
list(projectId: string, datasetId: string, tableId: string, optionalArgs: object): Bigquery_v2.Schema.TableDataList;
}
export interface TablesCollection {
// Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.
get(projectId: string, datasetId: string, tableId: string): Bigquery_v2.Schema.Table;
// Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.
get(projectId: string, datasetId: string, tableId: string, optionalArgs: object): Bigquery_v2.Schema.Table;
// Creates a new, empty table in the dataset.
insert(resource: Bigquery_v2.Schema.Table, projectId: string, datasetId: string): Bigquery_v2.Schema.Table;
// Lists all tables in the specified dataset. Requires the READER dataset role.
list(projectId: string, datasetId: string): Bigquery_v2.Schema.TableList;
// Lists all tables in the specified dataset. Requires the READER dataset role.
list(projectId: string, datasetId: string, optionalArgs: object): Bigquery_v2.Schema.TableList;
// Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.
patch(resource: Bigquery_v2.Schema.Table, projectId: string, datasetId: string, tableId: string): Bigquery_v2.Schema.Table;
// Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.
remove(projectId: string, datasetId: string, tableId: string): void;
// Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.
update(resource: Bigquery_v2.Schema.Table, projectId: string, datasetId: string, tableId: string): Bigquery_v2.Schema.Table;
}
}
namespace Schema {
export interface BigQueryModelTraining {
currentIteration?: number;
expectedTotalIterations?: string;
}
export interface BigtableColumn {
encoding?: string;
fieldName?: string;
onlyReadLatest?: boolean;
qualifierEncoded?: string;
qualifierString?: string;
type?: string;
}
export interface BigtableColumnFamily {
columns?: Bigquery_v2.Schema.BigtableColumn[];
encoding?: string;
familyId?: string;
onlyReadLatest?: boolean;
type?: string;
}
export interface BigtableOptions {
columnFamilies?: Bigquery_v2.Schema.BigtableColumnFamily[];
ignoreUnspecifiedColumnFamilies?: boolean;
readRowkeyAsString?: boolean;
}
export interface BqmlIterationResult {
durationMs?: string;
evalLoss?: Number;
index?: number;
learnRate?: Number;
trainingLoss?: Number;
}
export interface BqmlTrainingRun {
iterationResults?: Bigquery_v2.Schema.BqmlIterationResult[];
startTime?: string;
state?: string;
trainingOptions?: Bigquery_v2.Schema.BqmlTrainingRunTrainingOptions;
}
export interface BqmlTrainingRunTrainingOptions {
earlyStop?: boolean;
l1Reg?: Number;
l2Reg?: Number;
learnRate?: Number;
learnRateStrategy?: string;
lineSearchInitLearnRate?: Number;
maxIteration?: string;
minRelProgress?: Number;
warmStart?: boolean;
}
export interface Clustering {
fields?: string[];
}
export interface CsvOptions {
allowJaggedRows?: boolean;
allowQuotedNewlines?: boolean;
encoding?: string;
fieldDelimiter?: string;
quote?: string;
skipLeadingRows?: string;
}
export interface Dataset {
access?: Bigquery_v2.Schema.DatasetAccess[];
creationTime?: string;
datasetReference?: Bigquery_v2.Schema.DatasetReference;
defaultPartitionExpirationMs?: string;
defaultTableExpirationMs?: string;
description?: string;
etag?: string;
friendlyName?: string;
id?: string;
kind?: string;
labels?: object;
lastModifiedTime?: string;
location?: string;
selfLink?: string;
}
export interface DatasetAccess {
domain?: string;
groupByEmail?: string;
iamMember?: string;
role?: string;
specialGroup?: string;
userByEmail?: string;
view?: Bigquery_v2.Schema.TableReference;
}
export interface DatasetList {
datasets?: Bigquery_v2.Schema.DatasetListDatasets[];
etag?: string;
kind?: string;
nextPageToken?: string;
}
export interface DatasetListDatasets {
datasetReference?: Bigquery_v2.Schema.DatasetReference;
friendlyName?: string;
id?: string;
kind?: string;
labels?: object;
location?: string;
}
export interface DatasetReference {
datasetId?: string;
projectId?: string;
}
export interface DestinationTableProperties {
description?: string;
friendlyName?: string;
labels?: object;
}
export interface EncryptionConfiguration {
kmsKeyName?: string;
}
export interface ErrorProto {
debugInfo?: string;
location?: string;
message?: string;
reason?: string;
}
export interface ExplainQueryStage {
completedParallelInputs?: string;
computeMsAvg?: string;
computeMsMax?: string;
computeRatioAvg?: Number;
computeRatioMax?: Number;
endMs?: string;
id?: string;
inputStages?: string[];
name?: string;
parallelInputs?: string;
readMsAvg?: string;
readMsMax?: string;
readRatioAvg?: Number;
readRatioMax?: Number;
recordsRead?: string;
recordsWritten?: string;
shuffleOutputBytes?: string;
shuffleOutputBytesSpilled?: string;
startMs?: string;
status?: string;
steps?: Bigquery_v2.Schema.ExplainQueryStep[];
waitMsAvg?: string;
waitMsMax?: string;
waitRatioAvg?: Number;
waitRatioMax?: Number;
writeMsAvg?: string;
writeMsMax?: string;
writeRatioAvg?: Number;
writeRatioMax?: Number;
}
export interface ExplainQueryStep {
kind?: string;
substeps?: string[];
}
export interface ExternalDataConfiguration {
autodetect?: boolean;
bigtableOptions?: Bigquery_v2.Schema.BigtableOptions;
compression?: string;
csvOptions?: Bigquery_v2.Schema.CsvOptions;
googleSheetsOptions?: Bigquery_v2.Schema.GoogleSheetsOptions;
hivePartitioningMode?: string;
ignoreUnknownValues?: boolean;
maxBadRecords?: number;
schema?: Bigquery_v2.Schema.TableSchema;
sourceFormat?: string;
sourceUris?: string[];
}
export interface GetQueryResultsResponse {
cacheHit?: boolean;
errors?: Bigquery_v2.Schema.ErrorProto[];
etag?: string;
jobComplete?: boolean;
jobReference?: Bigquery_v2.Schema.JobReference;
kind?: string;
numDmlAffectedRows?: string;
pageToken?: string;
rows?: Bigquery_v2.Schema.TableRow[];
schema?: Bigquery_v2.Schema.TableSchema;
totalBytesProcessed?: string;
totalRows?: string;
}
export interface GetServiceAccountResponse {
email?: string;
kind?: string;
}
export interface GoogleSheetsOptions {
range?: string;
skipLeadingRows?: string;
}
export interface Job {
configuration?: Bigquery_v2.Schema.JobConfiguration;
etag?: string;
id?: string;
jobReference?: Bigquery_v2.Schema.JobReference;
kind?: string;
selfLink?: string;
statistics?: Bigquery_v2.Schema.JobStatistics;
status?: Bigquery_v2.Schema.JobStatus;
user_email?: string;
}
export interface JobCancelResponse {
job?: Bigquery_v2.Schema.Job;
kind?: string;
}
export interface JobConfiguration {
copy?: Bigquery_v2.Schema.JobConfigurationTableCopy;
dryRun?: boolean;
extract?: Bigquery_v2.Schema.JobConfigurationExtract;
jobTimeoutMs?: string;
jobType?: string;
labels?: object;
load?: Bigquery_v2.Schema.JobConfigurationLoad;
query?: Bigquery_v2.Schema.JobConfigurationQuery;
}
export interface JobConfigurationExtract {
compression?: string;
destinationFormat?: string;
destinationUri?: string;
destinationUris?: string[];
fieldDelimiter?: string;
printHeader?: boolean;
sourceTable?: Bigquery_v2.Schema.TableReference;
}
export interface JobConfigurationLoad {
allowJaggedRows?: boolean;
allowQuotedNewlines?: boolean;
autodetect?: boolean;
clustering?: Bigquery_v2.Schema.Clustering;
createDisposition?: string;
destinationEncryptionConfiguration?: Bigquery_v2.Schema.EncryptionConfiguration;
destinationTable?: Bigquery_v2.Schema.TableReference;
destinationTableProperties?: Bigquery_v2.Schema.DestinationTableProperties;
encoding?: string;
fieldDelimiter?: string;
hivePartitioningMode?: string;
ignoreUnknownValues?: boolean;
maxBadRecords?: number;
nullMarker?: string;
projectionFields?: string[];
quote?: string;
rangePartitioning?: Bigquery_v2.Schema.RangePartitioning;
schema?: Bigquery_v2.Schema.TableSchema;
schemaInline?: string;
schemaInlineFormat?: string;
schemaUpdateOptions?: string[];
skipLeadingRows?: number;
sourceFormat?: string;
sourceUris?: string[];
timePartitioning?: Bigquery_v2.Schema.TimePartitioning;
useAvroLogicalTypes?: boolean;
writeDisposition?: string;
}
export interface JobConfigurationQuery {
allowLargeResults?: boolean;
clustering?: Bigquery_v2.Schema.Clustering;
createDisposition?: string;
defaultDataset?: Bigquery_v2.Schema.DatasetReference;
destinationEncryptionConfiguration?: Bigquery_v2.Schema.EncryptionConfiguration;
destinationTable?: Bigquery_v2.Schema.TableReference;
flattenResults?: boolean;
maximumBillingTier?: number;
maximumBytesBilled?: string;
parameterMode?: string;
preserveNulls?: boolean;
priority?: string;
query?: string;
queryParameters?: Bigquery_v2.Schema.QueryParameter[];
rangePartitioning?: Bigquery_v2.Schema.RangePartitioning;
schemaUpdateOptions?: string[];
tableDefinitions?: object;
timePartitioning?: Bigquery_v2.Schema.TimePartitioning;
useLegacySql?: boolean;
useQueryCache?: boolean;
userDefinedFunctionResources?: Bigquery_v2.Schema.UserDefinedFunctionResource[];
writeDisposition?: string;
}
export interface JobConfigurationTableCopy {
createDisposition?: string;
destinationEncryptionConfiguration?: Bigquery_v2.Schema.EncryptionConfiguration;
destinationTable?: Bigquery_v2.Schema.TableReference;
sourceTable?: Bigquery_v2.Schema.TableReference;
sourceTables?: Bigquery_v2.Schema.TableReference[];
writeDisposition?: string;
}
export interface JobList {
etag?: string;
jobs?: Bigquery_v2.Schema.JobListJobs[];
kind?: string;
nextPageToken?: string;
}
export interface JobListJobs {
configuration?: Bigquery_v2.Schema.JobConfiguration;
errorResult?: Bigquery_v2.Schema.ErrorProto;
id?: string;
jobReference?: Bigquery_v2.Schema.JobReference;
kind?: string;
state?: string;
statistics?: Bigquery_v2.Schema.JobStatistics;
status?: Bigquery_v2.Schema.JobStatus;
user_email?: string;
}
export interface JobReference {
jobId?: string;
location?: string;
projectId?: string;
}
export interface JobStatistics {
completionRatio?: Number;
creationTime?: string;
endTime?: string;
extract?: Bigquery_v2.Schema.JobStatistics4;
load?: Bigquery_v2.Schema.JobStatistics3;
numChildJobs?: string;
parentJobId?: string;
query?: Bigquery_v2.Schema.JobStatistics2;
quotaDeferments?: string[];
reservationUsage?: Bigquery_v2.Schema.JobStatisticsReservationUsage[];
startTime?: string;
totalBytesProcessed?: string;
totalSlotMs?: string;
}
export interface JobStatistics2 {
billingTier?: number;
cacheHit?: boolean;
ddlOperationPerformed?: string;
ddlTargetRoutine?: Bigquery_v2.Schema.RoutineReference;
ddlTargetTable?: Bigquery_v2.Schema.TableReference;
estimatedBytesProcessed?: string;
modelTraining?: Bigquery_v2.Schema.BigQueryModelTraining;
modelTrainingCurrentIteration?: number;
modelTrainingExpectedTotalIteration?: string;
numDmlAffectedRows?: string;
queryPlan?: Bigquery_v2.Schema.ExplainQueryStage[];
referencedTables?: Bigquery_v2.Schema.TableReference[];
reservationUsage?: Bigquery_v2.Schema.JobStatistics2ReservationUsage[];
schema?: Bigquery_v2.Schema.TableSchema;
statementType?: string;
timeline?: Bigquery_v2.Schema.QueryTimelineSample[];
totalBytesBilled?: string;
totalBytesProcessed?: string;
totalBytesProcessedAccuracy?: string;
totalPartitionsProcessed?: string;
totalSlotMs?: string;
undeclaredQueryParameters?: Bigquery_v2.Schema.QueryParameter[];
}
export interface JobStatistics2ReservationUsage {
name?: string;
slotMs?: string;
}
export interface JobStatistics3 {
badRecords?: string;
inputFileBytes?: string;
inputFiles?: string;
outputBytes?: string;
outputRows?: string;
}
export interface JobStatistics4 {
destinationUriFileCounts?: string[];
inputBytes?: string;
}
export interface JobStatisticsReservationUsage {
name?: string;
slotMs?: string;
}
export interface JobStatus {
errorResult?: Bigquery_v2.Schema.ErrorProto;
errors?: Bigquery_v2.Schema.ErrorProto[];
state?: string;
}
export interface MaterializedViewDefinition {
lastRefreshTime?: string;
query?: string;
}
export interface ModelDefinition {
modelOptions?: Bigquery_v2.Schema.ModelDefinitionModelOptions;
trainingRuns?: Bigquery_v2.Schema.BqmlTrainingRun[];
}
export interface ModelDefinitionModelOptions {
labels?: string[];
lossType?: string;
modelType?: string;
}
export interface ProjectList {
etag?: string;
kind?: string;
nextPageToken?: string;
projects?: Bigquery_v2.Schema.ProjectListProjects[];
totalItems?: number;
}
export interface ProjectListProjects {
friendlyName?: string;
id?: string;
kind?: string;
numericId?: string;
projectReference?: Bigquery_v2.Schema.ProjectReference;
}
export interface ProjectReference {
projectId?: string;
}
export interface QueryParameter {
name?: string;
parameterType?: Bigquery_v2.Schema.QueryParameterType;
parameterValue?: Bigquery_v2.Schema.QueryParameterValue;
}
export interface QueryParameterType {
arrayType?: Bigquery_v2.Schema.QueryParameterType;
structTypes?: Bigquery_v2.Schema.QueryParameterTypeStructTypes[];
type?: string;
}
export interface QueryParameterTypeStructTypes {
description?: string;
name?: string;
type?: Bigquery_v2.Schema.QueryParameterType;
}
export interface QueryParameterValue {
arrayValues?: Bigquery_v2.Schema.QueryParameterValue[];
structValues?: object;
value?: string;
}
export interface QueryRequest {
defaultDataset?: Bigquery_v2.Schema.DatasetReference;
dryRun?: boolean;
kind?: string;
location?: string;
maxResults?: number;
parameterMode?: string;
preserveNulls?: boolean;
query?: string;
queryParameters?: Bigquery_v2.Schema.QueryParameter[];
timeoutMs?: number;
useLegacySql?: boolean;
useQueryCache?: boolean;
}
export interface QueryResponse {
cacheHit?: boolean;
errors?: Bigquery_v2.Schema.ErrorProto[];
jobComplete?: boolean;
jobReference?: Bigquery_v2.Schema.JobReference;
kind?: string;
numDmlAffectedRows?: string;
pageToken?: string;
rows?: Bigquery_v2.Schema.TableRow[];
schema?: Bigquery_v2.Schema.TableSchema;
totalBytesProcessed?: string;
totalRows?: string;
}
export interface QueryTimelineSample {
activeUnits?: string;
completedUnits?: string;
elapsedMs?: string;
pendingUnits?: string;
totalSlotMs?: string;
}
export interface RangePartitioning {
field?: string;
range?: Bigquery_v2.Schema.RangePartitioningRange;
}
export interface RangePartitioningRange {
end?: string;
interval?: string;
start?: string;
}
export interface RoutineReference {
datasetId?: string;
projectId?: string;
routineId?: string;
}
export interface Streamingbuffer {
estimatedBytes?: string;
estimatedRows?: string;
oldestEntryTime?: string;
}
export interface Table {
clustering?: Bigquery_v2.Schema.Clustering;
creationTime?: string;
description?: string;
encryptionConfiguration?: Bigquery_v2.Schema.EncryptionConfiguration;
etag?: string;
expirationTime?: string;
externalDataConfiguration?: Bigquery_v2.Schema.ExternalDataConfiguration;
friendlyName?: string;
id?: string;
kind?: string;
labels?: object;
lastModifiedTime?: string;
location?: string;
materializedView?: Bigquery_v2.Schema.MaterializedViewDefinition;
model?: Bigquery_v2.Schema.ModelDefinition;
numBytes?: string;
numLongTermBytes?: string;
numPhysicalBytes?: string;
numRows?: string;
rangePartitioning?: Bigquery_v2.Schema.RangePartitioning;
requirePartitionFilter?: boolean;
schema?: Bigquery_v2.Schema.TableSchema;
selfLink?: string;
streamingBuffer?: Bigquery_v2.Schema.Streamingbuffer;
tableReference?: Bigquery_v2.Schema.TableReference;
timePartitioning?: Bigquery_v2.Schema.TimePartitioning;
type?: string;
view?: Bigquery_v2.Schema.ViewDefinition;
}
export interface TableCell {
v?: object;
}
export interface TableDataInsertAllRequest {
ignoreUnknownValues?: boolean;
kind?: string;
rows?: Bigquery_v2.Schema.TableDataInsertAllRequestRows[];
skipInvalidRows?: boolean;
templateSuffix?: string;
}
export interface TableDataInsertAllRequestRows {
insertId?: string;
json?: object;
}
export interface TableDataInsertAllResponse {
insertErrors?: Bigquery_v2.Schema.TableDataInsertAllResponseInsertErrors[];
kind?: string;
}
export interface TableDataInsertAllResponseInsertErrors {
errors?: Bigquery_v2.Schema.ErrorProto[];
index?: number;
}
export interface TableDataList {
etag?: string;
kind?: string;
pageToken?: string;
rows?: Bigquery_v2.Schema.TableRow[];
totalRows?: string;
}
export interface TableFieldSchema {
categories?: Bigquery_v2.Schema.TableFieldSchemaCategories;
description?: string;
fields?: Bigquery_v2.Schema.TableFieldSchema[];
mode?: string;
name?: string;
type?: string;
}
export interface TableFieldSchemaCategories {
names?: string[];
}
export interface TableList {
etag?: string;
kind?: string;
nextPageToken?: string;
tables?: Bigquery_v2.Schema.TableListTables[];
totalItems?: number;
}
export interface TableListTables {
clustering?: Bigquery_v2.Schema.Clustering;
creationTime?: string;
expirationTime?: string;
friendlyName?: string;
id?: string;
kind?: string;
labels?: object;
tableReference?: Bigquery_v2.Schema.TableReference;
timePartitioning?: Bigquery_v2.Schema.TimePartitioning;
type?: string;
view?: Bigquery_v2.Schema.TableListTablesView;
}
export interface TableListTablesView {
useLegacySql?: boolean;
}
export interface TableReference {
datasetId?: string;
projectId?: string;
tableId?: string;
}
export interface TableRow {
f?: Bigquery_v2.Schema.TableCell[];
}
export interface TableSchema {
fields?: Bigquery_v2.Schema.TableFieldSchema[];
}
export interface TimePartitioning {
expirationMs?: string;
field?: string;
requirePartitionFilter?: boolean;
type?: string;
}
export interface UserDefinedFunctionResource {
inlineCode?: string;
resourceUri?: string;
}
export interface ViewDefinition {
query?: string;
useLegacySql?: boolean;
userDefinedFunctionResources?: Bigquery_v2.Schema.UserDefinedFunctionResource[];
}
}
}
export interface Bigquery_v2 {
Datasets?: Bigquery_v2.Collection.DatasetsCollection;
Jobs?: Bigquery_v2.Collection.JobsCollection;
Projects?: Bigquery_v2.Collection.ProjectsCollection;
Tabledata?: Bigquery_v2.Collection.TabledataCollection;
Tables?: Bigquery_v2.Collection.TablesCollection;
// Create a new instance of BigQueryModelTraining
newBigQueryModelTraining(): Bigquery_v2.Schema.BigQueryModelTraining;
// Create a new instance of BigtableColumn
newBigtableColumn(): Bigquery_v2.Schema.BigtableColumn;
// Create a new instance of BigtableColumnFamily
newBigtableColumnFamily(): Bigquery_v2.Schema.BigtableColumnFamily;
// Create a new instance of BigtableOptions
newBigtableOptions(): Bigquery_v2.Schema.BigtableOptions;
// Create a new instance of BqmlIterationResult
newBqmlIterationResult(): Bigquery_v2.Schema.BqmlIterationResult;
// Create a new instance of BqmlTrainingRun
newBqmlTrainingRun(): Bigquery_v2.Schema.BqmlTrainingRun;
// Create a new instance of BqmlTrainingRunTrainingOptions
newBqmlTrainingRunTrainingOptions(): Bigquery_v2.Schema.BqmlTrainingRunTrainingOptions;
// Create a new instance of Clustering
newClustering(): Bigquery_v2.Schema.Clustering;
// Create a new instance of CsvOptions
newCsvOptions(): Bigquery_v2.Schema.CsvOptions;
// Create a new instance of Dataset
newDataset(): Bigquery_v2.Schema.Dataset;
// Create a new instance of DatasetAccess
newDatasetAccess(): Bigquery_v2.Schema.DatasetAccess;
// Create a new instance of DatasetReference
newDatasetReference(): Bigquery_v2.Schema.DatasetReference;
// Create a new instance of DestinationTableProperties
newDestinationTableProperties(): Bigquery_v2.Schema.DestinationTableProperties;
// Create a new instance of EncryptionConfiguration
newEncryptionConfiguration(): Bigquery_v2.Schema.EncryptionConfiguration;
// Create a new instance of ErrorProto
newErrorProto(): Bigquery_v2.Schema.ErrorProto;
// Create a new instance of ExplainQueryStage
newExplainQueryStage(): Bigquery_v2.Schema.ExplainQueryStage;
// Create a new instance of ExplainQueryStep
newExplainQueryStep(): Bigquery_v2.Schema.ExplainQueryStep;
// Create a new instance of ExternalDataConfiguration
newExternalDataConfiguration(): Bigquery_v2.Schema.ExternalDataConfiguration;
// Create a new instance of GoogleSheetsOptions
newGoogleSheetsOptions(): Bigquery_v2.Schema.GoogleSheetsOptions;
// Create a new instance of Job
newJob(): Bigquery_v2.Schema.Job;
// Create a new instance of JobConfiguration
newJobConfiguration(): Bigquery_v2.Schema.JobConfiguration;
// Create a new instance of JobConfigurationExtract
newJobConfigurationExtract(): Bigquery_v2.Schema.JobConfigurationExtract;
// Create a new instance of JobConfigurationLoad
newJobConfigurationLoad(): Bigquery_v2.Schema.JobConfigurationLoad;
// Create a new instance of JobConfigurationQuery
newJobConfigurationQuery(): Bigquery_v2.Schema.JobConfigurationQuery;
// Create a new instance of JobConfigurationTableCopy
newJobConfigurationTableCopy(): Bigquery_v2.Schema.JobConfigurationTableCopy;
// Create a new instance of JobReference
newJobReference(): Bigquery_v2.Schema.JobReference;
// Create a new instance of JobStatistics
newJobStatistics(): Bigquery_v2.Schema.JobStatistics;
// Create a new instance of JobStatistics2
newJobStatistics2(): Bigquery_v2.Schema.JobStatistics2;
// Create a new instance of JobStatistics2ReservationUsage
newJobStatistics2ReservationUsage(): Bigquery_v2.Schema.JobStatistics2ReservationUsage;
// Create a new instance of JobStatistics3
newJobStatistics3(): Bigquery_v2.Schema.JobStatistics3;
// Create a new instance of JobStatistics4
newJobStatistics4(): Bigquery_v2.Schema.JobStatistics4;
// Create a new instance of JobStatisticsReservationUsage
newJobStatisticsReservationUsage(): Bigquery_v2.Schema.JobStatisticsReservationUsage;
// Create a new instance of JobStatus
newJobStatus(): Bigquery_v2.Schema.JobStatus;
// Create a new instance of MaterializedViewDefinition
newMaterializedViewDefinition(): Bigquery_v2.Schema.MaterializedViewDefinition;
// Create a new instance of ModelDefinition
newModelDefinition(): Bigquery_v2.Schema.ModelDefinition;
// Create a new instance of ModelDefinitionModelOptions
newModelDefinitionModelOptions(): Bigquery_v2.Schema.ModelDefinitionModelOptions;
// Create a new instance of QueryParameter
newQueryParameter(): Bigquery_v2.Schema.QueryParameter;
// Create a new instance of QueryParameterType
newQueryParameterType(): Bigquery_v2.Schema.QueryParameterType;
// Create a new instance of QueryParameterTypeStructTypes
newQueryParameterTypeStructTypes(): Bigquery_v2.Schema.QueryParameterTypeStructTypes;
// Create a new instance of QueryParameterValue
newQueryParameterValue(): Bigquery_v2.Schema.QueryParameterValue;
// Create a new instance of QueryRequest
newQueryRequest(): Bigquery_v2.Schema.QueryRequest;
// Create a new instance of QueryTimelineSample
newQueryTimelineSample(): Bigquery_v2.Schema.QueryTimelineSample;
// Create a new instance of RangePartitioning
newRangePartitioning(): Bigquery_v2.Schema.RangePartitioning;
// Create a new instance of RangePartitioningRange
newRangePartitioningRange(): Bigquery_v2.Schema.RangePartitioningRange;
// Create a new instance of RoutineReference
newRoutineReference(): Bigquery_v2.Schema.RoutineReference;
// Create a new instance of Streamingbuffer
newStreamingbuffer(): Bigquery_v2.Schema.Streamingbuffer;
// Create a new instance of Table
newTable(): Bigquery_v2.Schema.Table;
// Create a new instance of TableDataInsertAllRequest
newTableDataInsertAllRequest(): Bigquery_v2.Schema.TableDataInsertAllRequest;
// Create a new instance of TableDataInsertAllRequestRows
newTableDataInsertAllRequestRows(): Bigquery_v2.Schema.TableDataInsertAllRequestRows;
// Create a new instance of TableFieldSchema
newTableFieldSchema(): Bigquery_v2.Schema.TableFieldSchema;
// Create a new instance of TableFieldSchemaCategories
newTableFieldSchemaCategories(): Bigquery_v2.Schema.TableFieldSchemaCategories;
// Create a new instance of TableReference
newTableReference(): Bigquery_v2.Schema.TableReference;
// Create a new instance of TableSchema
newTableSchema(): Bigquery_v2.Schema.TableSchema;
// Create a new instance of TimePartitioning
newTimePartitioning(): Bigquery_v2.Schema.TimePartitioning;
// Create a new instance of UserDefinedFunctionResource
newUserDefinedFunctionResource(): Bigquery_v2.Schema.UserDefinedFunctionResource;
// Create a new instance of ViewDefinition
newViewDefinition(): Bigquery_v2.Schema.ViewDefinition;
}
}
declare var Bigquery_v2: GoogleAppsScript.Bigquery_v2;
@@ -1,6 +1,7 @@
// Type definitions for Google Apps Script 2019-03-22
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Definitions by: mtgto <https://github.com/mtgto/>
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
@@ -582,3 +583,5 @@ declare namespace GoogleAppsScript {
newFreeBusyRequestItem(): Calendar_v3.Schema.FreeBusyRequestItem;
}
}
declare var Calendar_v3: GoogleAppsScript.Calendar_v3;
View File
File diff suppressed because it is too large Load Diff
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,6 +1,7 @@
// Type definitions for Google Apps Script 2019-03-22
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Definitions by: mtgto <https://github.com/mtgto/>
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
@@ -1136,3 +1137,5 @@ declare namespace GoogleAppsScript {
newUserUndelete(): Admin_directory_v1.Schema.UserUndelete;
}
}
declare var Admin_directory_v1: GoogleAppsScript.Admin_directory_v1;
+910
View File
@@ -0,0 +1,910 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Docs_v1 {
namespace Collection {
export interface DocumentsCollection {
// Applies one or more updates to the document.
// Each request is validated before
// being applied. If any request is not valid, then the entire request will
// fail and nothing will be applied.
// Some requests have replies to
// give you some information about how they are applied. Other requests do
// not need to return information; these each return an empty reply.
// The order of replies matches that of the requests.
// For example, suppose you call batchUpdate with four updates, and only the
// third one returns information. The response would have two empty replies,
// the reply to the third request, and another empty reply, in that order.
// Because other users may be editing the document, the document
// might not exactly reflect your changes: your changes may
// be altered with respect to collaborator changes. If there are no
// collaborators, the document should reflect your changes. In any case,
// the updates in your request are guaranteed to be applied together
// atomically.
batchUpdate(resource: Schema.BatchUpdateDocumentRequest, documentId: string): Docs_v1.Schema.BatchUpdateDocumentResponse;
// Creates a blank document using the title given in the request. Other fields
// in the request, including any provided content, are ignored.
// Returns the created document.
create(resource: Schema.Document): Docs_v1.Schema.Document;
// Gets the latest version of the specified document.
get(documentId: string): Docs_v1.Schema.Document;
// Gets the latest version of the specified document.
get(documentId: string, optionalArgs: object): Docs_v1.Schema.Document;
}
}
namespace Schema {
export interface AutoText {
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
type?: string;
}
export interface Background {
color?: Docs_v1.Schema.OptionalColor;
}
export interface BackgroundSuggestionState {
backgroundColorSuggested?: boolean;
}
export interface BatchUpdateDocumentRequest {
requests?: Docs_v1.Schema.Request[];
writeControl?: Docs_v1.Schema.WriteControl;
}
export interface BatchUpdateDocumentResponse {
documentId?: string;
replies?: Docs_v1.Schema.Response[];
writeControl?: Docs_v1.Schema.WriteControl;
}
export interface Body {
content?: Docs_v1.Schema.StructuralElement[];
}
export interface Bullet {
listId?: string;
nestingLevel?: number;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface BulletSuggestionState {
listIdSuggested?: boolean;
nestingLevelSuggested?: boolean;
textStyleSuggestionState?: Docs_v1.Schema.TextStyleSuggestionState;
}
export interface Color {
rgbColor?: Docs_v1.Schema.RgbColor;
}
export interface ColumnBreak {
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface CreateNamedRangeRequest {
name?: string;
range?: Docs_v1.Schema.Range;
}
export interface CreateNamedRangeResponse {
namedRangeId?: string;
}
export interface CreateParagraphBulletsRequest {
bulletPreset?: string;
range?: Docs_v1.Schema.Range;
}
export interface CropProperties {
angle?: Number;
offsetBottom?: Number;
offsetLeft?: Number;
offsetRight?: Number;
offsetTop?: Number;
}
export interface CropPropertiesSuggestionState {
angleSuggested?: boolean;
offsetBottomSuggested?: boolean;
offsetLeftSuggested?: boolean;
offsetRightSuggested?: boolean;
offsetTopSuggested?: boolean;
}
export interface DeleteContentRangeRequest {
range?: Docs_v1.Schema.Range;
}
export interface DeleteNamedRangeRequest {
name?: string;
namedRangeId?: string;
}
export interface DeleteParagraphBulletsRequest {
range?: Docs_v1.Schema.Range;
}
export interface DeletePositionedObjectRequest {
objectId?: string;
}
export interface DeleteTableColumnRequest {
tableCellLocation?: Docs_v1.Schema.TableCellLocation;
}
export interface DeleteTableRowRequest {
tableCellLocation?: Docs_v1.Schema.TableCellLocation;
}
export interface Dimension {
magnitude?: Number;
unit?: string;
}
export interface Document {
body?: Docs_v1.Schema.Body;
documentId?: string;
documentStyle?: Docs_v1.Schema.DocumentStyle;
footers?: object;
footnotes?: object;
headers?: object;
inlineObjects?: object;
lists?: object;
namedRanges?: object;
namedStyles?: Docs_v1.Schema.NamedStyles;
positionedObjects?: object;
revisionId?: string;
suggestedDocumentStyleChanges?: object;
suggestedNamedStylesChanges?: object;
suggestionsViewMode?: string;
title?: string;
}
export interface DocumentStyle {
background?: Docs_v1.Schema.Background;
defaultFooterId?: string;
defaultHeaderId?: string;
evenPageFooterId?: string;
evenPageHeaderId?: string;
firstPageFooterId?: string;
firstPageHeaderId?: string;
marginBottom?: Docs_v1.Schema.Dimension;
marginLeft?: Docs_v1.Schema.Dimension;
marginRight?: Docs_v1.Schema.Dimension;
marginTop?: Docs_v1.Schema.Dimension;
pageNumberStart?: number;
pageSize?: Docs_v1.Schema.Size;
useEvenPageHeaderFooter?: boolean;
useFirstPageHeaderFooter?: boolean;
}
export interface DocumentStyleSuggestionState {
backgroundSuggestionState?: Docs_v1.Schema.BackgroundSuggestionState;
defaultFooterIdSuggested?: boolean;
defaultHeaderIdSuggested?: boolean;
evenPageFooterIdSuggested?: boolean;
evenPageHeaderIdSuggested?: boolean;
firstPageFooterIdSuggested?: boolean;
firstPageHeaderIdSuggested?: boolean;
marginBottomSuggested?: boolean;
marginLeftSuggested?: boolean;
marginRightSuggested?: boolean;
marginTopSuggested?: boolean;
pageNumberStartSuggested?: boolean;
pageSizeSuggestionState?: Docs_v1.Schema.SizeSuggestionState;
useEvenPageHeaderFooterSuggested?: boolean;
useFirstPageHeaderFooterSuggested?: boolean;
}
export interface EmbeddedObject {
description?: string;
embeddedDrawingProperties?: any;
embeddedObjectBorder?: Docs_v1.Schema.EmbeddedObjectBorder;
imageProperties?: Docs_v1.Schema.ImageProperties;
linkedContentReference?: Docs_v1.Schema.LinkedContentReference;
marginBottom?: Docs_v1.Schema.Dimension;
marginLeft?: Docs_v1.Schema.Dimension;
marginRight?: Docs_v1.Schema.Dimension;
marginTop?: Docs_v1.Schema.Dimension;
size?: Docs_v1.Schema.Size;
title?: string;
}
export interface EmbeddedObjectBorder {
color?: Docs_v1.Schema.OptionalColor;
dashStyle?: string;
propertyState?: string;
width?: Docs_v1.Schema.Dimension;
}
export interface EmbeddedObjectBorderSuggestionState {
colorSuggested?: boolean;
dashStyleSuggested?: boolean;
propertyStateSuggested?: boolean;
widthSuggested?: boolean;
}
export interface EmbeddedObjectSuggestionState {
descriptionSuggested?: boolean;
embeddedDrawingPropertiesSuggestionState?: any;
embeddedObjectBorderSuggestionState?: Docs_v1.Schema.EmbeddedObjectBorderSuggestionState;
imagePropertiesSuggestionState?: Docs_v1.Schema.ImagePropertiesSuggestionState;
linkedContentReferenceSuggestionState?: Docs_v1.Schema.LinkedContentReferenceSuggestionState;
marginBottomSuggested?: boolean;
marginLeftSuggested?: boolean;
marginRightSuggested?: boolean;
marginTopSuggested?: boolean;
sizeSuggestionState?: Docs_v1.Schema.SizeSuggestionState;
titleSuggested?: boolean;
}
export interface EndOfSegmentLocation {
segmentId?: string;
}
export interface Equation {
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
}
export interface Footer {
content?: Docs_v1.Schema.StructuralElement[];
footerId?: string;
}
export interface Footnote {
content?: Docs_v1.Schema.StructuralElement[];
footnoteId?: string;
}
export interface FootnoteReference {
footnoteId?: string;
footnoteNumber?: string;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface Header {
content?: Docs_v1.Schema.StructuralElement[];
headerId?: string;
}
export interface HorizontalRule {
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface ImageProperties {
angle?: Number;
brightness?: Number;
contentUri?: string;
contrast?: Number;
cropProperties?: Docs_v1.Schema.CropProperties;
sourceUri?: string;
transparency?: Number;
}
export interface ImagePropertiesSuggestionState {
angleSuggested?: boolean;
brightnessSuggested?: boolean;
contentUriSuggested?: boolean;
contrastSuggested?: boolean;
cropPropertiesSuggestionState?: Docs_v1.Schema.CropPropertiesSuggestionState;
sourceUriSuggested?: boolean;
transparencySuggested?: boolean;
}
export interface InlineObject {
inlineObjectProperties?: Docs_v1.Schema.InlineObjectProperties;
objectId?: string;
suggestedDeletionIds?: string[];
suggestedInlineObjectPropertiesChanges?: object;
suggestedInsertionId?: string;
}
export interface InlineObjectElement {
inlineObjectId?: string;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface InlineObjectProperties {
embeddedObject?: Docs_v1.Schema.EmbeddedObject;
}
export interface InlineObjectPropertiesSuggestionState {
embeddedObjectSuggestionState?: Docs_v1.Schema.EmbeddedObjectSuggestionState;
}
export interface InsertInlineImageRequest {
endOfSegmentLocation?: Docs_v1.Schema.EndOfSegmentLocation;
location?: Docs_v1.Schema.Location;
objectSize?: Docs_v1.Schema.Size;
uri?: string;
}
export interface InsertInlineImageResponse {
objectId?: string;
}
export interface InsertInlineSheetsChartResponse {
objectId?: string;
}
export interface InsertPageBreakRequest {
endOfSegmentLocation?: Docs_v1.Schema.EndOfSegmentLocation;
location?: Docs_v1.Schema.Location;
}
export interface InsertTableRequest {
columns?: number;
endOfSegmentLocation?: Docs_v1.Schema.EndOfSegmentLocation;
location?: Docs_v1.Schema.Location;
rows?: number;
}
export interface InsertTableRowRequest {
insertBelow?: boolean;
tableCellLocation?: Docs_v1.Schema.TableCellLocation;
}
export interface InsertTextRequest {
endOfSegmentLocation?: Docs_v1.Schema.EndOfSegmentLocation;
location?: Docs_v1.Schema.Location;
text?: string;
}
export interface Link {
bookmarkId?: string;
headingId?: string;
url?: string;
}
export interface LinkedContentReference {
sheetsChartReference?: Docs_v1.Schema.SheetsChartReference;
}
export interface LinkedContentReferenceSuggestionState {
sheetsChartReferenceSuggestionState?: Docs_v1.Schema.SheetsChartReferenceSuggestionState;
}
export interface List {
listProperties?: Docs_v1.Schema.ListProperties;
suggestedDeletionIds?: string[];
suggestedInsertionId?: string;
suggestedListPropertiesChanges?: object;
}
export interface ListProperties {
nestingLevels?: Docs_v1.Schema.NestingLevel[];
}
export interface ListPropertiesSuggestionState {
nestingLevelsSuggestionStates?: Docs_v1.Schema.NestingLevelSuggestionState[];
}
export interface Location {
index?: number;
segmentId?: string;
}
export interface NamedRange {
name?: string;
namedRangeId?: string;
ranges?: Docs_v1.Schema.Range[];
}
export interface NamedRanges {
name?: string;
namedRanges?: Docs_v1.Schema.NamedRange[];
}
export interface NamedStyle {
namedStyleType?: string;
paragraphStyle?: Docs_v1.Schema.ParagraphStyle;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface NamedStyleSuggestionState {
namedStyleType?: string;
paragraphStyleSuggestionState?: Docs_v1.Schema.ParagraphStyleSuggestionState;
textStyleSuggestionState?: Docs_v1.Schema.TextStyleSuggestionState;
}
export interface NamedStyles {
styles?: Docs_v1.Schema.NamedStyle[];
}
export interface NamedStylesSuggestionState {
stylesSuggestionStates?: Docs_v1.Schema.NamedStyleSuggestionState[];
}
export interface NestingLevel {
bulletAlignment?: string;
glyphFormat?: string;
glyphSymbol?: string;
glyphType?: string;
indentFirstLine?: Docs_v1.Schema.Dimension;
indentStart?: Docs_v1.Schema.Dimension;
startNumber?: number;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface NestingLevelSuggestionState {
bulletAlignmentSuggested?: boolean;
glyphFormatSuggested?: boolean;
glyphSymbolSuggested?: boolean;
glyphTypeSuggested?: boolean;
indentFirstLineSuggested?: boolean;
indentStartSuggested?: boolean;
startNumberSuggested?: boolean;
textStyleSuggestionState?: Docs_v1.Schema.TextStyleSuggestionState;
}
export interface ObjectReferences {
objectIds?: string[];
}
export interface OptionalColor {
color?: Docs_v1.Schema.Color;
}
export interface PageBreak {
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface Paragraph {
bullet?: Docs_v1.Schema.Bullet;
elements?: Docs_v1.Schema.ParagraphElement[];
paragraphStyle?: Docs_v1.Schema.ParagraphStyle;
positionedObjectIds?: string[];
suggestedBulletChanges?: object;
suggestedParagraphStyleChanges?: object;
suggestedPositionedObjectIds?: object;
}
export interface ParagraphBorder {
color?: Docs_v1.Schema.OptionalColor;
dashStyle?: string;
padding?: Docs_v1.Schema.Dimension;
width?: Docs_v1.Schema.Dimension;
}
export interface ParagraphElement {
autoText?: Docs_v1.Schema.AutoText;
columnBreak?: Docs_v1.Schema.ColumnBreak;
endIndex?: number;
equation?: Docs_v1.Schema.Equation;
footnoteReference?: Docs_v1.Schema.FootnoteReference;
horizontalRule?: Docs_v1.Schema.HorizontalRule;
inlineObjectElement?: Docs_v1.Schema.InlineObjectElement;
pageBreak?: Docs_v1.Schema.PageBreak;
startIndex?: number;
textRun?: Docs_v1.Schema.TextRun;
}
export interface ParagraphStyle {
alignment?: string;
avoidWidowAndOrphan?: boolean;
borderBetween?: Docs_v1.Schema.ParagraphBorder;
borderBottom?: Docs_v1.Schema.ParagraphBorder;
borderLeft?: Docs_v1.Schema.ParagraphBorder;
borderRight?: Docs_v1.Schema.ParagraphBorder;
borderTop?: Docs_v1.Schema.ParagraphBorder;
direction?: string;
headingId?: string;
indentEnd?: Docs_v1.Schema.Dimension;
indentFirstLine?: Docs_v1.Schema.Dimension;
indentStart?: Docs_v1.Schema.Dimension;
keepLinesTogether?: boolean;
keepWithNext?: boolean;
lineSpacing?: Number;
namedStyleType?: string;
shading?: Docs_v1.Schema.Shading;
spaceAbove?: Docs_v1.Schema.Dimension;
spaceBelow?: Docs_v1.Schema.Dimension;
spacingMode?: string;
tabStops?: Docs_v1.Schema.TabStop[];
}
export interface ParagraphStyleSuggestionState {
alignmentSuggested?: boolean;
avoidWidowAndOrphanSuggested?: boolean;
borderBetweenSuggested?: boolean;
borderBottomSuggested?: boolean;
borderLeftSuggested?: boolean;
borderRightSuggested?: boolean;
borderTopSuggested?: boolean;
directionSuggested?: boolean;
headingIdSuggested?: boolean;
indentEndSuggested?: boolean;
indentFirstLineSuggested?: boolean;
indentStartSuggested?: boolean;
keepLinesTogetherSuggested?: boolean;
keepWithNextSuggested?: boolean;
lineSpacingSuggested?: boolean;
namedStyleTypeSuggested?: boolean;
shadingSuggestionState?: Docs_v1.Schema.ShadingSuggestionState;
spaceAboveSuggested?: boolean;
spaceBelowSuggested?: boolean;
spacingModeSuggested?: boolean;
}
export interface PositionedObject {
objectId?: string;
positionedObjectProperties?: Docs_v1.Schema.PositionedObjectProperties;
suggestedDeletionIds?: string[];
suggestedInsertionId?: string;
suggestedPositionedObjectPropertiesChanges?: object;
}
export interface PositionedObjectPositioning {
layout?: string;
leftOffset?: Docs_v1.Schema.Dimension;
topOffset?: Docs_v1.Schema.Dimension;
}
export interface PositionedObjectPositioningSuggestionState {
layoutSuggested?: boolean;
leftOffsetSuggested?: boolean;
topOffsetSuggested?: boolean;
}
export interface PositionedObjectProperties {
embeddedObject?: Docs_v1.Schema.EmbeddedObject;
positioning?: Docs_v1.Schema.PositionedObjectPositioning;
}
export interface PositionedObjectPropertiesSuggestionState {
embeddedObjectSuggestionState?: Docs_v1.Schema.EmbeddedObjectSuggestionState;
positioningSuggestionState?: Docs_v1.Schema.PositionedObjectPositioningSuggestionState;
}
export interface Range {
endIndex?: number;
segmentId?: string;
startIndex?: number;
}
export interface ReplaceAllTextRequest {
containsText?: Docs_v1.Schema.SubstringMatchCriteria;
replaceText?: string;
}
export interface ReplaceAllTextResponse {
occurrencesChanged?: number;
}
export interface Request {
createNamedRange?: Docs_v1.Schema.CreateNamedRangeRequest;
createParagraphBullets?: Docs_v1.Schema.CreateParagraphBulletsRequest;
deleteContentRange?: Docs_v1.Schema.DeleteContentRangeRequest;
deleteNamedRange?: Docs_v1.Schema.DeleteNamedRangeRequest;
deleteParagraphBullets?: Docs_v1.Schema.DeleteParagraphBulletsRequest;
deletePositionedObject?: Docs_v1.Schema.DeletePositionedObjectRequest;
deleteTableColumn?: Docs_v1.Schema.DeleteTableColumnRequest;
deleteTableRow?: Docs_v1.Schema.DeleteTableRowRequest;
insertInlineImage?: Docs_v1.Schema.InsertInlineImageRequest;
insertPageBreak?: Docs_v1.Schema.InsertPageBreakRequest;
insertTable?: Docs_v1.Schema.InsertTableRequest;
insertTableRow?: Docs_v1.Schema.InsertTableRowRequest;
insertText?: Docs_v1.Schema.InsertTextRequest;
replaceAllText?: Docs_v1.Schema.ReplaceAllTextRequest;
updateParagraphStyle?: Docs_v1.Schema.UpdateParagraphStyleRequest;
updateTextStyle?: Docs_v1.Schema.UpdateTextStyleRequest;
}
export interface Response {
createNamedRange?: Docs_v1.Schema.CreateNamedRangeResponse;
insertInlineImage?: Docs_v1.Schema.InsertInlineImageResponse;
insertInlineSheetsChart?: Docs_v1.Schema.InsertInlineSheetsChartResponse;
replaceAllText?: Docs_v1.Schema.ReplaceAllTextResponse;
}
export interface RgbColor {
blue?: Number;
green?: Number;
red?: Number;
}
export interface SectionBreak {
sectionStyle?: Docs_v1.Schema.SectionStyle;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
}
export interface SectionColumnProperties {
paddingEnd?: Docs_v1.Schema.Dimension;
width?: Docs_v1.Schema.Dimension;
}
export interface SectionStyle {
columnProperties?: Docs_v1.Schema.SectionColumnProperties[];
columnSeparatorStyle?: string;
contentDirection?: string;
}
export interface Shading {
backgroundColor?: Docs_v1.Schema.OptionalColor;
}
export interface ShadingSuggestionState {
backgroundColorSuggested?: boolean;
}
export interface SheetsChartReference {
chartId?: number;
spreadsheetId?: string;
}
export interface SheetsChartReferenceSuggestionState {
chartIdSuggested?: boolean;
spreadsheetIdSuggested?: boolean;
}
export interface Size {
height?: Docs_v1.Schema.Dimension;
width?: Docs_v1.Schema.Dimension;
}
export interface SizeSuggestionState {
heightSuggested?: boolean;
widthSuggested?: boolean;
}
export interface StructuralElement {
endIndex?: number;
paragraph?: Docs_v1.Schema.Paragraph;
sectionBreak?: Docs_v1.Schema.SectionBreak;
startIndex?: number;
table?: Docs_v1.Schema.Table;
tableOfContents?: Docs_v1.Schema.TableOfContents;
}
export interface SubstringMatchCriteria {
matchCase?: boolean;
text?: string;
}
export interface SuggestedBullet {
bullet?: Docs_v1.Schema.Bullet;
bulletSuggestionState?: Docs_v1.Schema.BulletSuggestionState;
}
export interface SuggestedDocumentStyle {
documentStyle?: Docs_v1.Schema.DocumentStyle;
documentStyleSuggestionState?: Docs_v1.Schema.DocumentStyleSuggestionState;
}
export interface SuggestedInlineObjectProperties {
inlineObjectProperties?: Docs_v1.Schema.InlineObjectProperties;
inlineObjectPropertiesSuggestionState?: Docs_v1.Schema.InlineObjectPropertiesSuggestionState;
}
export interface SuggestedListProperties {
listProperties?: Docs_v1.Schema.ListProperties;
listPropertiesSuggestionState?: Docs_v1.Schema.ListPropertiesSuggestionState;
}
export interface SuggestedNamedStyles {
namedStyles?: Docs_v1.Schema.NamedStyles;
namedStylesSuggestionState?: Docs_v1.Schema.NamedStylesSuggestionState;
}
export interface SuggestedParagraphStyle {
paragraphStyle?: Docs_v1.Schema.ParagraphStyle;
paragraphStyleSuggestionState?: Docs_v1.Schema.ParagraphStyleSuggestionState;
}
export interface SuggestedPositionedObjectProperties {
positionedObjectProperties?: Docs_v1.Schema.PositionedObjectProperties;
positionedObjectPropertiesSuggestionState?: Docs_v1.Schema.PositionedObjectPropertiesSuggestionState;
}
export interface SuggestedTableCellStyle {
tableCellStyle?: Docs_v1.Schema.TableCellStyle;
tableCellStyleSuggestionState?: Docs_v1.Schema.TableCellStyleSuggestionState;
}
export interface SuggestedTableRowStyle {
tableRowStyle?: Docs_v1.Schema.TableRowStyle;
tableRowStyleSuggestionState?: Docs_v1.Schema.TableRowStyleSuggestionState;
}
export interface SuggestedTextStyle {
textStyle?: Docs_v1.Schema.TextStyle;
textStyleSuggestionState?: Docs_v1.Schema.TextStyleSuggestionState;
}
export interface TabStop {
alignment?: string;
offset?: Docs_v1.Schema.Dimension;
}
export interface Table {
columns?: number;
rows?: number;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
tableRows?: Docs_v1.Schema.TableRow[];
tableStyle?: Docs_v1.Schema.TableStyle;
}
export interface TableCell {
content?: Docs_v1.Schema.StructuralElement[];
endIndex?: number;
startIndex?: number;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTableCellStyleChanges?: object;
tableCellStyle?: Docs_v1.Schema.TableCellStyle;
}
export interface TableCellBorder {
color?: Docs_v1.Schema.OptionalColor;
dashStyle?: string;
width?: Docs_v1.Schema.Dimension;
}
export interface TableCellLocation {
columnIndex?: number;
rowIndex?: number;
tableStartLocation?: Docs_v1.Schema.Location;
}
export interface TableCellStyle {
backgroundColor?: Docs_v1.Schema.OptionalColor;
borderBottom?: Docs_v1.Schema.TableCellBorder;
borderLeft?: Docs_v1.Schema.TableCellBorder;
borderRight?: Docs_v1.Schema.TableCellBorder;
borderTop?: Docs_v1.Schema.TableCellBorder;
columnSpan?: number;
contentAlignment?: string;
paddingBottom?: Docs_v1.Schema.Dimension;
paddingLeft?: Docs_v1.Schema.Dimension;
paddingRight?: Docs_v1.Schema.Dimension;
paddingTop?: Docs_v1.Schema.Dimension;
rowSpan?: number;
}
export interface TableCellStyleSuggestionState {
backgroundColorSuggested?: boolean;
borderBottomSuggested?: boolean;
borderLeftSuggested?: boolean;
borderRightSuggested?: boolean;
borderTopSuggested?: boolean;
columnSpanSuggested?: boolean;
contentAlignmentSuggested?: boolean;
paddingBottomSuggested?: boolean;
paddingLeftSuggested?: boolean;
paddingRightSuggested?: boolean;
paddingTopSuggested?: boolean;
rowSpanSuggested?: boolean;
}
export interface TableColumnProperties {
width?: Docs_v1.Schema.Dimension;
widthType?: string;
}
export interface TableOfContents {
content?: Docs_v1.Schema.StructuralElement[];
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
}
export interface TableRow {
endIndex?: number;
startIndex?: number;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTableRowStyleChanges?: object;
tableCells?: Docs_v1.Schema.TableCell[];
tableRowStyle?: Docs_v1.Schema.TableRowStyle;
}
export interface TableRowStyle {
minRowHeight?: Docs_v1.Schema.Dimension;
}
export interface TableRowStyleSuggestionState {
minRowHeightSuggested?: boolean;
}
export interface TableStyle {
tableColumnProperties?: Docs_v1.Schema.TableColumnProperties[];
}
export interface TextRun {
content?: string;
suggestedDeletionIds?: string[];
suggestedInsertionIds?: string[];
suggestedTextStyleChanges?: object;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface TextStyle {
backgroundColor?: Docs_v1.Schema.OptionalColor;
baselineOffset?: string;
bold?: boolean;
fontSize?: Docs_v1.Schema.Dimension;
foregroundColor?: Docs_v1.Schema.OptionalColor;
italic?: boolean;
link?: Docs_v1.Schema.Link;
smallCaps?: boolean;
strikethrough?: boolean;
underline?: boolean;
weightedFontFamily?: Docs_v1.Schema.WeightedFontFamily;
}
export interface TextStyleSuggestionState {
backgroundColorSuggested?: boolean;
baselineOffsetSuggested?: boolean;
boldSuggested?: boolean;
fontSizeSuggested?: boolean;
foregroundColorSuggested?: boolean;
italicSuggested?: boolean;
linkSuggested?: boolean;
smallCapsSuggested?: boolean;
strikethroughSuggested?: boolean;
underlineSuggested?: boolean;
weightedFontFamilySuggested?: boolean;
}
export interface UpdateParagraphStyleRequest {
fields?: string;
paragraphStyle?: Docs_v1.Schema.ParagraphStyle;
range?: Docs_v1.Schema.Range;
}
export interface UpdateTextStyleRequest {
fields?: string;
range?: Docs_v1.Schema.Range;
textStyle?: Docs_v1.Schema.TextStyle;
}
export interface WeightedFontFamily {
fontFamily?: string;
weight?: number;
}
export interface WriteControl {
requiredRevisionId?: string;
targetRevisionId?: string;
}
}
}
export interface Docs_v1 {
Documents?: Docs_v1.Collection.DocumentsCollection;
// Create a new instance of AutoText
newAutoText(): Docs_v1.Schema.AutoText;
// Create a new instance of Background
newBackground(): Docs_v1.Schema.Background;
// Create a new instance of BatchUpdateDocumentRequest
newBatchUpdateDocumentRequest(): Docs_v1.Schema.BatchUpdateDocumentRequest;
// Create a new instance of Body
newBody(): Docs_v1.Schema.Body;
// Create a new instance of Bullet
newBullet(): Docs_v1.Schema.Bullet;
// Create a new instance of Color
newColor(): Docs_v1.Schema.Color;
// Create a new instance of ColumnBreak
newColumnBreak(): Docs_v1.Schema.ColumnBreak;
// Create a new instance of CreateNamedRangeRequest
newCreateNamedRangeRequest(): Docs_v1.Schema.CreateNamedRangeRequest;
// Create a new instance of CreateParagraphBulletsRequest
newCreateParagraphBulletsRequest(): Docs_v1.Schema.CreateParagraphBulletsRequest;
// Create a new instance of DeleteContentRangeRequest
newDeleteContentRangeRequest(): Docs_v1.Schema.DeleteContentRangeRequest;
// Create a new instance of DeleteNamedRangeRequest
newDeleteNamedRangeRequest(): Docs_v1.Schema.DeleteNamedRangeRequest;
// Create a new instance of DeleteParagraphBulletsRequest
newDeleteParagraphBulletsRequest(): Docs_v1.Schema.DeleteParagraphBulletsRequest;
// Create a new instance of DeletePositionedObjectRequest
newDeletePositionedObjectRequest(): Docs_v1.Schema.DeletePositionedObjectRequest;
// Create a new instance of DeleteTableColumnRequest
newDeleteTableColumnRequest(): Docs_v1.Schema.DeleteTableColumnRequest;
// Create a new instance of DeleteTableRowRequest
newDeleteTableRowRequest(): Docs_v1.Schema.DeleteTableRowRequest;
// Create a new instance of Dimension
newDimension(): Docs_v1.Schema.Dimension;
// Create a new instance of Document
newDocument(): Docs_v1.Schema.Document;
// Create a new instance of DocumentStyle
newDocumentStyle(): Docs_v1.Schema.DocumentStyle;
// Create a new instance of EndOfSegmentLocation
newEndOfSegmentLocation(): Docs_v1.Schema.EndOfSegmentLocation;
// Create a new instance of Equation
newEquation(): Docs_v1.Schema.Equation;
// Create a new instance of FootnoteReference
newFootnoteReference(): Docs_v1.Schema.FootnoteReference;
// Create a new instance of HorizontalRule
newHorizontalRule(): Docs_v1.Schema.HorizontalRule;
// Create a new instance of InlineObjectElement
newInlineObjectElement(): Docs_v1.Schema.InlineObjectElement;
// Create a new instance of InsertInlineImageRequest
newInsertInlineImageRequest(): Docs_v1.Schema.InsertInlineImageRequest;
// Create a new instance of InsertPageBreakRequest
newInsertPageBreakRequest(): Docs_v1.Schema.InsertPageBreakRequest;
// Create a new instance of InsertTableRequest
newInsertTableRequest(): Docs_v1.Schema.InsertTableRequest;
// Create a new instance of InsertTableRowRequest
newInsertTableRowRequest(): Docs_v1.Schema.InsertTableRowRequest;
// Create a new instance of InsertTextRequest
newInsertTextRequest(): Docs_v1.Schema.InsertTextRequest;
// Create a new instance of Link
newLink(): Docs_v1.Schema.Link;
// Create a new instance of Location
newLocation(): Docs_v1.Schema.Location;
// Create a new instance of NamedStyle
newNamedStyle(): Docs_v1.Schema.NamedStyle;
// Create a new instance of NamedStyles
newNamedStyles(): Docs_v1.Schema.NamedStyles;
// Create a new instance of OptionalColor
newOptionalColor(): Docs_v1.Schema.OptionalColor;
// Create a new instance of PageBreak
newPageBreak(): Docs_v1.Schema.PageBreak;
// Create a new instance of Paragraph
newParagraph(): Docs_v1.Schema.Paragraph;
// Create a new instance of ParagraphBorder
newParagraphBorder(): Docs_v1.Schema.ParagraphBorder;
// Create a new instance of ParagraphElement
newParagraphElement(): Docs_v1.Schema.ParagraphElement;
// Create a new instance of ParagraphStyle
newParagraphStyle(): Docs_v1.Schema.ParagraphStyle;
// Create a new instance of Range
newRange(): Docs_v1.Schema.Range;
// Create a new instance of ReplaceAllTextRequest
newReplaceAllTextRequest(): Docs_v1.Schema.ReplaceAllTextRequest;
// Create a new instance of Request
newRequest(): Docs_v1.Schema.Request;
// Create a new instance of RgbColor
newRgbColor(): Docs_v1.Schema.RgbColor;
// Create a new instance of SectionBreak
newSectionBreak(): Docs_v1.Schema.SectionBreak;
// Create a new instance of SectionColumnProperties
newSectionColumnProperties(): Docs_v1.Schema.SectionColumnProperties;
// Create a new instance of SectionStyle
newSectionStyle(): Docs_v1.Schema.SectionStyle;
// Create a new instance of Shading
newShading(): Docs_v1.Schema.Shading;
// Create a new instance of Size
newSize(): Docs_v1.Schema.Size;
// Create a new instance of StructuralElement
newStructuralElement(): Docs_v1.Schema.StructuralElement;
// Create a new instance of SubstringMatchCriteria
newSubstringMatchCriteria(): Docs_v1.Schema.SubstringMatchCriteria;
// Create a new instance of TabStop
newTabStop(): Docs_v1.Schema.TabStop;
// Create a new instance of Table
newTable(): Docs_v1.Schema.Table;
// Create a new instance of TableCell
newTableCell(): Docs_v1.Schema.TableCell;
// Create a new instance of TableCellBorder
newTableCellBorder(): Docs_v1.Schema.TableCellBorder;
// Create a new instance of TableCellLocation
newTableCellLocation(): Docs_v1.Schema.TableCellLocation;
// Create a new instance of TableCellStyle
newTableCellStyle(): Docs_v1.Schema.TableCellStyle;
// Create a new instance of TableColumnProperties
newTableColumnProperties(): Docs_v1.Schema.TableColumnProperties;
// Create a new instance of TableOfContents
newTableOfContents(): Docs_v1.Schema.TableOfContents;
// Create a new instance of TableRow
newTableRow(): Docs_v1.Schema.TableRow;
// Create a new instance of TableRowStyle
newTableRowStyle(): Docs_v1.Schema.TableRowStyle;
// Create a new instance of TableStyle
newTableStyle(): Docs_v1.Schema.TableStyle;
// Create a new instance of TextRun
newTextRun(): Docs_v1.Schema.TextRun;
// Create a new instance of TextStyle
newTextStyle(): Docs_v1.Schema.TextStyle;
// Create a new instance of UpdateParagraphStyleRequest
newUpdateParagraphStyleRequest(): Docs_v1.Schema.UpdateParagraphStyleRequest;
// Create a new instance of UpdateTextStyleRequest
newUpdateTextStyleRequest(): Docs_v1.Schema.UpdateTextStyleRequest;
// Create a new instance of WeightedFontFamily
newWeightedFontFamily(): Docs_v1.Schema.WeightedFontFamily;
// Create a new instance of WriteControl
newWriteControl(): Docs_v1.Schema.WriteControl;
}
}
declare var Docs_v1: GoogleAppsScript.Docs_v1;
View File
+836
View File
@@ -0,0 +1,836 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Drive_v2 {
namespace Collection {
export interface AboutCollection {
// Gets the information about the current user along with Drive API settings
get(): Drive_v2.Schema.About;
// Gets the information about the current user along with Drive API settings
get(optionalArgs: object): Drive_v2.Schema.About;
}
export interface AppsCollection {
// Gets a specific app.
get(appId: string): Drive_v2.Schema.App;
// Lists a user's installed apps.
list(): Drive_v2.Schema.AppList;
// Lists a user's installed apps.
list(optionalArgs: object): Drive_v2.Schema.AppList;
}
export interface ChangesCollection {
// Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.
get(changeId: string): Drive_v2.Schema.Change;
// Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.
get(changeId: string, optionalArgs: object): Drive_v2.Schema.Change;
// Gets the starting pageToken for listing future changes.
getStartPageToken(): Drive_v2.Schema.StartPageToken;
// Gets the starting pageToken for listing future changes.
getStartPageToken(optionalArgs: object): Drive_v2.Schema.StartPageToken;
// Lists the changes for a user or Team Drive.
list(): Drive_v2.Schema.ChangeList;
// Lists the changes for a user or Team Drive.
list(optionalArgs: object): Drive_v2.Schema.ChangeList;
// Subscribe to changes for a user.
watch(resource: Schema.Channel): Drive_v2.Schema.Channel;
// Subscribe to changes for a user.
watch(resource: Schema.Channel, optionalArgs: object): Drive_v2.Schema.Channel;
}
export interface ChannelsCollection {
// Stop watching resources through this channel
stop(resource: Schema.Channel): void;
}
export interface ChildrenCollection {
// Gets a specific child reference.
get(folderId: string, childId: string): Drive_v2.Schema.ChildReference;
// Inserts a file into a folder.
insert(resource: Schema.ChildReference, folderId: string): Drive_v2.Schema.ChildReference;
// Inserts a file into a folder.
insert(resource: Schema.ChildReference, folderId: string, optionalArgs: object): Drive_v2.Schema.ChildReference;
// Lists a folder's children.
list(folderId: string): Drive_v2.Schema.ChildList;
// Lists a folder's children.
list(folderId: string, optionalArgs: object): Drive_v2.Schema.ChildList;
// Removes a child from a folder.
remove(folderId: string, childId: string): void;
}
export interface CommentsCollection {
// Gets a comment by ID.
get(fileId: string, commentId: string): Drive_v2.Schema.Comment;
// Gets a comment by ID.
get(fileId: string, commentId: string, optionalArgs: object): Drive_v2.Schema.Comment;
// Creates a new comment on the given file.
insert(resource: Schema.Comment, fileId: string): Drive_v2.Schema.Comment;
// Lists a file's comments.
list(fileId: string): Drive_v2.Schema.CommentList;
// Lists a file's comments.
list(fileId: string, optionalArgs: object): Drive_v2.Schema.CommentList;
// Updates an existing comment. This method supports patch semantics.
patch(resource: Schema.Comment, fileId: string, commentId: string): Drive_v2.Schema.Comment;
// Deletes a comment.
remove(fileId: string, commentId: string): void;
// Updates an existing comment.
update(resource: Schema.Comment, fileId: string, commentId: string): Drive_v2.Schema.Comment;
}
export interface FilesCollection {
// Creates a copy of the specified file.
copy(resource: Schema.File, fileId: string): Drive_v2.Schema.File;
// Creates a copy of the specified file.
copy(resource: Schema.File, fileId: string, optionalArgs: object): Drive_v2.Schema.File;
// Permanently deletes all of the user's trashed files.
emptyTrash(): void;
// Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.
export(fileId: string, mimeType: string): void;
// Generates a set of file IDs which can be provided in insert requests.
generateIds(): Drive_v2.Schema.GeneratedIds;
// Generates a set of file IDs which can be provided in insert requests.
generateIds(optionalArgs: object): Drive_v2.Schema.GeneratedIds;
// Gets a file's metadata by ID.
get(fileId: string): Drive_v2.Schema.File;
// Gets a file's metadata by ID.
get(fileId: string, optionalArgs: object): Drive_v2.Schema.File;
// Insert a new file.
insert(resource: Schema.File): Drive_v2.Schema.File;
// Insert a new file.
insert(resource: Schema.File, mediaData: any): Drive_v2.Schema.File;
// Insert a new file.
insert(resource: Schema.File, mediaData: any, optionalArgs: object): Drive_v2.Schema.File;
// Lists the user's files.
list(): Drive_v2.Schema.FileList;
// Lists the user's files.
list(optionalArgs: object): Drive_v2.Schema.FileList;
// Updates file metadata and/or content. This method supports patch semantics.
patch(resource: Schema.File, fileId: string): Drive_v2.Schema.File;
// Updates file metadata and/or content. This method supports patch semantics.
patch(resource: Schema.File, fileId: string, optionalArgs: object): Drive_v2.Schema.File;
// Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.
remove(fileId: string): void;
// Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.
remove(fileId: string, optionalArgs: object): void;
// Set the file's updated time to the current server time.
touch(fileId: string): Drive_v2.Schema.File;
// Set the file's updated time to the current server time.
touch(fileId: string, optionalArgs: object): Drive_v2.Schema.File;
// Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for Team Drive files.
trash(fileId: string): Drive_v2.Schema.File;
// Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for Team Drive files.
trash(fileId: string, optionalArgs: object): Drive_v2.Schema.File;
// Restores a file from the trash.
untrash(fileId: string): Drive_v2.Schema.File;
// Restores a file from the trash.
untrash(fileId: string, optionalArgs: object): Drive_v2.Schema.File;
// Updates file metadata and/or content.
update(resource: Schema.File, fileId: string): Drive_v2.Schema.File;
// Updates file metadata and/or content.
update(resource: Schema.File, fileId: string, mediaData: any): Drive_v2.Schema.File;
// Updates file metadata and/or content.
update(resource: Schema.File, fileId: string, mediaData: any, optionalArgs: object): Drive_v2.Schema.File;
// Subscribe to changes on a file
watch(resource: Schema.Channel, fileId: string): Drive_v2.Schema.Channel;
// Subscribe to changes on a file
watch(resource: Schema.Channel, fileId: string, optionalArgs: object): Drive_v2.Schema.Channel;
}
export interface ParentsCollection {
// Gets a specific parent reference.
get(fileId: string, parentId: string): Drive_v2.Schema.ParentReference;
// Adds a parent folder for a file.
insert(resource: Schema.ParentReference, fileId: string): Drive_v2.Schema.ParentReference;
// Adds a parent folder for a file.
insert(resource: Schema.ParentReference, fileId: string, optionalArgs: object): Drive_v2.Schema.ParentReference;
// Lists a file's parents.
list(fileId: string): Drive_v2.Schema.ParentList;
// Removes a parent from a file.
remove(fileId: string, parentId: string): void;
}
export interface PermissionsCollection {
// Gets a permission by ID.
get(fileId: string, permissionId: string): Drive_v2.Schema.Permission;
// Gets a permission by ID.
get(fileId: string, permissionId: string, optionalArgs: object): Drive_v2.Schema.Permission;
// Returns the permission ID for an email address.
getIdForEmail(email: string): Drive_v2.Schema.PermissionId;
// Inserts a permission for a file or Team Drive.
insert(resource: Schema.Permission, fileId: string): Drive_v2.Schema.Permission;
// Inserts a permission for a file or Team Drive.
insert(resource: Schema.Permission, fileId: string, optionalArgs: object): Drive_v2.Schema.Permission;
// Lists a file's or Team Drive's permissions.
list(fileId: string): Drive_v2.Schema.PermissionList;
// Lists a file's or Team Drive's permissions.
list(fileId: string, optionalArgs: object): Drive_v2.Schema.PermissionList;
// Updates a permission using patch semantics.
patch(resource: Schema.Permission, fileId: string, permissionId: string): Drive_v2.Schema.Permission;
// Updates a permission using patch semantics.
patch(resource: Schema.Permission, fileId: string, permissionId: string, optionalArgs: object): Drive_v2.Schema.Permission;
// Deletes a permission from a file or Team Drive.
remove(fileId: string, permissionId: string): void;
// Deletes a permission from a file or Team Drive.
remove(fileId: string, permissionId: string, optionalArgs: object): void;
// Updates a permission.
update(resource: Schema.Permission, fileId: string, permissionId: string): Drive_v2.Schema.Permission;
// Updates a permission.
update(resource: Schema.Permission, fileId: string, permissionId: string, optionalArgs: object): Drive_v2.Schema.Permission;
}
export interface PropertiesCollection {
// Gets a property by its key.
get(fileId: string, propertyKey: string): Drive_v2.Schema.Property;
// Gets a property by its key.
get(fileId: string, propertyKey: string, optionalArgs: object): Drive_v2.Schema.Property;
// Adds a property to a file, or updates it if it already exists.
insert(resource: Schema.Property, fileId: string): Drive_v2.Schema.Property;
// Lists a file's properties.
list(fileId: string): Drive_v2.Schema.PropertyList;
// Updates a property.
patch(resource: Schema.Property, fileId: string, propertyKey: string): Drive_v2.Schema.Property;
// Updates a property.
patch(resource: Schema.Property, fileId: string, propertyKey: string, optionalArgs: object): Drive_v2.Schema.Property;
// Deletes a property.
remove(fileId: string, propertyKey: string): void;
// Deletes a property.
remove(fileId: string, propertyKey: string, optionalArgs: object): void;
// Updates a property.
update(resource: Schema.Property, fileId: string, propertyKey: string): Drive_v2.Schema.Property;
// Updates a property.
update(resource: Schema.Property, fileId: string, propertyKey: string, optionalArgs: object): Drive_v2.Schema.Property;
}
export interface RealtimeCollection {
// Exports the contents of the Realtime API data model associated with this file as JSON.
get(fileId: string): void;
// Exports the contents of the Realtime API data model associated with this file as JSON.
get(fileId: string, optionalArgs: object): void;
// Overwrites the Realtime API data model associated with this file with the provided JSON data model.
update(fileId: string): void;
// Overwrites the Realtime API data model associated with this file with the provided JSON data model.
update(fileId: string, mediaData: any): void;
// Overwrites the Realtime API data model associated with this file with the provided JSON data model.
update(fileId: string, mediaData: any, optionalArgs: object): void;
}
export interface RepliesCollection {
// Gets a reply.
get(fileId: string, commentId: string, replyId: string): Drive_v2.Schema.CommentReply;
// Gets a reply.
get(fileId: string, commentId: string, replyId: string, optionalArgs: object): Drive_v2.Schema.CommentReply;
// Creates a new reply to the given comment.
insert(resource: Schema.CommentReply, fileId: string, commentId: string): Drive_v2.Schema.CommentReply;
// Lists all of the replies to a comment.
list(fileId: string, commentId: string): Drive_v2.Schema.CommentReplyList;
// Lists all of the replies to a comment.
list(fileId: string, commentId: string, optionalArgs: object): Drive_v2.Schema.CommentReplyList;
// Updates an existing reply. This method supports patch semantics.
patch(resource: Schema.CommentReply, fileId: string, commentId: string, replyId: string): Drive_v2.Schema.CommentReply;
// Deletes a reply.
remove(fileId: string, commentId: string, replyId: string): void;
// Updates an existing reply.
update(resource: Schema.CommentReply, fileId: string, commentId: string, replyId: string): Drive_v2.Schema.CommentReply;
}
export interface RevisionsCollection {
// Gets a specific revision.
get(fileId: string, revisionId: string): Drive_v2.Schema.Revision;
// Lists a file's revisions.
list(fileId: string): Drive_v2.Schema.RevisionList;
// Lists a file's revisions.
list(fileId: string, optionalArgs: object): Drive_v2.Schema.RevisionList;
// Updates a revision. This method supports patch semantics.
patch(resource: Schema.Revision, fileId: string, revisionId: string): Drive_v2.Schema.Revision;
// Permanently deletes a file version. You can only delete revisions for files with binary content, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
remove(fileId: string, revisionId: string): void;
// Updates a revision.
update(resource: Schema.Revision, fileId: string, revisionId: string): Drive_v2.Schema.Revision;
}
export interface TeamdrivesCollection {
// Gets a Team Drive's metadata by ID.
get(teamDriveId: string): Drive_v2.Schema.TeamDrive;
// Gets a Team Drive's metadata by ID.
get(teamDriveId: string, optionalArgs: object): Drive_v2.Schema.TeamDrive;
// Creates a new Team Drive.
insert(resource: Schema.TeamDrive, requestId: string): Drive_v2.Schema.TeamDrive;
// Lists the user's Team Drives.
list(): Drive_v2.Schema.TeamDriveList;
// Lists the user's Team Drives.
list(optionalArgs: object): Drive_v2.Schema.TeamDriveList;
// Permanently deletes a Team Drive for which the user is an organizer. The Team Drive cannot contain any untrashed items.
remove(teamDriveId: string): void;
// Updates a Team Drive's metadata
update(resource: Schema.TeamDrive, teamDriveId: string): Drive_v2.Schema.TeamDrive;
// Updates a Team Drive's metadata
update(resource: Schema.TeamDrive, teamDriveId: string, optionalArgs: object): Drive_v2.Schema.TeamDrive;
}
}
namespace Schema {
export interface About {
additionalRoleInfo?: Drive_v2.Schema.AboutAdditionalRoleInfo[];
canCreateTeamDrives?: boolean;
domainSharingPolicy?: string;
etag?: string;
exportFormats?: Drive_v2.Schema.AboutExportFormats[];
features?: Drive_v2.Schema.AboutFeatures[];
folderColorPalette?: string[];
importFormats?: Drive_v2.Schema.AboutImportFormats[];
isCurrentAppInstalled?: boolean;
kind?: string;
languageCode?: string;
largestChangeId?: string;
maxUploadSizes?: Drive_v2.Schema.AboutMaxUploadSizes[];
name?: string;
permissionId?: string;
quotaBytesByService?: Drive_v2.Schema.AboutQuotaBytesByService[];
quotaBytesTotal?: string;
quotaBytesUsed?: string;
quotaBytesUsedAggregate?: string;
quotaBytesUsedInTrash?: string;
quotaType?: string;
remainingChangeIds?: string;
rootFolderId?: string;
selfLink?: string;
teamDriveThemes?: Drive_v2.Schema.AboutTeamDriveThemes[];
user?: Drive_v2.Schema.User;
}
export interface AboutAdditionalRoleInfo {
roleSets?: Drive_v2.Schema.AboutAdditionalRoleInfoRoleSets[];
type?: string;
}
export interface AboutAdditionalRoleInfoRoleSets {
additionalRoles?: string[];
primaryRole?: string;
}
export interface AboutExportFormats {
source?: string;
targets?: string[];
}
export interface AboutFeatures {
featureName?: string;
featureRate?: Number;
}
export interface AboutImportFormats {
source?: string;
targets?: string[];
}
export interface AboutMaxUploadSizes {
size?: string;
type?: string;
}
export interface AboutQuotaBytesByService {
bytesUsed?: string;
serviceName?: string;
}
export interface AboutTeamDriveThemes {
backgroundImageLink?: string;
colorRgb?: string;
id?: string;
}
export interface App {
authorized?: boolean;
createInFolderTemplate?: string;
createUrl?: string;
hasDriveWideScope?: boolean;
icons?: Drive_v2.Schema.AppIcons[];
id?: string;
installed?: boolean;
kind?: string;
longDescription?: string;
name?: string;
objectType?: string;
openUrlTemplate?: string;
primaryFileExtensions?: string[];
primaryMimeTypes?: string[];
productId?: string;
productUrl?: string;
secondaryFileExtensions?: string[];
secondaryMimeTypes?: string[];
shortDescription?: string;
supportsCreate?: boolean;
supportsImport?: boolean;
supportsMultiOpen?: boolean;
supportsOfflineCreate?: boolean;
useByDefault?: boolean;
}
export interface AppIcons {
category?: string;
iconUrl?: string;
size?: number;
}
export interface AppList {
defaultAppIds?: string[];
etag?: string;
items?: Drive_v2.Schema.App[];
kind?: string;
selfLink?: string;
}
export interface Change {
deleted?: boolean;
file?: Drive_v2.Schema.File;
fileId?: string;
id?: string;
kind?: string;
modificationDate?: string;
selfLink?: string;
teamDrive?: Drive_v2.Schema.TeamDrive;
teamDriveId?: string;
type?: string;
}
export interface ChangeList {
etag?: string;
items?: Drive_v2.Schema.Change[];
kind?: string;
largestChangeId?: string;
newStartPageToken?: string;
nextLink?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface Channel {
address?: string;
expiration?: string;
id?: string;
kind?: string;
params?: object;
payload?: boolean;
resourceId?: string;
resourceUri?: string;
token?: string;
type?: string;
}
export interface ChildList {
etag?: string;
items?: Drive_v2.Schema.ChildReference[];
kind?: string;
nextLink?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface ChildReference {
childLink?: string;
id?: string;
kind?: string;
selfLink?: string;
}
export interface Comment {
anchor?: string;
author?: Drive_v2.Schema.User;
commentId?: string;
content?: string;
context?: Drive_v2.Schema.CommentContext;
createdDate?: string;
deleted?: boolean;
fileId?: string;
fileTitle?: string;
htmlContent?: string;
kind?: string;
modifiedDate?: string;
replies?: Drive_v2.Schema.CommentReply[];
selfLink?: string;
status?: string;
}
export interface CommentContext {
type?: string;
value?: string;
}
export interface CommentList {
items?: Drive_v2.Schema.Comment[];
kind?: string;
nextLink?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface CommentReply {
author?: Drive_v2.Schema.User;
content?: string;
createdDate?: string;
deleted?: boolean;
htmlContent?: string;
kind?: string;
modifiedDate?: string;
replyId?: string;
verb?: string;
}
export interface CommentReplyList {
items?: Drive_v2.Schema.CommentReply[];
kind?: string;
nextLink?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface File {
alternateLink?: string;
appDataContents?: boolean;
canComment?: boolean;
canReadRevisions?: boolean;
capabilities?: Drive_v2.Schema.FileCapabilities;
copyRequiresWriterPermission?: boolean;
copyable?: boolean;
createdDate?: string;
defaultOpenWithLink?: string;
description?: string;
downloadUrl?: string;
editable?: boolean;
embedLink?: string;
etag?: string;
explicitlyTrashed?: boolean;
exportLinks?: object;
fileExtension?: string;
fileSize?: string;
folderColorRgb?: string;
fullFileExtension?: string;
hasAugmentedPermissions?: boolean;
hasThumbnail?: boolean;
headRevisionId?: string;
iconLink?: string;
id?: string;
imageMediaMetadata?: Drive_v2.Schema.FileImageMediaMetadata;
indexableText?: Drive_v2.Schema.FileIndexableText;
isAppAuthorized?: boolean;
kind?: string;
labels?: Drive_v2.Schema.FileLabels;
lastModifyingUser?: Drive_v2.Schema.User;
lastModifyingUserName?: string;
lastViewedByMeDate?: string;
markedViewedByMeDate?: string;
md5Checksum?: string;
mimeType?: string;
modifiedByMeDate?: string;
modifiedDate?: string;
openWithLinks?: object;
originalFilename?: string;
ownedByMe?: boolean;
ownerNames?: string[];
owners?: Drive_v2.Schema.User[];
parents?: Drive_v2.Schema.ParentReference[];
permissionIds?: string[];
permissions?: Drive_v2.Schema.Permission[];
properties?: Drive_v2.Schema.Property[];
quotaBytesUsed?: string;
selfLink?: string;
shareable?: boolean;
shared?: boolean;
sharedWithMeDate?: string;
sharingUser?: Drive_v2.Schema.User;
spaces?: string[];
teamDriveId?: string;
thumbnail?: Drive_v2.Schema.FileThumbnail;
thumbnailLink?: string;
thumbnailVersion?: string;
title?: string;
trashedDate?: string;
trashingUser?: Drive_v2.Schema.User;
userPermission?: Drive_v2.Schema.Permission;
version?: string;
videoMediaMetadata?: Drive_v2.Schema.FileVideoMediaMetadata;
webContentLink?: string;
webViewLink?: string;
writersCanShare?: boolean;
}
export interface FileCapabilities {
canAddChildren?: boolean;
canChangeCopyRequiresWriterPermission?: boolean;
canChangeRestrictedDownload?: boolean;
canComment?: boolean;
canCopy?: boolean;
canDelete?: boolean;
canDeleteChildren?: boolean;
canDownload?: boolean;
canEdit?: boolean;
canListChildren?: boolean;
canMoveChildrenOutOfTeamDrive?: boolean;
canMoveChildrenWithinTeamDrive?: boolean;
canMoveItemIntoTeamDrive?: boolean;
canMoveItemOutOfTeamDrive?: boolean;
canMoveItemWithinTeamDrive?: boolean;
canMoveTeamDriveItem?: boolean;
canReadRevisions?: boolean;
canReadTeamDrive?: boolean;
canRemoveChildren?: boolean;
canRename?: boolean;
canShare?: boolean;
canTrash?: boolean;
canTrashChildren?: boolean;
canUntrash?: boolean;
}
export interface FileImageMediaMetadata {
aperture?: Number;
cameraMake?: string;
cameraModel?: string;
colorSpace?: string;
date?: string;
exposureBias?: Number;
exposureMode?: string;
exposureTime?: Number;
flashUsed?: boolean;
focalLength?: Number;
height?: number;
isoSpeed?: number;
lens?: string;
location?: Drive_v2.Schema.FileImageMediaMetadataLocation;
maxApertureValue?: Number;
meteringMode?: string;
rotation?: number;
sensor?: string;
subjectDistance?: number;
whiteBalance?: string;
width?: number;
}
export interface FileImageMediaMetadataLocation {
altitude?: Number;
latitude?: Number;
longitude?: Number;
}
export interface FileIndexableText {
text?: string;
}
export interface FileLabels {
hidden?: boolean;
modified?: boolean;
restricted?: boolean;
starred?: boolean;
trashed?: boolean;
viewed?: boolean;
}
export interface FileList {
etag?: string;
incompleteSearch?: boolean;
items?: Drive_v2.Schema.File[];
kind?: string;
nextLink?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface FileThumbnail {
image?: string;
mimeType?: string;
}
export interface FileVideoMediaMetadata {
durationMillis?: string;
height?: number;
width?: number;
}
export interface GeneratedIds {
ids?: string[];
kind?: string;
space?: string;
}
export interface ParentList {
etag?: string;
items?: Drive_v2.Schema.ParentReference[];
kind?: string;
selfLink?: string;
}
export interface ParentReference {
id?: string;
isRoot?: boolean;
kind?: string;
parentLink?: string;
selfLink?: string;
}
export interface Permission {
additionalRoles?: string[];
authKey?: string;
deleted?: boolean;
domain?: string;
emailAddress?: string;
etag?: string;
expirationDate?: string;
id?: string;
kind?: string;
name?: string;
photoLink?: string;
role?: string;
selfLink?: string;
teamDrivePermissionDetails?: Drive_v2.Schema.PermissionTeamDrivePermissionDetails[];
type?: string;
value?: string;
withLink?: boolean;
}
export interface PermissionId {
id?: string;
kind?: string;
}
export interface PermissionList {
etag?: string;
items?: Drive_v2.Schema.Permission[];
kind?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface PermissionTeamDrivePermissionDetails {
additionalRoles?: string[];
inherited?: boolean;
inheritedFrom?: string;
role?: string;
teamDrivePermissionType?: string;
}
export interface Property {
etag?: string;
key?: string;
kind?: string;
selfLink?: string;
value?: string;
visibility?: string;
}
export interface PropertyList {
etag?: string;
items?: Drive_v2.Schema.Property[];
kind?: string;
selfLink?: string;
}
export interface Revision {
downloadUrl?: string;
etag?: string;
exportLinks?: object;
fileSize?: string;
id?: string;
kind?: string;
lastModifyingUser?: Drive_v2.Schema.User;
lastModifyingUserName?: string;
md5Checksum?: string;
mimeType?: string;
modifiedDate?: string;
originalFilename?: string;
pinned?: boolean;
publishAuto?: boolean;
published?: boolean;
publishedLink?: string;
publishedOutsideDomain?: boolean;
selfLink?: string;
}
export interface RevisionList {
etag?: string;
items?: Drive_v2.Schema.Revision[];
kind?: string;
nextPageToken?: string;
selfLink?: string;
}
export interface StartPageToken {
kind?: string;
startPageToken?: string;
}
export interface TeamDrive {
backgroundImageFile?: Drive_v2.Schema.TeamDriveBackgroundImageFile;
backgroundImageLink?: string;
capabilities?: Drive_v2.Schema.TeamDriveCapabilities;
colorRgb?: string;
createdDate?: string;
id?: string;
kind?: string;
name?: string;
restrictions?: Drive_v2.Schema.TeamDriveRestrictions;
themeId?: string;
}
export interface TeamDriveBackgroundImageFile {
id?: string;
width?: Number;
xCoordinate?: Number;
yCoordinate?: Number;
}
export interface TeamDriveCapabilities {
canAddChildren?: boolean;
canChangeCopyRequiresWriterPermissionRestriction?: boolean;
canChangeDomainUsersOnlyRestriction?: boolean;
canChangeTeamDriveBackground?: boolean;
canChangeTeamMembersOnlyRestriction?: boolean;
canComment?: boolean;
canCopy?: boolean;
canDeleteChildren?: boolean;
canDeleteTeamDrive?: boolean;
canDownload?: boolean;
canEdit?: boolean;
canListChildren?: boolean;
canManageMembers?: boolean;
canReadRevisions?: boolean;
canRemoveChildren?: boolean;
canRename?: boolean;
canRenameTeamDrive?: boolean;
canShare?: boolean;
canTrashChildren?: boolean;
}
export interface TeamDriveList {
items?: Drive_v2.Schema.TeamDrive[];
kind?: string;
nextPageToken?: string;
}
export interface TeamDriveRestrictions {
adminManagedRestrictions?: boolean;
copyRequiresWriterPermission?: boolean;
domainUsersOnly?: boolean;
teamMembersOnly?: boolean;
}
export interface User {
displayName?: string;
emailAddress?: string;
isAuthenticatedUser?: boolean;
kind?: string;
permissionId?: string;
picture?: Drive_v2.Schema.UserPicture;
}
export interface UserPicture {
url?: string;
}
}
}
export interface Drive_v2 {
About?: Drive_v2.Collection.AboutCollection;
Apps?: Drive_v2.Collection.AppsCollection;
Changes?: Drive_v2.Collection.ChangesCollection;
Channels?: Drive_v2.Collection.ChannelsCollection;
Children?: Drive_v2.Collection.ChildrenCollection;
Comments?: Drive_v2.Collection.CommentsCollection;
Files?: Drive_v2.Collection.FilesCollection;
Parents?: Drive_v2.Collection.ParentsCollection;
Permissions?: Drive_v2.Collection.PermissionsCollection;
Properties?: Drive_v2.Collection.PropertiesCollection;
Realtime?: Drive_v2.Collection.RealtimeCollection;
Replies?: Drive_v2.Collection.RepliesCollection;
Revisions?: Drive_v2.Collection.RevisionsCollection;
Teamdrives?: Drive_v2.Collection.TeamdrivesCollection;
// Create a new instance of Channel
newChannel(): Drive_v2.Schema.Channel;
// Create a new instance of ChildReference
newChildReference(): Drive_v2.Schema.ChildReference;
// Create a new instance of Comment
newComment(): Drive_v2.Schema.Comment;
// Create a new instance of CommentContext
newCommentContext(): Drive_v2.Schema.CommentContext;
// Create a new instance of CommentReply
newCommentReply(): Drive_v2.Schema.CommentReply;
// Create a new instance of File
newFile(): Drive_v2.Schema.File;
// Create a new instance of FileCapabilities
newFileCapabilities(): Drive_v2.Schema.FileCapabilities;
// Create a new instance of FileImageMediaMetadata
newFileImageMediaMetadata(): Drive_v2.Schema.FileImageMediaMetadata;
// Create a new instance of FileImageMediaMetadataLocation
newFileImageMediaMetadataLocation(): Drive_v2.Schema.FileImageMediaMetadataLocation;
// Create a new instance of FileIndexableText
newFileIndexableText(): Drive_v2.Schema.FileIndexableText;
// Create a new instance of FileLabels
newFileLabels(): Drive_v2.Schema.FileLabels;
// Create a new instance of FileThumbnail
newFileThumbnail(): Drive_v2.Schema.FileThumbnail;
// Create a new instance of FileVideoMediaMetadata
newFileVideoMediaMetadata(): Drive_v2.Schema.FileVideoMediaMetadata;
// Create a new instance of ParentReference
newParentReference(): Drive_v2.Schema.ParentReference;
// Create a new instance of Permission
newPermission(): Drive_v2.Schema.Permission;
// Create a new instance of PermissionTeamDrivePermissionDetails
newPermissionTeamDrivePermissionDetails(): Drive_v2.Schema.PermissionTeamDrivePermissionDetails;
// Create a new instance of Property
newProperty(): Drive_v2.Schema.Property;
// Create a new instance of Revision
newRevision(): Drive_v2.Schema.Revision;
// Create a new instance of TeamDrive
newTeamDrive(): Drive_v2.Schema.TeamDrive;
// Create a new instance of TeamDriveBackgroundImageFile
newTeamDriveBackgroundImageFile(): Drive_v2.Schema.TeamDriveBackgroundImageFile;
// Create a new instance of TeamDriveCapabilities
newTeamDriveCapabilities(): Drive_v2.Schema.TeamDriveCapabilities;
// Create a new instance of TeamDriveRestrictions
newTeamDriveRestrictions(): Drive_v2.Schema.TeamDriveRestrictions;
// Create a new instance of User
newUser(): Drive_v2.Schema.User;
// Create a new instance of UserPicture
newUserPicture(): Drive_v2.Schema.UserPicture;
}
}
declare var Drive_v2: GoogleAppsScript.Drive_v2;
+217
View File
@@ -0,0 +1,217 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Driveactivity_v2 {
namespace Collection {
export interface ActivityCollection {
// Query past activity in Google Drive.
query(resource: Schema.QueryDriveActivityRequest): Driveactivity_v2.Schema.QueryDriveActivityResponse;
}
}
namespace Schema {
export interface Action {
actor?: Driveactivity_v2.Schema.Actor;
detail?: Driveactivity_v2.Schema.ActionDetail;
target?: Driveactivity_v2.Schema.Target;
timeRange?: Driveactivity_v2.Schema.TimeRange;
timestamp?: string;
}
export interface ActionDetail {
comment?: Driveactivity_v2.Schema.Comment;
create?: Driveactivity_v2.Schema.Create;
delete?: Driveactivity_v2.Schema.Delete;
dlpChange?: Driveactivity_v2.Schema.DataLeakPreventionChange;
edit?: any;
move?: Driveactivity_v2.Schema.Move;
permissionChange?: Driveactivity_v2.Schema.PermissionChange;
reference?: Driveactivity_v2.Schema.ApplicationReference;
rename?: Driveactivity_v2.Schema.Rename;
restore?: Driveactivity_v2.Schema.Restore;
settingsChange?: Driveactivity_v2.Schema.SettingsChange;
}
export interface Actor {
administrator?: string;
anonymous?: string;
impersonation?: Driveactivity_v2.Schema.Impersonation;
system?: Driveactivity_v2.Schema.SystemEvent;
user?: Driveactivity_v2.Schema.User;
}
export interface ApplicationReference {
type?: string;
}
export interface Assignment {
subtype?: string;
}
export interface Comment {
assignment?: Driveactivity_v2.Schema.Assignment;
mentionedUsers?: Driveactivity_v2.Schema.User[];
post?: Driveactivity_v2.Schema.Post;
suggestion?: Driveactivity_v2.Schema.Suggestion;
}
export interface ConsolidationStrategy {
legacy?: any;
none?: any;
}
export interface Copy {
originalObject?: Driveactivity_v2.Schema.TargetReference;
}
export interface Create {
copy?: Driveactivity_v2.Schema.Copy;
new?: any;
upload?: any;
}
export interface DataLeakPreventionChange {
type?: string;
}
export interface Delete {
type?: string;
}
export interface Domain {
legacyId?: string;
name?: string;
}
export interface DriveActivity {
actions?: Driveactivity_v2.Schema.Action[];
actors?: Driveactivity_v2.Schema.Actor[];
primaryActionDetail?: Driveactivity_v2.Schema.ActionDetail;
targets?: Driveactivity_v2.Schema.Target[];
timeRange?: Driveactivity_v2.Schema.TimeRange;
timestamp?: string;
}
export interface DriveItem {
file?: any;
folder?: Driveactivity_v2.Schema.Folder;
mimeType?: string;
name?: string;
owner?: Driveactivity_v2.Schema.Owner;
title?: string;
}
export interface DriveItemReference {
file?: any;
folder?: Driveactivity_v2.Schema.Folder;
name?: string;
title?: string;
}
export interface FileComment {
legacyCommentId?: string;
legacyDiscussionId?: string;
linkToDiscussion?: string;
parent?: Driveactivity_v2.Schema.DriveItem;
}
export interface Folder {
type?: string;
}
export interface Group {
email?: string;
title?: string;
}
export interface Impersonation {
impersonatedUser?: Driveactivity_v2.Schema.User;
}
export interface KnownUser {
isCurrentUser?: boolean;
personName?: string;
}
export interface Move {
addedParents?: Driveactivity_v2.Schema.TargetReference[];
removedParents?: Driveactivity_v2.Schema.TargetReference[];
}
export interface Owner {
domain?: Driveactivity_v2.Schema.Domain;
teamDrive?: Driveactivity_v2.Schema.TeamDriveReference;
user?: Driveactivity_v2.Schema.User;
}
export interface Permission {
allowDiscovery?: boolean;
anyone?: any;
domain?: Driveactivity_v2.Schema.Domain;
group?: Driveactivity_v2.Schema.Group;
role?: string;
user?: Driveactivity_v2.Schema.User;
}
export interface PermissionChange {
addedPermissions?: Driveactivity_v2.Schema.Permission[];
removedPermissions?: Driveactivity_v2.Schema.Permission[];
}
export interface Post {
subtype?: string;
}
export interface QueryDriveActivityRequest {
ancestorName?: string;
consolidationStrategy?: Driveactivity_v2.Schema.ConsolidationStrategy;
filter?: string;
itemName?: string;
pageSize?: number;
pageToken?: string;
}
export interface QueryDriveActivityResponse {
activities?: Driveactivity_v2.Schema.DriveActivity[];
nextPageToken?: string;
}
export interface Rename {
newTitle?: string;
oldTitle?: string;
}
export interface Restore {
type?: string;
}
export interface RestrictionChange {
feature?: string;
newRestriction?: string;
}
export interface SettingsChange {
restrictionChanges?: Driveactivity_v2.Schema.RestrictionChange[];
}
export interface Suggestion {
subtype?: string;
}
export interface SystemEvent {
type?: string;
}
export interface Target {
driveItem?: Driveactivity_v2.Schema.DriveItem;
fileComment?: any;
teamDrive?: Driveactivity_v2.Schema.TeamDrive;
}
export interface TargetReference {
driveItem?: Driveactivity_v2.Schema.DriveItemReference;
teamDrive?: Driveactivity_v2.Schema.TeamDriveReference;
}
export interface TeamDrive {
name?: string;
root?: Driveactivity_v2.Schema.DriveItem;
title?: string;
}
export interface TeamDriveReference {
name?: string;
title?: string;
}
export interface TimeRange {
endTime?: string;
startTime?: string;
}
export interface User {
deletedUser?: any;
knownUser?: Driveactivity_v2.Schema.KnownUser;
unknownUser?: any;
}
}
}
export interface Driveactivity_v2 {
Activity?: Driveactivity_v2.Collection.ActivityCollection;
// Create a new instance of ConsolidationStrategy
newConsolidationStrategy(): Driveactivity_v2.Schema.ConsolidationStrategy;
// Create a new instance of Legacy
newLegacy(): any;
// Create a new instance of NoConsolidation
newNoConsolidation(): any;
// Create a new instance of QueryDriveActivityRequest
newQueryDriveActivityRequest(): Driveactivity_v2.Schema.QueryDriveActivityRequest;
}
}
declare var Driveactivity_v2: GoogleAppsScript.Driveactivity_v2;
+336
View File
@@ -0,0 +1,336 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Fusiontables_v2 {
namespace Collection {
export interface ColumnCollection {
// Retrieves a specific column by its ID.
get(tableId: string, columnId: string): Fusiontables_v2.Schema.Column;
// Adds a new column to the table.
insert(resource: Schema.Column, tableId: string): Fusiontables_v2.Schema.Column;
// Retrieves a list of columns.
list(tableId: string): Fusiontables_v2.Schema.ColumnList;
// Retrieves a list of columns.
list(tableId: string, optionalArgs: object): Fusiontables_v2.Schema.ColumnList;
// Updates the name or type of an existing column. This method supports patch semantics.
patch(resource: Schema.Column, tableId: string, columnId: string): Fusiontables_v2.Schema.Column;
// Deletes the specified column.
remove(tableId: string, columnId: string): void;
// Updates the name or type of an existing column.
update(resource: Schema.Column, tableId: string, columnId: string): Fusiontables_v2.Schema.Column;
}
export interface QueryCollection {
// Executes a Fusion Tables SQL statement, which can be any of
// - SELECT
// - INSERT
// - UPDATE
// - DELETE
// - SHOW
// - DESCRIBE
// - CREATE statement.
sql(sql: string): Fusiontables_v2.Schema.Sqlresponse;
// Executes a Fusion Tables SQL statement, which can be any of
// - SELECT
// - INSERT
// - UPDATE
// - DELETE
// - SHOW
// - DESCRIBE
// - CREATE statement.
sql(sql: string, optionalArgs: object): Fusiontables_v2.Schema.Sqlresponse;
// Executes a SQL statement which can be any of
// - SELECT
// - SHOW
// - DESCRIBE
sqlGet(sql: string): Fusiontables_v2.Schema.Sqlresponse;
// Executes a SQL statement which can be any of
// - SELECT
// - SHOW
// - DESCRIBE
sqlGet(sql: string, optionalArgs: object): Fusiontables_v2.Schema.Sqlresponse;
}
export interface StyleCollection {
// Gets a specific style.
get(tableId: string, styleId: number): Fusiontables_v2.Schema.StyleSetting;
// Adds a new style for the table.
insert(resource: Schema.StyleSetting, tableId: string): Fusiontables_v2.Schema.StyleSetting;
// Retrieves a list of styles.
list(tableId: string): Fusiontables_v2.Schema.StyleSettingList;
// Retrieves a list of styles.
list(tableId: string, optionalArgs: object): Fusiontables_v2.Schema.StyleSettingList;
// Updates an existing style. This method supports patch semantics.
patch(resource: Schema.StyleSetting, tableId: string, styleId: number): Fusiontables_v2.Schema.StyleSetting;
// Deletes a style.
remove(tableId: string, styleId: number): void;
// Updates an existing style.
update(resource: Schema.StyleSetting, tableId: string, styleId: number): Fusiontables_v2.Schema.StyleSetting;
}
export interface TableCollection {
// Copies a table.
copy(tableId: string): Fusiontables_v2.Schema.Table;
// Copies a table.
copy(tableId: string, optionalArgs: object): Fusiontables_v2.Schema.Table;
// Retrieves a specific table by its ID.
get(tableId: string): Fusiontables_v2.Schema.Table;
// Imports more rows into a table.
importRows(tableId: string): Fusiontables_v2.Schema.Import;
// Imports more rows into a table.
importRows(tableId: string, mediaData: any): Fusiontables_v2.Schema.Import;
// Imports more rows into a table.
importRows(tableId: string, mediaData: any, optionalArgs: object): Fusiontables_v2.Schema.Import;
// Imports a new table.
importTable(name: string): Fusiontables_v2.Schema.Table;
// Imports a new table.
importTable(name: string, mediaData: any): Fusiontables_v2.Schema.Table;
// Imports a new table.
importTable(name: string, mediaData: any, optionalArgs: object): Fusiontables_v2.Schema.Table;
// Creates a new table.
insert(resource: Schema.Table): Fusiontables_v2.Schema.Table;
// Retrieves a list of tables a user owns.
list(): Fusiontables_v2.Schema.TableList;
// Retrieves a list of tables a user owns.
list(optionalArgs: object): Fusiontables_v2.Schema.TableList;
// Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
patch(resource: Schema.Table, tableId: string): Fusiontables_v2.Schema.Table;
// Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
patch(resource: Schema.Table, tableId: string, optionalArgs: object): Fusiontables_v2.Schema.Table;
// Replaces rows of the table with the rows of the spreadsheet that is first imported from. Current rows remain visible until all replacement rows are ready.
refetchSheet(tableId: string): Fusiontables_v2.Schema.Task;
// Deletes a table.
remove(tableId: string): void;
// Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
replaceRows(tableId: string): Fusiontables_v2.Schema.Task;
// Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
replaceRows(tableId: string, mediaData: any): Fusiontables_v2.Schema.Task;
// Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
replaceRows(tableId: string, mediaData: any, optionalArgs: object): Fusiontables_v2.Schema.Task;
// Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
update(resource: Schema.Table, tableId: string): Fusiontables_v2.Schema.Table;
// Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
update(resource: Schema.Table, tableId: string, optionalArgs: object): Fusiontables_v2.Schema.Table;
}
export interface TaskCollection {
// Retrieves a specific task by its ID.
get(tableId: string, taskId: string): Fusiontables_v2.Schema.Task;
// Retrieves a list of tasks.
list(tableId: string): Fusiontables_v2.Schema.TaskList;
// Retrieves a list of tasks.
list(tableId: string, optionalArgs: object): Fusiontables_v2.Schema.TaskList;
// Deletes a specific task by its ID, unless that task has already started running.
remove(tableId: string, taskId: string): void;
}
export interface TemplateCollection {
// Retrieves a specific template by its id
get(tableId: string, templateId: number): Fusiontables_v2.Schema.Template;
// Creates a new template for the table.
insert(resource: Schema.Template, tableId: string): Fusiontables_v2.Schema.Template;
// Retrieves a list of templates.
list(tableId: string): Fusiontables_v2.Schema.TemplateList;
// Retrieves a list of templates.
list(tableId: string, optionalArgs: object): Fusiontables_v2.Schema.TemplateList;
// Updates an existing template. This method supports patch semantics.
patch(resource: Schema.Template, tableId: string, templateId: number): Fusiontables_v2.Schema.Template;
// Deletes a template
remove(tableId: string, templateId: number): void;
// Updates an existing template
update(resource: Schema.Template, tableId: string, templateId: number): Fusiontables_v2.Schema.Template;
}
}
namespace Schema {
export interface Bucket {
color?: string;
icon?: string;
max?: Number;
min?: Number;
opacity?: Number;
weight?: number;
}
export interface Column {
baseColumn?: Fusiontables_v2.Schema.ColumnBaseColumn;
columnId?: number;
columnJsonSchema?: string;
columnPropertiesJson?: string;
description?: string;
formatPattern?: string;
graphPredicate?: string;
kind?: string;
name?: string;
type?: string;
validValues?: string[];
validateData?: boolean;
}
export interface ColumnBaseColumn {
columnId?: number;
tableIndex?: number;
}
export interface ColumnList {
items?: Fusiontables_v2.Schema.Column[];
kind?: string;
nextPageToken?: string;
totalItems?: number;
}
export interface Geometry {
geometries?: Object[];
geometry?: object;
type?: string;
}
export interface Import {
kind?: string;
numRowsReceived?: string;
}
export interface Line {
coordinates?: Number[][];
type?: string;
}
export interface LineStyle {
strokeColor?: string;
strokeColorStyler?: Fusiontables_v2.Schema.StyleFunction;
strokeOpacity?: Number;
strokeWeight?: number;
strokeWeightStyler?: Fusiontables_v2.Schema.StyleFunction;
}
export interface Point {
coordinates?: Number[];
type?: string;
}
export interface PointStyle {
iconName?: string;
iconStyler?: Fusiontables_v2.Schema.StyleFunction;
}
export interface Polygon {
coordinates?: Number[][][];
type?: string;
}
export interface PolygonStyle {
fillColor?: string;
fillColorStyler?: Fusiontables_v2.Schema.StyleFunction;
fillOpacity?: Number;
strokeColor?: string;
strokeColorStyler?: Fusiontables_v2.Schema.StyleFunction;
strokeOpacity?: Number;
strokeWeight?: number;
strokeWeightStyler?: Fusiontables_v2.Schema.StyleFunction;
}
export interface Sqlresponse {
columns?: string[];
kind?: string;
rows?: Object[][];
}
export interface StyleFunction {
buckets?: Fusiontables_v2.Schema.Bucket[];
columnName?: string;
gradient?: Fusiontables_v2.Schema.StyleFunctionGradient;
kind?: string;
}
export interface StyleFunctionGradient {
colors?: Fusiontables_v2.Schema.StyleFunctionGradientColors[];
max?: Number;
min?: Number;
}
export interface StyleFunctionGradientColors {
color?: string;
opacity?: Number;
}
export interface StyleSetting {
kind?: string;
markerOptions?: Fusiontables_v2.Schema.PointStyle;
name?: string;
polygonOptions?: Fusiontables_v2.Schema.PolygonStyle;
polylineOptions?: Fusiontables_v2.Schema.LineStyle;
styleId?: number;
tableId?: string;
}
export interface StyleSettingList {
items?: Fusiontables_v2.Schema.StyleSetting[];
kind?: string;
nextPageToken?: string;
totalItems?: number;
}
export interface Table {
attribution?: string;
attributionLink?: string;
baseTableIds?: string[];
columnPropertiesJsonSchema?: string;
columns?: Fusiontables_v2.Schema.Column[];
description?: string;
isExportable?: boolean;
kind?: string;
name?: string;
sql?: string;
tableId?: string;
tablePropertiesJson?: string;
tablePropertiesJsonSchema?: string;
}
export interface TableList {
items?: Fusiontables_v2.Schema.Table[];
kind?: string;
nextPageToken?: string;
}
export interface Task {
kind?: string;
progress?: string;
started?: boolean;
taskId?: string;
type?: string;
}
export interface TaskList {
items?: Fusiontables_v2.Schema.Task[];
kind?: string;
nextPageToken?: string;
totalItems?: number;
}
export interface Template {
automaticColumnNames?: string[];
body?: string;
kind?: string;
name?: string;
tableId?: string;
templateId?: number;
}
export interface TemplateList {
items?: Fusiontables_v2.Schema.Template[];
kind?: string;
nextPageToken?: string;
totalItems?: number;
}
}
}
export interface Fusiontables_v2 {
Column?: Fusiontables_v2.Collection.ColumnCollection;
Query?: Fusiontables_v2.Collection.QueryCollection;
Style?: Fusiontables_v2.Collection.StyleCollection;
Table?: Fusiontables_v2.Collection.TableCollection;
Task?: Fusiontables_v2.Collection.TaskCollection;
Template?: Fusiontables_v2.Collection.TemplateCollection;
// Create a new instance of Bucket
newBucket(): Fusiontables_v2.Schema.Bucket;
// Create a new instance of Column
newColumn(): Fusiontables_v2.Schema.Column;
// Create a new instance of ColumnBaseColumn
newColumnBaseColumn(): Fusiontables_v2.Schema.ColumnBaseColumn;
// Create a new instance of LineStyle
newLineStyle(): Fusiontables_v2.Schema.LineStyle;
// Create a new instance of PointStyle
newPointStyle(): Fusiontables_v2.Schema.PointStyle;
// Create a new instance of PolygonStyle
newPolygonStyle(): Fusiontables_v2.Schema.PolygonStyle;
// Create a new instance of StyleFunction
newStyleFunction(): Fusiontables_v2.Schema.StyleFunction;
// Create a new instance of StyleFunctionGradient
newStyleFunctionGradient(): Fusiontables_v2.Schema.StyleFunctionGradient;
// Create a new instance of StyleFunctionGradientColors
newStyleFunctionGradientColors(): Fusiontables_v2.Schema.StyleFunctionGradientColors;
// Create a new instance of StyleSetting
newStyleSetting(): Fusiontables_v2.Schema.StyleSetting;
// Create a new instance of Table
newTable(): Fusiontables_v2.Schema.Table;
// Create a new instance of Template
newTemplate(): Fusiontables_v2.Schema.Template;
}
}
declare var Fusiontables_v2: GoogleAppsScript.Fusiontables_v2;
View File
+518
View File
@@ -0,0 +1,518 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Gmail_v1 {
namespace Collection {
namespace Users {
namespace Messages {
export interface AttachmentsCollection {
// Gets the specified message attachment.
get(userId: string, messageId: string, id: string): Gmail_v1.Schema.MessagePartBody;
}
}
namespace Settings {
namespace SendAs {
export interface SmimeInfoCollection {
// Gets the specified S/MIME config for the specified send-as alias.
get(userId: string, sendAsEmail: string, id: string): Gmail_v1.Schema.SmimeInfo;
// Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
insert(resource: Schema.SmimeInfo, userId: string, sendAsEmail: string): Gmail_v1.Schema.SmimeInfo;
// Lists S/MIME configs for the specified send-as alias.
list(userId: string, sendAsEmail: string): Gmail_v1.Schema.ListSmimeInfoResponse;
// Deletes the specified S/MIME config for the specified send-as alias.
remove(userId: string, sendAsEmail: string, id: string): void;
// Sets the default S/MIME config for the specified send-as alias.
setDefault(userId: string, sendAsEmail: string, id: string): void;
}
}
export interface DelegatesCollection {
// Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user.
// Gmail imposes limtations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators.
// Note that a delegate user must be referred to by their primary email address, and not an email alias.
// Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use.
// This method is only available to service account clients that have been delegated domain-wide authority.
create(resource: Schema.Delegate, userId: string): Gmail_v1.Schema.Delegate;
// Gets the specified delegate.
// Note that a delegate user must be referred to by their primary email address, and not an email alias.
// This method is only available to service account clients that have been delegated domain-wide authority.
get(userId: string, delegateEmail: string): Gmail_v1.Schema.Delegate;
// Lists the delegates for the specified account.
// This method is only available to service account clients that have been delegated domain-wide authority.
list(userId: string): Gmail_v1.Schema.ListDelegatesResponse;
// Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it.
// Note that a delegate user must be referred to by their primary email address, and not an email alias.
// This method is only available to service account clients that have been delegated domain-wide authority.
remove(userId: string, delegateEmail: string): void;
}
export interface FiltersCollection {
// Creates a filter.
create(resource: Schema.Filter, userId: string): Gmail_v1.Schema.Filter;
// Gets a filter.
get(userId: string, id: string): Gmail_v1.Schema.Filter;
// Lists the message filters of a Gmail user.
list(userId: string): Gmail_v1.Schema.ListFiltersResponse;
// Deletes a filter.
remove(userId: string, id: string): void;
}
export interface ForwardingAddressesCollection {
// Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted.
// This method is only available to service account clients that have been delegated domain-wide authority.
create(resource: Schema.ForwardingAddress, userId: string): Gmail_v1.Schema.ForwardingAddress;
// Gets the specified forwarding address.
get(userId: string, forwardingEmail: string): Gmail_v1.Schema.ForwardingAddress;
// Lists the forwarding addresses for the specified account.
list(userId: string): Gmail_v1.Schema.ListForwardingAddressesResponse;
// Deletes the specified forwarding address and revokes any verification that may have been required.
// This method is only available to service account clients that have been delegated domain-wide authority.
remove(userId: string, forwardingEmail: string): void;
}
export interface SendAsCollection {
SmimeInfo?: Gmail_v1.Collection.Users.Settings.SendAs.SmimeInfoCollection;
// Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.
// This method is only available to service account clients that have been delegated domain-wide authority.
create(resource: Schema.SendAs, userId: string): Gmail_v1.Schema.SendAs;
// Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
get(userId: string, sendAsEmail: string): Gmail_v1.Schema.SendAs;
// Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases.
list(userId: string): Gmail_v1.Schema.ListSendAsResponse;
// Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.
// Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.
patch(resource: Schema.SendAs, userId: string, sendAsEmail: string): Gmail_v1.Schema.SendAs;
// Deletes the specified send-as alias. Revokes any verification that may have been required for using it.
// This method is only available to service account clients that have been delegated domain-wide authority.
remove(userId: string, sendAsEmail: string): void;
// Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.
// Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
update(resource: Schema.SendAs, userId: string, sendAsEmail: string): Gmail_v1.Schema.SendAs;
// Sends a verification email to the specified send-as alias address. The verification status must be pending.
// This method is only available to service account clients that have been delegated domain-wide authority.
verify(userId: string, sendAsEmail: string): void;
}
}
export interface DraftsCollection {
// Creates a new draft with the DRAFT label.
create(resource: Schema.Draft, userId: string): Gmail_v1.Schema.Draft;
// Creates a new draft with the DRAFT label.
create(resource: Schema.Draft, userId: string, mediaData: any): Gmail_v1.Schema.Draft;
// Gets the specified draft.
get(userId: string, id: string): Gmail_v1.Schema.Draft;
// Gets the specified draft.
get(userId: string, id: string, optionalArgs: object): Gmail_v1.Schema.Draft;
// Lists the drafts in the user's mailbox.
list(userId: string): Gmail_v1.Schema.ListDraftsResponse;
// Lists the drafts in the user's mailbox.
list(userId: string, optionalArgs: object): Gmail_v1.Schema.ListDraftsResponse;
// Immediately and permanently deletes the specified draft. Does not simply trash it.
remove(userId: string, id: string): void;
// Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
send(resource: Schema.Draft, userId: string): Gmail_v1.Schema.Message;
// Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
send(resource: Schema.Draft, userId: string, mediaData: any): Gmail_v1.Schema.Message;
// Replaces a draft's content.
update(resource: Schema.Draft, userId: string, id: string): Gmail_v1.Schema.Draft;
// Replaces a draft's content.
update(resource: Schema.Draft, userId: string, id: string, mediaData: any): Gmail_v1.Schema.Draft;
}
export interface HistoryCollection {
// Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).
list(userId: string): Gmail_v1.Schema.ListHistoryResponse;
// Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).
list(userId: string, optionalArgs: object): Gmail_v1.Schema.ListHistoryResponse;
}
export interface LabelsCollection {
// Creates a new label.
create(resource: Schema.Label, userId: string): Gmail_v1.Schema.Label;
// Gets the specified label.
get(userId: string, id: string): Gmail_v1.Schema.Label;
// Lists all labels in the user's mailbox.
list(userId: string): Gmail_v1.Schema.ListLabelsResponse;
// Updates the specified label. This method supports patch semantics.
patch(resource: Schema.Label, userId: string, id: string): Gmail_v1.Schema.Label;
// Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.
remove(userId: string, id: string): void;
// Updates the specified label.
update(resource: Schema.Label, userId: string, id: string): Gmail_v1.Schema.Label;
}
export interface MessagesCollection {
Attachments?: Gmail_v1.Collection.Users.Messages.AttachmentsCollection;
// Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
batchDelete(resource: Schema.BatchDeleteMessagesRequest, userId: string): void;
// Modifies the labels on the specified messages.
batchModify(resource: Schema.BatchModifyMessagesRequest, userId: string): void;
// Gets the specified message.
get(userId: string, id: string): Gmail_v1.Schema.Message;
// Gets the specified message.
get(userId: string, id: string, optionalArgs: object): Gmail_v1.Schema.Message;
// Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
import(resource: Schema.Message, userId: string): Gmail_v1.Schema.Message;
// Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
import(resource: Schema.Message, userId: string, mediaData: any): Gmail_v1.Schema.Message;
// Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
import(resource: Schema.Message, userId: string, mediaData: any, optionalArgs: object): Gmail_v1.Schema.Message;
// Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
insert(resource: Schema.Message, userId: string): Gmail_v1.Schema.Message;
// Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
insert(resource: Schema.Message, userId: string, mediaData: any): Gmail_v1.Schema.Message;
// Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
insert(resource: Schema.Message, userId: string, mediaData: any, optionalArgs: object): Gmail_v1.Schema.Message;
// Lists the messages in the user's mailbox.
list(userId: string): Gmail_v1.Schema.ListMessagesResponse;
// Lists the messages in the user's mailbox.
list(userId: string, optionalArgs: object): Gmail_v1.Schema.ListMessagesResponse;
// Modifies the labels on the specified message.
modify(resource: Schema.ModifyMessageRequest, userId: string, id: string): Gmail_v1.Schema.Message;
// Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.
remove(userId: string, id: string): void;
// Sends the specified message to the recipients in the To, Cc, and Bcc headers.
send(resource: Schema.Message, userId: string): Gmail_v1.Schema.Message;
// Sends the specified message to the recipients in the To, Cc, and Bcc headers.
send(resource: Schema.Message, userId: string, mediaData: any): Gmail_v1.Schema.Message;
// Moves the specified message to the trash.
trash(userId: string, id: string): Gmail_v1.Schema.Message;
// Removes the specified message from the trash.
untrash(userId: string, id: string): Gmail_v1.Schema.Message;
}
export interface SettingsCollection {
Delegates?: Gmail_v1.Collection.Users.Settings.DelegatesCollection;
Filters?: Gmail_v1.Collection.Users.Settings.FiltersCollection;
ForwardingAddresses?: Gmail_v1.Collection.Users.Settings.ForwardingAddressesCollection;
SendAs?: Gmail_v1.Collection.Users.Settings.SendAsCollection;
// Gets the auto-forwarding setting for the specified account.
getAutoForwarding(userId: string): Gmail_v1.Schema.AutoForwarding;
// Gets IMAP settings.
getImap(userId: string): Gmail_v1.Schema.ImapSettings;
// Gets POP settings.
getPop(userId: string): Gmail_v1.Schema.PopSettings;
// Gets vacation responder settings.
getVacation(userId: string): Gmail_v1.Schema.VacationSettings;
// Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled.
// This method is only available to service account clients that have been delegated domain-wide authority.
updateAutoForwarding(resource: Schema.AutoForwarding, userId: string): Gmail_v1.Schema.AutoForwarding;
// Updates IMAP settings.
updateImap(resource: Schema.ImapSettings, userId: string): Gmail_v1.Schema.ImapSettings;
// Updates POP settings.
updatePop(resource: Schema.PopSettings, userId: string): Gmail_v1.Schema.PopSettings;
// Updates vacation responder settings.
updateVacation(resource: Schema.VacationSettings, userId: string): Gmail_v1.Schema.VacationSettings;
}
export interface ThreadsCollection {
// Gets the specified thread.
get(userId: string, id: string): Gmail_v1.Schema.Thread;
// Gets the specified thread.
get(userId: string, id: string, optionalArgs: object): Gmail_v1.Schema.Thread;
// Lists the threads in the user's mailbox.
list(userId: string): Gmail_v1.Schema.ListThreadsResponse;
// Lists the threads in the user's mailbox.
list(userId: string, optionalArgs: object): Gmail_v1.Schema.ListThreadsResponse;
// Modifies the labels applied to the thread. This applies to all messages in the thread.
modify(resource: Schema.ModifyThreadRequest, userId: string, id: string): Gmail_v1.Schema.Thread;
// Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer threads.trash instead.
remove(userId: string, id: string): void;
// Moves the specified thread to the trash.
trash(userId: string, id: string): Gmail_v1.Schema.Thread;
// Removes the specified thread from the trash.
untrash(userId: string, id: string): Gmail_v1.Schema.Thread;
}
}
export interface UsersCollection {
Drafts?: Gmail_v1.Collection.Users.DraftsCollection;
History?: Gmail_v1.Collection.Users.HistoryCollection;
Labels?: Gmail_v1.Collection.Users.LabelsCollection;
Messages?: Gmail_v1.Collection.Users.MessagesCollection;
Settings?: Gmail_v1.Collection.Users.SettingsCollection;
Threads?: Gmail_v1.Collection.Users.ThreadsCollection;
// Gets the current user's Gmail profile.
getProfile(userId: string): Gmail_v1.Schema.Profile;
// Stop receiving push notifications for the given user mailbox.
stop(userId: string): void;
// Set up or update a push notification watch on the given user mailbox.
watch(resource: Schema.WatchRequest, userId: string): Gmail_v1.Schema.WatchResponse;
}
}
namespace Schema {
export interface AutoForwarding {
disposition?: string;
emailAddress?: string;
enabled?: boolean;
}
export interface BatchDeleteMessagesRequest {
ids?: string[];
}
export interface BatchModifyMessagesRequest {
addLabelIds?: string[];
ids?: string[];
removeLabelIds?: string[];
}
export interface Delegate {
delegateEmail?: string;
verificationStatus?: string;
}
export interface Draft {
id?: string;
message?: Gmail_v1.Schema.Message;
}
export interface Filter {
action?: Gmail_v1.Schema.FilterAction;
criteria?: Gmail_v1.Schema.FilterCriteria;
id?: string;
}
export interface FilterAction {
addLabelIds?: string[];
forward?: string;
removeLabelIds?: string[];
}
export interface FilterCriteria {
excludeChats?: boolean;
from?: string;
hasAttachment?: boolean;
negatedQuery?: string;
query?: string;
size?: number;
sizeComparison?: string;
subject?: string;
to?: string;
}
export interface ForwardingAddress {
forwardingEmail?: string;
verificationStatus?: string;
}
export interface History {
id?: string;
labelsAdded?: Gmail_v1.Schema.HistoryLabelAdded[];
labelsRemoved?: Gmail_v1.Schema.HistoryLabelRemoved[];
messages?: Gmail_v1.Schema.Message[];
messagesAdded?: Gmail_v1.Schema.HistoryMessageAdded[];
messagesDeleted?: Gmail_v1.Schema.HistoryMessageDeleted[];
}
export interface HistoryLabelAdded {
labelIds?: string[];
message?: Gmail_v1.Schema.Message;
}
export interface HistoryLabelRemoved {
labelIds?: string[];
message?: Gmail_v1.Schema.Message;
}
export interface HistoryMessageAdded {
message?: Gmail_v1.Schema.Message;
}
export interface HistoryMessageDeleted {
message?: Gmail_v1.Schema.Message;
}
export interface ImapSettings {
autoExpunge?: boolean;
enabled?: boolean;
expungeBehavior?: string;
maxFolderSize?: number;
}
export interface Label {
color?: Gmail_v1.Schema.LabelColor;
id?: string;
labelListVisibility?: string;
messageListVisibility?: string;
messagesTotal?: number;
messagesUnread?: number;
name?: string;
threadsTotal?: number;
threadsUnread?: number;
type?: string;
}
export interface LabelColor {
backgroundColor?: string;
textColor?: string;
}
export interface ListDelegatesResponse {
delegates?: Gmail_v1.Schema.Delegate[];
}
export interface ListDraftsResponse {
drafts?: Gmail_v1.Schema.Draft[];
nextPageToken?: string;
resultSizeEstimate?: number;
}
export interface ListFiltersResponse {
filter?: Gmail_v1.Schema.Filter[];
}
export interface ListForwardingAddressesResponse {
forwardingAddresses?: Gmail_v1.Schema.ForwardingAddress[];
}
export interface ListHistoryResponse {
history?: Gmail_v1.Schema.History[];
historyId?: string;
nextPageToken?: string;
}
export interface ListLabelsResponse {
labels?: Gmail_v1.Schema.Label[];
}
export interface ListMessagesResponse {
messages?: Gmail_v1.Schema.Message[];
nextPageToken?: string;
resultSizeEstimate?: number;
}
export interface ListSendAsResponse {
sendAs?: Gmail_v1.Schema.SendAs[];
}
export interface ListSmimeInfoResponse {
smimeInfo?: Gmail_v1.Schema.SmimeInfo[];
}
export interface ListThreadsResponse {
nextPageToken?: string;
resultSizeEstimate?: number;
threads?: Gmail_v1.Schema.Thread[];
}
export interface Message {
historyId?: string;
id?: string;
internalDate?: string;
labelIds?: string[];
payload?: Gmail_v1.Schema.MessagePart;
raw?: string;
sizeEstimate?: number;
snippet?: string;
threadId?: string;
}
export interface MessagePart {
body?: Gmail_v1.Schema.MessagePartBody;
filename?: string;
headers?: Gmail_v1.Schema.MessagePartHeader[];
mimeType?: string;
partId?: string;
parts?: Gmail_v1.Schema.MessagePart[];
}
export interface MessagePartBody {
attachmentId?: string;
data?: string;
size?: number;
}
export interface MessagePartHeader {
name?: string;
value?: string;
}
export interface ModifyMessageRequest {
addLabelIds?: string[];
removeLabelIds?: string[];
}
export interface ModifyThreadRequest {
addLabelIds?: string[];
removeLabelIds?: string[];
}
export interface PopSettings {
accessWindow?: string;
disposition?: string;
}
export interface Profile {
emailAddress?: string;
historyId?: string;
messagesTotal?: number;
threadsTotal?: number;
}
export interface SendAs {
displayName?: string;
isDefault?: boolean;
isPrimary?: boolean;
replyToAddress?: string;
sendAsEmail?: string;
signature?: string;
smtpMsa?: Gmail_v1.Schema.SmtpMsa;
treatAsAlias?: boolean;
verificationStatus?: string;
}
export interface SmimeInfo {
encryptedKeyPassword?: string;
expiration?: string;
id?: string;
isDefault?: boolean;
issuerCn?: string;
pem?: string;
pkcs12?: string;
}
export interface SmtpMsa {
host?: string;
password?: string;
port?: number;
securityMode?: string;
username?: string;
}
export interface Thread {
historyId?: string;
id?: string;
messages?: Gmail_v1.Schema.Message[];
snippet?: string;
}
export interface VacationSettings {
enableAutoReply?: boolean;
endTime?: string;
responseBodyHtml?: string;
responseBodyPlainText?: string;
responseSubject?: string;
restrictToContacts?: boolean;
restrictToDomain?: boolean;
startTime?: string;
}
export interface WatchRequest {
labelFilterAction?: string;
labelIds?: string[];
topicName?: string;
}
export interface WatchResponse {
expiration?: string;
historyId?: string;
}
}
}
export interface Gmail_v1 {
Users?: Gmail_v1.Collection.UsersCollection;
// Create a new instance of AutoForwarding
newAutoForwarding(): Gmail_v1.Schema.AutoForwarding;
// Create a new instance of BatchDeleteMessagesRequest
newBatchDeleteMessagesRequest(): Gmail_v1.Schema.BatchDeleteMessagesRequest;
// Create a new instance of BatchModifyMessagesRequest
newBatchModifyMessagesRequest(): Gmail_v1.Schema.BatchModifyMessagesRequest;
// Create a new instance of Delegate
newDelegate(): Gmail_v1.Schema.Delegate;
// Create a new instance of Draft
newDraft(): Gmail_v1.Schema.Draft;
// Create a new instance of Filter
newFilter(): Gmail_v1.Schema.Filter;
// Create a new instance of FilterAction
newFilterAction(): Gmail_v1.Schema.FilterAction;
// Create a new instance of FilterCriteria
newFilterCriteria(): Gmail_v1.Schema.FilterCriteria;
// Create a new instance of ForwardingAddress
newForwardingAddress(): Gmail_v1.Schema.ForwardingAddress;
// Create a new instance of ImapSettings
newImapSettings(): Gmail_v1.Schema.ImapSettings;
// Create a new instance of Label
newLabel(): Gmail_v1.Schema.Label;
// Create a new instance of LabelColor
newLabelColor(): Gmail_v1.Schema.LabelColor;
// Create a new instance of Message
newMessage(): Gmail_v1.Schema.Message;
// Create a new instance of MessagePart
newMessagePart(): Gmail_v1.Schema.MessagePart;
// Create a new instance of MessagePartBody
newMessagePartBody(): Gmail_v1.Schema.MessagePartBody;
// Create a new instance of MessagePartHeader
newMessagePartHeader(): Gmail_v1.Schema.MessagePartHeader;
// Create a new instance of ModifyMessageRequest
newModifyMessageRequest(): Gmail_v1.Schema.ModifyMessageRequest;
// Create a new instance of ModifyThreadRequest
newModifyThreadRequest(): Gmail_v1.Schema.ModifyThreadRequest;
// Create a new instance of PopSettings
newPopSettings(): Gmail_v1.Schema.PopSettings;
// Create a new instance of SendAs
newSendAs(): Gmail_v1.Schema.SendAs;
// Create a new instance of SmimeInfo
newSmimeInfo(): Gmail_v1.Schema.SmimeInfo;
// Create a new instance of SmtpMsa
newSmtpMsa(): Gmail_v1.Schema.SmtpMsa;
// Create a new instance of VacationSettings
newVacationSettings(): Gmail_v1.Schema.VacationSettings;
// Create a new instance of WatchRequest
newWatchRequest(): Gmail_v1.Schema.WatchRequest;
}
}
declare var Gmail_v1: GoogleAppsScript.Gmail_v1;
+29
View File
@@ -0,0 +1,29 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Groupsmigration_v1 {
namespace Collection {
export interface ArchiveCollection {
// Inserts a new mail into the archive of the Google group.
insert(groupId: string): Groupsmigration_v1.Schema.Groups;
// Inserts a new mail into the archive of the Google group.
insert(groupId: string, mediaData: any): Groupsmigration_v1.Schema.Groups;
}
}
namespace Schema {
export interface Groups {
kind?: string;
responseCode?: string;
}
}
}
export interface Groupsmigration_v1 {
Archive?: Groupsmigration_v1.Collection.ArchiveCollection;
}
}
declare var Groupsmigration_v1: GoogleAppsScript.Groupsmigration_v1;
+92
View File
@@ -0,0 +1,92 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Groupssettings_v1 {
namespace Collection {
export interface GroupsCollection {
// Gets one resource by id.
get(groupUniqueId: string): Groupssettings_v1.Schema.Groups;
// Updates an existing resource. This method supports patch semantics.
patch(resource: Schema.Groups, groupUniqueId: string): Groupssettings_v1.Schema.Groups;
// Updates an existing resource.
update(resource: Schema.Groups, groupUniqueId: string): Groupssettings_v1.Schema.Groups;
}
}
namespace Schema {
export interface Groups {
allowExternalMembers?: string;
allowGoogleCommunication?: string;
allowWebPosting?: string;
archiveOnly?: string;
customFooterText?: string;
customReplyTo?: string;
customRolesEnabledForSettingsToBeMerged?: string;
defaultMessageDenyNotificationText?: string;
description?: string;
email?: string;
enableCollaborativeInbox?: string;
favoriteRepliesOnTop?: string;
includeCustomFooter?: string;
includeInGlobalAddressList?: string;
isArchived?: string;
kind?: string;
maxMessageBytes?: number;
membersCanPostAsTheGroup?: string;
messageDisplayFont?: string;
messageModerationLevel?: string;
name?: string;
primaryLanguage?: string;
replyTo?: string;
sendMessageDenyNotification?: string;
showInGroupDirectory?: string;
spamModerationLevel?: string;
whoCanAdd?: string;
whoCanAddReferences?: string;
whoCanApproveMembers?: string;
whoCanApproveMessages?: string;
whoCanAssignTopics?: string;
whoCanAssistContent?: string;
whoCanBanUsers?: string;
whoCanContactOwner?: string;
whoCanDeleteAnyPost?: string;
whoCanDeleteTopics?: string;
whoCanDiscoverGroup?: string;
whoCanEnterFreeFormTags?: string;
whoCanHideAbuse?: string;
whoCanInvite?: string;
whoCanJoin?: string;
whoCanLeaveGroup?: string;
whoCanLockTopics?: string;
whoCanMakeTopicsSticky?: string;
whoCanMarkDuplicate?: string;
whoCanMarkFavoriteReplyOnAnyTopic?: string;
whoCanMarkFavoriteReplyOnOwnTopic?: string;
whoCanMarkNoResponseNeeded?: string;
whoCanModerateContent?: string;
whoCanModerateMembers?: string;
whoCanModifyMembers?: string;
whoCanModifyTagsAndCategories?: string;
whoCanMoveTopicsIn?: string;
whoCanMoveTopicsOut?: string;
whoCanPostAnnouncements?: string;
whoCanPostMessage?: string;
whoCanTakeTopics?: string;
whoCanUnassignTopic?: string;
whoCanUnmarkFavoriteReplyOnAnyTopic?: string;
whoCanViewGroup?: string;
whoCanViewMembership?: string;
}
}
}
export interface Groupssettings_v1 {
Groups?: Groupssettings_v1.Collection.GroupsCollection;
// Create a new instance of Groups
newGroups(): Groupssettings_v1.Schema.Groups;
}
}
declare var Groupssettings_v1: GoogleAppsScript.Groupssettings_v1;
View File
+62
View File
@@ -0,0 +1,62 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Licensing_v1 {
namespace Collection {
export interface LicenseAssignmentsCollection {
// Get license assignment of a particular product and sku for a user
get(productId: string, skuId: string, userId: string): Licensing_v1.Schema.LicenseAssignment;
// Assign License.
insert(resource: Schema.LicenseAssignmentInsert, productId: string, skuId: string): Licensing_v1.Schema.LicenseAssignment;
// List license assignments for given product of the customer.
listForProduct(productId: string, customerId: string): Licensing_v1.Schema.LicenseAssignmentList;
// List license assignments for given product of the customer.
listForProduct(productId: string, customerId: string, optionalArgs: object): Licensing_v1.Schema.LicenseAssignmentList;
// List license assignments for given product and sku of the customer.
listForProductAndSku(productId: string, skuId: string, customerId: string): Licensing_v1.Schema.LicenseAssignmentList;
// List license assignments for given product and sku of the customer.
listForProductAndSku(productId: string, skuId: string, customerId: string, optionalArgs: object): Licensing_v1.Schema.LicenseAssignmentList;
// Assign License. This method supports patch semantics.
patch(resource: Schema.LicenseAssignment, productId: string, skuId: string, userId: string): Licensing_v1.Schema.LicenseAssignment;
// Revoke License.
remove(productId: string, skuId: string, userId: string): void;
// Assign License.
update(resource: Schema.LicenseAssignment, productId: string, skuId: string, userId: string): Licensing_v1.Schema.LicenseAssignment;
}
}
namespace Schema {
export interface LicenseAssignment {
etags?: string;
kind?: string;
productId?: string;
productName?: string;
selfLink?: string;
skuId?: string;
skuName?: string;
userId?: string;
}
export interface LicenseAssignmentInsert {
userId?: string;
}
export interface LicenseAssignmentList {
etag?: string;
items?: Licensing_v1.Schema.LicenseAssignment[];
kind?: string;
nextPageToken?: string;
}
}
}
export interface Licensing_v1 {
LicenseAssignments?: Licensing_v1.Collection.LicenseAssignmentsCollection;
// Create a new instance of LicenseAssignment
newLicenseAssignment(): Licensing_v1.Schema.LicenseAssignment;
// Create a new instance of LicenseAssignmentInsert
newLicenseAssignmentInsert(): Licensing_v1.Schema.LicenseAssignmentInsert;
}
}
declare var Licensing_v1: GoogleAppsScript.Licensing_v1;
View File
+266
View File
@@ -0,0 +1,266 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Mirror_v1 {
namespace Collection {
namespace Timeline {
export interface AttachmentsCollection {
// Retrieves an attachment on a timeline item by item ID and attachment ID.
get(itemId: string, attachmentId: string): Mirror_v1.Schema.Attachment;
// Adds a new attachment to a timeline item.
insert(itemId: string): Mirror_v1.Schema.Attachment;
// Adds a new attachment to a timeline item.
insert(itemId: string, mediaData: any): Mirror_v1.Schema.Attachment;
// Returns a list of attachments for a timeline item.
list(itemId: string): Mirror_v1.Schema.AttachmentsListResponse;
// Deletes an attachment from a timeline item.
remove(itemId: string, attachmentId: string): void;
}
}
export interface AccountsCollection {
// Inserts a new account for a user
insert(resource: Schema.Account, userToken: string, accountType: string, accountName: string): Mirror_v1.Schema.Account;
}
export interface ContactsCollection {
// Gets a single contact by ID.
get(id: string): Mirror_v1.Schema.Contact;
// Inserts a new contact.
insert(resource: Schema.Contact): Mirror_v1.Schema.Contact;
// Retrieves a list of contacts for the authenticated user.
list(): Mirror_v1.Schema.ContactsListResponse;
// Updates a contact in place. This method supports patch semantics.
patch(resource: Schema.Contact, id: string): Mirror_v1.Schema.Contact;
// Deletes a contact.
remove(id: string): void;
// Updates a contact in place.
update(resource: Schema.Contact, id: string): Mirror_v1.Schema.Contact;
}
export interface LocationsCollection {
// Gets a single location by ID.
get(id: string): Mirror_v1.Schema.Location;
// Retrieves a list of locations for the user.
list(): Mirror_v1.Schema.LocationsListResponse;
}
export interface SettingsCollection {
// Gets a single setting by ID.
get(id: string): Mirror_v1.Schema.Setting;
}
export interface SubscriptionsCollection {
// Creates a new subscription.
insert(resource: Schema.Subscription): Mirror_v1.Schema.Subscription;
// Retrieves a list of subscriptions for the authenticated user and service.
list(): Mirror_v1.Schema.SubscriptionsListResponse;
// Deletes a subscription.
remove(id: string): void;
// Updates an existing subscription in place.
update(resource: Schema.Subscription, id: string): Mirror_v1.Schema.Subscription;
}
export interface TimelineCollection {
Attachments?: Mirror_v1.Collection.Timeline.AttachmentsCollection;
// Gets a single timeline item by ID.
get(id: string): Mirror_v1.Schema.TimelineItem;
// Inserts a new item into the timeline.
insert(resource: Schema.TimelineItem): Mirror_v1.Schema.TimelineItem;
// Inserts a new item into the timeline.
insert(resource: Schema.TimelineItem, mediaData: any): Mirror_v1.Schema.TimelineItem;
// Retrieves a list of timeline items for the authenticated user.
list(): Mirror_v1.Schema.TimelineListResponse;
// Retrieves a list of timeline items for the authenticated user.
list(optionalArgs: object): Mirror_v1.Schema.TimelineListResponse;
// Updates a timeline item in place. This method supports patch semantics.
patch(resource: Schema.TimelineItem, id: string): Mirror_v1.Schema.TimelineItem;
// Deletes a timeline item.
remove(id: string): void;
// Updates a timeline item in place.
update(resource: Schema.TimelineItem, id: string): Mirror_v1.Schema.TimelineItem;
// Updates a timeline item in place.
update(resource: Schema.TimelineItem, id: string, mediaData: any): Mirror_v1.Schema.TimelineItem;
}
}
namespace Schema {
export interface Account {
authTokens?: Mirror_v1.Schema.AuthToken[];
features?: string[];
password?: string;
userData?: Mirror_v1.Schema.UserData[];
}
export interface Attachment {
contentType?: string;
contentUrl?: string;
id?: string;
isProcessingContent?: boolean;
}
export interface AttachmentsListResponse {
items?: Mirror_v1.Schema.Attachment[];
kind?: string;
}
export interface AuthToken {
authToken?: string;
type?: string;
}
export interface Command {
type?: string;
}
export interface Contact {
acceptCommands?: Mirror_v1.Schema.Command[];
acceptTypes?: string[];
displayName?: string;
id?: string;
imageUrls?: string[];
kind?: string;
phoneNumber?: string;
priority?: number;
sharingFeatures?: string[];
source?: string;
speakableName?: string;
type?: string;
}
export interface ContactsListResponse {
items?: Mirror_v1.Schema.Contact[];
kind?: string;
}
export interface Location {
accuracy?: Number;
address?: string;
displayName?: string;
id?: string;
kind?: string;
latitude?: Number;
longitude?: Number;
timestamp?: string;
}
export interface LocationsListResponse {
items?: Mirror_v1.Schema.Location[];
kind?: string;
}
export interface MenuItem {
action?: string;
contextual_command?: string;
id?: string;
payload?: string;
removeWhenSelected?: boolean;
values?: Mirror_v1.Schema.MenuValue[];
}
export interface MenuValue {
displayName?: string;
iconUrl?: string;
state?: string;
}
export interface Notification {
collection?: string;
itemId?: string;
operation?: string;
userActions?: Mirror_v1.Schema.UserAction[];
userToken?: string;
verifyToken?: string;
}
export interface NotificationConfig {
deliveryTime?: string;
level?: string;
}
export interface Setting {
id?: string;
kind?: string;
value?: string;
}
export interface Subscription {
callbackUrl?: string;
collection?: string;
id?: string;
kind?: string;
notification?: Mirror_v1.Schema.Notification;
operation?: string[];
updated?: string;
userToken?: string;
verifyToken?: string;
}
export interface SubscriptionsListResponse {
items?: Mirror_v1.Schema.Subscription[];
kind?: string;
}
export interface TimelineItem {
attachments?: Mirror_v1.Schema.Attachment[];
bundleId?: string;
canonicalUrl?: string;
created?: string;
creator?: Mirror_v1.Schema.Contact;
displayTime?: string;
etag?: string;
html?: string;
id?: string;
inReplyTo?: string;
isBundleCover?: boolean;
isDeleted?: boolean;
isPinned?: boolean;
kind?: string;
location?: Mirror_v1.Schema.Location;
menuItems?: Mirror_v1.Schema.MenuItem[];
notification?: Mirror_v1.Schema.NotificationConfig;
pinScore?: number;
recipients?: Mirror_v1.Schema.Contact[];
selfLink?: string;
sourceItemId?: string;
speakableText?: string;
speakableType?: string;
text?: string;
title?: string;
updated?: string;
}
export interface TimelineListResponse {
items?: Mirror_v1.Schema.TimelineItem[];
kind?: string;
nextPageToken?: string;
}
export interface UserAction {
payload?: string;
type?: string;
}
export interface UserData {
key?: string;
value?: string;
}
}
}
export interface Mirror_v1 {
Accounts?: Mirror_v1.Collection.AccountsCollection;
Contacts?: Mirror_v1.Collection.ContactsCollection;
Locations?: Mirror_v1.Collection.LocationsCollection;
Settings?: Mirror_v1.Collection.SettingsCollection;
Subscriptions?: Mirror_v1.Collection.SubscriptionsCollection;
Timeline?: Mirror_v1.Collection.TimelineCollection;
// Create a new instance of Account
newAccount(): Mirror_v1.Schema.Account;
// Create a new instance of Attachment
newAttachment(): Mirror_v1.Schema.Attachment;
// Create a new instance of AuthToken
newAuthToken(): Mirror_v1.Schema.AuthToken;
// Create a new instance of Command
newCommand(): Mirror_v1.Schema.Command;
// Create a new instance of Contact
newContact(): Mirror_v1.Schema.Contact;
// Create a new instance of Location
newLocation(): Mirror_v1.Schema.Location;
// Create a new instance of MenuItem
newMenuItem(): Mirror_v1.Schema.MenuItem;
// Create a new instance of MenuValue
newMenuValue(): Mirror_v1.Schema.MenuValue;
// Create a new instance of Notification
newNotification(): Mirror_v1.Schema.Notification;
// Create a new instance of NotificationConfig
newNotificationConfig(): Mirror_v1.Schema.NotificationConfig;
// Create a new instance of Subscription
newSubscription(): Mirror_v1.Schema.Subscription;
// Create a new instance of TimelineItem
newTimelineItem(): Mirror_v1.Schema.TimelineItem;
// Create a new instance of UserAction
newUserAction(): Mirror_v1.Schema.UserAction;
// Create a new instance of UserData
newUserData(): Mirror_v1.Schema.UserData;
}
}
declare var Mirror_v1: GoogleAppsScript.Mirror_v1;
+518
View File
@@ -0,0 +1,518 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Peopleapi_v1 {
namespace Collection {
namespace ContactGroups {
export interface MembersCollection {
// Modify the members of a contact group owned by the authenticated user.
// <br>
// The only system contact groups that can have members added are
// `contactGroups/myContacts` and `contactGroups/starred`. Other system
// contact groups are deprecated and can only have contacts removed.
modify(resource: Schema.ModifyContactGroupMembersRequest, resourceName: string): Peopleapi_v1.Schema.ModifyContactGroupMembersResponse;
}
}
namespace People {
export interface ConnectionsCollection {
// Provides a list of the authenticated user's contacts merged with any
// connected profiles.
// <br>
// The request throws a 400 error if 'personFields' is not specified.
list(resourceName: string): Peopleapi_v1.Schema.ListConnectionsResponse;
// Provides a list of the authenticated user's contacts merged with any
// connected profiles.
// <br>
// The request throws a 400 error if 'personFields' is not specified.
list(resourceName: string, optionalArgs: object): Peopleapi_v1.Schema.ListConnectionsResponse;
}
}
export interface ContactGroupsCollection {
Members?: Peopleapi_v1.Collection.ContactGroups.MembersCollection;
// Get a list of contact groups owned by the authenticated user by specifying
// a list of contact group resource names.
batchGet(): Peopleapi_v1.Schema.BatchGetContactGroupsResponse;
// Get a list of contact groups owned by the authenticated user by specifying
// a list of contact group resource names.
batchGet(optionalArgs: object): Peopleapi_v1.Schema.BatchGetContactGroupsResponse;
// Create a new contact group owned by the authenticated user.
create(resource: Schema.CreateContactGroupRequest): Peopleapi_v1.Schema.ContactGroup;
// Get a specific contact group owned by the authenticated user by specifying
// a contact group resource name.
get(resourceName: string): Peopleapi_v1.Schema.ContactGroup;
// Get a specific contact group owned by the authenticated user by specifying
// a contact group resource name.
get(resourceName: string, optionalArgs: object): Peopleapi_v1.Schema.ContactGroup;
// List all contact groups owned by the authenticated user. Members of the
// contact groups are not populated.
list(): Peopleapi_v1.Schema.ListContactGroupsResponse;
// List all contact groups owned by the authenticated user. Members of the
// contact groups are not populated.
list(optionalArgs: object): Peopleapi_v1.Schema.ListContactGroupsResponse;
// Delete an existing contact group owned by the authenticated user by
// specifying a contact group resource name.
remove(resourceName: string): void;
// Delete an existing contact group owned by the authenticated user by
// specifying a contact group resource name.
remove(resourceName: string, optionalArgs: object): void;
// Update the name of an existing contact group owned by the authenticated
// user.
update(resource: Schema.UpdateContactGroupRequest, resourceName: string): Peopleapi_v1.Schema.ContactGroup;
}
export interface PeopleCollection {
Connections?: Peopleapi_v1.Collection.People.ConnectionsCollection;
// Create a new contact and return the person resource for that contact.
createContact(resource: Schema.Person): Peopleapi_v1.Schema.Person;
// Create a new contact and return the person resource for that contact.
createContact(resource: Schema.Person, optionalArgs: object): Peopleapi_v1.Schema.Person;
// Delete a contact person. Any non-contact data will not be deleted.
deleteContact(resourceName: string): void;
// Provides information about a person by specifying a resource name. Use
// `people/me` to indicate the authenticated user.
// <br>
// The request throws a 400 error if 'personFields' is not specified.
get(resourceName: string): Peopleapi_v1.Schema.Person;
// Provides information about a person by specifying a resource name. Use
// `people/me` to indicate the authenticated user.
// <br>
// The request throws a 400 error if 'personFields' is not specified.
get(resourceName: string, optionalArgs: object): Peopleapi_v1.Schema.Person;
// Provides information about a list of specific people by specifying a list
// of requested resource names. Use `people/me` to indicate the authenticated
// user.
// <br>
// The request throws a 400 error if 'personFields' is not specified.
getBatchGet(): Peopleapi_v1.Schema.GetPeopleResponse;
// Provides information about a list of specific people by specifying a list
// of requested resource names. Use `people/me` to indicate the authenticated
// user.
// <br>
// The request throws a 400 error if 'personFields' is not specified.
getBatchGet(optionalArgs: object): Peopleapi_v1.Schema.GetPeopleResponse;
// Update contact data for an existing contact person. Any non-contact data
// will not be modified.
// The request throws a 400 error if `updatePersonFields` is not specified.
// <br>
// The request throws a 400 error if `person.metadata.sources` is not
// specified for the contact to be updated.
// <br>
// The request throws a 412 error if `person.metadata.sources.etag` is
// different than the contact's etag, which indicates the contact has changed
// since its data was read. Clients should get the latest person and re-apply
// their updates to the latest person.
updateContact(resource: Schema.Person, resourceName: string): Peopleapi_v1.Schema.Person;
// Update contact data for an existing contact person. Any non-contact data
// will not be modified.
// The request throws a 400 error if `updatePersonFields` is not specified.
// <br>
// The request throws a 400 error if `person.metadata.sources` is not
// specified for the contact to be updated.
// <br>
// The request throws a 412 error if `person.metadata.sources.etag` is
// different than the contact's etag, which indicates the contact has changed
// since its data was read. Clients should get the latest person and re-apply
// their updates to the latest person.
updateContact(resource: Schema.Person, resourceName: string, optionalArgs: object): Peopleapi_v1.Schema.Person;
}
}
namespace Schema {
export interface Address {
city?: string;
country?: string;
countryCode?: string;
extendedAddress?: string;
formattedType?: string;
formattedValue?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
poBox?: string;
postalCode?: string;
region?: string;
streetAddress?: string;
type?: string;
}
export interface AgeRangeType {
ageRange?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
}
export interface BatchGetContactGroupsResponse {
responses?: Peopleapi_v1.Schema.ContactGroupResponse[];
}
export interface Biography {
contentType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface Birthday {
date?: Peopleapi_v1.Schema.Date;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
text?: string;
}
export interface BraggingRights {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface ContactGroup {
etag?: string;
formattedName?: string;
groupType?: string;
memberCount?: number;
memberResourceNames?: string[];
metadata?: Peopleapi_v1.Schema.ContactGroupMetadata;
name?: string;
resourceName?: string;
}
export interface ContactGroupMembership {
contactGroupId?: string;
}
export interface ContactGroupMetadata {
deleted?: boolean;
updateTime?: string;
}
export interface ContactGroupResponse {
contactGroup?: Peopleapi_v1.Schema.ContactGroup;
requestedResourceName?: string;
status?: Peopleapi_v1.Schema.Status;
}
export interface CoverPhoto {
default?: boolean;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
url?: string;
}
export interface CreateContactGroupRequest {
contactGroup?: Peopleapi_v1.Schema.ContactGroup;
}
export interface Date {
day?: number;
month?: number;
year?: number;
}
export interface DomainMembership {
inViewerDomain?: boolean;
}
export interface EmailAddress {
displayName?: string;
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
type?: string;
value?: string;
}
export interface Event {
date?: Peopleapi_v1.Schema.Date;
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
type?: string;
}
export interface FieldMetadata {
primary?: boolean;
source?: Peopleapi_v1.Schema.Source;
verified?: boolean;
}
export interface Gender {
formattedValue?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface GetPeopleResponse {
responses?: Peopleapi_v1.Schema.PersonResponse[];
}
export interface ImClient {
formattedProtocol?: string;
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
protocol?: string;
type?: string;
username?: string;
}
export interface Interest {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface ListConnectionsResponse {
connections?: Peopleapi_v1.Schema.Person[];
nextPageToken?: string;
nextSyncToken?: string;
totalItems?: number;
totalPeople?: number;
}
export interface ListContactGroupsResponse {
contactGroups?: Peopleapi_v1.Schema.ContactGroup[];
nextPageToken?: string;
nextSyncToken?: string;
totalItems?: number;
}
export interface Locale {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface Membership {
contactGroupMembership?: Peopleapi_v1.Schema.ContactGroupMembership;
domainMembership?: Peopleapi_v1.Schema.DomainMembership;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
}
export interface ModifyContactGroupMembersRequest {
resourceNamesToAdd?: string[];
resourceNamesToRemove?: string[];
}
export interface ModifyContactGroupMembersResponse {
notFoundResourceNames?: string[];
}
export interface Name {
displayName?: string;
displayNameLastFirst?: string;
familyName?: string;
givenName?: string;
honorificPrefix?: string;
honorificSuffix?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
middleName?: string;
phoneticFamilyName?: string;
phoneticFullName?: string;
phoneticGivenName?: string;
phoneticHonorificPrefix?: string;
phoneticHonorificSuffix?: string;
phoneticMiddleName?: string;
}
export interface Nickname {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
type?: string;
value?: string;
}
export interface Occupation {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface Organization {
current?: boolean;
department?: string;
domain?: string;
endDate?: Peopleapi_v1.Schema.Date;
formattedType?: string;
jobDescription?: string;
location?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
name?: string;
phoneticName?: string;
startDate?: Peopleapi_v1.Schema.Date;
symbol?: string;
title?: string;
type?: string;
}
export interface Person {
addresses?: Peopleapi_v1.Schema.Address[];
ageRange?: string;
ageRanges?: Peopleapi_v1.Schema.AgeRangeType[];
biographies?: Peopleapi_v1.Schema.Biography[];
birthdays?: Peopleapi_v1.Schema.Birthday[];
braggingRights?: Peopleapi_v1.Schema.BraggingRights[];
coverPhotos?: Peopleapi_v1.Schema.CoverPhoto[];
emailAddresses?: Peopleapi_v1.Schema.EmailAddress[];
etag?: string;
events?: Peopleapi_v1.Schema.Event[];
genders?: Peopleapi_v1.Schema.Gender[];
imClients?: Peopleapi_v1.Schema.ImClient[];
interests?: Peopleapi_v1.Schema.Interest[];
locales?: Peopleapi_v1.Schema.Locale[];
memberships?: Peopleapi_v1.Schema.Membership[];
metadata?: Peopleapi_v1.Schema.PersonMetadata;
names?: Peopleapi_v1.Schema.Name[];
nicknames?: Peopleapi_v1.Schema.Nickname[];
occupations?: Peopleapi_v1.Schema.Occupation[];
organizations?: Peopleapi_v1.Schema.Organization[];
phoneNumbers?: Peopleapi_v1.Schema.PhoneNumber[];
photos?: Peopleapi_v1.Schema.Photo[];
relations?: Peopleapi_v1.Schema.Relation[];
relationshipInterests?: Peopleapi_v1.Schema.RelationshipInterest[];
relationshipStatuses?: Peopleapi_v1.Schema.RelationshipStatus[];
residences?: Peopleapi_v1.Schema.Residence[];
resourceName?: string;
sipAddresses?: Peopleapi_v1.Schema.SipAddress[];
skills?: Peopleapi_v1.Schema.Skill[];
taglines?: Peopleapi_v1.Schema.Tagline[];
urls?: Peopleapi_v1.Schema.Url[];
userDefined?: Peopleapi_v1.Schema.UserDefined[];
}
export interface PersonMetadata {
deleted?: boolean;
linkedPeopleResourceNames?: string[];
objectType?: string;
previousResourceNames?: string[];
sources?: Peopleapi_v1.Schema.Source[];
}
export interface PersonResponse {
httpStatusCode?: number;
person?: Peopleapi_v1.Schema.Person;
requestedResourceName?: string;
status?: Peopleapi_v1.Schema.Status;
}
export interface PhoneNumber {
canonicalForm?: string;
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
type?: string;
value?: string;
}
export interface Photo {
default?: boolean;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
url?: string;
}
export interface ProfileMetadata {
objectType?: string;
userTypes?: string[];
}
export interface Relation {
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
person?: string;
type?: string;
}
export interface RelationshipInterest {
formattedValue?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface RelationshipStatus {
formattedValue?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface Residence {
current?: boolean;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface SipAddress {
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
type?: string;
value?: string;
}
export interface Skill {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface Source {
etag?: string;
id?: string;
profileMetadata?: Peopleapi_v1.Schema.ProfileMetadata;
type?: string;
updateTime?: string;
}
export interface Status {
code?: number;
details?: Object[];
message?: string;
}
export interface Tagline {
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
export interface UpdateContactGroupRequest {
contactGroup?: Peopleapi_v1.Schema.ContactGroup;
}
export interface Url {
formattedType?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
type?: string;
value?: string;
}
export interface UserDefined {
key?: string;
metadata?: Peopleapi_v1.Schema.FieldMetadata;
value?: string;
}
}
}
export interface Peopleapi_v1 {
ContactGroups?: Peopleapi_v1.Collection.ContactGroupsCollection;
People?: Peopleapi_v1.Collection.PeopleCollection;
// Create a new instance of Address
newAddress(): Peopleapi_v1.Schema.Address;
// Create a new instance of AgeRangeType
newAgeRangeType(): Peopleapi_v1.Schema.AgeRangeType;
// Create a new instance of Biography
newBiography(): Peopleapi_v1.Schema.Biography;
// Create a new instance of Birthday
newBirthday(): Peopleapi_v1.Schema.Birthday;
// Create a new instance of BraggingRights
newBraggingRights(): Peopleapi_v1.Schema.BraggingRights;
// Create a new instance of ContactGroup
newContactGroup(): Peopleapi_v1.Schema.ContactGroup;
// Create a new instance of ContactGroupMembership
newContactGroupMembership(): Peopleapi_v1.Schema.ContactGroupMembership;
// Create a new instance of ContactGroupMetadata
newContactGroupMetadata(): Peopleapi_v1.Schema.ContactGroupMetadata;
// Create a new instance of CoverPhoto
newCoverPhoto(): Peopleapi_v1.Schema.CoverPhoto;
// Create a new instance of CreateContactGroupRequest
newCreateContactGroupRequest(): Peopleapi_v1.Schema.CreateContactGroupRequest;
// Create a new instance of Date
newDate(): Peopleapi_v1.Schema.Date;
// Create a new instance of DomainMembership
newDomainMembership(): Peopleapi_v1.Schema.DomainMembership;
// Create a new instance of EmailAddress
newEmailAddress(): Peopleapi_v1.Schema.EmailAddress;
// Create a new instance of Event
newEvent(): Peopleapi_v1.Schema.Event;
// Create a new instance of FieldMetadata
newFieldMetadata(): Peopleapi_v1.Schema.FieldMetadata;
// Create a new instance of Gender
newGender(): Peopleapi_v1.Schema.Gender;
// Create a new instance of ImClient
newImClient(): Peopleapi_v1.Schema.ImClient;
// Create a new instance of Interest
newInterest(): Peopleapi_v1.Schema.Interest;
// Create a new instance of Locale
newLocale(): Peopleapi_v1.Schema.Locale;
// Create a new instance of Membership
newMembership(): Peopleapi_v1.Schema.Membership;
// Create a new instance of ModifyContactGroupMembersRequest
newModifyContactGroupMembersRequest(): Peopleapi_v1.Schema.ModifyContactGroupMembersRequest;
// Create a new instance of Name
newName(): Peopleapi_v1.Schema.Name;
// Create a new instance of Nickname
newNickname(): Peopleapi_v1.Schema.Nickname;
// Create a new instance of Occupation
newOccupation(): Peopleapi_v1.Schema.Occupation;
// Create a new instance of Organization
newOrganization(): Peopleapi_v1.Schema.Organization;
// Create a new instance of Person
newPerson(): Peopleapi_v1.Schema.Person;
// Create a new instance of PersonMetadata
newPersonMetadata(): Peopleapi_v1.Schema.PersonMetadata;
// Create a new instance of PhoneNumber
newPhoneNumber(): Peopleapi_v1.Schema.PhoneNumber;
// Create a new instance of Photo
newPhoto(): Peopleapi_v1.Schema.Photo;
// Create a new instance of ProfileMetadata
newProfileMetadata(): Peopleapi_v1.Schema.ProfileMetadata;
// Create a new instance of Relation
newRelation(): Peopleapi_v1.Schema.Relation;
// Create a new instance of RelationshipInterest
newRelationshipInterest(): Peopleapi_v1.Schema.RelationshipInterest;
// Create a new instance of RelationshipStatus
newRelationshipStatus(): Peopleapi_v1.Schema.RelationshipStatus;
// Create a new instance of Residence
newResidence(): Peopleapi_v1.Schema.Residence;
// Create a new instance of SipAddress
newSipAddress(): Peopleapi_v1.Schema.SipAddress;
// Create a new instance of Skill
newSkill(): Peopleapi_v1.Schema.Skill;
// Create a new instance of Source
newSource(): Peopleapi_v1.Schema.Source;
// Create a new instance of Tagline
newTagline(): Peopleapi_v1.Schema.Tagline;
// Create a new instance of UpdateContactGroupRequest
newUpdateContactGroupRequest(): Peopleapi_v1.Schema.UpdateContactGroupRequest;
// Create a new instance of Url
newUrl(): Peopleapi_v1.Schema.Url;
// Create a new instance of UserDefined
newUserDefined(): Peopleapi_v1.Schema.UserDefined;
}
}
declare var Peopleapi_v1: GoogleAppsScript.Peopleapi_v1;
View File
View File
+147
View File
@@ -0,0 +1,147 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Admin_reports_v1 {
namespace Collection {
export interface ActivitiesCollection {
// Retrieves a list of activities for a specific customer and application.
list(userKey: string, applicationName: string): Admin_reports_v1.Schema.Activities;
// Retrieves a list of activities for a specific customer and application.
list(userKey: string, applicationName: string, optionalArgs: object): Admin_reports_v1.Schema.Activities;
// Push changes to activities
watch(resource: Schema.Channel, userKey: string, applicationName: string): Admin_reports_v1.Schema.Channel;
// Push changes to activities
watch(resource: Schema.Channel, userKey: string, applicationName: string, optionalArgs: object): Admin_reports_v1.Schema.Channel;
}
export interface ChannelsCollection {
// Stop watching resources through this channel
stop(resource: Schema.Channel): void;
}
export interface CustomerUsageReportsCollection {
// Retrieves a report which is a collection of properties / statistics for a specific customer.
get(date: string): Admin_reports_v1.Schema.UsageReports;
// Retrieves a report which is a collection of properties / statistics for a specific customer.
get(date: string, optionalArgs: object): Admin_reports_v1.Schema.UsageReports;
}
export interface EntityUsageReportsCollection {
// Retrieves a report which is a collection of properties / statistics for a set of objects.
get(entityType: string, entityKey: string, date: string): Admin_reports_v1.Schema.UsageReports;
// Retrieves a report which is a collection of properties / statistics for a set of objects.
get(entityType: string, entityKey: string, date: string, optionalArgs: object): Admin_reports_v1.Schema.UsageReports;
}
export interface UserUsageReportCollection {
// Retrieves a report which is a collection of properties / statistics for a set of users.
get(userKey: string, date: string): Admin_reports_v1.Schema.UsageReports;
// Retrieves a report which is a collection of properties / statistics for a set of users.
get(userKey: string, date: string, optionalArgs: object): Admin_reports_v1.Schema.UsageReports;
}
}
namespace Schema {
export interface Activities {
etag?: string;
items?: Admin_reports_v1.Schema.Activity[];
kind?: string;
nextPageToken?: string;
}
export interface Activity {
actor?: Admin_reports_v1.Schema.ActivityActor;
etag?: string;
events?: Admin_reports_v1.Schema.ActivityEvents[];
id?: Admin_reports_v1.Schema.ActivityId;
ipAddress?: string;
kind?: string;
ownerDomain?: string;
}
export interface ActivityActor {
callerType?: string;
email?: string;
key?: string;
profileId?: string;
}
export interface ActivityEvents {
name?: string;
parameters?: Admin_reports_v1.Schema.ActivityEventsParameters[];
type?: string;
}
export interface ActivityEventsParameters {
boolValue?: boolean;
intValue?: string;
multiIntValue?: string[];
multiValue?: string[];
name?: string;
value?: string;
}
export interface ActivityId {
applicationName?: string;
customerId?: string;
time?: string;
uniqueQualifier?: string;
}
export interface Channel {
address?: string;
expiration?: string;
id?: string;
kind?: string;
params?: object;
payload?: boolean;
resourceId?: string;
resourceUri?: string;
token?: string;
type?: string;
}
export interface UsageReport {
date?: string;
entity?: Admin_reports_v1.Schema.UsageReportEntity;
etag?: string;
kind?: string;
parameters?: Admin_reports_v1.Schema.UsageReportParameters[];
}
export interface UsageReportEntity {
customerId?: string;
entityId?: string;
profileId?: string;
type?: string;
userEmail?: string;
}
export interface UsageReportParameters {
boolValue?: boolean;
datetimeValue?: string;
intValue?: string;
msgValue?: Object[];
name?: string;
stringValue?: string;
}
export interface UsageReports {
etag?: string;
kind?: string;
nextPageToken?: string;
usageReports?: Admin_reports_v1.Schema.UsageReport[];
warnings?: Admin_reports_v1.Schema.UsageReportsWarnings[];
}
export interface UsageReportsWarnings {
code?: string;
data?: Admin_reports_v1.Schema.UsageReportsWarningsData[];
message?: string;
}
export interface UsageReportsWarningsData {
key?: string;
value?: string;
}
}
}
export interface Admin_reports_v1 {
Activities?: Admin_reports_v1.Collection.ActivitiesCollection;
Channels?: Admin_reports_v1.Collection.ChannelsCollection;
CustomerUsageReports?: Admin_reports_v1.Collection.CustomerUsageReportsCollection;
EntityUsageReports?: Admin_reports_v1.Collection.EntityUsageReportsCollection;
UserUsageReport?: Admin_reports_v1.Collection.UserUsageReportCollection;
// Create a new instance of Channel
newChannel(): Admin_reports_v1.Schema.Channel;
}
}
declare var Admin_reports_v1: GoogleAppsScript.Admin_reports_v1;
View File
+179
View File
@@ -0,0 +1,179 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Reseller_v1 {
namespace Collection {
export interface CustomersCollection {
// Get a customer account.
get(customerId: string): Reseller_v1.Schema.Customer;
// Order a new customer's account.
insert(resource: Schema.Customer): Reseller_v1.Schema.Customer;
// Order a new customer's account.
insert(resource: Schema.Customer, optionalArgs: object): Reseller_v1.Schema.Customer;
// Update a customer account's settings. This method supports patch semantics.
patch(resource: Schema.Customer, customerId: string): Reseller_v1.Schema.Customer;
// Update a customer account's settings.
update(resource: Schema.Customer, customerId: string): Reseller_v1.Schema.Customer;
}
export interface ResellernotifyCollection {
// Returns all the details of the watch corresponding to the reseller.
getwatchdetails(): Reseller_v1.Schema.ResellernotifyGetwatchdetailsResponse;
// Registers a Reseller for receiving notifications.
register(): Reseller_v1.Schema.ResellernotifyResource;
// Registers a Reseller for receiving notifications.
register(optionalArgs: object): Reseller_v1.Schema.ResellernotifyResource;
// Unregisters a Reseller for receiving notifications.
unregister(): Reseller_v1.Schema.ResellernotifyResource;
// Unregisters a Reseller for receiving notifications.
unregister(optionalArgs: object): Reseller_v1.Schema.ResellernotifyResource;
}
export interface SubscriptionsCollection {
// Activates a subscription previously suspended by the reseller
activate(customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
// Update a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments.
changePlan(resource: Schema.ChangePlanRequest, customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
// Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.
changeRenewalSettings(resource: Schema.RenewalSettings, customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
// Update a subscription's user license settings.
changeSeats(resource: Schema.Seats, customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
// Get a specific subscription.
get(customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
// Create or transfer a subscription.
insert(resource: Schema.Subscription, customerId: string): Reseller_v1.Schema.Subscription;
// Create or transfer a subscription.
insert(resource: Schema.Subscription, customerId: string, optionalArgs: object): Reseller_v1.Schema.Subscription;
// List of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions.
list(): Reseller_v1.Schema.Subscriptions;
// List of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions.
list(optionalArgs: object): Reseller_v1.Schema.Subscriptions;
// Cancel or transfer a subscription to direct.
remove(customerId: string, subscriptionId: string, deletionType: string): void;
// Immediately move a 30-day free trial subscription to a paid service subscription.
startPaidService(customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
// Suspends an active subscription.
suspend(customerId: string, subscriptionId: string): Reseller_v1.Schema.Subscription;
}
}
namespace Schema {
export interface Address {
addressLine1?: string;
addressLine2?: string;
addressLine3?: string;
contactName?: string;
countryCode?: string;
kind?: string;
locality?: string;
organizationName?: string;
postalCode?: string;
region?: string;
}
export interface ChangePlanRequest {
dealCode?: string;
kind?: string;
planName?: string;
purchaseOrderId?: string;
seats?: Reseller_v1.Schema.Seats;
}
export interface Customer {
alternateEmail?: string;
customerDomain?: string;
customerDomainVerified?: boolean;
customerId?: string;
kind?: string;
phoneNumber?: string;
postalAddress?: Reseller_v1.Schema.Address;
resourceUiUrl?: string;
}
export interface RenewalSettings {
kind?: string;
renewalType?: string;
}
export interface ResellernotifyGetwatchdetailsResponse {
serviceAccountEmailAddresses?: string[];
topicName?: string;
}
export interface ResellernotifyResource {
topicName?: string;
}
export interface Seats {
kind?: string;
licensedNumberOfSeats?: number;
maximumNumberOfSeats?: number;
numberOfSeats?: number;
}
export interface Subscription {
billingMethod?: string;
creationTime?: string;
customerDomain?: string;
customerId?: string;
dealCode?: string;
kind?: string;
plan?: Reseller_v1.Schema.SubscriptionPlan;
purchaseOrderId?: string;
renewalSettings?: Reseller_v1.Schema.RenewalSettings;
resourceUiUrl?: string;
seats?: Reseller_v1.Schema.Seats;
skuId?: string;
skuName?: string;
status?: string;
subscriptionId?: string;
suspensionReasons?: string[];
transferInfo?: Reseller_v1.Schema.SubscriptionTransferInfo;
trialSettings?: Reseller_v1.Schema.SubscriptionTrialSettings;
}
export interface SubscriptionPlan {
commitmentInterval?: Reseller_v1.Schema.SubscriptionPlanCommitmentInterval;
isCommitmentPlan?: boolean;
planName?: string;
}
export interface SubscriptionPlanCommitmentInterval {
endTime?: string;
startTime?: string;
}
export interface SubscriptionTransferInfo {
minimumTransferableSeats?: number;
transferabilityExpirationTime?: string;
}
export interface SubscriptionTrialSettings {
isInTrial?: boolean;
trialEndTime?: string;
}
export interface Subscriptions {
kind?: string;
nextPageToken?: string;
subscriptions?: Reseller_v1.Schema.Subscription[];
}
}
}
export interface Reseller_v1 {
Customers?: Reseller_v1.Collection.CustomersCollection;
Resellernotify?: Reseller_v1.Collection.ResellernotifyCollection;
Subscriptions?: Reseller_v1.Collection.SubscriptionsCollection;
// Create a new instance of Address
newAddress(): Reseller_v1.Schema.Address;
// Create a new instance of ChangePlanRequest
newChangePlanRequest(): Reseller_v1.Schema.ChangePlanRequest;
// Create a new instance of Customer
newCustomer(): Reseller_v1.Schema.Customer;
// Create a new instance of RenewalSettings
newRenewalSettings(): Reseller_v1.Schema.RenewalSettings;
// Create a new instance of Seats
newSeats(): Reseller_v1.Schema.Seats;
// Create a new instance of Subscription
newSubscription(): Reseller_v1.Schema.Subscription;
// Create a new instance of SubscriptionPlan
newSubscriptionPlan(): Reseller_v1.Schema.SubscriptionPlan;
// Create a new instance of SubscriptionPlanCommitmentInterval
newSubscriptionPlanCommitmentInterval(): Reseller_v1.Schema.SubscriptionPlanCommitmentInterval;
// Create a new instance of SubscriptionTransferInfo
newSubscriptionTransferInfo(): Reseller_v1.Schema.SubscriptionTransferInfo;
// Create a new instance of SubscriptionTrialSettings
newSubscriptionTrialSettings(): Reseller_v1.Schema.SubscriptionTrialSettings;
}
}
declare var Reseller_v1: GoogleAppsScript.Reseller_v1;
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
View File
+710
View File
@@ -0,0 +1,710 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Tagmanager_v2 {
namespace Collection {
namespace Accounts {
namespace Containers {
namespace Workspaces {
export interface Built_in_variablesCollection {
// Creates one or more GTM Built-In Variables.
create(parent: string): Tagmanager_v2.Schema.CreateBuiltInVariableResponse;
// Creates one or more GTM Built-In Variables.
create(parent: string, optionalArgs: object): Tagmanager_v2.Schema.CreateBuiltInVariableResponse;
// Lists all the enabled Built-In Variables of a GTM Container.
list(parent: string): Tagmanager_v2.Schema.ListEnabledBuiltInVariablesResponse;
// Lists all the enabled Built-In Variables of a GTM Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListEnabledBuiltInVariablesResponse;
// Deletes one or more GTM Built-In Variables.
remove(path: string): void;
// Deletes one or more GTM Built-In Variables.
remove(path: string, optionalArgs: object): void;
// Reverts changes to a GTM Built-In Variables in a GTM Workspace.
revert(path: string): Tagmanager_v2.Schema.RevertBuiltInVariableResponse;
// Reverts changes to a GTM Built-In Variables in a GTM Workspace.
revert(path: string, optionalArgs: object): Tagmanager_v2.Schema.RevertBuiltInVariableResponse;
}
export interface FoldersCollection {
// Creates a GTM Folder.
create(resource: Schema.Folder, parent: string): Tagmanager_v2.Schema.Folder;
// List all entities in a GTM Folder.
entities(path: string): Tagmanager_v2.Schema.FolderEntities;
// List all entities in a GTM Folder.
entities(path: string, optionalArgs: object): Tagmanager_v2.Schema.FolderEntities;
// Gets a GTM Folder.
get(path: string): Tagmanager_v2.Schema.Folder;
// Lists all GTM Folders of a Container.
list(parent: string): Tagmanager_v2.Schema.ListFoldersResponse;
// Lists all GTM Folders of a Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListFoldersResponse;
// Moves entities to a GTM Folder.
move_entities_to_folder(resource: Schema.Folder, path: string): void;
// Moves entities to a GTM Folder.
move_entities_to_folder(resource: Schema.Folder, path: string, optionalArgs: object): void;
// Deletes a GTM Folder.
remove(path: string): void;
// Reverts changes to a GTM Folder in a GTM Workspace.
revert(path: string): Tagmanager_v2.Schema.RevertFolderResponse;
// Reverts changes to a GTM Folder in a GTM Workspace.
revert(path: string, optionalArgs: object): Tagmanager_v2.Schema.RevertFolderResponse;
// Updates a GTM Folder.
update(resource: Schema.Folder, path: string): Tagmanager_v2.Schema.Folder;
// Updates a GTM Folder.
update(resource: Schema.Folder, path: string, optionalArgs: object): Tagmanager_v2.Schema.Folder;
}
export interface TagsCollection {
// Creates a GTM Tag.
create(resource: Schema.Tag, parent: string): Tagmanager_v2.Schema.Tag;
// Gets a GTM Tag.
get(path: string): Tagmanager_v2.Schema.Tag;
// Lists all GTM Tags of a Container.
list(parent: string): Tagmanager_v2.Schema.ListTagsResponse;
// Lists all GTM Tags of a Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListTagsResponse;
// Deletes a GTM Tag.
remove(path: string): void;
// Reverts changes to a GTM Tag in a GTM Workspace.
revert(path: string): Tagmanager_v2.Schema.RevertTagResponse;
// Reverts changes to a GTM Tag in a GTM Workspace.
revert(path: string, optionalArgs: object): Tagmanager_v2.Schema.RevertTagResponse;
// Updates a GTM Tag.
update(resource: Schema.Tag, path: string): Tagmanager_v2.Schema.Tag;
// Updates a GTM Tag.
update(resource: Schema.Tag, path: string, optionalArgs: object): Tagmanager_v2.Schema.Tag;
}
export interface TriggersCollection {
// Creates a GTM Trigger.
create(resource: Schema.Trigger, parent: string): Tagmanager_v2.Schema.Trigger;
// Gets a GTM Trigger.
get(path: string): Tagmanager_v2.Schema.Trigger;
// Lists all GTM Triggers of a Container.
list(parent: string): Tagmanager_v2.Schema.ListTriggersResponse;
// Lists all GTM Triggers of a Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListTriggersResponse;
// Deletes a GTM Trigger.
remove(path: string): void;
// Reverts changes to a GTM Trigger in a GTM Workspace.
revert(path: string): Tagmanager_v2.Schema.RevertTriggerResponse;
// Reverts changes to a GTM Trigger in a GTM Workspace.
revert(path: string, optionalArgs: object): Tagmanager_v2.Schema.RevertTriggerResponse;
// Updates a GTM Trigger.
update(resource: Schema.Trigger, path: string): Tagmanager_v2.Schema.Trigger;
// Updates a GTM Trigger.
update(resource: Schema.Trigger, path: string, optionalArgs: object): Tagmanager_v2.Schema.Trigger;
}
export interface VariablesCollection {
// Creates a GTM Variable.
create(resource: Schema.Variable, parent: string): Tagmanager_v2.Schema.Variable;
// Gets a GTM Variable.
get(path: string): Tagmanager_v2.Schema.Variable;
// Lists all GTM Variables of a Container.
list(parent: string): Tagmanager_v2.Schema.ListVariablesResponse;
// Lists all GTM Variables of a Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListVariablesResponse;
// Deletes a GTM Variable.
remove(path: string): void;
// Reverts changes to a GTM Variable in a GTM Workspace.
revert(path: string): Tagmanager_v2.Schema.RevertVariableResponse;
// Reverts changes to a GTM Variable in a GTM Workspace.
revert(path: string, optionalArgs: object): Tagmanager_v2.Schema.RevertVariableResponse;
// Updates a GTM Variable.
update(resource: Schema.Variable, path: string): Tagmanager_v2.Schema.Variable;
// Updates a GTM Variable.
update(resource: Schema.Variable, path: string, optionalArgs: object): Tagmanager_v2.Schema.Variable;
}
export interface ZonesCollection {
// Creates a GTM Zone.
create(resource: Schema.Zone, parent: string): Tagmanager_v2.Schema.Zone;
// Gets a GTM Zone.
get(path: string): Tagmanager_v2.Schema.Zone;
// Lists all GTM Zones of a GTM container workspace.
list(parent: string): Tagmanager_v2.Schema.ListZonesResponse;
// Lists all GTM Zones of a GTM container workspace.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListZonesResponse;
// Deletes a GTM Zone.
remove(path: string): void;
// Reverts changes to a GTM Zone in a GTM Workspace.
revert(path: string): Tagmanager_v2.Schema.RevertZoneResponse;
// Reverts changes to a GTM Zone in a GTM Workspace.
revert(path: string, optionalArgs: object): Tagmanager_v2.Schema.RevertZoneResponse;
// Updates a GTM Zone.
update(resource: Schema.Zone, path: string): Tagmanager_v2.Schema.Zone;
// Updates a GTM Zone.
update(resource: Schema.Zone, path: string, optionalArgs: object): Tagmanager_v2.Schema.Zone;
}
}
export interface EnvironmentsCollection {
// Creates a GTM Environment.
create(resource: Schema.Environment, parent: string): Tagmanager_v2.Schema.Environment;
// Gets a GTM Environment.
get(path: string): Tagmanager_v2.Schema.Environment;
// Lists all GTM Environments of a GTM Container.
list(parent: string): Tagmanager_v2.Schema.ListEnvironmentsResponse;
// Lists all GTM Environments of a GTM Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListEnvironmentsResponse;
// Re-generates the authorization code for a GTM Environment.
reauthorize(resource: Schema.Environment, path: string): Tagmanager_v2.Schema.Environment;
// Deletes a GTM Environment.
remove(path: string): void;
// Updates a GTM Environment.
update(resource: Schema.Environment, path: string): Tagmanager_v2.Schema.Environment;
// Updates a GTM Environment.
update(resource: Schema.Environment, path: string, optionalArgs: object): Tagmanager_v2.Schema.Environment;
}
export interface Version_headersCollection {
// Gets the latest container version header
latest(parent: string): Tagmanager_v2.Schema.ContainerVersionHeader;
// Lists all Container Versions of a GTM Container.
list(parent: string): Tagmanager_v2.Schema.ListContainerVersionsResponse;
// Lists all Container Versions of a GTM Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListContainerVersionsResponse;
}
export interface VersionsCollection {
// Gets a Container Version.
get(path: string): Tagmanager_v2.Schema.ContainerVersion;
// Gets a Container Version.
get(path: string, optionalArgs: object): Tagmanager_v2.Schema.ContainerVersion;
// Gets the live (i.e. published) container version
live(parent: string): Tagmanager_v2.Schema.ContainerVersion;
// Publishes a Container Version.
publish(path: string): Tagmanager_v2.Schema.PublishContainerVersionResponse;
// Publishes a Container Version.
publish(path: string, optionalArgs: object): Tagmanager_v2.Schema.PublishContainerVersionResponse;
// Deletes a Container Version.
remove(path: string): void;
// Sets the latest version used for synchronization of workspaces when detecting conflicts and errors.
set_latest(path: string): Tagmanager_v2.Schema.ContainerVersion;
// Undeletes a Container Version.
undelete(path: string): Tagmanager_v2.Schema.ContainerVersion;
// Updates a Container Version.
update(resource: Schema.ContainerVersion, path: string): Tagmanager_v2.Schema.ContainerVersion;
// Updates a Container Version.
update(resource: Schema.ContainerVersion, path: string, optionalArgs: object): Tagmanager_v2.Schema.ContainerVersion;
}
export interface WorkspacesCollection {
Built_in_variables?: Tagmanager_v2.Collection.Accounts.Containers.Workspaces.Built_in_variablesCollection;
Folders?: Tagmanager_v2.Collection.Accounts.Containers.Workspaces.FoldersCollection;
Tags?: Tagmanager_v2.Collection.Accounts.Containers.Workspaces.TagsCollection;
Triggers?: Tagmanager_v2.Collection.Accounts.Containers.Workspaces.TriggersCollection;
Variables?: Tagmanager_v2.Collection.Accounts.Containers.Workspaces.VariablesCollection;
Zones?: Tagmanager_v2.Collection.Accounts.Containers.Workspaces.ZonesCollection;
// Creates a Workspace.
create(resource: Schema.Workspace, parent: string): Tagmanager_v2.Schema.Workspace;
// Creates a Container Version from the entities present in the workspace, deletes the workspace, and sets the base container version to the newly created version.
create_version(resource: Schema.CreateContainerVersionRequestVersionOptions, path: string): Tagmanager_v2.Schema.CreateContainerVersionResponse;
// Gets a Workspace.
get(path: string): Tagmanager_v2.Schema.Workspace;
// Finds conflicting and modified entities in the workspace.
getStatus(path: string): Tagmanager_v2.Schema.GetWorkspaceStatusResponse;
// Lists all Workspaces that belong to a GTM Container.
list(parent: string): Tagmanager_v2.Schema.ListWorkspacesResponse;
// Lists all Workspaces that belong to a GTM Container.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListWorkspacesResponse;
// Quick previews a workspace by creating a fake container version from all entities in the provided workspace.
quick_preview(path: string): Tagmanager_v2.Schema.QuickPreviewResponse;
// Deletes a Workspace.
remove(path: string): void;
// Resolves a merge conflict for a workspace entity by updating it to the resolved entity passed in the request.
resolve_conflict(resource: Schema.Entity, path: string): void;
// Resolves a merge conflict for a workspace entity by updating it to the resolved entity passed in the request.
resolve_conflict(resource: Schema.Entity, path: string, optionalArgs: object): void;
// Syncs a workspace to the latest container version by updating all unmodified workspace entities and displaying conflicts for modified entities.
sync(path: string): Tagmanager_v2.Schema.SyncWorkspaceResponse;
// Updates a Workspace.
update(resource: Schema.Workspace, path: string): Tagmanager_v2.Schema.Workspace;
// Updates a Workspace.
update(resource: Schema.Workspace, path: string, optionalArgs: object): Tagmanager_v2.Schema.Workspace;
}
}
export interface ContainersCollection {
Environments?: Tagmanager_v2.Collection.Accounts.Containers.EnvironmentsCollection;
Version_headers?: Tagmanager_v2.Collection.Accounts.Containers.Version_headersCollection;
Versions?: Tagmanager_v2.Collection.Accounts.Containers.VersionsCollection;
Workspaces?: Tagmanager_v2.Collection.Accounts.Containers.WorkspacesCollection;
// Creates a Container.
create(resource: Schema.Container, parent: string): Tagmanager_v2.Schema.Container;
// Gets a Container.
get(path: string): Tagmanager_v2.Schema.Container;
// Lists all Containers that belongs to a GTM Account.
list(parent: string): Tagmanager_v2.Schema.ListContainersResponse;
// Lists all Containers that belongs to a GTM Account.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListContainersResponse;
// Deletes a Container.
remove(path: string): void;
// Updates a Container.
update(resource: Schema.Container, path: string): Tagmanager_v2.Schema.Container;
// Updates a Container.
update(resource: Schema.Container, path: string, optionalArgs: object): Tagmanager_v2.Schema.Container;
}
export interface User_permissionsCollection {
// Creates a user's Account & Container access.
create(resource: Schema.UserPermission, parent: string): Tagmanager_v2.Schema.UserPermission;
// Gets a user's Account & Container access.
get(path: string): Tagmanager_v2.Schema.UserPermission;
// List all users that have access to the account along with Account and Container user access granted to each of them.
list(parent: string): Tagmanager_v2.Schema.ListUserPermissionsResponse;
// List all users that have access to the account along with Account and Container user access granted to each of them.
list(parent: string, optionalArgs: object): Tagmanager_v2.Schema.ListUserPermissionsResponse;
// Removes a user from the account, revoking access to it and all of its containers.
remove(path: string): void;
// Updates a user's Account & Container access.
update(resource: Schema.UserPermission, path: string): Tagmanager_v2.Schema.UserPermission;
}
}
export interface AccountsCollection {
Containers?: Tagmanager_v2.Collection.Accounts.ContainersCollection;
User_permissions?: Tagmanager_v2.Collection.Accounts.User_permissionsCollection;
// Gets a GTM Account.
get(path: string): Tagmanager_v2.Schema.Account;
// Lists all GTM Accounts that a user has access to.
list(): Tagmanager_v2.Schema.ListAccountsResponse;
// Lists all GTM Accounts that a user has access to.
list(optionalArgs: object): Tagmanager_v2.Schema.ListAccountsResponse;
// Updates a GTM Account.
update(resource: Schema.Account, path: string): Tagmanager_v2.Schema.Account;
// Updates a GTM Account.
update(resource: Schema.Account, path: string, optionalArgs: object): Tagmanager_v2.Schema.Account;
}
}
namespace Schema {
export interface Account {
accountId?: string;
fingerprint?: string;
name?: string;
path?: string;
shareData?: boolean;
tagManagerUrl?: string;
}
export interface AccountAccess {
permission?: string;
}
export interface BuiltInVariable {
accountId?: string;
containerId?: string;
name?: string;
path?: string;
type?: string;
workspaceId?: string;
}
export interface Condition {
parameter?: Tagmanager_v2.Schema.Parameter[];
type?: string;
}
export interface Container {
accountId?: string;
containerId?: string;
domainName?: string[];
fingerprint?: string;
name?: string;
notes?: string;
path?: string;
publicId?: string;
tagManagerUrl?: string;
usageContext?: string[];
}
export interface ContainerAccess {
containerId?: string;
permission?: string;
}
export interface ContainerVersion {
accountId?: string;
builtInVariable?: Tagmanager_v2.Schema.BuiltInVariable[];
container?: Tagmanager_v2.Schema.Container;
containerId?: string;
containerVersionId?: string;
customTemplate?: Tagmanager_v2.Schema.CustomTemplate[];
deleted?: boolean;
description?: string;
fingerprint?: string;
folder?: Tagmanager_v2.Schema.Folder[];
name?: string;
path?: string;
tag?: Tagmanager_v2.Schema.Tag[];
tagManagerUrl?: string;
trigger?: Tagmanager_v2.Schema.Trigger[];
variable?: Tagmanager_v2.Schema.Variable[];
zone?: Tagmanager_v2.Schema.Zone[];
}
export interface ContainerVersionHeader {
accountId?: string;
containerId?: string;
containerVersionId?: string;
deleted?: boolean;
name?: string;
numCustomTemplates?: string;
numMacros?: string;
numRules?: string;
numTags?: string;
numTriggers?: string;
numVariables?: string;
numZones?: string;
path?: string;
}
export interface CreateBuiltInVariableResponse {
builtInVariable?: Tagmanager_v2.Schema.BuiltInVariable[];
}
export interface CreateContainerVersionRequestVersionOptions {
name?: string;
notes?: string;
}
export interface CreateContainerVersionResponse {
compilerError?: boolean;
containerVersion?: Tagmanager_v2.Schema.ContainerVersion;
newWorkspacePath?: string;
syncStatus?: Tagmanager_v2.Schema.SyncStatus;
}
export interface CustomTemplate {
accountId?: string;
containerId?: string;
fingerprint?: string;
name?: string;
path?: string;
tagManagerUrl?: string;
templateData?: string;
templateId?: string;
workspaceId?: string;
}
export interface Entity {
changeStatus?: string;
folder?: Tagmanager_v2.Schema.Folder;
tag?: Tagmanager_v2.Schema.Tag;
trigger?: Tagmanager_v2.Schema.Trigger;
variable?: Tagmanager_v2.Schema.Variable;
}
export interface Environment {
accountId?: string;
authorizationCode?: string;
authorizationTimestamp?: Tagmanager_v2.Schema.Timestamp;
containerId?: string;
containerVersionId?: string;
description?: string;
enableDebug?: boolean;
environmentId?: string;
fingerprint?: string;
name?: string;
path?: string;
tagManagerUrl?: string;
type?: string;
url?: string;
workspaceId?: string;
}
export interface Folder {
accountId?: string;
containerId?: string;
fingerprint?: string;
folderId?: string;
name?: string;
notes?: string;
path?: string;
tagManagerUrl?: string;
workspaceId?: string;
}
export interface FolderEntities {
nextPageToken?: string;
tag?: Tagmanager_v2.Schema.Tag[];
trigger?: Tagmanager_v2.Schema.Trigger[];
variable?: Tagmanager_v2.Schema.Variable[];
}
export interface GetWorkspaceStatusResponse {
mergeConflict?: Tagmanager_v2.Schema.MergeConflict[];
workspaceChange?: Tagmanager_v2.Schema.Entity[];
}
export interface ListAccountsResponse {
account?: Tagmanager_v2.Schema.Account[];
nextPageToken?: string;
}
export interface ListContainerVersionsResponse {
containerVersionHeader?: Tagmanager_v2.Schema.ContainerVersionHeader[];
nextPageToken?: string;
}
export interface ListContainersResponse {
container?: Tagmanager_v2.Schema.Container[];
nextPageToken?: string;
}
export interface ListEnabledBuiltInVariablesResponse {
builtInVariable?: Tagmanager_v2.Schema.BuiltInVariable[];
nextPageToken?: string;
}
export interface ListEnvironmentsResponse {
environment?: Tagmanager_v2.Schema.Environment[];
nextPageToken?: string;
}
export interface ListFoldersResponse {
folder?: Tagmanager_v2.Schema.Folder[];
nextPageToken?: string;
}
export interface ListTagsResponse {
nextPageToken?: string;
tag?: Tagmanager_v2.Schema.Tag[];
}
export interface ListTriggersResponse {
nextPageToken?: string;
trigger?: Tagmanager_v2.Schema.Trigger[];
}
export interface ListUserPermissionsResponse {
nextPageToken?: string;
userPermission?: Tagmanager_v2.Schema.UserPermission[];
}
export interface ListVariablesResponse {
nextPageToken?: string;
variable?: Tagmanager_v2.Schema.Variable[];
}
export interface ListWorkspacesResponse {
nextPageToken?: string;
workspace?: Tagmanager_v2.Schema.Workspace[];
}
export interface ListZonesResponse {
nextPageToken?: string;
zone?: Tagmanager_v2.Schema.Zone[];
}
export interface MergeConflict {
entityInBaseVersion?: Tagmanager_v2.Schema.Entity;
entityInWorkspace?: Tagmanager_v2.Schema.Entity;
}
export interface Parameter {
key?: string;
list?: Tagmanager_v2.Schema.Parameter[];
map?: Tagmanager_v2.Schema.Parameter[];
type?: string;
value?: string;
}
export interface PublishContainerVersionResponse {
compilerError?: boolean;
containerVersion?: Tagmanager_v2.Schema.ContainerVersion;
}
export interface QuickPreviewResponse {
compilerError?: boolean;
containerVersion?: Tagmanager_v2.Schema.ContainerVersion;
syncStatus?: Tagmanager_v2.Schema.SyncStatus;
}
export interface RevertBuiltInVariableResponse {
enabled?: boolean;
}
export interface RevertFolderResponse {
folder?: Tagmanager_v2.Schema.Folder;
}
export interface RevertTagResponse {
tag?: Tagmanager_v2.Schema.Tag;
}
export interface RevertTriggerResponse {
trigger?: Tagmanager_v2.Schema.Trigger;
}
export interface RevertVariableResponse {
variable?: Tagmanager_v2.Schema.Variable;
}
export interface RevertZoneResponse {
zone?: Tagmanager_v2.Schema.Zone;
}
export interface SetupTag {
stopOnSetupFailure?: boolean;
tagName?: string;
}
export interface SyncStatus {
mergeConflict?: boolean;
syncError?: boolean;
}
export interface SyncWorkspaceResponse {
mergeConflict?: Tagmanager_v2.Schema.MergeConflict[];
syncStatus?: Tagmanager_v2.Schema.SyncStatus;
}
export interface Tag {
accountId?: string;
blockingRuleId?: string[];
blockingTriggerId?: string[];
containerId?: string;
fingerprint?: string;
firingRuleId?: string[];
firingTriggerId?: string[];
liveOnly?: boolean;
name?: string;
notes?: string;
parameter?: Tagmanager_v2.Schema.Parameter[];
parentFolderId?: string;
path?: string;
paused?: boolean;
priority?: Tagmanager_v2.Schema.Parameter;
scheduleEndMs?: string;
scheduleStartMs?: string;
setupTag?: Tagmanager_v2.Schema.SetupTag[];
tagFiringOption?: string;
tagId?: string;
tagManagerUrl?: string;
teardownTag?: Tagmanager_v2.Schema.TeardownTag[];
type?: string;
workspaceId?: string;
}
export interface TeardownTag {
stopTeardownOnFailure?: boolean;
tagName?: string;
}
export interface Timestamp {
nanos?: number;
seconds?: string;
}
export interface Trigger {
accountId?: string;
autoEventFilter?: Tagmanager_v2.Schema.Condition[];
checkValidation?: Tagmanager_v2.Schema.Parameter;
containerId?: string;
continuousTimeMinMilliseconds?: Tagmanager_v2.Schema.Parameter;
customEventFilter?: Tagmanager_v2.Schema.Condition[];
eventName?: Tagmanager_v2.Schema.Parameter;
filter?: Tagmanager_v2.Schema.Condition[];
fingerprint?: string;
horizontalScrollPercentageList?: Tagmanager_v2.Schema.Parameter;
interval?: Tagmanager_v2.Schema.Parameter;
intervalSeconds?: Tagmanager_v2.Schema.Parameter;
limit?: Tagmanager_v2.Schema.Parameter;
maxTimerLengthSeconds?: Tagmanager_v2.Schema.Parameter;
name?: string;
notes?: string;
parameter?: Tagmanager_v2.Schema.Parameter[];
parentFolderId?: string;
path?: string;
selector?: Tagmanager_v2.Schema.Parameter;
tagManagerUrl?: string;
totalTimeMinMilliseconds?: Tagmanager_v2.Schema.Parameter;
triggerId?: string;
type?: string;
uniqueTriggerId?: Tagmanager_v2.Schema.Parameter;
verticalScrollPercentageList?: Tagmanager_v2.Schema.Parameter;
visibilitySelector?: Tagmanager_v2.Schema.Parameter;
visiblePercentageMax?: Tagmanager_v2.Schema.Parameter;
visiblePercentageMin?: Tagmanager_v2.Schema.Parameter;
waitForTags?: Tagmanager_v2.Schema.Parameter;
waitForTagsTimeout?: Tagmanager_v2.Schema.Parameter;
workspaceId?: string;
}
export interface UserPermission {
accountAccess?: Tagmanager_v2.Schema.AccountAccess;
accountId?: string;
containerAccess?: Tagmanager_v2.Schema.ContainerAccess[];
emailAddress?: string;
path?: string;
}
export interface Variable {
accountId?: string;
containerId?: string;
disablingTriggerId?: string[];
enablingTriggerId?: string[];
fingerprint?: string;
formatValue?: Tagmanager_v2.Schema.VariableFormatValue;
name?: string;
notes?: string;
parameter?: Tagmanager_v2.Schema.Parameter[];
parentFolderId?: string;
path?: string;
scheduleEndMs?: string;
scheduleStartMs?: string;
tagManagerUrl?: string;
type?: string;
variableId?: string;
workspaceId?: string;
}
export interface VariableFormatValue {
caseConversionType?: string;
convertFalseToValue?: Tagmanager_v2.Schema.Parameter;
convertNullToValue?: Tagmanager_v2.Schema.Parameter;
convertTrueToValue?: Tagmanager_v2.Schema.Parameter;
convertUndefinedToValue?: Tagmanager_v2.Schema.Parameter;
}
export interface Workspace {
accountId?: string;
containerId?: string;
description?: string;
fingerprint?: string;
name?: string;
path?: string;
tagManagerUrl?: string;
workspaceId?: string;
}
export interface Zone {
accountId?: string;
boundary?: Tagmanager_v2.Schema.ZoneBoundary;
childContainer?: Tagmanager_v2.Schema.ZoneChildContainer[];
containerId?: string;
fingerprint?: string;
name?: string;
notes?: string;
path?: string;
tagManagerUrl?: string;
typeRestriction?: Tagmanager_v2.Schema.ZoneTypeRestriction;
workspaceId?: string;
zoneId?: string;
}
export interface ZoneBoundary {
condition?: Tagmanager_v2.Schema.Condition[];
customEvaluationTriggerId?: string[];
}
export interface ZoneChildContainer {
nickname?: string;
publicId?: string;
}
export interface ZoneTypeRestriction {
enable?: boolean;
whitelistedTypeId?: string[];
}
}
}
export interface Tagmanager_v2 {
Accounts?: Tagmanager_v2.Collection.AccountsCollection;
// Create a new instance of Account
newAccount(): Tagmanager_v2.Schema.Account;
// Create a new instance of AccountAccess
newAccountAccess(): Tagmanager_v2.Schema.AccountAccess;
// Create a new instance of BuiltInVariable
newBuiltInVariable(): Tagmanager_v2.Schema.BuiltInVariable;
// Create a new instance of Condition
newCondition(): Tagmanager_v2.Schema.Condition;
// Create a new instance of Container
newContainer(): Tagmanager_v2.Schema.Container;
// Create a new instance of ContainerAccess
newContainerAccess(): Tagmanager_v2.Schema.ContainerAccess;
// Create a new instance of ContainerVersion
newContainerVersion(): Tagmanager_v2.Schema.ContainerVersion;
// Create a new instance of CreateContainerVersionRequestVersionOptions
newCreateContainerVersionRequestVersionOptions(): Tagmanager_v2.Schema.CreateContainerVersionRequestVersionOptions;
// Create a new instance of CustomTemplate
newCustomTemplate(): Tagmanager_v2.Schema.CustomTemplate;
// Create a new instance of Entity
newEntity(): Tagmanager_v2.Schema.Entity;
// Create a new instance of Environment
newEnvironment(): Tagmanager_v2.Schema.Environment;
// Create a new instance of Folder
newFolder(): Tagmanager_v2.Schema.Folder;
// Create a new instance of Parameter
newParameter(): Tagmanager_v2.Schema.Parameter;
// Create a new instance of SetupTag
newSetupTag(): Tagmanager_v2.Schema.SetupTag;
// Create a new instance of Tag
newTag(): Tagmanager_v2.Schema.Tag;
// Create a new instance of TeardownTag
newTeardownTag(): Tagmanager_v2.Schema.TeardownTag;
// Create a new instance of Timestamp
newTimestamp(): Tagmanager_v2.Schema.Timestamp;
// Create a new instance of Trigger
newTrigger(): Tagmanager_v2.Schema.Trigger;
// Create a new instance of UserPermission
newUserPermission(): Tagmanager_v2.Schema.UserPermission;
// Create a new instance of Variable
newVariable(): Tagmanager_v2.Schema.Variable;
// Create a new instance of VariableFormatValue
newVariableFormatValue(): Tagmanager_v2.Schema.VariableFormatValue;
// Create a new instance of Workspace
newWorkspace(): Tagmanager_v2.Schema.Workspace;
// Create a new instance of Zone
newZone(): Tagmanager_v2.Schema.Zone;
// Create a new instance of ZoneBoundary
newZoneBoundary(): Tagmanager_v2.Schema.ZoneBoundary;
// Create a new instance of ZoneChildContainer
newZoneChildContainer(): Tagmanager_v2.Schema.ZoneChildContainer;
// Create a new instance of ZoneTypeRestriction
newZoneTypeRestriction(): Tagmanager_v2.Schema.ZoneTypeRestriction;
}
}
declare var Tagmanager_v2: GoogleAppsScript.Tagmanager_v2;
View File
+108
View File
@@ -0,0 +1,108 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Tasks_v1 {
namespace Collection {
export interface TasklistsCollection {
// Returns the authenticated user's specified task list.
get(tasklist: string): Tasks_v1.Schema.TaskList;
// Creates a new task list and adds it to the authenticated user's task lists.
insert(resource: Schema.TaskList): Tasks_v1.Schema.TaskList;
// Returns all the authenticated user's task lists.
list(): Tasks_v1.Schema.TaskLists;
// Returns all the authenticated user's task lists.
list(optionalArgs: object): Tasks_v1.Schema.TaskLists;
// Updates the authenticated user's specified task list. This method supports patch semantics.
patch(resource: Schema.TaskList, tasklist: string): Tasks_v1.Schema.TaskList;
// Deletes the authenticated user's specified task list.
remove(tasklist: string): void;
// Updates the authenticated user's specified task list.
update(resource: Schema.TaskList, tasklist: string): Tasks_v1.Schema.TaskList;
}
export interface TasksCollection {
// Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.
clear(tasklist: string): void;
// Returns the specified task.
get(tasklist: string, task: string): Tasks_v1.Schema.Task;
// Creates a new task on the specified task list.
insert(resource: Schema.Task, tasklist: string): Tasks_v1.Schema.Task;
// Creates a new task on the specified task list.
insert(resource: Schema.Task, tasklist: string, optionalArgs: object): Tasks_v1.Schema.Task;
// Returns all tasks in the specified task list.
list(tasklist: string): Tasks_v1.Schema.Tasks;
// Returns all tasks in the specified task list.
list(tasklist: string, optionalArgs: object): Tasks_v1.Schema.Tasks;
// Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.
move(tasklist: string, task: string): Tasks_v1.Schema.Task;
// Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.
move(tasklist: string, task: string, optionalArgs: object): Tasks_v1.Schema.Task;
// Updates the specified task. This method supports patch semantics.
patch(resource: Schema.Task, tasklist: string, task: string): Tasks_v1.Schema.Task;
// Deletes the specified task from the task list.
remove(tasklist: string, task: string): void;
// Updates the specified task.
update(resource: Schema.Task, tasklist: string, task: string): Tasks_v1.Schema.Task;
}
}
namespace Schema {
export interface Task {
completed?: string;
deleted?: boolean;
due?: string;
etag?: string;
hidden?: boolean;
id?: string;
kind?: string;
links?: Tasks_v1.Schema.TaskLinks[];
notes?: string;
parent?: string;
position?: string;
selfLink?: string;
status?: string;
title?: string;
updated?: string;
}
export interface TaskLinks {
description?: string;
link?: string;
type?: string;
}
export interface TaskList {
etag?: string;
id?: string;
kind?: string;
selfLink?: string;
title?: string;
updated?: string;
}
export interface TaskLists {
etag?: string;
items?: Tasks_v1.Schema.TaskList[];
kind?: string;
nextPageToken?: string;
}
export interface Tasks {
etag?: string;
items?: Tasks_v1.Schema.Task[];
kind?: string;
nextPageToken?: string;
}
}
}
export interface Tasks_v1 {
Tasklists?: Tasks_v1.Collection.TasklistsCollection;
Tasks?: Tasks_v1.Collection.TasksCollection;
// Create a new instance of Task
newTask(): Tasks_v1.Schema.Task;
// Create a new instance of TaskLinks
newTaskLinks(): Tasks_v1.Schema.TaskLinks;
// Create a new instance of TaskList
newTaskList(): Tasks_v1.Schema.TaskList;
}
}
declare var Tasks_v1: GoogleAppsScript.Tasks_v1;
+73
View File
@@ -0,0 +1,73 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace Urlshortener_v1 {
namespace Collection {
export interface UrlCollection {
// Expands a short URL or gets creation time and analytics.
get(shortUrl: string): Urlshortener_v1.Schema.Url;
// Expands a short URL or gets creation time and analytics.
get(shortUrl: string, optionalArgs: object): Urlshortener_v1.Schema.Url;
// Creates a new short URL.
insert(resource: Schema.Url): Urlshortener_v1.Schema.Url;
// Retrieves a list of URLs shortened by a user.
list(): Urlshortener_v1.Schema.UrlHistory;
// Retrieves a list of URLs shortened by a user.
list(optionalArgs: object): Urlshortener_v1.Schema.UrlHistory;
}
}
namespace Schema {
export interface AnalyticsSnapshot {
browsers?: Urlshortener_v1.Schema.StringCount[];
countries?: Urlshortener_v1.Schema.StringCount[];
longUrlClicks?: string;
platforms?: Urlshortener_v1.Schema.StringCount[];
referrers?: Urlshortener_v1.Schema.StringCount[];
shortUrlClicks?: string;
}
export interface AnalyticsSummary {
allTime?: Urlshortener_v1.Schema.AnalyticsSnapshot;
day?: Urlshortener_v1.Schema.AnalyticsSnapshot;
month?: Urlshortener_v1.Schema.AnalyticsSnapshot;
twoHours?: Urlshortener_v1.Schema.AnalyticsSnapshot;
week?: Urlshortener_v1.Schema.AnalyticsSnapshot;
}
export interface StringCount {
count?: string;
id?: string;
}
export interface Url {
analytics?: Urlshortener_v1.Schema.AnalyticsSummary;
created?: string;
id?: string;
kind?: string;
longUrl?: string;
status?: string;
}
export interface UrlHistory {
items?: Urlshortener_v1.Schema.Url[];
itemsPerPage?: number;
kind?: string;
nextPageToken?: string;
totalItems?: number;
}
}
}
export interface Urlshortener_v1 {
Url?: Urlshortener_v1.Collection.UrlCollection;
// Create a new instance of AnalyticsSnapshot
newAnalyticsSnapshot(): Urlshortener_v1.Schema.AnalyticsSnapshot;
// Create a new instance of AnalyticsSummary
newAnalyticsSummary(): Urlshortener_v1.Schema.AnalyticsSummary;
// Create a new instance of StringCount
newStringCount(): Urlshortener_v1.Schema.StringCount;
// Create a new instance of Url
newUrl(): Urlshortener_v1.Schema.Url;
}
}
declare var Urlshortener_v1: GoogleAppsScript.Urlshortener_v1;
View File
File diff suppressed because it is too large Load Diff
+146
View File
@@ -0,0 +1,146 @@
// Type definitions for Google Apps Script 2019-03-25
// Project: https://developers.google.com/apps-script/
// Generator: https://github.com/grant/google-apps-script-dts
// Definitions by: grant <https://github.com/grant/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace GoogleAppsScript {
namespace YoutubeAnalytics_v2 {
namespace Collection {
export interface GroupItemsCollection {
// Creates a group item.
insert(resource: Schema.GroupItem): YoutubeAnalytics_v2.Schema.GroupItem;
// Creates a group item.
insert(resource: Schema.GroupItem, optionalArgs: object): YoutubeAnalytics_v2.Schema.GroupItem;
// Returns a collection of group items that match the API request parameters.
list(): YoutubeAnalytics_v2.Schema.ListGroupItemsResponse;
// Returns a collection of group items that match the API request parameters.
list(optionalArgs: object): YoutubeAnalytics_v2.Schema.ListGroupItemsResponse;
// Removes an item from a group.
remove(): YoutubeAnalytics_v2.Schema.EmptyResponse;
// Removes an item from a group.
remove(optionalArgs: object): YoutubeAnalytics_v2.Schema.EmptyResponse;
}
export interface GroupsCollection {
// Creates a group.
insert(resource: Schema.Group): YoutubeAnalytics_v2.Schema.Group;
// Creates a group.
insert(resource: Schema.Group, optionalArgs: object): YoutubeAnalytics_v2.Schema.Group;
// Returns a collection of groups that match the API request parameters. For
// example, you can retrieve all groups that the authenticated user owns,
// or you can retrieve one or more groups by their unique IDs.
list(): YoutubeAnalytics_v2.Schema.ListGroupsResponse;
// Returns a collection of groups that match the API request parameters. For
// example, you can retrieve all groups that the authenticated user owns,
// or you can retrieve one or more groups by their unique IDs.
list(optionalArgs: object): YoutubeAnalytics_v2.Schema.ListGroupsResponse;
// Deletes a group.
remove(): YoutubeAnalytics_v2.Schema.EmptyResponse;
// Deletes a group.
remove(optionalArgs: object): YoutubeAnalytics_v2.Schema.EmptyResponse;
// Modifies a group. For example, you could change a group's title.
update(resource: Schema.Group): YoutubeAnalytics_v2.Schema.Group;
// Modifies a group. For example, you could change a group's title.
update(resource: Schema.Group, optionalArgs: object): YoutubeAnalytics_v2.Schema.Group;
}
export interface ReportsCollection {
// Retrieve your YouTube Analytics reports.
query(): YoutubeAnalytics_v2.Schema.QueryResponse;
// Retrieve your YouTube Analytics reports.
query(optionalArgs: object): YoutubeAnalytics_v2.Schema.QueryResponse;
}
}
namespace Schema {
export interface EmptyResponse {
errors?: YoutubeAnalytics_v2.Schema.Errors;
}
export interface ErrorProto {
argument?: string[];
code?: string;
debugInfo?: string;
domain?: string;
externalErrorMessage?: string;
location?: string;
locationType?: string;
}
export interface Errors {
code?: string;
error?: YoutubeAnalytics_v2.Schema.ErrorProto[];
requestId?: string;
}
export interface Group {
contentDetails?: YoutubeAnalytics_v2.Schema.GroupContentDetails;
errors?: YoutubeAnalytics_v2.Schema.Errors;
etag?: string;
id?: string;
kind?: string;
snippet?: YoutubeAnalytics_v2.Schema.GroupSnippet;
}
export interface GroupContentDetails {
itemCount?: string;
itemType?: string;
}
export interface GroupItem {
errors?: YoutubeAnalytics_v2.Schema.Errors;
etag?: string;
groupId?: string;
id?: string;
kind?: string;
resource?: YoutubeAnalytics_v2.Schema.GroupItemResource;
}
export interface GroupItemResource {
id?: string;
kind?: string;
}
export interface GroupSnippet {
publishedAt?: string;
title?: string;
}
export interface ListGroupItemsResponse {
errors?: YoutubeAnalytics_v2.Schema.Errors;
etag?: string;
items?: YoutubeAnalytics_v2.Schema.GroupItem[];
kind?: string;
}
export interface ListGroupsResponse {
errors?: YoutubeAnalytics_v2.Schema.Errors;
etag?: string;
items?: YoutubeAnalytics_v2.Schema.Group[];
kind?: string;
nextPageToken?: string;
}
export interface QueryResponse {
columnHeaders?: YoutubeAnalytics_v2.Schema.ResultTableColumnHeader[];
errors?: YoutubeAnalytics_v2.Schema.Errors;
kind?: string;
rows?: Object[][];
}
export interface ResultTableColumnHeader {
columnType?: string;
dataType?: string;
name?: string;
}
}
}
export interface YoutubeAnalytics_v2 {
GroupItems?: YoutubeAnalytics_v2.Collection.GroupItemsCollection;
Groups?: YoutubeAnalytics_v2.Collection.GroupsCollection;
Reports?: YoutubeAnalytics_v2.Collection.ReportsCollection;
// Create a new instance of ErrorProto
newErrorProto(): YoutubeAnalytics_v2.Schema.ErrorProto;
// Create a new instance of Errors
newErrors(): YoutubeAnalytics_v2.Schema.Errors;
// Create a new instance of Group
newGroup(): YoutubeAnalytics_v2.Schema.Group;
// Create a new instance of GroupContentDetails
newGroupContentDetails(): YoutubeAnalytics_v2.Schema.GroupContentDetails;
// Create a new instance of GroupItem
newGroupItem(): YoutubeAnalytics_v2.Schema.GroupItem;
// Create a new instance of GroupItemResource
newGroupItemResource(): YoutubeAnalytics_v2.Schema.GroupItemResource;
// Create a new instance of GroupSnippet
newGroupSnippet(): YoutubeAnalytics_v2.Schema.GroupSnippet;
}
}
declare var YoutubeAnalytics_v2: GoogleAppsScript.YoutubeAnalytics_v2;
File diff suppressed because it is too large Load Diff
@@ -37,6 +37,9 @@ const postTest = (payload: Object): string => {
return UrlFetchApp.fetch(url, params).getContentText();
};
// Advanced Services
Slides_v1.Presentations.Pages.getThumbnail('presentationId', 'pageId');
// Calendar (Advanced service)
declare const Calendar: GoogleAppsScript.Calendar_v3;
const createEvent = (): void => {
@@ -68,6 +71,7 @@ const createEvent = (): void => {
// Admin Directory (Advanced service)
declare const AdminDirectory: GoogleAppsScript.Admin_directory_v1;
const listAllUsers = () => {
let pageToken: string;
let page: GoogleAppsScript.Admin_directory_v1.Schema.Users;
+30 -33
View File
@@ -41,36 +41,33 @@
/// <reference path="google-apps-script.xml-service.d.ts"/>
// API Types (Advanced Google Services)
/// <reference path="apis/adsense/v1.4.d.ts"/>
/// <reference path="apis/admin/directory_v1.d.ts"/>
/// <reference path="apis/admin/reports_v1.d.ts"/>
/// <reference path="apis/bigquery/v2.d.ts"/>
/// <reference path="apis/calendar/v3.d.ts"/>
/// <reference path="apis/content/v2.d.ts"/>
/// <reference path="apis/dfareporting/v2.8.d.ts"/>
/// <reference path="apis/dfareporting/v3.0.d.ts"/>
/// <reference path="apis/dfareporting/v3.1.d.ts"/>
/// <reference path="apis/dfareporting/v3.2.d.ts"/>
/// <reference path="apis/drive/v2.d.ts"/>
/// <reference path="apis/appsactivity/v1.d.ts"/>
/// <reference path="apis/reseller/v1.d.ts"/>
/// <reference path="apis/licensing/v1.d.ts"/>
/// <reference path="apis/fusiontables/v1.d.ts"/>
/// <reference path="apis/fusiontables/v2.d.ts"/>
/// <reference path="apis/gmail/v1.d.ts"/>
/// <reference path="apis/analytics/v3.d.ts"/>
/// <reference path="apis/analyticsreporting/v4.d.ts"/>
/// <reference path="apis/classroom/v1.d.ts"/>
/// <reference path="apis/mirror/v1.d.ts"/>
/// <reference path="apis/sheets/v4.d.ts"/>
/// <reference path="apis/slides/v1.d.ts"/>
/// <reference path="apis/plus/v1.d.ts"/>
/// <reference path="apis/plusDomains/v1.d.ts"/>
/// <reference path="apis/groupsmigration/v1.d.ts"/>
/// <reference path="apis/groupssettings/v1.d.ts"/>
/// <reference path="apis/tagmanager/v1.d.ts"/>
/// <reference path="apis/tasks/v1.d.ts"/>
/// <reference path="apis/urlshortener/v1.d.ts"/>
/// <reference path="apis/youtubeAnalytics/v1.d.ts"/>
/// <reference path="apis/youtube/v3.d.ts"/>
/// <reference path="apis/youtubePartner/v1.d.ts"/>
/// <reference path="apis/adsense_v1_4.d.ts"/>
/// <reference path="apis/analytics_v3.d.ts"/>
/// <reference path="apis/analyticsreporting_v4.d.ts"/>
/// <reference path="apis/appsactivity_v1.d.ts"/>
/// <reference path="apis/bigquery_v2.d.ts"/>
/// <reference path="apis/calendar_v3.d.ts"/>
/// <reference path="apis/classroom_v1.d.ts"/>
/// <reference path="apis/content_v2.d.ts"/>
/// <reference path="apis/dfareporting_v3_3.d.ts"/>
/// <reference path="apis/directory_v1.d.ts"/>
/// <reference path="apis/docs_v1.d.ts"/>
/// <reference path="apis/drive_v2.d.ts"/>
/// <reference path="apis/driveactivity_v2.d.ts"/>
/// <reference path="apis/fusiontables_v2.d.ts"/>
/// <reference path="apis/gmail_v1.d.ts"/>
/// <reference path="apis/groupsmigration_v1.d.ts"/>
/// <reference path="apis/groupssettings_v1.d.ts"/>
/// <reference path="apis/licensing_v1.d.ts"/>
/// <reference path="apis/mirror_v1.d.ts"/>
/// <reference path="apis/peopleapi_v1.d.ts"/>
/// <reference path="apis/reports_v1.d.ts"/>
/// <reference path="apis/reseller_v1.d.ts"/>
/// <reference path="apis/sheets_v4.d.ts"/>
/// <reference path="apis/slides_v1.d.ts"/>
/// <reference path="apis/tagmanager_v2.d.ts"/>
/// <reference path="apis/tasks_v1.d.ts"/>
/// <reference path="apis/urlshortener_v1.d.ts"/>
/// <reference path="apis/youtube_v3.d.ts"/>
/// <reference path="apis/youtubeanalytics_v2.d.ts"/>
/// <reference path="apis/youtubepartner_v1.d.ts"/>