auditing
This commit is contained in:
37
shared/src/admin/types.ts
Normal file
37
shared/src/admin/types.ts
Normal 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[];
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./admin/types.js";
|
||||
export * from "./auth/permissions.js";
|
||||
export * from "./auth/types.js";
|
||||
export * from "./common/api.js";
|
||||
|
||||
Reference in New Issue
Block a user