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
64 export const getCollectionUrl = (uuid: string) => {
65 return `/collections/${uuid}`;
68 export enum CollectionType {
72 INTERMEDIATE = 'intermediate',