30 lines
589 B
TypeScript
30 lines
589 B
TypeScript
export interface Audits {
|
|
id: number;
|
|
username: string;
|
|
dateTime: string; // ISO string
|
|
|
|
// request identity
|
|
apiCall?: string; // Controller.ActionName
|
|
url?: string;
|
|
requestPayload?: string; // request body (redacted)
|
|
|
|
// DB fields — null if request didn't touch DB
|
|
action?: string;
|
|
tableName?: string;
|
|
entityId?: string;
|
|
oldValues?: string;
|
|
newValues?: string;
|
|
|
|
// result
|
|
isSuccess?: boolean;
|
|
errorMessage?: string;
|
|
}
|
|
|
|
export interface PageResult<T> {
|
|
items: T[];
|
|
totalCount: number;
|
|
pageNumber: number;
|
|
pageSize: number;
|
|
totalPages: number;
|
|
}
|