Skip to content

Commit

Permalink
better name
Browse files Browse the repository at this point in the history
  • Loading branch information
macrael committed Aug 9, 2023
1 parent ea2e1a9 commit b3d6567
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ const rateRevisionWithContractsSchema = ratesRevisionSchema.extend({
contractRevisions: z.array(contractRevisionSchema),
})

const rateZodSchema = z.object({
const rateSchema = z.object({
id: z.string().uuid(),
status: z.union([z.literal('SUBMITTED'), z.literal('DRAFT')]),
stateCode: z.string(),
stateNumber: z.number().min(1),
revisions: z.array(rateRevisionWithContractsSchema),
})

type RateType = z.infer<typeof rateZodSchema>
type RateType = z.infer<typeof rateSchema>
type RateRevisionType = z.infer<typeof ratesRevisionSchema>
type RateRevisionWithContractsType = z.infer<
typeof rateRevisionWithContractsSchema
Expand Down

0 comments on commit b3d6567

Please sign in to comment.