npm: update metadata types

This commit is contained in:
Liam Fitzgerald 2021-04-30 14:28:31 +10:00
parent 7f433ae807
commit 8ae3e56b92
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB
5 changed files with 98 additions and 1 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,5 @@
import { AppName, Path, Patp } from "../lib";
import {Resource} from "../groups";
export type MetadataUpdate =
MetadataUpdateInitial
@ -67,10 +68,21 @@ export interface Metadata {
'date-created': string;
description: string;
title: string;
module: string;
config: MetadataConfig;
hidden: boolean;
picture: string;
preview: boolean;
vip: PermVariation;
}
export type MetadataConfig = GraphConfig | GroupConfig;
export interface GraphConfig {
graph: string;
}
export interface GroupConfig {
group: undefined | {} | Resource;
}
export type PermVariation = '' | 'reader-comments' | 'member-metadata' | 'host-feed' | 'admin-feed';