feat: Implement multi-tenancy support in middleware and security layers
- Enhanced TenantMiddleware to validate tenant information from JWT tokens. - Added LicenseValidationMiddleware to check tenant licenses before processing requests. - Updated security utilities to extract tenant information from tokens and validate company access. - Introduced CompanyStore to manage active company state and handle company switching in the frontend. - Modified API routes to include company_id in requests for better resource management. - Improved logging and error handling throughout the middleware and API layers. - Updated frontend components to reflect changes in company management and selection. - Added new API route for fetching user's companies with proper authentication handling.
This commit is contained in:
@@ -1,15 +1,45 @@
|
||||
seed = [
|
||||
("ABW", "A0", "AW", "Aruba (Territorio Holandes de Ultramar)", "Aruba (Netherlands Territory)"),
|
||||
("AFG", "A1", "AF", "Afganistan (Emirato Islamico De)", "Afghanistan (Islamic Emirate of)"),
|
||||
(
|
||||
"ABW",
|
||||
"A0",
|
||||
"AW",
|
||||
"Aruba (Territorio Holandes de Ultramar)",
|
||||
"Aruba (Netherlands Territory)",
|
||||
),
|
||||
(
|
||||
"AFG",
|
||||
"A1",
|
||||
"AF",
|
||||
"Afganistan (Emirato Islamico De)",
|
||||
"Afghanistan (Islamic Emirate of)",
|
||||
),
|
||||
("AGO", "A8", "AO", "Angola ( Republica De )", "Angola (People's Republic of )"),
|
||||
("AIA", "AI", "AI", "Anguila", "Anguilla"),
|
||||
("ALB", "A2", "AL", "Albania ( Republica De)", "Albania (People's Socialist Republic)"),
|
||||
(
|
||||
"ALB",
|
||||
"A2",
|
||||
"AL",
|
||||
"Albania ( Republica De)",
|
||||
"Albania (People's Socialist Republic)",
|
||||
),
|
||||
("AND", "A7", "AD", "Andorra (Principado De)", "Andorra (Principated of)"),
|
||||
("ANT", "B1", "AN", "Antillas Neerlandesas (Terr. Holandes de Ultramar)", "Antilles Netherlands"),
|
||||
(
|
||||
"ANT",
|
||||
"B1",
|
||||
"AN",
|
||||
"Antillas Neerlandesas (Terr. Holandes de Ultramar)",
|
||||
"Antilles Netherlands",
|
||||
),
|
||||
("ARE", "G6", "AE", "Emiratos Arabes Unidos", "United Arab Emirates"),
|
||||
("ARG", "B4", "AR", "Argentina ( Republica )", "Argentina (Republic of)"),
|
||||
("ARM", "AM", "AM", "Armenia (Republica De)", "Armenia (Republic of)"),
|
||||
("ATG", "A9", "AG", "Antigua Y Barbuda (Com. Britanica de Naciones)", "Antigua & Barbuda (Brithish Community)"),
|
||||
(
|
||||
"ATG",
|
||||
"A9",
|
||||
"AG",
|
||||
"Antigua Y Barbuda (Com. Britanica de Naciones)",
|
||||
"Antigua & Barbuda (Brithish Community)",
|
||||
),
|
||||
("AUS", "B5", "AU", "Australia ( Comunidad De )", "Australia (Community of)"),
|
||||
("AUT", "B6", "AT", "Austria ( Republica De )", "Austria (Republic of)"),
|
||||
("AZE", "AZ", "AZ", "Azerbaijan (Republica Azerbaijani)", "Azerbaijan"),
|
||||
@@ -17,7 +47,13 @@ seed = [
|
||||
("BEL", "C2", "BE", "Belgica ( Reino De )", "Belgium (Kingdom of)"),
|
||||
("BEN", "F9", "BJ", "Benin ( Republica De)", "Benin (People's Republic of)"),
|
||||
("BFA", "A6", "BF", "Burkina Faso", "Burkina Faso"),
|
||||
("BGD", "B9", "BD", "Bangladesh ( Republica Popular De )", "Bangladesh (People's Republic of)"),
|
||||
(
|
||||
"BGD",
|
||||
"B9",
|
||||
"BD",
|
||||
"Bangladesh ( Republica Popular De )",
|
||||
"Bangladesh (People's Republic of)",
|
||||
),
|
||||
("BGR", "D1", "BG", "Bulgaria ( Republica De )", "Bulgaria (Republic of)"),
|
||||
("BHR", "B8", "BH", "Bahrein ( Estado De )", "Bahrain (State of)"),
|
||||
("BHS", "B7", "BS", "Bahamas( Comunidad De Las )", "Bahamas (Community of the )"),
|
||||
@@ -26,20 +62,50 @@ seed = [
|
||||
("BLZ", "C3", "BZ", "Belice", "Belize"),
|
||||
("BMU", "C4", "BM", "Bermudas", "Bermuda"),
|
||||
("BOL", "C6", "BO", "Bolivia ( Republica De )", "Bolivia (Republic of)"),
|
||||
("BRA", "C8", "BR", "Brasil (Republica Federativa De)", "Brazil (Federative Republic of)"),
|
||||
("BRB", "C1", "BB", "Barbados (Comunidad Britanica de Naciones)", "Barbados (Brithish Community of Nations)"),
|
||||
(
|
||||
"BRA",
|
||||
"C8",
|
||||
"BR",
|
||||
"Brasil (Republica Federativa De)",
|
||||
"Brazil (Federative Republic of)",
|
||||
),
|
||||
(
|
||||
"BRB",
|
||||
"C1",
|
||||
"BB",
|
||||
"Barbados (Comunidad Britanica de Naciones)",
|
||||
"Barbados (Brithish Community of Nations)",
|
||||
),
|
||||
("BRN", "C9", "BN", "Brunei (Estado De)(Residencia de Paz)", "Brunei (State of)"),
|
||||
("BTN", "D3", "BT", "Butan (Reino De )", "Bhutan (Royal Goverment of)"),
|
||||
("BUR", "BU", "BU", "Burma ( Birmania )", "Burma (Birmany)"),
|
||||
("BWA", "C7", "BW", "Bostwana ( Republica De )", "Botswana (Republic of)"),
|
||||
("CAF", "CF", "RB", "Republica Centro Africana", "Central African Republic"),
|
||||
("CAN", "D9", "CA", "Canada", "Canada"),
|
||||
("CCK", "E3", "CC", "Cocos ( Keeling, Islas Australianas)", "Cocos Keeling Islands (Australian Island"),
|
||||
(
|
||||
"CCK",
|
||||
"E3",
|
||||
"CC",
|
||||
"Cocos ( Keeling, Islas Australianas)",
|
||||
"Cocos Keeling Islands (Australian Island",
|
||||
),
|
||||
("CHE", "U8", "CH", "Suiza (Confederacion)", "Switzerland (Confederation)"),
|
||||
("CHL", "F6", "CL", "Chile ( Republica De )", "Chile (Republic of)"),
|
||||
("CHN", "Z3", "CN", "China ( Republica Popular) Derogado", "China (People's Republic of)"),
|
||||
(
|
||||
"CHN",
|
||||
"Z3",
|
||||
"CN",
|
||||
"China ( Republica Popular) Derogado",
|
||||
"China (People's Republic of)",
|
||||
),
|
||||
("CIA", "E2", "VA", "Ciudad Del Vaticano ( Estado De La )", "Vatican City State"),
|
||||
("CIV", "F1", "CT", "Costa de Marfil (Republica De La)", "Ivory Coast (Republic of)"),
|
||||
(
|
||||
"CIV",
|
||||
"F1",
|
||||
"CT",
|
||||
"Costa de Marfil (Republica De La)",
|
||||
"Ivory Coast (Republic of)",
|
||||
),
|
||||
("CMR", "D8", "CM", "Camerun ( Republica Del )", "Cameroon (Republic of the)"),
|
||||
("COG", "E6", "CG", "Congo ( Republica Del )", " Congo (Republic of the)"),
|
||||
("COK", "E7", "CK", "Cook ( Islas )", "Cook Islands"),
|
||||
@@ -48,50 +114,134 @@ seed = [
|
||||
("CPV", "D4", "CV", "Cabo Verde ( Republica De )", "Cape Verde (Republic of)"),
|
||||
("CRI", "F2", "CR", "Costa Rica ( Republica De )", "Costa Rica (Republic of)"),
|
||||
("CUB", "F3", "CU", "Cuba ( Republica De )", "Cuba (Republic of)"),
|
||||
("CUR", "D0", "UR", "Curazao (Terr. Holandes De Ultramar)", "Curazao (Netherlands Territory)"),
|
||||
(
|
||||
"CUR",
|
||||
"D0",
|
||||
"UR",
|
||||
"Curazao (Terr. Holandes De Ultramar)",
|
||||
"Curazao (Netherlands Territory)",
|
||||
),
|
||||
("CXI", "N8", "CX", "Navidad ( Christmas ) ( Islas )", "Christmas Islands"),
|
||||
("CYM", "D6", "KY", "Caiman ( Islas )", "Cayman Islands"),
|
||||
("CYP", "F8", "CY", "Chipre ( Republica De )", "Cyprus (Island of)"),
|
||||
("CZE", "CZ", "CZ", "Republica Checa", "Czech Federative Republic"),
|
||||
("DEU", "A4", "DE", "Alemania ( Republica Federal De )", "Germany (Federal Republic of)"),
|
||||
(
|
||||
"DEU",
|
||||
"A4",
|
||||
"DE",
|
||||
"Alemania ( Republica Federal De )",
|
||||
"Germany (Federal Republic of)",
|
||||
),
|
||||
("DJI", "V4", "DJ", "Djibouti ( Republica De )", "Djibouti (Republic of)"),
|
||||
("DMA", "G2", "DM", "Dominica ( Comunidad De )", "Dominica (Community of)"),
|
||||
("DNK", "G1", "DK", "Dinamarca ( Reino De )", "Denmark (Kingdom of)"),
|
||||
("DOM", "S2", "DO", "Republica Dominicana", "Dominican Republic"),
|
||||
("DSM", "FM", "FM", "Estado Federado De Micronesia", "Micronesia Federated State of"),
|
||||
("DZA", "B3", "DZ", "Argelia ( Republica Democratica y Popular de) Dero", "Argelia (People's Democratic Republic)"),
|
||||
(
|
||||
"DSM",
|
||||
"FM",
|
||||
"FM",
|
||||
"Estado Federado De Micronesia",
|
||||
"Micronesia Federated State of",
|
||||
),
|
||||
(
|
||||
"DZA",
|
||||
"B3",
|
||||
"DZ",
|
||||
"Argelia ( Republica Democratica y Popular de) Dero",
|
||||
"Argelia (People's Democratic Republic)",
|
||||
),
|
||||
("ECU", "G3", "EC", "Ecuador ( Republica Del)", "Ecuador (Republic of the)"),
|
||||
("EGY", "G4", "EG", "Egipto ( Republica Arabe De )", "Egypt (Arab Republic of)"),
|
||||
("EMU", "EU", "EU", "Comunidad Europea", "European Economic Community"),
|
||||
("ERI", "ER", "ER", "Eritrea (Estado De)", "Eritrea (State of)"),
|
||||
("ESH", "EH", "EH", "Sahara Occidental (Rep. Arabe Saharavi Dem.)", "Western Sahara (Arab Democratic Rep.)"),
|
||||
(
|
||||
"ESH",
|
||||
"EH",
|
||||
"EH",
|
||||
"Sahara Occidental (Rep. Arabe Saharavi Dem.)",
|
||||
"Western Sahara (Arab Democratic Rep.)",
|
||||
),
|
||||
("ESP", "G7", "ES", "España ( Reino De )", "Spain (Kingdom of)"),
|
||||
("EST", "G0", "EE", "Estonia (Republica De)", "Estonia (Republic of)"),
|
||||
("ETH", "G9", "ET", "Etiopia ( Republica Democratica Federal)", "Ethiopia (Federal Democratic Republic)"),
|
||||
(
|
||||
"ETH",
|
||||
"G9",
|
||||
"ET",
|
||||
"Etiopia ( Republica Democratica Federal)",
|
||||
"Ethiopia (Federal Democratic Republic)",
|
||||
),
|
||||
("FIN", "H4", "FI", "Finlandia ( Republica De )", "Finland (Republic of)"),
|
||||
("FJI", "H1", "FJ", "Fidji (Republica De )", "Fiji Islands"),
|
||||
("FLK", "FK", "IV", "Islas Malvinas (R.U.)", "Malvine Islands"),
|
||||
("FRA", "H5", "FR", "Francia (Republica Francesa)", "France (Republic)"),
|
||||
("FXA", "TF", "TF", "Territorios Franceses Austriales y Antarticos", "French Territory of Antartic Austral"),
|
||||
(
|
||||
"FXA",
|
||||
"TF",
|
||||
"TF",
|
||||
"Territorios Franceses Austriales y Antarticos",
|
||||
"French Territory of Antartic Austral",
|
||||
),
|
||||
("GAB", "H6", "GA", "Gabonesa ( Republica )", "Gabonese Republic"),
|
||||
("GBR", "R9", "GB", "Reino Unido de la Gran Bretaña e Irlanda del Norte", "United Kingdom (Great Britain, Ireland N"),
|
||||
(
|
||||
"GBR",
|
||||
"R9",
|
||||
"GB",
|
||||
"Reino Unido de la Gran Bretaña e Irlanda del Norte",
|
||||
"United Kingdom (Great Britain, Ireland N",
|
||||
),
|
||||
("GEO", "GE", "GE", "Georgia (Republica De)", "Georgia (Republic of)"),
|
||||
("GHA", "H8", "GH", "Ghana ( Republica De )", "Ghana (Republic of)"),
|
||||
("GIB", "GI", "GI", "Gibraltar (R.U.)", "Gibraltar (U. K.)"),
|
||||
("GIN", "I8", "GN", "Guinea ( Republica De )", "Guinea (Republic of)"),
|
||||
("GLP", "I4", "GP", "Guadalupe (Departamento De)", "Guadeloupe (French Caribean Dependences)"),
|
||||
(
|
||||
"GLP",
|
||||
"I4",
|
||||
"GP",
|
||||
"Guadalupe (Departamento De)",
|
||||
"Guadeloupe (French Caribean Dependences)",
|
||||
),
|
||||
("GMB", "H7", "GM", "Gambia ( Republica De La)", "Gambia (Republic of)"),
|
||||
("GNB", "J1", "GW", "Guinea-Bissau ( Republica De )", "Guinea-Bissau (Republic of)"),
|
||||
("GNQ", "I9", "GQ", "Guinea Ecuatorial ( Republica De )", "Equatorial Guinea (Republic of)"),
|
||||
("GRC", "I2", "GR", "Grecia (Republica Helenica)", "Greece (Helenical Republic of)"),
|
||||
(
|
||||
"GNB",
|
||||
"J1",
|
||||
"GW",
|
||||
"Guinea-Bissau ( Republica De )",
|
||||
"Guinea-Bissau (Republic of)",
|
||||
),
|
||||
(
|
||||
"GNQ",
|
||||
"I9",
|
||||
"GQ",
|
||||
"Guinea Ecuatorial ( Republica De )",
|
||||
"Equatorial Guinea (Republic of)",
|
||||
),
|
||||
(
|
||||
"GRC",
|
||||
"I2",
|
||||
"GR",
|
||||
"Grecia (Republica Helenica)",
|
||||
"Greece (Helenical Republic of)",
|
||||
),
|
||||
("GRD", "I1", "GD", "Granada", "Grenada"),
|
||||
("GRL", "GL", "GL", "Groenlandia (Dinamarca)", "Greenland (Denmark)"),
|
||||
("GTM", "I6", "GT", "Guatemala ( Republica De )", "Guatemala (Republic of)"),
|
||||
("GUF", "I7", "GF", "Guyana Francesa", "French Guyana"),
|
||||
("GUM", "I5", "GU", "Guam ( E.U.A )", "Guam (U.S.A.)"),
|
||||
("GUY", "J2", "GY", "Guyana ( Republica Cooperativa De )", "Guyana (Cooperative Republic of)"),
|
||||
(
|
||||
"GUY",
|
||||
"J2",
|
||||
"GY",
|
||||
"Guyana ( Republica Cooperativa De )",
|
||||
"Guyana (Cooperative Republic of)",
|
||||
),
|
||||
("GZA", "GZ", "GZ", "Franja De Gaza", "Gaza Strip"),
|
||||
("HKG", "J6", "HK", "Hong Kong (Region Admiva. Especial de la Rep. )", "Hong Kong (Territory of)"),
|
||||
(
|
||||
"HKG",
|
||||
"J6",
|
||||
"HK",
|
||||
"Hong Kong (Region Admiva. Especial de la Rep. )",
|
||||
"Hong Kong (Territory of)",
|
||||
),
|
||||
("HND", "J5", "HN", "Honduras ( Republica De )", "Honduras (Republic of)"),
|
||||
("HRV", "HR", "HR", "Croacia (Republica De)", "Croatia (Republic of)"),
|
||||
("HTI", "J3", "HT", "Haiti ( Republica De )", "Haiti (Republic of)"),
|
||||
@@ -99,13 +249,25 @@ seed = [
|
||||
("IDN", "J9", "ID", "Indonesia ( Republica De )", "Indonesia (Republic of)"),
|
||||
("IND", "J8", "IN", "India ( Republica De)", "India (Republic of the)"),
|
||||
("IRL", "K3", "IE", "Irlanda ( Republica De )", "Ireland (Republic of)"),
|
||||
("IRN", "K2", "IR", "Iran ( Republica Islamica Del )", "Iran (Islamic Republic of)"),
|
||||
(
|
||||
"IRN",
|
||||
"K2",
|
||||
"IR",
|
||||
"Iran ( Republica Islamica Del )",
|
||||
"Iran (Islamic Republic of)",
|
||||
),
|
||||
("IRQ", "K1", "IQ", "Irak ( Republica De )", "Iraq (Republic of)"),
|
||||
("ISL", "K4", "IS", "Islandia ( Republica De )", "Iceland (Republic of)"),
|
||||
("ISR", "K5", "IL", "Israel ( Estado De )", "Israel (State of)"),
|
||||
("ITA", "K6", "IT", "Italia (Republica Italiana)", "Italy (Republic)"),
|
||||
("JAM", "K7", "JM", "Jamaica", "Jamaica"),
|
||||
("JOR", "L1", "JO", "Jordania ( Reino Hachemita De )", "Jordan (Hachemite Kingdom of)"),
|
||||
(
|
||||
"JOR",
|
||||
"L1",
|
||||
"JO",
|
||||
"Jordania ( Reino Hachemita De )",
|
||||
"Jordan (Hachemite Kingdom of)",
|
||||
),
|
||||
("JPN", "K9", "JP", "Japon", "Japan"),
|
||||
("KAZ", "KZ", "KZ", "Kazakhstan (Republica de)", "Kazakhstan"),
|
||||
("KCD", "Z9", "PD", "Paises No Declarados", "Not Declared Countries"),
|
||||
@@ -113,49 +275,133 @@ seed = [
|
||||
("KGZ", "KG", "KG", "Kyrgyzstan (Republica Kirgyzia)", "Kyrgyzstan"),
|
||||
("KHM", "D7", "KH", "Camboya (Reino de)", "Cambodia"),
|
||||
("KIR", "L0", "KI", "Kiribati (Republica de)", "Kiribati"),
|
||||
("KNA", "S9", "KN", "San Cristobal Y Nieves (Fed. de)(San Kitts-Nevis)", "St. Christopher - Nevis"),
|
||||
(
|
||||
"KNA",
|
||||
"S9",
|
||||
"KN",
|
||||
"San Cristobal Y Nieves (Fed. de)(San Kitts-Nevis)",
|
||||
"St. Christopher - Nevis",
|
||||
),
|
||||
("KOR", "E8", "KR", "Corea (Republica De)(Corea del Sur)", "Korea Republic of"),
|
||||
("KWT", "L3", "KW", "Kuwait (Estado de)", "kuwait"),
|
||||
("LAO", "L4", "LA", "Republica Democratica Popular Laos", "Laos (People's Democratic Republic of)"),
|
||||
(
|
||||
"LAO",
|
||||
"L4",
|
||||
"LA",
|
||||
"Republica Democratica Popular Laos",
|
||||
"Laos (People's Democratic Republic of)",
|
||||
),
|
||||
("LBN", "L7", "LB", "Libano (Republica de)", "Lebanon"),
|
||||
("LBR", "L8", "LR", "Liberia ( Republica De )", "Liberia (Republic of)"),
|
||||
("LBY", "L9", "LY", "Libia (Jamahiriya Libia Araba Pop. Soc.)", "Lybia (Arab Jamahiriya)"),
|
||||
(
|
||||
"LBY",
|
||||
"L9",
|
||||
"LY",
|
||||
"Libia (Jamahiriya Libia Araba Pop. Soc.)",
|
||||
"Lybia (Arab Jamahiriya)",
|
||||
),
|
||||
("LCA", "T4", "LC", "Santa Lucia", "Saint Lucia"),
|
||||
("LHM", "HM", "HM", "Islas Heard Y Mcdonald", "Heard & MacDonald Islands"),
|
||||
("LIE", "L5", "LI", "Liechtenstein (Principado de)", "Liechtenstein (Principated of)"),
|
||||
("LKA", "U4", "LK", "Sri Lanka ( Republica Democratica Soc.)", "Sri Lanka (Socialist Democratic Republic"),
|
||||
(
|
||||
"LIE",
|
||||
"L5",
|
||||
"LI",
|
||||
"Liechtenstein (Principado de)",
|
||||
"Liechtenstein (Principated of)",
|
||||
),
|
||||
(
|
||||
"LKA",
|
||||
"U4",
|
||||
"LK",
|
||||
"Sri Lanka ( Republica Democratica Soc.)",
|
||||
"Sri Lanka (Socialist Democratic Republic",
|
||||
),
|
||||
("LSO", "L6", "LS", "Lesotho ( Reino De )", "Lesotho (Kingdom of)"),
|
||||
("LTU", "Y2", "LT", "Lituania (Republica de)", "Lithuania"),
|
||||
("LUX", "M0", "LU", "Luxemburgo ( Gran Ducado De)", "Luxembourg (Great Ducated of)"),
|
||||
(
|
||||
"LUX",
|
||||
"M0",
|
||||
"LU",
|
||||
"Luxemburgo ( Gran Ducado De)",
|
||||
"Luxembourg (Great Ducated of)",
|
||||
),
|
||||
("LVA", "Y1", "LV", "Letonia (Republica de)", "Latvia"),
|
||||
("MAC", "M1", "MO", "Macao", "Macau"),
|
||||
("MAR", "M8", "MR", "Marruecos ( Reino De )", "Morocco (Kingdom of)"),
|
||||
("MCO", "N0", "MC", "Monaco (Principado De)", "Monaco (Principated of)"),
|
||||
("MDA", "MD", "MD", "Moldavia (Republica de)", "Moldova"),
|
||||
("MDG", "M2", "MG", "Madagascar ( Republica De)", "Madagascar (Democratic Republic of)"),
|
||||
(
|
||||
"MDG",
|
||||
"M2",
|
||||
"MG",
|
||||
"Madagascar ( Republica De)",
|
||||
"Madagascar (Democratic Republic of)",
|
||||
),
|
||||
("MDV", "M5", "MV", "Maldivas ( Republica De )", "Maldives (Republic of the)"),
|
||||
("MEX", "N3", "MX", "Mexico (Estados Unidos Mexicanos)", "Mexico"),
|
||||
("MHL", "MH", "MH", "Islas Marshall", "Marshall Islands"),
|
||||
("MKD", "MK", "MK", "Macedonia (Antigua Rep. Yugoslava De)", "Macedonia (Old Yugoslavian Republic)"),
|
||||
(
|
||||
"MKD",
|
||||
"MK",
|
||||
"MK",
|
||||
"Macedonia (Antigua Rep. Yugoslava De)",
|
||||
"Macedonia (Old Yugoslavian Republic)",
|
||||
),
|
||||
("MLI", "M6", "ML", "Mali ( Republica De )", "Mali (Republic of)"),
|
||||
("MLT", "M7", "MT", "Malta ( Republica De )", "Malta and Gozo (Republic of)"),
|
||||
("MMR", "C5", "MM", "Myanmar ( Union De )", "Myammar (Union of)"),
|
||||
("MNE", "ME", "ME", "Montenegro", ""),
|
||||
("MNG", "N4", "MN", "Mongolia", "Mongolia (People's Republic of)"),
|
||||
("MNP", "MP", "IM", "Islas Marianas Septentrionales", "Marianes Septentrional Islands"),
|
||||
("MOZ", "N6", "MZ", "Mozambique ( Republica De)", "Mozambique (People's Republic of)"),
|
||||
("MRT", "N2", "RT", "Mauritania ( Republica Islamica De )", "Mauritania (Islamic Republic of)"),
|
||||
(
|
||||
"MNP",
|
||||
"MP",
|
||||
"IM",
|
||||
"Islas Marianas Septentrionales",
|
||||
"Marianes Septentrional Islands",
|
||||
),
|
||||
(
|
||||
"MOZ",
|
||||
"N6",
|
||||
"MZ",
|
||||
"Mozambique ( Republica De)",
|
||||
"Mozambique (People's Republic of)",
|
||||
),
|
||||
(
|
||||
"MRT",
|
||||
"N2",
|
||||
"RT",
|
||||
"Mauritania ( Republica Islamica De )",
|
||||
"Mauritania (Islamic Republic of)",
|
||||
),
|
||||
("MSR", "N5", "MS", "Monserrat ( Isla )", "Montserrat Island"),
|
||||
("MTQ", "M9", "MQ", "Martinica (Departamento de) (Francia)", "Martinique (Department of)"),
|
||||
(
|
||||
"MTQ",
|
||||
"M9",
|
||||
"MQ",
|
||||
"Martinica (Departamento de) (Francia)",
|
||||
"Martinique (Department of)",
|
||||
),
|
||||
("MUS", "N1", "MU", "Mauricio ( Republica De )", "Mauritius (State of)"),
|
||||
("MWI", "M4", "MW", "Malawi ( Republica De )", "Malawi (Republic of)"),
|
||||
("MYS", "M3", "MY", "Malasia", "Malaysia (Federation of)"),
|
||||
("NAM", "P0", "NA", "Namibia ( Republica De )", "Namibia (Republic of)"),
|
||||
("NCA", "P7", "TE", "Terr. Frances Ultramar Nueva Caledonia", "French Territory of New Caledonia"),
|
||||
(
|
||||
"NCA",
|
||||
"P7",
|
||||
"TE",
|
||||
"Terr. Frances Ultramar Nueva Caledonia",
|
||||
"French Territory of New Caledonia",
|
||||
),
|
||||
("NCL", "NC", "NC", "Nueva Caledonia (Terr.Frances de Ultramar)", "New Caledonia"),
|
||||
("NER", "P2", "NE", "Niger ( Republica De)", "Niger (Federal Republic of)"),
|
||||
("NFK", "P5", "NF", "Norfolk ( Isla )", "Norfolk Island"),
|
||||
("NGA", "P3", "NG", "Nigeria ( Republica Federal De)", "Nigeria (Federal Republic of)"),
|
||||
(
|
||||
"NGA",
|
||||
"P3",
|
||||
"NG",
|
||||
"Nigeria ( Republica Federal De)",
|
||||
"Nigeria (Federal Republic of)",
|
||||
),
|
||||
("NIC", "P1", "NI", "Nicaragua ( Republica De )", "Nicaragua (Republic of)"),
|
||||
("NIU", "P4", "NU", "Nive ( Isla )", "Nive Island"),
|
||||
("NOR", "P6", "NO", "Noruega ( Reino De )", "Norway (Kingdom of)"),
|
||||
@@ -163,27 +409,81 @@ seed = [
|
||||
("NRU", "N7", "NR", "Nauru", "Nauru"),
|
||||
("NZL", "P9", "NZ", "Nueva Zelandia", "New Zealand"),
|
||||
("OMN", "Q2", "OM", "Oman (Sultanato De )", "Oman (Sultanate of)"),
|
||||
("PAK", "Q7", "PK", "Pakistan ( Republica Islamica De )", "Pakistan (Islamic Republic of)"),
|
||||
(
|
||||
"PAK",
|
||||
"Q7",
|
||||
"PK",
|
||||
"Pakistan ( Republica Islamica De )",
|
||||
"Pakistan (Islamic Republic of)",
|
||||
),
|
||||
("PAN", "Q8", "PA", "Panama ( Republica De )", "Panama (Republic of)"),
|
||||
("PCN", "R3", "PN", "Pitcairns ( Islas Dependencia Britanica )", "Pitcairn Island (Brithish Dependence)"),
|
||||
(
|
||||
"PCN",
|
||||
"R3",
|
||||
"PN",
|
||||
"Pitcairns ( Islas Dependencia Britanica )",
|
||||
"Pitcairn Island (Brithish Dependence)",
|
||||
),
|
||||
("PER", "R2", "PE", "Peru ( Republica Del )", "Peru (Republic of )"),
|
||||
("PHL", "H3", "PH", "Filipinas ( Republica De Las )", "Philippines (Republic of the)"),
|
||||
("PIK", "Q3", "PI", "Pacifico Islas Del ( Admon. E.U.A. )", "Pacific Islands (U.S.A. Administration)"),
|
||||
(
|
||||
"PHL",
|
||||
"H3",
|
||||
"PH",
|
||||
"Filipinas ( Republica De Las )",
|
||||
"Philippines (Republic of the)",
|
||||
),
|
||||
(
|
||||
"PIK",
|
||||
"Q3",
|
||||
"PI",
|
||||
"Pacifico Islas Del ( Admon. E.U.A. )",
|
||||
"Pacific Islands (U.S.A. Administration)",
|
||||
),
|
||||
("PLW", "PW", "PW", "Palau (Republica De)", "Palau (Republic of)"),
|
||||
("PNG", "P8", "PP", "Papua Nueva Guinea (Edo. Independiente de)", "Papua New Guinea (Independent State of)"),
|
||||
(
|
||||
"PNG",
|
||||
"P8",
|
||||
"PP",
|
||||
"Papua Nueva Guinea (Edo. Independiente de)",
|
||||
"Papua New Guinea (Independent State of)",
|
||||
),
|
||||
("POL", "R5", "PL", "Polonia ( Republica De )", "Poland (Republic of)"),
|
||||
("PRI", "R7", "PR", "Puerto Rico (Edo.Libre Asociado de la Com. de) Der", "Puerto Rico (Free Asociated State of)"),
|
||||
("PRK", "E9", "KP", "Corea ( Rep. Pop. Dem.de)(Corea del Norte)", "Korea (North)(People's Democratic Rep.of"),
|
||||
(
|
||||
"PRI",
|
||||
"R7",
|
||||
"PR",
|
||||
"Puerto Rico (Edo.Libre Asociado de la Com. de) Der",
|
||||
"Puerto Rico (Free Asociated State of)",
|
||||
),
|
||||
(
|
||||
"PRK",
|
||||
"E9",
|
||||
"KP",
|
||||
"Corea ( Rep. Pop. Dem.de)(Corea del Norte)",
|
||||
"Korea (North)(People's Democratic Rep.of",
|
||||
),
|
||||
("PRT", "R6", "PT", "Portugal (Republica Portuguesa)", "Portugal (Republic of)"),
|
||||
("PRY", "R1", "PY", "Paraguay ( Republica Del )", "Paraguay (Republic of)"),
|
||||
("PSE", "PS", "PS", "Palestina", ""),
|
||||
("PTY", "Z2", "ZO", "Zona Del Canal De Panama", "Zone of the Panama's Channel"),
|
||||
("PYF", "R4", "PF", "Polinesia Francesa", "French Polynesia"),
|
||||
("QAT", "R8", "QA", "Qatar ( Estado De )", "Qatar (State of)"),
|
||||
("REU", "S3", "RE", "Reunion (Departamento de la) ( Francia)", "Reunion Islands (French Department)"),
|
||||
(
|
||||
"REU",
|
||||
"S3",
|
||||
"RE",
|
||||
"Reunion (Departamento de la) ( Francia)",
|
||||
"Reunion Islands (French Department)",
|
||||
),
|
||||
("RKE", "E1", "RK", "Canal Islas del ( Islas Normandas )", "Channel Islands"),
|
||||
("ROM", "S5", "RO", "Rumania", "Romania (Republic of)"),
|
||||
("RUH", "NT", "NT", "Zona Neutral Iraq-Arabia Saudita", "Neutral Zone of Iraq - Saudi Arabia"),
|
||||
(
|
||||
"RUH",
|
||||
"NT",
|
||||
"NT",
|
||||
"Zona Neutral Iraq-Arabia Saudita",
|
||||
"Neutral Zone of Iraq - Saudi Arabia",
|
||||
),
|
||||
("RUS", "RU", "RU", "Rusia (Federacion Rusa)", "Russia (Federation)"),
|
||||
("RWA", "S6", "RW", "Republica Ruandesa", "Rwanda"),
|
||||
("SAU", "B2", "SA", "Arabia Saudita ( Reino De )", "Saudi Arabia (Kingdom of)"),
|
||||
@@ -191,21 +491,51 @@ seed = [
|
||||
("SEN", "T6", "SN", "Senegal ( Republica Del )", "Senegal (Republic of the)"),
|
||||
("SGP", "U1", "SG", "Singapur ( Republica De )", "Singapore (Republic of)"),
|
||||
("SHN", "T3", "SH", "Santa Elena", "St. Helena"),
|
||||
("SJM", "SJ", "SJ", "Islas Svalbard Y Jan Mayen (Noruega)", "Svalbard & Jan Mayen Islands"),
|
||||
("SLB", "SB", "SB", "Islas Salomon (Com. Britanica de Naciones)", "Solomon Islands (Brithish Community)"),
|
||||
(
|
||||
"SJM",
|
||||
"SJ",
|
||||
"SJ",
|
||||
"Islas Svalbard Y Jan Mayen (Noruega)",
|
||||
"Svalbard & Jan Mayen Islands",
|
||||
),
|
||||
(
|
||||
"SLB",
|
||||
"SB",
|
||||
"SB",
|
||||
"Islas Salomon (Com. Britanica de Naciones)",
|
||||
"Solomon Islands (Brithish Community)",
|
||||
),
|
||||
("SLE", "T8", "SL", "Sierra Leona ( Republica De )", "Sierra Leone (Republic of)"),
|
||||
("SLV", "G5", "SV", "El Salvador ( Republica De )", "El Salvador (Republic of)"),
|
||||
("SMR", "T0", "SM", "San Marino (Serenisima Republica De)", "San Marino (Republic of"),
|
||||
(
|
||||
"SMR",
|
||||
"T0",
|
||||
"SM",
|
||||
"San Marino (Serenisima Republica De)",
|
||||
"San Marino (Republic of",
|
||||
),
|
||||
("SOM", "U3", "SO", "Somalia", "Somalia (Democratic Republic of)"),
|
||||
("SPM", "T1", "PM", "San Pedro Y Miquelon", "St. Pierre and Miquelon"),
|
||||
("SRB", "RS", "RS", "Republica de Serbia", ""),
|
||||
("STP", "T5", "ST", "Santo Tome Y Principe (Rep. Democratica de)", "Sao Tome and Principe (Dem. Rep.)"),
|
||||
(
|
||||
"STP",
|
||||
"T5",
|
||||
"ST",
|
||||
"Santo Tome Y Principe (Rep. Democratica de)",
|
||||
"Sao Tome and Principe (Dem. Rep.)",
|
||||
),
|
||||
("SUR", "U9", "SR", "Suriname ( Republica De )", "Surinam (Republic of)"),
|
||||
("SVK", "SK", "SK", "Republica Eslovaca", "Slovakia (Republic)"),
|
||||
("SVN", "SI", "SI", "Eslovenia (Republica De)", "Slovenia (Republic of)"),
|
||||
("SWE", "U7", "SE", "Suecia ( Reino De )", "Sweden (Kingdom of)"),
|
||||
("SWZ", "V0", "SZ", "Swazilandia ( Reino De )", "Swaziland (Kingdom of)"),
|
||||
("SYC", "T7", "SC", "Seychelles (Republica De Las)", "Seychelles (Republic of the)"),
|
||||
(
|
||||
"SYC",
|
||||
"T7",
|
||||
"SC",
|
||||
"Seychelles (Republica De Las)",
|
||||
"Seychelles (Republic of the)",
|
||||
),
|
||||
("SYR", "U2", "SY", "Siria ( Republica Arabe )", "Syrian Arab Republic"),
|
||||
("TCA", "W3", "TC", "Turcas Y Caicos ( Islas )", "Turks and Caicos Islands"),
|
||||
("TCD", "F4", "TD", "Chad ( Republica De )", "Chad (Republic of)"),
|
||||
@@ -216,30 +546,102 @@ seed = [
|
||||
("TKM", "TM", "TM", "Turkmenistan (Republica De)", "Turkmenistan (Republic of)"),
|
||||
("TMP", "TP", "TP", "Timor Oriental", "East Timor"),
|
||||
("TON", "TO", "TO", "Tonga (Reino De)", "Tonga (Kingdom of)"),
|
||||
("TTO", "W1", "TT", "Trinidad Y Tobago ( Republica De )", "Trinidad and Tobago (Republic of)"),
|
||||
(
|
||||
"TTO",
|
||||
"W1",
|
||||
"TT",
|
||||
"Trinidad Y Tobago ( Republica De )",
|
||||
"Trinidad and Tobago (Republic of)",
|
||||
),
|
||||
("TUN", "W2", "TN", "Tunez ( Republica De )", "Tunisia (Republic of)"),
|
||||
("TUR", "W4", "TR", "Turquia ( Republica De )", "Turkey (Republic of)"),
|
||||
("TUV", "TV", "TV", "Tuvalu (Comunidad Britanica de Naciones)", "Tuvalu (Brithish Community of Nations)"),
|
||||
(
|
||||
"TUV",
|
||||
"TV",
|
||||
"TV",
|
||||
"Tuvalu (Comunidad Britanica de Naciones)",
|
||||
"Tuvalu (Brithish Community of Nations)",
|
||||
),
|
||||
("TWN", "F7", "TW", "Taiwan (Republica de China)", "Taiwan"),
|
||||
("TZA", "V2", "TZ", "Tanzania ( Republica Unida De )", "Tanzania United Republic of"),
|
||||
(
|
||||
"TZA",
|
||||
"V2",
|
||||
"TZ",
|
||||
"Tanzania ( Republica Unida De )",
|
||||
"Tanzania United Republic of",
|
||||
),
|
||||
("UGA", "W5", "UG", "Uganda ( Republica De )", "Uganda (Republic of)"),
|
||||
("UKR", "UA", "UA", "Ucrania", "Ukraine"),
|
||||
("URY", "W7", "UY", "Uruguay ( Republica Oriental Del )", "Uruguay (Eastern Republic of the)"),
|
||||
(
|
||||
"URY",
|
||||
"W7",
|
||||
"UY",
|
||||
"Uruguay ( Republica Oriental Del )",
|
||||
"Uruguay (Eastern Republic of the)",
|
||||
),
|
||||
("USA", "G8", "US", "Estados Unidos de America", "United States of America"),
|
||||
("UZB", "Y4", "UZ", "Uzbejistan (Republica de)", "Uzbekistan (Republic)"),
|
||||
("VCT", "T2", "VC", "San Vicente Y Las Granadinas", "St. Vincent and the Grenadines"),
|
||||
(
|
||||
"VCT",
|
||||
"T2",
|
||||
"VC",
|
||||
"San Vicente Y Las Granadinas",
|
||||
"St. Vincent and the Grenadines",
|
||||
),
|
||||
("VEN", "W8", "VE", "Venezuela ( Republica De )", "Venezuela (Republic of)"),
|
||||
("VGB", "X2", "VG", "Virgenes Islas ( Britanicas )", "Virgin Islands (British)"),
|
||||
("VIR", "X3", "VI", "Virgenes Islas ( Norteamericanas )", "Virgin Islands (American)"),
|
||||
("VNM", "W9", "VN", "Vietnam ( Republica Socialista De )", "Vietnam (Socialist Republic of)"),
|
||||
(
|
||||
"VIR",
|
||||
"X3",
|
||||
"VI",
|
||||
"Virgenes Islas ( Norteamericanas )",
|
||||
"Virgin Islands (American)",
|
||||
),
|
||||
(
|
||||
"VNM",
|
||||
"W9",
|
||||
"VN",
|
||||
"Vietnam ( Republica Socialista De )",
|
||||
"Vietnam (Socialist Republic of)",
|
||||
),
|
||||
("VUT", "Q1", "VU", "Vanuatu", "Vanuatu"),
|
||||
("WLF", "WF", "WF", "Islas Wallis Y Futuna", "Wallis & Futuna Islands"),
|
||||
("WSM", "S8", "WS", "Samoa (Estado Independiente de)", "Western Samoa (Independent State)"),
|
||||
("XCH", "V3", "IO", "Territorios Britanicos Del Oceano Indico", "Brithish Territory of the Indic Ocean"),
|
||||
(
|
||||
"WSM",
|
||||
"S8",
|
||||
"WS",
|
||||
"Samoa (Estado Independiente de)",
|
||||
"Western Samoa (Independent State)",
|
||||
),
|
||||
(
|
||||
"XCH",
|
||||
"V3",
|
||||
"IO",
|
||||
"Territorios Britanicos Del Oceano Indico",
|
||||
"Brithish Territory of the Indic Ocean",
|
||||
),
|
||||
("YEM", "YE", "YE", "Yemen (Republica De)", "Yemen (Republic of)"),
|
||||
("YUG", "X8", "YU", "Yugoslavia (Republica Federal de)", "Yugoslavia (Federal Republic of)"),
|
||||
("ZAF", "U5", "ZA", "Sudafrica ( Republica De ) Derogado", "South Africa (Republic of)"),
|
||||
(
|
||||
"YUG",
|
||||
"X8",
|
||||
"YU",
|
||||
"Yugoslavia (Republica Federal de)",
|
||||
"Yugoslavia (Federal Republic of)",
|
||||
),
|
||||
(
|
||||
"ZAF",
|
||||
"U5",
|
||||
"ZA",
|
||||
"Sudafrica ( Republica De ) Derogado",
|
||||
"South Africa (Republic of)",
|
||||
),
|
||||
("ZMB", "Z1", "ZM", "Zambia ( Republica De )", "Zambia (Republic of)"),
|
||||
("ZWE", "S4", "ZW", "Zimbabwe ( Republica De )", "Zimbabwe (Republic of)"),
|
||||
("ZYA", "J4", "NL", "Paises Bajos ( Reino De Los )(Holanda)", "Netherlands (Kingdom of)(Holand)"),
|
||||
]
|
||||
(
|
||||
"ZYA",
|
||||
"J4",
|
||||
"NL",
|
||||
"Paises Bajos ( Reino De Los )(Holanda)",
|
||||
"Netherlands (Kingdom of)(Holand)",
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user