african-states-and-tribes 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXAMPLES.md +261 -0
- package/MODULAR_IMPORTS.md +162 -0
- package/README.md +83 -1
- package/dist/{AO-KTWONNYZ.mjs → AO-3WUV6HS7.mjs} +1 -1
- package/dist/{BF-O7TBSCCA.mjs → BF-GZ45LRSN.mjs} +1 -1
- package/dist/{BI-DLK4YMGO.mjs → BI-3GCTK7CF.mjs} +1 -1
- package/dist/{BJ-PNML7KGU.mjs → BJ-4AJ2EFGG.mjs} +1 -1
- package/dist/{BW-CNU7L4NH.mjs → BW-AN7LIVOT.mjs} +1 -1
- package/dist/{CD-3L2NXQVL.mjs → CD-JYCWONXN.mjs} +1 -1
- package/dist/{CF-ESX77N6V.mjs → CF-L6ZKGUE2.mjs} +1 -1
- package/dist/{CG-VO3X7LDQ.mjs → CG-L6Q7VBRE.mjs} +1 -1
- package/dist/{CI-GS6CFDT3.mjs → CI-OKLEG4C6.mjs} +1 -1
- package/dist/{CM-BTFLGGR5.mjs → CM-5U7UTSLM.mjs} +1 -1
- package/dist/{CV-UT67RQS3.mjs → CV-J3IWNECL.mjs} +1 -1
- package/dist/{DJ-ZMQOBOIG.mjs → DJ-WPIJRNWE.mjs} +1 -1
- package/dist/{DZ-LPE6ZB5C.mjs → DZ-ONSX7GR6.mjs} +1 -1
- package/dist/{EG-SP5CNNNV.mjs → EG-CBFPAFSO.mjs} +1 -1
- package/dist/{ER-UP22LPAH.mjs → ER-UC5TZBXK.mjs} +1 -1
- package/dist/{ET-OBCUOADT.mjs → ET-HXCBRBHN.mjs} +1 -1
- package/dist/{GA-MAVC3U4Q.mjs → GA-T5YWU36U.mjs} +1 -1
- package/dist/{GH-6ZWTNM6E.mjs → GH-BMJZWTWI.mjs} +1 -1
- package/dist/{GM-3TYRGF43.mjs → GM-R3VSEPTK.mjs} +1 -1
- package/dist/{GN-J26OKD3H.mjs → GN-DRGVYDMG.mjs} +1 -1
- package/dist/{GQ-TVJPRBZ4.mjs → GQ-SMAK7YCQ.mjs} +1 -1
- package/dist/{GW-BXXBSDB3.mjs → GW-DQPA4VJE.mjs} +1 -1
- package/dist/{KE-FR37ZDM6.mjs → KE-DMP37VDP.mjs} +3 -3
- package/dist/{KM-2T7XZQOW.mjs → KM-3F2KE6ER.mjs} +1 -1
- package/dist/{LR-SDYDWBD2.mjs → LR-D67J6ITO.mjs} +1 -1
- package/dist/{LS-WW7EJFSS.mjs → LS-QWKN3I62.mjs} +1 -1
- package/dist/{LY-GLNCPO5D.mjs → LY-WJBKPKU2.mjs} +1 -1
- package/dist/{MA-4JTQR5LC.mjs → MA-WRX5RCS2.mjs} +1 -1
- package/dist/{MG-V4B3MJ27.mjs → MG-R72YT5VK.mjs} +1 -1
- package/dist/{ML-5UC2UZFE.mjs → ML-VUAFPT44.mjs} +1 -1
- package/dist/{MR-V7C27OIX.mjs → MR-2E64EHZB.mjs} +1 -1
- package/dist/{MU-2QTJWWOZ.mjs → MU-6FUJYQWD.mjs} +1 -1
- package/dist/{MW-QHGL2IKS.mjs → MW-HRW5OHWN.mjs} +1 -1
- package/dist/{MZ-5UZ67NUU.mjs → MZ-3U5UXS5E.mjs} +1 -1
- package/dist/{NA-5VDTGOMK.mjs → NA-XWIW6OOU.mjs} +1 -1
- package/dist/{NE-ZOWNVUFW.mjs → NE-ELKMBL7S.mjs} +1 -1
- package/dist/{NG-RETX6WJ4.mjs → NG-4CWXAYHN.mjs} +2 -2
- package/dist/{RW-GQU5ZEII.mjs → RW-HNJ52BFQ.mjs} +1 -1
- package/dist/{SC-SY5UMMU2.mjs → SC-3DSRWYFW.mjs} +1 -1
- package/dist/{SD-GZVFH7EN.mjs → SD-WB6ISMGF.mjs} +1 -1
- package/dist/{SL-G6OQ2OKF.mjs → SL-4COV24SC.mjs} +1 -1
- package/dist/{SN-KDIN2VHE.mjs → SN-64VQKOL2.mjs} +1 -1
- package/dist/{SO-OYCQEJXC.mjs → SO-HMRU3XDI.mjs} +1 -1
- package/dist/{SS-VC4OP4LH.mjs → SS-TXIVIGCJ.mjs} +1 -1
- package/dist/{ST-W5CRCMYC.mjs → ST-VPGLJ6S4.mjs} +1 -1
- package/dist/{SZ-WPJM53Q7.mjs → SZ-4MEBFNNW.mjs} +1 -1
- package/dist/{TD-LC3R4NYM.mjs → TD-MV3TL2LQ.mjs} +1 -1
- package/dist/{TG-4GRO64UZ.mjs → TG-QLZJRIDX.mjs} +1 -1
- package/dist/{TN-KWXKNLDT.mjs → TN-ZRJRJMOM.mjs} +1 -1
- package/dist/{TZ-MR6WGF2A.mjs → TZ-D53PSFSF.mjs} +1 -1
- package/dist/{UG-UNMXRIJ5.mjs → UG-YVEGQ67T.mjs} +1 -1
- package/dist/{ZA-RNKH3KHE.mjs → ZA-QQ6HKOFU.mjs} +1 -1
- package/dist/{ZM-KVDEVKJK.mjs → ZM-KORM3A4T.mjs} +1 -1
- package/dist/{ZW-EFGG3D6Y.mjs → ZW-WH4BPDKQ.mjs} +1 -1
- package/dist/ao-BN_SJunv.d.mts +387 -0
- package/dist/ao-BN_SJunv.d.ts +387 -0
- package/dist/bf-Dqj39McS.d.mts +279 -0
- package/dist/bf-Dqj39McS.d.ts +279 -0
- package/dist/bi-Ba4A32Yt.d.mts +369 -0
- package/dist/bi-Ba4A32Yt.d.ts +369 -0
- package/dist/bj-fY_W6yBo.d.mts +255 -0
- package/dist/bj-fY_W6yBo.d.ts +255 -0
- package/dist/bw-OCC9w3C4.d.mts +243 -0
- package/dist/bw-OCC9w3C4.d.ts +243 -0
- package/dist/cd-Cpxf_ikm.d.mts +495 -0
- package/dist/cd-Cpxf_ikm.d.ts +495 -0
- package/dist/cf-CrFP7Drd.d.mts +423 -0
- package/dist/cf-CrFP7Drd.d.ts +423 -0
- package/dist/cg-BYxWa6m4.d.mts +279 -0
- package/dist/cg-BYxWa6m4.d.ts +279 -0
- package/dist/chunk-24IV36BQ.mjs +44 -0
- package/dist/chunk-2JSSOTED.mjs +44 -0
- package/dist/chunk-32VQ7KYH.mjs +44 -0
- package/dist/chunk-4RK2CGMU.mjs +44 -0
- package/dist/chunk-55XYJJC6.mjs +44 -0
- package/dist/chunk-5AECN3B2.mjs +1365 -0
- package/dist/chunk-5U5QABNG.mjs +44 -0
- package/dist/chunk-6X3JIUEO.mjs +15 -0
- package/dist/chunk-7D7GXZ7C.mjs +44 -0
- package/dist/chunk-A6XUT3BK.mjs +44 -0
- package/dist/chunk-ADPF6UU2.mjs +44 -0
- package/dist/chunk-BM2DB2IJ.mjs +44 -0
- package/dist/chunk-BNE6IOV4.mjs +44 -0
- package/dist/chunk-C5WTTTBO.mjs +44 -0
- package/dist/chunk-CMCGO53E.mjs +44 -0
- package/dist/chunk-CNXFY74C.mjs +44 -0
- package/dist/chunk-DEZJOYAK.mjs +44 -0
- package/dist/chunk-DSDBWR43.mjs +44 -0
- package/dist/chunk-E5UEB6IB.mjs +44 -0
- package/dist/chunk-EFVKVDU6.mjs +44 -0
- package/dist/chunk-F2MVYZIC.mjs +44 -0
- package/dist/chunk-F5MLJ47Q.mjs +44 -0
- package/dist/chunk-FS65WXD5.mjs +44 -0
- package/dist/chunk-FT3QWXGX.mjs +44 -0
- package/dist/chunk-GALD3KIZ.mjs +44 -0
- package/dist/chunk-GRFQFN2V.mjs +44 -0
- package/dist/chunk-H7CBD2RQ.mjs +44 -0
- package/dist/chunk-HKUC56VX.mjs +44 -0
- package/dist/chunk-ILJYIAIQ.mjs +44 -0
- package/dist/chunk-IXXGIOE5.mjs +44 -0
- package/dist/chunk-J52IN2GT.mjs +44 -0
- package/dist/chunk-JRCVMTYP.mjs +44 -0
- package/dist/chunk-KJGX4DA7.mjs +44 -0
- package/dist/chunk-KV35J3OC.mjs +44 -0
- package/dist/chunk-LD4KKW4K.mjs +44 -0
- package/dist/chunk-LFHXGI7U.mjs +44 -0
- package/dist/chunk-LMVVJ5K4.mjs +44 -0
- package/dist/chunk-LNDPDKVK.mjs +44 -0
- package/dist/chunk-LW5ZKSQJ.mjs +44 -0
- package/dist/chunk-OAHXYNQF.mjs +44 -0
- package/dist/chunk-QKFXNE45.mjs +44 -0
- package/dist/chunk-R6M3OJ43.mjs +44 -0
- package/dist/chunk-SUPWL4GX.mjs +44 -0
- package/dist/chunk-TJZLVPTQ.mjs +44 -0
- package/dist/chunk-UD2BPOD5.mjs +44 -0
- package/dist/chunk-UW3ZFE2X.mjs +44 -0
- package/dist/chunk-V4PVQKP6.mjs +44 -0
- package/dist/chunk-VDMRWF3T.mjs +44 -0
- package/dist/chunk-VHZOL65Z.mjs +44 -0
- package/dist/chunk-WP2RKQ3V.mjs +44 -0
- package/dist/chunk-XCYPHKIQ.mjs +44 -0
- package/dist/chunk-XLX4VLR6.mjs +44 -0
- package/dist/chunk-XR7X4QMD.mjs +44 -0
- package/dist/chunk-Y6AB3PCO.mjs +44 -0
- package/dist/chunk-YERFHYYM.mjs +44 -0
- package/dist/chunk-YSETRABU.mjs +44 -0
- package/dist/ci-C4EwPqRx.d.mts +333 -0
- package/dist/ci-C4EwPqRx.d.ts +333 -0
- package/dist/cm-DFrkXf2R.d.mts +243 -0
- package/dist/cm-DFrkXf2R.d.ts +243 -0
- package/dist/countries/ao.d.mts +1 -0
- package/dist/countries/ao.d.ts +1 -0
- package/dist/countries/ao.js +1622 -0
- package/dist/countries/ao.mjs +12 -0
- package/dist/countries/bf.d.mts +1 -0
- package/dist/countries/bf.d.ts +1 -0
- package/dist/countries/bf.js +1562 -0
- package/dist/countries/bf.mjs +12 -0
- package/dist/countries/bi.d.mts +1 -0
- package/dist/countries/bi.d.ts +1 -0
- package/dist/countries/bi.js +1612 -0
- package/dist/countries/bi.mjs +12 -0
- package/dist/countries/bj.d.mts +1 -0
- package/dist/countries/bj.d.ts +1 -0
- package/dist/countries/bj.js +1550 -0
- package/dist/countries/bj.mjs +12 -0
- package/dist/countries/bw.d.mts +1 -0
- package/dist/countries/bw.d.ts +1 -0
- package/dist/countries/bw.js +1542 -0
- package/dist/countries/bw.mjs +12 -0
- package/dist/countries/cd.d.mts +1 -0
- package/dist/countries/cd.d.ts +1 -0
- package/dist/countries/cd.js +1682 -0
- package/dist/countries/cd.mjs +12 -0
- package/dist/countries/cf.d.mts +1 -0
- package/dist/countries/cf.d.ts +1 -0
- package/dist/countries/cf.js +1642 -0
- package/dist/countries/cf.mjs +12 -0
- package/dist/countries/cg.d.mts +1 -0
- package/dist/countries/cg.d.ts +1 -0
- package/dist/countries/cg.js +1562 -0
- package/dist/countries/cg.mjs +12 -0
- package/dist/countries/ci.d.mts +1 -0
- package/dist/countries/ci.d.ts +1 -0
- package/dist/countries/ci.js +1592 -0
- package/dist/countries/ci.mjs +12 -0
- package/dist/countries/cm.d.mts +1 -0
- package/dist/countries/cm.d.ts +1 -0
- package/dist/countries/cm.js +1542 -0
- package/dist/countries/cm.mjs +12 -0
- package/dist/countries/cv.d.mts +1 -0
- package/dist/countries/cv.d.ts +1 -0
- package/dist/countries/cv.js +1672 -0
- package/dist/countries/cv.mjs +12 -0
- package/dist/countries/dj.d.mts +1 -0
- package/dist/countries/dj.d.ts +1 -0
- package/dist/countries/dj.js +1482 -0
- package/dist/countries/dj.mjs +12 -0
- package/dist/countries/dz.d.mts +1 -0
- package/dist/countries/dz.d.ts +1 -0
- package/dist/countries/dz.js +1964 -0
- package/dist/countries/dz.mjs +12 -0
- package/dist/countries/eg.d.mts +1 -0
- package/dist/countries/eg.d.ts +1 -0
- package/dist/countries/eg.js +1718 -0
- package/dist/countries/eg.mjs +12 -0
- package/dist/countries/er.d.mts +1 -0
- package/dist/countries/er.d.ts +1 -0
- package/dist/countries/er.js +1502 -0
- package/dist/countries/er.mjs +12 -0
- package/dist/countries/et.d.mts +1 -0
- package/dist/countries/et.d.ts +1 -0
- package/dist/countries/et.js +1542 -0
- package/dist/countries/et.mjs +12 -0
- package/dist/countries/ga.d.mts +1 -0
- package/dist/countries/ga.d.ts +1 -0
- package/dist/countries/ga.js +1532 -0
- package/dist/countries/ga.mjs +12 -0
- package/dist/countries/gh.d.mts +1 -0
- package/dist/countries/gh.d.ts +1 -0
- package/dist/countries/gh.js +1602 -0
- package/dist/countries/gh.mjs +12 -0
- package/dist/countries/gm.d.mts +1 -0
- package/dist/countries/gm.d.ts +1 -0
- package/dist/countries/gm.js +1512 -0
- package/dist/countries/gm.mjs +12 -0
- package/dist/countries/gn.d.mts +1 -0
- package/dist/countries/gn.d.ts +1 -0
- package/dist/countries/gn.js +1522 -0
- package/dist/countries/gn.mjs +12 -0
- package/dist/countries/gq.d.mts +1 -0
- package/dist/countries/gq.d.ts +1 -0
- package/dist/countries/gq.js +1492 -0
- package/dist/countries/gq.mjs +12 -0
- package/dist/countries/gw.d.mts +1 -0
- package/dist/countries/gw.d.ts +1 -0
- package/dist/countries/gw.js +1532 -0
- package/dist/countries/gw.mjs +12 -0
- package/dist/countries/index.d.mts +54 -0
- package/dist/countries/index.d.ts +54 -0
- package/dist/countries/index.js +13136 -0
- package/dist/countries/index.mjs +220 -0
- package/dist/countries/ke.d.mts +1 -0
- package/dist/countries/ke.d.ts +1 -0
- package/dist/countries/ke.js +1762 -0
- package/dist/countries/ke.mjs +12 -0
- package/dist/countries/km.d.mts +1 -0
- package/dist/countries/km.d.ts +1 -0
- package/dist/countries/km.js +1472 -0
- package/dist/countries/km.mjs +12 -0
- package/dist/countries/lr.d.mts +1 -0
- package/dist/countries/lr.d.ts +1 -0
- package/dist/countries/lr.js +1592 -0
- package/dist/countries/lr.mjs +12 -0
- package/dist/countries/ls.d.mts +1 -0
- package/dist/countries/ls.d.ts +1 -0
- package/dist/countries/ls.js +1542 -0
- package/dist/countries/ls.mjs +12 -0
- package/dist/countries/ly.d.mts +1 -0
- package/dist/countries/ly.d.ts +1 -0
- package/dist/countries/ly.js +1582 -0
- package/dist/countries/ly.mjs +12 -0
- package/dist/countries/ma.d.mts +1 -0
- package/dist/countries/ma.d.ts +1 -0
- package/dist/countries/ma.js +1572 -0
- package/dist/countries/ma.mjs +12 -0
- package/dist/countries/mg.d.mts +1 -0
- package/dist/countries/mg.d.ts +1 -0
- package/dist/countries/mg.js +1502 -0
- package/dist/countries/mg.mjs +12 -0
- package/dist/countries/ml.d.mts +1 -0
- package/dist/countries/ml.d.ts +1 -0
- package/dist/countries/ml.js +1632 -0
- package/dist/countries/ml.mjs +12 -0
- package/dist/countries/mr.d.mts +1 -0
- package/dist/countries/mr.d.ts +1 -0
- package/dist/countries/mr.js +1592 -0
- package/dist/countries/mr.mjs +12 -0
- package/dist/countries/mu.d.mts +1 -0
- package/dist/countries/mu.d.ts +1 -0
- package/dist/countries/mu.js +1542 -0
- package/dist/countries/mu.mjs +12 -0
- package/dist/countries/mw.d.mts +1 -0
- package/dist/countries/mw.d.ts +1 -0
- package/dist/countries/mw.js +1662 -0
- package/dist/countries/mw.mjs +12 -0
- package/dist/countries/mz.d.mts +1 -0
- package/dist/countries/mz.d.ts +1 -0
- package/dist/countries/mz.js +1552 -0
- package/dist/countries/mz.mjs +12 -0
- package/dist/countries/na.d.mts +1 -0
- package/dist/countries/na.d.ts +1 -0
- package/dist/countries/na.js +1582 -0
- package/dist/countries/na.mjs +12 -0
- package/dist/countries/ne.d.mts +1 -0
- package/dist/countries/ne.d.ts +1 -0
- package/dist/countries/ne.js +1522 -0
- package/dist/countries/ne.mjs +12 -0
- package/dist/countries/ng.d.mts +1 -0
- package/dist/countries/ng.d.ts +1 -0
- package/dist/countries/ng.js +3061 -0
- package/dist/countries/ng.mjs +12 -0
- package/dist/countries/rw.d.mts +1 -0
- package/dist/countries/rw.d.ts +1 -0
- package/dist/countries/rw.js +1487 -0
- package/dist/countries/rw.mjs +12 -0
- package/dist/countries/sc.d.mts +1 -0
- package/dist/countries/sc.d.ts +1 -0
- package/dist/countries/sc.js +1702 -0
- package/dist/countries/sc.mjs +12 -0
- package/dist/countries/sd.d.mts +1 -0
- package/dist/countries/sd.d.ts +1 -0
- package/dist/countries/sd.js +1622 -0
- package/dist/countries/sd.mjs +12 -0
- package/dist/countries/sl.d.mts +1 -0
- package/dist/countries/sl.d.ts +1 -0
- package/dist/countries/sl.js +1502 -0
- package/dist/countries/sl.mjs +12 -0
- package/dist/countries/sn.d.mts +1 -0
- package/dist/countries/sn.d.ts +1 -0
- package/dist/countries/sn.js +1582 -0
- package/dist/countries/sn.mjs +12 -0
- package/dist/countries/so.d.mts +1 -0
- package/dist/countries/so.d.ts +1 -0
- package/dist/countries/so.js +1622 -0
- package/dist/countries/so.mjs +12 -0
- package/dist/countries/ss.d.mts +1 -0
- package/dist/countries/ss.d.ts +1 -0
- package/dist/countries/ss.js +1439 -0
- package/dist/countries/ss.mjs +12 -0
- package/dist/countries/st.d.mts +1 -0
- package/dist/countries/st.d.ts +1 -0
- package/dist/countries/st.js +1462 -0
- package/dist/countries/st.mjs +12 -0
- package/dist/countries/sz.d.mts +1 -0
- package/dist/countries/sz.d.ts +1 -0
- package/dist/countries/sz.js +1502 -0
- package/dist/countries/sz.mjs +12 -0
- package/dist/countries/td.d.mts +1 -0
- package/dist/countries/td.d.ts +1 -0
- package/dist/countries/td.js +1673 -0
- package/dist/countries/td.mjs +12 -0
- package/dist/countries/tg.d.mts +1 -0
- package/dist/countries/tg.d.ts +1 -0
- package/dist/countries/tg.js +1492 -0
- package/dist/countries/tg.mjs +12 -0
- package/dist/countries/tn.d.mts +1 -0
- package/dist/countries/tn.d.ts +1 -0
- package/dist/countries/tn.js +1945 -0
- package/dist/countries/tn.mjs +12 -0
- package/dist/countries/tz.d.mts +1 -0
- package/dist/countries/tz.d.ts +1 -0
- package/dist/countries/tz.js +1652 -0
- package/dist/countries/tz.mjs +12 -0
- package/dist/countries/ug.d.mts +1 -0
- package/dist/countries/ug.d.ts +1 -0
- package/dist/countries/ug.js +1832 -0
- package/dist/countries/ug.mjs +12 -0
- package/dist/countries/za.d.mts +1 -0
- package/dist/countries/za.d.ts +1 -0
- package/dist/countries/za.js +1532 -0
- package/dist/countries/za.mjs +12 -0
- package/dist/countries/zm.d.mts +1 -0
- package/dist/countries/zm.d.ts +1 -0
- package/dist/countries/zm.js +1542 -0
- package/dist/countries/zm.mjs +12 -0
- package/dist/countries/zw.d.mts +1 -0
- package/dist/countries/zw.d.ts +1 -0
- package/dist/countries/zw.js +1542 -0
- package/dist/countries/zw.mjs +12 -0
- package/dist/cv-CtibnUiy.d.mts +477 -0
- package/dist/cv-CtibnUiy.d.ts +477 -0
- package/dist/dj-BQlP5JJi.d.mts +135 -0
- package/dist/dj-BQlP5JJi.d.ts +135 -0
- package/dist/dz-BOMFyjje.d.mts +991 -0
- package/dist/dz-BOMFyjje.d.ts +991 -0
- package/dist/eg-PBCrCZ6T.d.mts +549 -0
- package/dist/eg-PBCrCZ6T.d.ts +549 -0
- package/dist/er-5zA2hEWZ.d.mts +171 -0
- package/dist/er-5zA2hEWZ.d.ts +171 -0
- package/dist/et-BDJKxIIa.d.mts +237 -0
- package/dist/et-BDJKxIIa.d.ts +237 -0
- package/dist/ga-Cc-q2sgL.d.mts +225 -0
- package/dist/ga-Cc-q2sgL.d.ts +225 -0
- package/dist/gh-DmDOd5ct.d.mts +351 -0
- package/dist/gh-DmDOd5ct.d.ts +351 -0
- package/dist/gm-D0b9dn3Y.d.mts +189 -0
- package/dist/gm-D0b9dn3Y.d.ts +189 -0
- package/dist/gn-BJptW1BM.d.mts +207 -0
- package/dist/gn-BJptW1BM.d.ts +207 -0
- package/dist/gq-BeMrVbTH.d.mts +153 -0
- package/dist/gq-BeMrVbTH.d.ts +153 -0
- package/dist/gw-CZCuWEUw.d.mts +225 -0
- package/dist/gw-CZCuWEUw.d.ts +225 -0
- package/dist/index.d.mts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +37 -7
- package/dist/index.mjs +88 -1418
- package/dist/ke-BBmGgMWl.d.mts +639 -0
- package/dist/ke-BBmGgMWl.d.ts +639 -0
- package/dist/km-3puK4Scm.d.mts +117 -0
- package/dist/km-3puK4Scm.d.ts +117 -0
- package/dist/lr-BBOmopNl.d.mts +327 -0
- package/dist/lr-BBOmopNl.d.ts +327 -0
- package/dist/ls-CdxRNwoL.d.mts +243 -0
- package/dist/ls-CdxRNwoL.d.ts +243 -0
- package/dist/ly-Bllzpebp.d.mts +315 -0
- package/dist/ly-Bllzpebp.d.ts +315 -0
- package/dist/ma-C4oUSDzO.d.mts +297 -0
- package/dist/ma-C4oUSDzO.d.ts +297 -0
- package/dist/mg-BG0omeiq.d.mts +171 -0
- package/dist/mg-BG0omeiq.d.ts +171 -0
- package/dist/ml-C4YwmTOg.d.mts +405 -0
- package/dist/ml-C4YwmTOg.d.ts +405 -0
- package/dist/mr-S9qYSgqU.d.mts +333 -0
- package/dist/mr-S9qYSgqU.d.ts +333 -0
- package/dist/mu-CfWnCIpO.d.mts +63 -0
- package/dist/mu-CfWnCIpO.d.ts +63 -0
- package/dist/mw-DLdVyy4w.d.mts +459 -0
- package/dist/mw-DLdVyy4w.d.ts +459 -0
- package/dist/mz-8gAPay7-.d.mts +261 -0
- package/dist/mz-8gAPay7-.d.ts +261 -0
- package/dist/na-BBfqqruE.d.mts +315 -0
- package/dist/na-BBfqqruE.d.ts +315 -0
- package/dist/ne-D02x884b.d.mts +207 -0
- package/dist/ne-D02x884b.d.ts +207 -0
- package/dist/ng-ByrcukXA.d.mts +729 -0
- package/dist/ng-ByrcukXA.d.ts +729 -0
- package/dist/rw-C_8vnNs_.d.mts +143 -0
- package/dist/rw-C_8vnNs_.d.ts +143 -0
- package/dist/sc-4eJgrGsN.d.mts +531 -0
- package/dist/sc-4eJgrGsN.d.ts +531 -0
- package/dist/sd-Ba0Glc9g.d.mts +387 -0
- package/dist/sd-Ba0Glc9g.d.ts +387 -0
- package/dist/sl-DARwWL4M.d.mts +171 -0
- package/dist/sl-DARwWL4M.d.ts +171 -0
- package/dist/sn-Cg4GW7Q-.d.mts +315 -0
- package/dist/sn-Cg4GW7Q-.d.ts +315 -0
- package/dist/so-CecZZSsk.d.mts +387 -0
- package/dist/so-CecZZSsk.d.ts +387 -0
- package/dist/ss-CVBT7yYs.d.mts +63 -0
- package/dist/ss-CVBT7yYs.d.ts +63 -0
- package/dist/st-EOo_jDus.d.mts +99 -0
- package/dist/st-EOo_jDus.d.ts +99 -0
- package/dist/sz-LbYDA00P.d.mts +171 -0
- package/dist/sz-LbYDA00P.d.ts +171 -0
- package/dist/td-xhT3S_h2.d.mts +459 -0
- package/dist/td-xhT3S_h2.d.ts +459 -0
- package/dist/tg-TXAqBUFn.d.mts +153 -0
- package/dist/tg-TXAqBUFn.d.ts +153 -0
- package/dist/tn-Dhzs1vda.d.mts +495 -0
- package/dist/tn-Dhzs1vda.d.ts +495 -0
- package/dist/tz-CWrcjdIl.d.mts +441 -0
- package/dist/tz-CWrcjdIl.d.ts +441 -0
- package/dist/ug-CFvVIavv.d.mts +765 -0
- package/dist/ug-CFvVIavv.d.ts +765 -0
- package/dist/za-DO6TQB4z.d.mts +225 -0
- package/dist/za-DO6TQB4z.d.ts +225 -0
- package/dist/zm-DHXyd4jg.d.mts +243 -0
- package/dist/zm-DHXyd4jg.d.ts +243 -0
- package/dist/zw-BdKdGHba.d.mts +243 -0
- package/dist/zw-BdKdGHba.d.ts +243 -0
- package/jest.config.js +11 -0
- package/package.json +291 -4
- package/dist/chunk-4UEJOM6W.mjs +0 -9
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Guinea-Bissau country data
|
|
3
|
+
* @returns Guinea-Bissau country object
|
|
4
|
+
*/
|
|
5
|
+
declare function getCountry(): Promise<{
|
|
6
|
+
countryCode: string;
|
|
7
|
+
phoneCode: number;
|
|
8
|
+
capitalCity: string;
|
|
9
|
+
colonialMaster: {
|
|
10
|
+
name: string;
|
|
11
|
+
countryCode: string;
|
|
12
|
+
}[];
|
|
13
|
+
flagEmoji: string;
|
|
14
|
+
name: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
currencyCode: string;
|
|
17
|
+
currencySymbol: string;
|
|
18
|
+
officialLanguage: string;
|
|
19
|
+
majorEthnicGroups: string[];
|
|
20
|
+
timezones: {
|
|
21
|
+
iana: string;
|
|
22
|
+
gmtOffset: string;
|
|
23
|
+
}[];
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Get Guinea-Bissau states/tribes data
|
|
27
|
+
* @returns Array of state/tribe data for Guinea-Bissau
|
|
28
|
+
*/
|
|
29
|
+
declare function getStates(): Promise<({
|
|
30
|
+
capitalCity: string;
|
|
31
|
+
subdivisions: string[];
|
|
32
|
+
geoPoliticalZone: string;
|
|
33
|
+
location: string;
|
|
34
|
+
name: string;
|
|
35
|
+
stateCode: string;
|
|
36
|
+
tribes: string[];
|
|
37
|
+
type: string;
|
|
38
|
+
} | {
|
|
39
|
+
capitalCity: string;
|
|
40
|
+
subdivisions: string[];
|
|
41
|
+
geoPoliticalZone: string;
|
|
42
|
+
location: string;
|
|
43
|
+
name: string;
|
|
44
|
+
stateCode: string;
|
|
45
|
+
tribes: string[];
|
|
46
|
+
type: string;
|
|
47
|
+
} | {
|
|
48
|
+
capitalCity: string;
|
|
49
|
+
subdivisions: string[];
|
|
50
|
+
geoPoliticalZone: string;
|
|
51
|
+
location: string;
|
|
52
|
+
name: string;
|
|
53
|
+
stateCode: string;
|
|
54
|
+
tribes: string[];
|
|
55
|
+
type: string;
|
|
56
|
+
} | {
|
|
57
|
+
capitalCity: string;
|
|
58
|
+
subdivisions: string[];
|
|
59
|
+
geoPoliticalZone: string;
|
|
60
|
+
location: string;
|
|
61
|
+
name: string;
|
|
62
|
+
stateCode: string;
|
|
63
|
+
tribes: string[];
|
|
64
|
+
type: string;
|
|
65
|
+
} | {
|
|
66
|
+
capitalCity: string;
|
|
67
|
+
subdivisions: string[];
|
|
68
|
+
geoPoliticalZone: string;
|
|
69
|
+
location: string;
|
|
70
|
+
name: string;
|
|
71
|
+
stateCode: string;
|
|
72
|
+
tribes: string[];
|
|
73
|
+
type: string;
|
|
74
|
+
} | {
|
|
75
|
+
capitalCity: string;
|
|
76
|
+
subdivisions: string[];
|
|
77
|
+
geoPoliticalZone: string;
|
|
78
|
+
location: string;
|
|
79
|
+
name: string;
|
|
80
|
+
stateCode: string;
|
|
81
|
+
tribes: string[];
|
|
82
|
+
type: string;
|
|
83
|
+
} | {
|
|
84
|
+
capitalCity: string;
|
|
85
|
+
subdivisions: string[];
|
|
86
|
+
geoPoliticalZone: string;
|
|
87
|
+
location: string;
|
|
88
|
+
name: string;
|
|
89
|
+
stateCode: string;
|
|
90
|
+
tribes: string[];
|
|
91
|
+
type: string;
|
|
92
|
+
} | {
|
|
93
|
+
capitalCity: string;
|
|
94
|
+
subdivisions: string[];
|
|
95
|
+
geoPoliticalZone: string;
|
|
96
|
+
location: string;
|
|
97
|
+
name: string;
|
|
98
|
+
stateCode: string;
|
|
99
|
+
tribes: string[];
|
|
100
|
+
type: string;
|
|
101
|
+
} | {
|
|
102
|
+
capitalCity: string;
|
|
103
|
+
subdivisions: string[];
|
|
104
|
+
geoPoliticalZone: string;
|
|
105
|
+
location: string;
|
|
106
|
+
name: string;
|
|
107
|
+
stateCode: string;
|
|
108
|
+
tribes: string[];
|
|
109
|
+
type: string;
|
|
110
|
+
})[]>;
|
|
111
|
+
/**
|
|
112
|
+
* Get Guinea-Bissau country with states/tribes data
|
|
113
|
+
* @returns Guinea-Bissau country object with states property
|
|
114
|
+
*/
|
|
115
|
+
declare function getCountryAndStates(): Promise<{
|
|
116
|
+
states: ({
|
|
117
|
+
capitalCity: string;
|
|
118
|
+
subdivisions: string[];
|
|
119
|
+
geoPoliticalZone: string;
|
|
120
|
+
location: string;
|
|
121
|
+
name: string;
|
|
122
|
+
stateCode: string;
|
|
123
|
+
tribes: string[];
|
|
124
|
+
type: string;
|
|
125
|
+
} | {
|
|
126
|
+
capitalCity: string;
|
|
127
|
+
subdivisions: string[];
|
|
128
|
+
geoPoliticalZone: string;
|
|
129
|
+
location: string;
|
|
130
|
+
name: string;
|
|
131
|
+
stateCode: string;
|
|
132
|
+
tribes: string[];
|
|
133
|
+
type: string;
|
|
134
|
+
} | {
|
|
135
|
+
capitalCity: string;
|
|
136
|
+
subdivisions: string[];
|
|
137
|
+
geoPoliticalZone: string;
|
|
138
|
+
location: string;
|
|
139
|
+
name: string;
|
|
140
|
+
stateCode: string;
|
|
141
|
+
tribes: string[];
|
|
142
|
+
type: string;
|
|
143
|
+
} | {
|
|
144
|
+
capitalCity: string;
|
|
145
|
+
subdivisions: string[];
|
|
146
|
+
geoPoliticalZone: string;
|
|
147
|
+
location: string;
|
|
148
|
+
name: string;
|
|
149
|
+
stateCode: string;
|
|
150
|
+
tribes: string[];
|
|
151
|
+
type: string;
|
|
152
|
+
} | {
|
|
153
|
+
capitalCity: string;
|
|
154
|
+
subdivisions: string[];
|
|
155
|
+
geoPoliticalZone: string;
|
|
156
|
+
location: string;
|
|
157
|
+
name: string;
|
|
158
|
+
stateCode: string;
|
|
159
|
+
tribes: string[];
|
|
160
|
+
type: string;
|
|
161
|
+
} | {
|
|
162
|
+
capitalCity: string;
|
|
163
|
+
subdivisions: string[];
|
|
164
|
+
geoPoliticalZone: string;
|
|
165
|
+
location: string;
|
|
166
|
+
name: string;
|
|
167
|
+
stateCode: string;
|
|
168
|
+
tribes: string[];
|
|
169
|
+
type: string;
|
|
170
|
+
} | {
|
|
171
|
+
capitalCity: string;
|
|
172
|
+
subdivisions: string[];
|
|
173
|
+
geoPoliticalZone: string;
|
|
174
|
+
location: string;
|
|
175
|
+
name: string;
|
|
176
|
+
stateCode: string;
|
|
177
|
+
tribes: string[];
|
|
178
|
+
type: string;
|
|
179
|
+
} | {
|
|
180
|
+
capitalCity: string;
|
|
181
|
+
subdivisions: string[];
|
|
182
|
+
geoPoliticalZone: string;
|
|
183
|
+
location: string;
|
|
184
|
+
name: string;
|
|
185
|
+
stateCode: string;
|
|
186
|
+
tribes: string[];
|
|
187
|
+
type: string;
|
|
188
|
+
} | {
|
|
189
|
+
capitalCity: string;
|
|
190
|
+
subdivisions: string[];
|
|
191
|
+
geoPoliticalZone: string;
|
|
192
|
+
location: string;
|
|
193
|
+
name: string;
|
|
194
|
+
stateCode: string;
|
|
195
|
+
tribes: string[];
|
|
196
|
+
type: string;
|
|
197
|
+
})[];
|
|
198
|
+
countryCode: string;
|
|
199
|
+
phoneCode: number;
|
|
200
|
+
capitalCity: string;
|
|
201
|
+
colonialMaster: {
|
|
202
|
+
name: string;
|
|
203
|
+
countryCode: string;
|
|
204
|
+
}[];
|
|
205
|
+
flagEmoji: string;
|
|
206
|
+
name: string;
|
|
207
|
+
currency: string;
|
|
208
|
+
currencyCode: string;
|
|
209
|
+
currencySymbol: string;
|
|
210
|
+
officialLanguage: string;
|
|
211
|
+
majorEthnicGroups: string[];
|
|
212
|
+
timezones: {
|
|
213
|
+
iana: string;
|
|
214
|
+
gmtOffset: string;
|
|
215
|
+
}[];
|
|
216
|
+
}>;
|
|
217
|
+
|
|
218
|
+
declare const gw_getCountry: typeof getCountry;
|
|
219
|
+
declare const gw_getCountryAndStates: typeof getCountryAndStates;
|
|
220
|
+
declare const gw_getStates: typeof getStates;
|
|
221
|
+
declare namespace gw {
|
|
222
|
+
export { gw_getCountry as getCountry, gw_getCountryAndStates as getCountryAndStates, gw_getStates as getStates };
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export { getCountry as a, getStates as b, getCountryAndStates as c, gw as g };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Guinea-Bissau country data
|
|
3
|
+
* @returns Guinea-Bissau country object
|
|
4
|
+
*/
|
|
5
|
+
declare function getCountry(): Promise<{
|
|
6
|
+
countryCode: string;
|
|
7
|
+
phoneCode: number;
|
|
8
|
+
capitalCity: string;
|
|
9
|
+
colonialMaster: {
|
|
10
|
+
name: string;
|
|
11
|
+
countryCode: string;
|
|
12
|
+
}[];
|
|
13
|
+
flagEmoji: string;
|
|
14
|
+
name: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
currencyCode: string;
|
|
17
|
+
currencySymbol: string;
|
|
18
|
+
officialLanguage: string;
|
|
19
|
+
majorEthnicGroups: string[];
|
|
20
|
+
timezones: {
|
|
21
|
+
iana: string;
|
|
22
|
+
gmtOffset: string;
|
|
23
|
+
}[];
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Get Guinea-Bissau states/tribes data
|
|
27
|
+
* @returns Array of state/tribe data for Guinea-Bissau
|
|
28
|
+
*/
|
|
29
|
+
declare function getStates(): Promise<({
|
|
30
|
+
capitalCity: string;
|
|
31
|
+
subdivisions: string[];
|
|
32
|
+
geoPoliticalZone: string;
|
|
33
|
+
location: string;
|
|
34
|
+
name: string;
|
|
35
|
+
stateCode: string;
|
|
36
|
+
tribes: string[];
|
|
37
|
+
type: string;
|
|
38
|
+
} | {
|
|
39
|
+
capitalCity: string;
|
|
40
|
+
subdivisions: string[];
|
|
41
|
+
geoPoliticalZone: string;
|
|
42
|
+
location: string;
|
|
43
|
+
name: string;
|
|
44
|
+
stateCode: string;
|
|
45
|
+
tribes: string[];
|
|
46
|
+
type: string;
|
|
47
|
+
} | {
|
|
48
|
+
capitalCity: string;
|
|
49
|
+
subdivisions: string[];
|
|
50
|
+
geoPoliticalZone: string;
|
|
51
|
+
location: string;
|
|
52
|
+
name: string;
|
|
53
|
+
stateCode: string;
|
|
54
|
+
tribes: string[];
|
|
55
|
+
type: string;
|
|
56
|
+
} | {
|
|
57
|
+
capitalCity: string;
|
|
58
|
+
subdivisions: string[];
|
|
59
|
+
geoPoliticalZone: string;
|
|
60
|
+
location: string;
|
|
61
|
+
name: string;
|
|
62
|
+
stateCode: string;
|
|
63
|
+
tribes: string[];
|
|
64
|
+
type: string;
|
|
65
|
+
} | {
|
|
66
|
+
capitalCity: string;
|
|
67
|
+
subdivisions: string[];
|
|
68
|
+
geoPoliticalZone: string;
|
|
69
|
+
location: string;
|
|
70
|
+
name: string;
|
|
71
|
+
stateCode: string;
|
|
72
|
+
tribes: string[];
|
|
73
|
+
type: string;
|
|
74
|
+
} | {
|
|
75
|
+
capitalCity: string;
|
|
76
|
+
subdivisions: string[];
|
|
77
|
+
geoPoliticalZone: string;
|
|
78
|
+
location: string;
|
|
79
|
+
name: string;
|
|
80
|
+
stateCode: string;
|
|
81
|
+
tribes: string[];
|
|
82
|
+
type: string;
|
|
83
|
+
} | {
|
|
84
|
+
capitalCity: string;
|
|
85
|
+
subdivisions: string[];
|
|
86
|
+
geoPoliticalZone: string;
|
|
87
|
+
location: string;
|
|
88
|
+
name: string;
|
|
89
|
+
stateCode: string;
|
|
90
|
+
tribes: string[];
|
|
91
|
+
type: string;
|
|
92
|
+
} | {
|
|
93
|
+
capitalCity: string;
|
|
94
|
+
subdivisions: string[];
|
|
95
|
+
geoPoliticalZone: string;
|
|
96
|
+
location: string;
|
|
97
|
+
name: string;
|
|
98
|
+
stateCode: string;
|
|
99
|
+
tribes: string[];
|
|
100
|
+
type: string;
|
|
101
|
+
} | {
|
|
102
|
+
capitalCity: string;
|
|
103
|
+
subdivisions: string[];
|
|
104
|
+
geoPoliticalZone: string;
|
|
105
|
+
location: string;
|
|
106
|
+
name: string;
|
|
107
|
+
stateCode: string;
|
|
108
|
+
tribes: string[];
|
|
109
|
+
type: string;
|
|
110
|
+
})[]>;
|
|
111
|
+
/**
|
|
112
|
+
* Get Guinea-Bissau country with states/tribes data
|
|
113
|
+
* @returns Guinea-Bissau country object with states property
|
|
114
|
+
*/
|
|
115
|
+
declare function getCountryAndStates(): Promise<{
|
|
116
|
+
states: ({
|
|
117
|
+
capitalCity: string;
|
|
118
|
+
subdivisions: string[];
|
|
119
|
+
geoPoliticalZone: string;
|
|
120
|
+
location: string;
|
|
121
|
+
name: string;
|
|
122
|
+
stateCode: string;
|
|
123
|
+
tribes: string[];
|
|
124
|
+
type: string;
|
|
125
|
+
} | {
|
|
126
|
+
capitalCity: string;
|
|
127
|
+
subdivisions: string[];
|
|
128
|
+
geoPoliticalZone: string;
|
|
129
|
+
location: string;
|
|
130
|
+
name: string;
|
|
131
|
+
stateCode: string;
|
|
132
|
+
tribes: string[];
|
|
133
|
+
type: string;
|
|
134
|
+
} | {
|
|
135
|
+
capitalCity: string;
|
|
136
|
+
subdivisions: string[];
|
|
137
|
+
geoPoliticalZone: string;
|
|
138
|
+
location: string;
|
|
139
|
+
name: string;
|
|
140
|
+
stateCode: string;
|
|
141
|
+
tribes: string[];
|
|
142
|
+
type: string;
|
|
143
|
+
} | {
|
|
144
|
+
capitalCity: string;
|
|
145
|
+
subdivisions: string[];
|
|
146
|
+
geoPoliticalZone: string;
|
|
147
|
+
location: string;
|
|
148
|
+
name: string;
|
|
149
|
+
stateCode: string;
|
|
150
|
+
tribes: string[];
|
|
151
|
+
type: string;
|
|
152
|
+
} | {
|
|
153
|
+
capitalCity: string;
|
|
154
|
+
subdivisions: string[];
|
|
155
|
+
geoPoliticalZone: string;
|
|
156
|
+
location: string;
|
|
157
|
+
name: string;
|
|
158
|
+
stateCode: string;
|
|
159
|
+
tribes: string[];
|
|
160
|
+
type: string;
|
|
161
|
+
} | {
|
|
162
|
+
capitalCity: string;
|
|
163
|
+
subdivisions: string[];
|
|
164
|
+
geoPoliticalZone: string;
|
|
165
|
+
location: string;
|
|
166
|
+
name: string;
|
|
167
|
+
stateCode: string;
|
|
168
|
+
tribes: string[];
|
|
169
|
+
type: string;
|
|
170
|
+
} | {
|
|
171
|
+
capitalCity: string;
|
|
172
|
+
subdivisions: string[];
|
|
173
|
+
geoPoliticalZone: string;
|
|
174
|
+
location: string;
|
|
175
|
+
name: string;
|
|
176
|
+
stateCode: string;
|
|
177
|
+
tribes: string[];
|
|
178
|
+
type: string;
|
|
179
|
+
} | {
|
|
180
|
+
capitalCity: string;
|
|
181
|
+
subdivisions: string[];
|
|
182
|
+
geoPoliticalZone: string;
|
|
183
|
+
location: string;
|
|
184
|
+
name: string;
|
|
185
|
+
stateCode: string;
|
|
186
|
+
tribes: string[];
|
|
187
|
+
type: string;
|
|
188
|
+
} | {
|
|
189
|
+
capitalCity: string;
|
|
190
|
+
subdivisions: string[];
|
|
191
|
+
geoPoliticalZone: string;
|
|
192
|
+
location: string;
|
|
193
|
+
name: string;
|
|
194
|
+
stateCode: string;
|
|
195
|
+
tribes: string[];
|
|
196
|
+
type: string;
|
|
197
|
+
})[];
|
|
198
|
+
countryCode: string;
|
|
199
|
+
phoneCode: number;
|
|
200
|
+
capitalCity: string;
|
|
201
|
+
colonialMaster: {
|
|
202
|
+
name: string;
|
|
203
|
+
countryCode: string;
|
|
204
|
+
}[];
|
|
205
|
+
flagEmoji: string;
|
|
206
|
+
name: string;
|
|
207
|
+
currency: string;
|
|
208
|
+
currencyCode: string;
|
|
209
|
+
currencySymbol: string;
|
|
210
|
+
officialLanguage: string;
|
|
211
|
+
majorEthnicGroups: string[];
|
|
212
|
+
timezones: {
|
|
213
|
+
iana: string;
|
|
214
|
+
gmtOffset: string;
|
|
215
|
+
}[];
|
|
216
|
+
}>;
|
|
217
|
+
|
|
218
|
+
declare const gw_getCountry: typeof getCountry;
|
|
219
|
+
declare const gw_getCountryAndStates: typeof getCountryAndStates;
|
|
220
|
+
declare const gw_getStates: typeof getStates;
|
|
221
|
+
declare namespace gw {
|
|
222
|
+
export { gw_getCountry as getCountry, gw_getCountryAndStates as getCountryAndStates, gw_getStates as getStates };
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export { getCountry as a, getStates as b, getCountryAndStates as c, gw as g };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
type RegionResult = {
|
|
2
|
+
capitalCity: string;
|
|
3
|
+
country: string;
|
|
4
|
+
countryCode: string;
|
|
5
|
+
geoPoliticalZone: string;
|
|
6
|
+
location: string;
|
|
7
|
+
name: string;
|
|
8
|
+
stateCode: string;
|
|
9
|
+
subdivisions: string[];
|
|
10
|
+
tribes: string[];
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves all African countries with their metadata.
|
|
16
|
+
* @returns Array of country objects with countryCode property.
|
|
17
|
+
*/
|
|
1
18
|
declare function getCountries(): Promise<({
|
|
2
19
|
countryCode: string;
|
|
3
20
|
phoneCode: number;
|
|
@@ -1019,6 +1036,10 @@ declare function getCountries(): Promise<({
|
|
|
1019
1036
|
gmtOffset: string;
|
|
1020
1037
|
}[];
|
|
1021
1038
|
})[]>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Retrieves all African countries and embeds their tribe data as states.
|
|
1041
|
+
* @returns Array of country objects with states property containing tribe data.
|
|
1042
|
+
*/
|
|
1022
1043
|
declare function getCountriesAndStates(): Promise<({
|
|
1023
1044
|
states: unknown[];
|
|
1024
1045
|
countryCode: string;
|
|
@@ -2094,8 +2115,29 @@ declare function getCountriesAndStates(): Promise<({
|
|
|
2094
2115
|
gmtOffset: string;
|
|
2095
2116
|
}[];
|
|
2096
2117
|
})[]>;
|
|
2118
|
+
/**
|
|
2119
|
+
* Retrieves a single African country by its code.
|
|
2120
|
+
* @param countryCode - The ISO code of the country.
|
|
2121
|
+
* @returns The country object or empty object if not found.
|
|
2122
|
+
*/
|
|
2097
2123
|
declare function getCountry(countryCode: string): Promise<{}>;
|
|
2124
|
+
/**
|
|
2125
|
+
* Retrieves a country and its tribe data as states by country code.
|
|
2126
|
+
* @param countryCode - The ISO code of the country.
|
|
2127
|
+
* @returns Country object with states property or empty object if not found.
|
|
2128
|
+
*/
|
|
2098
2129
|
declare function getCountryAndState(countryCode: string): Promise<{}>;
|
|
2130
|
+
/**
|
|
2131
|
+
* Retrieves tribe data (states) for a given country code.
|
|
2132
|
+
* @param countryCode - The ISO code of the country.
|
|
2133
|
+
* @returns Array of tribe data objects for the country.
|
|
2134
|
+
*/
|
|
2099
2135
|
declare function getCountryStates(countryCode: string): Promise<unknown[]>;
|
|
2136
|
+
/**
|
|
2137
|
+
* Finds all regions where a specific tribe is located across Africa
|
|
2138
|
+
* @param tribeName - The name of the tribe to search for
|
|
2139
|
+
* @returns Promise resolving to an array of objects containing combined state and country information where the tribe is found
|
|
2140
|
+
*/
|
|
2141
|
+
declare function getTribeRegion(tribeName: string): Promise<RegionResult[]>;
|
|
2100
2142
|
|
|
2101
|
-
export { getCountries, getCountriesAndStates, getCountry, getCountryAndState, getCountryStates };
|
|
2143
|
+
export { getCountries, getCountriesAndStates, getCountry, getCountryAndState, getCountryStates, getTribeRegion };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
type RegionResult = {
|
|
2
|
+
capitalCity: string;
|
|
3
|
+
country: string;
|
|
4
|
+
countryCode: string;
|
|
5
|
+
geoPoliticalZone: string;
|
|
6
|
+
location: string;
|
|
7
|
+
name: string;
|
|
8
|
+
stateCode: string;
|
|
9
|
+
subdivisions: string[];
|
|
10
|
+
tribes: string[];
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves all African countries with their metadata.
|
|
16
|
+
* @returns Array of country objects with countryCode property.
|
|
17
|
+
*/
|
|
1
18
|
declare function getCountries(): Promise<({
|
|
2
19
|
countryCode: string;
|
|
3
20
|
phoneCode: number;
|
|
@@ -1019,6 +1036,10 @@ declare function getCountries(): Promise<({
|
|
|
1019
1036
|
gmtOffset: string;
|
|
1020
1037
|
}[];
|
|
1021
1038
|
})[]>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Retrieves all African countries and embeds their tribe data as states.
|
|
1041
|
+
* @returns Array of country objects with states property containing tribe data.
|
|
1042
|
+
*/
|
|
1022
1043
|
declare function getCountriesAndStates(): Promise<({
|
|
1023
1044
|
states: unknown[];
|
|
1024
1045
|
countryCode: string;
|
|
@@ -2094,8 +2115,29 @@ declare function getCountriesAndStates(): Promise<({
|
|
|
2094
2115
|
gmtOffset: string;
|
|
2095
2116
|
}[];
|
|
2096
2117
|
})[]>;
|
|
2118
|
+
/**
|
|
2119
|
+
* Retrieves a single African country by its code.
|
|
2120
|
+
* @param countryCode - The ISO code of the country.
|
|
2121
|
+
* @returns The country object or empty object if not found.
|
|
2122
|
+
*/
|
|
2097
2123
|
declare function getCountry(countryCode: string): Promise<{}>;
|
|
2124
|
+
/**
|
|
2125
|
+
* Retrieves a country and its tribe data as states by country code.
|
|
2126
|
+
* @param countryCode - The ISO code of the country.
|
|
2127
|
+
* @returns Country object with states property or empty object if not found.
|
|
2128
|
+
*/
|
|
2098
2129
|
declare function getCountryAndState(countryCode: string): Promise<{}>;
|
|
2130
|
+
/**
|
|
2131
|
+
* Retrieves tribe data (states) for a given country code.
|
|
2132
|
+
* @param countryCode - The ISO code of the country.
|
|
2133
|
+
* @returns Array of tribe data objects for the country.
|
|
2134
|
+
*/
|
|
2099
2135
|
declare function getCountryStates(countryCode: string): Promise<unknown[]>;
|
|
2136
|
+
/**
|
|
2137
|
+
* Finds all regions where a specific tribe is located across Africa
|
|
2138
|
+
* @param tribeName - The name of the tribe to search for
|
|
2139
|
+
* @returns Promise resolving to an array of objects containing combined state and country information where the tribe is found
|
|
2140
|
+
*/
|
|
2141
|
+
declare function getTribeRegion(tribeName: string): Promise<RegionResult[]>;
|
|
2100
2142
|
|
|
2101
|
-
export { getCountries, getCountriesAndStates, getCountry, getCountryAndState, getCountryStates };
|
|
2143
|
+
export { getCountries, getCountriesAndStates, getCountry, getCountryAndState, getCountryStates, getTribeRegion };
|
package/dist/index.js
CHANGED
|
@@ -3652,7 +3652,7 @@ var require_KE = __commonJS({
|
|
|
3652
3652
|
location: "Central Kenya",
|
|
3653
3653
|
name: "Laikipia",
|
|
3654
3654
|
stateCode: "LAI",
|
|
3655
|
-
tribes: ["Laikipiak Maasai"],
|
|
3655
|
+
tribes: ["Laikipiak Maasai", "Kalenjin"],
|
|
3656
3656
|
type: "province"
|
|
3657
3657
|
},
|
|
3658
3658
|
LAMU: {
|
|
@@ -3672,7 +3672,7 @@ var require_KE = __commonJS({
|
|
|
3672
3672
|
location: "Central Kenya",
|
|
3673
3673
|
name: "Machakos",
|
|
3674
3674
|
stateCode: "MKS",
|
|
3675
|
-
tribes: ["Kikuyu"],
|
|
3675
|
+
tribes: ["Kikuyu", "Kamba"],
|
|
3676
3676
|
type: "province"
|
|
3677
3677
|
},
|
|
3678
3678
|
MOMBASA: {
|
|
@@ -5750,7 +5750,7 @@ var require_NG = __commonJS({
|
|
|
5750
5750
|
type: "state"
|
|
5751
5751
|
},
|
|
5752
5752
|
ANAMBRA: {
|
|
5753
|
-
capitalCity: "
|
|
5753
|
+
capitalCity: "Awka",
|
|
5754
5754
|
subdivisions: [
|
|
5755
5755
|
"Aguata",
|
|
5756
5756
|
"Anambra East",
|
|
@@ -9992,7 +9992,8 @@ __export(src_exports, {
|
|
|
9992
9992
|
getCountriesAndStates: () => getCountriesAndStates,
|
|
9993
9993
|
getCountry: () => getCountry,
|
|
9994
9994
|
getCountryAndState: () => getCountryAndState,
|
|
9995
|
-
getCountryStates: () => getCountryStates
|
|
9995
|
+
getCountryStates: () => getCountryStates,
|
|
9996
|
+
getTribeRegion: () => getTribeRegion
|
|
9996
9997
|
});
|
|
9997
9998
|
module.exports = __toCommonJS(src_exports);
|
|
9998
9999
|
|
|
@@ -10211,7 +10212,7 @@ var countries_default = {
|
|
|
10211
10212
|
countryCode: "FR"
|
|
10212
10213
|
}
|
|
10213
10214
|
],
|
|
10214
|
-
countryCode: "",
|
|
10215
|
+
countryCode: "DZ",
|
|
10215
10216
|
flagEmoji: "\u{1F1E9}\u{1F1FF}",
|
|
10216
10217
|
name: "Algeria",
|
|
10217
10218
|
currency: "Algerian dinar",
|
|
@@ -10605,7 +10606,7 @@ var countries_default = {
|
|
|
10605
10606
|
currencyCode: "KES",
|
|
10606
10607
|
currencySymbol: "KSh",
|
|
10607
10608
|
officialLanguage: "English",
|
|
10608
|
-
majorEthnicGroups: ["Kalenjin", "Kikuyu", "Luo", "Maasai"],
|
|
10609
|
+
majorEthnicGroups: ["Digo", "Kalenjin", "Kikuyu", "Luhya", "Luo", "Maasai"],
|
|
10609
10610
|
timezones: [
|
|
10610
10611
|
{
|
|
10611
10612
|
iana: "Africa/Nairobi",
|
|
@@ -11466,11 +11467,40 @@ async function getCountryStates(countryCode) {
|
|
|
11466
11467
|
const tribes = await getTribeData(countryCode);
|
|
11467
11468
|
return tribes;
|
|
11468
11469
|
}
|
|
11470
|
+
async function getTribeRegion(tribeName) {
|
|
11471
|
+
const countries = await getCountriesAndStates();
|
|
11472
|
+
const regions = [];
|
|
11473
|
+
countries.forEach((country) => {
|
|
11474
|
+
if (country.states && Array.isArray(country.states)) {
|
|
11475
|
+
const matchingStates = country.states.filter(
|
|
11476
|
+
(state) => state.tribes?.some(
|
|
11477
|
+
(tribe) => tribe.toLowerCase().includes(tribeName.toLowerCase())
|
|
11478
|
+
)
|
|
11479
|
+
);
|
|
11480
|
+
matchingStates.forEach((state) => {
|
|
11481
|
+
regions.push({
|
|
11482
|
+
capitalCity: state.capitalCity,
|
|
11483
|
+
country: country.name,
|
|
11484
|
+
countryCode: country.countryCode,
|
|
11485
|
+
geoPoliticalZone: state.geoPoliticalZone || "",
|
|
11486
|
+
location: state.location || "",
|
|
11487
|
+
name: state.name,
|
|
11488
|
+
stateCode: state.stateCode,
|
|
11489
|
+
subdivisions: state.subdivisions || [],
|
|
11490
|
+
tribes: state.tribes || [],
|
|
11491
|
+
type: state.type || ""
|
|
11492
|
+
});
|
|
11493
|
+
});
|
|
11494
|
+
}
|
|
11495
|
+
});
|
|
11496
|
+
return regions;
|
|
11497
|
+
}
|
|
11469
11498
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11470
11499
|
0 && (module.exports = {
|
|
11471
11500
|
getCountries,
|
|
11472
11501
|
getCountriesAndStates,
|
|
11473
11502
|
getCountry,
|
|
11474
11503
|
getCountryAndState,
|
|
11475
|
-
getCountryStates
|
|
11504
|
+
getCountryStates,
|
|
11505
|
+
getTribeRegion
|
|
11476
11506
|
});
|