| 1 | import z from 'zod' |
| 2 | |
| 3 | export const proposalDeliverableSchema = |
| 4 | description: z.string |
| 5 | quantity: z.string |
| 6 | unitPrice: z.string |
| 7 | amount: z.string |
| 8 | }) |
| 9 | |
| 10 | export const createProposalSchema = |
| 11 | projectId: z.string |
| 12 | orgSlug: z.string |
| 13 | projectSlug: z.string |
| 14 | title: z.string |
| 15 | body: z.string |
| 16 | terms: z.string |
| 17 | validUntil: z.string |
| 18 | currency: z.string |
| 19 | deliverables: z.array |
| 20 | }) |
| 21 | |
| 22 | export const updateProposalSchema = |
| 23 | proposalId: z.string |
| 24 | projectId: z.string |
| 25 | orgSlug: z.string |
| 26 | projectSlug: z.string |
| 27 | title: z.string |
| 28 | body: z.string |
| 29 | terms: z.string |
| 30 | validUntil: z.string |
| 31 | currency: z.string |
| 32 | deliverables: z.array |
| 33 | }) |
| 34 | |
| 35 | export const sendProposalSchema = |
| 36 | proposalId: z.string |
| 37 | projectId: z.string |
| 38 | orgSlug: z.string |
| 39 | recipients: z |
| 40 | .array(z.string |
| 41 | .min(1, ' |
| 42 | }) |
| 43 | |
| 44 | export const signProposalSchema = |
| 45 | proposalId: z.string |
| 46 | projectId: z.string |
| 47 | orgSlug: z.string |
| 48 | mediaId: z.string |
| 49 | }) |
| 50 | |
| 51 | export const declineProposalSchema = |
| 52 | proposalId: z.string |
| 53 | projectId: z.string |
| 54 | orgSlug: z.string |
| 55 | reason: z.string |
| 56 | }) |
| 57 | |
| 58 | export const addThreadSchema = |
| 59 | proposalId: z.string |
| 60 | projectId: z.string |
| 61 | orgSlug: z.string |
| 62 | selectedText: z.string |
| 63 | threadBody: z.string |
| 64 | }) |
| 65 | |
| 66 | export const addReplySchema = |
| 67 | threadId: z.string |
| 68 | proposalId: z.string |
| 69 | projectId: z.string |
| 70 | orgSlug: z.string |
| 71 | replyBody: z.string |
| 72 | }) |
| 73 | |
| 74 | export const deleteProposalSchema = |
| 75 | proposalId: z.string |
| 76 | projectId: z.string |
| 77 | orgSlug: z.string |
| 78 | }) |
| 79 | |
| 80 | export const proposalFormSchema = |
| 81 | title: z.string |
| 82 | body: z.string |
| 83 | terms: z.string |
| 84 | validUntil: z.string |
| 85 | currency: z.string |
| 86 | deliverables: z.array |
| 87 | }) |