feat: should be able to access shared item revisions as third party user (#807)

This commit is contained in:
Karol Sójko
2023-09-06 15:36:23 +02:00
committed by GitHub
parent 14d42b26bb
commit 794cd8734a
92 changed files with 1725 additions and 265 deletions
@@ -7,7 +7,9 @@ import {
NotificationAddedForUserEvent,
RevisionsCopyRequestedEvent,
TransitionStatusUpdatedEvent,
UserAddedToSharedVaultEvent,
UserInvitedToSharedVaultEvent,
UserRemovedFromSharedVaultEvent,
WebSocketMessageRequestedEvent,
} from '@standardnotes/domain-events'
@@ -80,4 +82,15 @@ export interface DomainEventFactoryInterface {
userUuid: string,
dto: { originalItemUuid: string; newItemUuid: string; roleNames: string[] },
): RevisionsCopyRequestedEvent
createUserAddedToSharedVaultEvent(dto: {
sharedVaultUuid: string
userUuid: string
permission: string
createdAt: number
updatedAt: number
}): UserAddedToSharedVaultEvent
createUserRemovedFromSharedVaultEvent(dto: {
sharedVaultUuid: string
userUuid: string
}): UserRemovedFromSharedVaultEvent
}