mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 22:01:46 +03:00
npm: update metadata types
This commit is contained in:
parent
7f433ae807
commit
8ae3e56b92
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
pkg/arvo/app/landscape/js/bundle/serviceworker.js
Normal file
2
pkg/arvo/app/landscape/js/bundle/serviceworker.js
Normal file
File diff suppressed because one or more lines are too long
1
pkg/arvo/app/landscape/js/bundle/serviceworker.js.map
Normal file
1
pkg/arvo/app/landscape/js/bundle/serviceworker.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user