//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource } from "./resource";
+import { ResourceKind, TrashableResource } from "./resource";
-export interface Collection extends Resource {
+export interface CollectionResource extends TrashableResource {
+ kind: ResourceKind.COLLECTION;
+ name: string;
+ description: string;
+ properties: any;
+ portableDataHash: string;
+ manifestText: string;
+ replicationDesired: number;
+ replicationConfirmed: number;
+ replicationConfirmedAt: string;
+ storageClassesDesired: string[];
+ storageClassesConfirmed: string[];
+ storageClassesConfirmedAt: string;
}
+
+export const getCollectionUrl = (uuid: string) => {
+ return `/collections/${uuid}`;
+};