Add typescript paths to top level folders
[arvados-workbench2.git] / src / services / services.ts
index 9e1adbf6e4e20d8a1f59637ae4a02f356905dc18..427148b41663753fdff62b0a1dd90a54b77b6934 100644 (file)
@@ -2,24 +2,27 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
+import Axios, { AxiosInstance } from "axios";
 import { AuthService } from "./auth-service/auth-service";
 import { GroupsService } from "./groups-service/groups-service";
 import { ProjectService } from "./project-service/project-service";
 import { LinkService } from "./link-service/link-service";
 import { FavoriteService } from "./favorite-service/favorite-service";
-import { AxiosInstance } from "axios";
 import { CollectionService } from "./collection-service/collection-service";
-import Axios from "axios";
+import { TagService } from "./tag-service/tag-service";
 import { CollectionFilesService } from "./collection-files-service/collection-files-service";
+import { KeepService } from "./keep-service/keep-service";
 
 export interface ServiceRepository {
     apiClient: AxiosInstance;
 
     authService: AuthService;
+    keepService: KeepService;
     groupsService: GroupsService;
     projectService: ProjectService;
     linkService: LinkService;
     favoriteService: FavoriteService;
+    tagService: TagService;
     collectionService: CollectionService;
     collectionFilesService: CollectionFilesService;
 }
@@ -29,21 +32,25 @@ export const createServices = (baseUrl: string): ServiceRepository => {
     apiClient.defaults.baseURL = `${baseUrl}/arvados/v1`;
 
     const authService = new AuthService(apiClient, baseUrl);
+    const keepService = new KeepService(apiClient);
     const groupsService = new GroupsService(apiClient);
     const projectService = new ProjectService(apiClient);
     const linkService = new LinkService(apiClient);
     const favoriteService = new FavoriteService(linkService, groupsService);
-    const collectionService = new CollectionService(apiClient);
+    const collectionService = new CollectionService(apiClient, keepService);
+    const tagService = new TagService(linkService);
     const collectionFilesService = new CollectionFilesService(collectionService);
 
     return {
         apiClient,
         authService,
+        keepService,
         groupsService,
         projectService,
         linkService,
         favoriteService,
         collectionService,
+        tagService,
         collectionFilesService
     };
 };