projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15020-collection-with-the-same-content-adress'
[arvados-workbench2.git]
/
src
/
models
/
collection.ts
diff --git
a/src/models/collection.ts
b/src/models/collection.ts
index 0e96f7fd3dd6f1473f62d8c2a2e3226aa42f6507..ca2b4b36d6965e42cba58467bf7041f9beee85b4 100644
(file)
--- a/
src/models/collection.ts
+++ b/
src/models/collection.ts
@@
-2,9
+2,9
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource
, ResourceKind
} from "./resource";
+import { Resource
Kind, TrashableResource
} from "./resource";
-export interface CollectionResource extends Resource {
+export interface CollectionResource extends
Trashable
Resource {
kind: ResourceKind.COLLECTION;
name: string;
description: string;
kind: ResourceKind.COLLECTION;
name: string;
description: string;
@@
-14,11
+14,21
@@
export interface CollectionResource extends Resource {
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
- trashAt: string;
- deleteAt: string;
- isTrashed: boolean;
+ storageClassesDesired: string[];
+ storageClassesConfirmed: string[];
+ storageClassesConfirmedAt: string;
+ currentVersionUuid: string;
+ version: number;
+ preserveVersion: boolean;
+ unsignedManifestText?: string;
}
export const getCollectionUrl = (uuid: string) => {
return `/collections/${uuid}`;
}
export const getCollectionUrl = (uuid: string) => {
return `/collections/${uuid}`;
-};
\ No newline at end of file
+};
+
+export enum CollectionType {
+ GENERAL = 'nil',
+ OUTPUT = 'output',
+ LOG = 'log',
+}