15781: Uses 'contains' or 'ilike' on prop searches depending on API revision.
[arvados-workbench2.git] / src / services / user-service / user-service.ts
index a69203dc5bece0c4c3e1f29aceba92c3de998849..d8c7fe3d94f24d6a9f276947dc58a56ef11c9c81 100644 (file)
@@ -11,4 +11,20 @@ export class UserService extends CommonResourceService<UserResource> {
     constructor(serverApi: AxiosInstance, actions: ApiActions) {
         super(serverApi, "users", actions);
     }
+
+    activate(uuid: string) {
+        return CommonResourceService.defaultResponse(
+            this.serverApi
+                .post(this.resourceType + `/${uuid}/activate`),
+            this.actions
+        );
+    }
+
+    unsetup(uuid: string) {
+        return CommonResourceService.defaultResponse(
+            this.serverApi
+                .post(this.resourceType + `/${uuid}/unsetup`),
+            this.actions
+        );
+    }
 }