/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* eslint-disable */ import { EmailAddress } from "./EmailAddress"; import { IsEmailValidated } from "./IsEmailValidated"; import { IsTestProfile } from "./IsTestProfile"; import * as t from "io-ts"; /** * Describes a new citizen's profile. * Used for profile creation. */ // required attributes const NewProfileR = t.interface({ is_email_validated: IsEmailValidated }); // optional attributes const NewProfileO = t.partial({ email: EmailAddress, is_test_profile: IsTestProfile }); export const NewProfile = t.exact( t.intersection([NewProfileR, NewProfileO], "NewProfile") ); export type NewProfile = t.TypeOf;