export const recycleItem = {
  id: "10",
  documentName: "F8_RECYCLE_MAIN",
  documentType: "MAIN",
  originalFileName: "F8_RECYCLE_MAIN.docx",
  categoryId: "1",
  categoryName: "XXXX场景A",
  parentDocumentId: null,
  securityLevel: "INTERNAL",
  documentStatus: "PUBLISHED",
  deletedAt: "2026-07-26T11:58:52.318Z",
  updatedBy: "1",
  updatedByName: "系统管理员",
  deletedBy: {
    userId: "1",
    username: "admin",
    realName: "系统管理员",
    organizationName: "机关",
  },
  rowVersion: 12,
} as const;

export const restoredDocument = {
  id: "10",
  documentName: "F8_RECYCLE_MAIN",
  summary: "测试恢复主案",
  documentType: "MAIN",
  status: "PUBLISHED",
  securityLevel: "INTERNAL",
  visibilityType: "ALL_AUTHENTICATED",
  visibilitySummary: "全部已登录用户",
  categoryId: "1",
  categoryName: "XXXX场景A",
  categoryPath: "/XXXX场景A",
  parentDocumentId: null,
  rootDocumentId: null,
  attachmentType: null,
  fileExtension: "docx",
  tags: ["F8"],
  childCount: 0,
  attachmentCount: 0,
  viewCount: 0,
  downloadCount: 0,
  createdByName: "系统管理员",
  createdAt: "2026-07-26T10:00:00.000Z",
  updatedAt: "2026-07-26T12:00:00.000Z",
  rowVersion: 13,
  allowedActions: ["VIEW", "EDIT", "DELETE"],
  originalFileName: "F8_RECYCLE_MAIN.docx",
  mimeType:
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  fileSize: 36752,
  permissionSummary: {
    organizationCount: 0,
    userCount: 0,
    inheritedFromMainPlan: false,
  },
} as const;

export const restoreResult = {
  document: restoredDocument,
  restoredPermissionCount: 1,
  skippedPermissionCount: 1,
  restoredBindingCount: 2,
  skippedBindingCount: 1,
};

export const jsonResult = (data: unknown) => ({
  data,
  message: "success",
  requestId: "60980159-8fb2-4ca2-95fc-9bc5ce6b3ce1",
  httpStatus: 200,
  headers: new Headers(),
});

