refactor: consistent return formats

This commit is contained in:
jamesgeorge007
2024-02-09 12:31:15 +05:30
parent f0f504d10e
commit 1abbdb0fe0
5 changed files with 31 additions and 26 deletions

View File

@@ -39,7 +39,8 @@ export interface WorkspaceProvider {
createRESTRootCollection(
workspaceHandle: HandleRef<Workspace>,
collectionName: string
collectionName: string,
newCollectionID: string
): Promise<E.Either<unknown, HandleRef<WorkspaceCollection>>>
createRESTChildCollection(
parentCollectionHandle: HandleRef<WorkspaceCollection>,
@@ -59,7 +60,7 @@ export interface WorkspaceProvider {
parentCollectionHandle: HandleRef<WorkspaceCollection>,
requestName: string,
openInNewTab: boolean
): Promise<E.Either<unknown, HandleRef<WorkspaceCollection>>>
): Promise<E.Either<unknown, HandleRef<WorkspaceRequest>>>
updateRESTRequest(
requestHandle: HandleRef<WorkspaceRequest>,
updatedRequest: HoppRESTRequest