| 1 | import z from 'zod' |
| 2 | import { changeRequestStatusEnum } |
| 3 | |
| 4 | export const requirementFormSchema = |
| 5 | title: z.string |
| 6 | body: z.string |
| 7 | }) |
| 8 | |
| 9 | export const createRequirementSchema = |
| 10 | projectId: z.string |
| 11 | orgSlug: z.string |
| 12 | title: z.string |
| 13 | body: z.string |
| 14 | }) |
| 15 | |
| 16 | export const updateRequirementSchema = |
| 17 | requirementId: z.string |
| 18 | }) |
| 19 | |
| 20 | export const sendForSignSchema = |
| 21 | requirementId: z.string |
| 22 | projectId: z.string |
| 23 | orgSlug: z.string |
| 24 | recipients: z.array |
| 25 | }) |
| 26 | |
| 27 | export const createThreadSchema = |
| 28 | requirementId: z.string |
| 29 | projectId: z.string |
| 30 | orgSlug: z.string |
| 31 | selectedText: z.string |
| 32 | threadBody: z.string |
| 33 | }) |
| 34 | |
| 35 | export const requestChangesSchema = |
| 36 | requirementId: z.string |
| 37 | projectId: z.string |
| 38 | orgSlug: z.string |
| 39 | description: z.string |
| 40 | referencedThreadIds: z.array |
| 41 | }) |
| 42 | |
| 43 | export const resolveChangeRequestSchema = |
| 44 | changeRequestId: z.string |
| 45 | requirementId: z.string |
| 46 | projectId: z.string |
| 47 | orgSlug: z.string |
| 48 | resolution: z.enum |
| 49 | }) |
| 50 | |
| 51 | export const signRequirementSchema = |
| 52 | requirementId: z.string |
| 53 | projectId: z.string |
| 54 | orgSlug: z.string |
| 55 | mediaId: z.string |
| 56 | }) |
| 57 | |
| 58 | export const addThreadReplySchema = |
| 59 | threadId: z.string |
| 60 | projectId: z.string |
| 61 | requirementId: z.string |
| 62 | orgSlug: z.string |
| 63 | replyBody: z.string |
| 64 | }) |