add 2025-0122-0340
This commit is contained in:
parent
cac7fea6e4
commit
ad5fb5038d
|
|
@ -1,34 +1,35 @@
|
|||
{
|
||||
"name": "@nice/common",
|
||||
"version": "1.0.0",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"generate": "pnpm prisma generate",
|
||||
"build": "pnpm generate && tsup",
|
||||
"dev": "pnpm generate && tsup --watch ",
|
||||
"studio": "pnpm prisma studio",
|
||||
"db:clear": "rm -rf prisma/migrations && pnpm prisma migrate dev --name init",
|
||||
"postinstall": "pnpm generate"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.17.0",
|
||||
"prisma": "5.17.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"zod": "^3.23.8",
|
||||
"yjs": "^13.6.20",
|
||||
"lib0": "^0.2.98"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.3.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^5.5.4",
|
||||
"concurrently": "^8.0.0",
|
||||
"tsup": "^8.3.5",
|
||||
"rimraf": "^6.0.1"
|
||||
}
|
||||
}
|
||||
"name": "@nice/common",
|
||||
"version": "1.0.0",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"generate": "pnpm prisma generate",
|
||||
"build": "pnpm generate && tsup",
|
||||
"dev": "pnpm generate && tsup --watch ",
|
||||
"dev-static": "pnpm generate && tsup --no-watch ",
|
||||
"studio": "pnpm prisma studio",
|
||||
"db:clear": "rm -rf prisma/migrations && pnpm prisma migrate dev --name init",
|
||||
"postinstall": "pnpm generate"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.17.0",
|
||||
"prisma": "5.17.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"zod": "^3.23.8",
|
||||
"yjs": "^13.6.20",
|
||||
"lib0": "^0.2.98"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.3.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^5.5.4",
|
||||
"concurrently": "^8.0.0",
|
||||
"tsup": "^8.3.5",
|
||||
"rimraf": "^6.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@ import type {
|
|||
Message,
|
||||
Post,
|
||||
RoleMap,
|
||||
Section,
|
||||
Lecture,
|
||||
Course,
|
||||
Enrollment,
|
||||
} from "@prisma/client";
|
||||
import { SocketMsgType, RolePerms } from "./enum";
|
||||
import { RowRequestSchema } from "./schema";
|
||||
|
|
@ -156,13 +152,6 @@ export type DepartmentDto = Department & {
|
|||
export type RoleMapDto = RoleMap & {
|
||||
staff: StaffDto;
|
||||
};
|
||||
export type SectionDto = Section & {
|
||||
lectures: Lecture[];
|
||||
};
|
||||
export type CourseDto = Course & {
|
||||
enrollments: Enrollment[];
|
||||
sections: SectionDto[];
|
||||
};
|
||||
export interface BaseSetting {
|
||||
appConfig?: {
|
||||
splashScreen?: string;
|
||||
|
|
|
|||
Loading…
Reference in New Issue