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