chore: remove tsc build from local workspaces (#2020)
This commit is contained in:
10
packages/api/src/Domain/Client/Workspace/Workspace.ts
Normal file
10
packages/api/src/Domain/Client/Workspace/Workspace.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { WorkspaceType } from '@standardnotes/common'
|
||||
|
||||
export type Workspace = {
|
||||
uuid: string
|
||||
type: WorkspaceType
|
||||
name: string | null
|
||||
keyRotationIndex: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
}
|
||||
16
packages/api/src/Domain/Client/Workspace/WorkspaceUser.ts
Normal file
16
packages/api/src/Domain/Client/Workspace/WorkspaceUser.ts
Normal file
@@ -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
|
||||
}
|
||||
@@ -8,3 +8,5 @@ export * from './WebSocket/WebSocketApiService'
|
||||
export * from './WebSocket/WebSocketApiServiceInterface'
|
||||
export * from './Workspace/WorkspaceApiService'
|
||||
export * from './Workspace/WorkspaceApiServiceInterface'
|
||||
export * from './Workspace/WorkspaceUser'
|
||||
export * from './Workspace/Workspace'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Workspace } from '@standardnotes/models'
|
||||
import { Workspace } from './../../Client/Workspace/Workspace'
|
||||
|
||||
export type WorkspaceListResponseBody = {
|
||||
ownedWorkspaces: Array<Workspace>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { WorkspaceUser } from '@standardnotes/models'
|
||||
import { WorkspaceUser } from './../../Client/Workspace/WorkspaceUser'
|
||||
|
||||
export type WorkspaceUserListResponseBody = {
|
||||
users: Array<WorkspaceUser>
|
||||
|
||||
Reference in New Issue
Block a user