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