macoolka-type-model
Version:
`macoolka-type-model` is a library for define model in TypeScript. It easily build a type contain field and method to your Application. It provide a generation model for type and validition
1,683 lines • 101 kB
TypeScript
/**
* Code generated by github.com/macoolka/macoolka-gen-model, DO NOT EDIT.
* @since 0.2.0
*/
import * as t from '../io';
export interface OrderElement {
element?: string;
elements?: Array<OrderElement>;
}
/**
* The element collection
* @desczh
* 渲染要素集合
* @since 0.2.0
*/
export declare const Elements: t.Type<any>;
/**
* Type have a page information
* @desczh
* 单独页面
* @since 0.2.0
*/
export declare const Pageable: t.PartialC<{
/**
* The page url
* @desczh
* 页面url
* @since 0.2.0
*/
href: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>;
/**
* Type have a icon field
* @desczh
* 有一个图标字段
* @since 0.2.0
*/
export declare const Iconable: t.PartialC<{
/**
* Icon name
* @desczh
* 图标名称
* @since 0.2.0
*/
icon: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>;
/**
* @since 0.2.0
*/
export declare const Formable: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* The page url
* @desczh
* 页面url
* @since 0.2.0
*/
href: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Icon name
* @desczh
* 图标名称
* @since 0.2.0
*/
icon: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Contain query condition element
* @desczh
* 输入容器
* @since 0.2.0
*/
input: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
style: t.KeyofC<{
Add: string;
Edit: string;
Setting: string;
Display: string;
}>;
/**
* Execute submit action after change event
* @desczh
* 当数据改变事件触发后执行submit动作
* @since 0.2.0
*/
changeSubmit: t.Type<boolean, boolean, unknown>;
/**
* Execute submit action after init action execute when the render is ready
* @desczh
* 当渲染完毕后以及初始化动作完成后执行submit动作
* @since 0.2.0
*/
autoSubmit: t.Type<boolean, boolean, unknown>;
/**
* @since 0.2.0
*/
actions: t.Type<any[], any[], unknown>;
/**
* Get data from input element and execute submit action
* @desczh
* 提交动作表示从input中得到对应数据并执行预定义方法
* @since 0.2.0
*/
submitAction: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* The action mean init input element.Excute when the render is ready
* @desczh
* 初始化数据,渲染完成后自动执行
* @since 0.2.0
*/
initAction: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* The action mean init data.Excute on server render
* @desczh
* 初始化查询条件,服务器端自动执行
* @since 0.2.0
*/
initActionOnServer: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* Show the info when submit success
* @desczh
* 显示这个信息在提交成功后
* @since 0.2.0
*/
success: t.Type<string[], string[], unknown>;
/**
* i18n success
* @desczh
* 国际化成功消息
* @since 0.2.0
*/
successes: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
}>]>;
/**
* @since 0.2.0
*/
export declare const MutationForm: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* The page url
* @desczh
* 页面url
* @since 0.2.0
*/
href: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Icon name
* @desczh
* 图标名称
* @since 0.2.0
*/
icon: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Contain query condition element
* @desczh
* 输入容器
* @since 0.2.0
*/
input: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
style: t.KeyofC<{
Add: string;
Edit: string;
Setting: string;
Display: string;
}>;
/**
* Execute submit action after change event
* @desczh
* 当数据改变事件触发后执行submit动作
* @since 0.2.0
*/
changeSubmit: t.Type<boolean, boolean, unknown>;
/**
* Execute submit action after init action execute when the render is ready
* @desczh
* 当渲染完毕后以及初始化动作完成后执行submit动作
* @since 0.2.0
*/
autoSubmit: t.Type<boolean, boolean, unknown>;
/**
* @since 0.2.0
*/
actions: t.Type<any[], any[], unknown>;
/**
* Get data from input element and execute submit action
* @desczh
* 提交动作表示从input中得到对应数据并执行预定义方法
* @since 0.2.0
*/
submitAction: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* The action mean init input element.Excute when the render is ready
* @desczh
* 初始化数据,渲染完成后自动执行
* @since 0.2.0
*/
initAction: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* The action mean init data.Excute on server render
* @desczh
* 初始化查询条件,服务器端自动执行
* @since 0.2.0
*/
initActionOnServer: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* Show the info when submit success
* @desczh
* 显示这个信息在提交成功后
* @since 0.2.0
*/
success: t.Type<string[], string[], unknown>;
/**
* i18n success
* @desczh
* 国际化成功消息
* @since 0.2.0
*/
successes: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
}>]>, t.TypeC<{
/**
* The _kind is a tag that check which Type be used.
* @desczh
* 标签判断哪一个Type被使用
* @since 0.2.0
*/
_kind: t.Type<"mutation", "mutation", unknown>;
}>]>;
/**
* @since 0.2.0
*/
export declare const QueryForm: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* The page url
* @desczh
* 页面url
* @since 0.2.0
*/
href: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Icon name
* @desczh
* 图标名称
* @since 0.2.0
*/
icon: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Contain query condition element
* @desczh
* 输入容器
* @since 0.2.0
*/
input: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
style: t.KeyofC<{
Add: string;
Edit: string;
Setting: string;
Display: string;
}>;
/**
* Execute submit action after change event
* @desczh
* 当数据改变事件触发后执行submit动作
* @since 0.2.0
*/
changeSubmit: t.Type<boolean, boolean, unknown>;
/**
* Execute submit action after init action execute when the render is ready
* @desczh
* 当渲染完毕后以及初始化动作完成后执行submit动作
* @since 0.2.0
*/
autoSubmit: t.Type<boolean, boolean, unknown>;
/**
* @since 0.2.0
*/
actions: t.Type<any[], any[], unknown>;
/**
* Get data from input element and execute submit action
* @desczh
* 提交动作表示从input中得到对应数据并执行预定义方法
* @since 0.2.0
*/
submitAction: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* The action mean init input element.Excute when the render is ready
* @desczh
* 初始化数据,渲染完成后自动执行
* @since 0.2.0
*/
initAction: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* The action mean init data.Excute on server render
* @desczh
* 初始化查询条件,服务器端自动执行
* @since 0.2.0
*/
initActionOnServer: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* Show the info when submit success
* @desczh
* 显示这个信息在提交成功后
* @since 0.2.0
*/
success: t.Type<string[], string[], unknown>;
/**
* i18n success
* @desczh
* 国际化成功消息
* @since 0.2.0
*/
successes: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
}>]>, t.IntersectionC<[t.TypeC<{
/**
* The _kind is a tag that check which Type be used.
* @desczh
* 标签判断哪一个Type被使用
* @since 0.2.0
*/
_kind: t.Type<"query", "query", unknown>;
}>, t.PartialC<{
/**
* Contain query condition element
* @desczh
* 查询结果
* @since 0.2.0
*/
result: t.Type<any[], any[], unknown>;
}>]>]>;
/**
* The card
* @desczh
*
* @since 0.2.0
*/
export declare const Card: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* The page url
* @desczh
* 页面url
* @since 0.2.0
*/
href: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.IntersectionC<[t.TypeC<{
/**
* The _kind is a tag that check which Type be used.
* @desczh
* 标签判断哪一个Type被使用
* @since 0.2.0
*/
_kind: t.Type<"card", "card", unknown>;
}>, t.PartialC<{
/**
* @since 0.2.0
*/
type: t.KeyofC<{
Add: string;
Edit: string;
Setting: string;
Display: string;
Manager: string;
Home: string;
Form: string;
App: string;
Grid: string;
Group: string;
}>;
/**
* @since 0.2.0
*/
image: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* @since 0.2.0
*/
elements: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
actions: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
links: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
mainActions: t.Type<any[], any[], unknown>;
/**
* @since 0.2.0
*/
moreActions: t.Type<any[], any[], unknown>;
}>]>]>;
/**
* @since 0.2.0
*/
export declare const Action: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Icon name
* @desczh
* 图标名称
* @since 0.2.0
*/
icon: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.IntersectionC<[t.TypeC<{
/**
* The _kind is a tag that check which Type be used.
* @desczh
* 标签判断哪一个Type被使用
* @since 0.2.0
*/
_kind: t.Type<"action", "action", unknown>;
}>, t.PartialC<{
/**
* action type
* @desczh
* 动作类型
* @since 0.2.0
*/
actionType: t.KeyofC<{
Load: string;
Loads: string;
Query: string;
QueryReset: string;
Reset: string;
QueryMore: string;
LoadWithID: string;
OpenWithID: string;
DeleteWithID: string;
UploadImage: string;
UploadFile: string;
Search: string;
Submit: string;
Link: string;
}>;
/**
* link url
* @desczh
* 链接url
* @since 0.2.0
*/
link: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
/**
* action target
* @desczh
* 动作目标
* @since 0.2.0
*/
target: t.Type<"Main" | "NewPage" | "Dialog", "Main" | "NewPage" | "Dialog", unknown>;
}>]>]>;
/**
* The used with field when render
* @desczh
* 字段渲染时对应的组件
* @since 0.2.0
*/
export declare const FieldElement: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.PartialC<{
/**
* Icon name
* @desczh
* 图标名称
* @since 0.2.0
*/
icon: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.IntersectionC<[t.TypeC<{
/**
* The _kind is a tag that check which Type be used.
* @desczh
* 标签判断哪一个Type被使用
* @since 0.2.0
*/
_kind: t.Type<"fieldElement", "fieldElement", unknown>;
}>, t.PartialC<{
/**
* The Field used on render
* @desczh
* 对应字段
* @since 0.2.0
*/
field: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.IntersectionC<[t.TypeC<{
deprecated: t.Type<boolean, boolean, unknown>;
ignore: t.Type<boolean, boolean, unknown>;
examples: t.Type<string[], string[], unknown>;
reason: t.Type<string[], string[], unknown>;
path: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
signature: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>]>]>, t.TypeC<{
type: t.Type<"string" | "number" | "boolean" | "int" | "datetime" | "json" | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "enum";
values: string[];
} & {
ivalues?: {
[x: string]: any;
} | undefined;
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "string";
} & {
defaultValue?: string | undefined;
minLength?: t.Branded<number, t.IntBrand> | undefined;
maxLength?: t.Branded<number, t.IntBrand> | undefined;
pattern?: string | undefined;
rows?: string | undefined;
format?: "UUID" | "EMail" | "IPV4" | "IPV6" | "URL" | "Search" | "Password" | "TextArea" | "Icon" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "number";
} & {
defaultValue?: number | undefined;
maximum?: number | undefined;
minimum?: number | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "int";
} & {
defaultValue?: number | undefined;
maximum?: t.Branded<number, t.IntBrand> | undefined;
minimum?: t.Branded<number, t.IntBrand> | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "boolean";
} & {
defaultValue?: boolean | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "json";
} & {
defaultValue?: {
[x: string]: any;
} | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "datetime";
} & {
defaultValue?: "now" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "kind";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "type";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeUnion";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeIntersection";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "File";
} & {
pattern?: string | undefined;
maximum?: number | undefined;
format?: "Image" | "Audio" | "Video" | "Avatar" | "File" | "Markdown" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "image";
width: t.Branded<number, t.IntBrand>;
height: t.Branded<number, t.IntBrand>;
} & {
defaultValue?: string | undefined;
pattern?: string | undefined;
}), "string" | "number" | "boolean" | "int" | "datetime" | "json" | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "enum";
values: string[];
} & {
ivalues?: {
[x: string]: any;
} | undefined;
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "string";
} & {
defaultValue?: string | undefined;
minLength?: number | undefined;
maxLength?: number | undefined;
pattern?: string | undefined;
rows?: string | undefined;
format?: "UUID" | "EMail" | "IPV4" | "IPV6" | "URL" | "Search" | "Password" | "TextArea" | "Icon" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "number";
} & {
defaultValue?: number | undefined;
maximum?: number | undefined;
minimum?: number | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "int";
} & {
defaultValue?: number | undefined;
maximum?: number | undefined;
minimum?: number | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "boolean";
} & {
defaultValue?: boolean | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "json";
} & {
defaultValue?: {
[x: string]: any;
} | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "datetime";
} & {
defaultValue?: "now" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "kind";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "type";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeUnion";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeIntersection";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "File";
} & {
pattern?: string | undefined;
maximum?: number | undefined;
format?: "Image" | "Audio" | "Video" | "Avatar" | "File" | "Markdown" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "image";
width: number;
height: number;
} & {
defaultValue?: string | undefined;
pattern?: string | undefined;
}), unknown>;
required: t.Type<boolean, boolean, unknown>;
}>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.TypeC<{}>]>, t.TypeC<{
_kind: t.Type<"field", "field", unknown>;
unique: t.Type<boolean, boolean, unknown>;
id: t.Type<boolean, boolean, unknown>;
readonly: t.Type<boolean, boolean, unknown>;
order: t.Type<boolean, boolean, unknown>;
exclusiveCreate: t.Type<boolean, boolean, unknown>;
exclusiveUpdate: t.Type<boolean, boolean, unknown>;
exclusiveWhere: t.Type<boolean, boolean, unknown>;
exclusiveSearch: t.Type<boolean, boolean, unknown>;
exclusiveLoad: t.Type<boolean, boolean, unknown>;
}>]>;
/**
* The Element type
* @desczh
* 类型
* @since 0.2.0
*/
type: t.KeyofC<{
H1: string;
H2: string;
H3: string;
P: string;
P1: string;
P2: string;
P3: string;
Header: string;
Subtitle: string;
Overline: string;
Caption: string;
TextField: string;
Display: string;
}>;
/**
* max rows count on render with non-TextField
* @desczh
* 在渲染中最大行数,用在类型非TextField时
* @since 0.2.0
*/
maxRows: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>;
}>]>]>;
/**
* @since 0.2.0
*/
export declare const Entity: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
description: t.Type<string[], string[], unknown>;
}>, t.PartialC<{
descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /**
* @since 0.2.0
*/
title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
help: t.Type<string[], string[], unknown>;
helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>;
since: t.Type<string, string, unknown>;
}>]>, t.TypeC<{
name: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>;
}>, t.TypeC<{
/**
* @since 0.2.0
*/
fields: t.Type<({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
deprecated: boolean;
ignore: boolean;
examples: string[];
reason: string[];
path: string[];
} & {
signature?: string | undefined;
} & {
type: "string" | "number" | "boolean" | "int" | "datetime" | "json" | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "enum";
values: string[];
} & {
ivalues?: {
[x: string]: any;
} | undefined;
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "string";
} & {
defaultValue?: string | undefined;
minLength?: t.Branded<number, t.IntBrand> | undefined;
maxLength?: t.Branded<number, t.IntBrand> | undefined;
pattern?: string | undefined;
rows?: string | undefined;
format?: "UUID" | "EMail" | "IPV4" | "IPV6" | "URL" | "Search" | "Password" | "TextArea" | "Icon" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "number";
} & {
defaultValue?: number | undefined;
maximum?: number | undefined;
minimum?: number | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "int";
} & {
defaultValue?: number | undefined;
maximum?: t.Branded<number, t.IntBrand> | undefined;
minimum?: t.Branded<number, t.IntBrand> | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "boolean";
} & {
defaultValue?: boolean | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "json";
} & {
defaultValue?: {
[x: string]: any;
} | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "datetime";
} & {
defaultValue?: "now" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "kind";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "type";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeUnion";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeIntersection";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "File";
} & {
pattern?: string | undefined;
maximum?: number | undefined;
format?: "Image" | "Audio" | "Video" | "Avatar" | "File" | "Markdown" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "image";
width: t.Branded<number, t.IntBrand>;
height: t.Branded<number, t.IntBrand>;
} & {
defaultValue?: string | undefined;
pattern?: string | undefined;
});
required: boolean;
} & {
name: string;
} & {} & {
_kind: "field";
unique: boolean;
id: boolean;
readonly: boolean;
order: boolean;
exclusiveCreate: boolean;
exclusiveUpdate: boolean;
exclusiveWhere: boolean;
exclusiveSearch: boolean;
exclusiveLoad: boolean;
})[], ({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
deprecated: boolean;
ignore: boolean;
examples: string[];
reason: string[];
path: string[];
} & {
signature?: string | undefined;
} & {
type: "string" | "number" | "boolean" | "int" | "datetime" | "json" | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "enum";
values: string[];
} & {
ivalues?: {
[x: string]: any;
} | undefined;
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "string";
} & {
defaultValue?: string | undefined;
minLength?: number | undefined;
maxLength?: number | undefined;
pattern?: string | undefined;
rows?: string | undefined;
format?: "UUID" | "EMail" | "IPV4" | "IPV6" | "URL" | "Search" | "Password" | "TextArea" | "Icon" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "number";
} & {
defaultValue?: number | undefined;
maximum?: number | undefined;
minimum?: number | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "int";
} & {
defaultValue?: number | undefined;
maximum?: number | undefined;
minimum?: number | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "boolean";
} & {
defaultValue?: boolean | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "json";
} & {
defaultValue?: {
[x: string]: any;
} | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "datetime";
} & {
defaultValue?: "now" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "kind";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "type";
value: string;
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeUnion";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
_kind: "typeIntersection";
values: string[];
} & {
defaultValue?: string | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "File";
} & {
pattern?: string | undefined;
maximum?: number | undefined;
format?: "Image" | "Audio" | "Video" | "Avatar" | "File" | "Markdown" | undefined;
}) | ({
maybe: boolean;
isArray: boolean;
maybeArray: boolean;
isArrayRequired: boolean;
defaultEmptyArray: boolean;
} & {
store: string;
container: string;
folders: string[];
} & {
_kind: "image";
width: number;
height: number;
} & {
defaultValue?: string | undefined;
pattern?: string | undefined;
});
required: boolean;
} & {
name: string;
} & {} & {
_kind: "field";
unique: boolean;
id: boolean;
readonly: boolean;
order: boolean;
exclusiveCreate: boolean;
exclusiveUpdate: boolean;
exclusiveWhere: boolean;
exclusiveSearch: boolean;
exclusiveLoad: boolean;
})[], unknown>;
/**
* @since 0.2.0
*/
mutations: t.Type<({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
href?: string | undefined;
} & {
icon?: string | undefined;
} & {
input?: any[] | undefined;
style?: "Add" | "Edit" | "Setting" | "Display" | undefined;
changeSubmit?: boolean | undefined;
autoSubmit?: boolean | undefined;
actions?: any[] | undefined;
submitAction?: string | undefined;
initAction?: string | undefined;
initActionOnServer?: string | undefined;
success?: string[] | undefined;
successes?: {
[x: string]: any;
} | undefined;
} & {
_kind: "mutation";
})[], ({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
href?: string | undefined;
} & {
icon?: string | undefined;
} & {
input?: any[] | undefined;
style?: "Add" | "Edit" | "Setting" | "Display" | undefined;
changeSubmit?: boolean | undefined;
autoSubmit?: boolean | undefined;
actions?: any[] | undefined;
submitAction?: string | undefined;
initAction?: string | undefined;
initActionOnServer?: string | undefined;
success?: string[] | undefined;
successes?: {
[x: string]: any;
} | undefined;
} & {
_kind: "mutation";
})[], unknown>;
/**
* @since 0.2.0
*/
forms: t.Type<({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
href?: string | undefined;
} & {
icon?: string | undefined;
} & {
input?: any[] | undefined;
style?: "Add" | "Edit" | "Setting" | "Display" | undefined;
changeSubmit?: boolean | undefined;
autoSubmit?: boolean | undefined;
actions?: any[] | undefined;
submitAction?: string | undefined;
initAction?: string | undefined;
initActionOnServer?: string | undefined;
success?: string[] | undefined;
successes?: {
[x: string]: any;
} | undefined;
} & {
_kind: "query";
} & {
result?: any[] | undefined;
})[], ({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
href?: string | undefined;
} & {
icon?: string | undefined;
} & {
input?: any[] | undefined;
style?: "Add" | "Edit" | "Setting" | "Display" | undefined;
changeSubmit?: boolean | undefined;
autoSubmit?: boolean | undefined;
actions?: any[] | undefined;
submitAction?: string | undefined;
initAction?: string | undefined;
initActionOnServer?: string | undefined;
success?: string[] | undefined;
successes?: {
[x: string]: any;
} | undefined;
} & {
_kind: "query";
} & {
result?: any[] | undefined;
})[], unknown>;
/**
* @since 0.2.0
*/
cards: t.Type<({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
href?: string | undefined;
} & {
_kind: "card";
} & {
type?: "Add" | "Edit" | "Setting" | "Display" | "Manager" | "Home" | "Form" | "App" | "Grid" | "Group" | undefined;
image?: string | undefined;
elements?: any[] | undefined;
actions?: any[] | undefined;
links?: any[] | undefined;
mainActions?: any[] | undefined;
moreActions?: any[] | undefined;
})[], ({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
href?: string | undefined;
} & {
_kind: "card";
} & {
type?: "Add" | "Edit" | "Setting" | "Display" | "Manager" | "Home" | "Form" | "App" | "Grid" | "Group" | undefined;
image?: string | undefined;
elements?: any[] | undefined;
actions?: any[] | undefined;
links?: any[] | undefined;
mainActions?: any[] | undefined;
moreActions?: any[] | undefined;
})[], unknown>;
/**
* @since 0.2.0
*/
actions: t.Type<({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
icon?: string | undefined;
} & {
_kind: "action";
} & {
actionType?: "Search" | "Load" | "Loads" | "Query" | "QueryReset" | "Reset" | "QueryMore" | "LoadWithID" | "OpenWithID" | "DeleteWithID" | "UploadImage" | "UploadFile" | "Submit" | "Link" | undefined;
link?: string | undefined;
target?: "Main" | "NewPage" | "Dialog" | undefined;
})[], ({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
icon?: string | undefined;
} & {
_kind: "action";
} & {
actionType?: "Search" | "Load" | "Loads" | "Query" | "QueryReset" | "Reset" | "QueryMore" | "LoadWithID" | "OpenWithID" | "DeleteWithID" | "UploadImage" | "UploadFile" | "Submit" | "Link" | undefined;
link?: string | undefined;
target?: "Main" | "NewPage" | "Dialog" | undefined;
})[], unknown>;
/**
* @since 0.2.0
*/
elements: t.Type<({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: string | undefined;
titles?: {
[x: string]: any;
} | undefined;
help?: string[] | undefined;
helps?: {
[x: string]: any;
} | undefined;
since?: string | undefined;
} & {
name: string;
} & {
icon?: string | undefined;
} & {
_kind: "fieldElement";
} & {
field?: ({
description: string[];
} & {
descriptions?: {
[x: string]: any;
} | undefined;
title?: