X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3583b37935585f9b19605d98c47ccef73c23cb15..4e862392eae3d1a1846b3f33c6e29f4e68c31aca:/src/services/user-service/user-service.ts diff --git a/src/services/user-service/user-service.ts b/src/services/user-service/user-service.ts index e6560c84..97cb3c71 100644 --- a/src/services/user-service/user-service.ts +++ b/src/services/user-service/user-service.ts @@ -6,6 +6,7 @@ import { AxiosInstance } from "axios"; import { CommonResourceService } from "services/common-service/common-resource-service"; import { UserResource } from "models/user"; import { ApiActions } from "services/api/api-actions"; +import { ListResults } from "services/common-service/common-service"; export class UserService extends CommonResourceService { constructor(serverApi: AxiosInstance, actions: ApiActions, readOnlyFields: string[] = []) { @@ -24,8 +25,16 @@ export class UserService extends CommonResourceService { ); } + setup(uuid: string) { + return CommonResourceService.defaultResponse>( + this.serverApi + .post(this.resourceType + `/setup`, {}, { params: { uuid } }), + this.actions + ); + } + unsetup(uuid: string) { - return CommonResourceService.defaultResponse( + return CommonResourceService.defaultResponse( this.serverApi .post(this.resourceType + `/${uuid}/unsetup`), this.actions