@temboplus/afloat 0.1.78 → 0.1.79
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/esm/src/features/admin/contract.d.ts +46 -46
- package/esm/src/features/contact/contract.d.ts +1 -1
- package/esm/src/features/payout/contract.d.ts +2 -2
- package/esm/src/features/wallet/contract.d.ts +5 -5
- package/esm/src/models/contact/derivatives/contact.js +1 -1
- package/esm/src/models/contact/derivatives/contact_info.d.ts +1 -1
- package/esm/src/models/contact/derivatives/contact_info.d.ts.map +1 -1
- package/esm/src/models/contact/derivatives/contact_info.js +1 -1
- package/esm/src/models/payout/channel.d.ts +1 -1
- package/esm/src/models/payout/channel.d.ts.map +1 -1
- package/esm/src/models/payout/channel.js +1 -1
- package/esm/src/models/payout/derivatives/payout.d.ts +1 -1
- package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -1
- package/esm/src/models/payout/derivatives/payout.js +1 -1
- package/esm/src/models/payout/narration.js +1 -1
- package/esm/src/models/user/profile.d.ts +1 -1
- package/esm/src/models/user/profile.d.ts.map +1 -1
- package/esm/src/models/user/profile.js +1 -1
- package/esm/src/models/wallet/schemas.d.ts +3 -3
- package/esm/src/models/wallet/schemas.js +1 -1
- package/esm/src/models/wallet/wallet.d.ts +2 -2
- package/esm/src/models/wallet/wallet.d.ts.map +1 -1
- package/esm/src/models/wallet/wallet.js +1 -1
- package/package.json +3 -4
- package/script/npm/src/src/features/admin/contract.d.ts +46 -46
- package/script/npm/src/src/features/contact/contract.d.ts +1 -1
- package/script/npm/src/src/features/payout/contract.d.ts +2 -2
- package/script/npm/src/src/features/wallet/contract.d.ts +5 -5
- package/script/npm/src/src/models/contact/derivatives/contact.js +3 -3
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts +1 -1
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -1
- package/script/npm/src/src/models/contact/derivatives/contact_info.js +6 -6
- package/script/npm/src/src/models/payout/channel.d.ts +1 -1
- package/script/npm/src/src/models/payout/channel.d.ts.map +1 -1
- package/script/npm/src/src/models/payout/channel.js +3 -3
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts +1 -1
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -1
- package/script/npm/src/src/models/payout/derivatives/payout.js +4 -4
- package/script/npm/src/src/models/payout/narration.js +5 -5
- package/script/npm/src/src/models/user/profile.d.ts +1 -1
- package/script/npm/src/src/models/user/profile.d.ts.map +1 -1
- package/script/npm/src/src/models/user/profile.js +3 -3
- package/script/npm/src/src/models/wallet/schemas.d.ts +3 -3
- package/script/npm/src/src/models/wallet/schemas.js +4 -4
- package/script/npm/src/src/models/wallet/wallet.d.ts +2 -2
- package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -1
- package/script/npm/src/src/models/wallet/wallet.js +6 -6
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +0 -5
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +0 -4
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +0 -11
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +0 -19
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +0 -2
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +0 -7
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +0 -197
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +0 -39
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +0 -2475
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +0 -1901
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +0 -1073
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +0 -3809
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +0 -2325
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +0 -53
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +0 -190
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +0 -40
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +0 -58
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +0 -3
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +0 -2
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +0 -11
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +0 -26
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +0 -257
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +0 -450
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +0 -5
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +0 -4
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +0 -7
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +0 -45
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +0 -8
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +0 -9
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +0 -822
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +0 -737
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +0 -4
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +0 -3
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +0 -63
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +0 -105
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +0 -21
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +0 -25
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +0 -465
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +0 -471
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +0 -4
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +0 -3
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +0 -21
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +0 -28
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +0 -8
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +0 -9
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +0 -6
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +0 -5
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +0 -13
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +0 -13
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +0 -162
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +0 -459
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +0 -267
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +0 -498
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +0 -6
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +0 -5
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +0 -77
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +0 -90
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +0 -30
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +0 -47
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +0 -141
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +0 -290
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +0 -2
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +0 -144
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +0 -318
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +0 -12
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +0 -19
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +0 -4
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +0 -3
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +0 -32
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +0 -68
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +0 -21
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +0 -1
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +0 -34
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +0 -5
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +0 -20
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +0 -11
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +0 -23
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +0 -2
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +0 -17
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +0 -7
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +0 -199
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +0 -39
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +0 -2477
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +0 -1901
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +0 -1075
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +0 -3809
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +0 -2327
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +0 -53
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +0 -194
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +0 -40
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +0 -62
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +0 -3
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +0 -18
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +0 -11
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +0 -30
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +0 -257
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +0 -458
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +0 -5
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +0 -20
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +0 -7
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +0 -48
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +0 -8
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +0 -12
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +0 -822
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +0 -745
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +0 -4
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +0 -19
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +0 -63
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +0 -108
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +0 -21
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +0 -30
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +0 -465
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +0 -479
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +0 -4
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +0 -19
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +0 -21
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +0 -31
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +0 -8
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +0 -12
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +0 -6
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +0 -21
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +0 -13
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +0 -16
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +0 -162
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +0 -463
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +0 -267
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +0 -506
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +0 -6
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +0 -21
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +0 -77
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +0 -94
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +0 -30
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +0 -50
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +0 -141
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +0 -294
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +0 -2
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +0 -17
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +0 -144
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +0 -328
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +0 -12
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +0 -23
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +0 -4
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +0 -19
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +0 -32
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +0 -75
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +0 -21
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +0 -1
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +0 -39
|
@@ -1,822 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview This file contains both the Country class and CountryService class.
|
|
3
|
-
*
|
|
4
|
-
* ARCHITECTURE NOTE: Country and CountryService Classes
|
|
5
|
-
* ======================================================
|
|
6
|
-
*
|
|
7
|
-
* These two classes have been intentionally placed in the same file to resolve
|
|
8
|
-
* a circular dependency issue. The original implementation had these in separate files:
|
|
9
|
-
*
|
|
10
|
-
* - Country class: Defines country properties and static accessors
|
|
11
|
-
* - CountryService class: Loads country data and provides instance methods
|
|
12
|
-
*
|
|
13
|
-
* The circular dependency occurred because:
|
|
14
|
-
* 1. Country needed CountryService to initialize its static properties
|
|
15
|
-
* 2. CountryService needed Country to create Country instances
|
|
16
|
-
*
|
|
17
|
-
* By combining both classes in a single file:
|
|
18
|
-
* - We ensure proper initialization order
|
|
19
|
-
* - All static properties are immediately available after import
|
|
20
|
-
* - The public API remains unchanged
|
|
21
|
-
*
|
|
22
|
-
* This approach also better encapsulates related functionality in a single module,
|
|
23
|
-
* making it easier to understand and maintain the country-related domain model.
|
|
24
|
-
* The addition of currency support through the getCurrency() method leverages
|
|
25
|
-
* the Currency model while maintaining a clean separation of concerns.
|
|
26
|
-
*/
|
|
27
|
-
import { Currency } from "../currency/currency.js";
|
|
28
|
-
import type { CurrencyCode } from "../currency/index.js";
|
|
29
|
-
import type { CountryCode, ISO2CountryCode, ISO3CountryCode } from "./types.js";
|
|
30
|
-
/**
|
|
31
|
-
* Enum for continents
|
|
32
|
-
*/
|
|
33
|
-
export declare enum CONTINENT {
|
|
34
|
-
AFRICA = "Africa",
|
|
35
|
-
ANTARCTICA = "Antarctica",
|
|
36
|
-
ASIA = "Asia",
|
|
37
|
-
EUROPE = "Europe",
|
|
38
|
-
NORTH_AMERICA = "North America",
|
|
39
|
-
OCEANIA = "Oceania",
|
|
40
|
-
SOUTH_AMERICA = "South America"
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Enum for sub-regions
|
|
44
|
-
*/
|
|
45
|
-
export declare enum SUB_REGION {
|
|
46
|
-
AUSTRALIA_AND_NEW_ZEALAND = "Australia and New Zealand",
|
|
47
|
-
CARIBBEAN = "Caribbean",
|
|
48
|
-
CENTRAL_AMERICA = "Central America",
|
|
49
|
-
CENTRAL_ASIA = "Central Asia",
|
|
50
|
-
EASTERN_AFRICA = "Eastern Africa",
|
|
51
|
-
EASTERN_ASIA = "Eastern Asia",
|
|
52
|
-
EASTERN_EUROPE = "Eastern Europe",
|
|
53
|
-
MELANESIA = "Melanesia",
|
|
54
|
-
MICRONESIA = "Micronesia",
|
|
55
|
-
MIDDLE_AFRICA = "Middle Africa",
|
|
56
|
-
NORTHERN_AFRICA = "Northern Africa",
|
|
57
|
-
NORTHERN_AMERICA = "Northern America",
|
|
58
|
-
NORTHERN_EUROPE = "Northern Europe",
|
|
59
|
-
POLYNESIA = "Polynesia",
|
|
60
|
-
SOUTH_EASTERN_ASIA = "South-eastern Asia",
|
|
61
|
-
SOUTHERN_AFRICA = "Southern Africa",
|
|
62
|
-
SOUTHERN_ASIA = "Southern Asia",
|
|
63
|
-
SOUTHERN_EUROPE = "Southern Europe",
|
|
64
|
-
WESTERN_AFRICA = "Western Africa",
|
|
65
|
-
WESTERN_ASIA = "Western Asia",
|
|
66
|
-
WESTERN_EUROPE = "Western Europe"
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Represents a country with essential details.
|
|
70
|
-
* @class Country
|
|
71
|
-
*/
|
|
72
|
-
export declare class Country {
|
|
73
|
-
private readonly _name;
|
|
74
|
-
private readonly _iso2;
|
|
75
|
-
private readonly _nameOfficial;
|
|
76
|
-
private readonly _iso3;
|
|
77
|
-
private readonly _flagEmoji;
|
|
78
|
-
private readonly _continent;
|
|
79
|
-
private readonly _region;
|
|
80
|
-
private readonly _currencyCode;
|
|
81
|
-
static readonly AF: Country;
|
|
82
|
-
static readonly AX: Country;
|
|
83
|
-
static readonly AL: Country;
|
|
84
|
-
static readonly DZ: Country;
|
|
85
|
-
static readonly AS: Country;
|
|
86
|
-
static readonly AD: Country;
|
|
87
|
-
static readonly AO: Country;
|
|
88
|
-
static readonly AI: Country;
|
|
89
|
-
static readonly AQ: Country;
|
|
90
|
-
static readonly AG: Country;
|
|
91
|
-
static readonly AR: Country;
|
|
92
|
-
static readonly AM: Country;
|
|
93
|
-
static readonly AW: Country;
|
|
94
|
-
static readonly AU: Country;
|
|
95
|
-
static readonly AT: Country;
|
|
96
|
-
static readonly AZ: Country;
|
|
97
|
-
static readonly BS: Country;
|
|
98
|
-
static readonly BH: Country;
|
|
99
|
-
static readonly BD: Country;
|
|
100
|
-
static readonly BB: Country;
|
|
101
|
-
static readonly BY: Country;
|
|
102
|
-
static readonly BE: Country;
|
|
103
|
-
static readonly BZ: Country;
|
|
104
|
-
static readonly BJ: Country;
|
|
105
|
-
static readonly BM: Country;
|
|
106
|
-
static readonly BT: Country;
|
|
107
|
-
static readonly BO: Country;
|
|
108
|
-
static readonly BA: Country;
|
|
109
|
-
static readonly BW: Country;
|
|
110
|
-
static readonly BV: Country;
|
|
111
|
-
static readonly BR: Country;
|
|
112
|
-
static readonly IO: Country;
|
|
113
|
-
static readonly BN: Country;
|
|
114
|
-
static readonly BG: Country;
|
|
115
|
-
static readonly BF: Country;
|
|
116
|
-
static readonly BI: Country;
|
|
117
|
-
static readonly KH: Country;
|
|
118
|
-
static readonly CM: Country;
|
|
119
|
-
static readonly CA: Country;
|
|
120
|
-
static readonly CV: Country;
|
|
121
|
-
static readonly KY: Country;
|
|
122
|
-
static readonly CF: Country;
|
|
123
|
-
static readonly TD: Country;
|
|
124
|
-
static readonly CL: Country;
|
|
125
|
-
static readonly CN: Country;
|
|
126
|
-
static readonly CX: Country;
|
|
127
|
-
static readonly CC: Country;
|
|
128
|
-
static readonly CO: Country;
|
|
129
|
-
static readonly KM: Country;
|
|
130
|
-
static readonly CG: Country;
|
|
131
|
-
static readonly CD: Country;
|
|
132
|
-
static readonly CK: Country;
|
|
133
|
-
static readonly CR: Country;
|
|
134
|
-
static readonly CI: Country;
|
|
135
|
-
static readonly HR: Country;
|
|
136
|
-
static readonly CU: Country;
|
|
137
|
-
static readonly CY: Country;
|
|
138
|
-
static readonly CZ: Country;
|
|
139
|
-
static readonly DK: Country;
|
|
140
|
-
static readonly DJ: Country;
|
|
141
|
-
static readonly DM: Country;
|
|
142
|
-
static readonly DO: Country;
|
|
143
|
-
static readonly EC: Country;
|
|
144
|
-
static readonly EG: Country;
|
|
145
|
-
static readonly SV: Country;
|
|
146
|
-
static readonly GQ: Country;
|
|
147
|
-
static readonly ER: Country;
|
|
148
|
-
static readonly EE: Country;
|
|
149
|
-
static readonly ET: Country;
|
|
150
|
-
static readonly FK: Country;
|
|
151
|
-
static readonly FO: Country;
|
|
152
|
-
static readonly FJ: Country;
|
|
153
|
-
static readonly FI: Country;
|
|
154
|
-
static readonly FR: Country;
|
|
155
|
-
static readonly GF: Country;
|
|
156
|
-
static readonly PF: Country;
|
|
157
|
-
static readonly TF: Country;
|
|
158
|
-
static readonly GA: Country;
|
|
159
|
-
static readonly GM: Country;
|
|
160
|
-
static readonly GE: Country;
|
|
161
|
-
static readonly DE: Country;
|
|
162
|
-
static readonly GH: Country;
|
|
163
|
-
static readonly GI: Country;
|
|
164
|
-
static readonly GR: Country;
|
|
165
|
-
static readonly GL: Country;
|
|
166
|
-
static readonly GD: Country;
|
|
167
|
-
static readonly GP: Country;
|
|
168
|
-
static readonly GU: Country;
|
|
169
|
-
static readonly GT: Country;
|
|
170
|
-
static readonly GG: Country;
|
|
171
|
-
static readonly GN: Country;
|
|
172
|
-
static readonly GW: Country;
|
|
173
|
-
static readonly GY: Country;
|
|
174
|
-
static readonly HT: Country;
|
|
175
|
-
static readonly HM: Country;
|
|
176
|
-
static readonly VA: Country;
|
|
177
|
-
static readonly HN: Country;
|
|
178
|
-
static readonly HK: Country;
|
|
179
|
-
static readonly HU: Country;
|
|
180
|
-
static readonly IS: Country;
|
|
181
|
-
static readonly IN: Country;
|
|
182
|
-
static readonly ID: Country;
|
|
183
|
-
static readonly IR: Country;
|
|
184
|
-
static readonly IQ: Country;
|
|
185
|
-
static readonly IE: Country;
|
|
186
|
-
static readonly IM: Country;
|
|
187
|
-
static readonly IL: Country;
|
|
188
|
-
static readonly IT: Country;
|
|
189
|
-
static readonly JM: Country;
|
|
190
|
-
static readonly JP: Country;
|
|
191
|
-
static readonly JE: Country;
|
|
192
|
-
static readonly JO: Country;
|
|
193
|
-
static readonly KZ: Country;
|
|
194
|
-
static readonly KE: Country;
|
|
195
|
-
static readonly KI: Country;
|
|
196
|
-
static readonly KP: Country;
|
|
197
|
-
static readonly KR: Country;
|
|
198
|
-
static readonly KW: Country;
|
|
199
|
-
static readonly KG: Country;
|
|
200
|
-
static readonly LA: Country;
|
|
201
|
-
static readonly LV: Country;
|
|
202
|
-
static readonly LB: Country;
|
|
203
|
-
static readonly LS: Country;
|
|
204
|
-
static readonly LR: Country;
|
|
205
|
-
static readonly LY: Country;
|
|
206
|
-
static readonly LI: Country;
|
|
207
|
-
static readonly LT: Country;
|
|
208
|
-
static readonly LU: Country;
|
|
209
|
-
static readonly MO: Country;
|
|
210
|
-
static readonly MK: Country;
|
|
211
|
-
static readonly MG: Country;
|
|
212
|
-
static readonly MW: Country;
|
|
213
|
-
static readonly MY: Country;
|
|
214
|
-
static readonly MV: Country;
|
|
215
|
-
static readonly ML: Country;
|
|
216
|
-
static readonly MT: Country;
|
|
217
|
-
static readonly MH: Country;
|
|
218
|
-
static readonly MQ: Country;
|
|
219
|
-
static readonly MR: Country;
|
|
220
|
-
static readonly MU: Country;
|
|
221
|
-
static readonly YT: Country;
|
|
222
|
-
static readonly MX: Country;
|
|
223
|
-
static readonly FM: Country;
|
|
224
|
-
static readonly MD: Country;
|
|
225
|
-
static readonly MC: Country;
|
|
226
|
-
static readonly MN: Country;
|
|
227
|
-
static readonly ME: Country;
|
|
228
|
-
static readonly MS: Country;
|
|
229
|
-
static readonly MA: Country;
|
|
230
|
-
static readonly MZ: Country;
|
|
231
|
-
static readonly MM: Country;
|
|
232
|
-
static readonly NA: Country;
|
|
233
|
-
static readonly NR: Country;
|
|
234
|
-
static readonly NP: Country;
|
|
235
|
-
static readonly NL: Country;
|
|
236
|
-
static readonly NC: Country;
|
|
237
|
-
static readonly NZ: Country;
|
|
238
|
-
static readonly NI: Country;
|
|
239
|
-
static readonly NE: Country;
|
|
240
|
-
static readonly NG: Country;
|
|
241
|
-
static readonly NU: Country;
|
|
242
|
-
static readonly NF: Country;
|
|
243
|
-
static readonly MP: Country;
|
|
244
|
-
static readonly NO: Country;
|
|
245
|
-
static readonly OM: Country;
|
|
246
|
-
static readonly PK: Country;
|
|
247
|
-
static readonly PW: Country;
|
|
248
|
-
static readonly PS: Country;
|
|
249
|
-
static readonly PA: Country;
|
|
250
|
-
static readonly PG: Country;
|
|
251
|
-
static readonly PY: Country;
|
|
252
|
-
static readonly PE: Country;
|
|
253
|
-
static readonly PH: Country;
|
|
254
|
-
static readonly PN: Country;
|
|
255
|
-
static readonly PL: Country;
|
|
256
|
-
static readonly PT: Country;
|
|
257
|
-
static readonly PR: Country;
|
|
258
|
-
static readonly QA: Country;
|
|
259
|
-
static readonly RE: Country;
|
|
260
|
-
static readonly RO: Country;
|
|
261
|
-
static readonly RU: Country;
|
|
262
|
-
static readonly RW: Country;
|
|
263
|
-
static readonly SH: Country;
|
|
264
|
-
static readonly KN: Country;
|
|
265
|
-
static readonly LC: Country;
|
|
266
|
-
static readonly PM: Country;
|
|
267
|
-
static readonly VC: Country;
|
|
268
|
-
static readonly WS: Country;
|
|
269
|
-
static readonly SM: Country;
|
|
270
|
-
static readonly ST: Country;
|
|
271
|
-
static readonly SA: Country;
|
|
272
|
-
static readonly SN: Country;
|
|
273
|
-
static readonly RS: Country;
|
|
274
|
-
static readonly SC: Country;
|
|
275
|
-
static readonly SL: Country;
|
|
276
|
-
static readonly SG: Country;
|
|
277
|
-
static readonly SK: Country;
|
|
278
|
-
static readonly SI: Country;
|
|
279
|
-
static readonly SB: Country;
|
|
280
|
-
static readonly SO: Country;
|
|
281
|
-
static readonly ZA: Country;
|
|
282
|
-
static readonly GS: Country;
|
|
283
|
-
static readonly SS: Country;
|
|
284
|
-
static readonly ES: Country;
|
|
285
|
-
static readonly LK: Country;
|
|
286
|
-
static readonly SD: Country;
|
|
287
|
-
static readonly SR: Country;
|
|
288
|
-
static readonly SJ: Country;
|
|
289
|
-
static readonly SZ: Country;
|
|
290
|
-
static readonly SE: Country;
|
|
291
|
-
static readonly CH: Country;
|
|
292
|
-
static readonly SY: Country;
|
|
293
|
-
static readonly TW: Country;
|
|
294
|
-
static readonly TJ: Country;
|
|
295
|
-
static readonly TZ: Country;
|
|
296
|
-
static readonly TH: Country;
|
|
297
|
-
static readonly TL: Country;
|
|
298
|
-
static readonly TG: Country;
|
|
299
|
-
static readonly TK: Country;
|
|
300
|
-
static readonly TO: Country;
|
|
301
|
-
static readonly TT: Country;
|
|
302
|
-
static readonly TN: Country;
|
|
303
|
-
static readonly TR: Country;
|
|
304
|
-
static readonly TM: Country;
|
|
305
|
-
static readonly TC: Country;
|
|
306
|
-
static readonly TV: Country;
|
|
307
|
-
static readonly UG: Country;
|
|
308
|
-
static readonly UA: Country;
|
|
309
|
-
static readonly AE: Country;
|
|
310
|
-
static readonly GB: Country;
|
|
311
|
-
static readonly US: Country;
|
|
312
|
-
static readonly UM: Country;
|
|
313
|
-
static readonly UY: Country;
|
|
314
|
-
static readonly UZ: Country;
|
|
315
|
-
static readonly VU: Country;
|
|
316
|
-
static readonly VE: Country;
|
|
317
|
-
static readonly VN: Country;
|
|
318
|
-
static readonly VG: Country;
|
|
319
|
-
static readonly VI: Country;
|
|
320
|
-
static readonly WF: Country;
|
|
321
|
-
static readonly EH: Country;
|
|
322
|
-
static readonly YE: Country;
|
|
323
|
-
static readonly ZM: Country;
|
|
324
|
-
static readonly ZW: Country;
|
|
325
|
-
static readonly AFGHANISTAN: Country;
|
|
326
|
-
static readonly ALAND_ISLANDS: Country;
|
|
327
|
-
static readonly ALBANIA: Country;
|
|
328
|
-
static readonly ALGERIA: Country;
|
|
329
|
-
static readonly AMERICAN_SAMOA: Country;
|
|
330
|
-
static readonly ANDORRA: Country;
|
|
331
|
-
static readonly ANGOLA: Country;
|
|
332
|
-
static readonly ANGUILLA: Country;
|
|
333
|
-
static readonly ANTARCTICA: Country;
|
|
334
|
-
static readonly ANTIGUA_AND_BARBUDA: Country;
|
|
335
|
-
static readonly ARGENTINA: Country;
|
|
336
|
-
static readonly ARMENIA: Country;
|
|
337
|
-
static readonly ARUBA: Country;
|
|
338
|
-
static readonly AUSTRALIA: Country;
|
|
339
|
-
static readonly AUSTRIA: Country;
|
|
340
|
-
static readonly AZERBAIJAN: Country;
|
|
341
|
-
static readonly BAHAMAS: Country;
|
|
342
|
-
static readonly BAHRAIN: Country;
|
|
343
|
-
static readonly BANGLADESH: Country;
|
|
344
|
-
static readonly BARBADOS: Country;
|
|
345
|
-
static readonly BELARUS: Country;
|
|
346
|
-
static readonly BELGIUM: Country;
|
|
347
|
-
static readonly BELIZE: Country;
|
|
348
|
-
static readonly BENIN: Country;
|
|
349
|
-
static readonly BERMUDA: Country;
|
|
350
|
-
static readonly BHUTAN: Country;
|
|
351
|
-
static readonly BOLIVIA: Country;
|
|
352
|
-
static readonly BOSNIA_AND_HERZEGOVINA: Country;
|
|
353
|
-
static readonly BOTSWANA: Country;
|
|
354
|
-
static readonly BOUVET_ISLAND: Country;
|
|
355
|
-
static readonly BRAZIL: Country;
|
|
356
|
-
static readonly BRITISH_INDIAN_OCEAN_TERRITORY: Country;
|
|
357
|
-
static readonly BRITISH_VIRGIN_ISLANDS: Country;
|
|
358
|
-
static readonly BRUNEI: Country;
|
|
359
|
-
static readonly BULGARIA: Country;
|
|
360
|
-
static readonly BURKINA_FASO: Country;
|
|
361
|
-
static readonly BURUNDI: Country;
|
|
362
|
-
static readonly CABO_VERDE: Country;
|
|
363
|
-
static readonly CAMBODIA: Country;
|
|
364
|
-
static readonly CAMEROON: Country;
|
|
365
|
-
static readonly CANADA: Country;
|
|
366
|
-
static readonly CAYMAN_ISLANDS: Country;
|
|
367
|
-
static readonly CENTRAL_AFRICAN_REPUBLIC: Country;
|
|
368
|
-
static readonly CHAD: Country;
|
|
369
|
-
static readonly CHILE: Country;
|
|
370
|
-
static readonly CHINA: Country;
|
|
371
|
-
static readonly CHRISTMAS_ISLAND: Country;
|
|
372
|
-
static readonly COCOS_ISLANDS: Country;
|
|
373
|
-
static readonly COLOMBIA: Country;
|
|
374
|
-
static readonly COMOROS: Country;
|
|
375
|
-
static readonly CONGO: Country;
|
|
376
|
-
static readonly COOK_ISLANDS: Country;
|
|
377
|
-
static readonly COSTA_RICA: Country;
|
|
378
|
-
static readonly COTE_DIVOIRE: Country;
|
|
379
|
-
static readonly CROATIA: Country;
|
|
380
|
-
static readonly CUBA: Country;
|
|
381
|
-
static readonly CYPRUS: Country;
|
|
382
|
-
static readonly CZECHIA: Country;
|
|
383
|
-
static readonly DEMOCRATIC_REPUBLIC_OF_CONGO: Country;
|
|
384
|
-
static readonly DENMARK: Country;
|
|
385
|
-
static readonly DJIBOUTI: Country;
|
|
386
|
-
static readonly DOMINICA: Country;
|
|
387
|
-
static readonly DOMINICAN_REPUBLIC: Country;
|
|
388
|
-
static readonly ECUADOR: Country;
|
|
389
|
-
static readonly EGYPT: Country;
|
|
390
|
-
static readonly EL_SALVADOR: Country;
|
|
391
|
-
static readonly EQUATORIAL_GUINEA: Country;
|
|
392
|
-
static readonly ERITREA: Country;
|
|
393
|
-
static readonly ESTONIA: Country;
|
|
394
|
-
static readonly ESWATINI: Country;
|
|
395
|
-
static readonly ETHIOPIA: Country;
|
|
396
|
-
static readonly FALKLAND_ISLANDS: Country;
|
|
397
|
-
static readonly FAROE_ISLANDS: Country;
|
|
398
|
-
static readonly FIJI: Country;
|
|
399
|
-
static readonly FINLAND: Country;
|
|
400
|
-
static readonly FRANCE: Country;
|
|
401
|
-
static readonly FRENCH_GUIANA: Country;
|
|
402
|
-
static readonly FRENCH_POLYNESIA: Country;
|
|
403
|
-
static readonly FRENCH_SOUTHERN_TERRITORIES: Country;
|
|
404
|
-
static readonly GABON: Country;
|
|
405
|
-
static readonly GAMBIA: Country;
|
|
406
|
-
static readonly GEORGIA: Country;
|
|
407
|
-
static readonly GERMANY: Country;
|
|
408
|
-
static readonly GHANA: Country;
|
|
409
|
-
static readonly GIBRALTAR: Country;
|
|
410
|
-
static readonly GREECE: Country;
|
|
411
|
-
static readonly GREENLAND: Country;
|
|
412
|
-
static readonly GRENADA: Country;
|
|
413
|
-
static readonly GUADELOUPE: Country;
|
|
414
|
-
static readonly GUAM: Country;
|
|
415
|
-
static readonly GUATEMALA: Country;
|
|
416
|
-
static readonly GUERNSEY: Country;
|
|
417
|
-
static readonly GUINEA: Country;
|
|
418
|
-
static readonly GUINEA_BISSAU: Country;
|
|
419
|
-
static readonly GUYANA: Country;
|
|
420
|
-
static readonly HAITI: Country;
|
|
421
|
-
static readonly HEARD_ISLAND_AND_MCDONALD_ISLANDS: Country;
|
|
422
|
-
static readonly HOLY_SEE: Country;
|
|
423
|
-
static readonly HONDURAS: Country;
|
|
424
|
-
static readonly HONG_KONG: Country;
|
|
425
|
-
static readonly HUNGARY: Country;
|
|
426
|
-
static readonly ICELAND: Country;
|
|
427
|
-
static readonly INDIA: Country;
|
|
428
|
-
static readonly INDONESIA: Country;
|
|
429
|
-
static readonly IRAN: Country;
|
|
430
|
-
static readonly IRAQ: Country;
|
|
431
|
-
static readonly IRELAND: Country;
|
|
432
|
-
static readonly ISLE_OF_MAN: Country;
|
|
433
|
-
static readonly ISRAEL: Country;
|
|
434
|
-
static readonly ITALY: Country;
|
|
435
|
-
static readonly JAMAICA: Country;
|
|
436
|
-
static readonly JAPAN: Country;
|
|
437
|
-
static readonly JERSEY: Country;
|
|
438
|
-
static readonly JORDAN: Country;
|
|
439
|
-
static readonly KAZAKHSTAN: Country;
|
|
440
|
-
static readonly KENYA: Country;
|
|
441
|
-
static readonly KIRIBATI: Country;
|
|
442
|
-
static readonly NORTH_KOREA: Country;
|
|
443
|
-
static readonly SOUTH_KOREA: Country;
|
|
444
|
-
static readonly KUWAIT: Country;
|
|
445
|
-
static readonly KYRGYZSTAN: Country;
|
|
446
|
-
static readonly LAO: Country;
|
|
447
|
-
static readonly LATVIA: Country;
|
|
448
|
-
static readonly LEBANON: Country;
|
|
449
|
-
static readonly LESOTHO: Country;
|
|
450
|
-
static readonly LIBERIA: Country;
|
|
451
|
-
static readonly LIBYA: Country;
|
|
452
|
-
static readonly LIECHTENSTEIN: Country;
|
|
453
|
-
static readonly LITHUANIA: Country;
|
|
454
|
-
static readonly LUXEMBOURG: Country;
|
|
455
|
-
static readonly MACAO: Country;
|
|
456
|
-
static readonly MACEDONIA: Country;
|
|
457
|
-
static readonly MADAGASCAR: Country;
|
|
458
|
-
static readonly MALAWI: Country;
|
|
459
|
-
static readonly MALAYSIA: Country;
|
|
460
|
-
static readonly MALDIVES: Country;
|
|
461
|
-
static readonly MALI: Country;
|
|
462
|
-
static readonly MALTA: Country;
|
|
463
|
-
static readonly MARSHALL_ISLANDS: Country;
|
|
464
|
-
static readonly MARTINIQUE: Country;
|
|
465
|
-
static readonly MAURITANIA: Country;
|
|
466
|
-
static readonly MAURITIUS: Country;
|
|
467
|
-
static readonly MAYOTTE: Country;
|
|
468
|
-
static readonly MEXICO: Country;
|
|
469
|
-
static readonly MICRONESIA: Country;
|
|
470
|
-
static readonly MOLDOVA: Country;
|
|
471
|
-
static readonly MONACO: Country;
|
|
472
|
-
static readonly MONGOLIA: Country;
|
|
473
|
-
static readonly MONTENEGRO: Country;
|
|
474
|
-
static readonly MONTSERRAT: Country;
|
|
475
|
-
static readonly MOROCCO: Country;
|
|
476
|
-
static readonly MOZAMBIQUE: Country;
|
|
477
|
-
static readonly MYANMAR: Country;
|
|
478
|
-
static readonly NAMIBIA: Country;
|
|
479
|
-
static readonly NAURU: Country;
|
|
480
|
-
static readonly NEPAL: Country;
|
|
481
|
-
static readonly NETHERLANDS: Country;
|
|
482
|
-
static readonly NEW_CALEDONIA: Country;
|
|
483
|
-
static readonly NEW_ZEALAND: Country;
|
|
484
|
-
static readonly NICARAGUA: Country;
|
|
485
|
-
static readonly NIGER: Country;
|
|
486
|
-
static readonly NIGERIA: Country;
|
|
487
|
-
static readonly NIUE: Country;
|
|
488
|
-
static readonly NORFOLK_ISLAND: Country;
|
|
489
|
-
static readonly NORTHERN_MARIANA_ISLANDS: Country;
|
|
490
|
-
static readonly NORWAY: Country;
|
|
491
|
-
static readonly OMAN: Country;
|
|
492
|
-
static readonly PAKISTAN: Country;
|
|
493
|
-
static readonly PALAU: Country;
|
|
494
|
-
static readonly PALESTINE: Country;
|
|
495
|
-
static readonly PANAMA: Country;
|
|
496
|
-
static readonly PAPUA_NEW_GUINEA: Country;
|
|
497
|
-
static readonly PARAGUAY: Country;
|
|
498
|
-
static readonly PERU: Country;
|
|
499
|
-
static readonly PHILIPPINES: Country;
|
|
500
|
-
static readonly PITCAIRN: Country;
|
|
501
|
-
static readonly POLAND: Country;
|
|
502
|
-
static readonly PORTUGAL: Country;
|
|
503
|
-
static readonly PUERTO_RICO: Country;
|
|
504
|
-
static readonly QATAR: Country;
|
|
505
|
-
static readonly REUNION: Country;
|
|
506
|
-
static readonly ROMANIA: Country;
|
|
507
|
-
static readonly RUSSIA: Country;
|
|
508
|
-
static readonly RWANDA: Country;
|
|
509
|
-
static readonly SAINT_HELENA: Country;
|
|
510
|
-
static readonly SAINT_KITTS_AND_NEVIS: Country;
|
|
511
|
-
static readonly SAINT_LUCIA: Country;
|
|
512
|
-
static readonly SAINT_PIERRE_AND_MIQUELON: Country;
|
|
513
|
-
static readonly SAINT_VINCENT_AND_THE_GRENADINES: Country;
|
|
514
|
-
static readonly SAMOA: Country;
|
|
515
|
-
static readonly SAN_MARINO: Country;
|
|
516
|
-
static readonly SAO_TOME_AND_PRINCIPE: Country;
|
|
517
|
-
static readonly SAUDI_ARABIA: Country;
|
|
518
|
-
static readonly SENEGAL: Country;
|
|
519
|
-
static readonly SERBIA: Country;
|
|
520
|
-
static readonly SEYCHELLES: Country;
|
|
521
|
-
static readonly SIERRA_LEONE: Country;
|
|
522
|
-
static readonly SINGAPORE: Country;
|
|
523
|
-
static readonly SLOVAKIA: Country;
|
|
524
|
-
static readonly SLOVENIA: Country;
|
|
525
|
-
static readonly SOLOMON_ISLANDS: Country;
|
|
526
|
-
static readonly SOMALIA: Country;
|
|
527
|
-
static readonly SOUTH_AFRICA: Country;
|
|
528
|
-
static readonly SOUTH_GEORGIA_AND_SANDWICH_ISLANDS: Country;
|
|
529
|
-
static readonly SOUTH_SUDAN: Country;
|
|
530
|
-
static readonly SPAIN: Country;
|
|
531
|
-
static readonly SRI_LANKA: Country;
|
|
532
|
-
static readonly SUDAN: Country;
|
|
533
|
-
static readonly SURINAME: Country;
|
|
534
|
-
static readonly SVALBARD_AND_JAN_MAYEN: Country;
|
|
535
|
-
static readonly SWAZILAND: Country;
|
|
536
|
-
static readonly SWEDEN: Country;
|
|
537
|
-
static readonly SWITZERLAND: Country;
|
|
538
|
-
static readonly SYRIA: Country;
|
|
539
|
-
static readonly TAIWAN: Country;
|
|
540
|
-
static readonly TAJIKISTAN: Country;
|
|
541
|
-
static readonly TANZANIA: Country;
|
|
542
|
-
static readonly THAILAND: Country;
|
|
543
|
-
static readonly TIMOR_LESTE: Country;
|
|
544
|
-
static readonly TOGO: Country;
|
|
545
|
-
static readonly TOKELAU: Country;
|
|
546
|
-
static readonly TONGA: Country;
|
|
547
|
-
static readonly TRINIDAD_AND_TOBAGO: Country;
|
|
548
|
-
static readonly TUNISIA: Country;
|
|
549
|
-
static readonly TURKEY: Country;
|
|
550
|
-
static readonly TURKMENISTAN: Country;
|
|
551
|
-
static readonly TURKS_AND_CAICOS_ISLANDS: Country;
|
|
552
|
-
static readonly TUVALU: Country;
|
|
553
|
-
static readonly UGANDA: Country;
|
|
554
|
-
static readonly UKRAINE: Country;
|
|
555
|
-
static readonly UNITED_ARAB_EMIRATES: Country;
|
|
556
|
-
static readonly UNITED_KINGDOM: Country;
|
|
557
|
-
static readonly UNITED_STATES: Country;
|
|
558
|
-
static readonly UNITED_STATES_MINOR_OUTLYING_ISLANDS: Country;
|
|
559
|
-
static readonly URUGUAY: Country;
|
|
560
|
-
static readonly UZBEKISTAN: Country;
|
|
561
|
-
static readonly VANUATU: Country;
|
|
562
|
-
static readonly VENEZUELA: Country;
|
|
563
|
-
static readonly VIETNAM: Country;
|
|
564
|
-
static readonly VIRGIN_ISLANDS_BRITISH: Country;
|
|
565
|
-
static readonly VIRGIN_ISLANDS_US: Country;
|
|
566
|
-
static readonly WALLIS_AND_FUTUNA: Country;
|
|
567
|
-
static readonly WESTERN_SAHARA: Country;
|
|
568
|
-
static readonly YEMEN: Country;
|
|
569
|
-
static readonly ZAMBIA: Country;
|
|
570
|
-
static readonly ZIMBABWE: Country;
|
|
571
|
-
/**
|
|
572
|
-
* Creates a new Country instance.
|
|
573
|
-
* @param {string} _name - The common name of the country
|
|
574
|
-
* @param {string} _iso2 - The ISO-2 country code
|
|
575
|
-
* @param {string} _nameOfficial - The official name of the country
|
|
576
|
-
* @param {string} _iso3 - The ISO-3 country code
|
|
577
|
-
* @param {string} _flagEmoji - The flag emoji of the country
|
|
578
|
-
* @param {CONTINENT} _continent - The continent where the country is located
|
|
579
|
-
* @param {SUB_REGION} _region - The region within the continent where the country is located
|
|
580
|
-
* @param {string | null} _currencyCode - The ISO currency code used in the country
|
|
581
|
-
*/
|
|
582
|
-
constructor(_name: string, _iso2: ISO2CountryCode, _nameOfficial: string, _iso3: ISO3CountryCode, _flagEmoji?: string, _continent?: CONTINENT, _region?: SUB_REGION, _currencyCode?: CurrencyCode | null);
|
|
583
|
-
/**
|
|
584
|
-
* Gets the common name of the country.
|
|
585
|
-
* @returns {string} The common name of the country
|
|
586
|
-
*/
|
|
587
|
-
get name(): string;
|
|
588
|
-
/**
|
|
589
|
-
* Gets the ISO-2 code of the country.
|
|
590
|
-
* @returns {ISO2CountryCode} The ISO-2 code of the country
|
|
591
|
-
*/
|
|
592
|
-
get code(): ISO2CountryCode;
|
|
593
|
-
/**
|
|
594
|
-
* Gets the official name of the country.
|
|
595
|
-
* @returns {string} The official name of the country
|
|
596
|
-
*/
|
|
597
|
-
get nameOfficial(): string;
|
|
598
|
-
/**
|
|
599
|
-
* Gets the ISO-3 code of the country.
|
|
600
|
-
* @returns {ISO3CountryCode} The ISO-3 code of the country
|
|
601
|
-
*/
|
|
602
|
-
get iso3(): ISO3CountryCode;
|
|
603
|
-
/**
|
|
604
|
-
* Gets the flag emoji of the country.
|
|
605
|
-
* @returns {string} The flag emoji of the country
|
|
606
|
-
*/
|
|
607
|
-
get flagEmoji(): string;
|
|
608
|
-
/**
|
|
609
|
-
* Gets the continent where the country is located.
|
|
610
|
-
* @returns {CONTINENT} The continent where the country is located
|
|
611
|
-
*/
|
|
612
|
-
get continent(): CONTINENT;
|
|
613
|
-
/**
|
|
614
|
-
* Gets the region within the continent where the country is located.
|
|
615
|
-
* @returns {SUB_REGION} The region within the continent where the country is located
|
|
616
|
-
*/
|
|
617
|
-
get region(): SUB_REGION;
|
|
618
|
-
/**
|
|
619
|
-
* Gets the ISO currency code used in the country.
|
|
620
|
-
* @returns {string | null} The ISO currency code of the country, or null if not available
|
|
621
|
-
*/
|
|
622
|
-
get currencyCode(): CurrencyCode | null;
|
|
623
|
-
/**
|
|
624
|
-
* Gets the Currency instance for this country.
|
|
625
|
-
* @returns {Currency | undefined} The Currency instance or undefined if no currency is assigned
|
|
626
|
-
*/
|
|
627
|
-
getCurrency(): Currency | undefined;
|
|
628
|
-
/**
|
|
629
|
-
* Creates a string representation of the country.
|
|
630
|
-
* @returns {string} String representation of the country
|
|
631
|
-
*/
|
|
632
|
-
toString(): string;
|
|
633
|
-
/**
|
|
634
|
-
* Creates a detailed string representation of the country including the flag.
|
|
635
|
-
* @returns {string} Detailed string representation of the country
|
|
636
|
-
*/
|
|
637
|
-
toDetailedString(): string;
|
|
638
|
-
/**
|
|
639
|
-
* Retrieves a country by its ISO-2 or ISO-3 code.
|
|
640
|
-
* @param {CountryCode} code The ISO-2 or ISO-3 code of the country.
|
|
641
|
-
* @returns {Country | undefined} The country corresponding to the ISO code or `undefined` if not found.
|
|
642
|
-
*/
|
|
643
|
-
static fromCode(code: CountryCode): Country | undefined;
|
|
644
|
-
/**
|
|
645
|
-
* Retrieves a country by its ISO-3 code.
|
|
646
|
-
* @param {ISO3CountryCode} iso3 The ISO-3 code of the country.
|
|
647
|
-
* @returns {Country | undefined} The country corresponding to the ISO-3 code or `undefined` if not found.
|
|
648
|
-
*/
|
|
649
|
-
static fromIso3(iso3: ISO3CountryCode): Country | undefined;
|
|
650
|
-
/**
|
|
651
|
-
* Retrieves a country by its name.
|
|
652
|
-
* @param {string} countryName The name of the country.
|
|
653
|
-
* @returns {Country | undefined} The country corresponding to the name or `undefined` if not found.
|
|
654
|
-
*/
|
|
655
|
-
static fromName(countryName: string): Country | undefined;
|
|
656
|
-
/**
|
|
657
|
-
* Returns all available countries.
|
|
658
|
-
* @returns {Country[]} Array of all countries
|
|
659
|
-
*/
|
|
660
|
-
static getAll(): Country[];
|
|
661
|
-
/**
|
|
662
|
-
* Returns countries from a specific continent.
|
|
663
|
-
* @param {CONTINENT} continent The continent enum value
|
|
664
|
-
* @returns {Country[]} Array of countries in the specified continent
|
|
665
|
-
*/
|
|
666
|
-
static getByContinent(continent: CONTINENT): Country[];
|
|
667
|
-
/**
|
|
668
|
-
* Returns countries from a specific region.
|
|
669
|
-
* @param {SUB_REGION} region The region enum value
|
|
670
|
-
* @returns {Country[]} Array of countries in the specified region
|
|
671
|
-
*/
|
|
672
|
-
static getByRegion(region: SUB_REGION): Country[];
|
|
673
|
-
/**
|
|
674
|
-
* Returns a list of all available continents.
|
|
675
|
-
* @returns {CONTINENT[]} Array of continent enum values
|
|
676
|
-
*/
|
|
677
|
-
static getContinents(): CONTINENT[];
|
|
678
|
-
/**
|
|
679
|
-
* Returns a list of all available regions.
|
|
680
|
-
* @returns {SUB_REGION[]} Array of region enum values
|
|
681
|
-
*/
|
|
682
|
-
static getRegions(): SUB_REGION[];
|
|
683
|
-
/**
|
|
684
|
-
* Validates if a given country name is valid
|
|
685
|
-
* @param countryName The country name to validate
|
|
686
|
-
* @returns True if the country name is valid
|
|
687
|
-
*/
|
|
688
|
-
static isValidName(countryName?: string | null): boolean;
|
|
689
|
-
/**
|
|
690
|
-
* Checks the validity of the country data
|
|
691
|
-
* @returns true if the country information is available and valid
|
|
692
|
-
*/
|
|
693
|
-
validate(): boolean;
|
|
694
|
-
/**
|
|
695
|
-
* Attempts to create a Country instance from a country name or ISO code
|
|
696
|
-
* @param input The country name or ISO code
|
|
697
|
-
* @returns A Country instance if valid input, undefined otherwise
|
|
698
|
-
*/
|
|
699
|
-
static from(input: string): Country | undefined;
|
|
700
|
-
/**
|
|
701
|
-
* Validates if the input can be used to construct a valid Country instance
|
|
702
|
-
* @param input The country name or ISO code to validate
|
|
703
|
-
* @returns True if input can construct a valid country, false otherwise
|
|
704
|
-
*/
|
|
705
|
-
static canConstruct(input?: string | null): boolean;
|
|
706
|
-
/**
|
|
707
|
-
* Checks if an unknown value is a Country instance
|
|
708
|
-
* @param obj The value to validate
|
|
709
|
-
* @returns Type predicate indicating if the value is a valid Country
|
|
710
|
-
*/
|
|
711
|
-
static is(obj: unknown): obj is Country;
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* Service for managing country data.
|
|
715
|
-
* @class CountryService
|
|
716
|
-
*/
|
|
717
|
-
export declare class CountryService {
|
|
718
|
-
private static instance;
|
|
719
|
-
private countryList;
|
|
720
|
-
private codeRecord;
|
|
721
|
-
private iso3Record;
|
|
722
|
-
private nameRecord;
|
|
723
|
-
private continentRecord;
|
|
724
|
-
private regionRecord;
|
|
725
|
-
private staticReferences;
|
|
726
|
-
private constructor();
|
|
727
|
-
/**
|
|
728
|
-
* Gets the singleton instance of CountryService.
|
|
729
|
-
* Creates the instance if it doesn't exist.
|
|
730
|
-
* @static
|
|
731
|
-
* @returns {CountryService} The singleton instance
|
|
732
|
-
*/
|
|
733
|
-
static getInstance(): CountryService;
|
|
734
|
-
/**
|
|
735
|
-
* Maps a string continent name to the CONTINENT enum
|
|
736
|
-
* @param continentName String continent name from JSON
|
|
737
|
-
* @returns The corresponding CONTINENT enum value
|
|
738
|
-
*/
|
|
739
|
-
private mapContinent;
|
|
740
|
-
/**
|
|
741
|
-
* Maps a string region name to the SUB_REGION enum
|
|
742
|
-
* @param regionName String region name from JSON
|
|
743
|
-
* @returns The corresponding SUB_REGION enum value
|
|
744
|
-
*/
|
|
745
|
-
private mapRegion;
|
|
746
|
-
/**
|
|
747
|
-
* Initializes the service with country data.
|
|
748
|
-
* Should be called once when your application starts.
|
|
749
|
-
*/
|
|
750
|
-
private initialize;
|
|
751
|
-
/**
|
|
752
|
-
* Initialize the static properties on the Country class
|
|
753
|
-
*/
|
|
754
|
-
private initializeCountryStatics;
|
|
755
|
-
/**
|
|
756
|
-
* Gets all countries.
|
|
757
|
-
* @returns {Country[]} Array of all countries
|
|
758
|
-
*/
|
|
759
|
-
getAll(): Country[];
|
|
760
|
-
/**
|
|
761
|
-
* Gets static country references to be used by the Country class.
|
|
762
|
-
* @returns {Map<string, Country>} Map of static references
|
|
763
|
-
*/
|
|
764
|
-
getStaticReferences(): Map<string, Country>;
|
|
765
|
-
/**
|
|
766
|
-
* Gets all countries as a record.
|
|
767
|
-
* @returns {Record<string, Country>} Record of country codes and country objects
|
|
768
|
-
*/
|
|
769
|
-
getAllAsRecord(): Record<string, Country>;
|
|
770
|
-
/**
|
|
771
|
-
* Gets all countries from a specific continent.
|
|
772
|
-
* @param {CONTINENT} continent The continent enum value
|
|
773
|
-
* @returns {Country[]} Array of countries in the specified continent
|
|
774
|
-
*/
|
|
775
|
-
getByContinent(continent: CONTINENT): Country[];
|
|
776
|
-
/**
|
|
777
|
-
* Gets all countries from a specific region.
|
|
778
|
-
* @param {SUB_REGION} region The region enum value
|
|
779
|
-
* @returns {Country[]} Array of countries in the specified region
|
|
780
|
-
*/
|
|
781
|
-
getByRegion(region: SUB_REGION): Country[];
|
|
782
|
-
/**
|
|
783
|
-
* Gets the full name record mapping.
|
|
784
|
-
* @returns {Record<string, Country>} Record of uppercase full name keys to country objects
|
|
785
|
-
*/
|
|
786
|
-
getFullNameRecord(): Record<string, Country>;
|
|
787
|
-
/**
|
|
788
|
-
* Retrieves a country by its ISO-2 code.
|
|
789
|
-
* @param {string} code The ISO-2 code of the country.
|
|
790
|
-
* @returns {Country | undefined} The country corresponding to the ISO code or `undefined` if not found.
|
|
791
|
-
*/
|
|
792
|
-
fromCode(code: CountryCode): Country | undefined;
|
|
793
|
-
/**
|
|
794
|
-
* Retrieves a country by its ISO-3 code.
|
|
795
|
-
* @param {ISO3CountryCode} iso3 The ISO-3 code of the country.
|
|
796
|
-
* @returns {Country | undefined} The country corresponding to the ISO-3 code or `undefined` if not found.
|
|
797
|
-
*/
|
|
798
|
-
fromIso3(iso3: ISO3CountryCode): Country | undefined;
|
|
799
|
-
/**
|
|
800
|
-
* Retrieves a country by its name.
|
|
801
|
-
* @param {string} countryName The name of the country.
|
|
802
|
-
* @returns {Country | undefined} The country corresponding to the name or `undefined` if not found.
|
|
803
|
-
*/
|
|
804
|
-
fromName(countryName: string): Country | undefined;
|
|
805
|
-
/**
|
|
806
|
-
* Searches for countries that match the given search term.
|
|
807
|
-
* @param {string} searchTerm - The partial name or code to search for.
|
|
808
|
-
* @param {number} [limit=10] - Maximum number of results to return.
|
|
809
|
-
* @returns {Country[]} Array of matching countries, limited to specified count.
|
|
810
|
-
*/
|
|
811
|
-
search(searchTerm: string, limit?: number): Country[];
|
|
812
|
-
/**
|
|
813
|
-
* Compares two Country instances for equality by checking their name and code
|
|
814
|
-
*
|
|
815
|
-
* @param {Country} country1 - First country to compare
|
|
816
|
-
* @param {Country} country2 - Second country to compare
|
|
817
|
-
* @returns {boolean} True if countries are equal, false otherwise
|
|
818
|
-
* @private
|
|
819
|
-
*/
|
|
820
|
-
compare(country1: Country, country2: Country): boolean;
|
|
821
|
-
}
|
|
822
|
-
//# sourceMappingURL=country.d.ts.map
|