rebuild
This commit is contained in:
parent
fed1aada91
commit
36be81e118
|
|
@ -50,7 +50,7 @@ export default function Render(props) {
|
|||
}, {
|
||||
label: <div className={Styles.tabLabel}>{t('template')}</div>,
|
||||
key: 'template',
|
||||
children: (<TemplateList oakAutoUnmount={true} oakPath={`templateUpsert-wechatPublic-ApplicationId:${id}`} applicationId={id}/>),
|
||||
children: (<TemplateList oakAutoUnmount={true} oakPath={`templateUpsert-wechat-ApplicationId:${id}`} applicationId={id}/>),
|
||||
});
|
||||
}
|
||||
else if (type === 'wechatMp') {
|
||||
|
|
|
|||
|
|
@ -29,9 +29,6 @@ export default OakComponent({
|
|||
.filter((ele) => !!ele)
|
||||
: [];
|
||||
const selectedTypes = data ? data.filter((ele) => !ele.$$deleteAt$$).map((ele) => { ele.type; }) : [];
|
||||
// const messageTypes = MessageTypes
|
||||
// .filter((ele: string) => !selectedTypes.includes(ele));
|
||||
console.log(data);
|
||||
return {
|
||||
mtt: data,
|
||||
dirtyIds,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export default function Render(props) {
|
|||
},
|
||||
},
|
||||
{
|
||||
dataIndex: 'template.templateName',
|
||||
dataIndex: ['template', 'templateName'],
|
||||
title: '模板消息标题',
|
||||
width: 300,
|
||||
render: (value, record, index) => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import MessageTypes from '../../../config/messageType';
|
||||
export default OakComponent({
|
||||
entity: 'messageTypeTemplate',
|
||||
isList: true,
|
||||
|
|
@ -27,14 +26,19 @@ export default OakComponent({
|
|||
.filter((ele) => !!ele)
|
||||
: [];
|
||||
const selectedTypes = data ? data.map((ele) => ele.type) : [];
|
||||
const messageTypes = MessageTypes
|
||||
.filter((ele) => !selectedTypes.includes(ele));
|
||||
return {
|
||||
mtt: data,
|
||||
dirtyIds,
|
||||
messageTypes,
|
||||
selectedTypes,
|
||||
};
|
||||
},
|
||||
listeners: {
|
||||
async 'selectedTypes'(prev, next) {
|
||||
if (next.selectedTypes) {
|
||||
await this.updateMessageTypes(next.selectedTypes);
|
||||
}
|
||||
},
|
||||
},
|
||||
filters: [
|
||||
{
|
||||
filter() {
|
||||
|
|
@ -89,6 +93,14 @@ export default OakComponent({
|
|||
content: '操作成功',
|
||||
type: 'success',
|
||||
});
|
||||
},
|
||||
async updateMessageTypes(selectedTypes) {
|
||||
const { result: MessageTypes } = await this.features.template.getMessageType();
|
||||
const messageTypes = MessageTypes
|
||||
.filter((ele) => !selectedTypes.includes(ele));
|
||||
this.setState({
|
||||
messageTypes,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
|||
entity: string;
|
||||
entityId: string;
|
||||
relationEntity: string;
|
||||
relationEntityFilter: object;
|
||||
relationEntityFilter: {};
|
||||
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ export const selectFreeEntities = [
|
|||
'articleMenu',
|
||||
'article',
|
||||
'userEntityGrant',
|
||||
'wechatMpJump',
|
||||
];
|
||||
// 可以自由更新的对象
|
||||
export const updateFreeDict = {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ exports.selectFreeEntities = [
|
|||
'articleMenu',
|
||||
'article',
|
||||
'userEntityGrant',
|
||||
'wechatMpJump',
|
||||
];
|
||||
// 可以自由更新的对象
|
||||
exports.updateFreeDict = {
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
import { String, Price } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
total: Price;
|
||||
avail: Price;
|
||||
entity?: String<32>;
|
||||
entityId?: String<64>;
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
;
|
||||
const AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '地址',
|
||||
attr: {
|
||||
ableState: '状态',
|
||||
total: '余额',
|
||||
avail: '可用余额',
|
||||
entity: '对象实体',
|
||||
entityId: '对象实体Id'
|
||||
},
|
||||
action: {
|
||||
charge: '充值',
|
||||
withdraw: '提现',
|
||||
cost: '支付',
|
||||
refund: '退款',
|
||||
loan: '抵押',
|
||||
repay: '归还',
|
||||
enable: '启用',
|
||||
disable: '禁用',
|
||||
},
|
||||
r: {
|
||||
owner: '所有者',
|
||||
audit: '审核者',
|
||||
},
|
||||
v: {
|
||||
ableState: {
|
||||
enabled: '正常',
|
||||
disabled: '冻结',
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
import { String, Boolean, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Area } from './Area';
|
||||
export interface Schema extends EntityShape {
|
||||
detail: String<32>;
|
||||
area: Area;
|
||||
phone: String<12>;
|
||||
name: String<32>;
|
||||
default: Boolean;
|
||||
remark?: Text;
|
||||
entity?: String<32>;
|
||||
entityId?: String<64>;
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '地址',
|
||||
attr: {
|
||||
detail: '详细地址',
|
||||
area: '所在地区',
|
||||
phone: '联系电话',
|
||||
name: '姓名',
|
||||
default: '是否默认',
|
||||
remark: '备注',
|
||||
entity: '对象实体',
|
||||
entityId: '对象实体Id'
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
import { String, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as System } from './System';
|
||||
import { Schema as Session } from './Session';
|
||||
import { Style } from '../types/Style';
|
||||
export type Passport = 'email' | 'mobile' | 'wechat' | 'wechatPublic';
|
||||
export type AppType = 'web' | 'wechatMp' | 'wechatPublic' | 'native';
|
||||
export type WechatMpConfig = {
|
||||
type: 'wechatMp';
|
||||
appId: string;
|
||||
appSecret: string;
|
||||
originalId?: string;
|
||||
qrCodePrefix?: string;
|
||||
server?: {
|
||||
url?: string;
|
||||
token: string;
|
||||
encodingAESKey: string;
|
||||
mode: 'clear' | 'compatible' | 'safe';
|
||||
dataFormat: 'json' | 'xml';
|
||||
};
|
||||
passport?: Passport[];
|
||||
};
|
||||
export type WebConfig = {
|
||||
type: 'web';
|
||||
wechat?: {
|
||||
appId: string;
|
||||
appSecret: string;
|
||||
domain?: string;
|
||||
enable?: boolean;
|
||||
};
|
||||
passport?: Passport[];
|
||||
};
|
||||
export type WechatPublicTemplateMsgsConfig = Record<string, string>;
|
||||
export type WechatPublicConfig = {
|
||||
type: 'wechatPublic';
|
||||
isService: boolean;
|
||||
appId: string;
|
||||
appSecret: string;
|
||||
originalId?: string;
|
||||
enable?: boolean;
|
||||
templateMsgs?: WechatPublicTemplateMsgsConfig;
|
||||
server?: {
|
||||
url?: string;
|
||||
token: string;
|
||||
encodingAESKey: string;
|
||||
mode: 'clear' | 'compatible' | 'safe';
|
||||
};
|
||||
wechatMp?: {
|
||||
appId: string;
|
||||
originalId: string;
|
||||
};
|
||||
passport?: Passport[];
|
||||
};
|
||||
export type NativeConfig = {
|
||||
type: 'native';
|
||||
passport?: Passport[];
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
description: Text;
|
||||
type: AppType;
|
||||
system: System;
|
||||
config: WebConfig | WechatMpConfig | WechatPublicConfig | NativeConfig;
|
||||
style?: Style;
|
||||
sessions?: Session[];
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '应用',
|
||||
attr: {
|
||||
description: '描述',
|
||||
type: '类型',
|
||||
system: '系统',
|
||||
name: '名称',
|
||||
config: '设置',
|
||||
style: '样式',
|
||||
sessions: '会话',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
web: '网站',
|
||||
wechatPublic: '微信公众号',
|
||||
wechatMp: '微信小程序',
|
||||
native: 'App',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { String, Geo } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
level: 'province' | 'city' | 'district' | 'street' | 'country';
|
||||
depth: 0 | 1 | 2 | 3 | 4;
|
||||
parent?: Schema;
|
||||
code: String<12>;
|
||||
center: Geo;
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '地区',
|
||||
attr: {
|
||||
level: '层级',
|
||||
depth: '深度',
|
||||
parent: '上级地区',
|
||||
name: '名称',
|
||||
code: '地区编码',
|
||||
center: '中心坐标',
|
||||
},
|
||||
v: {
|
||||
level: {
|
||||
country: '国家',
|
||||
province: '省',
|
||||
city: '市',
|
||||
district: '区',
|
||||
street: '街道',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
configuration: {
|
||||
actionType: 'readOnly',
|
||||
static: true,
|
||||
},
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { String, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as ExtraFile } from './ExtraFile';
|
||||
import { Schema as ArticleMenu } from './ArticleMenu';
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
content: Text;
|
||||
articleMenu: ArticleMenu;
|
||||
files?: Array<ExtraFile>;
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '文章',
|
||||
attr: {
|
||||
name: '文章标题',
|
||||
content: '请输入正文内容',
|
||||
articleMenu: '文章菜单',
|
||||
files: '文件'
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { String, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as ExtraFile } from './ExtraFile';
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
isArticle: Boolean;
|
||||
parent?: Schema;
|
||||
isLeaf: Boolean;
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
files?: Array<ExtraFile>;
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '文章分类',
|
||||
attr: {
|
||||
name: '分类标题',
|
||||
isArticle: '是否存在文章',
|
||||
parent: '所属分类',
|
||||
entity: '对象',
|
||||
entityId: '对象Id',
|
||||
isLeaf: '结点下是否存在叶子结点',
|
||||
files: '图片',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { String, Text, Boolean, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
export interface Schema extends EntityShape {
|
||||
mobile: String<11>;
|
||||
code: String<4>;
|
||||
visitorId: Text;
|
||||
reason?: Text;
|
||||
env: Object;
|
||||
expired: Boolean;
|
||||
expiresAt: Datetime;
|
||||
type: 'login' | 'changePassword' | 'confirm';
|
||||
}
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
send: ['unsent', 'sending'],
|
||||
success: ['sending', 'sent'],
|
||||
fail: ['sending', 'failure'],
|
||||
},
|
||||
is: 'unsent',
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '验证码',
|
||||
attr: {
|
||||
mobile: '手机号',
|
||||
code: '验证码',
|
||||
visitorId: '用户标识',
|
||||
reason: '失败原因',
|
||||
env: '用户环境',
|
||||
expired: '是否过期',
|
||||
expiresAt: '过期时间',
|
||||
iState: '状态',
|
||||
type: '类型',
|
||||
},
|
||||
action: {
|
||||
send: '发送',
|
||||
fail: '失败',
|
||||
success: '成功',
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
unsent: '未发送',
|
||||
sending: '发送中',
|
||||
sent: '已发送',
|
||||
failure: '已失败',
|
||||
},
|
||||
type: {
|
||||
login: '登录',
|
||||
changePassword: '修改密码',
|
||||
confirm: '校验',
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_mobile_code',
|
||||
attributes: [
|
||||
{
|
||||
name: 'mobile',
|
||||
direction: 'ASC',
|
||||
},
|
||||
{
|
||||
name: 'code',
|
||||
direction: 'ASC',
|
||||
},
|
||||
{
|
||||
name: '$$createAt$$',
|
||||
direction: 'DESC',
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as User } from './User';
|
||||
export interface Schema extends EntityShape {
|
||||
user: User;
|
||||
prevPassword?: String<32>;
|
||||
newPassword?: String<32>;
|
||||
result: 'success' | 'fail';
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '密码修改记录',
|
||||
attr: {
|
||||
user: '用户',
|
||||
prevPassword: '原密码',
|
||||
newPassword: '新密码',
|
||||
result: "修改结果",
|
||||
},
|
||||
v: {
|
||||
result: {
|
||||
success: '成功',
|
||||
fail: '失败'
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { String, Int } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as System } from './System';
|
||||
export interface Schema extends EntityShape {
|
||||
url: String<64>;
|
||||
apiPath?: String<32>;
|
||||
protocol: 'http' | 'https';
|
||||
port: Int<2>;
|
||||
system: System;
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '域名',
|
||||
attr: {
|
||||
url: '域名',
|
||||
apiPath: 'api路径',
|
||||
protocol: '协议',
|
||||
port: '端口',
|
||||
system: '系统',
|
||||
},
|
||||
v: {
|
||||
protocol: {
|
||||
http: 'http',
|
||||
https: 'https',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as Token } from './Token';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
email: String<16>;
|
||||
user: User;
|
||||
tokens: Array<Token>;
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
;
|
||||
const AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '邮箱',
|
||||
attr: {
|
||||
ableState: '是否可用',
|
||||
email: '邮箱',
|
||||
user: '关联用户',
|
||||
tokens: '相关令牌',
|
||||
},
|
||||
action: {
|
||||
enable: '启用',
|
||||
disable: '禁用',
|
||||
},
|
||||
v: {
|
||||
ableState: {
|
||||
enabled: '可用的',
|
||||
disabled: '禁用的',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_email_ableState',
|
||||
attributes: [
|
||||
{
|
||||
name: 'email',
|
||||
direction: 'ASC',
|
||||
},
|
||||
{
|
||||
name: 'ableState',
|
||||
direction: 'ASC',
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
import { String, Int, Text, Float, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Application } from './Application';
|
||||
export interface Schema extends EntityShape {
|
||||
origin: 'qiniu' | 'wechat' | 'unknown' | 'ctyun';
|
||||
type: 'image' | 'video' | 'audio' | 'file';
|
||||
bucket?: String<32>;
|
||||
objectId?: String<64>;
|
||||
tag1?: String<32>;
|
||||
tag2?: String<32>;
|
||||
filename: String<256>;
|
||||
md5?: Text;
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
extra1?: Text;
|
||||
extra2?: Object;
|
||||
extension?: String<16>;
|
||||
size?: Int<4>;
|
||||
sort?: Float<22, 10>;
|
||||
fileType?: String<128>;
|
||||
isBridge?: Boolean;
|
||||
uploadState: 'success' | 'failed' | 'uploading';
|
||||
uploadMeta?: Object;
|
||||
application: Application;
|
||||
}
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '文件',
|
||||
attr: {
|
||||
origin: '源',
|
||||
type: '类型',
|
||||
bucket: '桶',
|
||||
objectId: '对象编号',
|
||||
tag1: '标签一',
|
||||
tag2: '标签二',
|
||||
filename: '文件名',
|
||||
md5: 'md5',
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
extra1: '额外信息',
|
||||
extra2: '非结构化额外信息',
|
||||
extension: '后缀名',
|
||||
size: '文件大小',
|
||||
sort: '排序',
|
||||
fileType: '文件类型',
|
||||
isBridge: '是否桥接访问',
|
||||
uploadState: '上传状态',
|
||||
uploadMeta: '上传需要的metadata',
|
||||
application: '来源应用',
|
||||
},
|
||||
v: {
|
||||
origin: {
|
||||
qiniu: '七牛云',
|
||||
ctyun: '天翼云',
|
||||
wechat: '微信',
|
||||
unknown: '未知',
|
||||
},
|
||||
type: {
|
||||
image: '图像',
|
||||
video: '视频',
|
||||
audio: '音频',
|
||||
file: '文件',
|
||||
},
|
||||
uploadState: {
|
||||
success: '上传成功',
|
||||
failed: '上传失败',
|
||||
uploading: '上传中',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'objectId_deleteAt',
|
||||
attributes: [
|
||||
{
|
||||
name: 'objectId',
|
||||
},
|
||||
{
|
||||
name: '$$deleteAt$$',
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import { String, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends 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;
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '直播流',
|
||||
attr: {
|
||||
title: '名称',
|
||||
streamTitle: '直播流名称',
|
||||
liveonly: '活跃状态',
|
||||
hub: '直播空间名称',
|
||||
entity: '所属实体',
|
||||
entityId: '所属实体id',
|
||||
rtmpPushUrl: '推流地址',
|
||||
rtmpPlayUrl: '播放地址',
|
||||
expireAt: '推流过期时间',
|
||||
pcPushUrl: 'OBS推流地址',
|
||||
streamKey: 'OBS串流密钥'
|
||||
},
|
||||
v: {
|
||||
liveonly: {
|
||||
online: '在线',
|
||||
offline: '下线',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
import { String, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as User } from './User';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Channel, Weight } from '../types/Message';
|
||||
import { Schema as Platform } from './Platform';
|
||||
export type Router = {
|
||||
pathname: string;
|
||||
props?: Record<string, any>;
|
||||
state?: Record<string, any>;
|
||||
isTabBar?: boolean;
|
||||
};
|
||||
type MessageRestriction = {
|
||||
systemIds?: string[];
|
||||
channels?: Array<Channel>;
|
||||
};
|
||||
type Chaanels = Channel[];
|
||||
export interface Schema extends EntityShape {
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
user: User;
|
||||
type: String<64>;
|
||||
weight: Weight;
|
||||
restriction?: MessageRestriction;
|
||||
title: String<256>;
|
||||
content: Text;
|
||||
data?: Object;
|
||||
router?: Router;
|
||||
platform?: Platform;
|
||||
channels?: Chaanels;
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
succeed: ['sending', 'success'],
|
||||
fail: ['sending', 'failure'],
|
||||
},
|
||||
};
|
||||
const VisitActionDef = {
|
||||
stm: {
|
||||
visit: ['unvisited', 'visited'],
|
||||
},
|
||||
is: 'unvisited',
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '消息',
|
||||
attr: {
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象ID',
|
||||
restriction: '限制',
|
||||
title: '标题',
|
||||
content: '内容',
|
||||
user: '关联用户',
|
||||
type: '消息类型',
|
||||
weight: '优先级',
|
||||
iState: '发送状态',
|
||||
visitState: '访问状态',
|
||||
router: '目标路由',
|
||||
data: '透传数据',
|
||||
platform: '平台',
|
||||
channels: '渠道',
|
||||
},
|
||||
action: {
|
||||
succeed: '成功',
|
||||
fail: '失败',
|
||||
visit: '阅读',
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
sending: '发送中',
|
||||
success: '发送成功',
|
||||
failure: '发送失败',
|
||||
},
|
||||
visitState: {
|
||||
unvisited: '未读',
|
||||
visited: '已读',
|
||||
},
|
||||
weight: {
|
||||
high: '高',
|
||||
medium: '中',
|
||||
low: '低',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { Schema as Message } from './Message';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as System } from './System';
|
||||
export interface Schema extends EntityShape {
|
||||
message: Message;
|
||||
system: System;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '消息系统连接',
|
||||
attr: {
|
||||
message: '消息',
|
||||
system: '系统',
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
type: String<64>;
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '消息类型',
|
||||
attr: {
|
||||
type: '类型',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as SmsTemplate } from './SmsTemplate';
|
||||
export interface Schema extends EntityShape {
|
||||
type: String<64>;
|
||||
template: SmsTemplate;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '消息类型模板关联',
|
||||
attr: {
|
||||
type: '消息类型',
|
||||
template: '短信消息模板',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as WechatTemplate } from './WechatTemplate';
|
||||
export interface Schema extends EntityShape {
|
||||
type: String<64>;
|
||||
template: WechatTemplate;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '消息类型模板关联',
|
||||
attr: {
|
||||
type: '消息类型',
|
||||
template: '公众号消息模板',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as Token } from './Token';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
mobile: String<16>;
|
||||
user?: User;
|
||||
tokens: Array<Token>;
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
;
|
||||
const AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '手机',
|
||||
attr: {
|
||||
ableState: '是否可用',
|
||||
mobile: '手机号',
|
||||
user: '关联用户',
|
||||
tokens: '相关令牌',
|
||||
},
|
||||
action: {
|
||||
enable: '启用',
|
||||
disable: '禁用',
|
||||
},
|
||||
v: {
|
||||
ableState: {
|
||||
enabled: '可用的',
|
||||
disabled: '禁用的',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_mobile_ableState',
|
||||
attributes: [
|
||||
{
|
||||
name: 'mobile',
|
||||
direction: 'ASC',
|
||||
},
|
||||
{
|
||||
name: 'ableState',
|
||||
direction: 'ASC',
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
import { String } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Channel } from '../types/Message';
|
||||
import { Schema as Application } from './Application';
|
||||
import { Schema as MessageSystem } from './MessageSystem';
|
||||
export interface Schema extends EntityShape {
|
||||
channel: Channel;
|
||||
application?: Application;
|
||||
data?: Object;
|
||||
messageSystem: MessageSystem;
|
||||
data1?: Object;
|
||||
data2?: Object;
|
||||
templateId?: String<128>;
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
succeed: ['sending', 'success'],
|
||||
fail: ['sending', 'failure'],
|
||||
},
|
||||
is: 'sending',
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '通知',
|
||||
attr: {
|
||||
channel: '消息渠道',
|
||||
data: '消息数据',
|
||||
messageSystem: '消息系统连接',
|
||||
data1: '数据1',
|
||||
data2: '数据2',
|
||||
iState: '状态',
|
||||
application: '关联应用',
|
||||
templateId: '模板id'
|
||||
},
|
||||
action: {
|
||||
succeed: '成功',
|
||||
fail: '失败',
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
sending: '发送中',
|
||||
success: '发送成功',
|
||||
failure: '发送失败',
|
||||
},
|
||||
channel: {
|
||||
wechatPublic: '公众号',
|
||||
jPush: '极光推送',
|
||||
jim: '极光消息',
|
||||
wechatMp: '小程序',
|
||||
sms: '短信',
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { String, Int, Datetime, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as Token } from './Token';
|
||||
type RedirectTo = {
|
||||
pathname: string;
|
||||
props?: Record<string, any>;
|
||||
state?: Record<string, any>;
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
user: User;
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
showTip?: Boolean;
|
||||
expiresAt: Datetime;
|
||||
expired: Boolean;
|
||||
redirectTo: RedirectTo;
|
||||
multiple?: Boolean;
|
||||
tokenLifeLength?: Int<4>;
|
||||
tokens: Token[];
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '寄生',
|
||||
attr: {
|
||||
user: '用户',
|
||||
showTip: '提示',
|
||||
expired: '已过期',
|
||||
expiresAt: '过期时间',
|
||||
redirectTo: '重定向页面',
|
||||
multiple: '允许反复使用',
|
||||
tokens: '令牌',
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象Id',
|
||||
tokenLifeLength: '令牌生命长度',
|
||||
},
|
||||
action: {
|
||||
wakeup: '激活',
|
||||
cancel: '作废',
|
||||
qrcode: '采集码',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { String, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Config } from '../types/Config';
|
||||
import { Style } from '../types/Style';
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
description: Text;
|
||||
config: Config;
|
||||
style?: Style;
|
||||
entity?: String<32>;
|
||||
entityId?: String<64>;
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '平台',
|
||||
attr: {
|
||||
name: '名称',
|
||||
description: '描述',
|
||||
config: '设置',
|
||||
style: '样式',
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Session } from './Session';
|
||||
import { Schema as User } from './User';
|
||||
export interface Schema extends EntityShape {
|
||||
user: User;
|
||||
session: Session;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '会话',
|
||||
attr: {
|
||||
user: '当前用户',
|
||||
session: '会话',
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import { String, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as User } from './User';
|
||||
export interface Schema extends EntityShape {
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
user?: User;
|
||||
lmts?: Datetime;
|
||||
openId?: String<32>;
|
||||
}
|
||||
export type Relation = 'partner';
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '会话',
|
||||
attr: {
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
user: '发送者',
|
||||
lmts: '最后一条消息的发送时间',
|
||||
openId: '微信用户openId'
|
||||
},
|
||||
r: {
|
||||
partner: '所有者',
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { String, Datetime, Boolean, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Session } from './Session';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as WechatUser } from './WechatUser';
|
||||
import { Schema as Application } from './Application';
|
||||
import { Schema as ExtraFile } from './ExtraFile';
|
||||
type Type = 'text' | 'image' | 'voice' | 'video' | 'location' | 'link' | 'event' | 'miniprogrampage';
|
||||
export interface Schema extends EntityShape {
|
||||
application: Application;
|
||||
session: Session;
|
||||
user?: User;
|
||||
wechatUser?: WechatUser;
|
||||
createTime?: Datetime;
|
||||
type: Type;
|
||||
text?: Text;
|
||||
files?: ExtraFile[];
|
||||
link?: String<128>;
|
||||
aaoe?: Boolean;
|
||||
extra?: Object;
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '消息',
|
||||
attr: {
|
||||
application: '应用',
|
||||
session: '会话',
|
||||
user: '用户',
|
||||
wechatUser: '微信用户',
|
||||
createTime: '发送时间',
|
||||
type: '消息类型',
|
||||
text: '文本内容',
|
||||
files: '文件',
|
||||
link: '图文',
|
||||
aaoe: '作为实体的发起者',
|
||||
extra: '额外信息',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
text: '文字',
|
||||
image: '图片',
|
||||
voice: '音频',
|
||||
video: '视频',
|
||||
link: '图文',
|
||||
location: '位置',
|
||||
event: '事件',
|
||||
miniprogrampage: '小程序',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import { String, Text, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as System } from './System';
|
||||
export interface Schema extends EntityShape {
|
||||
system: System;
|
||||
origin: String<64>;
|
||||
templateName: Text;
|
||||
templateCode: String<64>;
|
||||
templateContent: Text;
|
||||
syncAt: Datetime;
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '微信模板',
|
||||
attr: {
|
||||
system: '系统',
|
||||
origin: '源',
|
||||
templateName: '模板名称',
|
||||
templateCode: '模板Code',
|
||||
templateContent: '模板内容',
|
||||
syncAt: '同步时间'
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { String } from "oak-domain/lib/types/DataType";
|
||||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||
import { Schema as Area } from "./Area";
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
area: Area;
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: "站点",
|
||||
attr: {
|
||||
name: "站点名",
|
||||
area: "城市",
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import { String, Text, Int } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export type WechatPublicConfig = {
|
||||
type: 'wechatPublic';
|
||||
appId: string;
|
||||
appSecret: string;
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
name: String<32>;
|
||||
description?: Text;
|
||||
config?: WechatPublicConfig;
|
||||
offset?: Int<4>;
|
||||
}
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '订阅号',
|
||||
attr: {
|
||||
name: '名称',
|
||||
entity: '对象名称',
|
||||
entityId: '对象Id',
|
||||
description: '描述',
|
||||
config: '配置',
|
||||
offset: '已同步素材位置',
|
||||
},
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
//索引
|
||||
{
|
||||
name: 'index_name',
|
||||
attributes: [
|
||||
{
|
||||
name: 'name',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'index_entity',
|
||||
attributes: [
|
||||
{
|
||||
name: 'entity',
|
||||
},
|
||||
{
|
||||
name: 'entityId',
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { String } from "oak-domain/lib/types/DataType";
|
||||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||
import { Schema as Area } from "./Area";
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
area: Area;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: "地铁",
|
||||
attr: {
|
||||
name: "线路",
|
||||
area: "城市",
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||
import { Schema as Subway } from "./Subway";
|
||||
import { Schema as Station } from "./Station";
|
||||
export interface Schema extends EntityShape {
|
||||
station: Station;
|
||||
subway: Subway;
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: "地铁站点连接表",
|
||||
attr: {
|
||||
station: "站点",
|
||||
subway: "地铁线",
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
import { String, Boolean, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Platform } from './Platform';
|
||||
import { Config } from '../types/Config';
|
||||
import { Style } from '../types/Style';
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
description: Text;
|
||||
config: Config;
|
||||
platform?: Platform;
|
||||
folder: String<16>;
|
||||
super?: Boolean;
|
||||
style?: Style;
|
||||
entity?: String<32>;
|
||||
entityId?: String<64>;
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '系统',
|
||||
attr: {
|
||||
name: '名称',
|
||||
description: '描述',
|
||||
config: '设置',
|
||||
platform: '平台',
|
||||
super: '超级系统',
|
||||
folder: '代码目录名',
|
||||
style: '样式',
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
import { String, Text } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export type RedirectToProps = {
|
||||
batchPath: string;
|
||||
singlePath?: string;
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
title: Text;
|
||||
description?: Text;
|
||||
targetEntity: String<32>;
|
||||
targetFilter: Object;
|
||||
action: String<32>;
|
||||
redirectTo: RedirectToProps;
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
complete: ['active', 'done'],
|
||||
},
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '待办',
|
||||
attr: {
|
||||
iState: '状态',
|
||||
title: '标题',
|
||||
description: '描述',
|
||||
targetEntity: '对象实体',
|
||||
targetFilter: '过滤条件',
|
||||
action: '动作',
|
||||
redirectTo: '重定向页面',
|
||||
},
|
||||
r: {
|
||||
collaborator: '协作者',
|
||||
},
|
||||
action: {
|
||||
complete: '完成',
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
active: '待办',
|
||||
done: '已完成',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
import { String, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as Application } from './Application';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Environment } from 'oak-domain/lib/types/Environment';
|
||||
export interface Schema extends EntityShape {
|
||||
application?: Application;
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
user?: User;
|
||||
player?: User;
|
||||
disablesAt?: Datetime;
|
||||
env: Environment;
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
;
|
||||
const AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '令牌',
|
||||
attr: {
|
||||
application: '应用',
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
user: '用户',
|
||||
player: '扮演者',
|
||||
env: '环境',
|
||||
ableState: '状态',
|
||||
disablesAt: '禁用时间',
|
||||
},
|
||||
action: {
|
||||
enable: '激活',
|
||||
disable: '禁用',
|
||||
},
|
||||
v: {
|
||||
ableState: {
|
||||
enabled: '使用中',
|
||||
disabled: '已禁用'
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import { String, Text, Boolean, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as ExtraFile } from './ExtraFile';
|
||||
import { Schema as WechatQrCode } from './WechatQrCode';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Address } from './Address';
|
||||
import { Schema as Account } from './Account';
|
||||
export interface Schema extends EntityShape {
|
||||
name?: String<16>;
|
||||
nickname?: String<64>;
|
||||
password?: Text;
|
||||
passwordSha1?: Text;
|
||||
birth?: Datetime;
|
||||
gender?: 'male' | 'female';
|
||||
idCardType?: 'ID-Card' | 'passport' | 'Mainland-passport';
|
||||
idNumber?: String<32>;
|
||||
ref?: Schema;
|
||||
files: Array<ExtraFile>;
|
||||
codes: Array<WechatQrCode>;
|
||||
isRoot?: Boolean;
|
||||
addresses?: Address[];
|
||||
accounts: Account[];
|
||||
}
|
||||
|
|
@ -1,114 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IdActionDef = {
|
||||
stm: {
|
||||
verify: ['unverified', 'verifying'],
|
||||
accept: [['unverified', 'verifying'], 'verified'],
|
||||
reject: [['verifying', 'verified'], 'unverified'],
|
||||
},
|
||||
is: 'unverified',
|
||||
};
|
||||
const UserActionDef = {
|
||||
stm: {
|
||||
activate: ['shadow', 'normal'],
|
||||
disable: [['normal', 'shadow'], 'disabled'],
|
||||
enable: ['disabled', 'normal'],
|
||||
mergeTo: [['normal', 'shadow'], 'merged'],
|
||||
mergeFrom: ['normal', 'normal'],
|
||||
},
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
"zh_CN": {
|
||||
name: '用户',
|
||||
attr: {
|
||||
name: '姓名',
|
||||
nickname: '昵称',
|
||||
birth: '生日',
|
||||
password: '密码',
|
||||
passwordSha1: 'sha1加密密码',
|
||||
gender: '性别',
|
||||
idCardType: '证件类型',
|
||||
idNumber: '证件号码',
|
||||
ref: '指向用户',
|
||||
files: '相关文件',
|
||||
userState: '用户状态',
|
||||
idState: '身份验证状态',
|
||||
codes: '微信分享二维码',
|
||||
isRoot: '是否超级用户',
|
||||
addresses: '收货地址',
|
||||
accounts: '账户',
|
||||
},
|
||||
action: {
|
||||
activate: '激活',
|
||||
accept: '同意',
|
||||
verify: '验证',
|
||||
reject: '拒绝',
|
||||
enable: '启用',
|
||||
disable: '禁用',
|
||||
mergeTo: '合并',
|
||||
mergeFrom: '使合并',
|
||||
},
|
||||
v: {
|
||||
userState: {
|
||||
shadow: '未激活',
|
||||
normal: '正常',
|
||||
disabled: '禁用',
|
||||
merged: '已被合并',
|
||||
},
|
||||
idState: {
|
||||
unverified: '未验证',
|
||||
verifying: '验证中',
|
||||
verified: '已验证',
|
||||
},
|
||||
gender: {
|
||||
male: '男',
|
||||
female: '女',
|
||||
},
|
||||
idCardType: {
|
||||
"ID-Card": '身份证',
|
||||
passport: '护照',
|
||||
"Mainland-passport": '港澳台通行证',
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_birth',
|
||||
attributes: [
|
||||
{
|
||||
name: 'birth',
|
||||
direction: 'ASC',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'index_fulltext',
|
||||
attributes: [
|
||||
{
|
||||
name: 'name',
|
||||
},
|
||||
{
|
||||
name: 'nickname',
|
||||
}
|
||||
],
|
||||
config: {
|
||||
type: 'fulltext',
|
||||
parser: 'ngram',
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'index_userState_refId',
|
||||
attributes: [
|
||||
{
|
||||
name: 'userState',
|
||||
},
|
||||
{
|
||||
name: 'ref',
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
import { String, Text, Datetime, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as WechatQrCode } from './WechatQrCode';
|
||||
import { QrCodeType } from '../types/Config';
|
||||
type RelationIds = string[];
|
||||
export type RedirectToProps = {
|
||||
pathname: string;
|
||||
props?: Record<string, any>;
|
||||
state?: Record<string, any>;
|
||||
isTabBar?: boolean;
|
||||
};
|
||||
type Rule = 'single' | 'all' | 'free';
|
||||
export interface Schema extends EntityShape {
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
relationEntity: String<32>;
|
||||
relationEntityFilter: Object;
|
||||
relationIds: RelationIds;
|
||||
type: 'grant' | 'transfer';
|
||||
rule: Rule;
|
||||
ruleOnRow: Rule;
|
||||
multiple?: Boolean;
|
||||
remark?: Text;
|
||||
granter: User;
|
||||
codes: Array<WechatQrCode>;
|
||||
qrCodeType: QrCodeType;
|
||||
expiresAt?: Datetime;
|
||||
expired?: Boolean;
|
||||
redirectTo?: RedirectToProps;
|
||||
claimUrl: String<128>;
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '用户授权',
|
||||
attr: {
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
relationIds: '权限',
|
||||
relationEntity: '关联对象',
|
||||
relationEntityFilter: '对象限定条件',
|
||||
type: '类型',
|
||||
rule: '领权规则',
|
||||
ruleOnRow: '选择对象规则',
|
||||
multiple: '允许多人选择',
|
||||
remark: '备注',
|
||||
granter: '授权人',
|
||||
codes: '微信码',
|
||||
expired: '是否失效',
|
||||
expiresAt: '过期时间',
|
||||
redirectTo: '重定向页面',
|
||||
qrCodeType: '二维码类型',
|
||||
claimUrl: '认领路由',
|
||||
},
|
||||
action: {
|
||||
claim: '领取',
|
||||
disable: '失效',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
grant: '授予',
|
||||
transfer: '转交',
|
||||
},
|
||||
qrCodeType: {
|
||||
webForWechatPublic: '网站引流到公众号',
|
||||
wechatMpDomainUrl: '小程序url码',
|
||||
wechatMpWxaCode: '小程序码',
|
||||
wechatPublic: '公众号关注码',
|
||||
wechatPublicForMp: '公众号回复小程序码',
|
||||
},
|
||||
rule: {
|
||||
single: '单选',
|
||||
all: '全选',
|
||||
free: '自由选择'
|
||||
},
|
||||
ruleOnRow: {
|
||||
single: '单选',
|
||||
all: '全选',
|
||||
free: '自由选择'
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_expired_expiredAt',
|
||||
attributes: [
|
||||
{
|
||||
name: 'expired',
|
||||
},
|
||||
{
|
||||
name: 'expiresAt',
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { Schema as User } from './User';
|
||||
import { Schema as System } from './System';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
user: User;
|
||||
system: System;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
"zh_CN": {
|
||||
name: '用户系统',
|
||||
attr: {
|
||||
user: '用户',
|
||||
system: '系统',
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { Datetime, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as WechatPublicTag } from './WechatPublicTag';
|
||||
import { Schema as WechatUser } from './WechatUser';
|
||||
export interface Schema extends EntityShape {
|
||||
wechatPublicTag: WechatPublicTag;
|
||||
wechatUser: WechatUser;
|
||||
sync: Boolean;
|
||||
syncAt: Datetime;
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
success: [['wait', 'fail'], 'success'],
|
||||
fail: [['wait', 'success'], 'fail']
|
||||
},
|
||||
is: 'wait',
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '用户公众号Tag',
|
||||
attr: {
|
||||
wechatPublicTag: 'tag',
|
||||
wechatUser: '微信用户',
|
||||
sync: '同步状态',
|
||||
syncAt: '同步时间',
|
||||
iState: '状态',
|
||||
},
|
||||
action: {
|
||||
sync: '同步',
|
||||
success: '成功',
|
||||
fail: '失败'
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
wait: '待同步',
|
||||
success: '同步成功',
|
||||
fail: '同步失败',
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import { Boolean, Text, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as WechatQrCode } from './WechatQrCode';
|
||||
import { QrCodeType } from '../types/Config';
|
||||
export interface Schema extends EntityShape {
|
||||
user?: User;
|
||||
type: 'bind' | 'login';
|
||||
successed: Boolean;
|
||||
remark?: Text;
|
||||
qrCodeType: QrCodeType;
|
||||
expiresAt?: Datetime;
|
||||
expired?: Boolean;
|
||||
codes: Array<WechatQrCode>;
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '绑定微信号',
|
||||
attr: {
|
||||
user: '用户',
|
||||
type: '类型',
|
||||
successed: '是否成功',
|
||||
remark: '备注',
|
||||
codes: '微信码',
|
||||
expired: '是否过期',
|
||||
expiresAt: '过期时间',
|
||||
qrCodeType: '二维码类型',
|
||||
},
|
||||
action: {
|
||||
success: '成功',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
bind: '绑定',
|
||||
login: '登录',
|
||||
},
|
||||
qrCodeType: {
|
||||
webForWechatPublic: '网站引流到公众号',
|
||||
wechatMpDomainUrl: '小程序url码',
|
||||
wechatMpWxaCode: '小程序码',
|
||||
wechatPublic: '公众号关注码',
|
||||
wechatPublicForMp: '公众号跳转小程序码',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_uuid',
|
||||
attributes: [
|
||||
{
|
||||
name: 'expired',
|
||||
},
|
||||
{
|
||||
name: 'expiresAt',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import { Int } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Application } from './Application';
|
||||
import { Schema as WechatPublicTag } from './WechatPublicTag';
|
||||
type Config = {
|
||||
button: any[];
|
||||
matchrule?: {
|
||||
tag_id?: string;
|
||||
};
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
menuId?: Int<4>;
|
||||
menuConfig: Config;
|
||||
application: Application;
|
||||
wechatPublicTag?: WechatPublicTag;
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
success: [['wait', 'fail'], 'success'],
|
||||
fail: [['wait', 'success'], 'fail']
|
||||
},
|
||||
is: 'wait',
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '微信菜单',
|
||||
attr: {
|
||||
menuId: '菜单Id',
|
||||
menuConfig: '菜单配置',
|
||||
application: '应用',
|
||||
wechatPublicTag: '标签',
|
||||
iState: '状态',
|
||||
},
|
||||
action: {
|
||||
publish: '保存并发布',
|
||||
success: '发布成功',
|
||||
fail: '发布失败',
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
wait: '等待发布',
|
||||
success: '发布成功',
|
||||
fail: '发布失败',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import { Boolean, Datetime, Int, String } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Message } from './Message';
|
||||
type Jump_wxa = {
|
||||
path?: string;
|
||||
query?: string;
|
||||
env_version?: string;
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
message?: Message;
|
||||
jump_wxa?: Jump_wxa;
|
||||
openlink?: String<256>;
|
||||
expireType?: Int<1>;
|
||||
expireInterval?: Int<2>;
|
||||
expiresAt?: Datetime;
|
||||
expired?: Boolean;
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '短信跳小程序',
|
||||
attr: {
|
||||
message: '消息',
|
||||
expired: '是否过期',
|
||||
jump_wxa: '目标小程序信息',
|
||||
openlink: "目标链接及参数",
|
||||
expireType: '失效类型',
|
||||
expireInterval: '到期失效的间隔',
|
||||
expiresAt: '过期时间',
|
||||
},
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_uuid',
|
||||
attributes: [
|
||||
{
|
||||
name: 'expired',
|
||||
},
|
||||
{
|
||||
name: 'expiresAt',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Application } from './Application';
|
||||
type content = {
|
||||
text?: string;
|
||||
mediaId?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
content: content;
|
||||
application: Application;
|
||||
type: 'text' | 'image' | 'video' | 'voice';
|
||||
event: 'subscribe' | 'unsubscribe' | 'keyword' | 'auto';
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '微信公众号自动回复',
|
||||
attr: {
|
||||
content: '回复内容',
|
||||
application: '关联应用',
|
||||
type: '类型',
|
||||
event: '自动回复事件',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
text: '文本类型',
|
||||
image: '图片类型',
|
||||
video: '视频类型',
|
||||
voice: '音频类型',
|
||||
},
|
||||
event: {
|
||||
subscribe: '订阅后回复',
|
||||
unsubscribe: '取消订阅后回复',
|
||||
keyword: '关键词回复',
|
||||
auto: '收到消息回复',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { String, Datetime, Boolean, Uint } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Application } from './Application';
|
||||
export interface Schema extends EntityShape {
|
||||
text: String<32>;
|
||||
application: Application;
|
||||
wechatId?: Uint<4>;
|
||||
sync?: Boolean;
|
||||
syncAt?: Datetime;
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const IActionDef = {
|
||||
stm: {
|
||||
success: [['wait', 'fail'], 'success'],
|
||||
fail: [['wait', 'success'], 'fail']
|
||||
},
|
||||
is: 'wait',
|
||||
};
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '公众号标签',
|
||||
attr: {
|
||||
text: 'tag名',
|
||||
application: '关联应用',
|
||||
wechatId: '微信端id',
|
||||
sync: '同步状态',
|
||||
syncAt: '同步时间',
|
||||
iState: '状态',
|
||||
},
|
||||
action: {
|
||||
sync: '同步',
|
||||
success: '成功',
|
||||
fail: '失败'
|
||||
},
|
||||
v: {
|
||||
iState: {
|
||||
wait: '待同步',
|
||||
success: '同步成功',
|
||||
fail: '同步失败',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
// indexes: [
|
||||
// {
|
||||
// name: 'index_text_application',
|
||||
// attributes: [
|
||||
// {
|
||||
// name: 'text',
|
||||
// },
|
||||
// {
|
||||
// name: 'application',
|
||||
// },
|
||||
// ],
|
||||
// config: {
|
||||
// unique: true,
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
};
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
import { String, Text, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Application } from './Application';
|
||||
export interface Schema extends EntityShape {
|
||||
application: Application;
|
||||
wechatId: String<64>;
|
||||
title: Text;
|
||||
primaryIndustry: Text;
|
||||
deputyIndustry: Text;
|
||||
content: Text;
|
||||
example: Text;
|
||||
param: Object;
|
||||
syncAt: Datetime;
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '公众号标签',
|
||||
attr: {
|
||||
application: '关联应用',
|
||||
wechatId: '微信端id',
|
||||
title: '标题',
|
||||
primaryIndustry: '所属一级行业',
|
||||
deputyIndustry: '所属二级行业',
|
||||
content: '内容',
|
||||
example: '示例',
|
||||
param: '选填参数',
|
||||
syncAt: '同步时间',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
import { String, Text, Datetime, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { QrCodeType } from '../types/Config';
|
||||
import { Schema as Application } from './Application';
|
||||
export type WechatQrCodeProps = {
|
||||
pathname: string;
|
||||
props?: Record<string, any>;
|
||||
state?: Record<string, any>;
|
||||
isTabBar?: boolean;
|
||||
};
|
||||
export interface Schema extends EntityShape {
|
||||
entity: String<32>;
|
||||
entityId: String<64>;
|
||||
type: QrCodeType;
|
||||
allowShare: Boolean;
|
||||
tag?: String<32>;
|
||||
tag2?: String<64>;
|
||||
expiresAt?: Datetime;
|
||||
expired?: Boolean;
|
||||
ticket?: Text;
|
||||
url?: String<256>;
|
||||
permanent?: Boolean;
|
||||
buffer?: Text;
|
||||
application: Application;
|
||||
props: WechatQrCodeProps;
|
||||
}
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '微信识别码',
|
||||
attr: {
|
||||
entity: '关联对象',
|
||||
entityId: '关联对象id',
|
||||
type: '类型',
|
||||
allowShare: '允许分享',
|
||||
tag: 'tag',
|
||||
tag2: 'tag2',
|
||||
ticket: 'ticket',
|
||||
url: 'url',
|
||||
permanent: '是否永久码',
|
||||
buffer: '小程序码数据(动态)',
|
||||
expired: '是否过期',
|
||||
expiresAt: '过期时间',
|
||||
application: '应用',
|
||||
props: '属性',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
webForWechatPublic: '网站引流到公众号',
|
||||
wechatMpDomainUrl: '小程序url码',
|
||||
wechatMpWxaCode: '小程序码',
|
||||
wechatPublic: '公众号关注码',
|
||||
wechatPublicForMp: '公众号回复小程序码',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_entity_entityId_tag',
|
||||
attributes: [
|
||||
{
|
||||
name: 'entity',
|
||||
},
|
||||
{
|
||||
name: 'entityId',
|
||||
},
|
||||
{
|
||||
name: 'tag',
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'index_expired_expiresAt',
|
||||
attributes: [
|
||||
{
|
||||
name: 'expired',
|
||||
},
|
||||
{
|
||||
name: 'expiresAt',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'index_url',
|
||||
attributes: [
|
||||
{
|
||||
name: 'url',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
import { String, Text, Datetime } from 'oak-domain/lib/types/DataType';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
import { Schema as Application } from './Application';
|
||||
type KeywordEnumValueList = Array<{
|
||||
keywordCode: string;
|
||||
enumValueList: Array<string>;
|
||||
}>;
|
||||
export interface Schema extends EntityShape {
|
||||
application: Application;
|
||||
wechatId: String<64>;
|
||||
title: Text;
|
||||
primaryIndustry?: Text;
|
||||
deputyIndustry?: Text;
|
||||
content?: Text;
|
||||
example?: Text;
|
||||
param?: Object;
|
||||
syncAt: Datetime;
|
||||
keywordEnumValueList?: KeywordEnumValueList;
|
||||
type?: '2' | '3';
|
||||
}
|
||||
export {};
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '公众号标签',
|
||||
attr: {
|
||||
type: '类型',
|
||||
application: '关联应用',
|
||||
wechatId: '微信端id',
|
||||
title: '标题',
|
||||
primaryIndustry: '所属一级行业',
|
||||
deputyIndustry: '所属二级行业',
|
||||
content: '内容',
|
||||
example: '示例',
|
||||
param: '选填参数',
|
||||
keywordEnumValueList: '枚举参数值范围',
|
||||
syncAt: '同步时间',
|
||||
},
|
||||
v: {
|
||||
type: {
|
||||
'2': '一次性订阅',
|
||||
'3': '长期订阅'
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
import { String, Datetime, Image, Boolean } from 'oak-domain/lib/types/DataType';
|
||||
import { Schema as User } from './User';
|
||||
import { Schema as Application } from './Application';
|
||||
import { Schema as Token } from './Token';
|
||||
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
||||
export interface Schema extends EntityShape {
|
||||
origin: 'mp' | 'public' | 'web' | 'native';
|
||||
openId?: String<32>;
|
||||
unionId?: String<32>;
|
||||
sessionKey?: String<64>;
|
||||
accessToken?: String<128>;
|
||||
refreshToken?: String<128>;
|
||||
scope?: String<64>;
|
||||
atExpiredAt?: Datetime;
|
||||
rtExpiredAt?: Datetime;
|
||||
subscribed?: Boolean;
|
||||
subscribedAt?: Datetime;
|
||||
unsubscribedAt?: Datetime;
|
||||
user?: User;
|
||||
application: Application;
|
||||
tokens: Array<Token>;
|
||||
nickname?: String<128>;
|
||||
avatar?: Image;
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
;
|
||||
const entityDesc = {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '微信用户',
|
||||
attr: {
|
||||
origin: '源',
|
||||
openId: 'openId',
|
||||
unionId: 'unionId',
|
||||
sessionKey: 'sessionKey',
|
||||
accessToken: 'accessToken',
|
||||
refreshToken: 'refreshToken',
|
||||
atExpiredAt: 'accessToken过期时间',
|
||||
rtExpiredAt: 'refreshToken过期时间',
|
||||
scope: 'accessToken域',
|
||||
subscribed: '是否订阅',
|
||||
subscribedAt: '订阅时间',
|
||||
unsubscribedAt: '取关时间',
|
||||
user: '用户',
|
||||
tokens: '相关令牌',
|
||||
application: '应用',
|
||||
nickname: '昵称',
|
||||
avatar: '头像',
|
||||
},
|
||||
v: {
|
||||
origin: {
|
||||
native: 'App',
|
||||
mp: '小程序',
|
||||
public: '公众号',
|
||||
web: '网站',
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { AbleAction, AbleState } from 'oak-domain/lib/actions/action';
|
||||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export type PayAction = 'charge' | 'withdraw' | 'cost' | 'refund' | 'loan' | 'repay' | string;
|
||||
export type ParticularAction = AbleAction | PayAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ActionDefDict = exports.actions = void 0;
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable", "charge", "withdraw", "cost", "refund", "loan", "repay"];
|
||||
const AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
||||
exports.ActionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
@ -1,173 +0,0 @@
|
|||
import { ForeignKey } from "oak-domain/lib/types/DataType";
|
||||
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "oak-domain/lib/types/Demand";
|
||||
import { OneOf } from "oak-domain/lib/types/Polyfill";
|
||||
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "oak-domain/lib/types/Entity";
|
||||
import { Action, ParticularAction } from "./Action";
|
||||
import { RelationAction } from "oak-domain/lib/actions/action";
|
||||
import { String, Price } from "oak-domain/lib/types/DataType";
|
||||
import { AbleState } from "oak-domain/lib/actions/action";
|
||||
import { EntityShape } from "oak-domain/lib/types/Entity";
|
||||
import * as User from "../User/Schema";
|
||||
import * as Relation from "../Relation/Schema";
|
||||
import * as UserRelation from "../UserRelation/Schema";
|
||||
export type OpSchema = EntityShape & {
|
||||
total: Price;
|
||||
avail: Price;
|
||||
entity?: ("user" | string) | null;
|
||||
entityId?: String<64> | null;
|
||||
ableState?: AbleState | null;
|
||||
};
|
||||
export type OpAttr = keyof OpSchema;
|
||||
export type Schema = EntityShape & {
|
||||
total: Price;
|
||||
avail: Price;
|
||||
entity?: ("user" | string) | null;
|
||||
entityId?: String<64> | null;
|
||||
ableState?: AbleState | null;
|
||||
user?: User.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;
|
||||
};
|
||||
type AttrFilter = {
|
||||
id: Q_StringValue;
|
||||
$$createAt$$: Q_DateValue;
|
||||
$$seq$$: Q_NumberValue;
|
||||
$$updateAt$$: Q_DateValue;
|
||||
total: Q_NumberValue;
|
||||
avail: Q_NumberValue;
|
||||
entity: Q_EnumValue<"user" | string>;
|
||||
entityId: Q_StringValue;
|
||||
ableState: Q_EnumValue<AbleState>;
|
||||
user: User.Filter;
|
||||
relation$entity: Relation.Filter & SubQueryPredicateMetadata;
|
||||
userRelation$entity: UserRelation.Filter & SubQueryPredicateMetadata;
|
||||
};
|
||||
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
||||
export type Projection = {
|
||||
"#id"?: NodeId;
|
||||
[k: string]: any;
|
||||
id?: number;
|
||||
$$createAt$$?: number;
|
||||
$$updateAt$$?: number;
|
||||
$$seq$$?: number;
|
||||
total?: number;
|
||||
avail?: number;
|
||||
entity?: number;
|
||||
entityId?: number;
|
||||
ableState?: number;
|
||||
user?: User.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 & {
|
||||
$entity: "userRelation";
|
||||
};
|
||||
} & Partial<ExprOp<OpAttr | string>>;
|
||||
type AccountIdProjection = OneOf<{
|
||||
id: number;
|
||||
}>;
|
||||
type UserIdProjection = OneOf<{
|
||||
entityId: number;
|
||||
}>;
|
||||
export type SortAttr = {
|
||||
id: number;
|
||||
} | {
|
||||
$$createAt$$: number;
|
||||
} | {
|
||||
$$seq$$: number;
|
||||
} | {
|
||||
$$updateAt$$: number;
|
||||
} | {
|
||||
total: number;
|
||||
} | {
|
||||
avail: number;
|
||||
} | {
|
||||
entity: number;
|
||||
} | {
|
||||
entityId: number;
|
||||
} | {
|
||||
ableState: number;
|
||||
} | {
|
||||
user: User.SortAttr;
|
||||
} | {
|
||||
[k: string]: any;
|
||||
} | OneOf<ExprOp<OpAttr | string>>;
|
||||
export type SortNode = {
|
||||
$attr: SortAttr;
|
||||
$direction?: "asc" | "desc";
|
||||
};
|
||||
export type Sorter = SortNode[];
|
||||
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
||||
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
||||
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
||||
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId">> & ({
|
||||
entity?: never;
|
||||
entityId?: never;
|
||||
user?: User.CreateSingleOperation;
|
||||
} | {
|
||||
entity?: "user";
|
||||
entityId?: ForeignKey<"User">;
|
||||
user?: User.UpdateOperation;
|
||||
} | {
|
||||
entity?: "user";
|
||||
entityId?: ForeignKey<"User">;
|
||||
user?: never;
|
||||
} | {
|
||||
entity?: string;
|
||||
entityId?: string;
|
||||
[K: string]: any;
|
||||
}) & {
|
||||
relation$entity?: OakOperation<Relation.UpdateOperation["action"], Omit<Relation.UpdateOperationData, "entity" | "entityId">, Omit<Relation.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<Relation.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Relation.CreateOperationData, "entity" | "entityId">> | OakOperation<Relation.UpdateOperation["action"], Omit<Relation.UpdateOperationData, "entity" | "entityId">, Omit<Relation.Filter, "entity" | "entityId">>>;
|
||||
userRelation$entity?: OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "entity" | "entityId">, Omit<UserRelation.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<UserRelation.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<UserRelation.CreateOperationData, "entity" | "entityId">> | OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "entity" | "entityId">, Omit<UserRelation.Filter, "entity" | "entityId">>>;
|
||||
};
|
||||
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
||||
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
||||
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
||||
export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "entityId">> & ({
|
||||
user?: User.CreateSingleOperation | User.UpdateOperation | User.RemoveOperation;
|
||||
entityId?: never;
|
||||
entity?: never;
|
||||
} | {
|
||||
entity?: "user" | string;
|
||||
entityId?: ForeignKey<"User">;
|
||||
user?: never;
|
||||
}) & {
|
||||
[k: string]: any;
|
||||
relation$entity?: OakOperation<Relation.UpdateOperation["action"], Omit<Relation.UpdateOperationData, "entity" | "entityId">, Omit<Relation.Filter, "entity" | "entityId">> | OakOperation<Relation.RemoveOperation["action"], Omit<Relation.RemoveOperationData, "entity" | "entityId">, Omit<Relation.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<Relation.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Relation.CreateOperationData, "entity" | "entityId">> | OakOperation<Relation.UpdateOperation["action"], Omit<Relation.UpdateOperationData, "entity" | "entityId">, Omit<Relation.Filter, "entity" | "entityId">> | OakOperation<Relation.RemoveOperation["action"], Omit<Relation.RemoveOperationData, "entity" | "entityId">, Omit<Relation.Filter, "entity" | "entityId">>>;
|
||||
userRelation$entity?: OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "entity" | "entityId">, Omit<UserRelation.Filter, "entity" | "entityId">> | OakOperation<UserRelation.RemoveOperation["action"], Omit<UserRelation.RemoveOperationData, "entity" | "entityId">, Omit<UserRelation.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<UserRelation.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<UserRelation.CreateOperationData, "entity" | "entityId">> | OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "entity" | "entityId">, Omit<UserRelation.Filter, "entity" | "entityId">> | OakOperation<UserRelation.RemoveOperation["action"], Omit<UserRelation.RemoveOperationData, "entity" | "entityId">, Omit<UserRelation.Filter, "entity" | "entityId">>>;
|
||||
};
|
||||
export type UpdateOperation = OakOperation<"update" | ParticularAction | RelationAction | string, UpdateOperationData, Filter, Sorter>;
|
||||
export type RemoveOperationData = {} & ({
|
||||
user?: User.UpdateOperation | User.RemoveOperation;
|
||||
} | {
|
||||
[k: string]: any;
|
||||
});
|
||||
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
||||
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
||||
export type UserIdSubQuery = Selection<UserIdProjection>;
|
||||
export type AccountIdSubQuery = Selection<AccountIdProjection>;
|
||||
export type EntityDef = {
|
||||
Schema: Schema;
|
||||
OpSchema: OpSchema;
|
||||
Action: OakMakeAction<Action | RelationAction> | string;
|
||||
Selection: Selection;
|
||||
Aggregation: Aggregation;
|
||||
Operation: Operation;
|
||||
Create: CreateOperation;
|
||||
Update: UpdateOperation;
|
||||
Remove: RemoveOperation;
|
||||
CreateSingle: CreateSingleOperation;
|
||||
CreateMulti: CreateMultipleOperation;
|
||||
ParticularAction: ParticularAction;
|
||||
};
|
||||
export {};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue