node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
import { errors } from '@strapi/utils';
import { Entity, Pagination, SanitizedAdminUser } from './shared';
export interface SanitizedAdminUserForAuditLogs extends SanitizedAdminUser {
displayName: string;
}
interface AuditLog extends Pick<Entity, 'id'> {
date: string;
action: string;
/**
* TODO: could this be better typed working on the server-side code could indicate this.
* However, we know it's JSON.
*/
payload: Record<string, unknown>;
user?: SanitizedAdminUserForAuditLogs;
}
declare namespace GetAll {
interface Request {
body: {};
query: {};
}
type Response = {
pagination: Pagination;
results: AuditLog[];
error?: never;
} | {
pagination?: never;
results?: never;
error?: errors.ApplicationError;
};
}
declare namespace Get {
interface Request {
body: {};
query: {};
}
interface Params {
id: Entity['id'];
}
type Response = AuditLog | {
error?: errors.ApplicationError;
};
}
export { AuditLog, GetAll, Get };