@pagopa/io-backend-auth-sdk
Advanced tools
Comparing version 9.7.0 to 9.7.1
{ | ||
"name": "@pagopa/io-backend-auth-sdk", | ||
"version": "9.7.0", | ||
"version": "9.7.1", | ||
"description": "Generated SDK for @pagopa/io-backend. IO app and web backend", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -66,5 +66,4 @@ import * as t from "io-ts"; | ||
spid_email: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").IEmailStringTag, string, string, unknown>; | ||
}>, t.PartialC<{ | ||
date_of_birth: t.Type<Date, string, unknown>; | ||
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
spid_mobile_phone: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag, string, string, unknown>; | ||
}>, t.PartialC<{}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
family_name: t.StringC; | ||
@@ -120,4 +119,3 @@ fiscal_code: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]$">, string, string, unknown>; | ||
spid_email: string & import("@pagopa/ts-commons/lib/strings").IEmailStringTag; | ||
} & { | ||
date_of_birth?: Date | undefined; | ||
}), never>>; | ||
spid_mobile_phone: string & import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag; | ||
} & {}), never>>; |
@@ -11,5 +11,4 @@ /** | ||
spid_email: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").IEmailStringTag, string, string, unknown>; | ||
}>, t.PartialC<{ | ||
date_of_birth: t.Type<Date, string, unknown>; | ||
}>]>>; | ||
spid_mobile_phone: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag, string, string, unknown>; | ||
}>, t.PartialC<{}>]>>; | ||
export type SpidUserIdentity = t.TypeOf<typeof SpidUserIdentity>; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const t = require("io-ts"); | ||
const dates_1 = require("@pagopa/ts-commons/lib/dates"); | ||
const strings_1 = require("@pagopa/ts-commons/lib/strings"); | ||
/** | ||
@@ -22,9 +22,8 @@ * Describes the user's profile while it's authenticated with Spid. | ||
name: t.string, | ||
spid_email: EmailAddress_1.EmailAddress | ||
spid_email: EmailAddress_1.EmailAddress, | ||
spid_mobile_phone: strings_1.NonEmptyString | ||
}); | ||
// optional attributes | ||
const SpidUserIdentityO = t.partial({ | ||
date_of_birth: dates_1.DateFromString | ||
}); | ||
const SpidUserIdentityO = t.partial({}); | ||
exports.SpidUserIdentity = t.exact(t.intersection([SpidUserIdentityR, SpidUserIdentityO], "SpidUserIdentity")); | ||
//# sourceMappingURL=SpidUserIdentity.js.map |
@@ -10,3 +10,3 @@ /** | ||
import * as t from "io-ts"; | ||
import { DateFromString } from "@pagopa/ts-commons/lib/dates"; | ||
import { NonEmptyString } from "@pagopa/ts-commons/lib/strings"; | ||
@@ -25,9 +25,9 @@ /** | ||
spid_email: EmailAddress | ||
spid_email: EmailAddress, | ||
spid_mobile_phone: NonEmptyString | ||
}); | ||
// optional attributes | ||
const SpidUserIdentityO = t.partial({ | ||
date_of_birth: DateFromString | ||
}); | ||
const SpidUserIdentityO = t.partial({}); | ||
@@ -34,0 +34,0 @@ export const SpidUserIdentity = t.exact( |
@@ -11,5 +11,4 @@ /** | ||
spid_email: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").IEmailStringTag, string, string, unknown>; | ||
}>, t.PartialC<{ | ||
date_of_birth: t.Type<Date, string, unknown>; | ||
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
spid_mobile_phone: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").INonEmptyStringTag, string, string, unknown>; | ||
}>, t.PartialC<{}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{ | ||
family_name: t.StringC; | ||
@@ -16,0 +15,0 @@ fiscal_code: import("@pagopa/ts-commons/lib/types").Tagged<import("@pagopa/ts-commons/lib/strings").IPatternStringTag<"^[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]$">, string, string, unknown>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54512
1014