This commit is contained in:
2026-03-15 14:11:21 -05:00
parent 1fcb0c5480
commit 857d34397e
28 changed files with 848 additions and 45 deletions

37
shared/src/admin/types.ts Normal file
View File

@@ -0,0 +1,37 @@
export interface AuditEventDto {
id: string;
actorId: string | null;
actorName: string | null;
entityType: string;
entityId: string | null;
action: string;
summary: string;
metadataJson: string;
createdAt: string;
}
export interface AdminDiagnosticsDto {
serverTime: string;
nodeVersion: string;
databaseUrl: string;
dataDir: string;
uploadsDir: string;
clientOrigin: string;
companyProfilePresent: boolean;
userCount: number;
activeUserCount: number;
roleCount: number;
permissionCount: number;
customerCount: number;
vendorCount: number;
inventoryItemCount: number;
warehouseCount: number;
workOrderCount: number;
projectCount: number;
purchaseOrderCount: number;
salesDocumentCount: number;
shipmentCount: number;
attachmentCount: number;
auditEventCount: number;
recentAuditEvents: AuditEventDto[];
}

View File

@@ -1,3 +1,4 @@
export * from "./admin/types.js";
export * from "./auth/permissions.js";
export * from "./auth/types.js";
export * from "./common/api.js";