1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { GroupsService } from "../groups-service/groups-service";
6 import { ProjectResource } from "~/models/project";
7 import { GroupClass } from "~/models/group";
8 import { ListArguments } from "~/services/common-service/common-resource-service";
9 import { FilterBuilder, joinFilters } from "~/services/api/filter-builder";
11 export class ProjectService extends GroupsService<ProjectResource> {
13 create(data: Partial<ProjectResource>) {
14 const projectData = { ...data, groupClass: GroupClass.PROJECT };
15 return super.create(projectData);
18 list(args: ListArguments = {}) {
24 .addEqual("groupClass", GroupClass.PROJECT)