UNPKG

@huncuska/cio-country-codes

Version:

List of countries with ISO codes, numerical codes, and CIO codes

48 lines (47 loc) 11.2 kB
/** * Country interface used to gather all the information about a country */ export interface Country { ENName: CountryName; ISO2: ISO2Code; ISO3166: ISO3166; CIO: CIOCountryCode; Code: number; } /** * Returns useful infos about a country * Is useful when navigating between codes and ISO norms * @param input The codes we have from a country * @param from The info type we have from a country */ export declare const getCountryInfos: (input: string | number, from: "ENName" | "ISO2" | "ISO3166" | "CIO" | "Code") => Country; /** * @param data * @returns true if sent data is correct type */ export declare function isValidCountryName(data: any): data is CountryName; /** * @param data * @returns true if sent data is correct type */ export declare function isValidISO2(data: any): data is ISO2Code; /** * @param data * @returns true if sent data is correct type */ export declare function isValidISO3166(data: any): data is ISO3166; /** * @param data * @returns true if sent data is correct type */ export declare function isValidCIOCountryCode(data: any): data is CIOCountryCode; /** * @param data * @returns true if sent data is correct type */ export declare function isValidCode(data: any): data is number; export declare const CountryList: Country[]; export declare type CIOCountryCode = "AFG" | "ALB" | "ALG" | "AND" | "ANG" | "ANT" | "ARG" | "ARM" | "ARU" | "ASA" | "AUS" | "AUT" | "AZE" | "BAH" | "BAN" | "BAR" | "BDI" | "BEL" | "BEN" | "BER" | "BHU" | "BIH" | "BIZ" | "BLR" | "BOL" | "BOT" | "BRA" | "BRN" | "BRU" | "BUL" | "BUR" | "CAF" | "CAM" | "CAN" | "CAY" | "CGO" | "CHA" | "CHI" | "CHN" | "CIV" | "CMR" | "COD" | "COK" | "COL" | "COM" | "COR" | "CPV" | "CRC" | "CRO" | "CUB" | "CYP" | "CZE" | "DEN" | "DJI" | "DMA" | "DOM" | "ECU" | "EGY" | "ERI" | "ESA" | "ESP" | "EST" | "ETH" | "FIJ" | "FIN" | "FRA" | "FSM" | "GAB" | "GAM" | "GBR" | "GBS" | "GEO" | "GEQ" | "GER" | "GHA" | "GRE" | "GRN" | "GUA" | "GUI" | "GUM" | "GUY" | "HAI" | "HKG" | "HON" | "HUN" | "INA" | "IND" | "IRI" | "IRL" | "IRQ" | "ISL" | "ISR" | "ISV" | "ITA" | "IVB" | "JAM" | "JOR" | "JPN" | "KAZ" | "KEN" | "KGZ" | "KIR" | "KOS" | "KOR" | "KSA" | "KUW" | "LAO" | "LAT" | "LBA" | "LBN" | "LBR" | "LCA" | "LES" | "LIE" | "LTU" | "LUX" | "MAD" | "MAR" | "MAS" | "MAW" | "MDA" | "MDV" | "MEX" | "MGL" | "MHL" | "MKD" | "MLI" | "MLT" | "MNE" | "MON" | "MOZ" | "MRI" | "MTN" | "MYA" | "NAM" | "NCA" | "NED" | "NEP" | "NGR" | "NIG" | "NOR" | "NRU" | "NZL" | "OAR" | "OMA" | "PAK" | "PAN" | "PAR" | "PER" | "PHI" | "PLE" | "PLW" | "PNG" | "POL" | "POR" | "PRK" | "PUR" | "QAT" | "ROC" | "ROT" | "ROU" | "RSA" | "RUS" | "RWA" | "SAM" | "SEN" | "SEY" | "SGP" | "SKN" | "SLE" | "SLO" | "SMR" | "SOL" | "SOM" | "SRB" | "SRI" | "SSD" | "STP" | "SUD" | "SUI" | "SUR" | "SVK" | "SWE" | "SWZ" | "SYR" | "TAN" | "TGA" | "THA" | "TJK" | "TKM" | "TLS" | "TOG" | "TPE" | "TTO" | "TUN" | "TUR" | "TUV" | "UAE" | "UGA" | "UKR" | "URU" | "USA" | "UZB" | "VAN" | "VEN" | "VIE" | "VIN" | "YEM" | "ZAM" | "ZIM" | "NaN"; export declare type ISO2Code = "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "CI" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "MK" | "RO" | "RU" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | "AX" | "NaN"; export declare type ISO3166 = "AFG" | "ALB" | "DZA" | "ASM" | "AND" | "AGO" | "AIA" | "ATA" | "ATG" | "ARG" | "ARM" | "ABW" | "AUS" | "AUT" | "AZE" | "BHS" | "BHR" | "BGD" | "BRB" | "BLR" | "BEL" | "BLZ" | "BEN" | "BMU" | "BTN" | "BOL" | "BES" | "BIH" | "BWA" | "BVT" | "BRA" | "IOT" | "BRN" | "BGR" | "BFA" | "BDI" | "CPV" | "KHM" | "CMR" | "CAN" | "CYM" | "CAF" | "TCD" | "CHL" | "CHN" | "CXR" | "CCK" | "COL" | "COM" | "COD" | "COG" | "COK" | "CRI" | "HRV" | "CUB" | "CUW" | "CYP" | "CZE" | "CIV" | "DNK" | "DJI" | "DMA" | "DOM" | "ECU" | "EGY" | "SLV" | "GNQ" | "ERI" | "EST" | "SWZ" | "ETH" | "FLK" | "FRO" | "FJI" | "FIN" | "FRA" | "GUF" | "PYF" | "ATF" | "GAB" | "GMB" | "GEO" | "DEU" | "GHA" | "GIB" | "GRC" | "GRL" | "GRD" | "GLP" | "GUM" | "GTM" | "GGY" | "GIN" | "GNB" | "GUY" | "HTI" | "HMD" | "VAT" | "HND" | "HKG" | "HUN" | "ISL" | "IND" | "IDN" | "IRN" | "IRQ" | "IRL" | "IMN" | "ISR" | "ITA" | "JAM" | "JPN" | "JEY" | "JOR" | "KAZ" | "KEN" | "KIR" | "PRK" | "KOR" | "KWT" | "KGZ" | "LAO" | "LVA" | "LBN" | "LSO" | "LBR" | "LBY" | "LIE" | "LTU" | "LUX" | "MAC" | "MDG" | "MWI" | "MYS" | "MDV" | "MLI" | "MLT" | "MHL" | "MTQ" | "MRT" | "MUS" | "MYT" | "MEX" | "FSM" | "MDA" | "MCO" | "MNG" | "MNE" | "MSR" | "MAR" | "MOZ" | "MMR" | "NAM" | "NRU" | "NPL" | "NLD" | "NCL" | "NZL" | "NIC" | "NER" | "NGA" | "NIU" | "NFK" | "MNP" | "NOR" | "OMN" | "PAK" | "PLW" | "PSE" | "PAN" | "PNG" | "PRY" | "PER" | "PHL" | "PCN" | "POL" | "PRT" | "PRI" | "QAT" | "MKD" | "ROU" | "RUS" | "RWA" | "REU" | "BLM" | "SHN" | "KNA" | "LCA" | "MAF" | "SPM" | "VCT" | "WSM" | "SMR" | "STP" | "SAU" | "SEN" | "SRB" | "SYC" | "SLE" | "SGP" | "SXM" | "SVK" | "SVN" | "SLB" | "SOM" | "ZAF" | "SGS" | "SSD" | "ESP" | "LKA" | "SDN" | "SUR" | "SJM" | "SWE" | "CHE" | "SYR" | "TWN" | "TJK" | "TZA" | "THA" | "TLS" | "TGO" | "TKL" | "TON" | "TTO" | "TUN" | "TUR" | "TKM" | "TCA" | "TUV" | "UGA" | "UKR" | "ARE" | "GBR" | "UMI" | "USA" | "URY" | "UZB" | "VUT" | "VEN" | "VNM" | "VGB" | "VIR" | "WLF" | "ESH" | "YEM" | "ZMB" | "ZWE" | "ALA" | "NaN"; export declare type CountryName = "Afghanistan" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua and Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas (the)" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia (Plurinational State of)" | "Bonaire, Sint Eustatius and Saba" | "Bosnia and Herzegovina" | "Botswana" | "Bouvet Island" | "Brazil" | "British Indian Ocean Territory (the)" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Cabo Verde" | "Cambodia" | "Cameroon" | "Canada" | "Cayman Islands (the)" | "Central African Republic (the)" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos (Keeling) Islands (the)" | "Colombia" | "Comoros (the)" | "Congo (the Democratic Republic of the)" | "Congo (the)" | "Cook Islands (the)" | "Costa Rica" | "Croatia" | "Cuba" | "Curaçao" | "Cyprus" | "Czechia" | "Côte d'Ivoire" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic (the)" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Eswatini" | "Ethiopia" | "Falkland Islands (the) [Malvinas]" | "Faroe Islands (the)" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories (the)" | "Gabon" | "Gambia (the)" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea-Bissau" | "Guyana" | "Haiti" | "Heard Island and McDonald Islands" | "Holy See (the)" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran (Islamic Republic of)" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea (the Democratic People's Republic of)" | "Korea (the Republic of)" | "Kuwait" | "Kyrgyzstan" | "Lao People's Democratic Republic (the)" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands (the)" | "Martinique" | "Mauritania" | "Mauritius" | "Mayotte" | "Mexico" | "Micronesia (Federated States of)" | "Moldova (the Republic of)" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands (the)" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger (the)" | "Nigeria" | "Niue" | "Norfolk Island" | "Northern Mariana Islands (the)" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestine, State of" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines (the)" | "Pitcairn" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Republic of North Macedonia" | "Romania" | "Russian Federation (the)" | "Rwanda" | "Réunion" | "Saint Barthélemy" | "Saint Helena, Ascension and Tristan da Cunha" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin (French part)" | "Saint Pierre and Miquelon" | "Saint Vincent and the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten (Dutch part)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia and the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan (the)" | "Suriname" | "Svalbard and Jan Mayen" | "Sweden" | "Switzerland" | "Syrian Arab Republic" | "Taiwan (Province of China)" | "Tajikistan" | "Tanzania, United Republic of" | "Thailand" | "Timor-Leste" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands (the)" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates (the)" | "United Kingdom of Great Britain and Northern Ireland (the)" | "United States Minor Outlying Islands (the)" | "United States of America (the)" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela (Bolivarian Republic of)" | "Viet Nam" | "Virgin Islands (British)" | "Virgin Islands (U.S.)" | "Wallis and Futuna" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe" | "Åland Islands" | "NaN";