[ARVADOS-WORKBENCH2] updated: 1.1.4-326-g8cc7e73

Git user git at public.curoverse.com
Wed Jul 18 04:21:25 EDT 2018


Summary of changes:
 src/models/link.ts                        | 13 +++++++++++++
 src/services/link-service/link-service.ts | 13 +++++++++++++
 src/services/services.ts                  |  2 ++
 3 files changed, 28 insertions(+)
 create mode 100644 src/models/link.ts
 create mode 100644 src/services/link-service/link-service.ts

       via  8cc7e7304d11fb7940a9c68092c7f614e4e5fcea (commit)
      from  9157a285ebb05c7ff0ae7a457ec5ffece17c3773 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8cc7e7304d11fb7940a9c68092c7f614e4e5fcea
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Wed Jul 18 10:21:09 2018 +0200

    Create Link model and service
    
    Feature #13840
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/models/link.ts b/src/models/link.ts
new file mode 100644
index 0000000..26cce6e
--- /dev/null
+++ b/src/models/link.ts
@@ -0,0 +1,13 @@
+import { Resource } from "./resource";
+
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+export interface Link extends Resource {
+    headUuid: string;
+    tailUuid: string;
+    linkClass: string;
+    name: string;
+    properties: {};
+}
diff --git a/src/services/link-service/link-service.ts b/src/services/link-service/link-service.ts
new file mode 100644
index 0000000..49e6d1f
--- /dev/null
+++ b/src/services/link-service/link-service.ts
@@ -0,0 +1,13 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import CommonResourceService from "../../common/api/common-resource-service";
+import { Link } from "../../models/link";
+import { AxiosInstance } from "../../../node_modules/axios";
+
+export default class LinkService<T extends Link = Link> extends CommonResourceService<T> {
+    constructor(serverApi: AxiosInstance) {
+        super(serverApi, "links");
+    }
+}
\ No newline at end of file
diff --git a/src/services/services.ts b/src/services/services.ts
index 88f6ffa..fbd2f6e 100644
--- a/src/services/services.ts
+++ b/src/services/services.ts
@@ -6,7 +6,9 @@ import AuthService from "./auth-service/auth-service";
 import GroupsService from "./groups-service/groups-service";
 import { serverApi } from "../common/api/server-api";
 import ProjectService from "./project-service/project-service";
+import LinkService from "./link-service/link-service";
 
 export const authService = new AuthService(serverApi);
 export const groupsService = new GroupsService(serverApi);
 export const projectService = new ProjectService(serverApi);
+export const linkService = new LinkService(serverApi);

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list