Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/google-apps-script

Package Overview
Dependencies
Maintainers
0
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/google-apps-script - npm Package Compare versions

Comparing version 1.0.87 to 1.0.88

117

google-apps-script/apis/drive_v2.d.ts

@@ -8,3 +8,3 @@ declare namespace GoogleAppsScript {

// Gets the information about the current user along with Drive API settings
get(optionalArgs: object): Drive.Schema.About;
get(optionalArgs: Record<string, any>): Drive.Schema.About;
}

@@ -17,3 +17,3 @@ interface AppsCollection {

// Lists a user's installed apps.
list(optionalArgs: object): Drive.Schema.AppList;
list(optionalArgs: Record<string, any>): Drive.Schema.AppList;
}

@@ -24,15 +24,15 @@ interface ChangesCollection {

// Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.
get(changeId: string, optionalArgs: object): Drive.Schema.Change;
get(changeId: string, optionalArgs: Record<string, any>): Drive.Schema.Change;
// Gets the starting pageToken for listing future changes.
getStartPageToken(): Drive.Schema.StartPageToken;
// Gets the starting pageToken for listing future changes.
getStartPageToken(optionalArgs: object): Drive.Schema.StartPageToken;
getStartPageToken(optionalArgs: Record<string, any>): Drive.Schema.StartPageToken;
// Lists the changes for a user or Team Drive.
list(): Drive.Schema.ChangeList;
// Lists the changes for a user or Team Drive.
list(optionalArgs: object): Drive.Schema.ChangeList;
list(optionalArgs: Record<string, any>): Drive.Schema.ChangeList;
// Subscribe to changes for a user.
watch(resource: Schema.Channel): Drive.Schema.Channel;
// Subscribe to changes for a user.
watch(resource: Schema.Channel, optionalArgs: object): Drive.Schema.Channel;
watch(resource: Schema.Channel, optionalArgs: Record<string, any>): Drive.Schema.Channel;
}

@@ -52,3 +52,3 @@ interface ChannelsCollection {

folderId: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.ChildReference;

@@ -58,3 +58,3 @@ // Lists a folder's children.

// Lists a folder's children.
list(folderId: string, optionalArgs: object): Drive.Schema.ChildList;
list(folderId: string, optionalArgs: Record<string, any>): Drive.Schema.ChildList;
// Removes a child from a folder.

@@ -67,3 +67,3 @@ remove(folderId: string, childId: string): void;

// Gets a comment by ID.
get(fileId: string, commentId: string, optionalArgs: object): Drive.Schema.Comment;
get(fileId: string, commentId: string, optionalArgs: Record<string, any>): Drive.Schema.Comment;
// Creates a new comment on the given file.

@@ -74,3 +74,3 @@ insert(resource: Schema.Comment, fileId: string): Drive.Schema.Comment;

// Lists a file's comments.
list(fileId: string, optionalArgs: object): Drive.Schema.CommentList;
list(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.CommentList;
// Updates an existing comment. This method supports patch semantics.

@@ -87,3 +87,3 @@ patch(resource: Schema.Comment, fileId: string, commentId: string): Drive.Schema.Comment;

// Gets a shared drive's metadata by ID.
get(driveId: string, optionalArgs: object): Drive.Schema.Drive;
get(driveId: string, optionalArgs: Record<string, any>): Drive.Schema.Drive;
// Hides a shared drive from the default view.

@@ -96,3 +96,3 @@ hide(driveId: string): Drive.Schema.Drive;

// Lists the user's shared drives.
list(optionalArgs: object): Drive.Schema.DriveList;
list(optionalArgs: Record<string, any>): Drive.Schema.DriveList;
// Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.

@@ -105,3 +105,3 @@ remove(driveId: string): void;

// Updates the metadata for a shared drive.
update(resource: Schema.Drive, driveId: string, optionalArgs: object): Drive.Schema.Drive;
update(resource: Schema.Drive, driveId: string, optionalArgs: Record<string, any>): Drive.Schema.Drive;
}

@@ -112,3 +112,3 @@ interface FilesCollection {

// Creates a copy of the specified file.
copy(resource: Schema.File, fileId: string, optionalArgs: object): Drive.Schema.File;
copy(resource: Schema.File, fileId: string, optionalArgs: Record<string, any>): Drive.Schema.File;
// Permanently deletes all of the user's trashed files.

@@ -121,7 +121,7 @@ emptyTrash(): void;

// Generates a set of file IDs which can be provided in insert requests.
generateIds(optionalArgs: object): Drive.Schema.GeneratedIds;
generateIds(optionalArgs: Record<string, any>): Drive.Schema.GeneratedIds;
// Gets a file's metadata by ID.
get(fileId: string): Drive.Schema.File;
// Gets a file's metadata by ID.
get(fileId: string, optionalArgs: object): Drive.Schema.File;
get(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.File;
// Insert a new file.

@@ -132,27 +132,27 @@ insert(resource: Schema.File): Drive.Schema.File;

// Insert a new file.
insert(resource: Schema.File, mediaData: any, optionalArgs: object): Drive.Schema.File;
insert(resource: Schema.File, mediaData: any, optionalArgs: Record<string, any>): Drive.Schema.File;
// Lists the user's files.
list(): Drive.Schema.FileList;
// Lists the user's files.
list(optionalArgs: object): Drive.Schema.FileList;
list(optionalArgs: Record<string, any>): Drive.Schema.FileList;
// Updates file metadata and/or content. This method supports patch semantics.
patch(resource: Schema.File, fileId: string): Drive.Schema.File;
// Updates file metadata and/or content. This method supports patch semantics.
patch(resource: Schema.File, fileId: string, optionalArgs: object): Drive.Schema.File;
patch(resource: Schema.File, fileId: string, optionalArgs: Record<string, any>): Drive.Schema.File;
// Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.
remove(fileId: string): void;
// Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.
remove(fileId: string, optionalArgs: object): void;
remove(fileId: string, optionalArgs: Record<string, any>): void;
// Set the file's updated time to the current server time.
touch(fileId: string): Drive.Schema.File;
// Set the file's updated time to the current server time.
touch(fileId: string, optionalArgs: object): Drive.Schema.File;
touch(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.File;
// Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for Team Drive files.
trash(fileId: string): Drive.Schema.File;
// Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for Team Drive files.
trash(fileId: string, optionalArgs: object): Drive.Schema.File;
trash(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.File;
// Restores a file from the trash.
untrash(fileId: string): Drive.Schema.File;
// Restores a file from the trash.
untrash(fileId: string, optionalArgs: object): Drive.Schema.File;
untrash(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.File;
// Updates file metadata and/or content.

@@ -163,7 +163,16 @@ update(resource: Schema.File, fileId: string): Drive.Schema.File;

// Updates file metadata and/or content.
update(resource: Schema.File, fileId: string, mediaData: any, optionalArgs: object): Drive.Schema.File;
update(
resource: Schema.File,
fileId: string,
mediaData: any,
optionalArgs: Record<string, any>,
): Drive.Schema.File;
// Subscribe to changes on a file
watch(resource: Schema.Channel, fileId: string): Drive.Schema.Channel;
// Subscribe to changes on a file
watch(resource: Schema.Channel, fileId: string, optionalArgs: object): Drive.Schema.Channel;
watch(
resource: Schema.Channel,
fileId: string,
optionalArgs: Record<string, any>,
): Drive.Schema.Channel;
}

@@ -179,3 +188,3 @@ interface ParentsCollection {

fileId: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.ParentReference;

@@ -191,3 +200,3 @@ // Lists a file's parents.

// Gets a permission by ID.
get(fileId: string, permissionId: string, optionalArgs: object): Drive.Schema.Permission;
get(fileId: string, permissionId: string, optionalArgs: Record<string, any>): Drive.Schema.Permission;
// Returns the permission ID for an email address.

@@ -198,7 +207,11 @@ getIdForEmail(email: string): Drive.Schema.PermissionId;

// Inserts a permission for a file or Team Drive.
insert(resource: Schema.Permission, fileId: string, optionalArgs: object): Drive.Schema.Permission;
insert(
resource: Schema.Permission,
fileId: string,
optionalArgs: Record<string, any>,
): Drive.Schema.Permission;
// Lists a file's or Team Drive's permissions.
list(fileId: string): Drive.Schema.PermissionList;
// Lists a file's or Team Drive's permissions.
list(fileId: string, optionalArgs: object): Drive.Schema.PermissionList;
list(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.PermissionList;
// Updates a permission using patch semantics.

@@ -211,3 +224,3 @@ patch(resource: Schema.Permission, fileId: string, permissionId: string): Drive.Schema.Permission;

permissionId: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.Permission;

@@ -217,3 +230,3 @@ // Deletes a permission from a file or Team Drive.

// Deletes a permission from a file or Team Drive.
remove(fileId: string, permissionId: string, optionalArgs: object): void;
remove(fileId: string, permissionId: string, optionalArgs: Record<string, any>): void;
// Updates a permission.

@@ -226,3 +239,3 @@ update(resource: Schema.Permission, fileId: string, permissionId: string): Drive.Schema.Permission;

permissionId: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.Permission;

@@ -234,3 +247,3 @@ }

// Gets a property by its key.
get(fileId: string, propertyKey: string, optionalArgs: object): Drive.Schema.Property;
get(fileId: string, propertyKey: string, optionalArgs: Record<string, any>): Drive.Schema.Property;
// Adds a property to a file, or updates it if it already exists.

@@ -247,3 +260,3 @@ insert(resource: Schema.Property, fileId: string): Drive.Schema.Property;

propertyKey: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.Property;

@@ -253,3 +266,3 @@ // Deletes a property.

// Deletes a property.
remove(fileId: string, propertyKey: string, optionalArgs: object): void;
remove(fileId: string, propertyKey: string, optionalArgs: Record<string, any>): void;
// Updates a property.

@@ -262,3 +275,3 @@ update(resource: Schema.Property, fileId: string, propertyKey: string): Drive.Schema.Property;

propertyKey: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.Property;

@@ -270,3 +283,3 @@ }

// Exports the contents of the Realtime API data model associated with this file as JSON.
get(fileId: string, optionalArgs: object): void;
get(fileId: string, optionalArgs: Record<string, any>): void;
// Overwrites the Realtime API data model associated with this file with the provided JSON data model.

@@ -277,3 +290,3 @@ update(fileId: string): void;

// Overwrites the Realtime API data model associated with this file with the provided JSON data model.
update(fileId: string, mediaData: any, optionalArgs: object): void;
update(fileId: string, mediaData: any, optionalArgs: Record<string, any>): void;
}

@@ -288,3 +301,3 @@ interface RepliesCollection {

replyId: string,
optionalArgs: object,
optionalArgs: Record<string, any>,
): Drive.Schema.CommentReply;

@@ -296,3 +309,7 @@ // Creates a new reply to the given comment.

// Lists all of the replies to a comment.
list(fileId: string, commentId: string, optionalArgs: object): Drive.Schema.CommentReplyList;
list(
fileId: string,
commentId: string,
optionalArgs: Record<string, any>,
): Drive.Schema.CommentReplyList;
// Updates an existing reply. This method supports patch semantics.

@@ -321,3 +338,3 @@ patch(

// Lists a file's revisions.
list(fileId: string, optionalArgs: object): Drive.Schema.RevisionList;
list(fileId: string, optionalArgs: Record<string, any>): Drive.Schema.RevisionList;
// Updates a revision. This method supports patch semantics.

@@ -334,3 +351,3 @@ patch(resource: Schema.Revision, fileId: string, revisionId: string): Drive.Schema.Revision;

// Gets a Team Drive's metadata by ID.
get(teamDriveId: string, optionalArgs: object): Drive.Schema.TeamDrive;
get(teamDriveId: string, optionalArgs: Record<string, any>): Drive.Schema.TeamDrive;
// Creates a new Team Drive.

@@ -341,3 +358,3 @@ insert(resource: Schema.TeamDrive, requestId: string): Drive.Schema.TeamDrive;

// Lists the user's Team Drives.
list(optionalArgs: object): Drive.Schema.TeamDriveList;
list(optionalArgs: Record<string, any>): Drive.Schema.TeamDriveList;
// Permanently deletes a Team Drive for which the user is an organizer. The Team Drive cannot contain any untrashed items.

@@ -348,3 +365,7 @@ remove(teamDriveId: string): void;

// Updates a Team Drive's metadata
update(resource: Schema.TeamDrive, teamDriveId: string, optionalArgs: object): Drive.Schema.TeamDrive;
update(
resource: Schema.TeamDrive,
teamDriveId: string,
optionalArgs: Record<string, any>,
): Drive.Schema.TeamDrive;
}

@@ -488,3 +509,3 @@ }

kind?: string | undefined;
params?: object | undefined;
params?: Record<string, string> | undefined;
payload?: boolean | undefined;

@@ -623,3 +644,3 @@ resourceId?: string | undefined;

explicitlyTrashed?: boolean | undefined;
exportLinks?: object | undefined;
exportLinks?: Record<string, string> | undefined;
fileExtension?: string | undefined;

@@ -647,3 +668,3 @@ fileSize?: string | undefined;

modifiedDate?: string | undefined;
openWithLinks?: object | undefined;
openWithLinks?: Record<string, string> | undefined;
originalFilename?: string | undefined;

@@ -847,3 +868,3 @@ ownedByMe?: boolean | undefined;

etag?: string | undefined;
exportLinks?: object | undefined;
exportLinks?: Record<string, string> | undefined;
fileSize?: string | undefined;

@@ -850,0 +871,0 @@ id?: string | undefined;

{
"name": "@types/google-apps-script",
"version": "1.0.87",
"version": "1.0.88",
"description": "TypeScript definitions for google-apps-script",

@@ -39,4 +39,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-apps-script",

"peerDependencies": {},
"typesPublisherContentHash": "3286fa04ce389eef1fa5d0f8ec423da39bae4c7048cc3687421c01119ba85e17",
"typesPublisherContentHash": "4a9e91d6fa3bc223dc79ec68f562b9046e06e62380d6a04dea04a401b281aa4e",
"typeScriptVersion": "5.0"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 26 Dec 2024 02:02:50 GMT
* Last updated: Thu, 26 Dec 2024 15:33:03 GMT
* Dependencies: none

@@ -14,0 +14,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc