-
Notifications
You must be signed in to change notification settings - Fork 211
ux: add country document json info as static asset #1670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
021754c
add country document json info as static asset
transphorm 5bd7260
add staleness test
transphorm d12734c
Merge branch 'dev' into justin/add-countries-json-file-to-app
transphorm 400dccb
update test
transphorm 0684d4d
formatting
transphorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
256 changes: 256 additions & 0 deletions
256
packages/mobile-sdk-alpha/src/data/country-document-types.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,256 @@ | ||
| { | ||
| "ABW": ["p", "i"], | ||
| "AFG": ["p"], | ||
| "AGO": ["p", "i"], | ||
| "AIA": ["p", "i"], | ||
| "ALA": ["p", "i"], | ||
| "ALB": ["p", "i"], | ||
| "AND": ["p", "i"], | ||
| "ARE": ["p", "i"], | ||
| "ARG": ["p", "i"], | ||
| "ARM": ["p", "i"], | ||
| "ASM": ["p", "i"], | ||
| "ATA": ["p", "i"], | ||
| "ATF": ["p", "i"], | ||
| "ATG": ["p", "i"], | ||
| "AUS": ["p", "i"], | ||
| "AUT": ["p", "i"], | ||
| "AZE": ["p", "i"], | ||
| "BDI": ["p", "i"], | ||
| "BEL": ["p", "i"], | ||
| "BEN": ["p", "i"], | ||
| "BES": ["p", "i"], | ||
| "BFA": ["p", "i"], | ||
| "BGD": ["p", "i"], | ||
| "BGR": ["p", "i"], | ||
| "BHR": ["p", "i"], | ||
| "BHS": ["p", "i"], | ||
| "BIH": ["p", "i"], | ||
| "BLM": ["p", "i"], | ||
| "BLR": ["p", "i"], | ||
| "BLZ": ["p", "i"], | ||
| "BMU": ["p", "i"], | ||
| "BOL": ["p", "i"], | ||
| "BRA": ["p", "i"], | ||
| "BRB": ["p", "i"], | ||
| "BRN": ["p", "i"], | ||
| "BTN": ["p", "i"], | ||
| "BVT": ["p", "i"], | ||
| "BWA": ["p", "i"], | ||
| "CAF": ["p", "i"], | ||
| "CAN": ["p", "i"], | ||
| "CCK": ["p", "i"], | ||
| "CHE": ["p", "i"], | ||
| "CHL": ["p", "i"], | ||
| "CHN": ["p", "i"], | ||
| "CIV": ["p", "i"], | ||
| "CMR": ["p", "i"], | ||
| "COD": ["p", "i"], | ||
| "COG": ["p", "i"], | ||
| "COK": ["p", "i"], | ||
| "COL": ["p", "i"], | ||
| "COM": ["p", "i"], | ||
| "CPV": ["p", "i"], | ||
| "CRI": ["p", "i"], | ||
| "CUB": ["p", "i"], | ||
| "CUW": ["p", "i"], | ||
| "CXR": ["p", "i"], | ||
| "CYM": ["p", "i"], | ||
| "CYP": ["p", "i"], | ||
| "CZE": ["p", "i"], | ||
| "D<<": ["p", "i"], | ||
| "DJI": ["p", "i"], | ||
| "DMA": ["p", "i"], | ||
| "DNK": ["p", "i"], | ||
| "DOM": ["p", "i"], | ||
| "DZA": ["p", "i"], | ||
| "ECU": ["p", "i"], | ||
| "EGY": [], | ||
| "ERI": ["p", "i"], | ||
| "ESH": ["p", "i"], | ||
| "ESP": ["p", "i"], | ||
| "EST": ["p", "i"], | ||
| "ETH": ["p", "i"], | ||
| "EUE": ["p", "i"], | ||
| "FIN": ["p", "i"], | ||
transphorm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "FJI": ["p", "i"], | ||
| "FLK": ["p", "i"], | ||
| "FRA": ["p", "i"], | ||
| "FRO": ["p", "i"], | ||
| "FSM": ["p", "i"], | ||
| "GAB": ["p", "i"], | ||
| "GBR": ["p", "i"], | ||
| "GEO": ["p", "i"], | ||
| "GGY": ["p", "i"], | ||
| "GHA": ["p", "i"], | ||
| "GIB": ["p", "i"], | ||
| "GIN": ["p", "i"], | ||
| "GLP": ["p", "i"], | ||
| "GMB": ["p", "i"], | ||
| "GNB": ["p", "i"], | ||
| "GNQ": ["p", "i"], | ||
| "GRC": ["p", "i"], | ||
| "GRD": ["p", "i"], | ||
| "GRL": ["p", "i"], | ||
| "GTM": ["p", "i"], | ||
| "GUF": ["p", "i"], | ||
| "GUM": ["p", "i"], | ||
| "GUY": ["p", "i"], | ||
| "HKG": ["p", "i"], | ||
| "HMD": ["p", "i"], | ||
| "HND": ["p", "i"], | ||
| "HRV": ["p", "i"], | ||
| "HTI": ["p", "i"], | ||
| "HUN": ["p", "i"], | ||
| "IDN": ["p", "i"], | ||
| "IMN": ["p", "i"], | ||
| "IND": ["p", "a"], | ||
| "IOT": ["p", "i"], | ||
| "IRL": ["p", "i"], | ||
| "IRN": ["p", "i"], | ||
| "IRQ": ["p", "i"], | ||
| "ISL": ["p", "i"], | ||
| "ISR": ["p", "i"], | ||
| "ITA": ["p", "i"], | ||
| "JAM": ["p", "i"], | ||
| "JEY": ["p", "i"], | ||
| "JOR": ["p", "i"], | ||
| "JPN": ["p", "i"], | ||
| "KAZ": ["p", "i"], | ||
| "KEN": ["p", "i"], | ||
| "KGZ": ["p", "i"], | ||
| "KHM": ["p", "i"], | ||
| "KIR": ["p", "i"], | ||
| "KNA": ["p", "i"], | ||
| "KOR": ["p", "i"], | ||
| "KWT": ["p", "i"], | ||
| "LAO": ["p", "i"], | ||
| "LBN": ["p", "i"], | ||
| "LBR": ["p", "i"], | ||
| "LBY": ["p", "i"], | ||
| "LCA": ["p", "i"], | ||
| "LIE": ["p", "i"], | ||
| "LKA": ["p", "i"], | ||
| "LSO": ["p", "i"], | ||
| "LTU": ["p", "i"], | ||
| "LUX": ["p", "i"], | ||
| "LVA": ["p", "i"], | ||
| "MAC": ["p", "i"], | ||
| "MAF": ["p", "i"], | ||
| "MAR": ["p", "i"], | ||
| "MCO": ["p", "i"], | ||
| "MDA": ["p", "i"], | ||
| "MDG": ["p", "i"], | ||
| "MDV": ["p", "i"], | ||
| "MEX": ["p", "i"], | ||
| "MHL": ["p", "i"], | ||
| "MKD": ["p", "i"], | ||
| "MLI": ["p", "i"], | ||
| "MLT": ["p", "i"], | ||
| "MMR": ["p", "i"], | ||
| "MNE": ["p", "i"], | ||
| "MNG": ["p", "i"], | ||
| "MNP": ["p", "i"], | ||
| "MOZ": ["p", "i"], | ||
| "MRT": ["p", "i"], | ||
| "MSR": ["p", "i"], | ||
| "MTQ": ["p", "i"], | ||
| "MUS": ["p", "i"], | ||
| "MWI": ["p", "i"], | ||
| "MYS": ["p", "i"], | ||
| "MYT": ["p", "i"], | ||
| "NAM": ["p", "i"], | ||
| "NCL": ["p", "i"], | ||
| "NER": ["p", "i"], | ||
| "NFK": ["p", "i"], | ||
| "NGA": ["p", "i"], | ||
| "NIC": ["p", "i"], | ||
| "NIU": ["p", "i"], | ||
| "NLD": ["p", "i"], | ||
| "NOR": ["p", "i"], | ||
| "NPL": ["p", "i"], | ||
| "NRU": ["p", "i"], | ||
| "NZL": ["p", "i"], | ||
| "OMN": ["p", "i"], | ||
| "PAK": ["p", "i"], | ||
| "PAN": ["p", "i"], | ||
| "PCN": ["p", "i"], | ||
| "PER": ["p", "i"], | ||
| "PHL": ["p", "i"], | ||
| "PLW": ["p", "i"], | ||
| "PNG": ["p", "i"], | ||
| "POL": ["p", "i"], | ||
| "PRI": ["p", "i"], | ||
| "PRK": ["p", "i"], | ||
| "PRT": ["p", "i"], | ||
| "PRY": ["p", "i"], | ||
| "PSE": ["p", "i"], | ||
| "PYF": ["p", "i"], | ||
| "QAT": ["p", "i"], | ||
| "REU": ["p", "i"], | ||
| "ROU": ["p", "i"], | ||
| "RUS": ["p", "i"], | ||
| "RWA": ["p", "i"], | ||
| "SAU": ["p", "i"], | ||
| "SDN": ["p", "i"], | ||
| "SEN": ["p", "i"], | ||
| "SGP": ["p", "i"], | ||
| "SGS": ["p", "i"], | ||
| "SHN": ["p", "i"], | ||
| "SJM": ["p", "i"], | ||
| "SLB": ["p", "i"], | ||
| "SLE": ["p", "i"], | ||
| "SLV": ["p", "i"], | ||
| "SMR": ["p", "i"], | ||
| "SOM": ["p", "i"], | ||
| "SPM": ["p", "i"], | ||
| "SRB": ["p", "i"], | ||
| "SSD": ["p", "i"], | ||
| "STP": ["p", "i"], | ||
| "SUR": ["p", "i"], | ||
| "SVK": ["p", "i"], | ||
| "SVN": ["p", "i"], | ||
| "SWE": ["p", "i"], | ||
| "SWZ": ["p", "i"], | ||
| "SXM": ["p", "i"], | ||
| "SYC": ["p", "i"], | ||
| "SYR": ["p", "i"], | ||
| "TCA": ["p", "i"], | ||
| "TCD": ["p", "i"], | ||
| "TGO": ["p", "i"], | ||
| "THA": ["p", "i"], | ||
| "TJK": ["p", "i"], | ||
| "TKL": ["p", "i"], | ||
| "TKM": ["p", "i"], | ||
| "TLS": ["p", "i"], | ||
| "TON": ["p", "i"], | ||
| "TTO": ["p", "i"], | ||
| "TUN": ["p", "i"], | ||
| "TUR": ["p", "i"], | ||
| "TUV": ["p", "i"], | ||
| "TWN": ["p", "i"], | ||
| "TZA": ["p", "i"], | ||
| "UGA": ["p", "i"], | ||
| "UKR": ["p", "i"], | ||
| "UMI": ["p", "i"], | ||
| "UNO": ["p", "i"], | ||
| "URY": ["p", "i"], | ||
| "USA": ["p", "i"], | ||
| "UZB": ["p", "i"], | ||
| "VAT": ["p", "i"], | ||
| "VCT": ["p", "i"], | ||
| "VEN": ["p", "i"], | ||
| "VGB": ["p", "i"], | ||
| "VIR": ["p", "i"], | ||
| "VNM": ["p", "i"], | ||
| "VUT": ["p", "i"], | ||
| "WLF": ["p", "i"], | ||
| "WSM": ["p", "i"], | ||
| "XCE": ["p", "i"], | ||
| "XOM": ["p", "i"], | ||
| "XPO": ["p", "i"], | ||
| "YEM": ["p", "i"], | ||
| "ZAF": ["p", "i"], | ||
| "ZMB": ["p", "i"], | ||
| "ZWE": ["p", "i"] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new static dataset uses the MRZ code
D<<for Germany, butuseCountriesderivesuserCountryCodeviaalpha2ToAlpha3(e.g.,DE→DEU) and then checkscountryData[userCountryCode]to decide whether to show and filter the suggested country. Because there is noDEUentry in the dataset, German users won’t get a suggestion and Germany won’t be filtered out of the list. If the intent is to keep MRZ codes, the user country should be normalized toD<<; otherwise, add aDEUentry souserCountryCodecan match.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are just matching the existing json data 1:1 and adding as an asset