-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add listing workspace users
- Loading branch information
Karol Sójko
committed
Oct 11, 2022
1 parent
7a43e2d
commit fb41f65
Showing
30 changed files
with
190 additions
and
44 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+38.8 KB
...mmon-npm-1.36.1-8fadd25f7f-4f2367d461.zip → ...mmon-npm-1.39.0-1e36e2ef74-92cfad04a6.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ export enum WorkspaceApiOperations { | |
Inviting, | ||
Accepting, | ||
ListingWorkspaces, | ||
ListingWorkspaceUsers, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/api/src/Domain/Request/Workspace/WorkspaceInvitationRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
import { Uuid, WorkspaceAccessLevel } from '@standardnotes/common' | ||
|
||
export type WorkspaceInvitationRequestParams = { | ||
workspaceUuid: Uuid | ||
inviteeEmail: string | ||
accessLevel: string | ||
accessLevel: WorkspaceAccessLevel | ||
[additionalParam: string]: unknown | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/api/src/Domain/Request/Workspace/WorkspaceUserListRequestParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Uuid } from '@standardnotes/common' | ||
|
||
export type WorkspaceUserListRequestParams = { | ||
workspaceUuid: Uuid | ||
[additionalParam: string]: unknown | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/api/src/Domain/Response/Workspace/WorkspaceUserListResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Either } from '@standardnotes/common' | ||
|
||
import { HttpErrorResponseBody } from '../../Http/HttpErrorResponseBody' | ||
import { HttpResponse } from '../../Http/HttpResponse' | ||
import { WorkspaceUserListResponseBody } from './WorkspaceUserListResponseBody' | ||
|
||
export interface WorkspaceUserListResponse extends HttpResponse { | ||
data: Either<WorkspaceUserListResponseBody, HttpErrorResponseBody> | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/api/src/Domain/Response/Workspace/WorkspaceUserListResponseBody.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WorkspaceUser } from '@standardnotes/models' | ||
|
||
export type WorkspaceUserListResponseBody = { | ||
users: Array<WorkspaceUser> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Uuid, WorkspaceAccessLevel, WorkspaceUserStatus } from '@standardnotes/common' | ||
|
||
export type WorkspaceUser = { | ||
uuid: Uuid | ||
accessLevel: WorkspaceAccessLevel | ||
userUuid: Uuid | ||
userDisplayName: string | null | ||
workspaceUuid: Uuid | ||
encryptedWorkspaceKey: string | null | ||
publicKey: string | null | ||
encryptedPrivateKey: string | null | ||
status: WorkspaceUserStatus | ||
keyRotationIndex: number | ||
createdAt: number | ||
updatedAt: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.