@temboplus/afloat 0.1.77-beta.8 → 0.1.78
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/LICENSE +7 -0
- package/README.md +42 -246
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +5 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +4 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +11 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +19 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +2 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +7 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +197 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +39 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +2475 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +1901 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +1073 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +3809 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +2325 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +53 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +190 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +40 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +58 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +3 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +2 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +11 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +26 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +257 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +450 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +5 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +4 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +7 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +45 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +8 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +9 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +822 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +737 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +4 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +3 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +63 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +105 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +21 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +25 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +465 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +471 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +4 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +3 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +21 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +28 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +8 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +9 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +6 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +5 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +13 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +13 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +162 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +459 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +267 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +498 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +6 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +5 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +77 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +90 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +30 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +47 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +141 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +290 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +2 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +144 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +318 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +12 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +19 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +4 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +3 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +32 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +68 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +21 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +1 -0
- package/esm/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +34 -0
- package/esm/mod.d.ts +8 -0
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +7 -0
- package/esm/package.json +3 -0
- package/{dist/lib/error/error.api.d.ts → esm/src/errors/api_error.d.ts} +1 -0
- package/esm/src/errors/api_error.d.ts.map +1 -0
- package/esm/src/errors/api_error.js +90 -0
- package/esm/src/errors/index.d.ts +3 -0
- package/esm/src/errors/index.d.ts.map +1 -0
- package/esm/src/errors/index.js +2 -0
- package/{dist/lib/error/error.permission.d.ts → esm/src/errors/permission_error.d.ts} +2 -1
- package/esm/src/errors/permission_error.d.ts.map +1 -0
- package/esm/src/errors/permission_error.js +70 -0
- package/{dist/modules/team-member/team-member.contract.d.ts → esm/src/features/admin/contract.d.ts} +136 -211
- package/esm/src/features/admin/contract.d.ts.map +1 -0
- package/esm/src/features/admin/contract.js +210 -0
- package/esm/src/features/admin/index.d.ts +4 -0
- package/esm/src/features/admin/index.d.ts.map +1 -0
- package/esm/src/features/admin/index.js +3 -0
- package/esm/src/features/admin/repository.d.ts +114 -0
- package/esm/src/features/admin/repository.d.ts.map +1 -0
- package/esm/src/features/admin/repository.js +248 -0
- package/esm/src/features/admin/schemas.d.ts +146 -0
- package/esm/src/features/admin/schemas.d.ts.map +1 -0
- package/esm/src/features/admin/schemas.js +206 -0
- package/esm/src/features/auth/access/contract.d.ts +14 -0
- package/esm/src/features/auth/access/contract.d.ts.map +1 -0
- package/esm/src/features/auth/access/contract.js +14 -0
- package/esm/src/features/auth/access/repository.d.ts +11 -0
- package/esm/src/features/auth/access/repository.d.ts.map +1 -0
- package/esm/src/features/auth/access/repository.js +25 -0
- package/{dist/modules/auth/auth.contract.d.ts → esm/src/features/auth/contract.d.ts} +17 -14
- package/esm/src/features/auth/contract.d.ts.map +1 -0
- package/esm/src/features/auth/contract.js +43 -0
- package/esm/src/features/auth/identity/contract.d.ts +23 -0
- package/esm/src/features/auth/identity/contract.d.ts.map +1 -0
- package/esm/src/features/auth/identity/contract.js +17 -0
- package/esm/src/features/auth/identity/repository.d.ts +22 -0
- package/esm/src/features/auth/identity/repository.d.ts.map +1 -0
- package/esm/src/features/auth/identity/repository.js +30 -0
- package/esm/src/features/auth/index.d.ts +6 -0
- package/esm/src/features/auth/index.d.ts.map +1 -0
- package/esm/src/features/auth/index.js +5 -0
- package/esm/src/features/auth/manager.d.ts +105 -0
- package/esm/src/features/auth/manager.d.ts.map +1 -0
- package/esm/src/features/auth/manager.js +181 -0
- package/{dist/modules/profile/profile.api-contract.d.ts → esm/src/features/auth/profile/contract.d.ts} +6 -8
- package/esm/src/features/auth/profile/contract.d.ts.map +1 -0
- package/esm/src/features/auth/profile/contract.js +14 -0
- package/esm/src/features/auth/profile/repository.d.ts +11 -0
- package/esm/src/features/auth/profile/repository.d.ts.map +1 -0
- package/esm/src/features/auth/profile/repository.js +25 -0
- package/esm/src/features/auth/repository.d.ts +30 -0
- package/esm/src/features/auth/repository.d.ts.map +1 -0
- package/esm/src/features/auth/repository.js +69 -0
- package/{dist/modules/auth/storage/client-store.d.ts → esm/src/features/auth/storage/client_store.d.ts} +2 -1
- package/esm/src/features/auth/storage/client_store.d.ts.map +1 -0
- package/esm/src/features/auth/storage/client_store.js +46 -0
- package/{dist/modules/auth/storage/client-token-handler.d.ts → esm/src/features/auth/storage/client_token_handler.d.ts} +1 -0
- package/esm/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
- package/esm/src/features/auth/storage/client_token_handler.js +36 -0
- package/esm/src/features/auth/storage/server_store.d.ts +24 -0
- package/esm/src/features/auth/storage/server_store.d.ts.map +1 -0
- package/esm/src/features/auth/storage/server_store.js +34 -0
- package/esm/src/features/auth/storage/server_token_handler.d.ts +36 -0
- package/esm/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
- package/esm/src/features/auth/storage/server_token_handler.js +115 -0
- package/{dist/modules → esm/src/features}/auth/storage/types.d.ts +2 -1
- package/esm/src/features/auth/storage/types.d.ts.map +1 -0
- package/esm/src/features/auth/storage/types.js +1 -0
- package/{dist/modules/contact/contact.api-contract.d.ts → esm/src/features/contact/contract.d.ts} +56 -89
- package/esm/src/features/contact/contract.d.ts.map +1 -0
- package/esm/src/features/contact/contract.js +49 -0
- package/esm/src/features/contact/index.d.ts +2 -0
- package/esm/src/features/contact/index.d.ts.map +1 -0
- package/esm/src/features/contact/index.js +1 -0
- package/esm/src/features/contact/repository.d.ts +58 -0
- package/esm/src/features/contact/repository.d.ts.map +1 -0
- package/esm/src/features/contact/repository.js +108 -0
- package/{dist/modules/payout/payout.api-contract.d.ts → esm/src/features/payout/contract.d.ts} +198 -341
- package/esm/src/features/payout/contract.d.ts.map +1 -0
- package/esm/src/features/payout/contract.js +75 -0
- package/esm/src/features/payout/index.d.ts +2 -0
- package/esm/src/features/payout/index.d.ts.map +1 -0
- package/esm/src/features/payout/index.js +1 -0
- package/esm/src/features/payout/repository.d.ts +67 -0
- package/esm/src/features/payout/repository.d.ts.map +1 -0
- package/esm/src/features/payout/repository.js +163 -0
- package/{dist/modules/wallet/wallet.contract.d.ts → esm/src/features/wallet/contract.d.ts} +15 -17
- package/esm/src/features/wallet/contract.d.ts.map +1 -0
- package/esm/src/features/wallet/contract.js +38 -0
- package/esm/src/features/wallet/index.d.ts +2 -0
- package/esm/src/features/wallet/index.d.ts.map +1 -0
- package/esm/src/features/wallet/index.js +1 -0
- package/esm/src/features/wallet/repository.d.ts +57 -0
- package/esm/src/features/wallet/repository.d.ts.map +1 -0
- package/esm/src/features/wallet/repository.js +93 -0
- package/esm/src/models/contact/derivatives/contact.d.ts +172 -0
- package/esm/src/models/contact/derivatives/contact.d.ts.map +1 -0
- package/esm/src/models/contact/derivatives/contact.js +266 -0
- package/esm/src/models/contact/derivatives/contact_info.d.ts +188 -0
- package/esm/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
- package/esm/src/models/contact/derivatives/contact_info.js +255 -0
- package/esm/src/models/contact/index.d.ts +5 -0
- package/esm/src/models/contact/index.d.ts.map +1 -0
- package/esm/src/models/contact/index.js +4 -0
- package/esm/src/models/contact/schemas.d.ts +66 -0
- package/esm/src/models/contact/schemas.d.ts.map +1 -0
- package/esm/src/models/contact/schemas.js +64 -0
- package/esm/src/models/contact/validation.d.ts +37 -0
- package/esm/src/models/contact/validation.d.ts.map +1 -0
- package/esm/src/models/contact/validation.js +146 -0
- package/esm/src/models/index.d.ts +7 -0
- package/esm/src/models/index.d.ts.map +1 -0
- package/esm/src/models/index.js +6 -0
- package/esm/src/models/payout/api.d.ts +29 -0
- package/esm/src/models/payout/api.d.ts.map +1 -0
- package/esm/src/models/payout/api.js +1 -0
- package/esm/src/models/payout/channel.d.ts +58 -0
- package/esm/src/models/payout/channel.d.ts.map +1 -0
- package/esm/src/models/payout/channel.js +53 -0
- package/{dist/modules/payout/payout.model.d.ts → esm/src/models/payout/derivatives/payout.d.ts} +34 -15
- package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/esm/src/models/payout/derivatives/payout.js +271 -0
- package/esm/src/models/payout/index.d.ts +7 -0
- package/esm/src/models/payout/index.d.ts.map +1 -0
- package/esm/src/models/payout/index.js +6 -0
- package/esm/src/models/payout/narration.d.ts +164 -0
- package/esm/src/models/payout/narration.d.ts.map +1 -0
- package/esm/src/models/payout/narration.js +308 -0
- package/esm/src/models/payout/schemas.d.ts +156 -0
- package/esm/src/models/payout/schemas.d.ts.map +1 -0
- package/esm/src/models/payout/schemas.js +105 -0
- package/esm/src/models/payout/status.d.ts +33 -0
- package/esm/src/models/payout/status.d.ts.map +1 -0
- package/esm/src/models/payout/status.js +34 -0
- package/{dist/modules/login/permission.type.d.ts → esm/src/models/permission.d.ts} +9 -8
- package/esm/src/models/permission.d.ts.map +1 -0
- package/esm/src/models/permission.js +50 -0
- package/{dist/modules/team-member/role.model.d.ts → esm/src/models/role.d.ts} +11 -3
- package/esm/src/models/role.d.ts.map +1 -0
- package/esm/src/models/role.js +73 -0
- package/esm/src/models/user/authenticated-user.d.ts +77 -0
- package/esm/src/models/user/authenticated-user.d.ts.map +1 -0
- package/esm/src/models/user/authenticated-user.js +226 -0
- package/esm/src/models/user/index.d.ts +4 -0
- package/esm/src/models/user/index.d.ts.map +1 -0
- package/esm/src/models/user/index.js +3 -0
- package/esm/src/models/user/managed-user.d.ts +108 -0
- package/esm/src/models/user/managed-user.d.ts.map +1 -0
- package/esm/src/models/user/managed-user.js +255 -0
- package/{dist/modules/profile/profile.model.d.ts → esm/src/models/user/profile.d.ts} +43 -37
- package/esm/src/models/user/profile.d.ts.map +1 -0
- package/esm/src/models/user/profile.js +334 -0
- package/esm/src/models/wallet/index.d.ts +4 -0
- package/esm/src/models/wallet/index.d.ts.map +1 -0
- package/esm/src/models/wallet/index.js +3 -0
- package/esm/src/models/wallet/schemas.d.ts +95 -0
- package/esm/src/models/wallet/schemas.d.ts.map +1 -0
- package/esm/src/models/wallet/schemas.js +35 -0
- package/esm/src/models/wallet/statement_entry.d.ts +160 -0
- package/esm/src/models/wallet/statement_entry.d.ts.map +1 -0
- package/esm/src/models/wallet/statement_entry.js +255 -0
- package/{dist/modules/wallet/wallet.model.d.ts → esm/src/models/wallet/wallet.d.ts} +47 -4
- package/esm/src/models/wallet/wallet.d.ts.map +1 -0
- package/esm/src/models/wallet/wallet.js +279 -0
- package/esm/src/shared/base_repository.d.ts +80 -0
- package/esm/src/shared/base_repository.d.ts.map +1 -0
- package/esm/src/shared/base_repository.js +153 -0
- package/esm/src/shared/common_responses.d.ts +13 -0
- package/esm/src/shared/common_responses.d.ts.map +1 -0
- package/esm/src/shared/common_responses.js +10 -0
- package/esm/src/shared/index.d.ts +3 -0
- package/esm/src/shared/index.d.ts.map +1 -0
- package/esm/src/shared/index.js +2 -0
- package/esm/src/shared/token_required_repository.d.ts +78 -0
- package/esm/src/shared/token_required_repository.d.ts.map +1 -0
- package/esm/src/shared/token_required_repository.js +128 -0
- package/package.json +23 -48
- package/script/mod.d.ts +8 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +23 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts +5 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/mod.js +20 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts +11 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/config_service.js +23 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts +2 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/config/index.js +17 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts +7 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/banks_tz.js +199 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts +39 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/countries.js +2477 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts +1901 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/currencies.js +1075 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts +3809 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/data/phone_patterns.js +2327 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts +53 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/amount.js +194 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts +40 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/antd_validator.js +62 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts +3 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/amount/index.js +18 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts +11 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/antd_validator.js +30 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts +257 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/bank.js +458 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts +5 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/index.js +20 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts +7 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/types.js +48 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts +8 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/bank/utils.js +12 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts +822 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/country.js +745 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts +4 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/index.js +19 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts +63 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/types.js +108 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts +21 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/country/utils.js +30 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts +465 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/currency.js +479 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts +4 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/index.js +19 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts +21 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/types.js +31 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts +8 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/currency/utils.js +12 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts +6 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/index.js +21 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts +13 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/format.js +16 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts +162 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/phone_number.js +463 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts +267 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/global/service.js +506 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts +6 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/index.js +21 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts +77 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/antd_validator.js +94 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts +30 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/network_operator.js +50 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts +141 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/models/phone_number/tz/phone_number.js +294 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts +2 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/index.js +17 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts +144 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/reports/report_manager.js +328 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts +12 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/id.js +23 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts +4 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/index.js +19 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts +32 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/text.js +75 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts +21 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@temboplus/frontend-core/0.2.21/src/utils/time.js +39 -0
- package/script/npm/src/mod.d.ts +8 -0
- package/script/npm/src/mod.d.ts.map +1 -0
- package/script/npm/src/mod.js +23 -0
- package/script/npm/src/src/errors/api_error.d.ts +63 -0
- package/script/npm/src/src/errors/api_error.d.ts.map +1 -0
- package/script/npm/src/src/errors/api_error.js +94 -0
- package/script/npm/src/src/errors/index.d.ts +3 -0
- package/script/npm/src/src/errors/index.d.ts.map +1 -0
- package/script/npm/src/src/errors/index.js +18 -0
- package/script/npm/src/src/errors/permission_error.d.ts +48 -0
- package/script/npm/src/src/errors/permission_error.d.ts.map +1 -0
- package/script/npm/src/src/errors/permission_error.js +74 -0
- package/script/npm/src/src/features/admin/contract.d.ts +842 -0
- package/script/npm/src/src/features/admin/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/admin/contract.js +213 -0
- package/script/npm/src/src/features/admin/index.d.ts +4 -0
- package/script/npm/src/src/features/admin/index.d.ts.map +1 -0
- package/script/npm/src/src/features/admin/index.js +19 -0
- package/script/npm/src/src/features/admin/repository.d.ts +114 -0
- package/script/npm/src/src/features/admin/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/admin/repository.js +252 -0
- package/script/npm/src/src/features/admin/schemas.d.ts +146 -0
- package/script/npm/src/src/features/admin/schemas.d.ts.map +1 -0
- package/script/npm/src/src/features/admin/schemas.js +209 -0
- package/script/npm/src/src/features/auth/access/contract.d.ts +14 -0
- package/script/npm/src/src/features/auth/access/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/access/contract.js +17 -0
- package/script/npm/src/src/features/auth/access/repository.d.ts +11 -0
- package/script/npm/src/src/features/auth/access/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/access/repository.js +29 -0
- package/script/npm/src/src/features/auth/contract.d.ts +112 -0
- package/script/npm/src/src/features/auth/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/contract.js +46 -0
- package/script/npm/src/src/features/auth/identity/contract.d.ts +23 -0
- package/script/npm/src/src/features/auth/identity/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/identity/contract.js +20 -0
- package/script/npm/src/src/features/auth/identity/repository.d.ts +22 -0
- package/script/npm/src/src/features/auth/identity/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/identity/repository.js +34 -0
- package/script/npm/src/src/features/auth/index.d.ts +6 -0
- package/script/npm/src/src/features/auth/index.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/index.js +21 -0
- package/script/npm/src/src/features/auth/manager.d.ts +105 -0
- package/script/npm/src/src/features/auth/manager.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/manager.js +185 -0
- package/script/npm/src/src/features/auth/profile/contract.d.ts +37 -0
- package/script/npm/src/src/features/auth/profile/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/profile/contract.js +17 -0
- package/script/npm/src/src/features/auth/profile/repository.d.ts +11 -0
- package/script/npm/src/src/features/auth/profile/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/profile/repository.js +29 -0
- package/script/npm/src/src/features/auth/repository.d.ts +30 -0
- package/script/npm/src/src/features/auth/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/repository.js +73 -0
- package/script/npm/src/src/features/auth/storage/client_store.d.ts +30 -0
- package/script/npm/src/src/features/auth/storage/client_store.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/client_store.js +51 -0
- package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts +32 -0
- package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/client_token_handler.js +40 -0
- package/script/npm/src/src/features/auth/storage/server_store.d.ts +24 -0
- package/script/npm/src/src/features/auth/storage/server_store.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/server_store.js +38 -0
- package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts +36 -0
- package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/server_token_handler.js +119 -0
- package/script/npm/src/src/features/auth/storage/types.d.ts +42 -0
- package/script/npm/src/src/features/auth/storage/types.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/types.js +2 -0
- package/script/npm/src/src/features/contact/contract.d.ts +170 -0
- package/script/npm/src/src/features/contact/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/contact/contract.js +52 -0
- package/script/npm/src/src/features/contact/index.d.ts +2 -0
- package/script/npm/src/src/features/contact/index.d.ts.map +1 -0
- package/script/npm/src/src/features/contact/index.js +17 -0
- package/script/npm/src/src/features/contact/repository.d.ts +58 -0
- package/script/npm/src/src/features/contact/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/contact/repository.js +112 -0
- package/script/npm/src/src/features/payout/contract.d.ts +623 -0
- package/script/npm/src/src/features/payout/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/payout/contract.js +78 -0
- package/script/npm/src/src/features/payout/index.d.ts +2 -0
- package/script/npm/src/src/features/payout/index.d.ts.map +1 -0
- package/script/npm/src/src/features/payout/index.js +17 -0
- package/script/npm/src/src/features/payout/repository.d.ts +67 -0
- package/script/npm/src/src/features/payout/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/payout/repository.js +167 -0
- package/script/npm/src/src/features/wallet/contract.d.ts +137 -0
- package/script/npm/src/src/features/wallet/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/wallet/contract.js +41 -0
- package/script/npm/src/src/features/wallet/index.d.ts +2 -0
- package/script/npm/src/src/features/wallet/index.d.ts.map +1 -0
- package/script/npm/src/src/features/wallet/index.js +17 -0
- package/script/npm/src/src/features/wallet/repository.d.ts +57 -0
- package/script/npm/src/src/features/wallet/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/wallet/repository.js +97 -0
- package/script/npm/src/src/models/contact/derivatives/contact.d.ts +172 -0
- package/script/npm/src/src/models/contact/derivatives/contact.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact.js +270 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts +188 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.js +260 -0
- package/script/npm/src/src/models/contact/index.d.ts +5 -0
- package/script/npm/src/src/models/contact/index.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/index.js +20 -0
- package/script/npm/src/src/models/contact/schemas.d.ts +66 -0
- package/script/npm/src/src/models/contact/schemas.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/schemas.js +67 -0
- package/script/npm/src/src/models/contact/validation.d.ts +37 -0
- package/script/npm/src/src/models/contact/validation.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/validation.js +153 -0
- package/script/npm/src/src/models/index.d.ts +7 -0
- package/script/npm/src/src/models/index.d.ts.map +1 -0
- package/script/npm/src/src/models/index.js +22 -0
- package/script/npm/src/src/models/payout/api.d.ts +29 -0
- package/script/npm/src/src/models/payout/api.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/api.js +2 -0
- package/script/npm/src/src/models/payout/channel.d.ts +58 -0
- package/script/npm/src/src/models/payout/channel.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/channel.js +56 -0
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts +158 -0
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/derivatives/payout.js +275 -0
- package/script/npm/src/src/models/payout/index.d.ts +7 -0
- package/script/npm/src/src/models/payout/index.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/index.js +22 -0
- package/script/npm/src/src/models/payout/narration.d.ts +164 -0
- package/script/npm/src/src/models/payout/narration.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/narration.js +312 -0
- package/script/npm/src/src/models/payout/schemas.d.ts +156 -0
- package/script/npm/src/src/models/payout/schemas.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/schemas.js +108 -0
- package/script/npm/src/src/models/payout/status.d.ts +33 -0
- package/script/npm/src/src/models/payout/status.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/status.js +37 -0
- package/script/npm/src/src/models/permission.d.ts +55 -0
- package/script/npm/src/src/models/permission.d.ts.map +1 -0
- package/script/npm/src/src/models/permission.js +53 -0
- package/script/npm/src/src/models/role.d.ts +21 -0
- package/script/npm/src/src/models/role.d.ts.map +1 -0
- package/script/npm/src/src/models/role.js +77 -0
- package/script/npm/src/src/models/user/authenticated-user.d.ts +77 -0
- package/script/npm/src/src/models/user/authenticated-user.d.ts.map +1 -0
- package/script/npm/src/src/models/user/authenticated-user.js +230 -0
- package/script/npm/src/src/models/user/index.d.ts +4 -0
- package/script/npm/src/src/models/user/index.d.ts.map +1 -0
- package/script/npm/src/src/models/user/index.js +19 -0
- package/script/npm/src/src/models/user/managed-user.d.ts +108 -0
- package/script/npm/src/src/models/user/managed-user.d.ts.map +1 -0
- package/script/npm/src/src/models/user/managed-user.js +260 -0
- package/script/npm/src/src/models/user/profile.d.ts +161 -0
- package/script/npm/src/src/models/user/profile.d.ts.map +1 -0
- package/script/npm/src/src/models/user/profile.js +338 -0
- package/script/npm/src/src/models/wallet/index.d.ts +4 -0
- package/script/npm/src/src/models/wallet/index.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/index.js +19 -0
- package/script/npm/src/src/models/wallet/schemas.d.ts +95 -0
- package/script/npm/src/src/models/wallet/schemas.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/schemas.js +38 -0
- package/script/npm/src/src/models/wallet/statement_entry.d.ts +160 -0
- package/script/npm/src/src/models/wallet/statement_entry.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/statement_entry.js +259 -0
- package/script/npm/src/src/models/wallet/wallet.d.ts +147 -0
- package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/wallet.js +283 -0
- package/script/npm/src/src/shared/base_repository.d.ts +80 -0
- package/script/npm/src/src/shared/base_repository.d.ts.map +1 -0
- package/script/npm/src/src/shared/base_repository.js +157 -0
- package/script/npm/src/src/shared/common_responses.d.ts +13 -0
- package/script/npm/src/src/shared/common_responses.d.ts.map +1 -0
- package/script/npm/src/src/shared/common_responses.js +13 -0
- package/script/npm/src/src/shared/index.d.ts +3 -0
- package/script/npm/src/src/shared/index.d.ts.map +1 -0
- package/script/npm/src/src/shared/index.js +18 -0
- package/script/npm/src/src/shared/token_required_repository.d.ts +78 -0
- package/script/npm/src/src/shared/token_required_repository.d.ts.map +1 -0
- package/script/npm/src/src/shared/token_required_repository.js +132 -0
- package/script/package.json +3 -0
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/lib/api/base-repository.d.ts +0 -175
- package/dist/lib/api/index.d.ts +0 -1
- package/dist/lib/error/error.utils.d.ts +0 -22
- package/dist/lib/error/index.d.ts +0 -3
- package/dist/lib/query/index.d.ts +0 -4
- package/dist/lib/query/pagination/pagination.d.ts +0 -73
- package/dist/lib/query/pagination/pagination.schemas.d.ts +0 -83
- package/dist/lib/query/query.builder.d.ts +0 -71
- package/dist/lib/query/query.types.d.ts +0 -36
- package/dist/modules/auth/auth.manager.d.ts +0 -249
- package/dist/modules/auth/auth.repository.d.ts +0 -83
- package/dist/modules/auth/auth.store.d.ts +0 -139
- package/dist/modules/auth/company-membership.model.d.ts +0 -58
- package/dist/modules/auth/index.d.ts +0 -4
- package/dist/modules/auth/user.model.d.ts +0 -140
- package/dist/modules/contact/contact-info.model.d.ts +0 -446
- package/dist/modules/contact/contact-input-handler.d.ts +0 -16
- package/dist/modules/contact/contact.dtos.d.ts +0 -84
- package/dist/modules/contact/contact.model.d.ts +0 -296
- package/dist/modules/contact/contact.repository.d.ts +0 -116
- package/dist/modules/contact/index.d.ts +0 -4
- package/dist/modules/login/index.d.ts +0 -4
- package/dist/modules/login/login.api-contract.d.ts +0 -51
- package/dist/modules/login/login.dtos.d.ts +0 -85
- package/dist/modules/login/login.model.d.ts +0 -138
- package/dist/modules/login/login.repository.d.ts +0 -58
- package/dist/modules/payout/index.d.ts +0 -5
- package/dist/modules/payout/payout-channel-handler.d.ts +0 -82
- package/dist/modules/payout/payout.dtos.d.ts +0 -605
- package/dist/modules/payout/payout.query.d.ts +0 -133
- package/dist/modules/payout/payout.repository.d.ts +0 -181
- package/dist/modules/profile/index.d.ts +0 -3
- package/dist/modules/profile/profile.dtos.d.ts +0 -80
- package/dist/modules/profile/profile.repository.d.ts +0 -56
- package/dist/modules/team-member/index.d.ts +0 -4
- package/dist/modules/team-member/team-member.dtos.d.ts +0 -261
- package/dist/modules/team-member/team-member.model.d.ts +0 -137
- package/dist/modules/team-member/team-member.repository.d.ts +0 -179
- package/dist/modules/wallet/index.d.ts +0 -7
- package/dist/modules/wallet/narration.model.d.ts +0 -229
- package/dist/modules/wallet/statement-entry.model.d.ts +0 -200
- package/dist/modules/wallet/wallet-manager.session.d.ts +0 -143
- package/dist/modules/wallet/wallet.dtos.d.ts +0 -204
- package/dist/modules/wallet/wallet.query.d.ts +0 -95
- package/dist/modules/wallet/wallet.repository.d.ts +0 -205
- package/dist/modules/wallet/wallet.utils.d.ts +0 -17
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { ContactInfo, MobileContactInfo, BankContactInfo } from "../contact/contact-info.model.js";
|
|
2
|
-
/** Prefix for Ecobank mobile transfer narrations */
|
|
3
|
-
export declare const ECOBANK_PREFIX = "MOBILE TRANSFER ";
|
|
4
|
-
/** V2 format prefix for payout narrations using contact details */
|
|
5
|
-
export declare const NARR_V2_PREFIX: string;
|
|
6
|
-
/** V1 format prefix for bank payout narrations */
|
|
7
|
-
export declare const BANK_NARR_PREFIX: string;
|
|
8
|
-
/** Legacy format prefix for bank payout narrations */
|
|
9
|
-
export declare const LEGACY_BANK_NARR_PREFIX: string;
|
|
10
|
-
/** V1 format prefix for mobile money payout narrations */
|
|
11
|
-
export declare const MOBILE_NARR_PREFIX: string;
|
|
12
|
-
/** Legacy format prefix for mobile money payout narrations */
|
|
13
|
-
export declare const LEGACY_MOBILE_NARR_PREFIX: string;
|
|
14
|
-
/**
|
|
15
|
-
* Interface for the JSON representation of Narration
|
|
16
|
-
*/
|
|
17
|
-
export interface NarrationJson {
|
|
18
|
-
text: string;
|
|
19
|
-
version?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Handles payout narration generation and parsing for the Afloat platform.
|
|
23
|
-
*
|
|
24
|
-
* This class provides functionality to:
|
|
25
|
-
* - Generate standardized payout narrations using contact details (V2 format)
|
|
26
|
-
* - Parse existing narrations to extract contact information
|
|
27
|
-
* - Format narration text for different display contexts
|
|
28
|
-
* - Handle V2 (PAY format), V1, and legacy narration formats for backward compatibility
|
|
29
|
-
* - Serialize/deserialize to/from JSON format
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```typescript
|
|
33
|
-
* // Generate V2 narration using contact info
|
|
34
|
-
* const mobileContact = new MobileContactInfo("John Doe", phoneNumber);
|
|
35
|
-
* const narration = Narration.generateDefaultPayoutNarration(mobileContact);
|
|
36
|
-
* // Result: "PAYOUT +255123456789 JOHN DOE"
|
|
37
|
-
*
|
|
38
|
-
* const bankContact = new BankContactInfo("Jane Smith", bank, "1234567890");
|
|
39
|
-
* const narration = Narration.generateDefaultPayoutNarration(bankContact);
|
|
40
|
-
* // Result: "PAYOUT CORUTZTZ 1234567890 JANE SMITH"
|
|
41
|
-
*
|
|
42
|
-
* // Extract contact details from narration
|
|
43
|
-
* const existingNarration = new Narration("PAYOUT +255123456789 JOHN DOE");
|
|
44
|
-
* const contactInfo = existingNarration.getContactDetails();
|
|
45
|
-
* // Returns: MobileContactInfo instance
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export declare class Narration {
|
|
49
|
-
/** The raw narration text */
|
|
50
|
-
text: string;
|
|
51
|
-
/**
|
|
52
|
-
* Creates a new Narration instance.
|
|
53
|
-
*
|
|
54
|
-
* @param text - The narration text to wrap
|
|
55
|
-
*/
|
|
56
|
-
constructor(text: string);
|
|
57
|
-
/**
|
|
58
|
-
* Returns a medium-length version of the narration text suitable for table columns.
|
|
59
|
-
* Truncates to 47 characters + "..." if longer than 50 characters.
|
|
60
|
-
*
|
|
61
|
-
* @returns Truncated narration text for medium-width displays
|
|
62
|
-
*/
|
|
63
|
-
get mediumText(): string;
|
|
64
|
-
/**
|
|
65
|
-
* Returns a short version of the narration text suitable for compact displays.
|
|
66
|
-
* Truncates to 32 characters + "..." if longer than 35 characters.
|
|
67
|
-
*
|
|
68
|
-
* @returns Truncated narration text for narrow displays
|
|
69
|
-
*/
|
|
70
|
-
get shortText(): string;
|
|
71
|
-
/**
|
|
72
|
-
* Generates the default payout narration based on contact information using the V2 format.
|
|
73
|
-
* Automatically determines whether to generate mobile or bank narration based on contact type.
|
|
74
|
-
*
|
|
75
|
-
* @param data - Contact information (either MobileContactInfo or BankContactInfo)
|
|
76
|
-
* @returns Formatted default narration string in uppercase using V2 format, or empty string if contact type is unrecognized
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```typescript
|
|
80
|
-
* const mobileContact = new MobileContactInfo("John Doe", phoneNumber);
|
|
81
|
-
* const narration = Narration.generateDefaultPayoutNarration(mobileContact);
|
|
82
|
-
* // Returns: "PAYOUT +255123456789 JOHN DOE"
|
|
83
|
-
*
|
|
84
|
-
* const bankContact = new BankContactInfo("Jane Smith", bank, "1234567890");
|
|
85
|
-
* const narration = Narration.generateDefaultPayoutNarration(bankContact);
|
|
86
|
-
* // Returns: "PAYOUT CORUTZTZ 1234567890 JANE SMITH"
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
static generateDefaultPayoutNarration(data: ContactInfo): string;
|
|
90
|
-
/**
|
|
91
|
-
* Generates a V2 standardized mobile money payout narration with contact details.
|
|
92
|
-
* Format: "PAY {phone_number} {name}"
|
|
93
|
-
*
|
|
94
|
-
* @param data - Mobile contact information containing phone number and name
|
|
95
|
-
* @returns Formatted V2 mobile payout narration in uppercase
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```typescript
|
|
99
|
-
* const contact = new MobileContactInfo("John Doe", phoneNumber);
|
|
100
|
-
* const narration = Narration.generateMobilePayoutNarrationV2(contact);
|
|
101
|
-
* // Returns: "PAYOUT +255123456789 JOHN DOE"
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
static generateMobilePayoutNarrationV2(data: MobileContactInfo): string;
|
|
105
|
-
/**
|
|
106
|
-
* Generates a V2 standardized bank payout narration with contact details.
|
|
107
|
-
* Format: "PAY {swift_code} {account_number} {account_name}"
|
|
108
|
-
*
|
|
109
|
-
* @param data - Bank contact information containing bank details, account number, and account name
|
|
110
|
-
* @returns Formatted V2 bank payout narration in uppercase
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```typescript
|
|
114
|
-
* const contact = new BankContactInfo("Jane Smith", bank, "1234567890");
|
|
115
|
-
* const narration = Narration.generateBankPayoutNarrationV2(contact);
|
|
116
|
-
* // Returns: "PAYOUT CORUTZTZ 1234567890 JANE SMITH"
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
static generateBankPayoutNarrationV2(data: BankContactInfo): string;
|
|
120
|
-
/**
|
|
121
|
-
* Extracts contact information from the narration text.
|
|
122
|
-
* Supports V2 (PAY format), V1, and legacy formats for comprehensive contact detection.
|
|
123
|
-
*
|
|
124
|
-
* @returns Parsed ContactInfo (BankContactInfo or MobileContactInfo) if successful, undefined otherwise
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```typescript
|
|
128
|
-
* // V2 format
|
|
129
|
-
* const v2Narration = new Narration("PAYOUT +255123456789 JOHN DOE");
|
|
130
|
-
* const v2Contact = v2Narration.getContactDetails();
|
|
131
|
-
* // Returns: MobileContactInfo instance
|
|
132
|
-
*
|
|
133
|
-
* // V1 format
|
|
134
|
-
* const v1Narration = new Narration("PAYOUT TO BANK CRDB 1234567890 Jane Smith");
|
|
135
|
-
* const v1Contact = v1Narration.getContactDetails();
|
|
136
|
-
* // Returns: BankContactInfo instance
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
getContactDetails: () => ContactInfo | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* Extracts bank contact information from the narration text.
|
|
142
|
-
* Handles V2 format (PAY with SWIFT code and details), V1 format, and legacy format.
|
|
143
|
-
* Also handles Ecobank-prefixed narrations by stripping the prefix.
|
|
144
|
-
*
|
|
145
|
-
* V2 format: "PAYOUT {swift_code} {account_number} {account_name}"
|
|
146
|
-
* V1 format: "PAYOUT TO BANK {bank_name} {account_number} {account_name}"
|
|
147
|
-
* Legacy format: "TO_BANK => {json_object}"
|
|
148
|
-
*
|
|
149
|
-
* @returns BankContactInfo if parsing is successful, undefined otherwise
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* ```typescript
|
|
153
|
-
* // V2 format
|
|
154
|
-
* const v2Narration = new Narration("PAYOUT CORUTZTZ 1234567890 JANE SMITH");
|
|
155
|
-
* const v2Contact = v2Narration.getBankContactDetails();
|
|
156
|
-
*
|
|
157
|
-
* // V1 format
|
|
158
|
-
* const v1Narration = new Narration("PAYOUT TO BANK CRDB 1234567890 Jane Smith");
|
|
159
|
-
* const v1Contact = v1Narration.getBankContactDetails();
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
getBankContactDetails: () => BankContactInfo | undefined;
|
|
163
|
-
/**
|
|
164
|
-
* Extracts mobile contact information from the narration text.
|
|
165
|
-
* Handles V2 format (PAY with phone number and name), V1 format, and legacy format.
|
|
166
|
-
* Also handles Ecobank-prefixed narrations by stripping the prefix.
|
|
167
|
-
*
|
|
168
|
-
* V2 format: "PAYOUT {phone_number} {name}"
|
|
169
|
-
* V1 format: "PAYOUT TO MOBILE {phone_number} {name}"
|
|
170
|
-
* Legacy format: "TO_MOMO => {json_object}"
|
|
171
|
-
*
|
|
172
|
-
* @returns MobileContactInfo if parsing is successful, undefined otherwise
|
|
173
|
-
*
|
|
174
|
-
* @example
|
|
175
|
-
* ```typescript
|
|
176
|
-
* // V2 format
|
|
177
|
-
* const v2Narration = new Narration("PAYOUT +255123456789 JOHN DOE");
|
|
178
|
-
* const v2Contact = v2Narration.getMobileContactDetails();
|
|
179
|
-
*
|
|
180
|
-
* // V1 format
|
|
181
|
-
* const v1Narration = new Narration("PAYOUT TO MOBILE +255123456789 John Doe");
|
|
182
|
-
* const v1Contact = v1Narration.getMobileContactDetails();
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
getMobileContactDetails: () => MobileContactInfo | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* Serializes the Narration instance to a JSON-compatible object.
|
|
188
|
-
*
|
|
189
|
-
* @returns {NarrationJson} A plain object containing the narration data
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```typescript
|
|
193
|
-
* const narration = new Narration("PAYOUT +255123456789 JOHN DOE");
|
|
194
|
-
* const json = narration.toJson();
|
|
195
|
-
* // Returns: { text: "PAYOUT +255123456789 JOHN DOE", version: "2.0" }
|
|
196
|
-
* ```
|
|
197
|
-
*/
|
|
198
|
-
toJson(): NarrationJson;
|
|
199
|
-
/**
|
|
200
|
-
* Creates a Narration instance from a JSON-compatible object.
|
|
201
|
-
*
|
|
202
|
-
* @param {NarrationJson | string} json - Either a NarrationJson object or a JSON string
|
|
203
|
-
* @returns {Narration | undefined} A Narration instance if valid, undefined otherwise
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* ```typescript
|
|
207
|
-
* // From object
|
|
208
|
-
* const narration = Narration.fromJson({ text: "PAYOUT +255123456789 JOHN DOE" });
|
|
209
|
-
*
|
|
210
|
-
* // From JSON string
|
|
211
|
-
* const narration = Narration.fromJson('{"text":"PAYOUT +255123456789 JOHN DOE"}');
|
|
212
|
-
* ```
|
|
213
|
-
*/
|
|
214
|
-
static fromJson(json: NarrationJson | string): Narration | undefined;
|
|
215
|
-
/**
|
|
216
|
-
* Type guard to check if an object is a valid NarrationJson
|
|
217
|
-
*
|
|
218
|
-
* @param obj - The object to validate
|
|
219
|
-
* @returns True if the object conforms to NarrationJson structure
|
|
220
|
-
*/
|
|
221
|
-
static isNarrationJson(obj: unknown): obj is NarrationJson;
|
|
222
|
-
/**
|
|
223
|
-
* Type guard to check if an unknown object is a valid Narration instance.
|
|
224
|
-
*
|
|
225
|
-
* @param obj - The object to check
|
|
226
|
-
* @returns Type predicate indicating if the object is a Narration instance
|
|
227
|
-
*/
|
|
228
|
-
static is(obj: unknown): obj is Narration;
|
|
229
|
-
}
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { WalletStatementEntryDTO } from "@/modules/wallet/wallet.dtos.js";
|
|
2
|
-
import { Amount, AmountJson } from "@temboplus/frontend-core";
|
|
3
|
-
import { NarrationJson, Narration } from "./narration.model.js";
|
|
4
|
-
/**
|
|
5
|
-
* Interface for the JSON representation of WalletStatementEntry
|
|
6
|
-
*/
|
|
7
|
-
export interface WalletStatementEntryJson {
|
|
8
|
-
accountNo?: string;
|
|
9
|
-
debitOrCredit: string;
|
|
10
|
-
tranRefNo: string;
|
|
11
|
-
narration: NarrationJson;
|
|
12
|
-
txnDate: string;
|
|
13
|
-
valueDate: string;
|
|
14
|
-
amountCredited: AmountJson;
|
|
15
|
-
amountDebited: AmountJson;
|
|
16
|
-
balance: AmountJson;
|
|
17
|
-
currencyCode: string;
|
|
18
|
-
version?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents a single entry in a Wallet's statement history.
|
|
22
|
-
*
|
|
23
|
-
* This class provides methods for creating, validating, and accessing statement entry data.
|
|
24
|
-
* It integrates with the Zod schema validation for data integrity and includes narration parsing capabilities.
|
|
25
|
-
* The narration field now uses the Narration class for enhanced functionality.
|
|
26
|
-
*/
|
|
27
|
-
export declare class WalletStatementEntry {
|
|
28
|
-
private _accountNo?;
|
|
29
|
-
private _debitOrCredit;
|
|
30
|
-
private _tranRefNo;
|
|
31
|
-
private _narration;
|
|
32
|
-
private _txnDate;
|
|
33
|
-
private _valueDate;
|
|
34
|
-
private _amountCredited;
|
|
35
|
-
private _amountDebited;
|
|
36
|
-
private _balance;
|
|
37
|
-
private _currencyCode;
|
|
38
|
-
/**
|
|
39
|
-
* Gets the statement entry schema used for validation.
|
|
40
|
-
*/
|
|
41
|
-
static get schema(): import("zod").ZodObject<{
|
|
42
|
-
accountNo: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodString>, string | undefined, string | undefined>;
|
|
43
|
-
debitOrCredit: import("zod").ZodString;
|
|
44
|
-
tranRefNo: import("zod").ZodString;
|
|
45
|
-
narration: import("zod").ZodString;
|
|
46
|
-
txnDate: import("zod").ZodDate;
|
|
47
|
-
valueDate: import("zod").ZodDate;
|
|
48
|
-
amountCredited: import("zod").ZodNumber;
|
|
49
|
-
amountDebited: import("zod").ZodNumber;
|
|
50
|
-
balance: import("zod").ZodNumber;
|
|
51
|
-
currencyCode: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodString>, string | undefined, string | undefined>>;
|
|
52
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
53
|
-
currencyCode: string;
|
|
54
|
-
debitOrCredit: string;
|
|
55
|
-
tranRefNo: string;
|
|
56
|
-
narration: string;
|
|
57
|
-
txnDate: Date;
|
|
58
|
-
valueDate: Date;
|
|
59
|
-
amountCredited: number;
|
|
60
|
-
amountDebited: number;
|
|
61
|
-
balance: number;
|
|
62
|
-
accountNo?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
debitOrCredit: string;
|
|
65
|
-
tranRefNo: string;
|
|
66
|
-
narration: string;
|
|
67
|
-
txnDate: Date;
|
|
68
|
-
valueDate: Date;
|
|
69
|
-
amountCredited: number;
|
|
70
|
-
amountDebited: number;
|
|
71
|
-
balance: number;
|
|
72
|
-
accountNo?: string | undefined;
|
|
73
|
-
currencyCode?: string | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
/**
|
|
76
|
-
* Private constructor to enforce use of static factory methods.
|
|
77
|
-
* Assumes data is already validated and dates are Date objects.
|
|
78
|
-
* @param data - Object containing statement entry information conforming to WalletStatementEntryDTO.
|
|
79
|
-
* @param narration - Narration instance for the transaction
|
|
80
|
-
*/
|
|
81
|
-
private constructor();
|
|
82
|
-
/**
|
|
83
|
-
* Creates a new WalletStatementEntry instance after validating the input data.
|
|
84
|
-
* Handles date coercion via the schema and uses currencyCode from the data.
|
|
85
|
-
*
|
|
86
|
-
* @param data - Object containing statement entry information. Dates can be strings or Date objects.
|
|
87
|
-
* @returns A new WalletStatementEntry instance, or undefined if validation fails.
|
|
88
|
-
*/
|
|
89
|
-
static create(data: {
|
|
90
|
-
accountNo?: string | null;
|
|
91
|
-
debitOrCredit: string;
|
|
92
|
-
tranRefNo: string;
|
|
93
|
-
narration: string | Narration;
|
|
94
|
-
txnDate: string | Date;
|
|
95
|
-
valueDate: string | Date;
|
|
96
|
-
amountCredited: number;
|
|
97
|
-
amountDebited: number;
|
|
98
|
-
balance: number;
|
|
99
|
-
currencyCode?: string;
|
|
100
|
-
}): WalletStatementEntry | undefined;
|
|
101
|
-
get accountNo(): string | undefined;
|
|
102
|
-
get debitOrCredit(): string;
|
|
103
|
-
get tranRefNo(): string;
|
|
104
|
-
get narration(): Narration;
|
|
105
|
-
get txnDate(): Date;
|
|
106
|
-
get valueDate(): Date;
|
|
107
|
-
get amountCredited(): Amount;
|
|
108
|
-
get amountDebited(): Amount;
|
|
109
|
-
get balance(): Amount;
|
|
110
|
-
get currencyCode(): string;
|
|
111
|
-
/**
|
|
112
|
-
* Serializes the WalletStatementEntry instance to a JSON-compatible object.
|
|
113
|
-
* Dates are converted to ISO strings, amounts are serialized using Amount.toJson(),
|
|
114
|
-
* and narration is serialized using Narration.toJson().
|
|
115
|
-
*
|
|
116
|
-
* @returns {WalletStatementEntryJson} A plain object containing all necessary data
|
|
117
|
-
*/
|
|
118
|
-
toJson(): WalletStatementEntryJson;
|
|
119
|
-
/**
|
|
120
|
-
* Creates a WalletStatementEntry instance from a JSON-compatible object.
|
|
121
|
-
*
|
|
122
|
-
* @param {WalletStatementEntryJson | string} json - Either a WalletStatementEntryJson object or a JSON string
|
|
123
|
-
* @returns {WalletStatementEntry | undefined} A WalletStatementEntry instance if valid, undefined otherwise
|
|
124
|
-
*/
|
|
125
|
-
static fromJson(json: WalletStatementEntryJson | string): WalletStatementEntry | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Type guard to check if an object is a valid WalletStatementEntryJson
|
|
128
|
-
*
|
|
129
|
-
* @param obj - The object to validate
|
|
130
|
-
* @returns True if the object conforms to WalletStatementEntryJson structure
|
|
131
|
-
*/
|
|
132
|
-
static isWalletStatementEntryJson(obj: unknown): obj is WalletStatementEntryJson;
|
|
133
|
-
/**
|
|
134
|
-
* Validates the current statement entry instance data against the schema.
|
|
135
|
-
* @returns True if the statement entry instance data is valid, false otherwise.
|
|
136
|
-
*/
|
|
137
|
-
validate(): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Type guard to check if an unknown object is a valid WalletStatementEntry instance.
|
|
140
|
-
* Performs structural checks (duck typing).
|
|
141
|
-
* @param obj - The object to check.
|
|
142
|
-
* @returns Type predicate indicating if the object is a WalletStatementEntry instance.
|
|
143
|
-
*/
|
|
144
|
-
static is(obj: unknown): obj is WalletStatementEntry;
|
|
145
|
-
/**
|
|
146
|
-
* Checks if two WalletStatementEntry instances are equal based on their transaction reference numbers.
|
|
147
|
-
* @param other - Another WalletStatementEntry to compare with.
|
|
148
|
-
* @returns True if both entries have the same transaction reference number.
|
|
149
|
-
*/
|
|
150
|
-
equals(other: WalletStatementEntry): boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Creates a copy of this WalletStatementEntry with the same data.
|
|
153
|
-
* @returns A new WalletStatementEntry instance with identical data.
|
|
154
|
-
*/
|
|
155
|
-
clone(): WalletStatementEntry | undefined;
|
|
156
|
-
/**
|
|
157
|
-
* Returns a string representation of the statement entry for debugging.
|
|
158
|
-
* @returns A formatted string with key transaction details.
|
|
159
|
-
*/
|
|
160
|
-
toString(): string;
|
|
161
|
-
/**
|
|
162
|
-
* Serializes an array of WalletStatementEntry instances to JSON-compatible objects
|
|
163
|
-
*
|
|
164
|
-
* @param entries - Array of WalletStatementEntry instances to serialize
|
|
165
|
-
* @returns Array of WalletStatementEntryJson objects
|
|
166
|
-
*/
|
|
167
|
-
static toJsonArray(entries: WalletStatementEntry[]): WalletStatementEntryJson[];
|
|
168
|
-
/**
|
|
169
|
-
* Creates WalletStatementEntry instances from an array of JSON-compatible objects
|
|
170
|
-
*
|
|
171
|
-
* @param jsonArray - Array of WalletStatementEntryJson objects or JSON string
|
|
172
|
-
* @returns Array of WalletStatementEntry instances (invalid items are filtered out)
|
|
173
|
-
*/
|
|
174
|
-
static fromJsonArray(jsonArray: WalletStatementEntryJson[] | string): WalletStatementEntry[];
|
|
175
|
-
/**
|
|
176
|
-
* Legacy method for backwards compatibility - creates object representation
|
|
177
|
-
* @deprecated Use toJson() instead for proper serialization
|
|
178
|
-
*/
|
|
179
|
-
toObject(): Omit<WalletStatementEntryDTO, "amountCredited" | "amountDebited" | "balance" | "narration"> & {
|
|
180
|
-
amountCredited: AmountJson;
|
|
181
|
-
amountDebited: AmountJson;
|
|
182
|
-
balance: AmountJson;
|
|
183
|
-
narration: string;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* Legacy method for backwards compatibility - converts to JSON string
|
|
187
|
-
* @deprecated Use JSON.stringify(entry.toJson()) instead
|
|
188
|
-
*/
|
|
189
|
-
toJSON(): string;
|
|
190
|
-
/**
|
|
191
|
-
* Legacy method for backwards compatibility
|
|
192
|
-
* @deprecated Use fromJson() instead
|
|
193
|
-
*/
|
|
194
|
-
static fromJSON(jsonString: string): WalletStatementEntry | undefined;
|
|
195
|
-
/**
|
|
196
|
-
* Legacy method for backwards compatibility - creates from plain object
|
|
197
|
-
* @deprecated Use fromJson() for serialized data or create() for raw data
|
|
198
|
-
*/
|
|
199
|
-
static from(data: any): WalletStatementEntry | undefined;
|
|
200
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { Country, type CountryCode } from "@temboplus/frontend-core";
|
|
2
|
-
import { Wallet } from "./wallet.model.js";
|
|
3
|
-
import { User } from "../auth/user.model.js";
|
|
4
|
-
/**
|
|
5
|
-
* Defines the shape of the persisted wallet session state.
|
|
6
|
-
* IMPORTANT: Properties like selectedWalletId/selectedCountryCode are guaranteed
|
|
7
|
-
* non-nullable and valid ONLY when isInitialized is true.
|
|
8
|
-
*/
|
|
9
|
-
interface WalletSession {
|
|
10
|
-
userId: string;
|
|
11
|
-
wallets: Wallet[];
|
|
12
|
-
selectedWalletId: string;
|
|
13
|
-
selectedCountryCode: CountryCode;
|
|
14
|
-
lastSynced: Date | string;
|
|
15
|
-
isInitialized: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Defines the complete state shape including actions and internal getters.
|
|
19
|
-
*/
|
|
20
|
-
interface WalletState extends WalletSession {
|
|
21
|
-
setWallets: (wallets: Wallet[]) => void;
|
|
22
|
-
setSelectedWallet: (wallet: Wallet) => void;
|
|
23
|
-
setSelectedCountry: (countryCode: CountryCode) => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
_getWalletsByCountry: (countryCode: CountryCode) => Wallet[];
|
|
26
|
-
_getSelectedWallet: () => Wallet;
|
|
27
|
-
}
|
|
28
|
-
export declare const walletsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WalletState>, "persist"> & {
|
|
29
|
-
persist: {
|
|
30
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<WalletState, unknown>>) => void;
|
|
31
|
-
clearStorage: () => void;
|
|
32
|
-
rehydrate: () => Promise<void> | void;
|
|
33
|
-
hasHydrated: () => boolean;
|
|
34
|
-
onHydrate: (fn: (state: WalletState) => void) => () => void;
|
|
35
|
-
onFinishHydration: (fn: (state: WalletState) => void) => () => void;
|
|
36
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<WalletState, unknown>>;
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* WalletSessionManager handles wallet-related operations and state management coordination.
|
|
41
|
-
* It uses a Zustand store (`useWalletStore`) for state and interacts with WalletRepo.
|
|
42
|
-
*
|
|
43
|
-
* IMPORTANT: This manager enforces the invariant that an initialized user session
|
|
44
|
-
* always has at least one wallet and a valid selection. Methods that return selected
|
|
45
|
-
* data (`getSelectedWallet`, `getSelectedCountry`, etc.) will THROW AN ERROR if called
|
|
46
|
-
* before the session is initialized via the `initialize()` method.
|
|
47
|
-
*/
|
|
48
|
-
export declare class WalletSessionManager {
|
|
49
|
-
private repo;
|
|
50
|
-
private static _instance;
|
|
51
|
-
/**
|
|
52
|
-
* @private
|
|
53
|
-
*/
|
|
54
|
-
private constructor();
|
|
55
|
-
/**
|
|
56
|
-
* Gets the singleton instance of WalletSessionManager.
|
|
57
|
-
* @returns {WalletSessionManager} The singleton instance.
|
|
58
|
-
*/
|
|
59
|
-
static get instance(): WalletSessionManager;
|
|
60
|
-
/**
|
|
61
|
-
* Checks if the wallet session is initialized.
|
|
62
|
-
* @returns {boolean} True if initialized, false otherwise.
|
|
63
|
-
*/
|
|
64
|
-
isInitialized(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Initializes the wallet manager for the current user.
|
|
67
|
-
* Fetches wallets if the store isn't already initialized.
|
|
68
|
-
* Throws an error if the user is not authenticated or if the user is found to have no wallets.
|
|
69
|
-
* @async
|
|
70
|
-
* @returns {Promise<void>} Resolves when initialization is complete.
|
|
71
|
-
* @throws {Error} If user not authenticated or user has no wallets.
|
|
72
|
-
*/
|
|
73
|
-
initialize(user: User): Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* Fetches the latest wallet data from the server and updates the store.
|
|
76
|
-
* Throws an error if the user has no wallets or if the fetch fails.
|
|
77
|
-
* Ensures the store is updated and marked as initialized.
|
|
78
|
-
* @async
|
|
79
|
-
* @returns {Promise<void>} Resolves when refresh is complete.
|
|
80
|
-
* @throws {Error} If fetch fails or user has no wallets.
|
|
81
|
-
*/
|
|
82
|
-
refreshWallets(): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Gets all available wallets. Guaranteed non-empty after successful initialization.
|
|
85
|
-
* @returns {Wallet[]} Non-empty array of Wallet instances.
|
|
86
|
-
* @throws {Error} If called before initialization is complete.
|
|
87
|
-
*/
|
|
88
|
-
getWallets(): Wallet[];
|
|
89
|
-
/**
|
|
90
|
-
* Gets unique available country codes based on current wallets.
|
|
91
|
-
* @returns {CountryCode[]} Array of CountryCodes. Guaranteed non-empty after initialization.
|
|
92
|
-
* @throws {Error} If called before initialization is complete.
|
|
93
|
-
*/
|
|
94
|
-
getCountries(): CountryCode[];
|
|
95
|
-
/**
|
|
96
|
-
* Gets wallets for a specific country.
|
|
97
|
-
* @param {CountryCode} countryCode The country code to filter by.
|
|
98
|
-
* @returns {Wallet[]} Array of Wallet instances for the country. May be empty if no wallets match the code, but the overall list isn't empty.
|
|
99
|
-
* @throws {Error} If called before initialization is complete.
|
|
100
|
-
*/
|
|
101
|
-
getWalletsByCountry(countryCode: CountryCode): Wallet[];
|
|
102
|
-
/**
|
|
103
|
-
* Gets the currently selected wallet instance.
|
|
104
|
-
* @returns {Wallet} The selected Wallet instance (guaranteed non-nullable).
|
|
105
|
-
* @throws {Error} If called before initialization is complete or if state is inconsistent.
|
|
106
|
-
*/
|
|
107
|
-
getSelectedWallet(): Wallet;
|
|
108
|
-
/**
|
|
109
|
-
* Gets the currently selected country code.
|
|
110
|
-
* @returns {CountryCode} The selected CountryCode (guaranteed non-nullable).
|
|
111
|
-
* @throws {Error} If called before initialization is complete.
|
|
112
|
-
*/
|
|
113
|
-
getSelectedCountryCode(): CountryCode;
|
|
114
|
-
/**
|
|
115
|
-
* Gets the currently selected Country object.
|
|
116
|
-
* @returns {Country} The selected Country object (guaranteed non-nullable).
|
|
117
|
-
* @throws {Error} If called before initialization or if Country.fromCode fails for the selected code.
|
|
118
|
-
*/
|
|
119
|
-
getSelectedCountry(): Country;
|
|
120
|
-
/**
|
|
121
|
-
* Changes the selected wallet in the store.
|
|
122
|
-
* Throws error if the provided walletId is not found in the current list.
|
|
123
|
-
* @param {string} walletId - The ID of the wallet to select.
|
|
124
|
-
* @returns {void}
|
|
125
|
-
* @throws {Error} If wallet with given ID is not found or if called before initialization.
|
|
126
|
-
*/
|
|
127
|
-
changeWallet(walletId: string): void;
|
|
128
|
-
/**
|
|
129
|
-
* Changes the selected country in the store.
|
|
130
|
-
* Automatically selects the first available wallet for that country.
|
|
131
|
-
* Throws error if no wallets exist for the given countryCode or if called before initialization.
|
|
132
|
-
* @param {CountryCode} countryCode - The country code to select.
|
|
133
|
-
* @returns {void}
|
|
134
|
-
* @throws {Error} If no wallets found for the country code or if called before initialization.
|
|
135
|
-
*/
|
|
136
|
-
changeCountry(countryCode: CountryCode): void;
|
|
137
|
-
/**
|
|
138
|
-
* Resets the wallet store to initial (uninitialized) state.
|
|
139
|
-
* Typically used during user logout.
|
|
140
|
-
*/
|
|
141
|
-
reset(): void;
|
|
142
|
-
}
|
|
143
|
-
export {};
|