/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* tslint:disable */ import * as t from "io-ts"; import { UserUpdatePayload } from "./UserUpdatePayload"; import { EmailAddress } from "./EmailAddress"; // required attributes const UserUpdated2R = t.interface({ email: EmailAddress, id: t.string }); // optional attributes const UserUpdated2O = t.partial({}); export const UserUpdated2 = t.exact( t.intersection([UserUpdated2R, UserUpdated2O], "UserUpdated2") ); export type UserUpdated2 = t.TypeOf; export const UserUpdated = t.intersection( [UserUpdatePayload, UserUpdated2], "UserUpdated" ); export type UserUpdated = t.TypeOf;