Updated metadata config definition

This commit is contained in:
Tyler Brown Cifu Shuster 2021-05-04 17:06:22 -07:00
parent c99c443514
commit c0c2f31bd7

View File

@ -1,3 +1,4 @@
import { Resource } from "..";
import { AppName, Path, Patp } from "../lib";
export type MetadataUpdate =
@ -65,11 +66,20 @@ export interface Metadata {
'date-created': string;
description: string;
title: string;
config: { graph: string };
config: MetadataConfig;
picture: string;
hidden: boolean;
preview: boolean;
vip: PermVariation;
}
type MetadataConfig = GroupConfig | GraphConfig;
interface GroupConfig {
group: null | {} | Resource;
}
interface GraphConfig {
graph: string;
}
export type PermVariation = '' | 'reader-comments' | 'member-metadata' | 'host-feed' | 'admin-feed';