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-service";
9 import { FilterBuilder, joinFilters } from "~/services/api/filter-builder";
10 export class ProjectService extends GroupsService<ProjectResource> {
12 create(data: Partial<ProjectResource>) {
13 const projectData = { ...data, groupClass: GroupClass.PROJECT };
14 return super.create(projectData);
17 list(args: ListArguments = {}) {
23 .addEqual("group_class", GroupClass.PROJECT)