UNPKG

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,934 lines 618 kB
/** * Code generated by github.com/macoolka/macoolka-gen-model, DO NOT EDIT. */ import * as t from 'macoolka-io'; /** * Information * @desczh * 信息 * @since 0.3.0 */ export declare const MInfoable: t.IntersectionC<[t.TypeC<{ /** * description * @desczh * 注释 * @since 0.2.0 */ description: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * i18n description * @desczh * 国际化注释 * @since 0.2.0 */ descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * title * @desczh * 标题 * @since 0.2.0 */ title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * i18n title * @desczh * 国际化标题 * @since 0.2.0 */ titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * help * @desczh * 帮助 * @since 0.2.0 */ help: t.Type<string[], string[], unknown>; /** * i18n help * @desczh * 国际化帮助 * @since 0.2.0 */ helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * When was this feature added. * @desczh * 哪一个版本加入 * @since 0.2.0 */ since: t.Type<string, string, unknown>; }>]>; /** * Document Tags * @desczh * 语句注释 * @since 0.2.0 */ export declare const MDocumentable: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ /** * description * @desczh * 注释 * @since 0.2.0 */ description: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * i18n description * @desczh * 国际化注释 * @since 0.2.0 */ descriptions: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * title * @desczh * 标题 * @since 0.2.0 */ title: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * i18n title * @desczh * 国际化标题 * @since 0.2.0 */ titles: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * help * @desczh * 帮助 * @since 0.2.0 */ help: t.Type<string[], string[], unknown>; /** * i18n help * @desczh * 国际化帮助 * @since 0.2.0 */ helps: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * When was this feature added. * @desczh * 哪一个版本加入 * @since 0.2.0 */ since: t.Type<string, string, unknown>; }>]>, t.IntersectionC<[t.TypeC<{ /** * That this is no longer the preferred way. * @desczh * 过时,不再使用 * @since 0.2.0 */ deprecated: t.Type<boolean, boolean, unknown>; /** * Ignore the node when build docs * @desczh * 是否在生成文档时跳过 * @since 0.2.0 */ ignore: t.Type<boolean, boolean, unknown>; /** * example code * @desczh * 示例代码 * @since 0.2.0 */ examples: t.Type<string[], string[], unknown>; /** * That reason of deprecation. * @desczh * 废弃原因 * @since 0.2.0 */ reason: t.Type<string[], string[], unknown>; /** * The path on root * @desczh * 在根目录下的路径 * @since 0.2.0 */ path: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * signature * @desczh * 签名 * @since 0.2.0 */ signature: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * The define basic info for scalar * @desczh * 定义一个标量的基本信息 * @since 0.2.0 */ export declare const MScalable: t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>; /** * Like a Boolean an Enum can have one of a predefined set of values. * The difference is that you can define the possible values * (whereas for a Boolean the options are restriced to true and false). * For example you could specify how an article should be formatted * by creating an Enum with the possible values COMPACT, WIDE and COVER. * @desczh * 枚举类型 * @since 0.2.0 */ export declare const MEnumScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"enum", "enum", unknown>; /** * The values in enum. * @desczh * 枚举值 * @since 0.2.0 */ values: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * The values in enum(i18n). * @desczh * 枚举值(国际化)) * @since 0.2.0 */ ivalues: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * json * @desczh * json类型 * @since 0.2.0 */ export declare const MJsonScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"json", "json", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; }>]>]>; /** * Sring Format * @desczh * 文本格式 * @since 0.2.0 */ export declare const MStringFormat: t.KeyofC<{ UUID: string; EMail: string; IPV4: string; IPV6: string; URL: string; Search: string; Password: string; TextArea: string; Icon: string; }>; /** * A String holds text. This is the type you would use for a username, * the content of a blog post or anything else that is best represented as text. * @desczh * 文本类型 * @since 0.2.0 */ export declare const MStringScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"string", "string", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The length of value must great than given value * @desczh * 字段的最小长度 * @since 0.2.0 */ minLength: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The length of value must less than given value * @desczh * 字段的最大长度 * @since 0.2.0 */ maxLength: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The length value must match the given pattern * @desczh * 字段必须匹配这个正则表达式 * @since 0.2.0 */ pattern: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The rows define lines on input when format is textarea * @desczh * 当格式textarea时定义输入时的行数. * @since 0.2.0 */ rows: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The value must match the given format * @desczh * 字段必须匹配指定的格式 * @since 0.2.0 */ format: t.KeyofC<{ UUID: string; EMail: string; IPV4: string; IPV6: string; URL: string; Search: string; Password: string; TextArea: string; Icon: string; }>; }>]>]>; /** * The define basic info for file * @desczh * 定义一个文件的基本信息 * @since 0.2.0 */ export declare const MFile: t.TypeC<{ /** * The store name. * @desczh * 存储名称 * @since 0.2.0 */ store: t.Type<string, string, unknown>; /** * The container name. * @desczh * 容器名称 * @since 0.2.0 */ container: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The folders array. * @desczh * 文件夹 * @since 0.2.0 */ folders: t.Type<string[], string[], unknown>; }>; /** * A Image Information. * @desczh * 图片类型 * @since 0.2.0 */ export declare const MImageScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.TypeC<{ /** * The store name. * @desczh * 存储名称 * @since 0.2.0 */ store: t.Type<string, string, unknown>; /** * The container name. * @desczh * 容器名称 * @since 0.2.0 */ container: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The folders array. * @desczh * 文件夹 * @since 0.2.0 */ folders: t.Type<string[], string[], unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"image", "image", unknown>; /** * The value define image width * @desczh * 图片宽度 * @since 0.2.0 */ width: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The value define image height * @desczh * 图片高度 * @since 0.2.0 */ height: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The length value must match the given pattern * @desczh * 字段必须匹配这个正则表达式 * @since 0.2.0 */ pattern: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * Sring Format * @desczh * 文本格式 * @since 0.2.0 */ export declare const MFileFormat: t.KeyofC<{ Image: string; Audio: string; Video: string; Avatar: string; File: string; Markdown: string; }>; /** * A File Information. * @desczh * 文件类型 * @since 0.2.0 */ export declare const MFileScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.TypeC<{ /** * The store name. * @desczh * 存储名称 * @since 0.2.0 */ store: t.Type<string, string, unknown>; /** * The container name. * @desczh * 容器名称 * @since 0.2.0 */ container: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The folders array. * @desczh * 文件夹 * @since 0.2.0 */ folders: t.Type<string[], string[], unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"File", "File", unknown>; }>, t.PartialC<{ /** * The length value must match the given pattern * @desczh * 字段必须匹配这个正则表达式 * @since 0.2.0 */ pattern: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The File maxinum size * @desczh * 文件最大长度 * @since 0.2.0 */ maximum: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The file format * @desczh * 文件的格式 * @since 0.2.0 */ format: t.KeyofC<{ Image: string; Audio: string; Video: string; Avatar: string; File: string; Markdown: string; }>; }>]>]>; /** * A Number is a number that can have decimals. * Use this to store values such as the price of an item in a store or the result of complex calculations. * @desczh * 数值型 * @since 0.2.0 */ export declare const MNumberScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"number", "number", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The value must less than given value * @desczh * 字段的最大值 * @since 0.2.0 */ maximum: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The value must great than given value * @desczh * 字段的最小值 * @since 0.2.0 */ minimum: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; }>]>]>; /** * An Int is a number that cannot have decimals. * Use this to store values such as the weight of an ingredient required for a recipe or the minimum age for an event. * @desczh * 整型 * @since 0.2.0 */ export declare const MIntScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"int", "int", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The value must less than given value * @desczh * 字段的最大值 * @since 0.2.0 */ maximum: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The value must great than given value * @desczh * 字段的最小值 * @since 0.2.0 */ minimum: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; }>]>]>; /** * A Boolean can have the value true or false. * This is useful to keep track of settings such as whether the user wants to receive an email newsletter * or if a recipe is appropriate for vegetarians. * @desczh * 布尔型 * @since 0.2.0 */ export declare const MBooleanScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"boolean", "boolean", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<boolean, boolean, unknown>; }>]>]>; /** * The DateTime type can be used to store date and/or time values. * A good example might be a person's date of birth or the time/data when a specific event is happening. * @desczh * 日期型 * @since 0.2.0 */ export declare const MDateTimeScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"datetime", "datetime", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<"now", "now", unknown>; }>]>]>; /** * The _kind is a tag that check which Sclar be used. * @desczh * 标签 * @since 0.2.0 */ export declare const MKindScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"kind", "kind", unknown>; /** * kind value * @desczh * 标签值 * @since 0.2.0 */ value: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * A type give a value of model types. * @desczh * 类型 * @since 0.2.0 */ export declare const MTypeScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"type", "type", unknown>; /** * Model type name. * @desczh * 类型名称 * @since 0.2.0 */ value: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * A union type describes a value that can be one of several types. * @desczh * 链接多个类型用OR * @since 0.2.0 */ export declare const MTypeUnionScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"typeUnion", "typeUnion", unknown>; /** * Model type name. * @since 0.2.0 */ values: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * A intersection type describes a value that can be one of several types. * @desczh * 链接多个类型用AND * @since 0.2.0 */ export declare const MTypeIntersectionScalar: t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"typeIntersection", "typeIntersection", unknown>; /** * Model type name. * @since 0.2.0 */ values: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>; /** * Scalar * @desczh * 标量 * @since 0.2.0 */ export declare const MScalars: t.UnionC<[t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"enum", "enum", unknown>; /** * The values in enum. * @desczh * 枚举值 * @since 0.2.0 */ values: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * The values in enum(i18n). * @desczh * 枚举值(国际化)) * @since 0.2.0 */ ivalues: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"string", "string", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The length of value must great than given value * @desczh * 字段的最小长度 * @since 0.2.0 */ minLength: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The length of value must less than given value * @desczh * 字段的最大长度 * @since 0.2.0 */ maxLength: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The length value must match the given pattern * @desczh * 字段必须匹配这个正则表达式 * @since 0.2.0 */ pattern: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The rows define lines on input when format is textarea * @desczh * 当格式textarea时定义输入时的行数. * @since 0.2.0 */ rows: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; /** * The value must match the given format * @desczh * 字段必须匹配指定的格式 * @since 0.2.0 */ format: t.KeyofC<{ UUID: string; EMail: string; IPV4: string; IPV6: string; URL: string; Search: string; Password: string; TextArea: string; Icon: string; }>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"number", "number", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The value must less than given value * @desczh * 字段的最大值 * @since 0.2.0 */ maximum: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The value must great than given value * @desczh * 字段的最小值 * @since 0.2.0 */ minimum: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"int", "int", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<number, number, unknown>; /** * The value must less than given value * @desczh * 字段的最大值 * @since 0.2.0 */ maximum: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; /** * The value must great than given value * @desczh * 字段的最小值 * @since 0.2.0 */ minimum: import("macoolka-io/lib/i18nIO").MessageType<t.Branded<number, t.IntBrand>, number, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"boolean", "boolean", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<boolean, boolean, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"json", "json", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: t.RecordC<import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>, t.AnyC>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"datetime", "datetime", unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<"now", "now", unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"kind", "kind", unknown>; /** * kind value * @desczh * 标签值 * @since 0.2.0 */ value: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"type", "type", unknown>; /** * Model type name. * @desczh * 类型名称 * @since 0.2.0 */ value: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used. * @desczh * 标签判断哪一个Scalar被使用 * @since 0.2.0 */ _kind: import("macoolka-io/lib/i18nIO").MessageType<"typeUnion", "typeUnion", unknown>; /** * Model type name. * @since 0.2.0 */ values: t.Type<string[], string[], unknown>; }>, t.PartialC<{ /** * You can set a default value for the field * The value will be applied to newly created records when no value was supplied during the create-operation. * @desczh * 缺省值 * @since 0.2.0 */ defaultValue: import("macoolka-io/lib/i18nIO").MessageType<string, string, unknown>; }>]>]>, t.IntersectionC<[t.TypeC<{ /** * The Node can be marked as undefined. * @desczh * 可能为空 * @since 0.2.0 */ maybe: t.Type<boolean, boolean, unknown>; /** * The field has the many multiplicity will also be marked. * @desczh * 是否是数组 * @since 0.2.0 */ isArray: t.Type<boolean, boolean, unknown>; /** * The field is T | Array<T>. * @desczh * T | Array<T> * @since 0.2.0 */ maybeArray: t.Type<boolean, boolean, unknown>; /** * The means that no item in the list can be null * @desczh * 非空数组 * @since 0.2.0 */ isArrayRequired: t.Type<boolean, boolean, unknown>; /** * The means that defaultValue is [] * @desczh * 缺省值为[] * @since 0.2.0 */ defaultEmptyArray: t.Type<boolean, boolean, unknown>; }>, t.IntersectionC<[t.TypeC<{ /** * The _kind is a tag that check which Scalar be used