File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ export const DokumentTypeEnum = z.enum(DOKUMENT_TYPE);
5959export type DokumentType = z . infer < typeof DokumentTypeEnum > ;
6060
6161export const dokumentpubliseringschema = z . object ( {
62- dokumentId : z . string ( ) . nullable ( ) ,
62+ dokumentId : z . string ( ) . nullable ( ) . optional ( ) ,
6363 referanseId : z . string ( ) ,
6464 opprettetAv : z . string ( ) ,
65- status : DokumentStatusEnum ,
65+ status : DokumentStatusEnum . optional ( ) ,
6666 dokumentType : DokumentTypeEnum ,
6767 opprettetTidspunkt : datoSchema ,
68- publisertTidspunkt : datoSchema . nullable ( ) ,
68+ publisertTidspunkt : datoSchema . nullable ( ) . optional ( ) ,
6969} ) ;
7070
7171export type DokumentPubliseringDto = z . infer < typeof dokumentpubliseringschema > ;
Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ export type PlanTema = z.infer<typeof PlanTemaSchema>;
7272export const PlanSchema = z . object ( {
7373 id : z . string ( ) ,
7474 sistEndret : datoSchema ,
75- sistPublisert : datoSchema . nullable ( ) ,
75+ sistPublisert : datoSchema . nullable ( ) . optional ( ) ,
7676 temaer : z . array ( PlanTemaSchema ) ,
7777 // TODO: Legg til status
78- publiseringStatus : DokumentStatusEnum . optional ( ) ,
79- harEndringerSidenSistPublisert : z . boolean ( ) ,
78+ publiseringStatus : DokumentStatusEnum . nullable ( ) . optional ( ) ,
79+ harEndringerSidenSistPublisert : z . boolean ( ) . optional ( ) ,
8080} ) ;
8181
8282export type Plan = z . infer < typeof PlanSchema > ;
You can’t perform that action at this time.
0 commit comments