@types/google-apps-script
Advanced tools
Comparing version 1.0.7 to 1.0.8
// Type definitions for Google Apps Script 2019-04-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: oshliaer <https://github.com/oshliaer> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// oshliaer <https://github.com/oshliaer> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -55,3 +56,3 @@ | ||
interface SheetsOnFormSubmit extends AppsScriptEvent { | ||
interface SheetsOnFormSubmit extends AppsScriptEvent { | ||
namedValues: { [key: string]: string[]; }; | ||
@@ -62,2 +63,7 @@ range: Spreadsheet.Range; | ||
interface FormsOnFormSubmit extends AppsScriptEvent { | ||
response: Forms.FormResponse; | ||
source: Forms.Form; | ||
} | ||
interface DocsOnOpen extends AppsScriptEvent { | ||
@@ -75,7 +81,2 @@ source: Document.Document; | ||
interface FormsOnFormSubmit extends AppsScriptEvent { | ||
response: Forms.FormResponse; | ||
source: Forms.Form; | ||
} | ||
// TODO: Is there a `user` attribute? | ||
@@ -92,3 +93,2 @@ interface CalendarEventUpdated extends AppsScriptEvent { | ||
interface DoGet extends AppsScriptHttpRequestEvent { | ||
// TODO: no-empty-interface | ||
} | ||
@@ -95,0 +95,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -28,3 +29,3 @@ | ||
setName(name: string): Blob; | ||
/** @deprecated DO NOT USE */getAllBlobs(): Blob[]; | ||
/** @deprecated DO NOT USE */ getAllBlobs(): Blob[]; | ||
} | ||
@@ -231,4 +232,4 @@ /** | ||
getTemporaryActiveUserKey(): string; | ||
/** @deprecated DO NOT USE */getTimeZone(): string; | ||
/** @deprecated DO NOT USE */getUser(): User; | ||
/** @deprecated DO NOT USE */ getTimeZone(): string; | ||
/** @deprecated DO NOT USE */ getUser(): User; | ||
} | ||
@@ -268,3 +269,3 @@ /** | ||
showSidebar(userInterface: HTML.HtmlOutput): void; | ||
/** @deprecated DO NOT USE */showDialog(userInterface: HTML.HtmlOutput): void; | ||
/** @deprecated DO NOT USE */ showDialog(userInterface: HTML.HtmlOutput): void; | ||
} | ||
@@ -276,3 +277,3 @@ /** | ||
getEmail(): string; | ||
/** @deprecated DO NOT USE */getUserLoginId(): string; | ||
/** @deprecated DO NOT USE */ getUserLoginId(): string; | ||
} | ||
@@ -279,0 +280,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -233,3 +234,3 @@ | ||
getName(): string; | ||
/** @deprecated DO NOT USE */getStatus(): string; | ||
/** @deprecated DO NOT USE */ getStatus(): string; | ||
} | ||
@@ -236,0 +237,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -24,3 +25,3 @@ | ||
setParameters(parameters: { [key: string]: string }): Action; | ||
/** @deprecated DO NOT USE */setMethodName(functionName: string): Action; | ||
/** @deprecated DO NOT USE */ setMethodName(functionName: string): Action; | ||
} | ||
@@ -27,0 +28,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -92,24 +93,24 @@ | ||
setSuffix(suffix: string): Contact; | ||
/** @deprecated DO NOT USE */getEmailAddresses(): string[]; | ||
/** @deprecated DO NOT USE */getHomeAddress(): string; | ||
/** @deprecated DO NOT USE */getHomeFax(): string; | ||
/** @deprecated DO NOT USE */getHomePhone(): string; | ||
/** @deprecated DO NOT USE */getMobilePhone(): string; | ||
/** @deprecated DO NOT USE */getPager(): string; | ||
/** @deprecated DO NOT USE */getUserDefinedField(key: string): string; | ||
/** @deprecated DO NOT USE */getUserDefinedFields(): any; | ||
/** @deprecated DO NOT USE */getWorkAddress(): string; | ||
/** @deprecated DO NOT USE */getWorkFax(): string; | ||
/** @deprecated DO NOT USE */getWorkPhone(): string; | ||
/** @deprecated DO NOT USE */setHomeAddress(addr: string): void; | ||
/** @deprecated DO NOT USE */setHomeFax(phone: string): void; | ||
/** @deprecated DO NOT USE */setHomePhone(phone: string): void; | ||
/** @deprecated DO NOT USE */setMobilePhone(phone: string): void; | ||
/** @deprecated DO NOT USE */setPager(phone: string): void; | ||
/** @deprecated DO NOT USE */setPrimaryEmail(primaryEmail: string): void; | ||
/** @deprecated DO NOT USE */setUserDefinedField(key: string, value: string): void; | ||
/** @deprecated DO NOT USE */setUserDefinedFields(o: any): void; | ||
/** @deprecated DO NOT USE */setWorkAddress(addr: string): void; | ||
/** @deprecated DO NOT USE */setWorkFax(phone: string): void; | ||
/** @deprecated DO NOT USE */setWorkPhone(phone: string): void; | ||
/** @deprecated DO NOT USE */ getEmailAddresses(): string[]; | ||
/** @deprecated DO NOT USE */ getHomeAddress(): string; | ||
/** @deprecated DO NOT USE */ getHomeFax(): string; | ||
/** @deprecated DO NOT USE */ getHomePhone(): string; | ||
/** @deprecated DO NOT USE */ getMobilePhone(): string; | ||
/** @deprecated DO NOT USE */ getPager(): string; | ||
/** @deprecated DO NOT USE */ getUserDefinedField(key: string): string; | ||
/** @deprecated DO NOT USE */ getUserDefinedFields(): object; | ||
/** @deprecated DO NOT USE */ getWorkAddress(): string; | ||
/** @deprecated DO NOT USE */ getWorkFax(): string; | ||
/** @deprecated DO NOT USE */ getWorkPhone(): string; | ||
/** @deprecated DO NOT USE */ setHomeAddress(addr: string): void; | ||
/** @deprecated DO NOT USE */ setHomeFax(phone: string): void; | ||
/** @deprecated DO NOT USE */ setHomePhone(phone: string): void; | ||
/** @deprecated DO NOT USE */ setMobilePhone(phone: string): void; | ||
/** @deprecated DO NOT USE */ setPager(phone: string): void; | ||
/** @deprecated DO NOT USE */ setPrimaryEmail(primaryEmail: string): void; | ||
/** @deprecated DO NOT USE */ setUserDefinedField(key: string, value: string): void; | ||
/** @deprecated DO NOT USE */ setUserDefinedFields(o: object): void; | ||
/** @deprecated DO NOT USE */ setWorkAddress(addr: string): void; | ||
/** @deprecated DO NOT USE */ setWorkFax(phone: string): void; | ||
/** @deprecated DO NOT USE */ setWorkPhone(phone: string): void; | ||
} | ||
@@ -128,4 +129,4 @@ /** | ||
setName(name: string): ContactGroup; | ||
/** @deprecated DO NOT USE */getGroupName(): string; | ||
/** @deprecated DO NOT USE */setGroupName(name: string): void; | ||
/** @deprecated DO NOT USE */ getGroupName(): string; | ||
/** @deprecated DO NOT USE */ setGroupName(name: string): void; | ||
} | ||
@@ -179,5 +180,5 @@ /** | ||
getContactsByUrl(query: string, label: string): Contact[]; | ||
/** @deprecated DO NOT USE */findByEmailAddress(email: string): Contact; | ||
/** @deprecated DO NOT USE */findContactGroup(name: string): ContactGroup; | ||
/** @deprecated DO NOT USE */getAllContacts(): Contact[]; | ||
/** @deprecated DO NOT USE */ findByEmailAddress(email: string): Contact; | ||
/** @deprecated DO NOT USE */ findContactGroup(name: string): ContactGroup; | ||
/** @deprecated DO NOT USE */ getAllContacts(): Contact[]; | ||
} | ||
@@ -184,0 +185,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -60,2 +61,3 @@ | ||
setId(id: string): Checkbox; | ||
setIsDynamic(isDynamic: boolean): Checkbox; | ||
setName(name: string): Checkbox; | ||
@@ -89,2 +91,5 @@ } | ||
newDebugError(): DebugError; | ||
newGetDataResponse(): GetDataResponse; | ||
newGetSchemaResponse(): GetSchemaResponse; | ||
newSetCredentialsResponse(): SetCredentialsResponse; | ||
newUserError(): UserError; | ||
@@ -114,2 +119,3 @@ } | ||
setDateRangeRequired(dateRangeRequired: boolean): Config; | ||
setIsSteppedConfig(isSteppedConfig: boolean): Config; | ||
} | ||
@@ -221,2 +227,57 @@ /** | ||
/** | ||
* Builder to create a getData() response for your script project. | ||
* | ||
* function getFields() {...} | ||
* function getData() { | ||
* var cc = DataStudioApp.createCommunityConnector(); | ||
* | ||
* return cc.newGetDataResponse() | ||
* .setFields(getFields()) | ||
* .addRow(['3', 'Foobar.com']) | ||
* .addRow(['4', 'Foobaz.com']) | ||
* .addRows([ | ||
* ['5', 'Fizzbuz.com'], | ||
* ['6', 'Fizzbaz.com'] | ||
* ]) | ||
* .build(); | ||
* } | ||
*/ | ||
interface GetDataResponse { | ||
addAllRows(rows: string[][]): GetDataResponse; | ||
addRow(row: string[]): GetDataResponse; | ||
build(): any; | ||
setFields(fields: Fields): GetDataResponse; | ||
setFiltersApplied(filtersApplied: boolean): GetDataResponse; | ||
} | ||
/** | ||
* Builder to create a getSchema() response for your script project. | ||
* | ||
* function getSchema() { | ||
* var cc = DataStudioApp.createCommunityConnector(); | ||
* var fields = cc.getFields(); | ||
* var types = cc.FieldType; | ||
* | ||
* fields.newDimension() | ||
* .setId('Created') | ||
* .setName('Date Created') | ||
* .setDescription('The date that this was created') | ||
* .setType(types.YEAR_MONTH_DAY); | ||
* | ||
* fields.newMetric() | ||
* .setId('Amount') | ||
* .setName('Amount (USD)') | ||
* .setDescription('The cost in US dollars') | ||
* .setType(types.CURRENCY_USD); | ||
* | ||
* return cc.newGetSchemaResponse() | ||
* .setFields(fields) | ||
* .build(); | ||
* } | ||
*/ | ||
interface GetSchemaResponse { | ||
build(): any; | ||
printJson(): string; | ||
setFields(fields: Fields): GetSchemaResponse; | ||
} | ||
/** | ||
* Contains info data for the config. Its properties determine how the info is displayed in Data | ||
@@ -288,2 +349,3 @@ * Studio. | ||
setId(id: string): SelectMultiple; | ||
setIsDynamic(isDynamic: boolean): SelectMultiple; | ||
setName(name: string): SelectMultiple; | ||
@@ -316,5 +378,26 @@ } | ||
setId(id: string): SelectSingle; | ||
setIsDynamic(isDynamic: boolean): SelectSingle; | ||
setName(name: string): SelectSingle; | ||
} | ||
/** | ||
* Builder to create a setCredentials() response for your script project. | ||
* | ||
* function setCredentials(request) { | ||
* var isValid = checkForValidCreds(request); | ||
* | ||
* if (isValid) { | ||
* // store the creds somewhere. | ||
* } | ||
* | ||
* return cc.newSetCredentialsResponse() | ||
* .setIsValid(isValid) | ||
* .build(); | ||
* } | ||
*/ | ||
interface SetCredentialsResponse { | ||
build(): any; | ||
printJson(): string; | ||
setIsValid(isValid: boolean): SetCredentialsResponse; | ||
} | ||
/** | ||
* Contains text area information for the config. Its properties determine how the text input is | ||
@@ -339,2 +422,3 @@ * displayed in Data Studio. | ||
setId(id: string): TextArea; | ||
setIsDynamic(isDynamic: boolean): TextArea; | ||
setName(name: string): TextArea; | ||
@@ -361,2 +445,3 @@ setPlaceholder(placeholder: string): TextArea; | ||
setId(id: string): TextInput; | ||
setIsDynamic(isDynamic: boolean): TextInput; | ||
setName(name: string): TextInput; | ||
@@ -381,3 +466,2 @@ setPlaceholder(placeholder: string): TextInput; | ||
} | ||
/** | ||
@@ -407,3 +491,2 @@ * function getData(request: GoogleAppsScript.Data_Studio.Request<YourConnectorParams>) | ||
} | ||
interface DateRange { | ||
@@ -415,3 +498,2 @@ /** The start date for filtering the data. Applies only if dateRangeRequired is set to true. It will be in YYYY-MM-DD format. */ | ||
} | ||
interface ScriptParams { | ||
@@ -423,6 +505,4 @@ /** If true, the getData() request is for automatic semantic type detection. */ | ||
} | ||
type RegexpOperator = "REGEXP_PARTIAL_MATCH" | "REGEXP_EXACT_MATCH"; | ||
type NumericOperator = "NUMERIC_GREATER_THAN" | "NUMERIC_GREATER_THAN_OR_EQUAL" | "NUMERIC_LESS_THAN" | "NUMERIC_LESS_THAN_OR_EQUAL"; | ||
interface DimensionsFilters { | ||
@@ -429,0 +509,0 @@ /** The name of the field to be filtered */ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -344,7 +345,3 @@ | ||
getPhotoUrl(): string; | ||
/** | ||
* Gets the user's email address. | ||
* @deprecated As of June 24, 2013, replaced by getEmail() | ||
*/ | ||
getUserLoginId(): string; | ||
/** @deprecated DO NOT USE */ getUserLoginId(): string; | ||
} | ||
@@ -351,0 +348,0 @@ } |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -984,3 +985,2 @@ | ||
interface TextValidation { | ||
// TODO: no-empty-interface | ||
} | ||
@@ -987,0 +987,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -115,3 +116,3 @@ | ||
setName(name: string): Base.Blob; | ||
/** @deprecated DO NOT USE */getAllBlobs(): Base.Blob[]; | ||
/** @deprecated DO NOT USE */ getAllBlobs(): Base.Blob[]; | ||
} | ||
@@ -151,3 +152,2 @@ /** | ||
} | ||
/** | ||
@@ -192,3 +192,2 @@ * Options for a Gmail draft. | ||
type GmailDraftOptions = GmailAdvancedOptions; | ||
/** | ||
@@ -210,3 +209,2 @@ * Options for a Gmail Attachments. | ||
} | ||
/** | ||
@@ -213,0 +211,0 @@ * A user-created label in a user's Gmail account. |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -21,3 +22,4 @@ | ||
* HtmlOutput | ||
* Google Caja | ||
* iframe | ||
* sandboxing | ||
* guide to restrictions in HTML service | ||
@@ -24,0 +26,0 @@ */ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-10-24 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-10-24 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -53,10 +54,10 @@ | ||
interface ScriptProperties { | ||
/** @deprecated DO NOT USE */deleteAllProperties(): ScriptProperties; | ||
/** @deprecated DO NOT USE */deleteProperty(key: string): ScriptProperties; | ||
/** @deprecated DO NOT USE */getKeys(): string[]; | ||
/** @deprecated DO NOT USE */getProperties(): { [key: string]: string }; | ||
/** @deprecated DO NOT USE */getProperty(key: string): string | null ; | ||
/** @deprecated DO NOT USE */setProperties(properties: { [key: string]: string }): ScriptProperties; | ||
/** @deprecated DO NOT USE */setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): ScriptProperties; | ||
/** @deprecated DO NOT USE */setProperty(key: string, value: string): ScriptProperties; | ||
/** @deprecated DO NOT USE */ deleteAllProperties(): ScriptProperties; | ||
/** @deprecated DO NOT USE */ deleteProperty(key: string): ScriptProperties; | ||
/** @deprecated DO NOT USE */ getKeys(): string[]; | ||
/** @deprecated DO NOT USE */ getProperties(): { [key: string]: string }; | ||
/** @deprecated DO NOT USE */ getProperty(key: string): string | null; | ||
/** @deprecated DO NOT USE */ setProperties(properties: { [key: string]: string }): ScriptProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): ScriptProperties; | ||
/** @deprecated DO NOT USE */ setProperty(key: string, value: string): ScriptProperties; | ||
} | ||
@@ -70,10 +71,10 @@ /** | ||
interface UserProperties { | ||
/** @deprecated DO NOT USE */deleteAllProperties(): UserProperties; | ||
/** @deprecated DO NOT USE */deleteProperty(key: string): UserProperties; | ||
/** @deprecated DO NOT USE */getKeys(): string[]; | ||
/** @deprecated DO NOT USE */getProperties(): { [key: string]: string }; | ||
/** @deprecated DO NOT USE */getProperty(key: string): string | null; | ||
/** @deprecated DO NOT USE */setProperties(properties: { [key: string]: string }): UserProperties; | ||
/** @deprecated DO NOT USE */setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): UserProperties; | ||
/** @deprecated DO NOT USE */setProperty(key: string, value: string): UserProperties; | ||
/** @deprecated DO NOT USE */ deleteAllProperties(): UserProperties; | ||
/** @deprecated DO NOT USE */ deleteProperty(key: string): UserProperties; | ||
/** @deprecated DO NOT USE */ getKeys(): string[]; | ||
/** @deprecated DO NOT USE */ getProperties(): { [key: string]: string }; | ||
/** @deprecated DO NOT USE */ getProperty(key: string): string | null; | ||
/** @deprecated DO NOT USE */ setProperties(properties: { [key: string]: string }): UserProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): UserProperties; | ||
/** @deprecated DO NOT USE */ setProperty(key: string, value: string): UserProperties; | ||
} | ||
@@ -80,0 +81,0 @@ } |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -135,4 +136,4 @@ | ||
newTrigger(functionName: string): TriggerBuilder; | ||
/** @deprecated DO NOT USE */getProjectKey(): string; | ||
/** @deprecated DO NOT USE */getScriptTriggers(): Trigger[]; | ||
/** @deprecated DO NOT USE */ getProjectKey(): string; | ||
/** @deprecated DO NOT USE */ getScriptTriggers(): Trigger[]; | ||
} | ||
@@ -145,3 +146,3 @@ /** | ||
isEnabled(): boolean; | ||
/** @deprecated DO NOT USE */disable(): void; | ||
/** @deprecated DO NOT USE */ disable(): void; | ||
} | ||
@@ -148,0 +149,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -103,3 +104,2 @@ | ||
} | ||
interface PageAdvancedParameters { | ||
@@ -174,7 +174,7 @@ /** only get pages of this type */ | ||
setTitle(title: string): Page; | ||
/** @deprecated DO NOT USE */addComment(content: string): Comment; | ||
/** @deprecated DO NOT USE */getComments(): Comment[]; | ||
/** @deprecated DO NOT USE */getComments(optOptions: { start?: Integer; max?: Integer}): Comment[]; | ||
/** @deprecated DO NOT USE */getPageName(): string; | ||
/** @deprecated DO NOT USE */getSelfLink(): string; | ||
/** @deprecated DO NOT USE */ addComment(content: string): Comment; | ||
/** @deprecated DO NOT USE */ getComments(): Comment[]; | ||
/** @deprecated DO NOT USE */ getComments(optOptions: { start?: Integer; max?: Integer}): Comment[]; | ||
/** @deprecated DO NOT USE */ getPageName(): string; | ||
/** @deprecated DO NOT USE */ getSelfLink(): string; | ||
} | ||
@@ -235,23 +235,23 @@ /** | ||
setTitle(title: string): Site; | ||
/** @deprecated DO NOT USE */addCollaborator(email: string): Site; | ||
/** @deprecated DO NOT USE */addCollaborator(user: Base.User): Site; | ||
/** @deprecated DO NOT USE */createAnnouncement(title: string, html: string, parent: Page): Page; | ||
/** @deprecated DO NOT USE */createComment(inReplyTo: string, html: string, parent: Page): Comment; | ||
/** @deprecated DO NOT USE */createListItem(html: string, columnNames: string[], values: string[], parent: Page): ListItem; | ||
/** @deprecated DO NOT USE */createWebAttachment(title: string, url: string, parent: Page): Attachment; | ||
/** @deprecated DO NOT USE */deleteSite(): void; | ||
/** @deprecated DO NOT USE */getAnnouncements(): Page[]; | ||
/** @deprecated DO NOT USE */getAnnouncementsPages(): Page[]; | ||
/** @deprecated DO NOT USE */getAttachments(): Attachment[]; | ||
/** @deprecated DO NOT USE */getCollaborators(): Base.User[]; | ||
/** @deprecated DO NOT USE */getComments(): Comment[]; | ||
/** @deprecated DO NOT USE */getFileCabinetPages(): Page[]; | ||
/** @deprecated DO NOT USE */getListItems(): ListItem[]; | ||
/** @deprecated DO NOT USE */getListPages(): Page[]; | ||
/** @deprecated DO NOT USE */getSelfLink(): string; | ||
/** @deprecated DO NOT USE */getSiteName(): string; | ||
/** @deprecated DO NOT USE */getWebAttachments(): Attachment[]; | ||
/** @deprecated DO NOT USE */getWebPages(): Page[]; | ||
/** @deprecated DO NOT USE */removeCollaborator(email: string): Site; | ||
/** @deprecated DO NOT USE */removeCollaborator(user: Base.User): Site; | ||
/** @deprecated DO NOT USE */ addCollaborator(email: string): Site; | ||
/** @deprecated DO NOT USE */ addCollaborator(user: Base.User): Site; | ||
/** @deprecated DO NOT USE */ createAnnouncement(title: string, html: string, parent: Page): Page; | ||
/** @deprecated DO NOT USE */ createComment(inReplyTo: string, html: string, parent: Page): Comment; | ||
/** @deprecated DO NOT USE */ createListItem(html: string, columnNames: string[], values: string[], parent: Page): ListItem; | ||
/** @deprecated DO NOT USE */ createWebAttachment(title: string, url: string, parent: Page): Attachment; | ||
/** @deprecated DO NOT USE */ deleteSite(): void; | ||
/** @deprecated DO NOT USE */ getAnnouncements(): Page[]; | ||
/** @deprecated DO NOT USE */ getAnnouncementsPages(): Page[]; | ||
/** @deprecated DO NOT USE */ getAttachments(): Attachment[]; | ||
/** @deprecated DO NOT USE */ getCollaborators(): Base.User[]; | ||
/** @deprecated DO NOT USE */ getComments(): Comment[]; | ||
/** @deprecated DO NOT USE */ getFileCabinetPages(): Page[]; | ||
/** @deprecated DO NOT USE */ getListItems(): ListItem[]; | ||
/** @deprecated DO NOT USE */ getListPages(): Page[]; | ||
/** @deprecated DO NOT USE */ getSelfLink(): string; | ||
/** @deprecated DO NOT USE */ getSiteName(): string; | ||
/** @deprecated DO NOT USE */ getWebAttachments(): Attachment[]; | ||
/** @deprecated DO NOT USE */ getWebPages(): Page[]; | ||
/** @deprecated DO NOT USE */ removeCollaborator(email: string): Site; | ||
/** @deprecated DO NOT USE */ removeCollaborator(user: Base.User): Site; | ||
} | ||
@@ -258,0 +258,0 @@ /** |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
// Type definitions for Google Apps Script 2015-11-12 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// takoyaki9n <https://github.com/takoyaki9n> | ||
@@ -28,60 +29,50 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
} | ||
interface URLFetchRequest extends URLFetchRequestOptions { | ||
url: string; | ||
} | ||
interface URLFetchRequestOptions { | ||
/** | ||
* the content type (defaults to 'application/x-www-form-urlencoded'). Another example of content | ||
* type is 'application/xml; charset=utf-8'. | ||
*/ | ||
contentType?: string; | ||
/** | ||
* a JavaScript key/value map of HTTP headers for the request | ||
*/ | ||
headers?: HttpHeaders; | ||
/** | ||
* the HTTP method for the request: get, delete, patch, post, or put. The default is get. | ||
*/ | ||
method?: HttpMethod; | ||
/** | ||
* the payload (e.g. POST body) for the request. Certain HTTP methods (e.g. GET) do not accept a | ||
* payload. It can be a string, a byte array, or a JavaScript object. A JavaScript object will be | ||
* interpretted as a map of form field names to values, where the values can be either strings or blobs. | ||
*/ | ||
payload?: Payload; | ||
/** | ||
* Deprecated. This instructs fetch to resolve the specified URL within the intranet linked to your | ||
* domain through (deprecated) SDC | ||
*/ | ||
useIntranet?: boolean; | ||
/** | ||
* if this is set to false, the fetch will ignore any invalid certificates for HTTPS requests. | ||
* The default is true. | ||
*/ | ||
validateHttpsCertificates?: boolean; | ||
/** | ||
* if this is set to false, the fetch not automatically follow HTTP redirects; it will return | ||
* the original HTTP response. The default is true. | ||
*/ | ||
followRedirects?: boolean; | ||
/** | ||
* if this is set to true, the fetch will not throw an exception if the response code indicates | ||
* failure, and will instead return the HTTPResponse (default: false) | ||
*/ | ||
muteHttpExceptions?: boolean; | ||
/** | ||
* if this is set to false, reserved characters in the URL will not be escaped (default: true) | ||
*/ | ||
escaping?: boolean; | ||
} | ||
url: string; | ||
} | ||
interface URLFetchRequestOptions { | ||
/** | ||
* the content type (defaults to 'application/x-www-form-urlencoded'). Another example of content | ||
* type is 'application/xml; charset=utf-8'. | ||
*/ | ||
contentType?: string; | ||
/** | ||
* a JavaScript key/value map of HTTP headers for the request | ||
*/ | ||
headers?: HttpHeaders; | ||
/** | ||
* the HTTP method for the request: get, delete, patch, post, or put. The default is get. | ||
*/ | ||
method?: HttpMethod; | ||
/** | ||
* the payload (e.g. POST body) for the request. Certain HTTP methods (e.g. GET) do not accept a | ||
* payload. It can be a string, a byte array, or a JavaScript object. A JavaScript object will be | ||
* interpretted as a map of form field names to values, where the values can be either strings or blobs. | ||
*/ | ||
payload?: Payload; | ||
/** | ||
* Deprecated. This instructs fetch to resolve the specified URL within the intranet linked to your | ||
* domain through (deprecated) SDC | ||
*/ | ||
useIntranet?: boolean; | ||
/** | ||
* if this is set to false, the fetch will ignore any invalid certificates for HTTPS requests. | ||
* The default is true. | ||
*/ | ||
validateHttpsCertificates?: boolean; | ||
/** | ||
* if this is set to false, the fetch not automatically follow HTTP redirects; it will return | ||
* the original HTTP response. The default is true. | ||
*/ | ||
followRedirects?: boolean; | ||
/** | ||
* if this is set to true, the fetch will not throw an exception if the response code indicates | ||
* failure, and will instead return the HTTPResponse (default: false) | ||
*/ | ||
muteHttpExceptions?: boolean; | ||
/** | ||
* if this is set to false, reserved characters in the URL will not be escaped (default: true) | ||
*/ | ||
escaping?: boolean; | ||
} | ||
/** | ||
@@ -88,0 +79,0 @@ * Fetch resources and communicate with other hosts over the Internet. |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -79,4 +80,4 @@ | ||
zip(blobs: Base.BlobSource[], name: string): Base.Blob; | ||
/** @deprecated DO NOT USE */jsonParse(jsonString: string): any; | ||
/** @deprecated DO NOT USE */jsonStringify(obj: any): string; | ||
/** @deprecated DO NOT USE */ jsonParse(jsonString: string): any; | ||
/** @deprecated DO NOT USE */ jsonStringify(obj: any): string; | ||
} | ||
@@ -83,0 +84,0 @@ } |
@@ -1,4 +0,5 @@ | ||
// Type definitions for Google Apps Script 2019-11-06 | ||
// Type definitions for Google Apps Script 2020-01-02 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen/> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -5,0 +6,0 @@ |
// Type definitions for google-apps-script 1.0 | ||
// Project: https://developers.google.com/apps-script/ | ||
// Definitions by: motemen <https://github.com/motemen> | ||
// PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// Definitions by: PopGoesTheWza <https://github.com/PopGoesTheWza> | ||
// motemen <https://github.com/motemen/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -6,0 +6,0 @@ // TypeScript Version: 2.2 |
{ | ||
"name": "@types/google-apps-script", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "TypeScript definitions for google-apps-script", | ||
@@ -8,10 +8,9 @@ "license": "MIT", | ||
{ | ||
"name": "motemen", | ||
"url": "https://github.com/motemen", | ||
"githubUsername": "motemen" | ||
}, | ||
{ | ||
"name": "PopGoesTheWza", | ||
"url": "https://github.com/PopGoesTheWza", | ||
"githubUsername": "PopGoesTheWza" | ||
}, | ||
{ | ||
"name": "motemen", | ||
"url": "https://github.com/motemen/" | ||
} | ||
@@ -28,4 +27,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d5cbe2879cb0eef61e8d5209d35a052cb62745f9ee1d7c2ef932a60a14990926", | ||
"typesPublisherContentHash": "d95127298362654b087a61d544c1c742fdbc72a5ca710a6b3d7120a8c6f5e862", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 25 Nov 2019 19:26:56 GMT | ||
* Last updated: Mon, 06 Jan 2020 23:33:22 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: `AdminDirectory`, `AdminGroupsMigration`, `AdminGroupsSettings`, `AdminLicenseManager`, `AdminReports`, `AdminReseller`, `Adsense`, `Analytics`, `Analyticsreporting`, `Appsactivity`, `Bigquery`, `Browser`, `CacheService`, `Calendar`, `CalendarApp`, `CardService`, `Charset`, `Charts`, `Classroom`, `ContactsApp`, `Content`, `ContentService`, `DataStudioApp`, `Date2`, `Dfareporting`, `DigestAlgorithm`, `Docs`, `DocumentApp`, `Drive`, `DriveActivity`, `DriveApp`, `FormApp`, `FusionTables`, `Gmail`, `GmailApp`, `GoogleAppsScript`, `GroupsApp`, `HtmlService`, `Jdbc`, `LanguageApp`, `LinearOptimizationService`, `LockService`, `Logger`, `MacAlgorithm`, `MailApp`, `Maps`, `Mirror`, `People`, `PropertiesService`, `RsaAlgorithm`, `ScriptApp`, `ScriptProperties`, `Session`, `Sheets`, `SitesApp`, `Slides`, `SlidesApp`, `SpreadsheetApp`, `TagManager`, `Tasks`, `UrlFetchApp`, `UrlShortener`, `UserProperties`, `Utilities`, `XmlService`, `YouTube`, `YouTubeAnalytics`, `YoutubePartner`, `console` | ||
# Credits | ||
These definitions were written by motemen (https://github.com/motemen), and PopGoesTheWza (https://github.com/PopGoesTheWza). | ||
These definitions were written by PopGoesTheWza (https://github.com/PopGoesTheWza), and motemen (https://github.com/motemen/). |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1559142
34667