gas-types-detailed
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -13,3 +13,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
interface Blob { | ||
interface Blob extends BlobSource { | ||
@@ -28,2 +28,7 @@ /** | ||
* "ShoppingList.12.25.pdf". | ||
* | ||
* | ||
* To view the daily quotas for conversions, see Quotas for Google | ||
* Services. Newly created Google Workspace domains might be temporarily subject to stricter | ||
* quotas. | ||
* https://developers.google.com/apps-script/reference/base/blob#getAs(String) | ||
@@ -66,3 +71,3 @@ * @param contentType The MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid. | ||
/** | ||
* Returns whether this blob is a G Suite file (Sheets, Docs, etc.). | ||
* Returns whether this blob is a Google Workspace file (Sheets, Docs, etc.). | ||
* https://developers.google.com/apps-script/reference/base/blob#isGoogleType() | ||
@@ -164,2 +169,7 @@ */ | ||
* "ShoppingList.12.25.pdf". | ||
* | ||
* | ||
* To view the daily quotas for conversions, see Quotas for Google | ||
* Services. Newly created Google Workspace domains might be temporarily subject to stricter | ||
* quotas. | ||
* https://developers.google.com/apps-script/reference/base/blob-source#getAs(String) | ||
@@ -180,3 +190,3 @@ * @param contentType The MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid. | ||
* The methods in this class are only available for use in the context of a Google Spreadsheet. | ||
* Please use G Suite dialogs instead. | ||
* Please use Google Workspace dialogs instead. | ||
* See also | ||
@@ -371,3 +381,3 @@ * | ||
*/ | ||
log(data: object): Logger; | ||
log(data: any): Logger; | ||
@@ -387,3 +397,3 @@ /** | ||
*/ | ||
log(format: string, ...values: object[]): Logger; | ||
log(format: string, ...values: any[]): Logger; | ||
} | ||
@@ -457,3 +467,3 @@ /** | ||
*/ | ||
enum MimeType { GOOGLE_APPS_SCRIPT, GOOGLE_DRAWINGS, GOOGLE_DOCS, GOOGLE_FORMS, GOOGLE_SHEETS, GOOGLE_SITES, GOOGLE_SLIDES, FOLDER, BMP, GIF, JPEG, PNG, SVG, PDF, CSS, CSV, HTML, JAVASCRIPT, PLAIN_TEXT, RTF, OPENDOCUMENT_GRAPHICS, OPENDOCUMENT_PRESENTATION, OPENDOCUMENT_SPREADSHEET, OPENDOCUMENT_TEXT, MICROSOFT_EXCEL, MICROSOFT_EXCEL_LEGACY, MICROSOFT_POWERPOINT, MICROSOFT_POWERPOINT_LEGACY, MICROSOFT_WORD, MICROSOFT_WORD_LEGACY, ZIP } | ||
enum MimeType { GOOGLE_APPS_SCRIPT, GOOGLE_DRAWINGS, GOOGLE_DOCS, GOOGLE_FORMS, GOOGLE_SHEETS, GOOGLE_SITES, GOOGLE_SLIDES, FOLDER, SHORTCUT, BMP, GIF, JPEG, PNG, SVG, PDF, CSS, CSV, HTML, JAVASCRIPT, PLAIN_TEXT, RTF, OPENDOCUMENT_GRAPHICS, OPENDOCUMENT_PRESENTATION, OPENDOCUMENT_SPREADSHEET, OPENDOCUMENT_TEXT, MICROSOFT_EXCEL, MICROSOFT_EXCEL_LEGACY, MICROSOFT_POWERPOINT, MICROSOFT_POWERPOINT_LEGACY, MICROSOFT_WORD, MICROSOFT_WORD_LEGACY, ZIP } | ||
/** | ||
@@ -548,3 +558,3 @@ * An enum representing the months of the year. | ||
* However, these restrictions generally do not apply if the developer runs the script themselves | ||
* or belongs to the same G Suite domain as the user. | ||
* or belongs to the same Google Workspace domain as the user. | ||
* | ||
@@ -848,3 +858,3 @@ * | ||
*/ | ||
showModalDialog(userInterface: object, title: string): void; | ||
showModalDialog(userInterface: any, title: string): void; | ||
@@ -876,3 +886,3 @@ /** | ||
*/ | ||
showModelessDialog(userInterface: object, title: string): void; | ||
showModelessDialog(userInterface: any, title: string): void; | ||
@@ -902,4 +912,4 @@ /** | ||
*/ | ||
showSidebar(userInterface: object): void; | ||
/** @deprecated DO NOT USE */ showDialog(userInterface: object): void; | ||
showSidebar(userInterface: any): void; | ||
/** @deprecated DO NOT USE */ showDialog(userInterface: any): void; | ||
} | ||
@@ -918,3 +928,3 @@ /** | ||
* However, these restrictions generally do not apply if the developer runs the script themselves | ||
* or belongs to the same G Suite domain as the user. | ||
* or belongs to the same Google Workspace domain as the user. | ||
* | ||
@@ -976,3 +986,3 @@ * | ||
*/ | ||
error(formatOrObject: object, ...values: object[]): void; | ||
error(formatOrObject: any, ...values: any[]): void; | ||
@@ -991,3 +1001,3 @@ /** | ||
*/ | ||
info(formatOrObject: object, ...values: object[]): void; | ||
info(formatOrObject: any, ...values: any[]): void; | ||
@@ -1006,3 +1016,3 @@ /** | ||
*/ | ||
log(formatOrObject: object, ...values: object[]): void; | ||
log(formatOrObject: any, ...values: any[]): void; | ||
@@ -1036,3 +1046,3 @@ /** | ||
*/ | ||
warn(formatOrObject: object, ...values: object[]): void; | ||
warn(formatOrObject: any, ...values: any[]): void; | ||
} | ||
@@ -1039,0 +1049,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -55,3 +55,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
getAll(keys: string[]): object; | ||
getAll(keys: string[]): any; | ||
@@ -66,2 +66,6 @@ /** | ||
* | ||
* The cap for cached items is 1,000. If more than 1,000 items are written, the cache stores | ||
* the 900 items farthest from expiration. This limit might change. | ||
* | ||
* | ||
* // Puts the value 'bar' into the cache using the key 'foo' | ||
@@ -84,2 +88,6 @@ * cache.put('foo', 'bar'); | ||
* | ||
* The cap for cached items is 1,000. If more than 1,000 items are written, the cache stores | ||
* the 900 items farthest from expiration. This limit might change. | ||
* | ||
* | ||
* // Puts the value 'bar' into the cache using the key 'foo', but only for the next 20 seconds. | ||
@@ -104,2 +112,6 @@ * cache.put('foo', 'bar', 20); | ||
* | ||
* The cap for cached items is 1,000. If more than 1,000 items are written, the cache stores | ||
* the 900 items farthest from expiration. This limit might change. | ||
* | ||
* | ||
* // Puts a set of values into the cache with the keys 'foo', 'x', and 'key'. | ||
@@ -115,3 +127,3 @@ * var values = { | ||
*/ | ||
putAll(values: object): void; | ||
putAll(values: any): void; | ||
@@ -128,2 +140,6 @@ /** | ||
* | ||
* The cap for cached items is 1,000. If more than 1,000 items are written, the cache stores | ||
* the 900 items farthest from expiration. This limit might change. | ||
* | ||
* | ||
* // Puts a set of values into the cache with the keys 'foo', 'x', and 'key'. | ||
@@ -140,3 +156,3 @@ * var values = { | ||
*/ | ||
putAll(values: object, expirationInSeconds: Integer): void; | ||
putAll(values: any, expirationInSeconds: Integer): void; | ||
@@ -143,0 +159,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -51,3 +51,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
enum MimeType { ATOM, CSV, ICAL, JAVASCRIPT, JSON, RSS, TEXT, VCARD, XML } | ||
enum MimeType { CSV, ICAL, JAVASCRIPT, JSON, TEXT, VCARD } | ||
/** | ||
@@ -54,0 +54,0 @@ * A TextOutput object that can be served from a script. |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -17,3 +17,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
enum AuthType { NONE, OAUTH2, USER_PASS, KEY, USER_TOKEN } | ||
enum AuthType { NONE, OAUTH2, USER_PASS, PATH_USER_PASS, PATH_KEY, KEY, USER_TOKEN } | ||
/** | ||
@@ -49,3 +49,3 @@ * A configuration object for a native BigQuery connector. Return this object from getData() | ||
*/ | ||
build(): object; | ||
build(): any; | ||
@@ -239,3 +239,3 @@ /** | ||
*/ | ||
build(): object; | ||
build(): any; | ||
@@ -512,3 +512,3 @@ /** | ||
*/ | ||
enum FieldType { YEAR, YEAR_QUARTER, YEAR_MONTH, YEAR_WEEK, YEAR_MONTH_DAY, YEAR_MONTH_DAY_HOUR, YEAR_MONTH_DAY_SECOND, QUARTER, MONTH, WEEK, MONTH_DAY, DAY_OF_WEEK, DAY, HOUR, MINUTE, DURATION, COUNTRY, COUNTRY_CODE, CONTINENT, CONTINENT_CODE, SUB_CONTINENT, SUB_CONTINENT_CODE, REGION, REGION_CODE, CITY, CITY_CODE, METRO, METRO_CODE, LATITUDE_LONGITUDE, NUMBER, PERCENT, TEXT, BOOLEAN, URL, HYPERLINK, IMAGE, IMAGE_LINK, CURRENCY_AED, CURRENCY_ALL, CURRENCY_ARS, CURRENCY_AUD, CURRENCY_BDT, CURRENCY_BGN, CURRENCY_BOB, CURRENCY_BRL, CURRENCY_CAD, CURRENCY_CDF, CURRENCY_CHF, CURRENCY_CLP, CURRENCY_CNY, CURRENCY_COP, CURRENCY_CRC, CURRENCY_CZK, CURRENCY_DKK, CURRENCY_DOP, CURRENCY_EGP, CURRENCY_ETB, CURRENCY_EUR, CURRENCY_GBP, CURRENCY_HKD, CURRENCY_HRK, CURRENCY_HUF, CURRENCY_IDR, CURRENCY_ILS, CURRENCY_INR, CURRENCY_IRR, CURRENCY_ISK, CURRENCY_JMD, CURRENCY_JPY, CURRENCY_KRW, CURRENCY_LKR, CURRENCY_LTL, CURRENCY_MNT, CURRENCY_MVR, CURRENCY_MXN, CURRENCY_MYR, CURRENCY_NOK, CURRENCY_NZD, CURRENCY_PAB, CURRENCY_PEN, CURRENCY_PHP, CURRENCY_PKR, CURRENCY_PLN, CURRENCY_RON, CURRENCY_RSD, CURRENCY_RUB, CURRENCY_SAR, CURRENCY_SEK, CURRENCY_SGD, CURRENCY_THB, CURRENCY_TRY, CURRENCY_TWD, CURRENCY_TZS, CURRENCY_UAH, CURRENCY_USD, CURRENCY_UYU, CURRENCY_VEF, CURRENCY_VND, CURRENCY_YER, CURRENCY_ZAR } | ||
enum FieldType { YEAR, YEAR_QUARTER, YEAR_MONTH, YEAR_WEEK, YEAR_MONTH_DAY, YEAR_MONTH_DAY_HOUR, YEAR_MONTH_DAY_MINUTE, YEAR_MONTH_DAY_SECOND, QUARTER, MONTH, WEEK, MONTH_DAY, DAY_OF_WEEK, DAY, HOUR, MINUTE, DURATION, COUNTRY, COUNTRY_CODE, CONTINENT, CONTINENT_CODE, SUB_CONTINENT, SUB_CONTINENT_CODE, REGION, REGION_CODE, CITY, CITY_CODE, METRO, METRO_CODE, LATITUDE_LONGITUDE, NUMBER, PERCENT, TEXT, BOOLEAN, URL, HYPERLINK, IMAGE, IMAGE_LINK, CURRENCY_AED, CURRENCY_ALL, CURRENCY_ARS, CURRENCY_AUD, CURRENCY_BDT, CURRENCY_BGN, CURRENCY_BOB, CURRENCY_BRL, CURRENCY_CAD, CURRENCY_CDF, CURRENCY_CHF, CURRENCY_CLP, CURRENCY_CNY, CURRENCY_COP, CURRENCY_CRC, CURRENCY_CZK, CURRENCY_DKK, CURRENCY_DOP, CURRENCY_EGP, CURRENCY_ETB, CURRENCY_EUR, CURRENCY_GBP, CURRENCY_HKD, CURRENCY_HRK, CURRENCY_HUF, CURRENCY_IDR, CURRENCY_ILS, CURRENCY_INR, CURRENCY_IRR, CURRENCY_ISK, CURRENCY_JMD, CURRENCY_JPY, CURRENCY_KRW, CURRENCY_LKR, CURRENCY_LTL, CURRENCY_MNT, CURRENCY_MVR, CURRENCY_MXN, CURRENCY_MYR, CURRENCY_NGN, CURRENCY_NOK, CURRENCY_NZD, CURRENCY_PAB, CURRENCY_PEN, CURRENCY_PHP, CURRENCY_PKR, CURRENCY_PLN, CURRENCY_RON, CURRENCY_RSD, CURRENCY_RUB, CURRENCY_SAR, CURRENCY_SEK, CURRENCY_SGD, CURRENCY_THB, CURRENCY_TRY, CURRENCY_TWD, CURRENCY_TZS, CURRENCY_UAH, CURRENCY_USD, CURRENCY_UYU, CURRENCY_VEF, CURRENCY_VND, CURRENCY_YER, CURRENCY_ZAR } | ||
/** | ||
@@ -551,3 +551,3 @@ * Contains a set of Fields for a community connector. This set of fields define which | ||
*/ | ||
build(): object[]; | ||
build(): any[]; | ||
@@ -648,3 +648,3 @@ /** | ||
*/ | ||
build(): object; | ||
build(): any; | ||
@@ -714,3 +714,3 @@ /** | ||
*/ | ||
build(): object; | ||
build(): any; | ||
@@ -763,3 +763,3 @@ /** | ||
*/ | ||
build(): object; | ||
build(): any; | ||
@@ -1004,3 +1004,3 @@ /** | ||
*/ | ||
build(): object; | ||
build(): any; | ||
@@ -1007,0 +1007,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -19,9 +19,8 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* var group = GroupsApp.getGroupByEmail("example@googlegroups.com"); | ||
* var str = group.getEmail() + ': '; | ||
* console.log(group.getEmail() + ':'); | ||
* var users = group.getUsers(); | ||
* for (var i = 0; i < users.length; i++) { | ||
* var user = users[i]; | ||
* str = str + user.getEmail() + ", "; | ||
* console.log(user.getEmail()); | ||
* } | ||
* Logger.log(str); | ||
* } | ||
@@ -41,3 +40,3 @@ */ | ||
* for (var i = 0; i < groups.length; i++) { | ||
* Logger.log(groups[i].getEmail()); | ||
* console.log(groups[i].getEmail()); | ||
* } | ||
@@ -62,9 +61,7 @@ * } | ||
* var childGroups = group.getGroups(); | ||
* var str = "Group " + GROUP_EMAIL + " has " + childGroup.length + | ||
* " groups: "; | ||
* console.log("Group " + GROUP_EMAIL + " has " + childGroup.length + " groups:"); | ||
* for (var i = 0; i < childGroups.length; i++) { | ||
* var childGroup = childGroups[i]; | ||
* str = str + childGroup.getEmail() + ", "; | ||
* console.log(childGroup.getEmail()); | ||
* } | ||
* Logger.log(str); | ||
* } | ||
@@ -86,7 +83,7 @@ * https://developers.google.com/apps-script/reference/groups/group#getGroups() | ||
* var users = group.getUsers(); | ||
* Logger.log('These are the group owners:'); | ||
* console.log('These are the group owners:'); | ||
* for (var i = 0; i < users.length; i++) { | ||
* var user = users[i]; | ||
* if (group.getRole(user.getEmail()) == GroupsApp.Role.OWNER) { | ||
* Logger.log(user.getEmail()); | ||
* console.log(user.getEmail()); | ||
* } | ||
@@ -110,7 +107,7 @@ * } | ||
* var users = group.getUsers(); | ||
* Logger.log('These are the group owners:'); | ||
* console.log('These are the group owners:'); | ||
* for (var i = 0; i < users.length; i++) { | ||
* var user = users[i]; | ||
* if (group.getRole(user) == GroupsApp.Role.OWNER) { | ||
* Logger.log(user.getEmail()); | ||
* console.log(user.getEmail()); | ||
* } | ||
@@ -135,6 +132,6 @@ * } | ||
* var roles = group.getRoles(users); | ||
* Logger.log('These are the group owners:'); | ||
* console.log('These are the group owners:'); | ||
* for (var i = 0; i < users.length; i++) { | ||
* if (roles[i] == GroupsApp.Role.OWNER) { | ||
* Logger.log(users[i].getEmail()); | ||
* console.log(users[i].getEmail()); | ||
* } | ||
@@ -165,9 +162,7 @@ * } | ||
* var users = group.getUsers(); | ||
* var str = "Group " + GROUP_EMAIL + " has " + users.length + | ||
* " members: "; | ||
* console.log("Group " + GROUP_EMAIL + " has " + users.length + " members:"); | ||
* for (var i = 0; i < users.length; i++) { | ||
* var user = users[i]; | ||
* str = str + user.getEmail() + ", "; | ||
* console.log(user.getEmail()); | ||
* } | ||
* Logger.log(str); | ||
* } | ||
@@ -187,3 +182,3 @@ * https://developers.google.com/apps-script/reference/groups/group#getUsers() | ||
* if (group.hasGroup(childGroup)) { | ||
* Logger.log("childgroup@googlegroups.com is a child group"); | ||
* console.log("childgroup@googlegroups.com is a child group"); | ||
* } | ||
@@ -203,3 +198,3 @@ * https://developers.google.com/apps-script/reference/groups/group#hasGroup(Group) | ||
* if (group.hasGroup("childgroup@googlegroups.com")) { | ||
* Logger.log("childgroup@googlegroups.com is a child group"); | ||
* console.log("childgroup@googlegroups.com is a child group"); | ||
* } | ||
@@ -222,3 +217,3 @@ * https://developers.google.com/apps-script/reference/groups/group#hasGroup(String) | ||
* if (group.hasUser(currentUser.getEmail())) { | ||
* Logger.log("You are a member"); | ||
* console.log("You are a member"); | ||
* } | ||
@@ -241,3 +236,3 @@ * https://developers.google.com/apps-script/reference/groups/group#hasUser(String) | ||
* if (group.hasUser(currentUser)) { | ||
* Logger.log("You are a member"); | ||
* console.log("You are a member"); | ||
* } | ||
@@ -244,0 +239,0 @@ * https://developers.google.com/apps-script/reference/groups/group#hasUser(User) |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -106,2 +106,7 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* "ShoppingList.12.25.pdf". | ||
* | ||
* | ||
* To view the daily quotas for conversions, see Quotas for Google | ||
* Services. Newly created Google Workspace domains might be temporarily subject to stricter | ||
* quotas. | ||
* https://developers.google.com/apps-script/reference/html/html-output#getAs(String) | ||
@@ -108,0 +113,0 @@ * @param contentType The MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid. |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -47,3 +47,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
translate(text: string, sourceLanguage: string, targetLanguage: string, advancedArgs: object): string; | ||
translate(text: string, sourceLanguage: string, targetLanguage: string, advancedArgs: any): string; | ||
} | ||
@@ -50,0 +50,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -3,0 +3,0 @@ // Definitions by: motemen <https://github.com/motemen/> |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -23,8 +23,8 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
/** | ||
* Returns the number of remaining emails a user can send for the rest of the day. | ||
* Returns the number of recipients you can send emails to for the rest of the day. The | ||
* returned value is valid for the current execution and might vary between executions. | ||
* | ||
* | ||
* Quotas are based on the number of email recipients. Specific quota information is available | ||
* on the quota tab of the Apps Script | ||
* dashboard. | ||
* Quotas are based on the number of email recipients. For specific quota information, see Quotas for Google | ||
* Services. | ||
* | ||
@@ -46,3 +46,3 @@ * | ||
* function inlineImage() { | ||
* var googleLogoUrl = "http://www.google.com/intl/en_com/images/srpr/logo3w.png"; | ||
* var googleLogoUrl = "https://www.gstatic.com/images/branding/googlelogo/1x/googlelogo_color_74x24dp.png"; | ||
* var youtubeLogoUrl = | ||
@@ -73,3 +73,3 @@ * "https://developers.google.com/youtube/images/YouTube_logo_standard_white.png"; | ||
*/ | ||
sendEmail(message: object): void; | ||
sendEmail(message: any): void; | ||
@@ -107,3 +107,3 @@ /** | ||
*/ | ||
sendEmail(recipient: string, subject: string, body: string, options: object): void; | ||
sendEmail(recipient: string, subject: string, body: string, options: any): void; | ||
@@ -110,0 +110,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -126,3 +126,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
getDirections(): object; | ||
getDirections(): any; | ||
@@ -333,3 +333,3 @@ /** | ||
*/ | ||
sampleLocation(latitude: number, longitude: number): object; | ||
sampleLocation(latitude: number, longitude: number): any; | ||
@@ -352,3 +352,3 @@ /** | ||
*/ | ||
sampleLocations(points: number[]): object; | ||
sampleLocations(points: number[]): any; | ||
@@ -366,3 +366,3 @@ /** | ||
*/ | ||
sampleLocations(encodedPolyline: string): object; | ||
sampleLocations(encodedPolyline: string): any; | ||
@@ -387,3 +387,3 @@ /** | ||
*/ | ||
samplePath(points: number[], numSamples: Integer): object; | ||
samplePath(points: number[], numSamples: Integer): any; | ||
@@ -403,3 +403,3 @@ /** | ||
*/ | ||
samplePath(encodedPolyline: string, numSamples: Integer): object; | ||
samplePath(encodedPolyline: string, numSamples: Integer): any; | ||
} | ||
@@ -459,3 +459,3 @@ /** | ||
*/ | ||
geocode(address: string): object; | ||
geocode(address: string): any; | ||
@@ -477,24 +477,5 @@ /** | ||
*/ | ||
reverseGeocode(latitude: number, longitude: number): object; | ||
reverseGeocode(latitude: number, longitude: number): any; | ||
/** | ||
* Gets the approximate addresses for a given area. | ||
* | ||
* | ||
* // Gets the address of an area around Central Park. | ||
* var response = Maps.newGeocoder().reverseGeocode(40.764941, -73.98262, 40.799133, -73.947558); | ||
* for (var i = 0; i < response.results.length; i++) { | ||
* var result = response.results[i]; | ||
* Logger.log('%s: %s, %s', result.formatted_address, result.geometry.location.lat, | ||
* result.geometry.location.lng); | ||
* } | ||
* https://developers.google.com/apps-script/reference/maps/geocoder#reverseGeocode(Number,Number,Number,Number) | ||
* @param swLatitude the latitude of the south west corner of the bounds | ||
* @param swLongitude the longitude of the south west corner of the bounds | ||
* @param neLatitude the latitude of the north east corner of the bounds | ||
* @param neLongitude the longitude of the north east corner of the bounds | ||
*/ | ||
reverseGeocode(swLatitude: number, swLongitude: number, neLatitude: number, neLongitude: number): object; | ||
/** | ||
* Sets the bounds of an area that should be given extra preference in the results. | ||
@@ -844,2 +825,7 @@ * | ||
* "ShoppingList.12.25.pdf". | ||
* | ||
* | ||
* To view the daily quotas for conversions, see Quotas for Google | ||
* Services. Newly created Google Workspace domains might be temporarily subject to stricter | ||
* quotas. | ||
* https://developers.google.com/apps-script/reference/maps/static-map#getAs(String) | ||
@@ -846,0 +832,0 @@ * @param contentType The MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid. |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -3,0 +3,0 @@ // Definitions by: motemen <https://github.com/motemen/> |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -87,3 +87,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
getProperties(): object; | ||
getProperties(): any; | ||
@@ -114,3 +114,3 @@ /** | ||
*/ | ||
setProperties(properties: object): Properties; | ||
setProperties(properties: any): Properties; | ||
@@ -130,3 +130,3 @@ /** | ||
*/ | ||
setProperties(properties: object, deleteAllOthers: boolean): Properties; | ||
setProperties(properties: any, deleteAllOthers: boolean): Properties; | ||
@@ -195,6 +195,6 @@ /** | ||
/** @deprecated DO NOT USE */ getKeys(): string[]; | ||
/** @deprecated DO NOT USE */ getProperties(): object; | ||
/** @deprecated DO NOT USE */ getProperties(): any; | ||
/** @deprecated DO NOT USE */ getProperty(key: string): string; | ||
/** @deprecated DO NOT USE */ setProperties(properties: object): ScriptProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: object, deleteAllOthers: boolean): ScriptProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: any): ScriptProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: any, deleteAllOthers: boolean): ScriptProperties; | ||
/** @deprecated DO NOT USE */ setProperty(key: string, value: string): ScriptProperties; | ||
@@ -212,6 +212,6 @@ } | ||
/** @deprecated DO NOT USE */ getKeys(): string[]; | ||
/** @deprecated DO NOT USE */ getProperties(): object; | ||
/** @deprecated DO NOT USE */ getProperties(): any; | ||
/** @deprecated DO NOT USE */ getProperty(key: string): string; | ||
/** @deprecated DO NOT USE */ setProperties(properties: object): UserProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: object, deleteAllOthers: boolean): UserProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: any): UserProperties; | ||
/** @deprecated DO NOT USE */ setProperties(properties: any, deleteAllOthers: boolean): UserProperties; | ||
/** @deprecated DO NOT USE */ setProperty(key: string, value: string): UserProperties; | ||
@@ -218,0 +218,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -107,6 +107,7 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
/** | ||
* Specifies the duration (in milliseconds) after the current time that the trigger runs. | ||
* Specifies the minimum duration (in milliseconds) after the current time that the trigger runs. | ||
* The actual duration might vary, but won't be less than your specified minimum. | ||
* | ||
* | ||
* // Creates a trigger that will run 10 minutes later | ||
* // Creates a trigger that runs 10 minutes later | ||
* ScriptApp.newTrigger("myFunction") | ||
@@ -117,3 +118,3 @@ * .timeBased() | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#after(Integer) | ||
* @param durationMilliseconds the duration (in milliseconds) after the current time when the trigger should run | ||
* @param durationMilliseconds The minimum duration (in milliseconds) after the current time when the trigger should run. | ||
*/ | ||
@@ -133,3 +134,3 @@ after(durationMilliseconds: Integer): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#at(Date) | ||
* @param date a Date object representing when the trigger should run | ||
* @param date A Date object representing when the trigger should run. | ||
*/ | ||
@@ -139,3 +140,3 @@ at(date: Date): ClockTriggerBuilder; | ||
/** | ||
* Specifies trigger will fire on the given date, by default near midnight (+/- 15 minutes). | ||
* Specifies that the trigger fires on the given date, by default near midnight (+/- 15 minutes). | ||
* | ||
@@ -149,5 +150,5 @@ * | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#atDate(Integer,Integer,Integer) | ||
* @param year the calendar year to schedule the trigger | ||
* @param month the calendar month to schedule the trigger (should be a number between 1 and 12, inclusive) | ||
* @param day the calendar day to schedule the trigger (should be a number between 1 and 31, inclusive) | ||
* @param year The calendar year to schedule the trigger. | ||
* @param month The calendar month to schedule the trigger (should be a number between 1 and 12, inclusive). | ||
* @param day The calendar day to schedule the trigger (should be a number between 1 and 31, inclusive). | ||
*/ | ||
@@ -167,3 +168,3 @@ atDate(year: Integer, month: Integer, day: Integer): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#atHour(Integer) | ||
* @param hour the hour at which to fire | ||
* @param hour The hour at which to fire. | ||
*/ | ||
@@ -187,3 +188,3 @@ atHour(hour: Integer): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#everyDays(Integer) | ||
* @param n the number of days between executions | ||
* @param n The number of days between executions. | ||
*/ | ||
@@ -201,3 +202,3 @@ everyDays(n: Integer): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#everyHours(Integer) | ||
* @param n the number of hours between executions | ||
* @param n The number of hours between executions. | ||
*/ | ||
@@ -215,3 +216,3 @@ everyHours(n: Integer): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#everyMinutes(Integer) | ||
* @param n the number of minutes between executions | ||
* @param n The number of minutes between executions. | ||
*/ | ||
@@ -229,3 +230,3 @@ everyMinutes(n: Integer): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#everyWeeks(Integer) | ||
* @param n the number of weeks between executions | ||
* @param n The number of weeks between executions. | ||
*/ | ||
@@ -235,8 +236,8 @@ everyWeeks(n: Integer): ClockTriggerBuilder; | ||
/** | ||
* Specifies the timezone that the specified dates/time that the trigger will run in. By default, | ||
* the timezone will be that of the script. | ||
* Specifies the timezone for the specified dates/time when the trigger runs. By default, the | ||
* timezone is that of the script. | ||
* | ||
* | ||
* The list of valid timezone strings corresponds with the valid timezone strings listed by Joda.org. An invalid timezone string | ||
* will cause the script to throw an error. | ||
* causes the script to throw an error. | ||
* | ||
@@ -252,3 +253,3 @@ * | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#inTimezone(String) | ||
* @param timezone the timezone with which to treat time information in the event | ||
* @param timezone The timezone with which to treat time information in the event. | ||
*/ | ||
@@ -269,3 +270,3 @@ inTimezone(timezone: string): ClockTriggerBuilder; | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#nearMinute(Integer) | ||
* @param minute the minute at which to fire | ||
* @param minute The minute at which to fire. | ||
*/ | ||
@@ -275,3 +276,3 @@ nearMinute(minute: Integer): ClockTriggerBuilder; | ||
/** | ||
* Specifies on what date in the month that the trigger will run. | ||
* Specifies the date in the month that the trigger runs. | ||
* | ||
@@ -285,3 +286,3 @@ * | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#onMonthDay(Integer) | ||
* @param day the day of the month the trigger should be scheduled for | ||
* @param day The day of the month the trigger should be scheduled for. | ||
*/ | ||
@@ -291,3 +292,3 @@ onMonthDay(day: Integer): ClockTriggerBuilder; | ||
/** | ||
* Specifies on what day of the week that the trigger will run. | ||
* Specifies the day of the week that the trigger runs. | ||
* | ||
@@ -300,3 +301,3 @@ * | ||
* https://developers.google.com/apps-script/reference/script/clock-trigger-builder#onWeekDay(Weekday) | ||
* @param day the day of the week to fire | ||
* @param day The day of the week to fire. | ||
*/ | ||
@@ -451,5 +452,5 @@ onWeekDay(day: Base.Weekday): ClockTriggerBuilder; | ||
/** | ||
* Gets the OAuth 2.0 access token | ||
* for the effective user. If the script's OAuth scopes are sufficient to authorize another Google | ||
* API that normally requires its own OAuth flow (like Google Picker), scripts can bypass the | ||
* Gets the OAuth 2.0 access | ||
* token for the effective user. If the script's OAuth scopes are sufficient to authorize | ||
* another Google API that normally requires its own OAuth flow (like Google Picker), scripts can bypass the | ||
* second authorization prompt by passing this token instead. The token expires after a time (a | ||
@@ -456,0 +457,0 @@ * few minutes at minimum); scripts should handle authorization failures and call this method to |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -30,3 +30,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
getAllHeaders(): object; | ||
getAllHeaders(): any; | ||
@@ -39,2 +39,7 @@ /** | ||
* "ShoppingList.12.25.pdf". | ||
* | ||
* | ||
* To view the daily quotas for conversions, see Quotas for Google | ||
* Services. Newly created Google Workspace domains might be temporarily subject to stricter | ||
* quotas. | ||
* https://developers.google.com/apps-script/reference/url-fetch/http-response#getAs(String) | ||
@@ -95,3 +100,3 @@ * @param contentType The MIME type to convert to. For most blobs, 'application/pdf' is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of 'image/bmp', 'image/gif', 'image/jpeg', or 'image/png' are also valid. | ||
*/ | ||
getHeaders(): object; | ||
getHeaders(): any; | ||
@@ -119,4 +124,4 @@ /** | ||
* | ||
* 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. | ||
* 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 allowlist or approve these requests. | ||
* | ||
@@ -193,3 +198,3 @@ * This service requires the https://www.googleapis.com/auth/script.external_request | ||
*/ | ||
fetch(url: string, params: object): HTTPResponse; | ||
fetch(url: string, params: any): HTTPResponse; | ||
@@ -203,2 +208,6 @@ /** | ||
* | ||
* The maximum number of URLs you can fetch is 100. If you provide more than 100 URLs, the | ||
* request fails. | ||
* | ||
* | ||
* // Make both a POST request with form data, and a GET request. | ||
@@ -225,3 +234,3 @@ * var resumeBlob = Utilities.newBlob('Hire me!', 'text/plain', 'resume.txt'); | ||
*/ | ||
fetchAll(requests: object[]): HTTPResponse[]; | ||
fetchAll(requests: any[]): HTTPResponse[]; | ||
@@ -243,3 +252,3 @@ /** | ||
*/ | ||
getRequest(url: string): object; | ||
getRequest(url: string): any; | ||
@@ -255,3 +264,3 @@ /** | ||
*/ | ||
getRequest(url: string, params: object): object; | ||
getRequest(url: string, params: any): any; | ||
} | ||
@@ -258,0 +267,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -493,3 +493,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
*/ | ||
formatString(template: string, ...args: object[]): string; | ||
formatString(template: string, ...args: any[]): string; | ||
@@ -700,4 +700,4 @@ /** | ||
zip(blobs: Base.BlobSource[], name: string): Base.Blob; | ||
/** @deprecated DO NOT USE */ jsonParse(jsonString: string): object; | ||
/** @deprecated DO NOT USE */ jsonStringify(obj: object): string; | ||
/** @deprecated DO NOT USE */ jsonParse(jsonString: string): any; | ||
/** @deprecated DO NOT USE */ jsonStringify(obj: any): string; | ||
} | ||
@@ -704,0 +704,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2020-01-26 | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -1060,3 +1060,4 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* | ||
* // Log the title and labels for the first page of blog posts on the G Suite Developer blog. | ||
* // Log the title and labels for the first page of blog posts on the | ||
* // Google Workspace Developer blog. | ||
* function parseXml() { | ||
@@ -1063,0 +1064,0 @@ * var url = 'https://gsuite-developers.googleblog.com/atom.xml'; |
{ | ||
"name": "gas-types-detailed", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Detailed Google Apps Script Type Definitions. Forked from Definitely Typed @types/google-apps-script. Adds full documentation and urls.", | ||
@@ -23,2 +23,2 @@ "main": "", | ||
"homepage": "https://github.com/enuchi/gas-types-detailed#readme" | ||
} | ||
} |
@@ -16,3 +16,3 @@ # About | ||
# Credits | ||
These definitions were written by PopGoesTheWza (https://github.com/PopGoesTheWza), motemen (https://github.com/motemen/), and enuchi (https://github.com/enuchi). | ||
These definitions were written by PopGoesTheWza (https://github.com/PopGoesTheWza), motemen (https://github.com/motemen/), and enuchi (https://github.com/enuchi). The type files included here were generated using the scripts at https://github.com/enuchi/dts-google-apps-script. | ||
@@ -19,0 +19,0 @@ Reference: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4430546
93038