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 { AppName, Path, Patp } from "../lib";
import {Resource} from "../groups";
export type MetadataUpdate = export type MetadataUpdate =
MetadataUpdateInitial MetadataUpdateInitial
@ -67,10 +68,21 @@ export interface Metadata {
'date-created': string; 'date-created': string;
description: string; description: string;
title: string; title: string;
module: string; config: MetadataConfig;
hidden: boolean;
picture: string; picture: string;
preview: boolean; preview: boolean;
vip: PermVariation; 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'; export type PermVariation = '' | 'reader-comments' | 'member-metadata' | 'host-feed' | 'admin-feed';