import { RenameId } from "../utils/mongoDB/types.js";
import { User } from "./user.types.js";
import { Document, Model, ObjectIdToString, Types } from "mongoose";

//#region src/types/audit.types.d.ts
type AuditData = {
  url: string;
  summary: Record<string, unknown>;
  errors: Record<string, {
    message: string;
    details?: unknown;
  }>;
  score: number;
  label: string;
  userId?: User['id'];
  projectId?: Types.ObjectId;
};
type Audit = AuditData & {
  id: Types.ObjectId;
  createdAt: number;
  updatedAt: number;
};
type AuditAPI = ObjectIdToString<Audit>;
type AuditSchema = RenameId<Audit>;
type AuditModelType = Model<Audit>;
type AuditDocument = Document<unknown, {}, Audit> & Audit;
//#endregion
export { Audit, AuditAPI, AuditData, AuditDocument, AuditModelType, AuditSchema };
//# sourceMappingURL=audit.types.d.ts.map