Age Assurance V2 (#9479)
* Age Assurance V2 * Tighten up test * Add todos for sdk migration * Align RQ versions * Use useEffect for side effect * Improve effects, memoize * Standarize on birthdate * Copy feedback * Copilot * Add support link * Reove double .. * Cleanup * Remove redirect dialog * Cleanup todos, add comments * Update splash in main template too * Mock some stuff * Exhaustive checks Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Exhaustive checks Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Small fix to bday handling * Add comment * onboarding style tweak sneaking this in sorry! * rm unreachable breaks * Put useIntentHandler back on web * Remove misleading success set * Align on birthdate --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
+19
-4
@@ -1,4 +1,5 @@
|
||||
import {type ID as PolicyUpdate202508} from '#/components/PolicyUpdateOverlay/updates/202508/config'
|
||||
import {type Geolocation} from '#/geolocation/types'
|
||||
|
||||
/**
|
||||
* Device data that's specific to the device and does not vary based account
|
||||
@@ -25,13 +26,21 @@ export type Device = {
|
||||
regionCode: string | undefined
|
||||
}[]
|
||||
}
|
||||
|
||||
/**
|
||||
* The raw response from the geolocation service, if available. We
|
||||
* cache this here and update it lazily on session start.
|
||||
*/
|
||||
geolocationServiceResponse?: Geolocation
|
||||
/**
|
||||
* The GPS-based geolocation, if the user has granted permission.
|
||||
*/
|
||||
deviceGeolocation?: {
|
||||
countryCode: string | undefined
|
||||
regionCode: string | undefined
|
||||
}
|
||||
deviceGeolocation?: Geolocation
|
||||
/**
|
||||
* The merged geolocation, combining `geolocationServiceResponse` and
|
||||
* `deviceGeolocation`, with preference to `deviceGeolocation`.
|
||||
*/
|
||||
mergedGeolocation?: Geolocation
|
||||
|
||||
trendingBetaEnabled: boolean
|
||||
devMode: boolean
|
||||
@@ -49,4 +58,10 @@ export type Device = {
|
||||
export type Account = {
|
||||
searchTermHistory?: string[]
|
||||
searchAccountHistory?: string[]
|
||||
|
||||
/**
|
||||
* The ISO date string of when this account's birthdate was last updated on
|
||||
* this device.
|
||||
*/
|
||||
birthdateLastUpdatedAt?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user