Skip to content

openpra-monorepo


Variable: PeerReviewSchema

const PeerReviewSchema: ZodObject<{ closedAt: ZodOptional<ZodString>; comments: ZodObject<{ comments: ZodArray<ZodObject<{ associatedField: ZodOptional<ZodString>; associatedSr: ZodOptional<ZodString>; authorId: ZodString; authorRole: ZodEnum<{ EXTERNAL_AUDITOR: "EXTERNAL_AUDITOR"; EXTERNAL_PEER_REVIEWER: "EXTERNAL_PEER_REVIEWER"; INTERNAL_APPROVER: "INTERNAL_APPROVER"; INTERNAL_REVIEWER: "INTERNAL_REVIEWER"; }>; createdAt: ZodString; resolution: ZodOptional<ZodString>; resolved: ZodBoolean; resolvedAt: ZodOptional<ZodString>; resolvedBy: ZodOptional<ZodString>; severity: ZodOptional<ZodEnum<{ MAJOR: "MAJOR"; MINOR: "MINOR"; OBSERVATION: "OBSERVATION"; }>>; text: ZodString; uuid: ZodString; }, $strip>>; openCount: ZodNumber; resolvedCount: ZodNumber; }, $strip>; finalDocumentation: ZodOptional<ZodObject<{ description: ZodOptional<ZodString>; findingsAndObservations: ZodArray<ZodObject<{ associatedRequirements: ZodOptional<ZodArray<ZodString>>; description: ZodString; id: ZodString; resolutionActions: ZodOptional<ZodArray<ZodString>>; resolutionStatus: ZodEnum<{ CLOSED: "CLOSED"; IN_PROGRESS: "IN_PROGRESS"; OPEN: "OPEN"; }>; significance: ZodEnum<typeof ImportanceLevel>; }, $strip>>; methodology: ZodString; name: ZodString; reportReference: ZodOptional<ZodString>; reviewDate: ZodString; reviewers: ZodArray<ZodString>; scope: ZodString; uuid: ZodString; }, $strip>>; plantStage: ZodEnum<{ OPERATIONAL: "OPERATIONAL"; PRE_OPERATIONAL: "PRE_OPERATIONAL"; }>; reviewedArtifactId: ZodString; reviewedArtifactKind: ZodEnum<{ CONFIGURATION_CONTROL: "CONFIGURATION_CONTROL"; NEWLY_DEVELOPED_METHOD: "NEWLY_DEVELOPED_METHOD"; TECHNICAL_ELEMENT: "TECHNICAL_ELEMENT"; }>; startedAt: ZodOptional<ZodString>; team: ZodArray<ZodObject<{ assignedTechnicalElementCodes: ZodArray<ZodString>; id: ZodString; name: ZodString; organization: ZodOptional<ZodString>; qualification: ZodOptional<ZodString>; qualifications: ZodArray<ZodString>; role: ZodEnum<{ EXTERNAL_AUDITOR: "EXTERNAL_AUDITOR"; EXTERNAL_PEER_REVIEWER: "EXTERNAL_PEER_REVIEWER"; INTERNAL_APPROVER: "INTERNAL_APPROVER"; INTERNAL_REVIEWER: "INTERNAL_REVIEWER"; }>; title: ZodOptional<ZodString>; }, $strip>>; uuid: ZodString; workflowState: ZodEnum<{ CLOSED: "CLOSED"; COMMENT_RESOLUTION: "COMMENT_RESOLUTION"; FINAL_REPORT: "FINAL_REPORT"; IN_REVIEW: "IN_REVIEW"; NOT_STARTED: "NOT_STARTED"; TEAM_ASSEMBLY: "TEAM_ASSEMBLY"; }>; }, $strip>

Defined in: workflows/peer-review.ts:22