@types/google-apps-script
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-02-27 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -28,2 +28,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| setName(name: string): Blob; | ||
| /** @deprecated DO NOT USE */ | ||
| getAllBlobs(): Blob[]; | ||
@@ -227,3 +228,5 @@ } | ||
| getTemporaryActiveUserKey(): string; | ||
| /** @deprecated DO NOT USE */ | ||
| getTimeZone(): string; | ||
| /** @deprecated DO NOT USE */ | ||
| getUser(): User; | ||
@@ -262,6 +265,7 @@ } | ||
| prompt(title: string, prompt: string, buttons: ButtonSet): PromptResponse; | ||
| showModalDialog(userInterface: object, title: string): void; | ||
| showModelessDialog(userInterface: object, title: string): void; | ||
| showSidebar(userInterface: object): void; | ||
| showDialog(userInterface: object): void; | ||
| showModalDialog(userInterface: HTML.HtmlOutput, title: string): void; | ||
| showModelessDialog(userInterface: HTML.HtmlOutput, title: string): void; | ||
| showSidebar(userInterface: HTML.HtmlOutput): void; | ||
| /** @deprecated DO NOT USE */ | ||
| showDialog(userInterface: HTML.HtmlOutput): void; | ||
| } | ||
@@ -274,2 +278,3 @@ | ||
| getEmail(): string; | ||
| /** @deprecated DO NOT USE */ | ||
| getUserLoginId(): string; | ||
@@ -324,5 +329,5 @@ } | ||
| } | ||
| /** | ||
| /** | ||
| * Apps Script has a non-standard Date Class | ||
| * | ||
| * | ||
| * @see https://github.com/microsoft/TypeScript/blob/master/lib/lib.es5.d.ts | ||
@@ -397,3 +402,2 @@ * Enables basic storage and retrieval of dates and times. | ||
| setUTCMilliseconds(ms: number): number; | ||
| /** | ||
@@ -492,16 +496,16 @@ * Sets the seconds value in the Date object using local time. | ||
| /** | ||
| * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. | ||
| * @param s A date string | ||
| */ | ||
| * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. | ||
| * @param s A date string | ||
| */ | ||
| parse(s: string): number; | ||
| /** | ||
| * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. | ||
| * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. | ||
| * @param month The month as an number between 0 and 11 (January to December). | ||
| * @param date The date as an number between 1 and 31. | ||
| * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. | ||
| * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. | ||
| * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. | ||
| * @param ms An number from 0 to 999 that specifies the milliseconds. | ||
| */ | ||
| * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. | ||
| * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. | ||
| * @param month The month as an number between 0 and 11 (January to December). | ||
| * @param date The date as an number between 1 and 31. | ||
| * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. | ||
| * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. | ||
| * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. | ||
| * @param ms An number from 0 to 999 that specifies the milliseconds. | ||
| */ | ||
| UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; | ||
@@ -508,0 +512,0 @@ now(): number; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-01-23 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -32,7 +32,7 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| get(key: string): string; | ||
| getAll(keys: string[]): any; | ||
| getAll(keys: string[]): { [key: string]: any }; | ||
| put(key: string, value: string): void; | ||
| put(key: string, value: string, expirationInSeconds: Integer): void; | ||
| putAll(values: any): void; | ||
| putAll(values: any, expirationInSeconds: Integer): void; | ||
| putAll(values: { [key: string]: any }): void; | ||
| putAll(values: { [key: string]: any }, expirationInSeconds: Integer): void; | ||
| remove(key: string): void; | ||
@@ -39,0 +39,0 @@ removeAll(keys: string[]): void; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-04-09 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -17,11 +17,11 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| createAllDayEvent(title: string, startDate: Date, endDate: Date): CalendarEvent; | ||
| createAllDayEvent(title: string, startDate: Date, endDate: Date, options: object): CalendarEvent; | ||
| createAllDayEvent(title: string, date: Date, options: object): CalendarEvent; | ||
| createAllDayEvent(title: string, startDate: Date, endDate: Date, options: { [key: string]: any }): CalendarEvent; | ||
| createAllDayEvent(title: string, date: Date, options: { [key: string]: any }): CalendarEvent; | ||
| createAllDayEventSeries(title: string, startDate: Date, recurrence: EventRecurrence): CalendarEventSeries; | ||
| createAllDayEventSeries(title: string, startDate: Date, recurrence: EventRecurrence, options: object): CalendarEventSeries; | ||
| createAllDayEventSeries(title: string, startDate: Date, recurrence: EventRecurrence, options: { [key: string]: any }): CalendarEventSeries; | ||
| createEvent(title: string, startTime: Date, endTime: Date): CalendarEvent; | ||
| createEvent(title: string, startTime: Date, endTime: Date, options: object): CalendarEvent; | ||
| createEvent(title: string, startTime: Date, endTime: Date, options: { [key: string]: any }): CalendarEvent; | ||
| createEventFromDescription(description: string): CalendarEvent; | ||
| createEventSeries(title: string, startTime: Date, endTime: Date, recurrence: EventRecurrence): CalendarEventSeries; | ||
| createEventSeries(title: string, startTime: Date, endTime: Date, recurrence: EventRecurrence, options: object): CalendarEventSeries; | ||
| createEventSeries(title: string, startTime: Date, endTime: Date, recurrence: EventRecurrence, options: { [key: string]: any }): CalendarEventSeries; | ||
| deleteCalendar(): void; | ||
@@ -33,5 +33,5 @@ getColor(): string; | ||
| getEvents(startTime: Date, endTime: Date): CalendarEvent[]; | ||
| getEvents(startTime: Date, endTime: Date, options: object): CalendarEvent[]; | ||
| getEvents(startTime: Date, endTime: Date, options: { [key: string]: any }): CalendarEvent[]; | ||
| getEventsForDay(date: Date): CalendarEvent[]; | ||
| getEventsForDay(date: Date, options: object): CalendarEvent[]; | ||
| getEventsForDay(date: Date, options: { [key: string]: any }): CalendarEvent[]; | ||
| getId(): string; | ||
@@ -67,13 +67,13 @@ getName(): string; | ||
| createAllDayEvent(title: string, startDate: Date, endDate: Date): CalendarEvent; | ||
| createAllDayEvent(title: string, startDate: Date, endDate: Date, options: object): CalendarEvent; | ||
| createAllDayEvent(title: string, date: Date, options: object): CalendarEvent; | ||
| createAllDayEvent(title: string, startDate: Date, endDate: Date, options: { [key: string]: any }): CalendarEvent; | ||
| createAllDayEvent(title: string, date: Date, options: { [key: string]: any }): CalendarEvent; | ||
| createAllDayEventSeries(title: string, startDate: Date, recurrence: EventRecurrence): CalendarEventSeries; | ||
| createAllDayEventSeries(title: string, startDate: Date, recurrence: EventRecurrence, options: object): CalendarEventSeries; | ||
| createAllDayEventSeries(title: string, startDate: Date, recurrence: EventRecurrence, options: { [key: string]: any }): CalendarEventSeries; | ||
| createCalendar(name: string): Calendar; | ||
| createCalendar(name: string, options: object): Calendar; | ||
| createCalendar(name: string, options: { [key: string]: any }): Calendar; | ||
| createEvent(title: string, startTime: Date, endTime: Date): CalendarEvent; | ||
| createEvent(title: string, startTime: Date, endTime: Date, options: object): CalendarEvent; | ||
| createEvent(title: string, startTime: Date, endTime: Date, options: { [key: string]: any }): CalendarEvent; | ||
| createEventFromDescription(description: string): CalendarEvent; | ||
| createEventSeries(title: string, startTime: Date, endTime: Date, recurrence: EventRecurrence): CalendarEventSeries; | ||
| createEventSeries(title: string, startTime: Date, endTime: Date, recurrence: EventRecurrence, options: object): CalendarEventSeries; | ||
| createEventSeries(title: string, startTime: Date, endTime: Date, recurrence: EventRecurrence, options: { [key: string]: any }): CalendarEventSeries; | ||
| getAllCalendars(): Calendar[]; | ||
@@ -89,5 +89,5 @@ getAllOwnedCalendars(): Calendar[]; | ||
| getEvents(startTime: Date, endTime: Date): CalendarEvent[]; | ||
| getEvents(startTime: Date, endTime: Date, options: object): CalendarEvent[]; | ||
| getEvents(startTime: Date, endTime: Date, options: { [key: string]: any }): CalendarEvent[]; | ||
| getEventsForDay(date: Date): CalendarEvent[]; | ||
| getEventsForDay(date: Date, options: object): CalendarEvent[]; | ||
| getEventsForDay(date: Date, options: { [key: string]: any }): CalendarEvent[]; | ||
| getId(): string; | ||
@@ -110,3 +110,3 @@ getName(): string; | ||
| subscribeToCalendar(id: string): Calendar; | ||
| subscribeToCalendar(id: string, options: object): Calendar; | ||
| subscribeToCalendar(id: string, options: { [key: string]: any }): Calendar; | ||
| } | ||
@@ -244,2 +244,3 @@ | ||
| getName(): string; | ||
| /** @deprecated DO NOT USE */ | ||
| getStatus(): string; | ||
@@ -246,0 +247,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-05-20 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -23,3 +23,4 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| setLoadIndicator(loadIndicator: LoadIndicator): Action; | ||
| setParameters(parameters: object): Action; | ||
| setParameters(parameters: { [key: string]: string }): Action; | ||
| /** @deprecated DO NOT USE */ | ||
| setMethodName(functionName: string): Action; | ||
@@ -26,0 +27,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-08-09 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -180,3 +180,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| export interface ChartOptions { | ||
| get(option: string): object; | ||
| get(option: string): any; | ||
| } | ||
@@ -470,3 +470,3 @@ | ||
| build(): DataViewDefinition; | ||
| setColumns(columns: object[]): DataViewDefinitionBuilder; | ||
| setColumns(columns: any[]): DataViewDefinitionBuilder; | ||
| } | ||
@@ -473,0 +473,0 @@ |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-07-11 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -17,3 +17,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| getAddress(): string; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| isPrimary(): boolean; | ||
@@ -43,22 +43,22 @@ setAddress(address: string): AddressField; | ||
| export interface Contact { | ||
| addAddress(label: any, address: string): AddressField; | ||
| addAddress(label: typeof ContactsApp.Field|string, address: string): AddressField; | ||
| addCompany(company: string, title: string): CompanyField; | ||
| addCustomField(label: any, content: any): CustomField; | ||
| addDate(label: any, month: Base.Month, day: Integer, year: Integer): DateField; | ||
| addEmail(label: any, address: string): EmailField; | ||
| addIM(label: any, address: string): IMField; | ||
| addPhone(label: any, number: string): PhoneField; | ||
| addCustomField(label: typeof ContactsApp.ExtendedField|string, content: any): CustomField; | ||
| addDate(label: typeof ContactsApp.Field|string, month: Base.Month, day: Integer, year: Integer): DateField; | ||
| addEmail(label: typeof ContactsApp.Field|string, address: string): EmailField; | ||
| addIM(label: typeof ContactsApp.Field|string, address: string): IMField; | ||
| addPhone(label: typeof ContactsApp.Field|string, number: string): PhoneField; | ||
| addToGroup(group: ContactGroup): Contact; | ||
| addUrl(label: any, url: string): UrlField; | ||
| addUrl(label: typeof ContactsApp.Field|string, url: string): UrlField; | ||
| deleteContact(): void; | ||
| getAddresses(): AddressField[]; | ||
| getAddresses(label: any): AddressField[]; | ||
| getAddresses(label: typeof ContactsApp.Field|string): AddressField[]; | ||
| getCompanies(): CompanyField[]; | ||
| getContactGroups(): ContactGroup[]; | ||
| getCustomFields(): CustomField[]; | ||
| getCustomFields(label: any): CustomField[]; | ||
| getCustomFields(label: typeof ContactsApp.ExtendedField|string): CustomField[]; | ||
| getDates(): DateField[]; | ||
| getDates(label: any): DateField[]; | ||
| getDates(label: typeof ContactsApp.Field|string): DateField[]; | ||
| getEmails(): EmailField[]; | ||
| getEmails(label: any): EmailField[]; | ||
| getEmails(label: typeof ContactsApp.Field|string): EmailField[]; | ||
| getFamilyName(): string; | ||
@@ -68,3 +68,3 @@ getFullName(): string; | ||
| getIMs(): IMField[]; | ||
| getIMs(label: any): IMField[]; | ||
| getIMs(label: typeof ContactsApp.Field|string): IMField[]; | ||
| getId(): string; | ||
@@ -78,3 +78,3 @@ getInitials(): string; | ||
| getPhones(): PhoneField[]; | ||
| getPhones(label: any): PhoneField[]; | ||
| getPhones(label: typeof ContactsApp.Field|string): PhoneField[]; | ||
| getPrefix(): string; | ||
@@ -85,3 +85,3 @@ getPrimaryEmail(): string; | ||
| getUrls(): UrlField[]; | ||
| getUrls(label: any): UrlField[]; | ||
| getUrls(label: typeof ContactsApp.Field|string): UrlField[]; | ||
| removeFromGroup(group: ContactGroup): Contact; | ||
@@ -99,23 +99,45 @@ setFamilyName(familyName: string): Contact; | ||
| 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; | ||
@@ -136,3 +158,5 @@ } | ||
| setName(name: string): ContactGroup; | ||
| /** @deprecated DO NOT USE */ | ||
| getGroupName(): string; | ||
| /** @deprecated DO NOT USE */ | ||
| setGroupName(name: string): void; | ||
@@ -166,3 +190,3 @@ } | ||
| getContactsByCompany(query: string): Contact[]; | ||
| getContactsByCustomField(query: any, label: ExtendedField): Contact[]; | ||
| getContactsByCustomField(query: typeof ContactsApp.ExtendedField|string, label: ExtendedField): Contact[]; | ||
| getContactsByDate(month: Base.Month, day: Integer, label: Field): Contact[]; | ||
@@ -189,4 +213,7 @@ getContactsByDate(month: Base.Month, day: Integer, year: Integer, label: Field): Contact[]; | ||
| 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[]; | ||
@@ -200,3 +227,3 @@ } | ||
| deleteCustomField(): void; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| getValue(): any; | ||
@@ -218,3 +245,3 @@ setLabel(field: ExtendedField): CustomField; | ||
| getDay(): Integer; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| getMonth(): Base.Month; | ||
@@ -235,3 +262,3 @@ getYear(): Integer; | ||
| getDisplayName(): string; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| isPrimary(): boolean; | ||
@@ -266,3 +293,3 @@ setAddress(address: string): EmailField; | ||
| getAddress(): string; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| isPrimary(): boolean; | ||
@@ -280,3 +307,3 @@ setAddress(address: string): IMField; | ||
| deletePhoneField(): void; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| getPhoneNumber(): string; | ||
@@ -306,3 +333,3 @@ isPrimary(): boolean; | ||
| getAddress(): string; | ||
| getLabel(): any; | ||
| getLabel(): Field|ExtendedField|string; | ||
| isPrimary(): boolean; | ||
@@ -309,0 +336,0 @@ setAddress(address: string): UrlField; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-07-30 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -37,3 +37,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| addQueryParameter(name: string, type: BigQueryParameterType, value: string): BigQueryConfig; | ||
| build(): object; | ||
| build(): Config; | ||
| printJson(): string; | ||
@@ -109,3 +109,3 @@ setAccessToken(accessToken: string): BigQueryConfig; | ||
| export interface Config { | ||
| build(): any; | ||
| build(): Config; | ||
| newCheckbox(): Checkbox; | ||
@@ -226,3 +226,3 @@ newInfo(): Info; | ||
| export interface GetAuthTypeResponse { | ||
| build(): any; | ||
| build(): GetAuthTypeResponse; | ||
| printJson(): string; | ||
@@ -229,0 +229,0 @@ setAuthType(authType: AuthType): GetAuthTypeResponse; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-12-26 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -653,6 +653,6 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| export interface ItemResponse { | ||
| getFeedback(): any; | ||
| getFeedback(): QuizFeedback; | ||
| getItem(): Item; | ||
| getResponse(): any; | ||
| getScore(): any; | ||
| getResponse(): string[][]|string[]|string; | ||
| getScore(): number; | ||
| setFeedback(feedback: any): ItemResponse; | ||
@@ -659,0 +659,0 @@ setScore(score: any): ItemResponse; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-05-20 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -16,3 +16,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| createDraft(recipient: string, subject: string, body: string): GmailDraft; | ||
| createDraft(recipient: string, subject: string, body: string, options: any): GmailDraft; | ||
| createDraft(recipient: string, subject: string, body: string, options: GmailAdvancedOptions): GmailDraft; | ||
| createLabel(name: string): GmailLabel; | ||
@@ -75,3 +75,3 @@ deleteLabel(label: GmailLabel): GmailApp; | ||
| sendEmail(recipient: string, subject: string, body: string): GmailApp; | ||
| sendEmail(recipient: string, subject: string, body: string, options: any): GmailApp; | ||
| sendEmail(recipient: string, subject: string, body: string, options: GmailAdvancedOptions): GmailApp; | ||
| setCurrentMessageAccessToken(accessToken: string): void; | ||
@@ -118,2 +118,3 @@ starMessage(message: GmailMessage): GmailApp; | ||
| setName(name: string): Base.Blob; | ||
| /** @deprecated DO NOT USE */ | ||
| getAllBlobs(): Base.Blob[]; | ||
@@ -153,3 +154,3 @@ } | ||
| */ | ||
| update(recipient: string, subject: string, body: string, options: GmailDraftOptions): GmailDraft; | ||
| update(recipient: string, subject: string, body: string, options: GmailAdvancedOptions): GmailDraft; | ||
| } | ||
@@ -160,3 +161,3 @@ | ||
| */ | ||
| export type GmailDraftOptions = { | ||
| export type GmailAdvancedOptions = { | ||
| /** | ||
@@ -195,2 +196,4 @@ * An array of files to send with the email. | ||
| } | ||
| /** alias to GmailAdvancedOptions */ | ||
| export type GmailDraftOptions = GmailAdvancedOptions; | ||
@@ -234,7 +237,7 @@ /** | ||
| createDraftReply(body: string): GmailDraft; | ||
| createDraftReply(body: string, options: GmailDraftOptions): GmailDraft; | ||
| createDraftReply(body: string, options: GmailAdvancedOptions): GmailDraft; | ||
| createDraftReplyAll(body: string): GmailDraft; | ||
| createDraftReplyAll(body: string, options: GmailDraftOptions): GmailDraft; | ||
| createDraftReplyAll(body: string, options: GmailAdvancedOptions): GmailDraft; | ||
| forward(recipient: string): GmailMessage; | ||
| forward(recipient: string, options: GmailDraftOptions): GmailMessage; | ||
| forward(recipient: string, options: GmailAdvancedOptions): GmailMessage; | ||
| getAttachments(): GmailAttachment[]; | ||
@@ -267,5 +270,5 @@ getAttachments(options: GmailAttachmentOptions): GmailAttachment[]; | ||
| reply(body: string): GmailMessage; | ||
| reply(body: string, options: GmailDraftOptions): GmailMessage; | ||
| reply(body: string, options: GmailAdvancedOptions): GmailMessage; | ||
| replyAll(body: string): GmailMessage; | ||
| replyAll(body: string, options: GmailDraftOptions): GmailMessage; | ||
| replyAll(body: string, options: GmailAdvancedOptions): GmailMessage; | ||
| star(): GmailMessage; | ||
@@ -281,5 +284,5 @@ unstar(): GmailMessage; | ||
| createDraftReply(body: string): GmailDraft; | ||
| createDraftReply(body: string, options: GmailDraftOptions): GmailDraft; | ||
| createDraftReply(body: string, options: GmailAdvancedOptions): GmailDraft; | ||
| createDraftReplyAll(body: string): GmailDraft; | ||
| createDraftReplyAll(body: string, options: GmailDraftOptions): GmailDraft; | ||
| createDraftReplyAll(body: string, options: GmailAdvancedOptions): GmailDraft; | ||
| getFirstMessageSubject(): string; | ||
@@ -311,5 +314,5 @@ getId(): string; | ||
| reply(body: string): GmailThread; | ||
| reply(body: string, options: GmailDraftOptions): GmailThread; | ||
| reply(body: string, options: GmailAdvancedOptions): GmailThread; | ||
| replyAll(body: string): GmailThread; | ||
| replyAll(body: string, options: GmailDraftOptions): GmailThread; | ||
| replyAll(body: string, options: GmailAdvancedOptions): GmailThread; | ||
| } | ||
@@ -316,0 +319,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-04-26 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -11,2 +11,34 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| export module JDBC { | ||
| /** JdbcAdvancedParameters */ | ||
| export type CloudSqlAdvancedParameters = { | ||
| /** connection timeout in seconds */ | ||
| connectTimeoutSeconds?: Integer; | ||
| /** the database to connect to */ | ||
| database?: string; | ||
| /** the name of a Google SQL Service instance */ | ||
| instance?: string; | ||
| /** the user's password */ | ||
| password?: string; | ||
| /** query timeout in seconds */ | ||
| queryTimeoutSeconds?: Integer; | ||
| /** the username to pass to the database */ | ||
| user?: string; | ||
| } | ||
| /** JdbcAdvancedParameters */ | ||
| export type ConnectionAdvancedParameters = { | ||
| /** the database to connect to */ | ||
| databaseName?: string; | ||
| /** the user's password */ | ||
| password?: string; | ||
| /** whether or not the connection should comply with JDBC rules when converting time zones. The default is false. */ | ||
| useJDBCCompliantTimeZoneShift?: boolean; | ||
| /** the username to pass to the database */ | ||
| user?: string; | ||
| /** the server's SSL certificate */ | ||
| _serverSslCertificate?: string; | ||
| /** the client's SSL certificate */ | ||
| _clientSslCertificate?: string; | ||
| /** the client's SSL key */ | ||
| _clientSslKey?: string; | ||
| } | ||
| /** | ||
@@ -18,6 +50,6 @@ * The JDBC service allows scripts to connect to Google Cloud SQL, MySQL, | ||
| getCloudSqlConnection(url: string): JdbcConnection; | ||
| getCloudSqlConnection(url: string, info: any): JdbcConnection; | ||
| getCloudSqlConnection(url: string, info: CloudSqlAdvancedParameters): JdbcConnection; | ||
| getCloudSqlConnection(url: string, userName: string, password: string): JdbcConnection; | ||
| getConnection(url: string): JdbcConnection; | ||
| getConnection(url: string, info: any): JdbcConnection; | ||
| getConnection(url: string, info: ConnectionAdvancedParameters): JdbcConnection; | ||
| getConnection(url: string, userName: string, password: string): JdbcConnection; | ||
@@ -24,0 +56,0 @@ newDate(milliseconds: Integer): JdbcDate; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-07-11 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -10,2 +10,6 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| export module Language { | ||
| export type LanguageAdvancedParameters = { | ||
| /** the content type of the text; supported values are 'text' (default) and 'html' */ | ||
| contentType?: 'html'|'text' | ||
| } | ||
| /** | ||
@@ -20,3 +24,3 @@ * The Language service provides scripts a way to compute automatic translations of text. | ||
| translate(text: string, sourceLanguage: string, targetLanguage: string): string; | ||
| translate(text: string, sourceLanguage: string, targetLanguage: string, advancedArgs: any): string; | ||
| translate(text: string, sourceLanguage: string, targetLanguage: string, advancedArgs: LanguageAdvancedParameters): string; | ||
| } | ||
@@ -23,0 +27,0 @@ |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-07-11 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -10,2 +10,26 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| export module Mail { | ||
| export type MailAdvancedParameters = { | ||
| /** an array of files to send with the email */ | ||
| attachments?: Base.BlobSource[] | ||
| /** a comma-separated list of email addresses to BCC */ | ||
| bcc?: string | ||
| /** the body of the email */ | ||
| body?: string | ||
| /** a comma-separated list of email addresses to CC */ | ||
| cc?: string | ||
| /** if set, devices capable of rendering HTML will use it instead of the required body argument; you can add an optional inlineImages field in HTML body if you have inlined images for your email */ | ||
| htmlBody?: string | ||
| /** a JavaScript object containing a mapping from image key (String) to image data (BlobSource); this assumes that the htmlBody parameter is used and contains references to these images in the format <img src="cid:imageKey" /> */ | ||
| inlineImages?: { [imageKey: string]: Base.BlobSource } | ||
| /** the name of the sender of the email (default: the user's name) */ | ||
| name?: string | ||
| /** true if the email should be sent from a generic no-reply email address to discourage recipients from responding to emails; this option is only possible for G Suite accounts, not Gmail users */ | ||
| noReply?: boolean | ||
| /** an email address to use as the default reply-to address (default: the user's email address) */ | ||
| replyTo?: string | ||
| /** the subject of the email */ | ||
| subject?: string | ||
| /** the address of the recipient */ | ||
| to?: string | ||
| } | ||
| /** | ||
@@ -23,5 +47,5 @@ * Sends email. | ||
| getRemainingDailyQuota(): Integer; | ||
| sendEmail(message: any): void; | ||
| sendEmail(message: MailAdvancedParameters): void; | ||
| sendEmail(recipient: string, subject: string, body: string): void; | ||
| sendEmail(recipient: string, subject: string, body: string, options: any): void; | ||
| sendEmail(recipient: string, subject: string, body: string, options: MailAdvancedParameters): void; | ||
| sendEmail(to: string, replyTo: string, subject: string, body: string): void; | ||
@@ -28,0 +52,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-07-11 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -21,6 +21,6 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| getKeys(): string[]; | ||
| getProperties(): any; | ||
| getProperties(): { [key: string]: string }; | ||
| getProperty(key: string): string | null; | ||
| setProperties(properties: any): Properties; | ||
| setProperties(properties: any, deleteAllOthers: boolean): Properties; | ||
| setProperties(properties: { [key: string]: string }): Properties; | ||
| setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): Properties; | ||
| setProperty(key: string, value: string): Properties; | ||
@@ -59,6 +59,6 @@ } | ||
| getKeys(): string[]; | ||
| getProperties(): any; | ||
| getProperties(): { [key: string]: string }; | ||
| getProperty(key: string): string | null; | ||
| setProperties(properties: any): ScriptProperties; | ||
| setProperties(properties: any, deleteAllOthers: boolean): ScriptProperties; | ||
| setProperties(properties: { [key: string]: string }): ScriptProperties; | ||
| setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): ScriptProperties; | ||
| setProperty(key: string, value: string): ScriptProperties; | ||
@@ -77,6 +77,6 @@ } | ||
| getKeys(): string[]; | ||
| getProperties(): any; | ||
| getProperties(): { [key: string]: string }; | ||
| getProperty(key: string): string | null; | ||
| setProperties(properties: any): UserProperties; | ||
| setProperties(properties: any, deleteAllOthers: boolean): UserProperties; | ||
| setProperties(properties: { [key: string]: string }): UserProperties; | ||
| setProperties(properties: { [key: string]: string }, deleteAllOthers: boolean): UserProperties; | ||
| setProperty(key: string, value: string): UserProperties; | ||
@@ -83,0 +83,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-12-26 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -143,4 +143,6 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| newTrigger(functionName: string): TriggerBuilder; | ||
| /** @deprecated DO NOT USE */ | ||
| getProjectKey(): string; | ||
| getScriptTriggers(): Trigger[]; | ||
| /** @deprecated DO NOT USE */ | ||
| getScriptTriggers(): Trigger[]; | ||
| } | ||
@@ -147,0 +149,0 @@ |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-01-23 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -108,2 +108,16 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| export type PageAdvancedParameters = { | ||
| /** only get pages of this type */ | ||
| type?: PageType[] | ||
| /** start the results here */ | ||
| start?: Integer | ||
| /** the max number of results (default 200) */ | ||
| max?: Integer | ||
| /** whether to include draft pages (default false) */ | ||
| includeDrafts?: boolean | ||
| /** whether to include deleted pages (default false) */ | ||
| includeDeleted?: boolean | ||
| /** only return pages matching this query */ | ||
| search?: string | ||
| } | ||
| /** | ||
@@ -131,11 +145,11 @@ * A Page on a Google Site. | ||
| getAllDescendants(): Page[]; | ||
| getAllDescendants(options: any): Page[]; | ||
| getAllDescendants(options: PageAdvancedParameters): Page[]; | ||
| getAnnouncements(): Page[]; | ||
| getAnnouncements(optOptions: any): Page[]; | ||
| getAnnouncements(optOptions: PageAdvancedParameters): Page[]; | ||
| getAttachments(): Attachment[]; | ||
| getAttachments(optOptions: any): Attachment[]; | ||
| getAttachments(optOptions: { start?: Integer; max?: Integer}): Attachment[]; | ||
| getAuthors(): string[]; | ||
| getChildByName(name: string): Page; | ||
| getChildren(): Page[]; | ||
| getChildren(options: any): Page[]; | ||
| getChildren(options: PageAdvancedParameters): Page[]; | ||
| getColumns(): Column[]; | ||
@@ -148,3 +162,3 @@ getDatePublished(): Date; | ||
| getListItems(): ListItem[]; | ||
| getListItems(optOptions: any): ListItem[]; | ||
| getListItems(optOptions: { start?: Integer; max?: Integer}): ListItem[]; | ||
| getName(): string; | ||
@@ -160,3 +174,3 @@ getPageType(): PageType; | ||
| search(query: string): Page[]; | ||
| search(query: string, options: any): Page[]; | ||
| search(query: string, options: PageAdvancedParameters): Page[]; | ||
| setHtmlContent(html: string): Page; | ||
@@ -167,6 +181,11 @@ setIsDraft(draft: boolean): Page; | ||
| setTitle(title: string): Page; | ||
| /** @deprecated DO NOT USE */ | ||
| addComment(content: string): Comment; | ||
| /** @deprecated DO NOT USE */ | ||
| getComments(): Comment[]; | ||
| getComments(optOptions: any): Comment[]; | ||
| /** @deprecated DO NOT USE */ | ||
| getComments(optOptions: { start?: Integer; max?: Integer}): Comment[]; | ||
| /** @deprecated DO NOT USE */ | ||
| getPageName(): string; | ||
| /** @deprecated DO NOT USE */ | ||
| getSelfLink(): string; | ||
@@ -206,6 +225,6 @@ } | ||
| getAllDescendants(): Page[]; | ||
| getAllDescendants(options: any): Page[]; | ||
| getAllDescendants(options: PageAdvancedParameters): Page[]; | ||
| getChildByName(name: string): Page; | ||
| getChildren(): Page[]; | ||
| getChildren(options: any): Page[]; | ||
| getChildren(options: PageAdvancedParameters): Page[]; | ||
| getEditors(): Base.User[]; | ||
@@ -227,26 +246,47 @@ getName(): string; | ||
| search(query: string): Page[]; | ||
| search(query: string, options: any): Page[]; | ||
| search(query: string, options: PageAdvancedParameters): Page[]; | ||
| setSummary(summary: string): Site; | ||
| setTheme(theme: string): Site; | ||
| 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; | ||
@@ -253,0 +293,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2019-07-30 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -11,107 +11,112 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| declare namespace GoogleAppsScript { | ||
| export module URL_Fetch { | ||
| /** | ||
| * This class allows users to access specific information on HTTP responses. | ||
| * See also | ||
| * | ||
| * UrlFetchApp | ||
| */ | ||
| export interface HTTPResponse { | ||
| getAllHeaders(): object; | ||
| getAs(contentType: string): Base.Blob; | ||
| getBlob(): Base.Blob; | ||
| getContent(): Byte[]; | ||
| getContentText(): string; | ||
| getContentText(charset: string): string; | ||
| getHeaders(): object; | ||
| getResponseCode(): Integer; | ||
| } | ||
| export module URL_Fetch { | ||
| /** | ||
| * This class allows users to access specific information on HTTP responses. | ||
| * See also | ||
| * | ||
| * UrlFetchApp | ||
| */ | ||
| export interface HTTPResponse { | ||
| getAllHeaders(): object; | ||
| getAs(contentType: string): Base.Blob; | ||
| getBlob(): Base.Blob; | ||
| getContent(): Byte[]; | ||
| getContentText(): string; | ||
| getContentText(charset: string): string; | ||
| getHeaders(): object; | ||
| getResponseCode(): Integer; | ||
| } | ||
| export 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; | ||
| export interface URLFetchRequest extends URLFetchRequestOptions { | ||
| url: string; | ||
| } | ||
| export 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?: object; | ||
| /** | ||
| * 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?: 'get' | 'delete' | 'patch' | 'post' | 'put'; | ||
| /** | ||
| * 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?: string | object | Base.Blob; | ||
| /** | ||
| * 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; | ||
| /** | ||
| * 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 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 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 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; | ||
| } | ||
| /** | ||
| * Fetch resources and communicate with other hosts over the Internet. | ||
| * | ||
| * This service allows scripts to communicate with other applications or access other resources | ||
| * on the web by fetching URLs. A script can use the URL Fetch service to issue HTTP and HTTPS | ||
| * requests and receive responses. The URL Fetch service uses Google's network infrastructure for | ||
| * efficiency and scaling purposes. | ||
| * | ||
| * Requests made using this service originate from a set pool of IP ranges. You can look up the full list of IP addresses | ||
| * if you need to whitelist or approve these requests. | ||
| * | ||
| * This service requires the https://www.googleapis.com/auth/script.external_request | ||
| * scope. In most cases Apps Script automatically detects and includes the scopes a script needs, | ||
| * but if you are setting your scopes | ||
| * explicitly you must manually add this scope to use UrlFetchApp. | ||
| * See also | ||
| * | ||
| * HTTPResponse | ||
| * | ||
| * Setting explicit scopes | ||
| */ | ||
| export interface UrlFetchApp { | ||
| fetch(url: string): HTTPResponse; | ||
| fetch(url: string, params: URLFetchRequestOptions): HTTPResponse; | ||
| fetchAll(requests: any[]): HTTPResponse[]; | ||
| getRequest(url: string): object; | ||
| getRequest(url: string, params: URLFetchRequestOptions): object; | ||
| * if this is set to false, reserved characters in the URL will not be escaped (default: true) | ||
| */ | ||
| escaping?: boolean; | ||
| } | ||
| /** | ||
| * Fetch resources and communicate with other hosts over the Internet. | ||
| * | ||
| * This service allows scripts to communicate with other applications or access other resources | ||
| * on the web by fetching URLs. A script can use the URL Fetch service to issue HTTP and HTTPS | ||
| * requests and receive responses. The URL Fetch service uses Google's network infrastructure for | ||
| * efficiency and scaling purposes. | ||
| * | ||
| * Requests made using this service originate from a set pool of IP ranges. You can look up the full list of IP addresses | ||
| * if you need to whitelist or approve these requests. | ||
| * | ||
| * This service requires the https://www.googleapis.com/auth/script.external_request | ||
| * scope. In most cases Apps Script automatically detects and includes the scopes a script needs, | ||
| * but if you are setting your scopes | ||
| * explicitly you must manually add this scope to use UrlFetchApp. | ||
| * See also | ||
| * | ||
| * HTTPResponse | ||
| * | ||
| * Setting explicit scopes | ||
| */ | ||
| export interface UrlFetchApp { | ||
| fetch(url: string): HTTPResponse; | ||
| fetch(url: string, params: URLFetchRequestOptions): HTTPResponse; | ||
| fetchAll(requests: (URLFetchRequest | string)[]): HTTPResponse[]; | ||
| getRequest(url: string): URLFetchRequest; | ||
| getRequest(url: string, params: URLFetchRequestOptions): URLFetchRequest; | ||
| } | ||
| type HttpHeaders = {[key: string]: string}; | ||
| type HttpMethod = 'get' | 'delete' | 'patch' | 'post' | 'put'; | ||
| type Payload = string | { [key: string]: any } | Base.Blob; | ||
| } | ||
| } | ||
| declare var UrlFetchApp: GoogleAppsScript.URL_Fetch.UrlFetchApp; | ||
| declare var UrlFetchApp: GoogleAppsScript.URL_Fetch.UrlFetchApp; |
@@ -1,2 +0,2 @@ | ||
| // Type definitions for Google Apps Script 2018-12-26 | ||
| // Type definitions for Google Apps Script 2019-09-11 | ||
| // Project: https://developers.google.com/apps-script/ | ||
@@ -83,4 +83,6 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
| zip(blobs: Base.BlobSource[], name: string): Base.Blob; | ||
| jsonParse(jsonString: string): object; | ||
| jsonStringify(obj: object): string; | ||
| /** @deprecated DO NOT USE */ | ||
| jsonParse(jsonString: string): any; | ||
| /** @deprecated DO NOT USE */ | ||
| jsonStringify(obj: any): string; | ||
| } | ||
@@ -87,0 +89,0 @@ |
| { | ||
| "name": "@types/google-apps-script", | ||
| "version": "0.0.59", | ||
| "version": "0.0.60", | ||
| "description": "TypeScript definitions for google-apps-script", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "6c0375ef040b94438cb63ffdf1d665cc149db7780c276eb178184f696876885f", | ||
| "typesPublisherContentHash": "c3384bd7c54aaa97a7564d2c8d698248f5966b982cf21afa5c0249849a74f2c4", | ||
| "typeScriptVersion": "2.2" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| Additional Details | ||
| * Last updated: Sat, 07 Sep 2019 00:52:30 GMT | ||
| * Last updated: Wed, 18 Sep 2019 17:24:48 GMT | ||
| * Dependencies: none | ||
@@ -14,0 +14,0 @@ * 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 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1574643
0.57%34651
0.52%