Skip to content

Variable: Document ​

ts
const Document: z.ZodObject<{
  caseId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
  contentType: z.ZodString;
  createdAt: z.ZodCoercedDate<unknown>;
  fieldKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  fileName: z.ZodString;
  id: z.ZodGUID;
  rejectionCode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
     empty: "empty";
     object_missing: "object_missing";
     pdf_active_content: "pdf_active_content";
     size_mismatch: "size_mismatch";
     too_large: "too_large";
     type_mismatch: "type_mismatch";
     undecodable_image: "undecodable_image";
     unsupported_type: "unsupported_type";
  }>>>;
  rejectionReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  scan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
     engine: z.ZodString;
     scannedAt: z.ZodCoercedDate<unknown>;
     signature: z.ZodOptional<z.ZodString>;
  }, z.core.$strip>>>;
  sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  sizeBytes: z.ZodNumber;
  status: z.ZodEnum<{
     clean: "clean";
     infected: "infected";
     pending: "pending";
     rejected: "rejected";
     scanning: "scanning";
     uploaded: "uploaded";
  }>;
  storageKey: z.ZodString;
  subjectId: z.ZodGUID;
  submissionId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
  tenantId: z.ZodGUID;
  thumbnailKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  updatedAt: z.ZodCoercedDate<unknown>;
  uploadedBy: z.ZodString;
}, z.core.$strip>;

Released under the Apache-2.0 License.