projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18866: Fixes the bug.
[arvados-workbench2.git]
/
src
/
models
/
collection.ts
diff --git
a/src/models/collection.ts
b/src/models/collection.ts
index 53c6230143b9a78c8881d8b92baeb5e4ea305c1d..3effe6724847485185fb6d15c8043fe90baac69c 100644
(file)
--- a/
src/models/collection.ts
+++ b/
src/models/collection.ts
@@
-2,13
+2,16
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { ResourceKind, TrashableResource } from "./resource";
+import {
+ ResourceKind,
+ TrashableResource,
+ ResourceWithProperties
+} from "./resource";
-export interface CollectionResource extends TrashableResource {
+export interface CollectionResource extends TrashableResource
, ResourceWithProperties
{
kind: ResourceKind.COLLECTION;
name: string;
description: string;
kind: ResourceKind.COLLECTION;
name: string;
description: string;
- properties: any;
portableDataHash: string;
manifestText: string;
replicationDesired: number;
portableDataHash: string;
manifestText: string;
replicationDesired: number;
@@
-17,8
+20,20
@@
export interface CollectionResource extends TrashableResource {
storageClassesDesired: string[];
storageClassesConfirmed: string[];
storageClassesConfirmedAt: string;
storageClassesDesired: string[];
storageClassesConfirmed: string[];
storageClassesConfirmedAt: string;
+ currentVersionUuid: string;
+ version: number;
+ preserveVersion: boolean;
+ unsignedManifestText?: string;
+ fileCount: number;
+ fileSizeTotal: number;
}
export const getCollectionUrl = (uuid: string) => {
return `/collections/${uuid}`;
};
}
export const getCollectionUrl = (uuid: string) => {
return `/collections/${uuid}`;
};
+
+export enum CollectionType {
+ GENERAL = 'nil',
+ OUTPUT = 'output',
+ LOG = 'log',
+}