22 lines
597 B
TypeScript
22 lines
597 B
TypeScript
import { String, Text } from 'oak-domain/lib/types/DataType';
|
|
import { Schema as User } from './User';
|
|
import { Schema as System } from './System';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
declare type MesageParams = {
|
|
pathname: string;
|
|
props: Record<string, any>;
|
|
state: Record<string, any>;
|
|
};
|
|
export interface Schema extends EntityShape {
|
|
user: User;
|
|
system: System;
|
|
type: String<16>;
|
|
weight: 'high' | 'medium' | 'low' | 'data';
|
|
title: String<32>;
|
|
content: Text;
|
|
props: Object;
|
|
data: Object;
|
|
params?: MesageParams;
|
|
}
|
|
export {};
|