@temboplus/afloat 0.1.57 → 0.1.58
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/_dnt.test_shims.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -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/features/admin/admin.contract.d.ts → esm/src/features/admin/contract.d.ts} +77 -41
- 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/{dist/features/admin/admin.dtos.d.ts → esm/src/features/admin/schemas.d.ts} +9 -8
- package/esm/src/features/admin/schemas.d.ts.map +1 -0
- package/esm/src/features/admin/schemas.js +206 -0
- package/{dist/features/auth/access/access.api-contract.d.ts → esm/src/features/auth/access/contract.d.ts} +1 -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/features/auth/auth.contract.d.ts → esm/src/features/auth/contract.d.ts} +8 -12
- package/esm/src/features/auth/contract.d.ts.map +1 -0
- package/esm/src/features/auth/contract.js +43 -0
- package/{dist/features/auth/identity/identity.api-contract.d.ts → esm/src/features/auth/identity/contract.d.ts} +1 -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/features/auth/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/features/auth/storage/client-store.d.ts → esm/src/features/auth/storage/client_store.d.ts} +3 -2
- 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/features/auth/storage/client-token-handler.d.ts → esm/src/features/auth/storage/client_token_handler.d.ts} +2 -1
- 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 → 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/features/contact/contact.api-contract.d.ts → esm/src/features/contact/contract.d.ts} +45 -101
- 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/features/payout/payout.api-contract.d.ts → esm/src/features/payout/contract.d.ts} +187 -351
- 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/features/wallet/wallet.contract.d.ts → esm/src/features/wallet/contract.d.ts} +7 -9
- 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/{dist/models/contact.model.d.ts → esm/src/models/contact/derivatives/contact.d.ts} +16 -23
- 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.test.d.ts.map +1 -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/derivatives/contact_info.test.d.ts.map +1 -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/contact/validation.test.d.ts.map +1 -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/models/payout.model.d.ts → esm/src/models/payout/derivatives/payout.d.ts} +15 -13
- package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/esm/src/models/payout/derivatives/payout.js +261 -0
- package/esm/src/models/payout/derivatives/payout.test.d.ts.map +1 -0
- package/esm/src/models/payout/index.d.ts +6 -0
- package/esm/src/models/payout/index.d.ts.map +1 -0
- package/esm/src/models/payout/index.js +5 -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 → esm/src}/models/permission.d.ts +2 -1
- package/esm/src/models/permission.d.ts.map +1 -0
- package/esm/src/models/permission.js +50 -0
- package/{dist/models/role.model.d.ts → esm/src/models/role.d.ts} +10 -2
- 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/{dist/models/managed-user.model.d.ts → esm/src/models/user/managed-user.d.ts} +3 -3
- package/esm/src/models/user/managed-user.d.ts.map +1 -0
- package/esm/src/models/user/managed-user.js +255 -0
- package/{dist/models/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/models/wallet.model.d.ts → esm/src/models/wallet/wallet.d.ts} +46 -3
- package/esm/src/models/wallet/wallet.d.ts.map +1 -0
- package/esm/src/models/wallet/wallet.js +279 -0
- package/{dist/lib/api/base-repository.d.ts → esm/src/shared/base_repository.d.ts} +42 -137
- package/esm/src/shared/base_repository.d.ts.map +1 -0
- package/esm/src/shared/base_repository.js +153 -0
- package/{dist/lib/api/common-responses.d.ts → esm/src/shared/common_responses.d.ts} +1 -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 +25 -47
- package/script/_dnt.test_shims.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/script/mod.d.ts +8 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +23 -0
- package/script/package.json +3 -0
- package/script/src/errors/api_error.d.ts +63 -0
- package/script/src/errors/api_error.d.ts.map +1 -0
- package/script/src/errors/api_error.js +94 -0
- package/script/src/errors/index.d.ts +3 -0
- package/script/src/errors/index.d.ts.map +1 -0
- package/script/src/errors/index.js +18 -0
- package/script/src/errors/permission_error.d.ts +48 -0
- package/script/src/errors/permission_error.d.ts.map +1 -0
- package/script/src/errors/permission_error.js +74 -0
- package/script/src/features/admin/contract.d.ts +842 -0
- package/script/src/features/admin/contract.d.ts.map +1 -0
- package/script/src/features/admin/contract.js +213 -0
- package/script/src/features/admin/index.d.ts +4 -0
- package/script/src/features/admin/index.d.ts.map +1 -0
- package/script/src/features/admin/index.js +19 -0
- package/script/src/features/admin/repository.d.ts +114 -0
- package/script/src/features/admin/repository.d.ts.map +1 -0
- package/script/src/features/admin/repository.js +252 -0
- package/script/src/features/admin/schemas.d.ts +146 -0
- package/script/src/features/admin/schemas.d.ts.map +1 -0
- package/script/src/features/admin/schemas.js +209 -0
- package/script/src/features/auth/access/contract.d.ts +14 -0
- package/script/src/features/auth/access/contract.d.ts.map +1 -0
- package/script/src/features/auth/access/contract.js +17 -0
- package/script/src/features/auth/access/repository.d.ts +11 -0
- package/script/src/features/auth/access/repository.d.ts.map +1 -0
- package/script/src/features/auth/access/repository.js +29 -0
- package/script/src/features/auth/contract.d.ts +112 -0
- package/script/src/features/auth/contract.d.ts.map +1 -0
- package/script/src/features/auth/contract.js +46 -0
- package/script/src/features/auth/identity/contract.d.ts +23 -0
- package/script/src/features/auth/identity/contract.d.ts.map +1 -0
- package/script/src/features/auth/identity/contract.js +20 -0
- package/script/src/features/auth/identity/repository.d.ts +22 -0
- package/script/src/features/auth/identity/repository.d.ts.map +1 -0
- package/script/src/features/auth/identity/repository.js +34 -0
- package/script/src/features/auth/index.d.ts +6 -0
- package/script/src/features/auth/index.d.ts.map +1 -0
- package/script/src/features/auth/index.js +21 -0
- package/script/src/features/auth/manager.d.ts +105 -0
- package/script/src/features/auth/manager.d.ts.map +1 -0
- package/script/src/features/auth/manager.js +185 -0
- package/script/src/features/auth/profile/contract.d.ts +37 -0
- package/script/src/features/auth/profile/contract.d.ts.map +1 -0
- package/script/src/features/auth/profile/contract.js +17 -0
- package/script/src/features/auth/profile/repository.d.ts +11 -0
- package/script/src/features/auth/profile/repository.d.ts.map +1 -0
- package/script/src/features/auth/profile/repository.js +29 -0
- package/script/src/features/auth/repository.d.ts +30 -0
- package/script/src/features/auth/repository.d.ts.map +1 -0
- package/script/src/features/auth/repository.js +73 -0
- package/script/src/features/auth/storage/client_store.d.ts +30 -0
- package/script/src/features/auth/storage/client_store.d.ts.map +1 -0
- package/script/src/features/auth/storage/client_store.js +51 -0
- package/script/src/features/auth/storage/client_token_handler.d.ts +32 -0
- package/script/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
- package/script/src/features/auth/storage/client_token_handler.js +40 -0
- package/script/src/features/auth/storage/server_store.d.ts +24 -0
- package/script/src/features/auth/storage/server_store.d.ts.map +1 -0
- package/script/src/features/auth/storage/server_store.js +38 -0
- package/script/src/features/auth/storage/server_token_handler.d.ts +36 -0
- package/script/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
- package/script/src/features/auth/storage/server_token_handler.js +119 -0
- package/script/src/features/auth/storage/types.d.ts +42 -0
- package/script/src/features/auth/storage/types.d.ts.map +1 -0
- package/script/src/features/auth/storage/types.js +2 -0
- package/script/src/features/contact/contract.d.ts +170 -0
- package/script/src/features/contact/contract.d.ts.map +1 -0
- package/script/src/features/contact/contract.js +52 -0
- package/script/src/features/contact/index.d.ts +2 -0
- package/script/src/features/contact/index.d.ts.map +1 -0
- package/script/src/features/contact/index.js +17 -0
- package/script/src/features/contact/repository.d.ts +58 -0
- package/script/src/features/contact/repository.d.ts.map +1 -0
- package/script/src/features/contact/repository.js +112 -0
- package/script/src/features/payout/contract.d.ts +623 -0
- package/script/src/features/payout/contract.d.ts.map +1 -0
- package/script/src/features/payout/contract.js +78 -0
- package/script/src/features/payout/index.d.ts +2 -0
- package/script/src/features/payout/index.d.ts.map +1 -0
- package/script/src/features/payout/index.js +17 -0
- package/script/src/features/payout/repository.d.ts +67 -0
- package/script/src/features/payout/repository.d.ts.map +1 -0
- package/script/src/features/payout/repository.js +167 -0
- package/script/src/features/wallet/contract.d.ts +137 -0
- package/script/src/features/wallet/contract.d.ts.map +1 -0
- package/script/src/features/wallet/contract.js +41 -0
- package/script/src/features/wallet/index.d.ts +2 -0
- package/script/src/features/wallet/index.d.ts.map +1 -0
- package/script/src/features/wallet/index.js +17 -0
- package/script/src/features/wallet/repository.d.ts +57 -0
- package/script/src/features/wallet/repository.d.ts.map +1 -0
- package/script/src/features/wallet/repository.js +97 -0
- package/script/src/models/contact/derivatives/contact.d.ts +172 -0
- package/script/src/models/contact/derivatives/contact.d.ts.map +1 -0
- package/script/src/models/contact/derivatives/contact.js +270 -0
- package/script/src/models/contact/derivatives/contact.test.d.ts.map +1 -0
- package/script/src/models/contact/derivatives/contact_info.d.ts +188 -0
- package/script/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
- package/script/src/models/contact/derivatives/contact_info.js +260 -0
- package/script/src/models/contact/derivatives/contact_info.test.d.ts.map +1 -0
- package/script/src/models/contact/index.d.ts +5 -0
- package/script/src/models/contact/index.d.ts.map +1 -0
- package/script/src/models/contact/index.js +20 -0
- package/script/src/models/contact/schemas.d.ts +66 -0
- package/script/src/models/contact/schemas.d.ts.map +1 -0
- package/script/src/models/contact/schemas.js +67 -0
- package/script/src/models/contact/validation.d.ts +37 -0
- package/script/src/models/contact/validation.d.ts.map +1 -0
- package/script/src/models/contact/validation.js +153 -0
- package/script/src/models/contact/validation.test.d.ts.map +1 -0
- package/script/src/models/index.d.ts +7 -0
- package/script/src/models/index.d.ts.map +1 -0
- package/script/src/models/index.js +22 -0
- package/script/src/models/payout/api.d.ts +29 -0
- package/script/src/models/payout/api.d.ts.map +1 -0
- package/script/src/models/payout/api.js +2 -0
- package/script/src/models/payout/channel.d.ts +58 -0
- package/script/src/models/payout/channel.d.ts.map +1 -0
- package/script/src/models/payout/channel.js +56 -0
- package/script/src/models/payout/derivatives/payout.d.ts +156 -0
- package/script/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/script/src/models/payout/derivatives/payout.js +265 -0
- package/script/src/models/payout/derivatives/payout.test.d.ts.map +1 -0
- package/script/src/models/payout/index.d.ts +6 -0
- package/script/src/models/payout/index.d.ts.map +1 -0
- package/script/src/models/payout/index.js +21 -0
- package/script/src/models/payout/schemas.d.ts +156 -0
- package/script/src/models/payout/schemas.d.ts.map +1 -0
- package/script/src/models/payout/schemas.js +108 -0
- package/script/src/models/payout/status.d.ts +33 -0
- package/script/src/models/payout/status.d.ts.map +1 -0
- package/script/src/models/payout/status.js +37 -0
- package/script/src/models/permission.d.ts +55 -0
- package/script/src/models/permission.d.ts.map +1 -0
- package/script/src/models/permission.js +53 -0
- package/script/src/models/role.d.ts +21 -0
- package/script/src/models/role.d.ts.map +1 -0
- package/script/src/models/role.js +77 -0
- package/script/src/models/user/authenticated-user.d.ts +77 -0
- package/script/src/models/user/authenticated-user.d.ts.map +1 -0
- package/script/src/models/user/authenticated-user.js +230 -0
- package/script/src/models/user/index.d.ts +4 -0
- package/script/src/models/user/index.d.ts.map +1 -0
- package/script/src/models/user/index.js +19 -0
- package/script/src/models/user/managed-user.d.ts +108 -0
- package/script/src/models/user/managed-user.d.ts.map +1 -0
- package/script/src/models/user/managed-user.js +260 -0
- package/script/src/models/user/profile.d.ts +161 -0
- package/script/src/models/user/profile.d.ts.map +1 -0
- package/script/src/models/user/profile.js +338 -0
- package/script/src/models/wallet/index.d.ts +4 -0
- package/script/src/models/wallet/index.d.ts.map +1 -0
- package/script/src/models/wallet/index.js +19 -0
- package/script/src/models/wallet/schemas.d.ts +95 -0
- package/script/src/models/wallet/schemas.d.ts.map +1 -0
- package/script/src/models/wallet/schemas.js +38 -0
- package/script/src/models/wallet/statement_entry.d.ts +160 -0
- package/script/src/models/wallet/statement_entry.d.ts.map +1 -0
- package/script/src/models/wallet/statement_entry.js +259 -0
- package/script/src/models/wallet/wallet.d.ts +147 -0
- package/script/src/models/wallet/wallet.d.ts.map +1 -0
- package/script/src/models/wallet/wallet.js +283 -0
- package/script/src/shared/base_repository.d.ts +80 -0
- package/script/src/shared/base_repository.d.ts.map +1 -0
- package/script/src/shared/base_repository.js +157 -0
- package/script/src/shared/common_responses.d.ts +13 -0
- package/script/src/shared/common_responses.d.ts.map +1 -0
- package/script/src/shared/common_responses.js +13 -0
- package/script/src/shared/index.d.ts +3 -0
- package/script/src/shared/index.d.ts.map +1 -0
- package/script/src/shared/index.js +18 -0
- package/script/src/shared/token_required_repository.d.ts +78 -0
- package/script/src/shared/token_required_repository.d.ts.map +1 -0
- package/script/src/shared/token_required_repository.js +132 -0
- package/dist/features/admin/admin.repository.d.ts +0 -179
- package/dist/features/admin/index.d.ts +0 -2
- package/dist/features/auth/access/access.repository.d.ts +0 -55
- package/dist/features/auth/auth.manager.d.ts +0 -249
- package/dist/features/auth/auth.repository.d.ts +0 -66
- package/dist/features/auth/auth.store.d.ts +0 -139
- package/dist/features/auth/identity/identity.repository.d.ts +0 -58
- package/dist/features/auth/index.d.ts +0 -5
- package/dist/features/auth/profile/profile.dtos.d.ts +0 -80
- package/dist/features/auth/profile/profile.repository.d.ts +0 -56
- package/dist/features/contact/contact-input-handler.d.ts +0 -16
- package/dist/features/contact/contact.dtos.d.ts +0 -90
- package/dist/features/contact/contact.repository.d.ts +0 -116
- package/dist/features/contact/index.d.ts +0 -2
- package/dist/features/payout/index.d.ts +0 -3
- package/dist/features/payout/payout-channel-handler.d.ts +0 -108
- package/dist/features/payout/payout.dtos.d.ts +0 -365
- package/dist/features/payout/payout.repository.d.ts +0 -193
- package/dist/features/wallet/index.d.ts +0 -4
- package/dist/features/wallet/wallet-manager.session.d.ts +0 -143
- package/dist/features/wallet/wallet.dtos.d.ts +0 -204
- package/dist/features/wallet/wallet.repository.d.ts +0 -120
- package/dist/features/wallet/wallet.utils.d.ts +0 -17
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/lib/api/index.d.ts +0 -2
- package/dist/lib/error/error.utils.d.ts +0 -22
- package/dist/lib/error/index.d.ts +0 -3
- package/dist/models/contact-info.model.d.ts +0 -817
- package/dist/models/index.d.ts +0 -10
- package/dist/models/statement-entry.model.d.ts +0 -195
- package/dist/models/user.model.d.ts +0 -65
package/dist/models/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./contact-info.model";
|
|
2
|
-
export * from "./contact.model";
|
|
3
|
-
export * from "./payout.model";
|
|
4
|
-
export * from "./profile.model";
|
|
5
|
-
export * from "./user.model";
|
|
6
|
-
export * from "./wallet.model";
|
|
7
|
-
export * from "./statement-entry.model";
|
|
8
|
-
export * from "./permission";
|
|
9
|
-
export * from "./managed-user.model";
|
|
10
|
-
export * from "./role.model";
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { WalletStatementEntryDTO } from "@/features/wallet/wallet.dtos";
|
|
2
|
-
import { Amount, AmountJson } from "@temboplus/frontend-core";
|
|
3
|
-
/**
|
|
4
|
-
* Interface for the JSON representation of WalletStatementEntry
|
|
5
|
-
*/
|
|
6
|
-
export interface WalletStatementEntryJson {
|
|
7
|
-
accountNo?: string;
|
|
8
|
-
debitOrCredit: string;
|
|
9
|
-
tranRefNo: string;
|
|
10
|
-
narration: string;
|
|
11
|
-
txnDate: string;
|
|
12
|
-
valueDate: string;
|
|
13
|
-
amountCredited: AmountJson;
|
|
14
|
-
amountDebited: AmountJson;
|
|
15
|
-
balance: AmountJson;
|
|
16
|
-
currencyCode: string;
|
|
17
|
-
version?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Represents a single entry in a Wallet's statement history.
|
|
21
|
-
*
|
|
22
|
-
* This class provides methods for creating, validating, and accessing statement entry data.
|
|
23
|
-
* It integrates with the Zod schema validation for data integrity.
|
|
24
|
-
*/
|
|
25
|
-
export declare class WalletStatementEntry {
|
|
26
|
-
private _accountNo?;
|
|
27
|
-
private _debitOrCredit;
|
|
28
|
-
private _tranRefNo;
|
|
29
|
-
private _narration;
|
|
30
|
-
private _txnDate;
|
|
31
|
-
private _valueDate;
|
|
32
|
-
private _amountCredited;
|
|
33
|
-
private _amountDebited;
|
|
34
|
-
private _balance;
|
|
35
|
-
private _currencyCode;
|
|
36
|
-
/**
|
|
37
|
-
* Gets the statement entry schema used for validation.
|
|
38
|
-
*/
|
|
39
|
-
static get schema(): import("zod").ZodObject<{
|
|
40
|
-
accountNo: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodString>, string | undefined, string | undefined>;
|
|
41
|
-
debitOrCredit: import("zod").ZodString;
|
|
42
|
-
tranRefNo: import("zod").ZodString;
|
|
43
|
-
narration: import("zod").ZodString;
|
|
44
|
-
txnDate: import("zod").ZodDate;
|
|
45
|
-
valueDate: import("zod").ZodDate;
|
|
46
|
-
amountCredited: import("zod").ZodNumber;
|
|
47
|
-
amountDebited: import("zod").ZodNumber;
|
|
48
|
-
balance: import("zod").ZodNumber;
|
|
49
|
-
currencyCode: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodString>, string | undefined, string | undefined>>;
|
|
50
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
51
|
-
currencyCode: string;
|
|
52
|
-
debitOrCredit: string;
|
|
53
|
-
tranRefNo: string;
|
|
54
|
-
narration: string;
|
|
55
|
-
txnDate: Date;
|
|
56
|
-
valueDate: Date;
|
|
57
|
-
amountCredited: number;
|
|
58
|
-
amountDebited: number;
|
|
59
|
-
balance: number;
|
|
60
|
-
accountNo?: string | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
debitOrCredit: string;
|
|
63
|
-
tranRefNo: string;
|
|
64
|
-
narration: string;
|
|
65
|
-
txnDate: Date;
|
|
66
|
-
valueDate: Date;
|
|
67
|
-
amountCredited: number;
|
|
68
|
-
amountDebited: number;
|
|
69
|
-
balance: number;
|
|
70
|
-
accountNo?: string | undefined;
|
|
71
|
-
currencyCode?: string | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
/**
|
|
74
|
-
* Private constructor to enforce use of static factory methods.
|
|
75
|
-
* Assumes data is already validated and dates are Date objects.
|
|
76
|
-
* @param data - Object containing statement entry information conforming to WalletStatementEntryDTO.
|
|
77
|
-
*/
|
|
78
|
-
private constructor();
|
|
79
|
-
/**
|
|
80
|
-
* Creates a new WalletStatementEntry instance after validating the input data.
|
|
81
|
-
* Handles date coercion via the schema and uses currencyCode from the data.
|
|
82
|
-
*
|
|
83
|
-
* @param data - Object containing statement entry information. Dates can be strings or Date objects.
|
|
84
|
-
* @returns A new WalletStatementEntry instance, or undefined if validation fails.
|
|
85
|
-
*/
|
|
86
|
-
static create(data: {
|
|
87
|
-
accountNo?: string | null;
|
|
88
|
-
debitOrCredit: string;
|
|
89
|
-
tranRefNo: string;
|
|
90
|
-
narration: string;
|
|
91
|
-
txnDate: string | Date;
|
|
92
|
-
valueDate: string | Date;
|
|
93
|
-
amountCredited: number;
|
|
94
|
-
amountDebited: number;
|
|
95
|
-
balance: number;
|
|
96
|
-
currencyCode?: string;
|
|
97
|
-
}): WalletStatementEntry | undefined;
|
|
98
|
-
get accountNo(): string | undefined;
|
|
99
|
-
get debitOrCredit(): string;
|
|
100
|
-
get tranRefNo(): string;
|
|
101
|
-
get narration(): string;
|
|
102
|
-
get txnDate(): Date;
|
|
103
|
-
get valueDate(): Date;
|
|
104
|
-
get amountCredited(): Amount;
|
|
105
|
-
get amountDebited(): Amount;
|
|
106
|
-
get balance(): Amount;
|
|
107
|
-
get currencyCode(): string;
|
|
108
|
-
/**
|
|
109
|
-
* Serializes the WalletStatementEntry instance to a JSON-compatible object.
|
|
110
|
-
* Dates are converted to ISO strings, amounts are serialized using Amount.toJson().
|
|
111
|
-
*
|
|
112
|
-
* @returns {WalletStatementEntryJson} A plain object containing all necessary data
|
|
113
|
-
*/
|
|
114
|
-
toJson(): WalletStatementEntryJson;
|
|
115
|
-
/**
|
|
116
|
-
* Creates a WalletStatementEntry instance from a JSON-compatible object.
|
|
117
|
-
*
|
|
118
|
-
* @param {WalletStatementEntryJson | string} json - Either a WalletStatementEntryJson object or a JSON string
|
|
119
|
-
* @returns {WalletStatementEntry | undefined} A WalletStatementEntry instance if valid, undefined otherwise
|
|
120
|
-
*/
|
|
121
|
-
static fromJson(json: WalletStatementEntryJson | string): WalletStatementEntry | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* Type guard to check if an object is a valid WalletStatementEntryJson
|
|
124
|
-
*
|
|
125
|
-
* @param obj - The object to validate
|
|
126
|
-
* @returns True if the object conforms to WalletStatementEntryJson structure
|
|
127
|
-
*/
|
|
128
|
-
static isWalletStatementEntryJson(obj: unknown): obj is WalletStatementEntryJson;
|
|
129
|
-
/**
|
|
130
|
-
* Validates the current statement entry instance data against the schema.
|
|
131
|
-
* @returns True if the statement entry instance data is valid, false otherwise.
|
|
132
|
-
*/
|
|
133
|
-
validate(): boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Type guard to check if an unknown object is a valid WalletStatementEntry instance.
|
|
136
|
-
* Performs structural checks (duck typing).
|
|
137
|
-
* @param obj - The object to check.
|
|
138
|
-
* @returns Type predicate indicating if the object is a WalletStatementEntry instance.
|
|
139
|
-
*/
|
|
140
|
-
static is(obj: unknown): obj is WalletStatementEntry;
|
|
141
|
-
/**
|
|
142
|
-
* Checks if two WalletStatementEntry instances are equal based on their transaction reference numbers.
|
|
143
|
-
* @param other - Another WalletStatementEntry to compare with.
|
|
144
|
-
* @returns True if both entries have the same transaction reference number.
|
|
145
|
-
*/
|
|
146
|
-
equals(other: WalletStatementEntry): boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Creates a copy of this WalletStatementEntry with the same data.
|
|
149
|
-
* @returns A new WalletStatementEntry instance with identical data.
|
|
150
|
-
*/
|
|
151
|
-
clone(): WalletStatementEntry | undefined;
|
|
152
|
-
/**
|
|
153
|
-
* Returns a string representation of the statement entry for debugging.
|
|
154
|
-
* @returns A formatted string with key transaction details.
|
|
155
|
-
*/
|
|
156
|
-
toString(): string;
|
|
157
|
-
/**
|
|
158
|
-
* Serializes an array of WalletStatementEntry instances to JSON-compatible objects
|
|
159
|
-
*
|
|
160
|
-
* @param entries - Array of WalletStatementEntry instances to serialize
|
|
161
|
-
* @returns Array of WalletStatementEntryJson objects
|
|
162
|
-
*/
|
|
163
|
-
static toJsonArray(entries: WalletStatementEntry[]): WalletStatementEntryJson[];
|
|
164
|
-
/**
|
|
165
|
-
* Creates WalletStatementEntry instances from an array of JSON-compatible objects
|
|
166
|
-
*
|
|
167
|
-
* @param jsonArray - Array of WalletStatementEntryJson objects or JSON string
|
|
168
|
-
* @returns Array of WalletStatementEntry instances (invalid items are filtered out)
|
|
169
|
-
*/
|
|
170
|
-
static fromJsonArray(jsonArray: WalletStatementEntryJson[] | string): WalletStatementEntry[];
|
|
171
|
-
/**
|
|
172
|
-
* Legacy method for backwards compatibility - creates object representation
|
|
173
|
-
* @deprecated Use toJson() instead for proper serialization
|
|
174
|
-
*/
|
|
175
|
-
toObject(): Omit<WalletStatementEntryDTO, "amountCredited" | "amountDebited" | "balance"> & {
|
|
176
|
-
amountCredited: AmountJson;
|
|
177
|
-
amountDebited: AmountJson;
|
|
178
|
-
balance: AmountJson;
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Legacy method for backwards compatibility - converts to JSON string
|
|
182
|
-
* @deprecated Use JSON.stringify(entry.toJson()) instead
|
|
183
|
-
*/
|
|
184
|
-
toJSON(): string;
|
|
185
|
-
/**
|
|
186
|
-
* Legacy method for backwards compatibility
|
|
187
|
-
* @deprecated Use fromJson() instead
|
|
188
|
-
*/
|
|
189
|
-
static fromJSON(jsonString: string): WalletStatementEntry | undefined;
|
|
190
|
-
/**
|
|
191
|
-
* Legacy method for backwards compatibility - creates from plain object
|
|
192
|
-
* @deprecated Use fromJson() for serialized data or create() for raw data
|
|
193
|
-
*/
|
|
194
|
-
static from(data: any): WalletStatementEntry | undefined;
|
|
195
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Profile } from "./profile.model";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a user in Afloat.
|
|
4
|
-
*
|
|
5
|
-
* This class centralizes user-related logic, simplifying interaction
|
|
6
|
-
* with user-related data and ensuring consistent access checks across the application.
|
|
7
|
-
*/
|
|
8
|
-
export declare class User {
|
|
9
|
-
/**
|
|
10
|
-
* Logged-in user name.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
/**
|
|
14
|
-
* Logged-in identity: phone number or email address.
|
|
15
|
-
*/
|
|
16
|
-
identity: string;
|
|
17
|
-
/**
|
|
18
|
-
* The user's Afloat profile.
|
|
19
|
-
*/
|
|
20
|
-
profile: Profile;
|
|
21
|
-
/**
|
|
22
|
-
* The user's authentication token.
|
|
23
|
-
*/
|
|
24
|
-
token: string;
|
|
25
|
-
/**
|
|
26
|
-
* Indicates whether the user must change their default password.
|
|
27
|
-
*/
|
|
28
|
-
resetPassword: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* A list of granted access keys (permissions).
|
|
31
|
-
*/
|
|
32
|
-
access: string[];
|
|
33
|
-
/**
|
|
34
|
-
* A map of access keys to boolean values for fast permission checks.
|
|
35
|
-
*/
|
|
36
|
-
private accessMap;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new `User` instance.
|
|
39
|
-
*/
|
|
40
|
-
private constructor();
|
|
41
|
-
/**
|
|
42
|
-
* Checks if the user has a specific access permission.
|
|
43
|
-
*
|
|
44
|
-
* @param key - The access key to check.
|
|
45
|
-
* @returns `true` if the user has the specified access, otherwise `false`.
|
|
46
|
-
*/
|
|
47
|
-
can(key: string): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Returns a plain object representation of the user.
|
|
50
|
-
* This can safely be embedded in a JWT payload.
|
|
51
|
-
*/
|
|
52
|
-
toObject(): Record<string, any>;
|
|
53
|
-
/**
|
|
54
|
-
* Serializes the `User` instance to a JSON string.
|
|
55
|
-
*/
|
|
56
|
-
toJSON(): string;
|
|
57
|
-
/**
|
|
58
|
-
* Creates a new `User` instance from a JSON string.
|
|
59
|
-
*/
|
|
60
|
-
static fromJSON(jsonString: string): User | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Creates a new `User` instance from a plain object.
|
|
63
|
-
*/
|
|
64
|
-
static from(data: any): User | undefined;
|
|
65
|
-
}
|