1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
11 export interface CollectionResource extends TrashableResource, ResourceWithProperties {
12 kind: ResourceKind.COLLECTION;
15 portableDataHash: string;
17 replicationDesired: number;
18 replicationConfirmed: number;
19 replicationConfirmedAt: string;
20 storageClassesDesired: string[];
21 storageClassesConfirmed: string[];
22 storageClassesConfirmedAt: string;
23 currentVersionUuid: string;
25 preserveVersion: boolean;
26 unsignedManifestText?: string;
28 fileSizeTotal: number;
31 // We exclude 'manifestText' and 'unsignedManifestText' from the default
32 export const defaultCollectionSelectedFields = [
37 'replicationConfirmed',
38 'replicationConfirmedAt',
39 'storageClassesDesired',
40 'storageClassesConfirmed',
41 'storageClassesConfirmedAt',
47 // ResourceWithProperties field
49 // TrashableResource fields
57 'modifiedByClientUuid',
65 export const getCollectionUrl = (uuid: string) => {
66 return `/collections/${uuid}`;
69 export enum CollectionType {
73 INTERMEDIATE = 'intermediate',