@xj-hospital/data-dict-api
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@xj-hospital/data-dict-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "西京系统设置api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -7,3 +7,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Api = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -10,0 +9,0 @@ exports.Api = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DbApi = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -9,3 +8,23 @@ var DbSchema_1 = require("./DbSchema"); | ||
Patient: api_1.DB_CRUD(DbSchema_1.schemas.Patient, {}, [], ''), | ||
Drug: api_1.DB_CRUD(DbSchema_1.schemas.Drug, {}, [], '') | ||
Drug: api_1.DB_CRUD(DbSchema_1.schemas.Drug, {}, [], ''), | ||
extUseLogs: api_1.DB_CRUD(DbSchema_1.schemas.useLogs, {}, [], ""), | ||
dataDict: api_1.DB_CRUD(DbSchema_1.schemas.dataDict, {}, [], ""), | ||
systemDataDict: api_1.DB_CRUD(DbSchema_1.schemas.systemDataDict, {}, [], ""), | ||
meetingType: api_1.DB_CRUD(DbSchema_1.schemas.meetingType, {}, [], ""), | ||
devicesType: api_1.DB_CRUD(DbSchema_1.schemas.devicesType, {}, [], ""), | ||
sysLogs: api_1.DB_R(DbSchema_1.schemas.sysLogs, {}, [], ""), | ||
serviceType: api_1.DB_CRUD(DbSchema_1.schemas.serviceType, {}, [], ""), | ||
servicePro: api_1.DB_CRUD(DbSchema_1.schemas.servicePro, {}, [], ""), | ||
loginPic: api_1.DB_CRUD(DbSchema_1.schemas.loginPic, {}, [], ""), | ||
homePic: api_1.DB_CRUD(DbSchema_1.schemas.homePic, {}, [], ""), | ||
deviceStatus: api_1.DB_CRUD(DbSchema_1.schemas.devicesStatus, {}, [], ""), | ||
devicesPartMent: api_1.DB_CRUD(DbSchema_1.schemas.devicesPartMent, {}, [], ""), | ||
mediaTemplate: api_1.DB_CRUD(DbSchema_1.schemas.mediaTemplate, {}, [], ""), | ||
mindMeeting: api_1.DB_CRUD(DbSchema_1.schemas.mindMeeting, {}, [], ""), | ||
extVenueKind: api_1.DB_CRUD(DbSchema_1.schemas.venueKind, {}, [], ""), | ||
extRepairGroup: api_1.DB_CRUD(DbSchema_1.schemas.repairGroup, {}, [], ""), | ||
extMainShowModal: api_1.DB_CRUD(DbSchema_1.schemas.mainShowModal, {}, [], ""), | ||
venueGroup: api_1.DB_CRUD(DbSchema_1.schemas.venueGroup, {}, [], ""), | ||
extSettingTextNotice: api_1.DB_CRUD(DbSchema_1.schemas.settingText, {}, [], ""), | ||
extCheckPeople: api_1.DB_CRUD(DbSchema_1.schemas.checkPeople, {}, [], ""), | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemas = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -28,2 +27,41 @@ exports.schemas = api_1.createDbSchemas({ | ||
}), | ||
// sysLogs: new DbSchema<ILog>( | ||
// // 数据库创建参数: | ||
// {}, | ||
// // 数据库索引: | ||
// {}, | ||
// ), | ||
//来自科技馆 | ||
// 设备使用日志的数据结构 | ||
useLogs: new api_1.DbSchema( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
//业务数据字典 | ||
dataDict: new api_1.DbSchema({}, {}), | ||
//系统信息数据字典 | ||
systemDataDict: new api_1.DbSchema({}, {}), | ||
//会议类型 | ||
meetingType: new api_1.DbSchema({}, {}), | ||
//设备类型 | ||
devicesType: new api_1.DbSchema({}, {}), | ||
//设备状态 | ||
devicesStatus: new api_1.DbSchema({}, {}), | ||
//设备主管部门 | ||
devicesPartMent: new api_1.DbSchema({}, {}), | ||
//服务类型 | ||
serviceType: new api_1.DbSchema({}, {}), | ||
//服务项目 | ||
servicePro: new api_1.DbSchema({}, {}), | ||
//登录首页图片 | ||
loginPic: new api_1.DbSchema({}, {}), | ||
//首页图片 | ||
homePic: new api_1.DbSchema({}, {}), | ||
// 系统日志的数据结构 | ||
sysLogs: new api_1.DbSchema( | ||
@@ -34,2 +72,53 @@ // 数据库创建参数: | ||
{}), | ||
mediaTemplate: new api_1.DbSchema({}, { | ||
extId: { | ||
fields: { extId: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
mindMeeting: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
venueKind: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
repairGroup: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
// 个人显示模式 | ||
mainShowModal: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
venueGroup: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
// 自定义短信 | ||
settingText: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
// 自定义直播审核人员 | ||
checkPeople: new api_1.DbSchema({}, { | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
}); |
@@ -14,3 +14,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemaHello = void 0; | ||
var package_json_1 = require("../package.json"); | ||
@@ -34,2 +33,2 @@ var Api_1 = require("./api/Api"); | ||
var DbSchema_1 = require("./db/DbSchema"); | ||
Object.defineProperty(exports, "schemaHello", { enumerable: true, get: function () { return DbSchema_1.schemas; } }); | ||
exports.schemaHello = DbSchema_1.schemas; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sessions = void 0; | ||
exports.sessions = {}; | ||
exports.sessions = { | ||
res: { | ||
client: {}, | ||
server: {} | ||
} | ||
}; |
{ | ||
"name": "@xj-hospital/data-dict-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "西京系统设置api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -28,2 +28,6 @@ /** | ||
actErr: string | null; | ||
/** | ||
* 日志类型 system/service | ||
*/ | ||
logType: string; | ||
}, | ||
@@ -51,3 +55,3 @@ { | ||
>(["user"], ""), | ||
}; |
@@ -7,3 +7,23 @@ import { DB_CRUD, DB_R, DB_RU } from '@vmm/api'; | ||
Patient: DB_CRUD(schemas.Patient, {}, [], ''), | ||
Drug: DB_CRUD(schemas.Drug, {}, [], '') | ||
Drug: DB_CRUD(schemas.Drug, {}, [], ''), | ||
extUseLogs: DB_CRUD(schemas.useLogs, {}, [], ""), | ||
dataDict: DB_CRUD(schemas.dataDict, {}, [], ""), | ||
systemDataDict: DB_CRUD(schemas.systemDataDict, {}, [], ""), | ||
meetingType: DB_CRUD(schemas.meetingType, {}, [], ""), | ||
devicesType: DB_CRUD(schemas.devicesType, {}, [], ""), | ||
sysLogs: DB_R(schemas.sysLogs, {}, [], ""), | ||
serviceType: DB_CRUD(schemas.serviceType, {}, [], ""), | ||
servicePro: DB_CRUD(schemas.servicePro, {}, [], ""), | ||
loginPic: DB_CRUD(schemas.loginPic, {}, [], ""), | ||
homePic: DB_CRUD(schemas.homePic, {}, [], ""), | ||
deviceStatus: DB_CRUD(schemas.devicesStatus, {}, [], ""), | ||
devicesPartMent: DB_CRUD(schemas.devicesPartMent, {}, [], ""), | ||
mediaTemplate: DB_CRUD(schemas.mediaTemplate, {}, [], ""), | ||
mindMeeting: DB_CRUD(schemas.mindMeeting, {}, [], ""), | ||
extVenueKind: DB_CRUD(schemas.venueKind, {}, [], ""), | ||
extRepairGroup: DB_CRUD(schemas.repairGroup, {}, [], ""), | ||
extMainShowModal: DB_CRUD(schemas.mainShowModal, {}, [], ""), | ||
venueGroup: DB_CRUD(schemas.venueGroup, {}, [], ""), | ||
extSettingTextNotice: DB_CRUD(schemas.settingText, {}, [], ""), | ||
extCheckPeople: DB_CRUD(schemas.checkPeople, {}, [], ""), | ||
}; |
@@ -74,2 +74,27 @@ import { DbSchema, createDbSchemas } from '@vmm/api'; | ||
export interface systemDataDict { | ||
id: string; | ||
name: string | null; | ||
// systemPrompt: string | null; //系统显示名称 | ||
logsDays: number | null; //日志天数 | ||
prompt: string | null; //提示信息 | ||
language: string | null; //语言选择 | ||
hompicPath: string | null; //首页图片 | ||
loginPicPath: string | null; //登陆页图片 | ||
messageLimitDays: number | null; //通知删除限制天数 | ||
domain: string | null; // 系统域名 | ||
publishDomain: string | null; // 发布系统域名 | ||
latestBookingTime: number | null; // 最晚提前预约时间 | ||
defaultMediaImage: string; // 默认媒体宣传图片 | ||
defaultMediaVideo: string; // 默认媒体宣传视频 | ||
workTimeRange: { | ||
start: string; | ||
end: string; | ||
}; // 活动可预约区间 | ||
tailNumber: string; // 周一限行尾号 | ||
holiday: string[]; // 节假日不限行 | ||
nMinBeforeTheMeeting: number; // 活动前执行场景时间 | ||
nMinAfterTheMeeting: number; // 活动后执行场景时间 | ||
} | ||
export interface ILog { | ||
@@ -105,2 +130,88 @@ /** | ||
//来自科技馆 | ||
// 场地分类 | ||
export interface IVenueKind { | ||
id: string; | ||
name: string; | ||
} | ||
export interface IPeople { | ||
userName: string; | ||
userPhone: string; | ||
} | ||
// 维修组人员 | ||
// export interface IRepairGroup { | ||
// id: string; | ||
// name: string; | ||
// repairUser: IPeople[]; | ||
// // repairUser: string[]; | ||
// } | ||
export interface IRepairGroup { | ||
id: string; | ||
loginName: string; | ||
} | ||
// 设备状态 | ||
export interface IDevicesStatus { | ||
id: string; | ||
name: string; | ||
} | ||
// 设备主管部门 | ||
export interface IDevicesPartMent { | ||
id: string; | ||
name: string; | ||
} | ||
// 设备类型 | ||
export interface IDevicesType { | ||
id: string; | ||
name: string; | ||
} | ||
// 媒体模板 | ||
export interface IMediaTemplate { | ||
id: string; | ||
name: string; | ||
imageUrl: string; | ||
extId: string; | ||
} | ||
export interface IMindMeeting { | ||
id: string; | ||
minutes: number[]; | ||
} | ||
export interface IDomain { | ||
id: string; | ||
domainName: string; | ||
} | ||
export interface IMainShowModal { | ||
id: string; | ||
user: string; | ||
showModal: "精简模式" | "专业模式"; | ||
} | ||
export interface IVenueGroup { | ||
id: string; | ||
name: string; | ||
venues: any[]; | ||
control: any[]; | ||
check: any[]; | ||
} | ||
// 自定义短信发送 | ||
export interface ISettingText { | ||
id: string; // 编号 | ||
send: "会议待审批提醒" | "审批通过提醒" | "参会通知" | "服务通知"; // 发送情景 | ||
noticeSwitch: boolean; // 情景下是否打开发送 | ||
content: string; | ||
} | ||
export interface ICheckPeople { | ||
id: string; // 编号 | ||
checkType: "直播审核" | "会议审核"; // 审核人员类型 | ||
peopleArr: any[]; | ||
} | ||
export const schemas = createDbSchemas({ | ||
@@ -129,8 +240,220 @@ // 课题 | ||
}), | ||
sysLogs: new DbSchema<ILog>( | ||
// sysLogs: new DbSchema<ILog>( | ||
// // 数据库创建参数: | ||
// {}, | ||
// // 数据库索引: | ||
// {}, | ||
// ), | ||
//来自科技馆 | ||
// 设备使用日志的数据结构 | ||
useLogs: new DbSchema<{ | ||
id: string; // 日志编号 | ||
createdTime: Date; // 日志日期 | ||
detailTime: string; // 时间起始(详细时间 时分秒) | ||
useName: string; // 使用人 | ||
useDept: string; // 使用部门 | ||
deviceId: string; // 设备编号 | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
//业务数据字典 | ||
dataDict: new DbSchema<{ | ||
id: string; | ||
name: string; | ||
mentingLongDay: number; //最长预约天数 | ||
activeType: string; //活动类型 | ||
deviceType: string; //设备类型 | ||
meetingType: string; //会议类型 | ||
meetingColor: string; //会议颜色 | ||
}>({}, {}), | ||
//系统信息数据字典 | ||
systemDataDict: new DbSchema<{ | ||
id: string; | ||
name: string | null; | ||
// systemPrompt: string | null; //系统显示名称 | ||
logsDays: number | null; //日志天数 | ||
prompt: string | null; //提示信息 | ||
language: string | null; //语言选择 | ||
hompicPath: string | null; //首页图片 | ||
loginPicPath: string | null; //登陆页图片 | ||
messageLimitDays: number | null; //通知删除限制天数 | ||
domain: string | null; // 系统域名 | ||
publishDomain: string | null; // 发布系统域名 | ||
latestBookingTime: number | null; // 最晚提前预约时间 | ||
defaultMediaImage: string; // 默认媒体宣传图片 | ||
defaultMediaVideo: string; // 默认媒体宣传视频 | ||
workTimeRange: { | ||
start: string; | ||
end: string; | ||
}; // 活动可预约区间 | ||
tailNumber: string; // 周一限行尾号 | ||
holiday: string[]; // 节假日不限行 | ||
nMinBeforeTheMeeting: number; // 活动前执行场景时间 | ||
nMinAfterTheMeeting: number; // 活动后执行场景时间 | ||
}>({}, {}), | ||
//会议类型 | ||
meetingType: new DbSchema<{ | ||
id: string; | ||
name: string; | ||
color: string; | ||
}>({}, {}), | ||
//设备类型 | ||
devicesType: new DbSchema<IDevicesType>({}, {}), | ||
//设备状态 | ||
devicesStatus: new DbSchema<IDevicesStatus>({}, {}), | ||
//设备主管部门 | ||
devicesPartMent: new DbSchema<IDevicesPartMent>({}, {}), | ||
//服务类型 | ||
serviceType: new DbSchema<{ | ||
id: string; | ||
name: string; | ||
relatedDepartmentId: string; | ||
relatedDepartment: string; | ||
}>({}, {}), | ||
//服务项目 | ||
servicePro: new DbSchema<{ | ||
id: string; | ||
name: string; | ||
serTypeId: string; | ||
serviceType: string; | ||
}>({}, {}), | ||
//登录首页图片 | ||
loginPic: new DbSchema<{ | ||
id: string; | ||
name: string; | ||
logPath: string; | ||
loginName: string; | ||
}>({}, {}), | ||
//首页图片 | ||
homePic: new DbSchema<{ | ||
id: string; | ||
name: string; | ||
homePath: string; | ||
picName: string; | ||
}>({}, {}), | ||
// 系统日志的数据结构 | ||
sysLogs: new DbSchema<{ | ||
/** | ||
* 用户日志事件,事件简述 如 场地管理-增加场地 (一级菜单-二级菜单) | ||
*/ | ||
action: string; | ||
/** | ||
* 用户操作数据库表名 如 会议表 请使用中文描述 | ||
*/ | ||
actionDbName?: string; | ||
/** | ||
* 用户操作数据库的内容 如 { 第五会议室 } 等,使用中文描述 | ||
*/ | ||
actionContent?: string; | ||
/** | ||
* 操作结果,可以为错误代码,操作失败描述等,成功则为null | ||
*/ | ||
actErr: string | null; | ||
/** | ||
* 操作人员信息 | ||
*/ | ||
actorName: string; | ||
actorId: string; | ||
/** | ||
* 操作IP | ||
*/ | ||
ip: string; | ||
createdTime: Date; | ||
/** | ||
* 日志类型 system/service | ||
*/ | ||
logType?: string; | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{} | ||
), | ||
mediaTemplate: new DbSchema<IMediaTemplate>( | ||
{}, | ||
{ | ||
extId: { | ||
fields: { extId: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
mindMeeting: new DbSchema<IMindMeeting>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
venueKind: new DbSchema<IVenueKind>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
repairGroup: new DbSchema<IRepairGroup>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
// 个人显示模式 | ||
mainShowModal: new DbSchema<IMainShowModal>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
venueGroup: new DbSchema<IVenueGroup>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
// 自定义短信 | ||
settingText: new DbSchema<ISettingText>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
// 自定义直播审核人员 | ||
checkPeople: new DbSchema<ICheckPeople>( | ||
{}, | ||
{ | ||
id: { | ||
fields: { id: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
} | ||
), | ||
}); |
export const sessions = { | ||
res: { | ||
client: {}, | ||
server: {} | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
31446
871
0