@internxt/sdk 1.17.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -233,15 +233,6 @@ export declare class Share {
|
|
|
233
233
|
validateInviteExpiration(invitationId: string): Promise<{
|
|
234
234
|
uuid: string;
|
|
235
235
|
}>;
|
|
236
|
-
/**
|
|
237
|
-
* Share a private folder with a user.
|
|
238
|
-
* @param {string} invitationId - The id of the invitation.
|
|
239
|
-
* @param {ShareFolderWithUserPayload} options - The options for sharing the private folder with a user.
|
|
240
|
-
* @param {string} options.encryptionKey - The encryption key (just in case the invitation is a request).
|
|
241
|
-
* @param {string} options.itemType - The encryption algorithm (just in case the invitation is a request).
|
|
242
|
-
|
|
243
|
-
* @returns {Promise<void>} A promise that resolves when the folder is shared with the user.
|
|
244
|
-
*/
|
|
245
236
|
acceptSharedFolderInvite({ invitationId, acceptInvite, token, }: {
|
|
246
237
|
invitationId: string;
|
|
247
238
|
acceptInvite?: AcceptInvitationToSharedFolderPayload;
|
|
@@ -358,19 +358,10 @@ class Share {
|
|
|
358
358
|
validateInviteExpiration(invitationId) {
|
|
359
359
|
return this.client.get(`sharings/invites/${invitationId}/validate`, this.headers());
|
|
360
360
|
}
|
|
361
|
-
/**
|
|
362
|
-
* Share a private folder with a user.
|
|
363
|
-
* @param {string} invitationId - The id of the invitation.
|
|
364
|
-
* @param {ShareFolderWithUserPayload} options - The options for sharing the private folder with a user.
|
|
365
|
-
* @param {string} options.encryptionKey - The encryption key (just in case the invitation is a request).
|
|
366
|
-
* @param {string} options.itemType - The encryption algorithm (just in case the invitation is a request).
|
|
367
|
-
|
|
368
|
-
* @returns {Promise<void>} A promise that resolves when the folder is shared with the user.
|
|
369
|
-
*/
|
|
370
361
|
acceptSharedFolderInvite({ invitationId, acceptInvite, token, }) {
|
|
371
362
|
const headers = this.getRequestHeaders(token);
|
|
372
363
|
return this.client.post(`sharings/invites/${invitationId}/accept`, {
|
|
373
|
-
acceptInvite,
|
|
364
|
+
...acceptInvite,
|
|
374
365
|
}, headers);
|
|
375
366
|
}
|
|
376
367
|
/**
|
|
@@ -213,6 +213,7 @@ export type PublicSharedItemInfo = {
|
|
|
213
213
|
export type AcceptInvitationToSharedFolderPayload = {
|
|
214
214
|
encryptionKey: string;
|
|
215
215
|
encryptionAlgorithm: string;
|
|
216
|
+
roleId?: string;
|
|
216
217
|
};
|
|
217
218
|
export type PrivateSharingRole = {
|
|
218
219
|
id: string;
|
|
@@ -356,6 +357,13 @@ export type SharingInvite = {
|
|
|
356
357
|
roleId: string;
|
|
357
358
|
createdAt: Date;
|
|
358
359
|
updatedAt: Date;
|
|
360
|
+
invited: {
|
|
361
|
+
avatar: string | null;
|
|
362
|
+
email: string;
|
|
363
|
+
lastname?: string;
|
|
364
|
+
name: string;
|
|
365
|
+
uuid: string;
|
|
366
|
+
};
|
|
359
367
|
};
|
|
360
368
|
export type SharingMeta = {
|
|
361
369
|
id: string;
|