gas-types-detailed
Advanced tools
Comparing version 1.1.1 to 1.1.2-preview
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -508,3 +508,4 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
/** | ||
* Returns the color as a CSS-style 7 character hexadecimal string, #rrggbb. | ||
* Returns the color as a CSS-style 7 character hexadecimal string (#rrggbb) or 9 character | ||
* hexadecimal string (#aarrggbb). | ||
* https://developers.google.com/apps-script/reference/base/rgb-color#asHexString() | ||
@@ -705,5 +706,5 @@ */ | ||
/** | ||
* Creates a builder that can be used to insert a sub-menu into the editor's Add-on menu. The menu | ||
* isn't actually be updated until Menu.addToUi() is called. If the script is running as | ||
* an add-on, the sub-menu name matches the add-on's name in the web store; if the script is bound to the document directly, the sub-menu name | ||
* Creates a builder that can be used to insert a sub-menu into the editor's Extensions menu. The | ||
* menu isn't actually be updated until Menu.addToUi() is called. If the script is running | ||
* as an add-on, the sub-menu name matches the add-on's name in the web store; if the script is bound to the document directly, the sub-menu name | ||
* matches the script's name. For more information, see the guide to menus. | ||
@@ -728,3 +729,3 @@ * | ||
* sentence case (only the first word capitalized). If the script is published as an add-on, the caption parameter is ignored and the | ||
* menu is added as a sub-menu of the Add-ons menu, equivalent to createAddonMenu(). | ||
* menu is added as a sub-menu of the Extensions menu, equivalent to createAddonMenu(). | ||
* | ||
@@ -731,0 +732,0 @@ * |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -149,3 +149,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* var conferenceError = ConferenceDataService.newConferenceError() | ||
* .setConferenceErrorType(ConferenceErrorType.UNAUTHENTICATED) | ||
* .setConferenceErrorType(ConferenceDataService.ConferenceErrorType.AUTHENTICATION) | ||
* .setAuthenticationUrl(authenticationUrl); | ||
@@ -158,3 +158,3 @@ */ | ||
* provide a URL calling back into the add-on to allow users to log in. The maximum length for | ||
* this field is 1300 characters. | ||
* this field is 1800 characters. | ||
* https://developers.google.com/apps-script/reference/conference-data/conference-error#setAuthenticationUrl(String) | ||
@@ -161,0 +161,0 @@ * @param authenticationUrl The authentication URL to set. |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -59,3 +59,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* var childGroups = group.getGroups(); | ||
* console.log("Group " + GROUP_EMAIL + " has " + childGroup.length + " groups:"); | ||
* console.log("Group " + GROUP_EMAIL + " has " + childGroups.length + " groups:"); | ||
* for (var i = 0; i < childGroups.length; i++) { | ||
@@ -140,4 +140,4 @@ * var childGroup = childGroups[i]; | ||
/** | ||
* Retrieves the direct members of the group that have a known corresponding Google account. | ||
* Throws an exception if you do not have permission to view the group's member list. | ||
* Gets the direct members of the group that have a known corresponding Google account. Throws an | ||
* exception if you don't have permission to view the group's member list or the member emails. | ||
* | ||
@@ -294,2 +294,5 @@ * | ||
* group have exactly one role within the context of that group. | ||
* | ||
* To call an enum, you call its parent class, name, and property. For example, | ||
* GroupsApp.Role.OWNER. | ||
* See also | ||
@@ -296,0 +299,0 @@ * |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -140,3 +140,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* output.setFaviconUrl('http://www.example.com/image.png'); | ||
* Logger.log(output.getFaviconUrl(); | ||
* Logger.log(output.getFaviconUrl()); | ||
* https://developers.google.com/apps-script/reference/html/html-output#getFaviconUrl() | ||
@@ -143,0 +143,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -13,7 +13,8 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* | ||
* This class allows scripts to make sure that only one instance of the script is executing a | ||
* given section of code at a time. This is particularly useful for callbacks and triggers, where a | ||
* user action may cause changes to a shared resource and you want to ensure that aren't collisions. | ||
* This class lets scripts make sure that only one instance of the script executes a given | ||
* section of code at a time. This is particularly useful for callbacks and triggers, where a user | ||
* action might cause changes to a shared resource and you want to ensure that there aren't | ||
* collisions. | ||
* | ||
* The following examples shows how to use a lock in a form submit handler. | ||
* The following example shows how to use a lock in a form submit handler. | ||
* | ||
@@ -24,5 +25,5 @@ * // Generates a unique ticket number for every form submission. | ||
* | ||
* // Get a script lock, because we're about to modify a shared resource. | ||
* // Gets a script lock before modifying a shared resource. | ||
* var lock = LockService.getScriptLock(); | ||
* // Wait for up to 30 seconds for other processes to finish. | ||
* // Waits for up to 30 seconds for other processes to finish. | ||
* lock.waitLock(30000); | ||
@@ -33,3 +34,3 @@ * | ||
* | ||
* // Release the lock so that other processes can continue. | ||
* // Releases the lock so that other processes can continue. | ||
* lock.releaseLock(); | ||
@@ -36,0 +37,0 @@ * |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -23,4 +23,4 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
/** | ||
* 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. | ||
* 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. | ||
* | ||
@@ -27,0 +27,0 @@ * |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// 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 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -147,3 +147,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app#fetch(String) | ||
* @param url The URL to fetch. | ||
* @param url The URL to fetch. The URL can have up to 2,082 characters. | ||
*/ | ||
@@ -192,3 +192,3 @@ fetch(url: string): HTTPResponse; | ||
* https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app#fetch(String,Object) | ||
* @param url The URL to fetch. | ||
* @param url The URL to fetch. The URL can have up to 2,082 characters. | ||
* @param params The optional JavaScript object specifying advanced parameters as defined below. | ||
@@ -205,6 +205,2 @@ */ | ||
* | ||
* 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. | ||
@@ -246,3 +242,3 @@ * var resumeBlob = Utilities.newBlob('Hire me!', 'text/plain', 'resume.txt'); | ||
* https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app#getRequest(String) | ||
* @param url The URL to look up. | ||
* @param url The URL to look up. The URL can have up to 2,082 characters. | ||
*/ | ||
@@ -257,3 +253,3 @@ getRequest(url: string): any; | ||
* https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app#getRequest(String,Object) | ||
* @param url The URL to look up. | ||
* @param url The URL to look up. The URL can have up to 2,082 characters. | ||
* @param params An optional JavaScript object specifying advanced parameters as defined below. | ||
@@ -260,0 +256,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -54,3 +54,3 @@ // Definitions by: motemen <https://github.com/motemen/> | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64Decode(String) | ||
* @param encoded an array of bytes of data to decode | ||
* @param encoded An array of bytes of data to decode. | ||
*/ | ||
@@ -77,4 +77,4 @@ base64Decode(encoded: string): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64Decode(String,Charset) | ||
* @param encoded the string of data to decode | ||
* @param charset a Charset specifying the charset of the input | ||
* @param encoded The string of data to decode. | ||
* @param charset A Charset specifying the charset of the input. | ||
*/ | ||
@@ -101,3 +101,3 @@ base64Decode(encoded: string, charset: Charset): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64DecodeWebSafe(String) | ||
* @param encoded an array of bytes of web-safe data to decode | ||
* @param encoded An array of bytes of web-safe data to decode. | ||
*/ | ||
@@ -124,4 +124,4 @@ base64DecodeWebSafe(encoded: string): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64DecodeWebSafe(String,Charset) | ||
* @param encoded the string of web-safe data to decode | ||
* @param charset a Charset specifying the charset of the input | ||
* @param encoded The string of web-safe data to decode. | ||
* @param charset A Charset specifying the charset of the input. | ||
*/ | ||
@@ -143,3 +143,3 @@ base64DecodeWebSafe(encoded: string, charset: Charset): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64Encode(Byte) | ||
* @param data a byte[] of data to encode | ||
* @param data A byte[] of data to encode. | ||
*/ | ||
@@ -158,3 +158,3 @@ base64Encode(data: Byte[]): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64Encode(String) | ||
* @param data the string to encode | ||
* @param data The string to encode. | ||
*/ | ||
@@ -179,4 +179,4 @@ base64Encode(data: string): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64Encode(String,Charset) | ||
* @param data the string of data to encode | ||
* @param charset a Charset specifying the charset of the input | ||
* @param data The string of data to encode. | ||
* @param charset A Charset specifying the charset of the input. | ||
*/ | ||
@@ -198,3 +198,3 @@ base64Encode(data: string, charset: Charset): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64EncodeWebSafe(Byte) | ||
* @param data an array of bytes of data to encode | ||
* @param data An array of bytes of data to encode. | ||
*/ | ||
@@ -213,3 +213,3 @@ base64EncodeWebSafe(data: Byte[]): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64EncodeWebSafe(String) | ||
* @param data the string to encode | ||
* @param data The string to encode. | ||
*/ | ||
@@ -234,4 +234,4 @@ base64EncodeWebSafe(data: string): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#base64EncodeWebSafe(String,Charset) | ||
* @param data the string of data to encode | ||
* @param charset a Charset specifying the charset of the input | ||
* @param data The string of data to encode. | ||
* @param charset A Charset specifying the charset of the input. | ||
*/ | ||
@@ -248,4 +248,4 @@ base64EncodeWebSafe(data: string, charset: Charset): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeDigest(DigestAlgorithm,Byte) | ||
* @param algorithm a DigestAlgorithm to use | ||
* @param value an input string value to compute a digest for | ||
* @param algorithm A DigestAlgorithm to use. | ||
* @param value An input string value to compute a digest for. | ||
*/ | ||
@@ -261,4 +261,4 @@ computeDigest(algorithm: DigestAlgorithm, value: Byte[]): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeDigest(DigestAlgorithm,String) | ||
* @param algorithm a DigestAlgorithm to use | ||
* @param value an input string value to compute a digest for | ||
* @param algorithm A DigestAlgorithm to use. | ||
* @param value An input string value to compute a digest for. | ||
*/ | ||
@@ -277,5 +277,5 @@ computeDigest(algorithm: DigestAlgorithm, value: string): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeDigest(DigestAlgorithm,String,Charset) | ||
* @param algorithm a DigestAlgorithm to use | ||
* @param value an input string value to compute a digest for | ||
* @param charset a Charset representing the input character set | ||
* @param algorithm A DigestAlgorithm to use. | ||
* @param value An input string value to compute a digest for. | ||
* @param charset A Charset representing the input character set. | ||
*/ | ||
@@ -294,4 +294,4 @@ computeDigest(algorithm: DigestAlgorithm, value: string, charset: Charset): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeHmacSha256Signature(Byte,Byte) | ||
* @param value the input value to generate a hash for | ||
* @param key a key to use to generate the hash with | ||
* @param value The input value to generate a hash for. | ||
* @param key A key to use to generate the hash with. | ||
*/ | ||
@@ -309,4 +309,4 @@ computeHmacSha256Signature(value: Byte[], key: Byte[]): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeHmacSha256Signature(String,String) | ||
* @param value the input value to generate a hash for | ||
* @param key a key to use to generate the hash with | ||
* @param value The input value to generate a hash for. | ||
* @param key A key to use to generate the hash with. | ||
*/ | ||
@@ -325,5 +325,5 @@ computeHmacSha256Signature(value: string, key: string): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeHmacSha256Signature(String,String,Charset) | ||
* @param value the input value to generate a hash for | ||
* @param key a key to use to generate the hash with | ||
* @param charset a Charset representing the input character set | ||
* @param value The input value to generate a hash for. | ||
* @param key A key to use to generate the hash with. | ||
* @param charset A Charset representing the input character set. | ||
*/ | ||
@@ -343,5 +343,5 @@ computeHmacSha256Signature(value: string, key: string, charset: Charset): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeHmacSignature(MacAlgorithm,Byte,Byte) | ||
* @param algorithm a MacAlgorithm algorithm to use to hash the input value | ||
* @param value the input value to generate a hash for | ||
* @param key a key to use to generate the hash with | ||
* @param algorithm A MacAlgorithm algorithm to use to hash the input value. | ||
* @param value The input value to generate a hash for. | ||
* @param key A key to use to generate the hash with. | ||
*/ | ||
@@ -361,5 +361,5 @@ computeHmacSignature(algorithm: MacAlgorithm, value: Byte[], key: Byte[]): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeHmacSignature(MacAlgorithm,String,String) | ||
* @param algorithm a MacAlgorithm algorithm to use to hash the input value | ||
* @param value the input value to generate a hash for | ||
* @param key a key to use to generate the hash with | ||
* @param algorithm A MacAlgorithm algorithm to use to hash the input value. | ||
* @param value The input value to generate a hash for. | ||
* @param key A key to use to generate the hash with. | ||
*/ | ||
@@ -380,6 +380,6 @@ computeHmacSignature(algorithm: MacAlgorithm, value: string, key: string): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeHmacSignature(MacAlgorithm,String,String,Charset) | ||
* @param algorithm a MacAlgorithm algorithm to use to hash the input value | ||
* @param value the input value to generate a hash for | ||
* @param key a key to use to generate the hash with | ||
* @param charset a Charset representing the input character set | ||
* @param algorithm A MacAlgorithm algorithm to use to hash the input value. | ||
* @param value The input value to generate a hash for. | ||
* @param key A key to use to generate the hash with. | ||
* @param charset A Charset representing the input character set. | ||
*/ | ||
@@ -427,4 +427,4 @@ computeHmacSignature(algorithm: MacAlgorithm, value: string, key: string, charset: Charset): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeRsaSha256Signature(String,String) | ||
* @param value the input value to generate a hash for | ||
* @param key a PEM formatted key to use to generate the signature | ||
* @param value The input value to generate a hash for. | ||
* @param key A PEM formatted key to use to generate the signature. | ||
*/ | ||
@@ -442,5 +442,5 @@ computeRsaSha256Signature(value: string, key: string): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#computeRsaSha256Signature(String,String,Charset) | ||
* @param value the input value to generate a hash for | ||
* @param key a PEM formatted key to use to generate the signature | ||
* @param charset a Charset representing the input character set | ||
* @param value The input value to generate a hash for. | ||
* @param key A PEM formatted key to use to generate the signature. | ||
* @param charset A Charset representing the input character set. | ||
*/ | ||
@@ -495,5 +495,5 @@ computeRsaSha256Signature(value: string, key: string, charset: Charset): Byte[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#formatDate(Date,String,String) | ||
* @param date a Date to format as a String | ||
* @param timeZone the output timezone of the result | ||
* @param format a format per the SimpleDateFormat specification | ||
* @param date A Date to format as a String. | ||
* @param timeZone The output timezone of the result. | ||
* @param format A format per the SimpleDateFormat specification. | ||
*/ | ||
@@ -540,3 +540,3 @@ formatDate(date: Date, timeZone: string, format: string): string; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#gzip(BlobSource) | ||
* @param blob a Blob object to compress using gzip. | ||
* @param blob A Blob object to compress using gzip. | ||
*/ | ||
@@ -555,4 +555,4 @@ gzip(blob: Base.BlobSource): Base.Blob; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#gzip(BlobSource,String) | ||
* @param blob a Blob object to compress using gzip. | ||
* @param name the name of the gzip file to be created | ||
* @param blob A Blob object to compress using gzip. | ||
* @param name The name of the gzip file to be created. | ||
*/ | ||
@@ -564,4 +564,12 @@ gzip(blob: Base.BlobSource, name: string): Base.Blob; | ||
* binary data as input. | ||
* | ||
* | ||
* // Creates a blob object from a byte array. | ||
* const data = [71, 79, 79, 71, 76, 69]; | ||
* const blob = Utilities.newBlob(data); | ||
* | ||
* // Logs the blob data as a string to the console. | ||
* console.log(blob.getDataAsString()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#newBlob(Byte) | ||
* @param data the bytes for the blob | ||
* @param data The bytes for the blob. | ||
*/ | ||
@@ -573,5 +581,21 @@ newBlob(data: Byte[]): Base.Blob; | ||
* APIs that take binary data as input. | ||
* | ||
* | ||
* // Declares a byte array. | ||
* const data = [71, 79, 79, 71, 76, 69]; | ||
* | ||
* // Declares the content type of the blob. | ||
* const contentType = 'application/json'; | ||
* | ||
* // Creates a blob object from the byte array and content type. | ||
* const blob = Utilities.newBlob(data, contentType); | ||
* | ||
* // Logs the blob data as a string to the console. | ||
* console.log(blob.getDataAsString()); | ||
* | ||
* // Logs the content type of the blob to the console. | ||
* console.log(blob.getContentType()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#newBlob(Byte,String) | ||
* @param data the bytes for the blob | ||
* @param contentType the content type of the blob - can be null | ||
* @param data The bytes for the blob. | ||
* @param contentType The content type of the blob - can be null. | ||
*/ | ||
@@ -583,6 +607,28 @@ newBlob(data: Byte[], contentType: string): Base.Blob; | ||
* Script APIs that take binary data as input. | ||
* | ||
* | ||
* // Declares a byte array. | ||
* const data = [71, 79, 79, 71, 76, 69]; | ||
* | ||
* // Declares the content type of the blob. | ||
* const contentType = 'application/json'; | ||
* | ||
* // Declares the name of the blob. | ||
* const name = 'Example blob'; | ||
* | ||
* // Creates a blob object from the byte array, content type, and name. | ||
* const blob = Utilities.newBlob(data, contentType, name); | ||
* | ||
* // Logs the blob data as a string to the console. | ||
* console.log('Blob data:', blob.getDataAsString()); | ||
* | ||
* // Logs the content type of the blob to the console. | ||
* console.log('Blob content type:', blob.getContentType()); | ||
* | ||
* // Logs the name of the blob to the console. | ||
* console.log('Blob name:', blob.getName()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#newBlob(Byte,String,String) | ||
* @param data the bytes for the blob | ||
* @param contentType - the content type of the blob - can be null | ||
* @param name the name of the blob - can be null | ||
* @param data The bytes for the blob. | ||
* @param contentType - The content type of the blob - can be null. | ||
* @param name The name of the blob - can be null. | ||
*/ | ||
@@ -594,4 +640,14 @@ newBlob(data: Byte[], contentType: string, name: string): Base.Blob; | ||
* binary data as input. | ||
* | ||
* | ||
* // Declares a string for the blob. | ||
* const data = 'GOOGLE'; | ||
* | ||
* // Creates a blob object from a string. | ||
* const blob = Utilities.newBlob(data); | ||
* | ||
* // Logs the blob data in byte array to the console. | ||
* console.log('Blob Data:', blob.getBytes()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#newBlob(String) | ||
* @param data the string for the blob, assumed UTF-8 | ||
* @param data The string for the blob, assumed UTF-8. | ||
*/ | ||
@@ -603,5 +659,21 @@ newBlob(data: string): Base.Blob; | ||
* APIs that take binary data as input. | ||
* | ||
* | ||
* // Declares a string for the blob. | ||
* const data = 'GOOGLE'; | ||
* | ||
* // Declares the content type of blob. | ||
* const contentType = 'application/json'; | ||
* | ||
* // Creates a blob object from the string and content type. | ||
* const blob = Utilities.newBlob(data, contentType); | ||
* | ||
* // Logs the blob data in byte array to the console. | ||
* console.log('Blob data:', blob.getBytes()); | ||
* | ||
* // Logs the content type of the blob to the console. | ||
* console.log(blob.getContentType()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#newBlob(String,String) | ||
* @param data the string for the blob, assumed UTF-8 | ||
* @param contentType the content type of the blob - can be null | ||
* @param data The string for the blob, assumed UTF-8. | ||
* @param contentType The content type of the blob - can be null. | ||
*/ | ||
@@ -613,6 +685,28 @@ newBlob(data: string, contentType: string): Base.Blob; | ||
* Script APIs that take binary data as input. | ||
* | ||
* | ||
* // Declares a string for the blob. | ||
* const data = 'GOOGLE'; | ||
* | ||
* // Declares the content type of the blob. | ||
* const contentType = 'application/json'; | ||
* | ||
* // Declares the name of the blob. | ||
* const name = 'Example blob'; | ||
* | ||
* // Create a blob object from the string, content type, and name. | ||
* const blob = Utilities.newBlob(data, contentType, name); | ||
* | ||
* // Logs the blob data in byte array to the console. | ||
* console.log('Blob data:', blob.getBytes()); | ||
* | ||
* // Logs the content type of the blob to the console. | ||
* console.log('Blob content type:', blob.getContentType()); | ||
* | ||
* // Logs the name of the blob to the console. | ||
* console.log('Blob name:', blob.getName()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#newBlob(String,String,String) | ||
* @param data the string for the blob, assumed UTF-8 | ||
* @param contentType the content type of the blob - can be null | ||
* @param name the name of the blob - can be null | ||
* @param data The string for the blob, assumed UTF-8. | ||
* @param contentType The content type of the blob - can be null. | ||
* @param name The name of the blob - can be null. | ||
*/ | ||
@@ -629,3 +723,3 @@ newBlob(data: string, contentType: string, name: string): Base.Blob; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#parseCsv(String) | ||
* @param csv a string containing a single or multiline data in comma-separated value (CSV) format | ||
* @param csv A string containing a single or multiline data in comma-separated value (CSV) format. | ||
*/ | ||
@@ -642,4 +736,4 @@ parseCsv(csv: string): string[][]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#parseCsv(String,Char) | ||
* @param csv a string containing a single or multiline data in comma-separated value (CSV) format | ||
* @param delimiter between values | ||
* @param csv A string containing a single or multiline data in comma-separated value (CSV) format. | ||
* @param delimiter Between values. | ||
*/ | ||
@@ -649,4 +743,31 @@ parseCsv(csv: string, delimiter: Char): string[][]; | ||
/** | ||
* Parses the provided string date according to the specification described in the Java Standard | ||
* Edition SimpleDateFormat class. For more information, see the Java SimpleDateFormat class. | ||
* | ||
* | ||
* // This set of parameters parses the given string as a date in Greenwich Mean Time, formatted | ||
* // as year-month-dateThour-minute-second. | ||
* var date = Utilities.parseDate("1970-01-01 00:00:00", "GMT", "yyyy-MM-dd' 'HH:mm:ss"); | ||
* Logger.log(date); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#parseDate(String,String,String) | ||
* @param date A string value to parse as a date. | ||
* @param timeZone The output time zone. | ||
* @param format The date format per the SimpleDateFormat specification. | ||
*/ | ||
parseDate(date: string, timeZone: string, format: string): Date; | ||
/** | ||
* Sleeps for specified number of milliseconds. Immediately puts the script to sleep for the | ||
* specified number of milliseconds. The maximum allowed value is 300000 (or 5 minutes). | ||
* | ||
* | ||
* // Creates a blob object from a string. | ||
* const data = 'GOOGLE'; | ||
* const blob = Utilities.newBlob(data); | ||
* | ||
* // Puts the script to sleep for 10,000 milliseconds (10 seconds). | ||
* Utilities.sleep(10000); | ||
* | ||
* // Logs the blob data in byte array to the console. | ||
* console.log(blob.getBytes()); | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#sleep(Integer) | ||
@@ -670,3 +791,3 @@ * @param milliseconds The number of milliseconds to sleep. | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#ungzip(BlobSource) | ||
* @param blob the Blob of compressed data. | ||
* @param blob The Blob of compressed data. | ||
*/ | ||
@@ -692,3 +813,3 @@ ungzip(blob: Base.BlobSource): Base.Blob; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#unzip(BlobSource) | ||
* @param blob the zip file blob. | ||
* @param blob The zip file blob. | ||
*/ | ||
@@ -711,3 +832,3 @@ unzip(blob: Base.BlobSource): Base.Blob[]; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#zip(BlobSource) | ||
* @param blobs a array of blobs to zip up | ||
* @param blobs A array of blobs to zip up. | ||
*/ | ||
@@ -731,4 +852,4 @@ zip(blobs: Base.BlobSource[]): Base.Blob; | ||
* https://developers.google.com/apps-script/reference/utilities/utilities#zip(BlobSource,String) | ||
* @param blobs a array of blobs to zip up | ||
* @param name the name of the zip file to be created | ||
* @param blobs A array of blobs to zip up. | ||
* @param name The name of the zip file to be created. | ||
*/ | ||
@@ -735,0 +856,0 @@ zip(blobs: Base.BlobSource[], name: string): Base.Blob; |
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Apps Script 2022-07-03 | ||
// Type definitions for Google Apps Script 2023-10-28 | ||
// Project: https://developers.google.com/apps-script/ | ||
@@ -3,0 +3,0 @@ // Definitions by: motemen <https://github.com/motemen/> |
@@ -60,3 +60,2 @@ // Type definitions for google-apps-script 1.0 | ||
/// <reference path="apis/driveactivity_v2.d.ts"/> | ||
/// <reference path="apis/fusiontables_v2.d.ts"/> | ||
/// <reference path="apis/gmail_v1.d.ts"/> | ||
@@ -74,5 +73,4 @@ /// <reference path="apis/groupsmigration_v1.d.ts"/> | ||
/// <reference path="apis/tasks_v1.d.ts"/> | ||
/// <reference path="apis/urlshortener_v1.d.ts"/> | ||
/// <reference path="apis/youtube_v3.d.ts"/> | ||
/// <reference path="apis/youtubeanalytics_v2.d.ts"/> | ||
/// <reference path="apis/youtubepartner_v1.d.ts"/> |
{ | ||
"name": "gas-types-detailed", | ||
"version": "1.1.1", | ||
"version": "1.1.2-preview", | ||
"description": "Detailed Google Apps Script Type Definitions. Forked from Definitely Typed @types/google-apps-script. Adds full documentation and urls.", | ||
@@ -5,0 +5,0 @@ "main": "", |
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
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4785368
96962
1