//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource } from "./resource";
+import { Resource, ResourceKind } from "./resource";
-export interface Collection extends Resource {
+export interface CollectionResource extends Resource {
+ kind: ResourceKind.COLLECTION;
+ name: string;
+ description: string;
+ properties: any;
+ portableDataHash: string;
+ manifestText: string;
+ replicationDesired: number;
+ replicationConfirmed: number;
+ replicationConfirmedAt: string;
+ trashAt: string;
+ deleteAt: string;
+ isTrashed: boolean;
}
+
+export const getCollectionUrl = (uuid: string) => {
+ return `/collections/${uuid}`;
+};
\ No newline at end of file