diff --git a/package.json b/package.json index 4087532..34202ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@internxt/sdk", - "version": "1.4.48", + "version": "1.4.49", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", diff --git a/src/drive/share/index.ts b/src/drive/share/index.ts index d1ee6f9..63bebff 100644 --- a/src/drive/share/index.ts +++ b/src/drive/share/index.ts @@ -267,17 +267,14 @@ export class Share { ); } - /** + /** * Get the role of a user on a folder. * * @param {string} options.sharingId - The unique identifier of the sharing. * @returns {Promise} A promise containing the role of the current user in the sharing. */ - public getUserRole(sharingId : string): Promise { - return this.client.get( - `sharings/${sharingId}/role`, - this.headers(), - ); + public getUserRole(sharingId: string): Promise { + return this.client.get(`sharings/${sharingId}/role`, this.headers()); } /** @@ -357,6 +354,10 @@ export class Share { * @param {string} options.encryptionAlgorithm - Encryption algorithm used to encrypt the encryption key. This field should not be empty if the invitation type is "OWNER". * @param {string} options.type - Owner's encryption key encrypted with the invited user's public key. * @param {string} options.roleId - The id of the role to assign to the user. + * @param {string} options.notifyUser - If it has to notify the users + * @param {string} options.notificationMessage - Message of the notificacion + * + * * @returns {Promise} A promise that resolves when the folder is shared with the user. */ diff --git a/src/drive/share/types.ts b/src/drive/share/types.ts index 6b1bf54..b6c8cff 100644 --- a/src/drive/share/types.ts +++ b/src/drive/share/types.ts @@ -159,6 +159,8 @@ export type ListAllSharedFoldersResponse = { export type ShareFolderWithUserPayload = { itemId: string; itemType: 'folder' | 'file'; + notifyUser: boolean; + notificationMessage?: string; sharedWith: string; encryptionKey?: string; encryptionAlgorithm?: string;