新的entity编译

This commit is contained in:
Xu Chang 2024-10-21 18:12:59 +08:00
parent 390b744152
commit 07f05063ea
157 changed files with 1785 additions and 1839 deletions

View File

@ -104,7 +104,7 @@ export async function createSession(params, context) {
origin: 'wechat',
type: 'image',
tag1: 'image',
objectId: await generateNewIdAsync(), // 这个域用来标识唯一性
objectId: await generateNewIdAsync(),
sort: 1000,
uploadState: 'success',
extra1: data.MediaId,
@ -129,7 +129,7 @@ export async function createSession(params, context) {
origin: 'wechat',
type: 'video',
tag1: 'video',
objectId: await generateNewIdAsync(), // 这个域用来标识唯一性
objectId: await generateNewIdAsync(),
sort: 1000,
uploadState: 'success',
extra1: data.MediaId,
@ -151,7 +151,7 @@ export async function createSession(params, context) {
origin: 'wechat',
type: 'audio',
tag1: 'audio',
objectId: await generateNewIdAsync(), // 这个域用来标识唯一性
objectId: await generateNewIdAsync(),
sort: 1000,
uploadState: 'success',
extra1: data.MediaId,

View File

@ -2248,8 +2248,8 @@ export async function refreshToken(params, context) {
// 只有server模式去刷新token
// 'development' | 'production' | 'staging'
const intervals = {
development: 7200 * 1000, // 2小时
staging: 600 * 1000, // 十分钟
development: 7200 * 1000,
staging: 600 * 1000,
production: 600 * 1000, // 十分钟
};
const application = context.getApplication();

View File

@ -161,7 +161,7 @@ export async function createWechatQrCode(options, context) {
permanent,
url,
expired: false,
expiresAt: Date.now() + 2592000 * 1000, // wecharQrCode里的过期时间都放到最大由上层关联对象来主动过期by Xc, 20230131)
expiresAt: Date.now() + 2592000 * 1000,
props,
};
// 直接创建

View File

@ -1,2 +1,2 @@
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "applicationPassport", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>>)[];
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "applicationPassport", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>>)[];
export default checkers;

View File

@ -26,8 +26,8 @@ export default OakComponent({
properties: {
articleMenuId: '',
changeIsEdit: () => undefined,
tocPosition: 'none', //目录显示位置none为不显示目录
highlightBgColor: 'none', //点击目录时标题高亮背景色none为不显示高亮背景色
tocPosition: 'none',
highlightBgColor: 'none',
onArticlePreview: (content, title) => undefined, //预览文章
},
listeners: {

View File

@ -145,12 +145,12 @@ export default OakComponent({
show: '',
articleMenuId: '',
articleId: '',
tocPosition: 'none', //文章目录显示位置none为不显示目录
highlightBgColor: 'none', //点击文章目录时标题高亮背景色none为不显示高亮背景色
onMenuView: () => undefined, //查看全部菜单
onMenuViewById: (articleMenuId) => undefined, //查看指定id菜单
onArticleView: (oakId) => undefined, //查看文章
onArticlePreview: (content, title) => undefined, //预览文章
tocPosition: 'none',
highlightBgColor: 'none',
onMenuView: () => undefined,
onMenuViewById: (articleMenuId) => undefined,
onArticleView: (oakId) => undefined,
onArticlePreview: (content, title) => undefined,
onArticleEdit: (oakId) => undefined, //编辑文章
},
});

View File

@ -37,7 +37,7 @@ export default OakComponent({
code: '',
title: '',
desc: '',
icon: '', //web独有
icon: '',
imagePath: '', //小程序独有
},
lifetimes: {

View File

@ -12,7 +12,7 @@ export default OakComponent({
color: '#666',
selectedColor: '',
border: false,
selectedIconPath: '', //一般在list设置
selectedIconPath: '',
iconPath: '',
},
lifetimes: {

View File

@ -14,21 +14,21 @@ declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends key
type?: ButtonProps['type'] | AmButtonProps['type'];
executeText?: string | undefined;
buttonProps?: (ButtonProps & {
color?: "success" | "warning" | "default" | "primary" | "danger" | undefined;
color?: "primary" | "success" | "warning" | "default" | "danger" | undefined;
fill?: "none" | "solid" | "outline" | undefined;
size?: "small" | "middle" | "large" | "mini" | undefined;
size?: "small" | "large" | "middle" | "mini" | undefined;
block?: boolean | undefined;
loading?: boolean | "auto" | undefined;
loadingText?: string | undefined;
loadingIcon?: import("react").ReactNode;
disabled?: boolean | undefined;
onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => unknown) | undefined;
type?: "button" | "submit" | "reset" | undefined;
type?: "reset" | "submit" | "button" | undefined;
shape?: "default" | "rounded" | "rectangular" | undefined;
children?: import("react").ReactNode;
} & Pick<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "id" | "onMouseDown" | "onMouseUp" | "onTouchEnd" | "onTouchStart"> & {
} & Pick<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "id" | "onMouseUp" | "onMouseDown" | "onTouchStart" | "onTouchEnd"> & {
className?: string | undefined;
style?: (import("react").CSSProperties & Partial<Record<"--background-color" | "--border-color" | "--text-color" | "--border-width" | "--border-radius" | "--border-style", string>>) | undefined;
style?: (import("react").CSSProperties & Partial<Record<"--text-color" | "--background-color" | "--border-radius" | "--border-width" | "--border-style" | "--border-color", string>>) | undefined;
tabIndex?: number | undefined;
} & import("react").AriaAttributes) | undefined;
afterCommit?: AfterCommit;

View File

@ -47,19 +47,19 @@ export default OakComponent({
bucket: '',
autoUpload: false,
maxNumber: 20,
extension: [], //小程序独有 chooseMessageFile
selectCount: 1, // 每次打开图片时,可选中的数量 小程序独有
sourceType: ['album', 'camera'], // 小程序独有 chooseMedia
mediaType: ['image'], // 小程序独有 chooseMedia
mode: 'aspectFit', // 图片显示模式
size: 3, // 每行可显示的个数 小程序独有
showUploadList: true, //web独有
showUploadProgress: false, // web独有
accept: 'image/*', // web独有
disablePreview: false, // 图片是否可预览
disableDelete: false, // 图片是否可删除
disableAdd: false, // 上传按钮隐藏
disableDownload: false, // 下载按钮隐藏
extension: [],
selectCount: 1,
sourceType: ['album', 'camera'],
mediaType: ['image'],
mode: 'aspectFit',
size: 3,
showUploadList: true,
showUploadProgress: false,
accept: 'image/*',
disablePreview: false,
disableDelete: false,
disableAdd: false,
disableDownload: false,
type: 'image',
origin: 'qiniu',
tag1: '',
@ -67,40 +67,40 @@ export default OakComponent({
entity: '',
entityId: '',
theme: 'image',
enableCrop: false, //启用裁剪
enableCompross: false, //启用压缩
enableCrop: false,
enableCompross: false,
//图片裁剪
cropQuality: 1, //图片裁剪质量范围0 ~ 1
showRest: false, //显示重置按钮,重置缩放及旋转
showGrid: false, //显示裁切区域网格(九宫格)
fillColor: 'white', //裁切图像填充色
rotationSlider: false, //图片旋转控制
aspectSlider: false, //裁切比率控制
zoomSlider: true, //图片缩放控制
resetText: '重置', //重置按钮文字
aspect: 1 / 1, //裁切区域宽高比width / height
minZoom: 1, //最小缩放倍数
maxZoom: 3, //最大缩放倍数
cropShape: 'rect', //裁切区域形状,'rect' 或 'round'
cropperProps: {}, //recat-easy-crop的props
modalTitle: '编辑图片', //弹窗标题
modalWidth: '40vw', //弹窗宽度
modalOk: '确定', //确定按钮文字
modalCancel: '取消', //取消按钮的文字
cropQuality: 1,
showRest: false,
showGrid: false,
fillColor: 'white',
rotationSlider: false,
aspectSlider: false,
zoomSlider: true,
resetText: '重置',
aspect: 1 / 1,
minZoom: 1,
maxZoom: 3,
cropShape: 'rect',
cropperProps: {},
modalTitle: '编辑图片',
modalWidth: '40vw',
modalOk: '确定',
modalCancel: '取消',
//图片压缩
strict: true, //当压缩后的图片尺寸大于原图尺寸时输出原图
checkOrientation: true, //读取图像的Exif方向值并自动旋转或翻转图像仅限 JPEG 图像)
retainExif: false, //压缩后保留图片的Exif信息
maxWidth: Infinity, //输出图片的最大宽度值需大于0
maxHeight: Infinity, //输出图片的最大高度值需大于0
minWidth: 0, //输出图片的最小宽度值需大于0且不应大于maxWidth
minHeight: 0, //输出图片的最小高度。值需大于0且不应大于maxHeight
compressWidth: undefined, //输出图像的宽度。如果未指定则将使用原始图像的宽度若设置了height则宽度将根据自然纵横比自动计算。
compressHeight: undefined, //输出图像的高度。如果未指定则将使用原始图像的高度若设置了width则高度将根据自然纵横比自动计算。
resize: 'none', //仅在同时指定了width和height时生效
compressQuality: 0.8, //输出图像的质量。范围0 ~ 1
mimeType: 'auto', //输出图片的 MIME 类型。默认情况下,将使用源图片文件的原始 MIME 类型。
convertTypes: ['image/png'], //文件类型包含在其中且文件大小超过该convertSize值的文件将被转换为 JPEG。
strict: true,
checkOrientation: true,
retainExif: false,
maxWidth: Infinity,
maxHeight: Infinity,
minWidth: 0,
minHeight: 0,
compressWidth: undefined,
compressHeight: undefined,
resize: 'none',
compressQuality: 0.8,
mimeType: 'auto',
convertTypes: ['image/png'],
convertSize: Infinity, //文件类型包含在convertTypes中且文件大小超过此值的文件将转换为 JPEGInfinity表示禁用该功能
},
features: ['extraFile'],

View File

@ -13,7 +13,7 @@ export default function render(props) {
};
return (<>
{enableCrop ? (<ImgCrop showReset={showRest} showGrid={showGrid} fillColor={fillColor} rotationSlider={rotationSlider} aspectSlider={aspectSlider} zoomSlider={zoomSlider} resetText={resetText} aspect={aspect} minZoom={minZoom} maxZoom={maxZoom} cropShape={cropShape} quality={cropQuality} cropperProps={{
restrictPosition: false, //允许移动图片位置
restrictPosition: false,
...cropperProps,
}} modalTitle={modalTitle} modalWidth={modalWidth} modalOk={modalOk} modalCancel={modalCancel}>
<ExtrafileUpload oakPath={oakFullpath} bucket={bucket} autoUpload={autoUpload} maxNumber={maxNumber} mode={mode} showUploadList={showUploadList} showUploadProgress={showUploadProgress} accept={accept} disablePreview={disablePreview} disableDelete={disableDelete} disableAdd={disableAdd} disableDownload={disableDownload} disabled={disabled} type={type} origin={origin} tag1={tag1} tag2={tag2} entity={entity} entityId={entityId} theme={theme} children={children} beforeUpload={async (file) => {

View File

@ -55,9 +55,9 @@ export default OakComponent({
data: {
isModalOpen: false,
isModalOpen1: false,
renderImgs: [], // 读取的原文图片在modal使用
renderImgs: [],
methodsType: '',
bridgeUrl: '', // 通过桥接方式获得的url
bridgeUrl: '',
selectedId: -1,
},
properties: {

View File

@ -67,10 +67,10 @@ export default OakComponent({
},
],
properties: {
mode: 'aspectFit', // 图片显示模式
size: 3, // 每行可显示的个数 小程序独有
disablePreview: false, // 图片是否可预览
disableDownload: false, // 下载按钮隐藏
mode: 'aspectFit',
size: 3,
disablePreview: false,
disableDownload: false,
tag1: '',
tag2: '',
entity: '',

View File

@ -48,19 +48,19 @@ export default OakComponent({
bucket: '',
autoUpload: false,
maxNumber: 20,
extension: [], //小程序独有 chooseMessageFile
selectCount: 1, // 每次打开图片时,可选中的数量 小程序独有
sourceType: ['album', 'camera'], // 小程序独有 chooseMedia
mediaType: ['image'], // 小程序独有 chooseMedia
mode: 'aspectFit', // 图片显示模式
size: 3, // 每行可显示的个数 小程序独有
showUploadList: true, //web独有
showUploadProgress: false, // web独有
accept: 'image/*', // web独有
disablePreview: false, // 图片是否可预览
disableDelete: false, // 图片是否可删除
disableAdd: false, // 上传按钮隐藏
disableDownload: false, // 下载按钮隐藏
extension: [],
selectCount: 1,
sourceType: ['album', 'camera'],
mediaType: ['image'],
mode: 'aspectFit',
size: 3,
showUploadList: true,
showUploadProgress: false,
accept: 'image/*',
disablePreview: false,
disableDelete: false,
disableAdd: false,
disableDownload: false,
type: 'image',
origin: 'qiniu',
tag1: '',
@ -144,7 +144,7 @@ export default OakComponent({
type,
tag1,
tag2,
objectId: generateNewId(), // 这个域用来标识唯一性
objectId: generateNewId(),
entity,
filename,
size,

View File

@ -20,7 +20,7 @@ export default OakComponent({
properties: {
sessionId: '',
isEntity: false,
entityDisplay: (data) => [], // user端指示如何显示entity对象名称
entityDisplay: (data) => [],
entityProjection: null, // user端指示需要取哪些entity的属性来显示entityDisplay
},
methods: {

View File

@ -140,12 +140,12 @@ export default OakComponent({
unSub: undefined,
},
properties: {
entity: '', // entity端指示相应的entity
entityFilter: null, // entity端指示相应的entity查询条件
entity: '',
entityFilter: null,
entityFilterSubStr: '',
entityDisplay: (data) => [], // user端指示如何显示entity对象名称
entityProjection: null, // user端指示需要取哪些entity的属性来显示entityDisplay
sessionId: '', // 指示需要打开的默认session
entityDisplay: (data) => [],
entityProjection: null,
sessionId: '',
dialog: false,
onItemClick: null,
},

View File

@ -102,7 +102,7 @@ export default OakComponent({
dialog: false,
entity: '',
entityId: '',
entityDisplay: (data) => [], // user端指示如何显示entity对象名称
entityDisplay: (data) => [],
entityProjection: null, // user端指示需要取哪些entity的属性来显示entityDisplay
},
filters: [

View File

@ -21,8 +21,8 @@ export default OakComponent({
},
properties: {
disabled: '',
url: '', // 登录系统之后要返回的页面
callback: undefined, // 登录成功回调,排除微信登录方式
url: '',
callback: undefined,
setLoginMode: (value) => undefined,
digit: 4, //验证码位数
},

View File

@ -17,15 +17,15 @@ export default OakComponent({
allowPassword: false,
allowWechatMp: false,
setLoginModeMp(value) { this.setLoginMode(value); },
smsDigit: 4, //短信验证码位数
smsDigit: 4,
emailDigit: 4, //邮箱验证码位数
},
properties: {
onlyCaptcha: false,
onlyPassword: false,
disabled: '',
redirectUri: '', // 微信登录后的redirectUri要指向wechatUser/login去处理
url: '', // 登录系统之后要返回的页面
redirectUri: '',
url: '',
callback: undefined, // 登录成功回调,排除微信登录方式
},
formData({ features, props }) {

View File

@ -18,12 +18,12 @@ export default OakComponent({
},
properties: {
disabled: '',
redirectUri: '', // 微信登录后的redirectUri要指向wechatUser/login去处理
url: '', // 登录系统之后要返回的页面
callback: undefined, // 登录成功回调,排除微信登录方式
redirectUri: '',
url: '',
callback: undefined,
allowSms: false,
allowEmail: false,
allowWechatMp: false, //小程序切换授权登录
allowWechatMp: false,
setLoginMode: (value) => undefined,
},
lifetimes: {},

View File

@ -21,10 +21,10 @@ export default OakComponent({
},
properties: {
disabled: '',
url: '', // 登录系统之后要返回的页面
callback: undefined, // 登录成功回调,排除微信登录方式
allowPassword: false, //小程序切换密码登录
allowWechatMp: false, //小程序切换授权登录
url: '',
callback: undefined,
allowPassword: false,
allowWechatMp: false,
setLoginMode: (value) => undefined,
digit: 4 //验证码位数,
},

View File

@ -79,7 +79,7 @@ export default OakComponent({
});
},
data: {
birthEnd: '', // for小程序的picker
birthEnd: '',
GenderOptions,
IDCardTypeOptions,
birthVisible: false,

View File

@ -4,8 +4,8 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
entity: keyof EntityDict;
entityFilter: any;
relationIds: string[];
rule: "all" | "single" | "free";
ruleOnRow: "all" | "single" | "free";
rule: "single" | "all" | "free";
ruleOnRow: "single" | "all" | "free";
onPickRelations: (ids: string[]) => void;
onPickRows: (ids: string[]) => void;
pickedRowIds: string[] | undefined;

View File

@ -17,7 +17,7 @@ export default OakComponent({
id: 1,
entity: 1,
entityId: 1,
type: 1, //类型
type: 1,
ticket: 1,
url: 1,
buffer: 1,

View File

@ -11,7 +11,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
claimUrl: string;
qrCodeType: QrCodeType;
multiple: boolean;
rule: "all" | "single" | "free";
ruleOnRow: "all" | "single" | "free";
rule: "single" | "all" | "free";
ruleOnRow: "single" | "all" | "free";
}>) => React.ReactElement;
export default _default;

View File

@ -64,7 +64,7 @@ export default OakComponent({
id: 1,
entity: 1,
entityId: 1,
type: 1, //类型
type: 1,
ticket: 1,
url: 1,
buffer: 1,

View File

@ -5,7 +5,7 @@ export default OakComponent({
id: 1,
entity: 1,
entityId: 1,
type: 1, //类型
type: 1,
ticket: 1,
url: 1,
expired: 1,

View File

@ -4,7 +4,7 @@ export default OakComponent({
id: 1,
entity: 1,
entityId: 1,
type: 1, //类型
type: 1,
ticket: 1,
url: 1,
buffer: 1,

View File

@ -3,10 +3,10 @@ export const entityDesc = {
zh_CN: {
name: '直播流',
attr: {
title: '名称', // 用户定义直播间名称,
title: '名称',
streamTitle: '直播流名称',
liveonly: '活跃状态',
hub: '直播空间名称', // 所属直播空间名称
hub: '直播空间名称',
entity: '所属实体',
entityId: '所属实体id',
rtmpPushUrl: '推流地址',

View File

@ -12,10 +12,7 @@ export type OpSchema = EntityShape & {
deActions: Actions;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
relationId?: ForeignKey<"relation"> | null;
pathId: ForeignKey<"path">;
deActions: Actions;
export type Schema = OpSchema & {
relation?: Relation.Schema | null;
path: Path.Schema;
} & {

View File

@ -17,15 +17,7 @@ export type OpSchema = EntityShape & {
entityId?: String<64> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
detail: String<32>;
areaId: ForeignKey<"area">;
phone: String<12>;
name: String<32>;
default: Boolean;
remark?: Text | null;
entity?: ("user" | string) | null;
entityId?: String<64> | null;
export type Schema = OpSchema & {
area: Area.Schema;
user?: User.Schema;
} & {

View File

@ -91,42 +91,59 @@ export type OpSchema = EntityShape & {
domainId?: ForeignKey<"domain"> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
description?: Text | null;
type: AppType;
systemId: ForeignKey<"system">;
config: WebConfig | WechatMpConfig | WechatPublicConfig | NativeConfig;
style?: Style | null;
domainId?: ForeignKey<"domain"> | null;
type ApplicationPassport$applicationAggr = "applicationPassport$application$$aggr" | "applicationPassport$application$$0$$aggr" | "applicationPassport$application$$1$$aggr" | "applicationPassport$application$$2$$aggr" | "applicationPassport$application$$3$$aggr" | "applicationPassport$application$$4$$aggr" | "applicationPassport$application$$5$$aggr" | "applicationPassport$application$$6$$aggr" | "applicationPassport$application$$7$$aggr" | "applicationPassport$application$$8$$aggr" | "applicationPassport$application$$9$$aggr";
type ExtraFile$applicationAggr = "extraFile$application$$aggr" | "extraFile$application$$0$$aggr" | "extraFile$application$$1$$aggr" | "extraFile$application$$2$$aggr" | "extraFile$application$$3$$aggr" | "extraFile$application$$4$$aggr" | "extraFile$application$$5$$aggr" | "extraFile$application$$6$$aggr" | "extraFile$application$$7$$aggr" | "extraFile$application$$8$$aggr" | "extraFile$application$$9$$aggr";
type Notification$applicationAggr = "notification$application$$aggr" | "notification$application$$0$$aggr" | "notification$application$$1$$aggr" | "notification$application$$2$$aggr" | "notification$application$$3$$aggr" | "notification$application$$4$$aggr" | "notification$application$$5$$aggr" | "notification$application$$6$$aggr" | "notification$application$$7$$aggr" | "notification$application$$8$$aggr" | "notification$application$$9$$aggr";
type SessionMessage$applicationAggr = "sessionMessage$application$$aggr" | "sessionMessage$application$$0$$aggr" | "sessionMessage$application$$1$$aggr" | "sessionMessage$application$$2$$aggr" | "sessionMessage$application$$3$$aggr" | "sessionMessage$application$$4$$aggr" | "sessionMessage$application$$5$$aggr" | "sessionMessage$application$$6$$aggr" | "sessionMessage$application$$7$$aggr" | "sessionMessage$application$$8$$aggr" | "sessionMessage$application$$9$$aggr";
type Token$applicationAggr = "token$application$$aggr" | "token$application$$0$$aggr" | "token$application$$1$$aggr" | "token$application$$2$$aggr" | "token$application$$3$$aggr" | "token$application$$4$$aggr" | "token$application$$5$$aggr" | "token$application$$6$$aggr" | "token$application$$7$$aggr" | "token$application$$8$$aggr" | "token$application$$9$$aggr";
type WechatMenu$applicationAggr = "wechatMenu$application$$aggr" | "wechatMenu$application$$0$$aggr" | "wechatMenu$application$$1$$aggr" | "wechatMenu$application$$2$$aggr" | "wechatMenu$application$$3$$aggr" | "wechatMenu$application$$4$$aggr" | "wechatMenu$application$$5$$aggr" | "wechatMenu$application$$6$$aggr" | "wechatMenu$application$$7$$aggr" | "wechatMenu$application$$8$$aggr" | "wechatMenu$application$$9$$aggr";
type WechatPublicAutoReply$applicationAggr = "wechatPublicAutoReply$application$$aggr" | "wechatPublicAutoReply$application$$0$$aggr" | "wechatPublicAutoReply$application$$1$$aggr" | "wechatPublicAutoReply$application$$2$$aggr" | "wechatPublicAutoReply$application$$3$$aggr" | "wechatPublicAutoReply$application$$4$$aggr" | "wechatPublicAutoReply$application$$5$$aggr" | "wechatPublicAutoReply$application$$6$$aggr" | "wechatPublicAutoReply$application$$7$$aggr" | "wechatPublicAutoReply$application$$8$$aggr" | "wechatPublicAutoReply$application$$9$$aggr";
type WechatPublicTag$applicationAggr = "wechatPublicTag$application$$aggr" | "wechatPublicTag$application$$0$$aggr" | "wechatPublicTag$application$$1$$aggr" | "wechatPublicTag$application$$2$$aggr" | "wechatPublicTag$application$$3$$aggr" | "wechatPublicTag$application$$4$$aggr" | "wechatPublicTag$application$$5$$aggr" | "wechatPublicTag$application$$6$$aggr" | "wechatPublicTag$application$$7$$aggr" | "wechatPublicTag$application$$8$$aggr" | "wechatPublicTag$application$$9$$aggr";
type WechatQrCode$applicationAggr = "wechatQrCode$application$$aggr" | "wechatQrCode$application$$0$$aggr" | "wechatQrCode$application$$1$$aggr" | "wechatQrCode$application$$2$$aggr" | "wechatQrCode$application$$3$$aggr" | "wechatQrCode$application$$4$$aggr" | "wechatQrCode$application$$5$$aggr" | "wechatQrCode$application$$6$$aggr" | "wechatQrCode$application$$7$$aggr" | "wechatQrCode$application$$8$$aggr" | "wechatQrCode$application$$9$$aggr";
type WechatTemplate$applicationAggr = "wechatTemplate$application$$aggr" | "wechatTemplate$application$$0$$aggr" | "wechatTemplate$application$$1$$aggr" | "wechatTemplate$application$$2$$aggr" | "wechatTemplate$application$$3$$aggr" | "wechatTemplate$application$$4$$aggr" | "wechatTemplate$application$$5$$aggr" | "wechatTemplate$application$$6$$aggr" | "wechatTemplate$application$$7$$aggr" | "wechatTemplate$application$$8$$aggr" | "wechatTemplate$application$$9$$aggr";
type WechatUser$applicationAggr = "wechatUser$application$$aggr" | "wechatUser$application$$0$$aggr" | "wechatUser$application$$1$$aggr" | "wechatUser$application$$2$$aggr" | "wechatUser$application$$3$$aggr" | "wechatUser$application$$4$$aggr" | "wechatUser$application$$5$$aggr" | "wechatUser$application$$6$$aggr" | "wechatUser$application$$7$$aggr" | "wechatUser$application$$8$$aggr" | "wechatUser$application$$9$$aggr";
type Session$entityAggr = "session$entity$$aggr" | "session$entity$$0$$aggr" | "session$entity$$1$$aggr" | "session$entity$$2$$aggr" | "session$entity$$3$$aggr" | "session$entity$$4$$aggr" | "session$entity$$5$$aggr" | "session$entity$$6$$aggr" | "session$entity$$7$$aggr" | "session$entity$$8$$aggr" | "session$entity$$9$$aggr";
export type Schema = OpSchema & {
system: System.Schema;
domain?: Domain.Schema | null;
applicationPassport$application?: Array<ApplicationPassport.Schema>;
applicationPassport$application$$aggr?: AggregationResult<ApplicationPassport.Schema>;
extraFile$application?: Array<ExtraFile.Schema>;
extraFile$application$$aggr?: AggregationResult<ExtraFile.Schema>;
notification$application?: Array<Notification.Schema>;
notification$application$$aggr?: AggregationResult<Notification.Schema>;
sessionMessage$application?: Array<SessionMessage.Schema>;
sessionMessage$application$$aggr?: AggregationResult<SessionMessage.Schema>;
token$application?: Array<Token.Schema>;
token$application$$aggr?: AggregationResult<Token.Schema>;
wechatMenu$application?: Array<WechatMenu.Schema>;
wechatMenu$application$$aggr?: AggregationResult<WechatMenu.Schema>;
wechatPublicAutoReply$application?: Array<WechatPublicAutoReply.Schema>;
wechatPublicAutoReply$application$$aggr?: AggregationResult<WechatPublicAutoReply.Schema>;
wechatPublicTag$application?: Array<WechatPublicTag.Schema>;
wechatPublicTag$application$$aggr?: AggregationResult<WechatPublicTag.Schema>;
wechatQrCode$application?: Array<WechatQrCode.Schema>;
wechatQrCode$application$$aggr?: AggregationResult<WechatQrCode.Schema>;
wechatTemplate$application?: Array<WechatTemplate.Schema>;
wechatTemplate$application$$aggr?: AggregationResult<WechatTemplate.Schema>;
wechatUser$application?: Array<WechatUser.Schema>;
wechatUser$application$$aggr?: AggregationResult<WechatUser.Schema>;
session$entity?: Array<Session.Schema>;
session$entity$$aggr?: AggregationResult<Session.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ApplicationPassport$applicationAggr]?: AggregationResult<ApplicationPassport.Schema>;
} & {
[A in ExtraFile$applicationAggr]?: AggregationResult<ExtraFile.Schema>;
} & {
[A in Notification$applicationAggr]?: AggregationResult<Notification.Schema>;
} & {
[A in SessionMessage$applicationAggr]?: AggregationResult<SessionMessage.Schema>;
} & {
[A in Token$applicationAggr]?: AggregationResult<Token.Schema>;
} & {
[A in WechatMenu$applicationAggr]?: AggregationResult<WechatMenu.Schema>;
} & {
[A in WechatPublicAutoReply$applicationAggr]?: AggregationResult<WechatPublicAutoReply.Schema>;
} & {
[A in WechatPublicTag$applicationAggr]?: AggregationResult<WechatPublicTag.Schema>;
} & {
[A in WechatQrCode$applicationAggr]?: AggregationResult<WechatQrCode.Schema>;
} & {
[A in WechatTemplate$applicationAggr]?: AggregationResult<WechatTemplate.Schema>;
} & {
[A in WechatUser$applicationAggr]?: AggregationResult<WechatUser.Schema>;
} & {
[A in Session$entityAggr]?: AggregationResult<Session.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -175,76 +192,88 @@ export type Projection = {
applicationPassport$application?: ApplicationPassport.Selection & {
$entity: "applicationPassport";
};
applicationPassport$application$$aggr?: ApplicationPassport.Aggregation & {
$entity: "applicationPassport";
};
extraFile$application?: ExtraFile.Selection & {
$entity: "extraFile";
};
extraFile$application$$aggr?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
notification$application?: Notification.Selection & {
$entity: "notification";
};
notification$application$$aggr?: Notification.Aggregation & {
$entity: "notification";
};
sessionMessage$application?: SessionMessage.Selection & {
$entity: "sessionMessage";
};
sessionMessage$application$$aggr?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
token$application?: Token.Selection & {
$entity: "token";
};
token$application$$aggr?: Token.Aggregation & {
$entity: "token";
};
wechatMenu$application?: WechatMenu.Selection & {
$entity: "wechatMenu";
};
wechatMenu$application$$aggr?: WechatMenu.Aggregation & {
$entity: "wechatMenu";
};
wechatPublicAutoReply$application?: WechatPublicAutoReply.Selection & {
$entity: "wechatPublicAutoReply";
};
wechatPublicAutoReply$application$$aggr?: WechatPublicAutoReply.Aggregation & {
$entity: "wechatPublicAutoReply";
};
wechatPublicTag$application?: WechatPublicTag.Selection & {
$entity: "wechatPublicTag";
};
wechatPublicTag$application$$aggr?: WechatPublicTag.Aggregation & {
$entity: "wechatPublicTag";
};
wechatQrCode$application?: WechatQrCode.Selection & {
$entity: "wechatQrCode";
};
wechatQrCode$application$$aggr?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
wechatTemplate$application?: WechatTemplate.Selection & {
$entity: "wechatTemplate";
};
wechatTemplate$application$$aggr?: WechatTemplate.Aggregation & {
$entity: "wechatTemplate";
};
wechatUser$application?: WechatUser.Selection & {
$entity: "wechatUser";
};
wechatUser$application$$aggr?: WechatUser.Aggregation & {
$entity: "wechatUser";
};
session$entity?: Session.Selection & {
$entity: "session";
};
session$entity$$aggr?: Session.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ApplicationPassport$applicationAggr]?: ApplicationPassport.Aggregation & {
$entity: "applicationPassport";
};
} & {
[A in ExtraFile$applicationAggr]?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
} & {
[A in Notification$applicationAggr]?: Notification.Aggregation & {
$entity: "notification";
};
} & {
[A in SessionMessage$applicationAggr]?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
} & {
[A in Token$applicationAggr]?: Token.Aggregation & {
$entity: "token";
};
} & {
[A in WechatMenu$applicationAggr]?: WechatMenu.Aggregation & {
$entity: "wechatMenu";
};
} & {
[A in WechatPublicAutoReply$applicationAggr]?: WechatPublicAutoReply.Aggregation & {
$entity: "wechatPublicAutoReply";
};
} & {
[A in WechatPublicTag$applicationAggr]?: WechatPublicTag.Aggregation & {
$entity: "wechatPublicTag";
};
} & {
[A in WechatQrCode$applicationAggr]?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
} & {
[A in WechatTemplate$applicationAggr]?: WechatTemplate.Aggregation & {
$entity: "wechatTemplate";
};
} & {
[A in WechatUser$applicationAggr]?: WechatUser.Aggregation & {
$entity: "wechatUser";
};
} & {
[A in Session$entityAggr]?: Session.Aggregation & {
$entity: "session";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ApplicationIdProjection = OneOf<{
id: number;
}>;

View File

@ -12,10 +12,7 @@ export type OpSchema = EntityShape & {
isDefault: Boolean;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
applicationId: ForeignKey<"application">;
passportId: ForeignKey<"passport">;
isDefault: Boolean;
export type Schema = OpSchema & {
application: Application.Schema;
passport: Passport.Schema;
} & {

View File

@ -16,24 +16,26 @@ export type OpSchema = EntityShape & {
center: Geo;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
level: "province" | "city" | "district" | "street" | "country";
depth: 0 | 1 | 2 | 3 | 4;
parentId?: ForeignKey<"area"> | null;
code: String<12>;
center: Geo;
type Address$areaAggr = "address$area$$aggr" | "address$area$$0$$aggr" | "address$area$$1$$aggr" | "address$area$$2$$aggr" | "address$area$$3$$aggr" | "address$area$$4$$aggr" | "address$area$$5$$aggr" | "address$area$$6$$aggr" | "address$area$$7$$aggr" | "address$area$$8$$aggr" | "address$area$$9$$aggr";
type Area$parentAggr = "area$parent$$aggr" | "area$parent$$0$$aggr" | "area$parent$$1$$aggr" | "area$parent$$2$$aggr" | "area$parent$$3$$aggr" | "area$parent$$4$$aggr" | "area$parent$$5$$aggr" | "area$parent$$6$$aggr" | "area$parent$$7$$aggr" | "area$parent$$8$$aggr" | "area$parent$$9$$aggr";
type Station$areaAggr = "station$area$$aggr" | "station$area$$0$$aggr" | "station$area$$1$$aggr" | "station$area$$2$$aggr" | "station$area$$3$$aggr" | "station$area$$4$$aggr" | "station$area$$5$$aggr" | "station$area$$6$$aggr" | "station$area$$7$$aggr" | "station$area$$8$$aggr" | "station$area$$9$$aggr";
type Subway$areaAggr = "subway$area$$aggr" | "subway$area$$0$$aggr" | "subway$area$$1$$aggr" | "subway$area$$2$$aggr" | "subway$area$$3$$aggr" | "subway$area$$4$$aggr" | "subway$area$$5$$aggr" | "subway$area$$6$$aggr" | "subway$area$$7$$aggr" | "subway$area$$8$$aggr" | "subway$area$$9$$aggr";
export type Schema = OpSchema & {
parent?: Schema | null;
address$area?: Array<Address.Schema>;
address$area$$aggr?: AggregationResult<Address.Schema>;
area$parent?: Array<Schema>;
area$parent$$aggr?: AggregationResult<Schema>;
station$area?: Array<Station.Schema>;
station$area$$aggr?: AggregationResult<Station.Schema>;
subway$area?: Array<Subway.Schema>;
subway$area$$aggr?: AggregationResult<Subway.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Address$areaAggr]?: AggregationResult<Address.Schema>;
} & {
[A in Area$parentAggr]?: AggregationResult<Schema>;
} & {
[A in Station$areaAggr]?: AggregationResult<Station.Schema>;
} & {
[A in Subway$areaAggr]?: AggregationResult<Subway.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -69,28 +71,32 @@ export type Projection = {
address$area?: Address.Selection & {
$entity: "address";
};
address$area$$aggr?: Address.Aggregation & {
$entity: "address";
};
area$parent?: Selection & {
$entity: "area";
};
area$parent$$aggr?: Aggregation & {
$entity: "area";
};
station$area?: Station.Selection & {
$entity: "station";
};
station$area$$aggr?: Station.Aggregation & {
$entity: "station";
};
subway$area?: Subway.Selection & {
$entity: "subway";
};
subway$area$$aggr?: Subway.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Address$areaAggr]?: Address.Aggregation & {
$entity: "address";
};
} & {
[A in Area$parentAggr]?: Aggregation & {
$entity: "area";
};
} & {
[A in Station$areaAggr]?: Station.Aggregation & {
$entity: "station";
};
} & {
[A in Subway$areaAggr]?: Subway.Aggregation & {
$entity: "subway";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type AreaIdProjection = OneOf<{
id: number;
parentId: number;

View File

@ -12,15 +12,14 @@ export type OpSchema = EntityShape & {
articleMenuId: ForeignKey<"articleMenu">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
content: Text;
articleMenuId: ForeignKey<"articleMenu">;
type ExtraFile$entityAggr = "extraFile$entity$$aggr" | "extraFile$entity$$0$$aggr" | "extraFile$entity$$1$$aggr" | "extraFile$entity$$2$$aggr" | "extraFile$entity$$3$$aggr" | "extraFile$entity$$4$$aggr" | "extraFile$entity$$5$$aggr" | "extraFile$entity$$6$$aggr" | "extraFile$entity$$7$$aggr" | "extraFile$entity$$8$$aggr" | "extraFile$entity$$9$$aggr";
export type Schema = OpSchema & {
articleMenu: ArticleMenu.Schema;
extraFile$entity?: Array<ExtraFile.Schema>;
extraFile$entity$$aggr?: AggregationResult<ExtraFile.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ExtraFile$entityAggr]?: AggregationResult<ExtraFile.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -48,10 +47,11 @@ export type Projection = {
extraFile$entity?: ExtraFile.Selection & {
$entity: "extraFile";
};
extraFile$entity$$aggr?: ExtraFile.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ExtraFile$entityAggr]?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ArticleIdProjection = OneOf<{
id: number;
}>;

View File

@ -15,22 +15,22 @@ export type OpSchema = EntityShape & {
entityId: String<64>;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
isArticle: Boolean;
parentId?: ForeignKey<"articleMenu"> | null;
isLeaf?: Boolean | null;
entity: String<32>;
entityId: String<64>;
type Article$articleMenuAggr = "article$articleMenu$$aggr" | "article$articleMenu$$0$$aggr" | "article$articleMenu$$1$$aggr" | "article$articleMenu$$2$$aggr" | "article$articleMenu$$3$$aggr" | "article$articleMenu$$4$$aggr" | "article$articleMenu$$5$$aggr" | "article$articleMenu$$6$$aggr" | "article$articleMenu$$7$$aggr" | "article$articleMenu$$8$$aggr" | "article$articleMenu$$9$$aggr";
type ArticleMenu$parentAggr = "articleMenu$parent$$aggr" | "articleMenu$parent$$0$$aggr" | "articleMenu$parent$$1$$aggr" | "articleMenu$parent$$2$$aggr" | "articleMenu$parent$$3$$aggr" | "articleMenu$parent$$4$$aggr" | "articleMenu$parent$$5$$aggr" | "articleMenu$parent$$6$$aggr" | "articleMenu$parent$$7$$aggr" | "articleMenu$parent$$8$$aggr" | "articleMenu$parent$$9$$aggr";
type ExtraFile$entityAggr = "extraFile$entity$$aggr" | "extraFile$entity$$0$$aggr" | "extraFile$entity$$1$$aggr" | "extraFile$entity$$2$$aggr" | "extraFile$entity$$3$$aggr" | "extraFile$entity$$4$$aggr" | "extraFile$entity$$5$$aggr" | "extraFile$entity$$6$$aggr" | "extraFile$entity$$7$$aggr" | "extraFile$entity$$8$$aggr" | "extraFile$entity$$9$$aggr";
export type Schema = OpSchema & {
parent?: Schema | null;
article$articleMenu?: Array<Article.Schema>;
article$articleMenu$$aggr?: AggregationResult<Article.Schema>;
articleMenu$parent?: Array<Schema>;
articleMenu$parent$$aggr?: AggregationResult<Schema>;
extraFile$entity?: Array<ExtraFile.Schema>;
extraFile$entity$$aggr?: AggregationResult<ExtraFile.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Article$articleMenuAggr]?: AggregationResult<Article.Schema>;
} & {
[A in ArticleMenu$parentAggr]?: AggregationResult<Schema>;
} & {
[A in ExtraFile$entityAggr]?: AggregationResult<ExtraFile.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -66,22 +66,25 @@ export type Projection = {
article$articleMenu?: Article.Selection & {
$entity: "article";
};
article$articleMenu$$aggr?: Article.Aggregation & {
$entity: "article";
};
articleMenu$parent?: Selection & {
$entity: "articleMenu";
};
articleMenu$parent$$aggr?: Aggregation & {
$entity: "articleMenu";
};
extraFile$entity?: ExtraFile.Selection & {
$entity: "extraFile";
};
extraFile$entity$$aggr?: ExtraFile.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Article$articleMenuAggr]?: Article.Aggregation & {
$entity: "article";
};
} & {
[A in ArticleMenu$parentAggr]?: Aggregation & {
$entity: "articleMenu";
};
} & {
[A in ExtraFile$entityAggr]?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ArticleMenuIdProjection = OneOf<{
id: number;
parentId: number;

View File

@ -16,18 +16,7 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
origin: "mobile" | "email";
content: String<32>;
code: String<8>;
visitorId: Text;
reason?: Text | null;
env: Object;
expired: Boolean;
expiresAt: Datetime;
type: "login" | "changePassword" | "confirm";
iState?: IState | null;
} & {
export type Schema = OpSchema & {} & {
[A in ExpressionKey]?: any;
};
type AttrFilter = {

View File

@ -12,11 +12,7 @@ export type OpSchema = EntityShape & {
result: "success" | "fail";
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
userId: ForeignKey<"user">;
prevPassword?: String<32> | null;
newPassword?: String<32> | null;
result: "success" | "fail";
export type Schema = OpSchema & {
user: User.Schema;
} & {
[A in ExpressionKey]?: any;

View File

@ -14,17 +14,14 @@ export type OpSchema = EntityShape & {
systemId: ForeignKey<"system">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
url: String<64>;
apiPath?: String<32> | null;
protocol: "http:" | "https:";
port: Int<2>;
systemId: ForeignKey<"system">;
type Application$domainAggr = "application$domain$$aggr" | "application$domain$$0$$aggr" | "application$domain$$1$$aggr" | "application$domain$$2$$aggr" | "application$domain$$3$$aggr" | "application$domain$$4$$aggr" | "application$domain$$5$$aggr" | "application$domain$$6$$aggr" | "application$domain$$7$$aggr" | "application$domain$$8$$aggr" | "application$domain$$9$$aggr";
export type Schema = OpSchema & {
system: System.Schema;
application$domain?: Array<Application.Schema>;
application$domain$$aggr?: AggregationResult<Application.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Application$domainAggr]?: AggregationResult<Application.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -56,10 +53,11 @@ export type Projection = {
application$domain?: Application.Selection & {
$entity: "application";
};
application$domain$$aggr?: Application.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Application$domainAggr]?: Application.Aggregation & {
$entity: "application";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type DomainIdProjection = OneOf<{
id: number;
}>;

View File

@ -13,15 +13,14 @@ export type OpSchema = EntityShape & {
ableState?: AbleState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
email: String<32>;
userId: ForeignKey<"user">;
ableState?: AbleState | null;
type Token$entityAggr = "token$entity$$aggr" | "token$entity$$0$$aggr" | "token$entity$$1$$aggr" | "token$entity$$2$$aggr" | "token$entity$$3$$aggr" | "token$entity$$4$$aggr" | "token$entity$$5$$aggr" | "token$entity$$6$$aggr" | "token$entity$$7$$aggr" | "token$entity$$8$$aggr" | "token$entity$$9$$aggr";
export type Schema = OpSchema & {
user: User.Schema;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Token$entityAggr]?: AggregationResult<Token.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -49,10 +48,11 @@ export type Projection = {
token$entity?: Token.Selection & {
$entity: "token";
};
token$entity$$aggr?: Token.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Token$entityAggr]?: Token.Aggregation & {
$entity: "token";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type EmailIdProjection = OneOf<{
id: number;
}>;

View File

@ -32,27 +32,7 @@ export type OpSchema = EntityShape & {
applicationId: ForeignKey<"application">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
origin: "qiniu" | "wechat" | "ctyun" | "aliyun" | "tencent" | "unknown";
type: "image" | "video" | "audio" | "file";
bucket?: String<32> | null;
objectId?: String<64> | null;
tag1?: String<32> | null;
tag2?: String<32> | null;
filename: String<256>;
md5?: Text | null;
entity: "article" | "articleMenu" | "sessionMessage" | "user" | string;
entityId: String<64>;
extra1?: Text | null;
extra2?: Object | null;
extension?: String<16> | null;
size?: Int<8> | null;
sort?: Float<22, 10> | null;
fileType?: String<128> | null;
isBridge?: Boolean | null;
uploadState: "success" | "failed" | "uploading";
uploadMeta?: Object | null;
applicationId: ForeignKey<"application">;
export type Schema = OpSchema & {
application: Application.Schema;
article?: Article.Schema;
articleMenu?: ArticleMenu.Schema;

View File

@ -11,13 +11,7 @@ export type OpSchema = EntityShape & {
data: Object;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
module: String<64>;
position: String<188>;
namespace: String<256>;
language: String<32>;
data: Object;
} & {
export type Schema = OpSchema & {} & {
[A in ExpressionKey]?: any;
};
type AttrFilter = {

View File

@ -17,19 +17,7 @@ export type OpSchema = EntityShape & {
expireAt: Datetime;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
title: String<32>;
streamTitle: String<32>;
liveonly: "online" | "offline";
hub: String<32>;
streamKey: String<64>;
entity: String<32>;
entityId: String<64>;
rtmpPushUrl: String<64>;
rtmpPlayUrl: String<64>;
pcPushUrl: String<64>;
expireAt: Datetime;
} & {
export type Schema = OpSchema & {} & {
[A in ExpressionKey]?: any;
};
type AttrFilter = {

View File

@ -10,14 +10,13 @@ export type OpSchema = EntityShape & {
iState: "normal" | "rollbacked";
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
entity: String<32>;
entityId: String<64>;
iState: "normal" | "rollbacked";
type Oper$logAggr = "oper$log$$aggr" | "oper$log$$0$$aggr" | "oper$log$$1$$aggr" | "oper$log$$2$$aggr" | "oper$log$$3$$aggr" | "oper$log$$4$$aggr" | "oper$log$$5$$aggr" | "oper$log$$6$$aggr" | "oper$log$$7$$aggr" | "oper$log$$8$$aggr" | "oper$log$$9$$aggr";
export type Schema = OpSchema & {
oper$log?: Array<Oper.Schema>;
oper$log$$aggr?: AggregationResult<Oper.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Oper$logAggr]?: AggregationResult<Oper.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -43,10 +42,11 @@ export type Projection = {
oper$log?: Oper.Selection & {
$entity: "oper";
};
oper$log$$aggr?: Oper.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Oper$logAggr]?: Oper.Aggregation & {
$entity: "oper";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type LogIdProjection = OneOf<{
id: number;
}>;

View File

@ -13,15 +13,14 @@ export type OpSchema = EntityShape & {
ableState?: AbleState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
userId: ForeignKey<"user">;
ableState?: AbleState | null;
type Token$entityAggr = "token$entity$$aggr" | "token$entity$$0$$aggr" | "token$entity$$1$$aggr" | "token$entity$$2$$aggr" | "token$entity$$3$$aggr" | "token$entity$$4$$aggr" | "token$entity$$5$$aggr" | "token$entity$$6$$aggr" | "token$entity$$7$$aggr" | "token$entity$$8$$aggr" | "token$entity$$9$$aggr";
export type Schema = OpSchema & {
user: User.Schema;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Token$entityAggr]?: AggregationResult<Token.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -49,10 +48,11 @@ export type Projection = {
token$entity?: Token.Selection & {
$entity: "token";
};
token$entity$$aggr?: Token.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Token$entityAggr]?: Token.Aggregation & {
$entity: "token";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type LoginNameIdProjection = OneOf<{
id: number;
}>;

View File

@ -37,29 +37,19 @@ export type OpSchema = EntityShape & {
visitState?: VisitState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
entity: String<32>;
entityId: String<64>;
userId: ForeignKey<"user">;
type: String<64>;
weight: Weight;
restriction?: MessageRestriction | null;
title: String<256>;
content: Text;
data?: Object | null;
router?: Router | null;
platformId?: ForeignKey<"platform"> | null;
channels?: Channels | null;
iState?: IState | null;
visitState?: VisitState | null;
type MessageSystem$messageAggr = "messageSystem$message$$aggr" | "messageSystem$message$$0$$aggr" | "messageSystem$message$$1$$aggr" | "messageSystem$message$$2$$aggr" | "messageSystem$message$$3$$aggr" | "messageSystem$message$$4$$aggr" | "messageSystem$message$$5$$aggr" | "messageSystem$message$$6$$aggr" | "messageSystem$message$$7$$aggr" | "messageSystem$message$$8$$aggr" | "messageSystem$message$$9$$aggr";
type WechatMpJump$messageAggr = "wechatMpJump$message$$aggr" | "wechatMpJump$message$$0$$aggr" | "wechatMpJump$message$$1$$aggr" | "wechatMpJump$message$$2$$aggr" | "wechatMpJump$message$$3$$aggr" | "wechatMpJump$message$$4$$aggr" | "wechatMpJump$message$$5$$aggr" | "wechatMpJump$message$$6$$aggr" | "wechatMpJump$message$$7$$aggr" | "wechatMpJump$message$$8$$aggr" | "wechatMpJump$message$$9$$aggr";
export type Schema = OpSchema & {
user: User.Schema;
platform?: Platform.Schema | null;
messageSystem$message?: Array<MessageSystem.Schema>;
messageSystem$message$$aggr?: AggregationResult<MessageSystem.Schema>;
wechatMpJump$message?: Array<WechatMpJump.Schema>;
wechatMpJump$message$$aggr?: AggregationResult<WechatMpJump.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in MessageSystem$messageAggr]?: AggregationResult<MessageSystem.Schema>;
} & {
[A in WechatMpJump$messageAggr]?: AggregationResult<WechatMpJump.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -112,16 +102,18 @@ export type Projection = {
messageSystem$message?: MessageSystem.Selection & {
$entity: "messageSystem";
};
messageSystem$message$$aggr?: MessageSystem.Aggregation & {
$entity: "messageSystem";
};
wechatMpJump$message?: WechatMpJump.Selection & {
$entity: "wechatMpJump";
};
wechatMpJump$message$$aggr?: WechatMpJump.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in MessageSystem$messageAggr]?: MessageSystem.Aggregation & {
$entity: "messageSystem";
};
} & {
[A in WechatMpJump$messageAggr]?: WechatMpJump.Aggregation & {
$entity: "wechatMpJump";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type MessageIdProjection = OneOf<{
id: number;
}>;

View File

@ -11,15 +11,15 @@ export type OpSchema = EntityShape & {
systemId: ForeignKey<"system">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
messageId: ForeignKey<"message">;
systemId: ForeignKey<"system">;
type Notification$messageSystemAggr = "notification$messageSystem$$aggr" | "notification$messageSystem$$0$$aggr" | "notification$messageSystem$$1$$aggr" | "notification$messageSystem$$2$$aggr" | "notification$messageSystem$$3$$aggr" | "notification$messageSystem$$4$$aggr" | "notification$messageSystem$$5$$aggr" | "notification$messageSystem$$6$$aggr" | "notification$messageSystem$$7$$aggr" | "notification$messageSystem$$8$$aggr" | "notification$messageSystem$$9$$aggr";
export type Schema = OpSchema & {
message: Message.Schema;
system: System.Schema;
notification$messageSystem?: Array<Notification.Schema>;
notification$messageSystem$$aggr?: AggregationResult<Notification.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Notification$messageSystemAggr]?: AggregationResult<Notification.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -47,10 +47,11 @@ export type Projection = {
notification$messageSystem?: Notification.Selection & {
$entity: "notification";
};
notification$messageSystem$$aggr?: Notification.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Notification$messageSystemAggr]?: Notification.Aggregation & {
$entity: "notification";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type MessageSystemIdProjection = OneOf<{
id: number;
}>;

View File

@ -7,9 +7,7 @@ export type OpSchema = EntityShape & {
type: String<64>;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
type: String<64>;
} & {
export type Schema = OpSchema & {} & {
[A in ExpressionKey]?: any;
};
type AttrFilter = {

View File

@ -10,9 +10,7 @@ export type OpSchema = EntityShape & {
templateId: ForeignKey<"smsTemplate">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
type: String<64>;
templateId: ForeignKey<"smsTemplate">;
export type Schema = OpSchema & {
template: SmsTemplate.Schema;
} & {
[A in ExpressionKey]?: any;

View File

@ -10,9 +10,7 @@ export type OpSchema = EntityShape & {
templateId: ForeignKey<"wechatTemplate">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
type: String<64>;
templateId: ForeignKey<"wechatTemplate">;
export type Schema = OpSchema & {
template: WechatTemplate.Schema;
} & {
[A in ExpressionKey]?: any;

View File

@ -13,15 +13,14 @@ export type OpSchema = EntityShape & {
ableState?: AbleState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
mobile: String<16>;
userId?: ForeignKey<"user"> | null;
ableState?: AbleState | null;
type Token$entityAggr = "token$entity$$aggr" | "token$entity$$0$$aggr" | "token$entity$$1$$aggr" | "token$entity$$2$$aggr" | "token$entity$$3$$aggr" | "token$entity$$4$$aggr" | "token$entity$$5$$aggr" | "token$entity$$6$$aggr" | "token$entity$$7$$aggr" | "token$entity$$8$$aggr" | "token$entity$$9$$aggr";
export type Schema = OpSchema & {
user?: User.Schema | null;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Token$entityAggr]?: AggregationResult<Token.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -49,10 +48,11 @@ export type Projection = {
token$entity?: Token.Selection & {
$entity: "token";
};
token$entity$$aggr?: Token.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Token$entityAggr]?: Token.Aggregation & {
$entity: "token";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type MobileIdProjection = OneOf<{
id: number;
}>;

View File

@ -15,19 +15,13 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
targetEntity: String<32>;
entity: String<32>;
entityId: String<64>;
action: String<24>;
data: Object;
filter?: Object | null;
extra?: Object | null;
iState?: IState | null;
type ModiEntity$modiAggr = "modiEntity$modi$$aggr" | "modiEntity$modi$$0$$aggr" | "modiEntity$modi$$1$$aggr" | "modiEntity$modi$$2$$aggr" | "modiEntity$modi$$3$$aggr" | "modiEntity$modi$$4$$aggr" | "modiEntity$modi$$5$$aggr" | "modiEntity$modi$$6$$aggr" | "modiEntity$modi$$7$$aggr" | "modiEntity$modi$$8$$aggr" | "modiEntity$modi$$9$$aggr";
export type Schema = OpSchema & {
modiEntity$modi?: Array<ModiEntity.Schema>;
modiEntity$modi$$aggr?: AggregationResult<ModiEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$modiAggr]?: AggregationResult<ModiEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -63,10 +57,11 @@ export type Projection = {
modiEntity$modi?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$modi$$aggr?: ModiEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$modiAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ModiIdProjection = OneOf<{
id: number;
}>;

View File

@ -23,10 +23,7 @@ export type OpSchema = EntityShape & {
entityId: String<64>;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
modiId: ForeignKey<"modi">;
entity: "user" | "userEntityGrant" | "userSystem" | "userWechatPublicTag" | "wechatLogin" | "wechatMenu" | "wechatMpJump" | "wechatPublicAutoReply" | "wechatPublicTag" | "wechatQrCode" | "wechatTemplate" | "wechatUser" | string;
entityId: String<64>;
export type Schema = OpSchema & {
modi: Modi.Schema;
user?: User.Schema;
userEntityGrant?: UserEntityGrant.Schema;

View File

@ -18,15 +18,7 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
channel: Channel;
applicationId?: ForeignKey<"application"> | null;
data?: Object | null;
messageSystemId: ForeignKey<"messageSystem">;
data1?: Object | null;
data2?: Object | null;
templateId?: String<128> | null;
iState?: IState | null;
export type Schema = OpSchema & {
application?: Application.Schema | null;
messageSystem: MessageSystem.Schema;
} & {

View File

@ -20,23 +20,15 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
action: String<24>;
data: Object;
filter?: Object | null;
extra?: Object | null;
operatorId?: ForeignKey<"user"> | null;
targetEntity: String<32>;
bornAt?: Datetime | null;
logId?: ForeignKey<"log"> | null;
undoData?: Object | null;
iState?: IState | null;
type OperEntity$operAggr = "operEntity$oper$$aggr" | "operEntity$oper$$0$$aggr" | "operEntity$oper$$1$$aggr" | "operEntity$oper$$2$$aggr" | "operEntity$oper$$3$$aggr" | "operEntity$oper$$4$$aggr" | "operEntity$oper$$5$$aggr" | "operEntity$oper$$6$$aggr" | "operEntity$oper$$7$$aggr" | "operEntity$oper$$8$$aggr" | "operEntity$oper$$9$$aggr";
export type Schema = OpSchema & {
operator?: User.Schema | null;
log?: Log.Schema | null;
operEntity$oper?: Array<OperEntity.Schema>;
operEntity$oper$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in OperEntity$operAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -80,10 +72,11 @@ export type Projection = {
operEntity$oper?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$oper$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in OperEntity$operAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type OperIdProjection = OneOf<{
id: number;
}>;

View File

@ -23,10 +23,7 @@ export type OpSchema = EntityShape & {
entityId: String<64>;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
operId: ForeignKey<"oper">;
entity: "user" | "userEntityGrant" | "userSystem" | "userWechatPublicTag" | "wechatLogin" | "wechatMenu" | "wechatMpJump" | "wechatPublicAutoReply" | "wechatPublicTag" | "wechatQrCode" | "wechatTemplate" | "wechatUser" | string;
entityId: String<64>;
export type Schema = OpSchema & {
oper: Oper.Schema;
user?: User.Schema;
userEntityGrant?: UserEntityGrant.Schema;

View File

@ -23,21 +23,14 @@ export type OpSchema = EntityShape & {
tokenLifeLength?: Int<4> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
userId: ForeignKey<"user">;
entity: String<32>;
entityId: String<64>;
showTip?: Boolean | null;
expiresAt: Datetime;
expired: Boolean;
redirectTo: RedirectTo;
multiple?: Boolean | null;
tokenLifeLength?: Int<4> | null;
type Token$entityAggr = "token$entity$$aggr" | "token$entity$$0$$aggr" | "token$entity$$1$$aggr" | "token$entity$$2$$aggr" | "token$entity$$3$$aggr" | "token$entity$$4$$aggr" | "token$entity$$5$$aggr" | "token$entity$$6$$aggr" | "token$entity$$7$$aggr" | "token$entity$$8$$aggr" | "token$entity$$9$$aggr";
export type Schema = OpSchema & {
user: User.Schema;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Token$entityAggr]?: AggregationResult<Token.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -77,10 +70,11 @@ export type Projection = {
token$entity?: Token.Selection & {
$entity: "token";
};
token$entity$$aggr?: Token.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Token$entityAggr]?: Token.Aggregation & {
$entity: "token";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ParasiteIdProjection = OneOf<{
id: number;
}>;

View File

@ -36,16 +36,14 @@ export type OpSchema = EntityShape & {
enabled: Boolean;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
systemId: ForeignKey<"system">;
type: Type;
config?: (SmsConfig | EmailConfig | PfwConfig | MfwConfig) | null;
enabled: Boolean;
type ApplicationPassport$passportAggr = "applicationPassport$passport$$aggr" | "applicationPassport$passport$$0$$aggr" | "applicationPassport$passport$$1$$aggr" | "applicationPassport$passport$$2$$aggr" | "applicationPassport$passport$$3$$aggr" | "applicationPassport$passport$$4$$aggr" | "applicationPassport$passport$$5$$aggr" | "applicationPassport$passport$$6$$aggr" | "applicationPassport$passport$$7$$aggr" | "applicationPassport$passport$$8$$aggr" | "applicationPassport$passport$$9$$aggr";
export type Schema = OpSchema & {
system: System.Schema;
applicationPassport$passport?: Array<ApplicationPassport.Schema>;
applicationPassport$passport$$aggr?: AggregationResult<ApplicationPassport.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ApplicationPassport$passportAggr]?: AggregationResult<ApplicationPassport.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -75,10 +73,11 @@ export type Projection = {
applicationPassport$passport?: ApplicationPassport.Selection & {
$entity: "applicationPassport";
};
applicationPassport$passport$$aggr?: ApplicationPassport.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ApplicationPassport$passportAggr]?: ApplicationPassport.Aggregation & {
$entity: "applicationPassport";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type PassportIdProjection = OneOf<{
id: number;
}>;

View File

@ -13,18 +13,17 @@ export type OpSchema = EntityShape & {
desc?: String<256> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
destEntity: String<32>;
value: String<256>;
recursive: Boolean;
sourceEntity: String<32>;
desc?: String<256> | null;
type ActionAuth$pathAggr = "actionAuth$path$$aggr" | "actionAuth$path$$0$$aggr" | "actionAuth$path$$1$$aggr" | "actionAuth$path$$2$$aggr" | "actionAuth$path$$3$$aggr" | "actionAuth$path$$4$$aggr" | "actionAuth$path$$5$$aggr" | "actionAuth$path$$6$$aggr" | "actionAuth$path$$7$$aggr" | "actionAuth$path$$8$$aggr" | "actionAuth$path$$9$$aggr";
type RelationAuth$pathAggr = "relationAuth$path$$aggr" | "relationAuth$path$$0$$aggr" | "relationAuth$path$$1$$aggr" | "relationAuth$path$$2$$aggr" | "relationAuth$path$$3$$aggr" | "relationAuth$path$$4$$aggr" | "relationAuth$path$$5$$aggr" | "relationAuth$path$$6$$aggr" | "relationAuth$path$$7$$aggr" | "relationAuth$path$$8$$aggr" | "relationAuth$path$$9$$aggr";
export type Schema = OpSchema & {
actionAuth$path?: Array<ActionAuth.Schema>;
actionAuth$path$$aggr?: AggregationResult<ActionAuth.Schema>;
relationAuth$path?: Array<RelationAuth.Schema>;
relationAuth$path$$aggr?: AggregationResult<RelationAuth.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ActionAuth$pathAggr]?: AggregationResult<ActionAuth.Schema>;
} & {
[A in RelationAuth$pathAggr]?: AggregationResult<RelationAuth.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -55,16 +54,18 @@ export type Projection = {
actionAuth$path?: ActionAuth.Selection & {
$entity: "actionAuth";
};
actionAuth$path$$aggr?: ActionAuth.Aggregation & {
$entity: "actionAuth";
};
relationAuth$path?: RelationAuth.Selection & {
$entity: "relationAuth";
};
relationAuth$path$$aggr?: RelationAuth.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ActionAuth$pathAggr]?: ActionAuth.Aggregation & {
$entity: "actionAuth";
};
} & {
[A in RelationAuth$pathAggr]?: RelationAuth.Aggregation & {
$entity: "relationAuth";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type PathIdProjection = OneOf<{
id: number;
}>;

View File

@ -17,19 +17,17 @@ export type OpSchema = EntityShape & {
entityId?: String<64> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
description?: Text | null;
config: Config;
style?: Style | null;
entity?: String<32> | null;
entityId?: String<64> | null;
type Message$platformAggr = "message$platform$$aggr" | "message$platform$$0$$aggr" | "message$platform$$1$$aggr" | "message$platform$$2$$aggr" | "message$platform$$3$$aggr" | "message$platform$$4$$aggr" | "message$platform$$5$$aggr" | "message$platform$$6$$aggr" | "message$platform$$7$$aggr" | "message$platform$$8$$aggr" | "message$platform$$9$$aggr";
type System$platformAggr = "system$platform$$aggr" | "system$platform$$0$$aggr" | "system$platform$$1$$aggr" | "system$platform$$2$$aggr" | "system$platform$$3$$aggr" | "system$platform$$4$$aggr" | "system$platform$$5$$aggr" | "system$platform$$6$$aggr" | "system$platform$$7$$aggr" | "system$platform$$8$$aggr" | "system$platform$$9$$aggr";
export type Schema = OpSchema & {
message$platform?: Array<Message.Schema>;
message$platform$$aggr?: AggregationResult<Message.Schema>;
system$platform?: Array<System.Schema>;
system$platform$$aggr?: AggregationResult<System.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Message$platformAggr]?: AggregationResult<Message.Schema>;
} & {
[A in System$platformAggr]?: AggregationResult<System.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -62,16 +60,18 @@ export type Projection = {
message$platform?: Message.Selection & {
$entity: "message";
};
message$platform$$aggr?: Message.Aggregation & {
$entity: "message";
};
system$platform?: System.Selection & {
$entity: "system";
};
system$platform$$aggr?: System.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Message$platformAggr]?: Message.Aggregation & {
$entity: "message";
};
} & {
[A in System$platformAggr]?: System.Aggregation & {
$entity: "system";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type PlatformIdProjection = OneOf<{
id: number;
}>;

View File

@ -10,9 +10,7 @@ export type OpSchema = EntityShape & {
sessionId: ForeignKey<"session">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
userId: ForeignKey<"user">;
sessionId: ForeignKey<"session">;
export type Schema = OpSchema & {
user: User.Schema;
session: Session.Schema;
} & {

View File

@ -17,25 +17,31 @@ export type OpSchema = EntityShape & {
display?: String<32> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
entity: "session" | "toDo" | string;
entityId?: String<64> | null;
name?: String<32> | null;
display?: String<32> | null;
type ActionAuth$relationAggr = "actionAuth$relation$$aggr" | "actionAuth$relation$$0$$aggr" | "actionAuth$relation$$1$$aggr" | "actionAuth$relation$$2$$aggr" | "actionAuth$relation$$3$$aggr" | "actionAuth$relation$$4$$aggr" | "actionAuth$relation$$5$$aggr" | "actionAuth$relation$$6$$aggr" | "actionAuth$relation$$7$$aggr" | "actionAuth$relation$$8$$aggr" | "actionAuth$relation$$9$$aggr";
type RelationAuth$sourceRelationAggr = "relationAuth$sourceRelation$$aggr" | "relationAuth$sourceRelation$$0$$aggr" | "relationAuth$sourceRelation$$1$$aggr" | "relationAuth$sourceRelation$$2$$aggr" | "relationAuth$sourceRelation$$3$$aggr" | "relationAuth$sourceRelation$$4$$aggr" | "relationAuth$sourceRelation$$5$$aggr" | "relationAuth$sourceRelation$$6$$aggr" | "relationAuth$sourceRelation$$7$$aggr" | "relationAuth$sourceRelation$$8$$aggr" | "relationAuth$sourceRelation$$9$$aggr";
type RelationAuth$destRelationAggr = "relationAuth$destRelation$$aggr" | "relationAuth$destRelation$$0$$aggr" | "relationAuth$destRelation$$1$$aggr" | "relationAuth$destRelation$$2$$aggr" | "relationAuth$destRelation$$3$$aggr" | "relationAuth$destRelation$$4$$aggr" | "relationAuth$destRelation$$5$$aggr" | "relationAuth$destRelation$$6$$aggr" | "relationAuth$destRelation$$7$$aggr" | "relationAuth$destRelation$$8$$aggr" | "relationAuth$destRelation$$9$$aggr";
type UserEntityClaim$relationAggr = "userEntityClaim$relation$$aggr" | "userEntityClaim$relation$$0$$aggr" | "userEntityClaim$relation$$1$$aggr" | "userEntityClaim$relation$$2$$aggr" | "userEntityClaim$relation$$3$$aggr" | "userEntityClaim$relation$$4$$aggr" | "userEntityClaim$relation$$5$$aggr" | "userEntityClaim$relation$$6$$aggr" | "userEntityClaim$relation$$7$$aggr" | "userEntityClaim$relation$$8$$aggr" | "userEntityClaim$relation$$9$$aggr";
type UserRelation$relationAggr = "userRelation$relation$$aggr" | "userRelation$relation$$0$$aggr" | "userRelation$relation$$1$$aggr" | "userRelation$relation$$2$$aggr" | "userRelation$relation$$3$$aggr" | "userRelation$relation$$4$$aggr" | "userRelation$relation$$5$$aggr" | "userRelation$relation$$6$$aggr" | "userRelation$relation$$7$$aggr" | "userRelation$relation$$8$$aggr" | "userRelation$relation$$9$$aggr";
export type Schema = OpSchema & {
session?: Session.Schema;
toDo?: ToDo.Schema;
actionAuth$relation?: Array<ActionAuth.Schema>;
actionAuth$relation$$aggr?: AggregationResult<ActionAuth.Schema>;
relationAuth$sourceRelation?: Array<RelationAuth.Schema>;
relationAuth$sourceRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
relationAuth$destRelation?: Array<RelationAuth.Schema>;
relationAuth$destRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
userEntityClaim$relation?: Array<UserEntityClaim.Schema>;
userEntityClaim$relation$$aggr?: AggregationResult<UserEntityClaim.Schema>;
userRelation$relation?: Array<UserRelation.Schema>;
userRelation$relation$$aggr?: AggregationResult<UserRelation.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ActionAuth$relationAggr]?: AggregationResult<ActionAuth.Schema>;
} & {
[A in RelationAuth$sourceRelationAggr]?: AggregationResult<RelationAuth.Schema>;
} & {
[A in RelationAuth$destRelationAggr]?: AggregationResult<RelationAuth.Schema>;
} & {
[A in UserEntityClaim$relationAggr]?: AggregationResult<UserEntityClaim.Schema>;
} & {
[A in UserRelation$relationAggr]?: AggregationResult<UserRelation.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -71,34 +77,39 @@ export type Projection = {
actionAuth$relation?: ActionAuth.Selection & {
$entity: "actionAuth";
};
actionAuth$relation$$aggr?: ActionAuth.Aggregation & {
$entity: "actionAuth";
};
relationAuth$sourceRelation?: RelationAuth.Selection & {
$entity: "relationAuth";
};
relationAuth$sourceRelation$$aggr?: RelationAuth.Aggregation & {
$entity: "relationAuth";
};
relationAuth$destRelation?: RelationAuth.Selection & {
$entity: "relationAuth";
};
relationAuth$destRelation$$aggr?: RelationAuth.Aggregation & {
$entity: "relationAuth";
};
userEntityClaim$relation?: UserEntityClaim.Selection & {
$entity: "userEntityClaim";
};
userEntityClaim$relation$$aggr?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
userRelation$relation?: UserRelation.Selection & {
$entity: "userRelation";
};
userRelation$relation$$aggr?: UserRelation.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ActionAuth$relationAggr]?: ActionAuth.Aggregation & {
$entity: "actionAuth";
};
} & {
[A in RelationAuth$sourceRelationAggr]?: RelationAuth.Aggregation & {
$entity: "relationAuth";
};
} & {
[A in RelationAuth$destRelationAggr]?: RelationAuth.Aggregation & {
$entity: "relationAuth";
};
} & {
[A in UserEntityClaim$relationAggr]?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
} & {
[A in UserRelation$relationAggr]?: UserRelation.Aggregation & {
$entity: "userRelation";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type RelationIdProjection = OneOf<{
id: number;
}>;

View File

@ -11,10 +11,7 @@ export type OpSchema = EntityShape & {
destRelationId: ForeignKey<"relation">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
sourceRelationId: ForeignKey<"relation">;
pathId: ForeignKey<"path">;
destRelationId: ForeignKey<"relation">;
export type Schema = OpSchema & {
sourceRelation: Relation.Schema;
path: Path.Schema;
destRelation: Relation.Schema;

View File

@ -18,24 +18,27 @@ export type OpSchema = EntityShape & {
openId?: String<32> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
entity: "application" | string;
entityId: String<64>;
userId?: ForeignKey<"user"> | null;
lmts?: Datetime | null;
openId?: String<32> | null;
type ReadRemark$sessionAggr = "readRemark$session$$aggr" | "readRemark$session$$0$$aggr" | "readRemark$session$$1$$aggr" | "readRemark$session$$2$$aggr" | "readRemark$session$$3$$aggr" | "readRemark$session$$4$$aggr" | "readRemark$session$$5$$aggr" | "readRemark$session$$6$$aggr" | "readRemark$session$$7$$aggr" | "readRemark$session$$8$$aggr" | "readRemark$session$$9$$aggr";
type SessionMessage$sessionAggr = "sessionMessage$session$$aggr" | "sessionMessage$session$$0$$aggr" | "sessionMessage$session$$1$$aggr" | "sessionMessage$session$$2$$aggr" | "sessionMessage$session$$3$$aggr" | "sessionMessage$session$$4$$aggr" | "sessionMessage$session$$5$$aggr" | "sessionMessage$session$$6$$aggr" | "sessionMessage$session$$7$$aggr" | "sessionMessage$session$$8$$aggr" | "sessionMessage$session$$9$$aggr";
type Relation$entityAggr = "relation$entity$$aggr" | "relation$entity$$0$$aggr" | "relation$entity$$1$$aggr" | "relation$entity$$2$$aggr" | "relation$entity$$3$$aggr" | "relation$entity$$4$$aggr" | "relation$entity$$5$$aggr" | "relation$entity$$6$$aggr" | "relation$entity$$7$$aggr" | "relation$entity$$8$$aggr" | "relation$entity$$9$$aggr";
type UserRelation$entityAggr = "userRelation$entity$$aggr" | "userRelation$entity$$0$$aggr" | "userRelation$entity$$1$$aggr" | "userRelation$entity$$2$$aggr" | "userRelation$entity$$3$$aggr" | "userRelation$entity$$4$$aggr" | "userRelation$entity$$5$$aggr" | "userRelation$entity$$6$$aggr" | "userRelation$entity$$7$$aggr" | "userRelation$entity$$8$$aggr" | "userRelation$entity$$9$$aggr";
export type Schema = OpSchema & {
user?: User.Schema | null;
application?: Application.Schema;
readRemark$session?: Array<ReadRemark.Schema>;
readRemark$session$$aggr?: AggregationResult<ReadRemark.Schema>;
sessionMessage$session?: Array<SessionMessage.Schema>;
sessionMessage$session$$aggr?: AggregationResult<SessionMessage.Schema>;
relation$entity?: Array<Relation.Schema>;
relation$entity$$aggr?: AggregationResult<Relation.Schema>;
userRelation$entity?: Array<UserRelation.Schema>;
userRelation$entity$$aggr?: AggregationResult<UserRelation.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ReadRemark$sessionAggr]?: AggregationResult<ReadRemark.Schema>;
} & {
[A in SessionMessage$sessionAggr]?: AggregationResult<SessionMessage.Schema>;
} & {
[A in Relation$entityAggr]?: AggregationResult<Relation.Schema>;
} & {
[A in UserRelation$entityAggr]?: AggregationResult<UserRelation.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -72,28 +75,32 @@ export type Projection = {
readRemark$session?: ReadRemark.Selection & {
$entity: "readRemark";
};
readRemark$session$$aggr?: ReadRemark.Aggregation & {
$entity: "readRemark";
};
sessionMessage$session?: SessionMessage.Selection & {
$entity: "sessionMessage";
};
sessionMessage$session$$aggr?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
relation$entity?: Relation.Selection & {
$entity: "relation";
};
relation$entity$$aggr?: Relation.Aggregation & {
$entity: "relation";
};
userRelation$entity?: UserRelation.Selection & {
$entity: "userRelation";
};
userRelation$entity$$aggr?: UserRelation.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ReadRemark$sessionAggr]?: ReadRemark.Aggregation & {
$entity: "readRemark";
};
} & {
[A in SessionMessage$sessionAggr]?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
} & {
[A in Relation$entityAggr]?: Relation.Aggregation & {
$entity: "relation";
};
} & {
[A in UserRelation$entityAggr]?: UserRelation.Aggregation & {
$entity: "userRelation";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type SessionIdProjection = OneOf<{
id: number;
}>;

View File

@ -23,25 +23,17 @@ export type OpSchema = EntityShape & {
extra?: Object | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
applicationId: ForeignKey<"application">;
sessionId: ForeignKey<"session">;
userId?: ForeignKey<"user"> | null;
wechatUserId?: ForeignKey<"wechatUser"> | null;
createTime?: Datetime | null;
type: Type;
text?: Text | null;
link?: String<128> | null;
aaoe?: Boolean | null;
extra?: Object | null;
type ExtraFile$entityAggr = "extraFile$entity$$aggr" | "extraFile$entity$$0$$aggr" | "extraFile$entity$$1$$aggr" | "extraFile$entity$$2$$aggr" | "extraFile$entity$$3$$aggr" | "extraFile$entity$$4$$aggr" | "extraFile$entity$$5$$aggr" | "extraFile$entity$$6$$aggr" | "extraFile$entity$$7$$aggr" | "extraFile$entity$$8$$aggr" | "extraFile$entity$$9$$aggr";
export type Schema = OpSchema & {
application: Application.Schema;
session: Session.Schema;
user?: User.Schema | null;
wechatUser?: WechatUser.Schema | null;
extraFile$entity?: Array<ExtraFile.Schema>;
extraFile$entity$$aggr?: AggregationResult<ExtraFile.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ExtraFile$entityAggr]?: AggregationResult<ExtraFile.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -89,10 +81,11 @@ export type Projection = {
extraFile$entity?: ExtraFile.Selection & {
$entity: "extraFile";
};
extraFile$entity$$aggr?: ExtraFile.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ExtraFile$entityAggr]?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type SessionMessageIdProjection = OneOf<{
id: number;
}>;

View File

@ -16,18 +16,14 @@ export type OpSchema = EntityShape & {
syncAt: Datetime;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
systemId: ForeignKey<"system">;
origin: Origin;
templateName: Text;
templateCode: String<64>;
templateContent: Text;
syncAt: Datetime;
type MessageTypeSmsTemplate$templateAggr = "messageTypeSmsTemplate$template$$aggr" | "messageTypeSmsTemplate$template$$0$$aggr" | "messageTypeSmsTemplate$template$$1$$aggr" | "messageTypeSmsTemplate$template$$2$$aggr" | "messageTypeSmsTemplate$template$$3$$aggr" | "messageTypeSmsTemplate$template$$4$$aggr" | "messageTypeSmsTemplate$template$$5$$aggr" | "messageTypeSmsTemplate$template$$6$$aggr" | "messageTypeSmsTemplate$template$$7$$aggr" | "messageTypeSmsTemplate$template$$8$$aggr" | "messageTypeSmsTemplate$template$$9$$aggr";
export type Schema = OpSchema & {
system: System.Schema;
messageTypeSmsTemplate$template?: Array<MessageTypeSmsTemplate.Schema>;
messageTypeSmsTemplate$template$$aggr?: AggregationResult<MessageTypeSmsTemplate.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in MessageTypeSmsTemplate$templateAggr]?: AggregationResult<MessageTypeSmsTemplate.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -61,10 +57,11 @@ export type Projection = {
messageTypeSmsTemplate$template?: MessageTypeSmsTemplate.Selection & {
$entity: "messageTypeSmsTemplate";
};
messageTypeSmsTemplate$template$$aggr?: MessageTypeSmsTemplate.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in MessageTypeSmsTemplate$templateAggr]?: MessageTypeSmsTemplate.Aggregation & {
$entity: "messageTypeSmsTemplate";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type SmsTemplateIdProjection = OneOf<{
id: number;
}>;

View File

@ -11,14 +11,14 @@ export type OpSchema = EntityShape & {
areaId: ForeignKey<"area">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
areaId: ForeignKey<"area">;
type SubwayStation$stationAggr = "subwayStation$station$$aggr" | "subwayStation$station$$0$$aggr" | "subwayStation$station$$1$$aggr" | "subwayStation$station$$2$$aggr" | "subwayStation$station$$3$$aggr" | "subwayStation$station$$4$$aggr" | "subwayStation$station$$5$$aggr" | "subwayStation$station$$6$$aggr" | "subwayStation$station$$7$$aggr" | "subwayStation$station$$8$$aggr" | "subwayStation$station$$9$$aggr";
export type Schema = OpSchema & {
area: Area.Schema;
subwayStation$station?: Array<SubwayStation.Schema>;
subwayStation$station$$aggr?: AggregationResult<SubwayStation.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in SubwayStation$stationAggr]?: AggregationResult<SubwayStation.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -44,10 +44,11 @@ export type Projection = {
subwayStation$station?: SubwayStation.Selection & {
$entity: "subwayStation";
};
subwayStation$station$$aggr?: SubwayStation.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in SubwayStation$stationAggr]?: SubwayStation.Aggregation & {
$entity: "subwayStation";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type StationIdProjection = OneOf<{
id: number;
}>;

View File

@ -18,14 +18,7 @@ export type OpSchema = EntityShape & {
offset?: Int<4> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description?: Text | null;
config?: WechatPublicConfig | null;
offset?: Int<4> | null;
} & {
export type Schema = OpSchema & {} & {
[A in ExpressionKey]?: any;
};
type AttrFilter = {

View File

@ -11,14 +11,14 @@ export type OpSchema = EntityShape & {
areaId: ForeignKey<"area">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
areaId: ForeignKey<"area">;
type SubwayStation$subwayAggr = "subwayStation$subway$$aggr" | "subwayStation$subway$$0$$aggr" | "subwayStation$subway$$1$$aggr" | "subwayStation$subway$$2$$aggr" | "subwayStation$subway$$3$$aggr" | "subwayStation$subway$$4$$aggr" | "subwayStation$subway$$5$$aggr" | "subwayStation$subway$$6$$aggr" | "subwayStation$subway$$7$$aggr" | "subwayStation$subway$$8$$aggr" | "subwayStation$subway$$9$$aggr";
export type Schema = OpSchema & {
area: Area.Schema;
subwayStation$subway?: Array<SubwayStation.Schema>;
subwayStation$subway$$aggr?: AggregationResult<SubwayStation.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in SubwayStation$subwayAggr]?: AggregationResult<SubwayStation.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -44,10 +44,11 @@ export type Projection = {
subwayStation$subway?: SubwayStation.Selection & {
$entity: "subwayStation";
};
subwayStation$subway$$aggr?: SubwayStation.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in SubwayStation$subwayAggr]?: SubwayStation.Aggregation & {
$entity: "subwayStation";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type SubwayIdProjection = OneOf<{
id: number;
}>;

View File

@ -10,9 +10,7 @@ export type OpSchema = EntityShape & {
subwayId: ForeignKey<"subway">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
stationId: ForeignKey<"station">;
subwayId: ForeignKey<"subway">;
export type Schema = OpSchema & {
station: Station.Schema;
subway: Subway.Schema;
} & {

View File

@ -25,31 +25,34 @@ export type OpSchema = EntityShape & {
entityId?: String<64> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
description?: Text | null;
config: Config;
platformId?: ForeignKey<"platform"> | null;
folder?: String<16> | null;
super?: Boolean | null;
style?: Style | null;
entity?: String<32> | null;
entityId?: String<64> | null;
type Application$systemAggr = "application$system$$aggr" | "application$system$$0$$aggr" | "application$system$$1$$aggr" | "application$system$$2$$aggr" | "application$system$$3$$aggr" | "application$system$$4$$aggr" | "application$system$$5$$aggr" | "application$system$$6$$aggr" | "application$system$$7$$aggr" | "application$system$$8$$aggr" | "application$system$$9$$aggr";
type Domain$systemAggr = "domain$system$$aggr" | "domain$system$$0$$aggr" | "domain$system$$1$$aggr" | "domain$system$$2$$aggr" | "domain$system$$3$$aggr" | "domain$system$$4$$aggr" | "domain$system$$5$$aggr" | "domain$system$$6$$aggr" | "domain$system$$7$$aggr" | "domain$system$$8$$aggr" | "domain$system$$9$$aggr";
type MessageSystem$systemAggr = "messageSystem$system$$aggr" | "messageSystem$system$$0$$aggr" | "messageSystem$system$$1$$aggr" | "messageSystem$system$$2$$aggr" | "messageSystem$system$$3$$aggr" | "messageSystem$system$$4$$aggr" | "messageSystem$system$$5$$aggr" | "messageSystem$system$$6$$aggr" | "messageSystem$system$$7$$aggr" | "messageSystem$system$$8$$aggr" | "messageSystem$system$$9$$aggr";
type Passport$systemAggr = "passport$system$$aggr" | "passport$system$$0$$aggr" | "passport$system$$1$$aggr" | "passport$system$$2$$aggr" | "passport$system$$3$$aggr" | "passport$system$$4$$aggr" | "passport$system$$5$$aggr" | "passport$system$$6$$aggr" | "passport$system$$7$$aggr" | "passport$system$$8$$aggr" | "passport$system$$9$$aggr";
type SmsTemplate$systemAggr = "smsTemplate$system$$aggr" | "smsTemplate$system$$0$$aggr" | "smsTemplate$system$$1$$aggr" | "smsTemplate$system$$2$$aggr" | "smsTemplate$system$$3$$aggr" | "smsTemplate$system$$4$$aggr" | "smsTemplate$system$$5$$aggr" | "smsTemplate$system$$6$$aggr" | "smsTemplate$system$$7$$aggr" | "smsTemplate$system$$8$$aggr" | "smsTemplate$system$$9$$aggr";
type UserSystem$systemAggr = "userSystem$system$$aggr" | "userSystem$system$$0$$aggr" | "userSystem$system$$1$$aggr" | "userSystem$system$$2$$aggr" | "userSystem$system$$3$$aggr" | "userSystem$system$$4$$aggr" | "userSystem$system$$5$$aggr" | "userSystem$system$$6$$aggr" | "userSystem$system$$7$$aggr" | "userSystem$system$$8$$aggr" | "userSystem$system$$9$$aggr";
export type Schema = OpSchema & {
platform?: Platform.Schema | null;
application$system?: Array<Application.Schema>;
application$system$$aggr?: AggregationResult<Application.Schema>;
domain$system?: Array<Domain.Schema>;
domain$system$$aggr?: AggregationResult<Domain.Schema>;
messageSystem$system?: Array<MessageSystem.Schema>;
messageSystem$system$$aggr?: AggregationResult<MessageSystem.Schema>;
passport$system?: Array<Passport.Schema>;
passport$system$$aggr?: AggregationResult<Passport.Schema>;
smsTemplate$system?: Array<SmsTemplate.Schema>;
smsTemplate$system$$aggr?: AggregationResult<SmsTemplate.Schema>;
userSystem$system?: Array<UserSystem.Schema>;
userSystem$system$$aggr?: AggregationResult<UserSystem.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Application$systemAggr]?: AggregationResult<Application.Schema>;
} & {
[A in Domain$systemAggr]?: AggregationResult<Domain.Schema>;
} & {
[A in MessageSystem$systemAggr]?: AggregationResult<MessageSystem.Schema>;
} & {
[A in Passport$systemAggr]?: AggregationResult<Passport.Schema>;
} & {
[A in SmsTemplate$systemAggr]?: AggregationResult<SmsTemplate.Schema>;
} & {
[A in UserSystem$systemAggr]?: AggregationResult<UserSystem.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -94,40 +97,46 @@ export type Projection = {
application$system?: Application.Selection & {
$entity: "application";
};
application$system$$aggr?: Application.Aggregation & {
$entity: "application";
};
domain$system?: Domain.Selection & {
$entity: "domain";
};
domain$system$$aggr?: Domain.Aggregation & {
$entity: "domain";
};
messageSystem$system?: MessageSystem.Selection & {
$entity: "messageSystem";
};
messageSystem$system$$aggr?: MessageSystem.Aggregation & {
$entity: "messageSystem";
};
passport$system?: Passport.Selection & {
$entity: "passport";
};
passport$system$$aggr?: Passport.Aggregation & {
$entity: "passport";
};
smsTemplate$system?: SmsTemplate.Selection & {
$entity: "smsTemplate";
};
smsTemplate$system$$aggr?: SmsTemplate.Aggregation & {
$entity: "smsTemplate";
};
userSystem$system?: UserSystem.Selection & {
$entity: "userSystem";
};
userSystem$system$$aggr?: UserSystem.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Application$systemAggr]?: Application.Aggregation & {
$entity: "application";
};
} & {
[A in Domain$systemAggr]?: Domain.Aggregation & {
$entity: "domain";
};
} & {
[A in MessageSystem$systemAggr]?: MessageSystem.Aggregation & {
$entity: "messageSystem";
};
} & {
[A in Passport$systemAggr]?: Passport.Aggregation & {
$entity: "passport";
};
} & {
[A in SmsTemplate$systemAggr]?: SmsTemplate.Aggregation & {
$entity: "smsTemplate";
};
} & {
[A in UserSystem$systemAggr]?: UserSystem.Aggregation & {
$entity: "userSystem";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type SystemIdProjection = OneOf<{
id: number;
}>;

View File

@ -23,22 +23,17 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
title: Text;
description?: Text | null;
targetEntity: String<32>;
targetFilter: Object;
action: String<32>;
redirectTo: RedirectToProps;
entity: String<32>;
entityId: String<64>;
iState?: IState | null;
type Relation$entityAggr = "relation$entity$$aggr" | "relation$entity$$0$$aggr" | "relation$entity$$1$$aggr" | "relation$entity$$2$$aggr" | "relation$entity$$3$$aggr" | "relation$entity$$4$$aggr" | "relation$entity$$5$$aggr" | "relation$entity$$6$$aggr" | "relation$entity$$7$$aggr" | "relation$entity$$8$$aggr" | "relation$entity$$9$$aggr";
type UserRelation$entityAggr = "userRelation$entity$$aggr" | "userRelation$entity$$0$$aggr" | "userRelation$entity$$1$$aggr" | "userRelation$entity$$2$$aggr" | "userRelation$entity$$3$$aggr" | "userRelation$entity$$4$$aggr" | "userRelation$entity$$5$$aggr" | "userRelation$entity$$6$$aggr" | "userRelation$entity$$7$$aggr" | "userRelation$entity$$8$$aggr" | "userRelation$entity$$9$$aggr";
export type Schema = OpSchema & {
relation$entity?: Array<Relation.Schema>;
relation$entity$$aggr?: AggregationResult<Relation.Schema>;
userRelation$entity?: Array<UserRelation.Schema>;
userRelation$entity$$aggr?: AggregationResult<UserRelation.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Relation$entityAggr]?: AggregationResult<Relation.Schema>;
} & {
[A in UserRelation$entityAggr]?: AggregationResult<UserRelation.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -77,16 +72,18 @@ export type Projection = {
relation$entity?: Relation.Selection & {
$entity: "relation";
};
relation$entity$$aggr?: Relation.Aggregation & {
$entity: "relation";
};
userRelation$entity?: UserRelation.Selection & {
$entity: "userRelation";
};
userRelation$entity$$aggr?: UserRelation.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Relation$entityAggr]?: Relation.Aggregation & {
$entity: "relation";
};
} & {
[A in UserRelation$entityAggr]?: UserRelation.Aggregation & {
$entity: "userRelation";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ToDoIdProjection = OneOf<{
id: number;
}>;

View File

@ -28,18 +28,7 @@ export type OpSchema = EntityShape & {
ableState?: AbleState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
applicationId?: ForeignKey<"application"> | null;
entity: "email" | "loginName" | "mobile" | "parasite" | "wechatLogin" | "wechatUser" | string;
entityId: String<64>;
userId?: ForeignKey<"user"> | null;
playerId?: ForeignKey<"user"> | null;
disablesAt?: Datetime | null;
env: Environment;
refreshedAt: Datetime;
value: String<64>;
oldValue?: String<64> | null;
ableState?: AbleState | null;
export type Schema = OpSchema & {
application?: Application.Schema | null;
user?: User.Schema | null;
player?: User.Schema | null;

View File

@ -43,71 +43,106 @@ export type OpSchema = EntityShape & {
userState?: UserState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name?: String<16> | null;
nickname?: String<64> | null;
password?: Text | null;
refId?: ForeignKey<"user"> | null;
passwordSha1?: Text | null;
birth?: Datetime | null;
gender?: ("male" | "female") | null;
idCardType?: ("ID-Card" | "passport" | "Mainland-passport") | null;
idNumber?: String<32> | null;
isRoot?: Boolean | null;
hasPassword?: Boolean | null;
idState?: IdState | null;
userState?: UserState | null;
type Oper$operatorAggr = "oper$operator$$aggr" | "oper$operator$$0$$aggr" | "oper$operator$$1$$aggr" | "oper$operator$$2$$aggr" | "oper$operator$$3$$aggr" | "oper$operator$$4$$aggr" | "oper$operator$$5$$aggr" | "oper$operator$$6$$aggr" | "oper$operator$$7$$aggr" | "oper$operator$$8$$aggr" | "oper$operator$$9$$aggr";
type User$refAggr = "user$ref$$aggr" | "user$ref$$0$$aggr" | "user$ref$$1$$aggr" | "user$ref$$2$$aggr" | "user$ref$$3$$aggr" | "user$ref$$4$$aggr" | "user$ref$$5$$aggr" | "user$ref$$6$$aggr" | "user$ref$$7$$aggr" | "user$ref$$8$$aggr" | "user$ref$$9$$aggr";
type UserEntityClaim$userAggr = "userEntityClaim$user$$aggr" | "userEntityClaim$user$$0$$aggr" | "userEntityClaim$user$$1$$aggr" | "userEntityClaim$user$$2$$aggr" | "userEntityClaim$user$$3$$aggr" | "userEntityClaim$user$$4$$aggr" | "userEntityClaim$user$$5$$aggr" | "userEntityClaim$user$$6$$aggr" | "userEntityClaim$user$$7$$aggr" | "userEntityClaim$user$$8$$aggr" | "userEntityClaim$user$$9$$aggr";
type UserRelation$userAggr = "userRelation$user$$aggr" | "userRelation$user$$0$$aggr" | "userRelation$user$$1$$aggr" | "userRelation$user$$2$$aggr" | "userRelation$user$$3$$aggr" | "userRelation$user$$4$$aggr" | "userRelation$user$$5$$aggr" | "userRelation$user$$6$$aggr" | "userRelation$user$$7$$aggr" | "userRelation$user$$8$$aggr" | "userRelation$user$$9$$aggr";
type ChangePasswordTemp$userAggr = "changePasswordTemp$user$$aggr" | "changePasswordTemp$user$$0$$aggr" | "changePasswordTemp$user$$1$$aggr" | "changePasswordTemp$user$$2$$aggr" | "changePasswordTemp$user$$3$$aggr" | "changePasswordTemp$user$$4$$aggr" | "changePasswordTemp$user$$5$$aggr" | "changePasswordTemp$user$$6$$aggr" | "changePasswordTemp$user$$7$$aggr" | "changePasswordTemp$user$$8$$aggr" | "changePasswordTemp$user$$9$$aggr";
type Email$userAggr = "email$user$$aggr" | "email$user$$0$$aggr" | "email$user$$1$$aggr" | "email$user$$2$$aggr" | "email$user$$3$$aggr" | "email$user$$4$$aggr" | "email$user$$5$$aggr" | "email$user$$6$$aggr" | "email$user$$7$$aggr" | "email$user$$8$$aggr" | "email$user$$9$$aggr";
type LoginName$userAggr = "loginName$user$$aggr" | "loginName$user$$0$$aggr" | "loginName$user$$1$$aggr" | "loginName$user$$2$$aggr" | "loginName$user$$3$$aggr" | "loginName$user$$4$$aggr" | "loginName$user$$5$$aggr" | "loginName$user$$6$$aggr" | "loginName$user$$7$$aggr" | "loginName$user$$8$$aggr" | "loginName$user$$9$$aggr";
type Message$userAggr = "message$user$$aggr" | "message$user$$0$$aggr" | "message$user$$1$$aggr" | "message$user$$2$$aggr" | "message$user$$3$$aggr" | "message$user$$4$$aggr" | "message$user$$5$$aggr" | "message$user$$6$$aggr" | "message$user$$7$$aggr" | "message$user$$8$$aggr" | "message$user$$9$$aggr";
type Mobile$userAggr = "mobile$user$$aggr" | "mobile$user$$0$$aggr" | "mobile$user$$1$$aggr" | "mobile$user$$2$$aggr" | "mobile$user$$3$$aggr" | "mobile$user$$4$$aggr" | "mobile$user$$5$$aggr" | "mobile$user$$6$$aggr" | "mobile$user$$7$$aggr" | "mobile$user$$8$$aggr" | "mobile$user$$9$$aggr";
type Parasite$userAggr = "parasite$user$$aggr" | "parasite$user$$0$$aggr" | "parasite$user$$1$$aggr" | "parasite$user$$2$$aggr" | "parasite$user$$3$$aggr" | "parasite$user$$4$$aggr" | "parasite$user$$5$$aggr" | "parasite$user$$6$$aggr" | "parasite$user$$7$$aggr" | "parasite$user$$8$$aggr" | "parasite$user$$9$$aggr";
type ReadRemark$userAggr = "readRemark$user$$aggr" | "readRemark$user$$0$$aggr" | "readRemark$user$$1$$aggr" | "readRemark$user$$2$$aggr" | "readRemark$user$$3$$aggr" | "readRemark$user$$4$$aggr" | "readRemark$user$$5$$aggr" | "readRemark$user$$6$$aggr" | "readRemark$user$$7$$aggr" | "readRemark$user$$8$$aggr" | "readRemark$user$$9$$aggr";
type Session$userAggr = "session$user$$aggr" | "session$user$$0$$aggr" | "session$user$$1$$aggr" | "session$user$$2$$aggr" | "session$user$$3$$aggr" | "session$user$$4$$aggr" | "session$user$$5$$aggr" | "session$user$$6$$aggr" | "session$user$$7$$aggr" | "session$user$$8$$aggr" | "session$user$$9$$aggr";
type SessionMessage$userAggr = "sessionMessage$user$$aggr" | "sessionMessage$user$$0$$aggr" | "sessionMessage$user$$1$$aggr" | "sessionMessage$user$$2$$aggr" | "sessionMessage$user$$3$$aggr" | "sessionMessage$user$$4$$aggr" | "sessionMessage$user$$5$$aggr" | "sessionMessage$user$$6$$aggr" | "sessionMessage$user$$7$$aggr" | "sessionMessage$user$$8$$aggr" | "sessionMessage$user$$9$$aggr";
type Token$userAggr = "token$user$$aggr" | "token$user$$0$$aggr" | "token$user$$1$$aggr" | "token$user$$2$$aggr" | "token$user$$3$$aggr" | "token$user$$4$$aggr" | "token$user$$5$$aggr" | "token$user$$6$$aggr" | "token$user$$7$$aggr" | "token$user$$8$$aggr" | "token$user$$9$$aggr";
type Token$playerAggr = "token$player$$aggr" | "token$player$$0$$aggr" | "token$player$$1$$aggr" | "token$player$$2$$aggr" | "token$player$$3$$aggr" | "token$player$$4$$aggr" | "token$player$$5$$aggr" | "token$player$$6$$aggr" | "token$player$$7$$aggr" | "token$player$$8$$aggr" | "token$player$$9$$aggr";
type UserEntityGrant$granterAggr = "userEntityGrant$granter$$aggr" | "userEntityGrant$granter$$0$$aggr" | "userEntityGrant$granter$$1$$aggr" | "userEntityGrant$granter$$2$$aggr" | "userEntityGrant$granter$$3$$aggr" | "userEntityGrant$granter$$4$$aggr" | "userEntityGrant$granter$$5$$aggr" | "userEntityGrant$granter$$6$$aggr" | "userEntityGrant$granter$$7$$aggr" | "userEntityGrant$granter$$8$$aggr" | "userEntityGrant$granter$$9$$aggr";
type UserSystem$userAggr = "userSystem$user$$aggr" | "userSystem$user$$0$$aggr" | "userSystem$user$$1$$aggr" | "userSystem$user$$2$$aggr" | "userSystem$user$$3$$aggr" | "userSystem$user$$4$$aggr" | "userSystem$user$$5$$aggr" | "userSystem$user$$6$$aggr" | "userSystem$user$$7$$aggr" | "userSystem$user$$8$$aggr" | "userSystem$user$$9$$aggr";
type WechatLogin$userAggr = "wechatLogin$user$$aggr" | "wechatLogin$user$$0$$aggr" | "wechatLogin$user$$1$$aggr" | "wechatLogin$user$$2$$aggr" | "wechatLogin$user$$3$$aggr" | "wechatLogin$user$$4$$aggr" | "wechatLogin$user$$5$$aggr" | "wechatLogin$user$$6$$aggr" | "wechatLogin$user$$7$$aggr" | "wechatLogin$user$$8$$aggr" | "wechatLogin$user$$9$$aggr";
type WechatUser$userAggr = "wechatUser$user$$aggr" | "wechatUser$user$$0$$aggr" | "wechatUser$user$$1$$aggr" | "wechatUser$user$$2$$aggr" | "wechatUser$user$$3$$aggr" | "wechatUser$user$$4$$aggr" | "wechatUser$user$$5$$aggr" | "wechatUser$user$$6$$aggr" | "wechatUser$user$$7$$aggr" | "wechatUser$user$$8$$aggr" | "wechatUser$user$$9$$aggr";
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
type ExtraFile$entityAggr = "extraFile$entity$$aggr" | "extraFile$entity$$0$$aggr" | "extraFile$entity$$1$$aggr" | "extraFile$entity$$2$$aggr" | "extraFile$entity$$3$$aggr" | "extraFile$entity$$4$$aggr" | "extraFile$entity$$5$$aggr" | "extraFile$entity$$6$$aggr" | "extraFile$entity$$7$$aggr" | "extraFile$entity$$8$$aggr" | "extraFile$entity$$9$$aggr";
type WechatQrCode$entityAggr = "wechatQrCode$entity$$aggr" | "wechatQrCode$entity$$0$$aggr" | "wechatQrCode$entity$$1$$aggr" | "wechatQrCode$entity$$2$$aggr" | "wechatQrCode$entity$$3$$aggr" | "wechatQrCode$entity$$4$$aggr" | "wechatQrCode$entity$$5$$aggr" | "wechatQrCode$entity$$6$$aggr" | "wechatQrCode$entity$$7$$aggr" | "wechatQrCode$entity$$8$$aggr" | "wechatQrCode$entity$$9$$aggr";
type Address$entityAggr = "address$entity$$aggr" | "address$entity$$0$$aggr" | "address$entity$$1$$aggr" | "address$entity$$2$$aggr" | "address$entity$$3$$aggr" | "address$entity$$4$$aggr" | "address$entity$$5$$aggr" | "address$entity$$6$$aggr" | "address$entity$$7$$aggr" | "address$entity$$8$$aggr" | "address$entity$$9$$aggr";
export type Schema = OpSchema & {
ref?: Schema | null;
oper$operator?: Array<Oper.Schema>;
oper$operator$$aggr?: AggregationResult<Oper.Schema>;
user$ref?: Array<Schema>;
user$ref$$aggr?: AggregationResult<Schema>;
userEntityClaim$user?: Array<UserEntityClaim.Schema>;
userEntityClaim$user$$aggr?: AggregationResult<UserEntityClaim.Schema>;
userRelation$user?: Array<UserRelation.Schema>;
userRelation$user$$aggr?: AggregationResult<UserRelation.Schema>;
changePasswordTemp$user?: Array<ChangePasswordTemp.Schema>;
changePasswordTemp$user$$aggr?: AggregationResult<ChangePasswordTemp.Schema>;
email$user?: Array<Email.Schema>;
email$user$$aggr?: AggregationResult<Email.Schema>;
loginName$user?: Array<LoginName.Schema>;
loginName$user$$aggr?: AggregationResult<LoginName.Schema>;
message$user?: Array<Message.Schema>;
message$user$$aggr?: AggregationResult<Message.Schema>;
mobile$user?: Array<Mobile.Schema>;
mobile$user$$aggr?: AggregationResult<Mobile.Schema>;
parasite$user?: Array<Parasite.Schema>;
parasite$user$$aggr?: AggregationResult<Parasite.Schema>;
readRemark$user?: Array<ReadRemark.Schema>;
readRemark$user$$aggr?: AggregationResult<ReadRemark.Schema>;
session$user?: Array<Session.Schema>;
session$user$$aggr?: AggregationResult<Session.Schema>;
sessionMessage$user?: Array<SessionMessage.Schema>;
sessionMessage$user$$aggr?: AggregationResult<SessionMessage.Schema>;
token$user?: Array<Token.Schema>;
token$user$$aggr?: AggregationResult<Token.Schema>;
token$player?: Array<Token.Schema>;
token$player$$aggr?: AggregationResult<Token.Schema>;
userEntityGrant$granter?: Array<UserEntityGrant.Schema>;
userEntityGrant$granter$$aggr?: AggregationResult<UserEntityGrant.Schema>;
userSystem$user?: Array<UserSystem.Schema>;
userSystem$user$$aggr?: AggregationResult<UserSystem.Schema>;
wechatLogin$user?: Array<WechatLogin.Schema>;
wechatLogin$user$$aggr?: AggregationResult<WechatLogin.Schema>;
wechatUser$user?: Array<WechatUser.Schema>;
wechatUser$user$$aggr?: AggregationResult<WechatUser.Schema>;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
extraFile$entity?: Array<ExtraFile.Schema>;
extraFile$entity$$aggr?: AggregationResult<ExtraFile.Schema>;
wechatQrCode$entity?: Array<WechatQrCode.Schema>;
wechatQrCode$entity$$aggr?: AggregationResult<WechatQrCode.Schema>;
address$entity?: Array<Address.Schema>;
address$entity$$aggr?: AggregationResult<Address.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Oper$operatorAggr]?: AggregationResult<Oper.Schema>;
} & {
[A in User$refAggr]?: AggregationResult<Schema>;
} & {
[A in UserEntityClaim$userAggr]?: AggregationResult<UserEntityClaim.Schema>;
} & {
[A in UserRelation$userAggr]?: AggregationResult<UserRelation.Schema>;
} & {
[A in ChangePasswordTemp$userAggr]?: AggregationResult<ChangePasswordTemp.Schema>;
} & {
[A in Email$userAggr]?: AggregationResult<Email.Schema>;
} & {
[A in LoginName$userAggr]?: AggregationResult<LoginName.Schema>;
} & {
[A in Message$userAggr]?: AggregationResult<Message.Schema>;
} & {
[A in Mobile$userAggr]?: AggregationResult<Mobile.Schema>;
} & {
[A in Parasite$userAggr]?: AggregationResult<Parasite.Schema>;
} & {
[A in ReadRemark$userAggr]?: AggregationResult<ReadRemark.Schema>;
} & {
[A in Session$userAggr]?: AggregationResult<Session.Schema>;
} & {
[A in SessionMessage$userAggr]?: AggregationResult<SessionMessage.Schema>;
} & {
[A in Token$userAggr]?: AggregationResult<Token.Schema>;
} & {
[A in Token$playerAggr]?: AggregationResult<Token.Schema>;
} & {
[A in UserEntityGrant$granterAggr]?: AggregationResult<UserEntityGrant.Schema>;
} & {
[A in UserSystem$userAggr]?: AggregationResult<UserSystem.Schema>;
} & {
[A in WechatLogin$userAggr]?: AggregationResult<WechatLogin.Schema>;
} & {
[A in WechatUser$userAggr]?: AggregationResult<WechatUser.Schema>;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExtraFile$entityAggr]?: AggregationResult<ExtraFile.Schema>;
} & {
[A in WechatQrCode$entityAggr]?: AggregationResult<WechatQrCode.Schema>;
} & {
[A in Address$entityAggr]?: AggregationResult<Address.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -178,148 +213,172 @@ export type Projection = {
oper$operator?: Oper.Selection & {
$entity: "oper";
};
oper$operator$$aggr?: Oper.Aggregation & {
$entity: "oper";
};
user$ref?: Selection & {
$entity: "user";
};
user$ref$$aggr?: Aggregation & {
$entity: "user";
};
userEntityClaim$user?: UserEntityClaim.Selection & {
$entity: "userEntityClaim";
};
userEntityClaim$user$$aggr?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
userRelation$user?: UserRelation.Selection & {
$entity: "userRelation";
};
userRelation$user$$aggr?: UserRelation.Aggregation & {
$entity: "userRelation";
};
changePasswordTemp$user?: ChangePasswordTemp.Selection & {
$entity: "changePasswordTemp";
};
changePasswordTemp$user$$aggr?: ChangePasswordTemp.Aggregation & {
$entity: "changePasswordTemp";
};
email$user?: Email.Selection & {
$entity: "email";
};
email$user$$aggr?: Email.Aggregation & {
$entity: "email";
};
loginName$user?: LoginName.Selection & {
$entity: "loginName";
};
loginName$user$$aggr?: LoginName.Aggregation & {
$entity: "loginName";
};
message$user?: Message.Selection & {
$entity: "message";
};
message$user$$aggr?: Message.Aggregation & {
$entity: "message";
};
mobile$user?: Mobile.Selection & {
$entity: "mobile";
};
mobile$user$$aggr?: Mobile.Aggregation & {
$entity: "mobile";
};
parasite$user?: Parasite.Selection & {
$entity: "parasite";
};
parasite$user$$aggr?: Parasite.Aggregation & {
$entity: "parasite";
};
readRemark$user?: ReadRemark.Selection & {
$entity: "readRemark";
};
readRemark$user$$aggr?: ReadRemark.Aggregation & {
$entity: "readRemark";
};
session$user?: Session.Selection & {
$entity: "session";
};
session$user$$aggr?: Session.Aggregation & {
$entity: "session";
};
sessionMessage$user?: SessionMessage.Selection & {
$entity: "sessionMessage";
};
sessionMessage$user$$aggr?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
token$user?: Token.Selection & {
$entity: "token";
};
token$user$$aggr?: Token.Aggregation & {
$entity: "token";
};
token$player?: Token.Selection & {
$entity: "token";
};
token$player$$aggr?: Token.Aggregation & {
$entity: "token";
};
userEntityGrant$granter?: UserEntityGrant.Selection & {
$entity: "userEntityGrant";
};
userEntityGrant$granter$$aggr?: UserEntityGrant.Aggregation & {
$entity: "userEntityGrant";
};
userSystem$user?: UserSystem.Selection & {
$entity: "userSystem";
};
userSystem$user$$aggr?: UserSystem.Aggregation & {
$entity: "userSystem";
};
wechatLogin$user?: WechatLogin.Selection & {
$entity: "wechatLogin";
};
wechatLogin$user$$aggr?: WechatLogin.Aggregation & {
$entity: "wechatLogin";
};
wechatUser$user?: WechatUser.Selection & {
$entity: "wechatUser";
};
wechatUser$user$$aggr?: WechatUser.Aggregation & {
$entity: "wechatUser";
};
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
$entity: "operEntity";
};
extraFile$entity?: ExtraFile.Selection & {
$entity: "extraFile";
};
extraFile$entity$$aggr?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
wechatQrCode$entity?: WechatQrCode.Selection & {
$entity: "wechatQrCode";
};
wechatQrCode$entity$$aggr?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
address$entity?: Address.Selection & {
$entity: "address";
};
address$entity$$aggr?: Address.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Oper$operatorAggr]?: Oper.Aggregation & {
$entity: "oper";
};
} & {
[A in User$refAggr]?: Aggregation & {
$entity: "user";
};
} & {
[A in UserEntityClaim$userAggr]?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
} & {
[A in UserRelation$userAggr]?: UserRelation.Aggregation & {
$entity: "userRelation";
};
} & {
[A in ChangePasswordTemp$userAggr]?: ChangePasswordTemp.Aggregation & {
$entity: "changePasswordTemp";
};
} & {
[A in Email$userAggr]?: Email.Aggregation & {
$entity: "email";
};
} & {
[A in LoginName$userAggr]?: LoginName.Aggregation & {
$entity: "loginName";
};
} & {
[A in Message$userAggr]?: Message.Aggregation & {
$entity: "message";
};
} & {
[A in Mobile$userAggr]?: Mobile.Aggregation & {
$entity: "mobile";
};
} & {
[A in Parasite$userAggr]?: Parasite.Aggregation & {
$entity: "parasite";
};
} & {
[A in ReadRemark$userAggr]?: ReadRemark.Aggregation & {
$entity: "readRemark";
};
} & {
[A in Session$userAggr]?: Session.Aggregation & {
$entity: "session";
};
} & {
[A in SessionMessage$userAggr]?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
} & {
[A in Token$userAggr]?: Token.Aggregation & {
$entity: "token";
};
} & {
[A in Token$playerAggr]?: Token.Aggregation & {
$entity: "token";
};
} & {
[A in UserEntityGrant$granterAggr]?: UserEntityGrant.Aggregation & {
$entity: "userEntityGrant";
};
} & {
[A in UserSystem$userAggr]?: UserSystem.Aggregation & {
$entity: "userSystem";
};
} & {
[A in WechatLogin$userAggr]?: WechatLogin.Aggregation & {
$entity: "wechatLogin";
};
} & {
[A in WechatUser$userAggr]?: WechatUser.Aggregation & {
$entity: "wechatUser";
};
} & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & {
[A in ExtraFile$entityAggr]?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
} & {
[A in WechatQrCode$entityAggr]?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
} & {
[A in Address$entityAggr]?: Address.Aggregation & {
$entity: "address";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type UserIdProjection = OneOf<{
id: number;
refId: number;

View File

@ -16,12 +16,7 @@ export type OpSchema = EntityShape & {
userRelationId: ForeignKey<"userRelation">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
uegId: ForeignKey<"userEntityGrant">;
userId: ForeignKey<"user">;
relationId: ForeignKey<"relation">;
claimEntityId: String<64>;
userRelationId: ForeignKey<"userRelation">;
export type Schema = OpSchema & {
ueg: UserEntityGrant.Schema;
user: User.Schema;
relation: Relation.Schema;

View File

@ -37,34 +37,26 @@ export type OpSchema = EntityShape & {
claimUrl: String<128>;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
relationEntity: String<32>;
relationEntityFilter: Object;
relationIds: RelationIds;
entity: String<32>;
entityId: String<64>;
type: "grant" | "transfer";
rule: Rule;
ruleOnRow: Rule;
multiple?: Boolean | null;
remark?: Text | null;
granterId: ForeignKey<"user">;
qrCodeType: QrCodeType;
expiresAt?: Datetime | null;
expired?: Boolean | null;
redirectTo?: RedirectToProps | null;
claimUrl: String<128>;
type UserEntityClaim$uegAggr = "userEntityClaim$ueg$$aggr" | "userEntityClaim$ueg$$0$$aggr" | "userEntityClaim$ueg$$1$$aggr" | "userEntityClaim$ueg$$2$$aggr" | "userEntityClaim$ueg$$3$$aggr" | "userEntityClaim$ueg$$4$$aggr" | "userEntityClaim$ueg$$5$$aggr" | "userEntityClaim$ueg$$6$$aggr" | "userEntityClaim$ueg$$7$$aggr" | "userEntityClaim$ueg$$8$$aggr" | "userEntityClaim$ueg$$9$$aggr";
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
type WechatQrCode$entityAggr = "wechatQrCode$entity$$aggr" | "wechatQrCode$entity$$0$$aggr" | "wechatQrCode$entity$$1$$aggr" | "wechatQrCode$entity$$2$$aggr" | "wechatQrCode$entity$$3$$aggr" | "wechatQrCode$entity$$4$$aggr" | "wechatQrCode$entity$$5$$aggr" | "wechatQrCode$entity$$6$$aggr" | "wechatQrCode$entity$$7$$aggr" | "wechatQrCode$entity$$8$$aggr" | "wechatQrCode$entity$$9$$aggr";
export type Schema = OpSchema & {
granter: User.Schema;
userEntityClaim$ueg?: Array<UserEntityClaim.Schema>;
userEntityClaim$ueg$$aggr?: AggregationResult<UserEntityClaim.Schema>;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
wechatQrCode$entity?: Array<WechatQrCode.Schema>;
wechatQrCode$entity$$aggr?: AggregationResult<WechatQrCode.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in UserEntityClaim$uegAggr]?: AggregationResult<UserEntityClaim.Schema>;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
} & {
[A in WechatQrCode$entityAggr]?: AggregationResult<WechatQrCode.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -121,28 +113,32 @@ export type Projection = {
userEntityClaim$ueg?: UserEntityClaim.Selection & {
$entity: "userEntityClaim";
};
userEntityClaim$ueg$$aggr?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
$entity: "operEntity";
};
wechatQrCode$entity?: WechatQrCode.Selection & {
$entity: "wechatQrCode";
};
wechatQrCode$entity$$aggr?: WechatQrCode.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in UserEntityClaim$uegAggr]?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
} & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & {
[A in WechatQrCode$entityAggr]?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type UserEntityGrantIdProjection = OneOf<{
id: number;
}>;

View File

@ -16,19 +16,17 @@ export type OpSchema = EntityShape & {
entityId: String<64>;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
userId: ForeignKey<"user">;
relationId: ForeignKey<"relation">;
entity: "session" | "toDo" | string;
entityId: String<64>;
type UserEntityClaim$userRelationAggr = "userEntityClaim$userRelation$$aggr" | "userEntityClaim$userRelation$$0$$aggr" | "userEntityClaim$userRelation$$1$$aggr" | "userEntityClaim$userRelation$$2$$aggr" | "userEntityClaim$userRelation$$3$$aggr" | "userEntityClaim$userRelation$$4$$aggr" | "userEntityClaim$userRelation$$5$$aggr" | "userEntityClaim$userRelation$$6$$aggr" | "userEntityClaim$userRelation$$7$$aggr" | "userEntityClaim$userRelation$$8$$aggr" | "userEntityClaim$userRelation$$9$$aggr";
export type Schema = OpSchema & {
user: User.Schema;
relation: Relation.Schema;
session?: Session.Schema;
toDo?: ToDo.Schema;
userEntityClaim$userRelation?: Array<UserEntityClaim.Schema>;
userEntityClaim$userRelation$$aggr?: AggregationResult<UserEntityClaim.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in UserEntityClaim$userRelationAggr]?: AggregationResult<UserEntityClaim.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -64,10 +62,11 @@ export type Projection = {
userEntityClaim$userRelation?: UserEntityClaim.Selection & {
$entity: "userEntityClaim";
};
userEntityClaim$userRelation$$aggr?: UserEntityClaim.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in UserEntityClaim$userRelationAggr]?: UserEntityClaim.Aggregation & {
$entity: "userEntityClaim";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type UserRelationIdProjection = OneOf<{
id: number;
}>;

View File

@ -12,17 +12,19 @@ export type OpSchema = EntityShape & {
systemId: ForeignKey<"system">;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
userId: ForeignKey<"user">;
systemId: ForeignKey<"system">;
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
user: User.Schema;
system: System.Schema;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -51,16 +53,18 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type UserSystemIdProjection = OneOf<{
id: number;
}>;

View File

@ -16,20 +16,19 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
wechatPublicTagId: ForeignKey<"wechatPublicTag">;
wechatUserId: ForeignKey<"wechatUser">;
sync: Boolean;
syncAt: Datetime;
iState?: IState | null;
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
wechatPublicTag: WechatPublicTag.Schema;
wechatUser: WechatUser.Schema;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -64,16 +63,18 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type UserWechatPublicTagIdProjection = OneOf<{
id: number;
}>;

View File

@ -22,27 +22,27 @@ export type OpSchema = EntityShape & {
wechatUserId?: ForeignKey<"wechatUser"> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
userId?: ForeignKey<"user"> | null;
type: "bind" | "login";
successed: Boolean;
remark?: Text | null;
qrCodeType: QrCodeType;
expiresAt?: Datetime | null;
expired?: Boolean | null;
wechatUserId?: ForeignKey<"wechatUser"> | null;
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
type Token$entityAggr = "token$entity$$aggr" | "token$entity$$0$$aggr" | "token$entity$$1$$aggr" | "token$entity$$2$$aggr" | "token$entity$$3$$aggr" | "token$entity$$4$$aggr" | "token$entity$$5$$aggr" | "token$entity$$6$$aggr" | "token$entity$$7$$aggr" | "token$entity$$8$$aggr" | "token$entity$$9$$aggr";
type WechatQrCode$entityAggr = "wechatQrCode$entity$$aggr" | "wechatQrCode$entity$$0$$aggr" | "wechatQrCode$entity$$1$$aggr" | "wechatQrCode$entity$$2$$aggr" | "wechatQrCode$entity$$3$$aggr" | "wechatQrCode$entity$$4$$aggr" | "wechatQrCode$entity$$5$$aggr" | "wechatQrCode$entity$$6$$aggr" | "wechatQrCode$entity$$7$$aggr" | "wechatQrCode$entity$$8$$aggr" | "wechatQrCode$entity$$9$$aggr";
export type Schema = OpSchema & {
user?: User.Schema | null;
wechatUser?: WechatUser.Schema | null;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
wechatQrCode$entity?: Array<WechatQrCode.Schema>;
wechatQrCode$entity$$aggr?: AggregationResult<WechatQrCode.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
} & {
[A in Token$entityAggr]?: AggregationResult<Token.Schema>;
} & {
[A in WechatQrCode$entityAggr]?: AggregationResult<WechatQrCode.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -85,28 +85,32 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
$entity: "operEntity";
};
token$entity?: Token.Selection & {
$entity: "token";
};
token$entity$$aggr?: Token.Aggregation & {
$entity: "token";
};
wechatQrCode$entity?: WechatQrCode.Selection & {
$entity: "wechatQrCode";
};
wechatQrCode$entity$$aggr?: WechatQrCode.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & {
[A in Token$entityAggr]?: Token.Aggregation & {
$entity: "token";
};
} & {
[A in WechatQrCode$entityAggr]?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatLoginIdProjection = OneOf<{
id: number;
}>;

View File

@ -22,20 +22,19 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
menuId?: Int<4> | null;
menuConfig: Config;
applicationId: ForeignKey<"application">;
wechatPublicTagId?: ForeignKey<"wechatPublicTag"> | null;
iState?: IState | null;
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
application: Application.Schema;
wechatPublicTag?: WechatPublicTag.Schema | null;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -70,16 +69,18 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatMenuIdProjection = OneOf<{
id: number;
}>;

View File

@ -22,21 +22,18 @@ export type OpSchema = EntityShape & {
expired?: Boolean | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
messageId?: ForeignKey<"message"> | null;
jump_wxa?: Jump_wxa | null;
openlink?: String<256> | null;
expireType?: Int<1> | null;
expireInterval?: Int<2> | null;
expiresAt?: Datetime | null;
expired?: Boolean | null;
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
message?: Message.Schema | null;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -73,16 +70,18 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatMpJumpIdProjection = OneOf<{
id: number;
}>;

View File

@ -19,18 +19,18 @@ export type OpSchema = EntityShape & {
event: "subscribe" | "unsubscribe" | "keyword" | "auto";
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
content: content;
applicationId: ForeignKey<"application">;
type: "text" | "image" | "video" | "voice";
event: "subscribe" | "unsubscribe" | "keyword" | "auto";
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
application: Application.Schema;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -61,16 +61,18 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatPublicAutoReplyIdProjection = OneOf<{
id: number;
}>;

View File

@ -18,24 +18,26 @@ export type OpSchema = EntityShape & {
iState?: IState | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
text: String<32>;
applicationId: ForeignKey<"application">;
wechatId?: Uint<4> | null;
sync?: Boolean | null;
syncAt?: Datetime | null;
iState?: IState | null;
type UserWechatPublicTag$wechatPublicTagAggr = "userWechatPublicTag$wechatPublicTag$$aggr" | "userWechatPublicTag$wechatPublicTag$$0$$aggr" | "userWechatPublicTag$wechatPublicTag$$1$$aggr" | "userWechatPublicTag$wechatPublicTag$$2$$aggr" | "userWechatPublicTag$wechatPublicTag$$3$$aggr" | "userWechatPublicTag$wechatPublicTag$$4$$aggr" | "userWechatPublicTag$wechatPublicTag$$5$$aggr" | "userWechatPublicTag$wechatPublicTag$$6$$aggr" | "userWechatPublicTag$wechatPublicTag$$7$$aggr" | "userWechatPublicTag$wechatPublicTag$$8$$aggr" | "userWechatPublicTag$wechatPublicTag$$9$$aggr";
type WechatMenu$wechatPublicTagAggr = "wechatMenu$wechatPublicTag$$aggr" | "wechatMenu$wechatPublicTag$$0$$aggr" | "wechatMenu$wechatPublicTag$$1$$aggr" | "wechatMenu$wechatPublicTag$$2$$aggr" | "wechatMenu$wechatPublicTag$$3$$aggr" | "wechatMenu$wechatPublicTag$$4$$aggr" | "wechatMenu$wechatPublicTag$$5$$aggr" | "wechatMenu$wechatPublicTag$$6$$aggr" | "wechatMenu$wechatPublicTag$$7$$aggr" | "wechatMenu$wechatPublicTag$$8$$aggr" | "wechatMenu$wechatPublicTag$$9$$aggr";
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
application: Application.Schema;
userWechatPublicTag$wechatPublicTag?: Array<UserWechatPublicTag.Schema>;
userWechatPublicTag$wechatPublicTag$$aggr?: AggregationResult<UserWechatPublicTag.Schema>;
wechatMenu$wechatPublicTag?: Array<WechatMenu.Schema>;
wechatMenu$wechatPublicTag$$aggr?: AggregationResult<WechatMenu.Schema>;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in UserWechatPublicTag$wechatPublicTagAggr]?: AggregationResult<UserWechatPublicTag.Schema>;
} & {
[A in WechatMenu$wechatPublicTagAggr]?: AggregationResult<WechatMenu.Schema>;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -72,28 +74,32 @@ export type Projection = {
userWechatPublicTag$wechatPublicTag?: UserWechatPublicTag.Selection & {
$entity: "userWechatPublicTag";
};
userWechatPublicTag$wechatPublicTag$$aggr?: UserWechatPublicTag.Aggregation & {
$entity: "userWechatPublicTag";
};
wechatMenu$wechatPublicTag?: WechatMenu.Selection & {
$entity: "wechatMenu";
};
wechatMenu$wechatPublicTag$$aggr?: WechatMenu.Aggregation & {
$entity: "wechatMenu";
};
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in UserWechatPublicTag$wechatPublicTagAggr]?: UserWechatPublicTag.Aggregation & {
$entity: "userWechatPublicTag";
};
} & {
[A in WechatMenu$wechatPublicTagAggr]?: WechatMenu.Aggregation & {
$entity: "wechatMenu";
};
} & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatPublicTagIdProjection = OneOf<{
id: number;
}>;

View File

@ -34,31 +34,21 @@ export type OpSchema = EntityShape & {
props: WechatQrCodeProps;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
entity: "user" | "userEntityGrant" | "wechatLogin" | string;
entityId: String<64>;
type: QrCodeType;
allowShare: Boolean;
tag?: String<32> | null;
tag2?: String<64> | null;
expiresAt?: Datetime | null;
expired?: Boolean | null;
ticket?: Text | null;
url?: String<256> | null;
permanent?: Boolean | null;
buffer?: Text | null;
applicationId: ForeignKey<"application">;
props: WechatQrCodeProps;
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
application: Application.Schema;
user?: User.Schema;
userEntityGrant?: UserEntityGrant.Schema;
wechatLogin?: WechatLogin.Schema;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -115,16 +105,18 @@ export type Projection = {
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatQrCodeIdProjection = OneOf<{
id: number;
}>;

View File

@ -26,27 +26,22 @@ export type OpSchema = EntityShape & {
type?: ("2" | "3") | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
applicationId: ForeignKey<"application">;
wechatId: String<64>;
title: Text;
primaryIndustry?: Text | null;
deputyIndustry?: Text | null;
content?: Text | null;
example?: Text | null;
param?: Object | null;
syncAt: Datetime;
keywordEnumValueList?: KeywordEnumValueList | null;
type?: ("2" | "3") | null;
type MessageTypeTemplate$templateAggr = "messageTypeTemplate$template$$aggr" | "messageTypeTemplate$template$$0$$aggr" | "messageTypeTemplate$template$$1$$aggr" | "messageTypeTemplate$template$$2$$aggr" | "messageTypeTemplate$template$$3$$aggr" | "messageTypeTemplate$template$$4$$aggr" | "messageTypeTemplate$template$$5$$aggr" | "messageTypeTemplate$template$$6$$aggr" | "messageTypeTemplate$template$$7$$aggr" | "messageTypeTemplate$template$$8$$aggr" | "messageTypeTemplate$template$$9$$aggr";
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
export type Schema = OpSchema & {
application: Application.Schema;
messageTypeTemplate$template?: Array<MessageTypeTemplate.Schema>;
messageTypeTemplate$template$$aggr?: AggregationResult<MessageTypeTemplate.Schema>;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in MessageTypeTemplate$templateAggr]?: AggregationResult<MessageTypeTemplate.Schema>;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -92,22 +87,25 @@ export type Projection = {
messageTypeTemplate$template?: MessageTypeTemplate.Selection & {
$entity: "messageTypeTemplate";
};
messageTypeTemplate$template$$aggr?: MessageTypeTemplate.Aggregation & {
$entity: "messageTypeTemplate";
};
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in MessageTypeTemplate$templateAggr]?: MessageTypeTemplate.Aggregation & {
$entity: "messageTypeTemplate";
};
} & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatTemplateIdProjection = OneOf<{
id: number;
}>;

View File

@ -31,39 +31,35 @@ export type OpSchema = EntityShape & {
avatar?: Image | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
origin: "mp" | "public" | "web" | "native";
openId?: String<32> | null;
unionId?: String<32> | null;
sessionKey?: String<64> | null;
accessToken?: String<128> | null;
refreshToken?: String<128> | null;
scope?: String<64> | null;
atExpiredAt?: Datetime | null;
rtExpiredAt?: Datetime | null;
subscribed?: Boolean | null;
subscribedAt?: Datetime | null;
unsubscribedAt?: Datetime | null;
userId?: ForeignKey<"user"> | null;
applicationId: ForeignKey<"application">;
nickname?: String<128> | null;
avatar?: Image | null;
type SessionMessage$wechatUserAggr = "sessionMessage$wechatUser$$aggr" | "sessionMessage$wechatUser$$0$$aggr" | "sessionMessage$wechatUser$$1$$aggr" | "sessionMessage$wechatUser$$2$$aggr" | "sessionMessage$wechatUser$$3$$aggr" | "sessionMessage$wechatUser$$4$$aggr" | "sessionMessage$wechatUser$$5$$aggr" | "sessionMessage$wechatUser$$6$$aggr" | "sessionMessage$wechatUser$$7$$aggr" | "sessionMessage$wechatUser$$8$$aggr" | "sessionMessage$wechatUser$$9$$aggr";
type UserWechatPublicTag$wechatUserAggr = "userWechatPublicTag$wechatUser$$aggr" | "userWechatPublicTag$wechatUser$$0$$aggr" | "userWechatPublicTag$wechatUser$$1$$aggr" | "userWechatPublicTag$wechatUser$$2$$aggr" | "userWechatPublicTag$wechatUser$$3$$aggr" | "userWechatPublicTag$wechatUser$$4$$aggr" | "userWechatPublicTag$wechatUser$$5$$aggr" | "userWechatPublicTag$wechatUser$$6$$aggr" | "userWechatPublicTag$wechatUser$$7$$aggr" | "userWechatPublicTag$wechatUser$$8$$aggr" | "userWechatPublicTag$wechatUser$$9$$aggr";
type WechatLogin$wechatUserAggr = "wechatLogin$wechatUser$$aggr" | "wechatLogin$wechatUser$$0$$aggr" | "wechatLogin$wechatUser$$1$$aggr" | "wechatLogin$wechatUser$$2$$aggr" | "wechatLogin$wechatUser$$3$$aggr" | "wechatLogin$wechatUser$$4$$aggr" | "wechatLogin$wechatUser$$5$$aggr" | "wechatLogin$wechatUser$$6$$aggr" | "wechatLogin$wechatUser$$7$$aggr" | "wechatLogin$wechatUser$$8$$aggr" | "wechatLogin$wechatUser$$9$$aggr";
type ModiEntity$entityAggr = "modiEntity$entity$$aggr" | "modiEntity$entity$$0$$aggr" | "modiEntity$entity$$1$$aggr" | "modiEntity$entity$$2$$aggr" | "modiEntity$entity$$3$$aggr" | "modiEntity$entity$$4$$aggr" | "modiEntity$entity$$5$$aggr" | "modiEntity$entity$$6$$aggr" | "modiEntity$entity$$7$$aggr" | "modiEntity$entity$$8$$aggr" | "modiEntity$entity$$9$$aggr";
type OperEntity$entityAggr = "operEntity$entity$$aggr" | "operEntity$entity$$0$$aggr" | "operEntity$entity$$1$$aggr" | "operEntity$entity$$2$$aggr" | "operEntity$entity$$3$$aggr" | "operEntity$entity$$4$$aggr" | "operEntity$entity$$5$$aggr" | "operEntity$entity$$6$$aggr" | "operEntity$entity$$7$$aggr" | "operEntity$entity$$8$$aggr" | "operEntity$entity$$9$$aggr";
type Token$entityAggr = "token$entity$$aggr" | "token$entity$$0$$aggr" | "token$entity$$1$$aggr" | "token$entity$$2$$aggr" | "token$entity$$3$$aggr" | "token$entity$$4$$aggr" | "token$entity$$5$$aggr" | "token$entity$$6$$aggr" | "token$entity$$7$$aggr" | "token$entity$$8$$aggr" | "token$entity$$9$$aggr";
export type Schema = OpSchema & {
user?: User.Schema | null;
application: Application.Schema;
sessionMessage$wechatUser?: Array<SessionMessage.Schema>;
sessionMessage$wechatUser$$aggr?: AggregationResult<SessionMessage.Schema>;
userWechatPublicTag$wechatUser?: Array<UserWechatPublicTag.Schema>;
userWechatPublicTag$wechatUser$$aggr?: AggregationResult<UserWechatPublicTag.Schema>;
wechatLogin$wechatUser?: Array<WechatLogin.Schema>;
wechatLogin$wechatUser$$aggr?: AggregationResult<WechatLogin.Schema>;
modiEntity$entity?: Array<ModiEntity.Schema>;
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
operEntity$entity?: Array<OperEntity.Schema>;
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in SessionMessage$wechatUserAggr]?: AggregationResult<SessionMessage.Schema>;
} & {
[A in UserWechatPublicTag$wechatUserAggr]?: AggregationResult<UserWechatPublicTag.Schema>;
} & {
[A in WechatLogin$wechatUserAggr]?: AggregationResult<WechatLogin.Schema>;
} & {
[A in ModiEntity$entityAggr]?: AggregationResult<ModiEntity.Schema>;
} & {
[A in OperEntity$entityAggr]?: AggregationResult<OperEntity.Schema>;
} & {
[A in Token$entityAggr]?: AggregationResult<Token.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -124,40 +120,46 @@ export type Projection = {
sessionMessage$wechatUser?: SessionMessage.Selection & {
$entity: "sessionMessage";
};
sessionMessage$wechatUser$$aggr?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
userWechatPublicTag$wechatUser?: UserWechatPublicTag.Selection & {
$entity: "userWechatPublicTag";
};
userWechatPublicTag$wechatUser$$aggr?: UserWechatPublicTag.Aggregation & {
$entity: "userWechatPublicTag";
};
wechatLogin$wechatUser?: WechatLogin.Selection & {
$entity: "wechatLogin";
};
wechatLogin$wechatUser$$aggr?: WechatLogin.Aggregation & {
$entity: "wechatLogin";
};
modiEntity$entity?: ModiEntity.Selection & {
$entity: "modiEntity";
};
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
operEntity$entity?: OperEntity.Selection & {
$entity: "operEntity";
};
operEntity$entity$$aggr?: OperEntity.Aggregation & {
$entity: "operEntity";
};
token$entity?: Token.Selection & {
$entity: "token";
};
token$entity$$aggr?: Token.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in SessionMessage$wechatUserAggr]?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
} & {
[A in UserWechatPublicTag$wechatUserAggr]?: UserWechatPublicTag.Aggregation & {
$entity: "userWechatPublicTag";
};
} & {
[A in WechatLogin$wechatUserAggr]?: WechatLogin.Aggregation & {
$entity: "wechatLogin";
};
} & {
[A in ModiEntity$entityAggr]?: ModiEntity.Aggregation & {
$entity: "modiEntity";
};
} & {
[A in OperEntity$entityAggr]?: OperEntity.Aggregation & {
$entity: "operEntity";
};
} & {
[A in Token$entityAggr]?: Token.Aggregation & {
$entity: "token";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type WechatUserIdProjection = OneOf<{
id: number;
}>;

View File

@ -1,2 +1,2 @@
declare const _default: (import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "application", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "address", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "user", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "message", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "notification", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatLogin", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "articleMenu", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "article", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "parasite", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "extraFile", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "sessionMessage", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMenu", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMpJump", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "system", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "passport", import("..").BRC<import("../oak-app-domain").EntityDict>>)[];
declare const _default: (import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "message", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "address", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "application", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "article", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "articleMenu", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "extraFile", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "user", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "notification", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatLogin", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "parasite", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "sessionMessage", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMenu", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMpJump", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "system", import("..").BRC<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "passport", import("..").BRC<import("../oak-app-domain").EntityDict>>)[];
export default _default;

View File

@ -61,7 +61,7 @@ async function sendNotification(notification, context) {
await instance.sendSubscribedMessage({
templateId: templateId,
data: data,
openId: data1.openId, // 在notification创建时就赋值了
openId: data1.openId,
page,
state: StateDict[process.env.NODE_ENV],
});

View File

@ -7,7 +7,7 @@ export default class Nodemailer {
const transporter = nodemailer.createTransport({
host,
port,
secure: port === 465, //true for 465, false for other ports
secure: port === 465,
auth: {
user: account,
pass: password,

View File

@ -107,7 +107,7 @@ async function createSession(params, context) {
origin: 'wechat',
type: 'image',
tag1: 'image',
objectId: await (0, uuid_1.generateNewIdAsync)(), // 这个域用来标识唯一性
objectId: await (0, uuid_1.generateNewIdAsync)(),
sort: 1000,
uploadState: 'success',
extra1: data.MediaId,
@ -132,7 +132,7 @@ async function createSession(params, context) {
origin: 'wechat',
type: 'video',
tag1: 'video',
objectId: await (0, uuid_1.generateNewIdAsync)(), // 这个域用来标识唯一性
objectId: await (0, uuid_1.generateNewIdAsync)(),
sort: 1000,
uploadState: 'success',
extra1: data.MediaId,
@ -154,7 +154,7 @@ async function createSession(params, context) {
origin: 'wechat',
type: 'audio',
tag1: 'audio',
objectId: await (0, uuid_1.generateNewIdAsync)(), // 这个域用来标识唯一性
objectId: await (0, uuid_1.generateNewIdAsync)(),
sort: 1000,
uploadState: 'success',
extra1: data.MediaId,

View File

@ -2268,8 +2268,8 @@ async function refreshToken(params, context) {
// 只有server模式去刷新token
// 'development' | 'production' | 'staging'
const intervals = {
development: 7200 * 1000, // 2小时
staging: 600 * 1000, // 十分钟
development: 7200 * 1000,
staging: 600 * 1000,
production: 600 * 1000, // 十分钟
};
const application = context.getApplication();

View File

@ -165,7 +165,7 @@ async function createWechatQrCode(options, context) {
permanent,
url,
expired: false,
expiresAt: Date.now() + 2592000 * 1000, // wecharQrCode里的过期时间都放到最大由上层关联对象来主动过期by Xc, 20230131)
expiresAt: Date.now() + 2592000 * 1000,
props,
};
// 直接创建

View File

@ -1,2 +1,2 @@
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "applicationPassport", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>>)[];
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "applicationPassport", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt<import("../oak-app-domain").EntityDict>>)[];
export default checkers;

View File

@ -6,10 +6,10 @@ exports.entityDesc = {
zh_CN: {
name: '直播流',
attr: {
title: '名称', // 用户定义直播间名称,
title: '名称',
streamTitle: '直播流名称',
liveonly: '活跃状态',
hub: '直播空间名称', // 所属直播空间名称
hub: '直播空间名称',
entity: '所属实体',
entityId: '所属实体id',
rtmpPushUrl: '推流地址',

View File

@ -12,10 +12,7 @@ export type OpSchema = EntityShape & {
deActions: Actions;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
relationId?: ForeignKey<"relation"> | null;
pathId: ForeignKey<"path">;
deActions: Actions;
export type Schema = OpSchema & {
relation?: Relation.Schema | null;
path: Path.Schema;
} & {

View File

@ -17,15 +17,7 @@ export type OpSchema = EntityShape & {
entityId?: String<64> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
detail: String<32>;
areaId: ForeignKey<"area">;
phone: String<12>;
name: String<32>;
default: Boolean;
remark?: Text | null;
entity?: ("user" | string) | null;
entityId?: String<64> | null;
export type Schema = OpSchema & {
area: Area.Schema;
user?: User.Schema;
} & {

View File

@ -91,42 +91,59 @@ export type OpSchema = EntityShape & {
domainId?: ForeignKey<"domain"> | null;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
description?: Text | null;
type: AppType;
systemId: ForeignKey<"system">;
config: WebConfig | WechatMpConfig | WechatPublicConfig | NativeConfig;
style?: Style | null;
domainId?: ForeignKey<"domain"> | null;
type ApplicationPassport$applicationAggr = "applicationPassport$application$$aggr" | "applicationPassport$application$$0$$aggr" | "applicationPassport$application$$1$$aggr" | "applicationPassport$application$$2$$aggr" | "applicationPassport$application$$3$$aggr" | "applicationPassport$application$$4$$aggr" | "applicationPassport$application$$5$$aggr" | "applicationPassport$application$$6$$aggr" | "applicationPassport$application$$7$$aggr" | "applicationPassport$application$$8$$aggr" | "applicationPassport$application$$9$$aggr";
type ExtraFile$applicationAggr = "extraFile$application$$aggr" | "extraFile$application$$0$$aggr" | "extraFile$application$$1$$aggr" | "extraFile$application$$2$$aggr" | "extraFile$application$$3$$aggr" | "extraFile$application$$4$$aggr" | "extraFile$application$$5$$aggr" | "extraFile$application$$6$$aggr" | "extraFile$application$$7$$aggr" | "extraFile$application$$8$$aggr" | "extraFile$application$$9$$aggr";
type Notification$applicationAggr = "notification$application$$aggr" | "notification$application$$0$$aggr" | "notification$application$$1$$aggr" | "notification$application$$2$$aggr" | "notification$application$$3$$aggr" | "notification$application$$4$$aggr" | "notification$application$$5$$aggr" | "notification$application$$6$$aggr" | "notification$application$$7$$aggr" | "notification$application$$8$$aggr" | "notification$application$$9$$aggr";
type SessionMessage$applicationAggr = "sessionMessage$application$$aggr" | "sessionMessage$application$$0$$aggr" | "sessionMessage$application$$1$$aggr" | "sessionMessage$application$$2$$aggr" | "sessionMessage$application$$3$$aggr" | "sessionMessage$application$$4$$aggr" | "sessionMessage$application$$5$$aggr" | "sessionMessage$application$$6$$aggr" | "sessionMessage$application$$7$$aggr" | "sessionMessage$application$$8$$aggr" | "sessionMessage$application$$9$$aggr";
type Token$applicationAggr = "token$application$$aggr" | "token$application$$0$$aggr" | "token$application$$1$$aggr" | "token$application$$2$$aggr" | "token$application$$3$$aggr" | "token$application$$4$$aggr" | "token$application$$5$$aggr" | "token$application$$6$$aggr" | "token$application$$7$$aggr" | "token$application$$8$$aggr" | "token$application$$9$$aggr";
type WechatMenu$applicationAggr = "wechatMenu$application$$aggr" | "wechatMenu$application$$0$$aggr" | "wechatMenu$application$$1$$aggr" | "wechatMenu$application$$2$$aggr" | "wechatMenu$application$$3$$aggr" | "wechatMenu$application$$4$$aggr" | "wechatMenu$application$$5$$aggr" | "wechatMenu$application$$6$$aggr" | "wechatMenu$application$$7$$aggr" | "wechatMenu$application$$8$$aggr" | "wechatMenu$application$$9$$aggr";
type WechatPublicAutoReply$applicationAggr = "wechatPublicAutoReply$application$$aggr" | "wechatPublicAutoReply$application$$0$$aggr" | "wechatPublicAutoReply$application$$1$$aggr" | "wechatPublicAutoReply$application$$2$$aggr" | "wechatPublicAutoReply$application$$3$$aggr" | "wechatPublicAutoReply$application$$4$$aggr" | "wechatPublicAutoReply$application$$5$$aggr" | "wechatPublicAutoReply$application$$6$$aggr" | "wechatPublicAutoReply$application$$7$$aggr" | "wechatPublicAutoReply$application$$8$$aggr" | "wechatPublicAutoReply$application$$9$$aggr";
type WechatPublicTag$applicationAggr = "wechatPublicTag$application$$aggr" | "wechatPublicTag$application$$0$$aggr" | "wechatPublicTag$application$$1$$aggr" | "wechatPublicTag$application$$2$$aggr" | "wechatPublicTag$application$$3$$aggr" | "wechatPublicTag$application$$4$$aggr" | "wechatPublicTag$application$$5$$aggr" | "wechatPublicTag$application$$6$$aggr" | "wechatPublicTag$application$$7$$aggr" | "wechatPublicTag$application$$8$$aggr" | "wechatPublicTag$application$$9$$aggr";
type WechatQrCode$applicationAggr = "wechatQrCode$application$$aggr" | "wechatQrCode$application$$0$$aggr" | "wechatQrCode$application$$1$$aggr" | "wechatQrCode$application$$2$$aggr" | "wechatQrCode$application$$3$$aggr" | "wechatQrCode$application$$4$$aggr" | "wechatQrCode$application$$5$$aggr" | "wechatQrCode$application$$6$$aggr" | "wechatQrCode$application$$7$$aggr" | "wechatQrCode$application$$8$$aggr" | "wechatQrCode$application$$9$$aggr";
type WechatTemplate$applicationAggr = "wechatTemplate$application$$aggr" | "wechatTemplate$application$$0$$aggr" | "wechatTemplate$application$$1$$aggr" | "wechatTemplate$application$$2$$aggr" | "wechatTemplate$application$$3$$aggr" | "wechatTemplate$application$$4$$aggr" | "wechatTemplate$application$$5$$aggr" | "wechatTemplate$application$$6$$aggr" | "wechatTemplate$application$$7$$aggr" | "wechatTemplate$application$$8$$aggr" | "wechatTemplate$application$$9$$aggr";
type WechatUser$applicationAggr = "wechatUser$application$$aggr" | "wechatUser$application$$0$$aggr" | "wechatUser$application$$1$$aggr" | "wechatUser$application$$2$$aggr" | "wechatUser$application$$3$$aggr" | "wechatUser$application$$4$$aggr" | "wechatUser$application$$5$$aggr" | "wechatUser$application$$6$$aggr" | "wechatUser$application$$7$$aggr" | "wechatUser$application$$8$$aggr" | "wechatUser$application$$9$$aggr";
type Session$entityAggr = "session$entity$$aggr" | "session$entity$$0$$aggr" | "session$entity$$1$$aggr" | "session$entity$$2$$aggr" | "session$entity$$3$$aggr" | "session$entity$$4$$aggr" | "session$entity$$5$$aggr" | "session$entity$$6$$aggr" | "session$entity$$7$$aggr" | "session$entity$$8$$aggr" | "session$entity$$9$$aggr";
export type Schema = OpSchema & {
system: System.Schema;
domain?: Domain.Schema | null;
applicationPassport$application?: Array<ApplicationPassport.Schema>;
applicationPassport$application$$aggr?: AggregationResult<ApplicationPassport.Schema>;
extraFile$application?: Array<ExtraFile.Schema>;
extraFile$application$$aggr?: AggregationResult<ExtraFile.Schema>;
notification$application?: Array<Notification.Schema>;
notification$application$$aggr?: AggregationResult<Notification.Schema>;
sessionMessage$application?: Array<SessionMessage.Schema>;
sessionMessage$application$$aggr?: AggregationResult<SessionMessage.Schema>;
token$application?: Array<Token.Schema>;
token$application$$aggr?: AggregationResult<Token.Schema>;
wechatMenu$application?: Array<WechatMenu.Schema>;
wechatMenu$application$$aggr?: AggregationResult<WechatMenu.Schema>;
wechatPublicAutoReply$application?: Array<WechatPublicAutoReply.Schema>;
wechatPublicAutoReply$application$$aggr?: AggregationResult<WechatPublicAutoReply.Schema>;
wechatPublicTag$application?: Array<WechatPublicTag.Schema>;
wechatPublicTag$application$$aggr?: AggregationResult<WechatPublicTag.Schema>;
wechatQrCode$application?: Array<WechatQrCode.Schema>;
wechatQrCode$application$$aggr?: AggregationResult<WechatQrCode.Schema>;
wechatTemplate$application?: Array<WechatTemplate.Schema>;
wechatTemplate$application$$aggr?: AggregationResult<WechatTemplate.Schema>;
wechatUser$application?: Array<WechatUser.Schema>;
wechatUser$application$$aggr?: AggregationResult<WechatUser.Schema>;
session$entity?: Array<Session.Schema>;
session$entity$$aggr?: AggregationResult<Session.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in ApplicationPassport$applicationAggr]?: AggregationResult<ApplicationPassport.Schema>;
} & {
[A in ExtraFile$applicationAggr]?: AggregationResult<ExtraFile.Schema>;
} & {
[A in Notification$applicationAggr]?: AggregationResult<Notification.Schema>;
} & {
[A in SessionMessage$applicationAggr]?: AggregationResult<SessionMessage.Schema>;
} & {
[A in Token$applicationAggr]?: AggregationResult<Token.Schema>;
} & {
[A in WechatMenu$applicationAggr]?: AggregationResult<WechatMenu.Schema>;
} & {
[A in WechatPublicAutoReply$applicationAggr]?: AggregationResult<WechatPublicAutoReply.Schema>;
} & {
[A in WechatPublicTag$applicationAggr]?: AggregationResult<WechatPublicTag.Schema>;
} & {
[A in WechatQrCode$applicationAggr]?: AggregationResult<WechatQrCode.Schema>;
} & {
[A in WechatTemplate$applicationAggr]?: AggregationResult<WechatTemplate.Schema>;
} & {
[A in WechatUser$applicationAggr]?: AggregationResult<WechatUser.Schema>;
} & {
[A in Session$entityAggr]?: AggregationResult<Session.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -175,76 +192,88 @@ export type Projection = {
applicationPassport$application?: ApplicationPassport.Selection & {
$entity: "applicationPassport";
};
applicationPassport$application$$aggr?: ApplicationPassport.Aggregation & {
$entity: "applicationPassport";
};
extraFile$application?: ExtraFile.Selection & {
$entity: "extraFile";
};
extraFile$application$$aggr?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
notification$application?: Notification.Selection & {
$entity: "notification";
};
notification$application$$aggr?: Notification.Aggregation & {
$entity: "notification";
};
sessionMessage$application?: SessionMessage.Selection & {
$entity: "sessionMessage";
};
sessionMessage$application$$aggr?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
token$application?: Token.Selection & {
$entity: "token";
};
token$application$$aggr?: Token.Aggregation & {
$entity: "token";
};
wechatMenu$application?: WechatMenu.Selection & {
$entity: "wechatMenu";
};
wechatMenu$application$$aggr?: WechatMenu.Aggregation & {
$entity: "wechatMenu";
};
wechatPublicAutoReply$application?: WechatPublicAutoReply.Selection & {
$entity: "wechatPublicAutoReply";
};
wechatPublicAutoReply$application$$aggr?: WechatPublicAutoReply.Aggregation & {
$entity: "wechatPublicAutoReply";
};
wechatPublicTag$application?: WechatPublicTag.Selection & {
$entity: "wechatPublicTag";
};
wechatPublicTag$application$$aggr?: WechatPublicTag.Aggregation & {
$entity: "wechatPublicTag";
};
wechatQrCode$application?: WechatQrCode.Selection & {
$entity: "wechatQrCode";
};
wechatQrCode$application$$aggr?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
wechatTemplate$application?: WechatTemplate.Selection & {
$entity: "wechatTemplate";
};
wechatTemplate$application$$aggr?: WechatTemplate.Aggregation & {
$entity: "wechatTemplate";
};
wechatUser$application?: WechatUser.Selection & {
$entity: "wechatUser";
};
wechatUser$application$$aggr?: WechatUser.Aggregation & {
$entity: "wechatUser";
};
session$entity?: Session.Selection & {
$entity: "session";
};
session$entity$$aggr?: Session.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in ApplicationPassport$applicationAggr]?: ApplicationPassport.Aggregation & {
$entity: "applicationPassport";
};
} & {
[A in ExtraFile$applicationAggr]?: ExtraFile.Aggregation & {
$entity: "extraFile";
};
} & {
[A in Notification$applicationAggr]?: Notification.Aggregation & {
$entity: "notification";
};
} & {
[A in SessionMessage$applicationAggr]?: SessionMessage.Aggregation & {
$entity: "sessionMessage";
};
} & {
[A in Token$applicationAggr]?: Token.Aggregation & {
$entity: "token";
};
} & {
[A in WechatMenu$applicationAggr]?: WechatMenu.Aggregation & {
$entity: "wechatMenu";
};
} & {
[A in WechatPublicAutoReply$applicationAggr]?: WechatPublicAutoReply.Aggregation & {
$entity: "wechatPublicAutoReply";
};
} & {
[A in WechatPublicTag$applicationAggr]?: WechatPublicTag.Aggregation & {
$entity: "wechatPublicTag";
};
} & {
[A in WechatQrCode$applicationAggr]?: WechatQrCode.Aggregation & {
$entity: "wechatQrCode";
};
} & {
[A in WechatTemplate$applicationAggr]?: WechatTemplate.Aggregation & {
$entity: "wechatTemplate";
};
} & {
[A in WechatUser$applicationAggr]?: WechatUser.Aggregation & {
$entity: "wechatUser";
};
} & {
[A in Session$entityAggr]?: Session.Aggregation & {
$entity: "session";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type ApplicationIdProjection = OneOf<{
id: number;
}>;

View File

@ -12,10 +12,7 @@ export type OpSchema = EntityShape & {
isDefault: Boolean;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
applicationId: ForeignKey<"application">;
passportId: ForeignKey<"passport">;
isDefault: Boolean;
export type Schema = OpSchema & {
application: Application.Schema;
passport: Passport.Schema;
} & {

View File

@ -16,24 +16,26 @@ export type OpSchema = EntityShape & {
center: Geo;
};
export type OpAttr = keyof OpSchema;
export type Schema = EntityShape & {
name: String<32>;
level: "province" | "city" | "district" | "street" | "country";
depth: 0 | 1 | 2 | 3 | 4;
parentId?: ForeignKey<"area"> | null;
code: String<12>;
center: Geo;
type Address$areaAggr = "address$area$$aggr" | "address$area$$0$$aggr" | "address$area$$1$$aggr" | "address$area$$2$$aggr" | "address$area$$3$$aggr" | "address$area$$4$$aggr" | "address$area$$5$$aggr" | "address$area$$6$$aggr" | "address$area$$7$$aggr" | "address$area$$8$$aggr" | "address$area$$9$$aggr";
type Area$parentAggr = "area$parent$$aggr" | "area$parent$$0$$aggr" | "area$parent$$1$$aggr" | "area$parent$$2$$aggr" | "area$parent$$3$$aggr" | "area$parent$$4$$aggr" | "area$parent$$5$$aggr" | "area$parent$$6$$aggr" | "area$parent$$7$$aggr" | "area$parent$$8$$aggr" | "area$parent$$9$$aggr";
type Station$areaAggr = "station$area$$aggr" | "station$area$$0$$aggr" | "station$area$$1$$aggr" | "station$area$$2$$aggr" | "station$area$$3$$aggr" | "station$area$$4$$aggr" | "station$area$$5$$aggr" | "station$area$$6$$aggr" | "station$area$$7$$aggr" | "station$area$$8$$aggr" | "station$area$$9$$aggr";
type Subway$areaAggr = "subway$area$$aggr" | "subway$area$$0$$aggr" | "subway$area$$1$$aggr" | "subway$area$$2$$aggr" | "subway$area$$3$$aggr" | "subway$area$$4$$aggr" | "subway$area$$5$$aggr" | "subway$area$$6$$aggr" | "subway$area$$7$$aggr" | "subway$area$$8$$aggr" | "subway$area$$9$$aggr";
export type Schema = OpSchema & {
parent?: Schema | null;
address$area?: Array<Address.Schema>;
address$area$$aggr?: AggregationResult<Address.Schema>;
area$parent?: Array<Schema>;
area$parent$$aggr?: AggregationResult<Schema>;
station$area?: Array<Station.Schema>;
station$area$$aggr?: AggregationResult<Station.Schema>;
subway$area?: Array<Subway.Schema>;
subway$area$$aggr?: AggregationResult<Subway.Schema>;
} & {
[A in ExpressionKey]?: any;
} & {
[A in Address$areaAggr]?: AggregationResult<Address.Schema>;
} & {
[A in Area$parentAggr]?: AggregationResult<Schema>;
} & {
[A in Station$areaAggr]?: AggregationResult<Station.Schema>;
} & {
[A in Subway$areaAggr]?: AggregationResult<Subway.Schema>;
};
type AttrFilter = {
id: Q_StringValue;
@ -69,28 +71,32 @@ export type Projection = {
address$area?: Address.Selection & {
$entity: "address";
};
address$area$$aggr?: Address.Aggregation & {
$entity: "address";
};
area$parent?: Selection & {
$entity: "area";
};
area$parent$$aggr?: Aggregation & {
$entity: "area";
};
station$area?: Station.Selection & {
$entity: "station";
};
station$area$$aggr?: Station.Aggregation & {
$entity: "station";
};
subway$area?: Subway.Selection & {
$entity: "subway";
};
subway$area$$aggr?: Subway.Aggregation & {
} & Partial<ExprOp<OpAttr | string>> & {
[A in Address$areaAggr]?: Address.Aggregation & {
$entity: "address";
};
} & {
[A in Area$parentAggr]?: Aggregation & {
$entity: "area";
};
} & {
[A in Station$areaAggr]?: Station.Aggregation & {
$entity: "station";
};
} & {
[A in Subway$areaAggr]?: Subway.Aggregation & {
$entity: "subway";
};
} & Partial<ExprOp<OpAttr | string>>;
};
type AreaIdProjection = OneOf<{
id: number;
parentId: number;

Some files were not shown because too many files have changed in this diff Show More