Merge branch '16602-wb2-acr-version' refs #16602
[arvados-workbench2.git] / src / models / mount-types.ts
index ec48c852450df5a239a546c3bc4c11c64d72806f..db87db18cd5b12401431d9c03744ce548842da06 100644 (file)
@@ -8,7 +8,7 @@ export enum MountKind {
     TEMPORARY_DIRECTORY = 'tmp',
     KEEP = 'keep',
     MOUNTED_FILE = 'file',
-    JSON = 'JSON'
+    JSON = 'json'
 }
 
 export type MountType =
@@ -16,12 +16,13 @@ export type MountType =
     GitTreeMount |
     TemporaryDirectoryMount |
     KeepMount |
-    JSONMount;
+    JSONMount |
+    FileMount;
 
 export interface CollectionMount {
     kind: MountKind.COLLECTION;
     uuid?: string;
-    portableDataHash?: string;
+    portable_data_hash?: string;
     path?: string;
     writable?: boolean;
 }
@@ -52,5 +53,10 @@ export interface KeepMount {
 
 export interface JSONMount {
     kind: MountKind.JSON;
-    content: string;
+    content: any;
+}
+
+export interface FileMount {
+    kind: MountKind.MOUNTED_FILE;
+    path: string;
 }