@temboplus/afloat 0.1.57 → 0.1.59
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} +17 -13
- package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/esm/src/models/payout/derivatives/payout.js +265 -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 +158 -0
- package/script/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/script/src/models/payout/derivatives/payout.js +269 -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
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Custom error class representing API-related errors.
|
|
4
|
+
* Extends the built-in `Error` class to include additional properties such as `statusCode`, `error`, and `details`.
|
|
5
|
+
*/
|
|
6
|
+
export class APIError extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new `APIError` instance.
|
|
9
|
+
* @param {Object} args - The arguments to initialize the error.
|
|
10
|
+
* @param {string} args.message - The error message.
|
|
11
|
+
* @param {number} args.statusCode - The HTTP status code associated with the error.
|
|
12
|
+
* @param {string} [args.error] - An optional error identifier or code.
|
|
13
|
+
* @param {Record<string, unknown>} [args.details] - Additional details about the error.
|
|
14
|
+
*/
|
|
15
|
+
constructor(args) {
|
|
16
|
+
super(args.message);
|
|
17
|
+
/**
|
|
18
|
+
* The HTTP status code associated with the error.
|
|
19
|
+
* @type {number}
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(this, "statusCode", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: void 0
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* An optional error identifier or code.
|
|
29
|
+
* @type {string | undefined}
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(this, "error", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: void 0
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Additional details about the error, often used for debugging purposes.
|
|
39
|
+
* @type {Record<string, unknown> | undefined}
|
|
40
|
+
*/
|
|
41
|
+
Object.defineProperty(this, "details", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: void 0
|
|
46
|
+
});
|
|
47
|
+
this.name = "ApiError";
|
|
48
|
+
this.statusCode = args.statusCode;
|
|
49
|
+
if (this.error)
|
|
50
|
+
this.error = args.error;
|
|
51
|
+
if (args.details)
|
|
52
|
+
this.details = args.details;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Validates whether an unknown value conforms to the APIError schema.
|
|
56
|
+
* This is more thorough than an instanceof check as it verifies all required properties
|
|
57
|
+
* and their types using the defined schema.
|
|
58
|
+
*
|
|
59
|
+
* @param {unknown} error - Any value to be validated
|
|
60
|
+
* @returns {error is APIError} Type predicate indicating if the value is a valid APIError
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* try {
|
|
64
|
+
* throw new Error('Network failed');
|
|
65
|
+
* } catch (err) {
|
|
66
|
+
* if (APIError.is(err)) {
|
|
67
|
+
* // err is typed as APIError here
|
|
68
|
+
* console.log(err.statusCode);
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
71
|
+
*/
|
|
72
|
+
static is(error) {
|
|
73
|
+
const result = APIError.schema.safeParse(error);
|
|
74
|
+
return result.success;
|
|
75
|
+
}
|
|
76
|
+
static unknown(message) {
|
|
77
|
+
return new APIError({
|
|
78
|
+
message: message ?? "An unknown error occurred",
|
|
79
|
+
statusCode: 502,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
static get schema() {
|
|
83
|
+
return z.object({
|
|
84
|
+
message: z.string(),
|
|
85
|
+
statusCode: z.number().int(),
|
|
86
|
+
error: z.string().optional(),
|
|
87
|
+
details: z.object({}).optional(),
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Permission } from "
|
|
1
|
+
import { type Permission } from "../models/permission.js";
|
|
2
2
|
/**
|
|
3
3
|
* Custom error class representing an error caused by missing required permissions.
|
|
4
4
|
* Extends the built-in {@link Error} class to include the `requiredPermissions` property.
|
|
@@ -45,3 +45,4 @@ export declare class PermissionError extends Error {
|
|
|
45
45
|
*/
|
|
46
46
|
static is(error: unknown): error is PermissionError;
|
|
47
47
|
}
|
|
48
|
+
//# sourceMappingURL=permission_error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission_error.d.ts","sourceRoot":"","sources":["../../../src/src/errors/permission_error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAC;AAGvE;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC;;;OAGG;IACH,SAAgB,mBAAmB,EAAE,UAAU,EAAE,CAAC;IAElD;;;;;OAKG;gBACS,IAAI,EAAE;QAChB,mBAAmB,EAAE,UAAU,EAAE,CAAC;QAClC,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IASD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;WACW,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe;CAkB3D"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Permissions } from "../models/permission.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Custom error class representing an error caused by missing required permissions.
|
|
5
|
+
* Extends the built-in {@link Error} class to include the `requiredPermissions` property.
|
|
6
|
+
*/
|
|
7
|
+
export class PermissionError extends Error {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new `PermissionError` instance.
|
|
10
|
+
* @param {Object} args - The constructor arguments.
|
|
11
|
+
* @param {Permission[]} args.requiredPermissions - An array of permissions required for the operation.
|
|
12
|
+
* @param {string} [args.message] - An optional custom error message. Defaults to listing the missing permissions.
|
|
13
|
+
*/
|
|
14
|
+
constructor(args) {
|
|
15
|
+
super(args.message ??
|
|
16
|
+
`Missing required permissions: ${args.requiredPermissions.join(", ")}`);
|
|
17
|
+
/**
|
|
18
|
+
* The permissions that are required but were not present, causing the error.
|
|
19
|
+
* @type {Permission[]}
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(this, "requiredPermissions", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: void 0
|
|
26
|
+
});
|
|
27
|
+
this.name = "PermissionError";
|
|
28
|
+
this.requiredPermissions = args.requiredPermissions;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Validates if an unknown value is a valid PermissionError instance.
|
|
32
|
+
* Performs structural validation of the error object and its properties.
|
|
33
|
+
*
|
|
34
|
+
* @param {unknown} error - The value to validate.
|
|
35
|
+
* @returns {error is PermissionError} Type predicate indicating if the value is a valid PermissionError.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* try {
|
|
39
|
+
* throw new Error('Access denied');
|
|
40
|
+
* } catch (error) {
|
|
41
|
+
* if (PermissionError.is(error)) {
|
|
42
|
+
* // error is typed as PermissionError with properly typed requiredPermissions
|
|
43
|
+
* console.log(error.requiredPermissions);
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Validates the following:
|
|
49
|
+
* - Has all required Error properties
|
|
50
|
+
* - Has correct error name
|
|
51
|
+
* - Contains properly structured requiredPermissions array
|
|
52
|
+
* - Maintains proper prototype chain
|
|
53
|
+
*/
|
|
54
|
+
static is(error) {
|
|
55
|
+
const permissionSchema = z.union([
|
|
56
|
+
z.enum(Object.values(Permissions.Profile)),
|
|
57
|
+
z.enum(Object.values(Permissions.Contact)),
|
|
58
|
+
z.enum(Object.values(Permissions.Payment)),
|
|
59
|
+
z.enum(Object.values(Permissions.Payout)),
|
|
60
|
+
z.enum(Object.values(Permissions.Transfer)),
|
|
61
|
+
z.enum(Object.values(Permissions.Wallet)),
|
|
62
|
+
]);
|
|
63
|
+
const errorSchema = z.object({
|
|
64
|
+
name: z.literal("PermissionError"),
|
|
65
|
+
message: z.string(),
|
|
66
|
+
requiredPermissions: z.array(permissionSchema),
|
|
67
|
+
});
|
|
68
|
+
return errorSchema.safeParse(error).success;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -17,9 +17,9 @@ export declare const userManagementContract: {
|
|
|
17
17
|
eager: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
19
19
|
type?: string | undefined;
|
|
20
|
-
name?: string | undefined;
|
|
21
20
|
id?: string | undefined;
|
|
22
21
|
resetPassword?: number | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
23
23
|
identity?: string | undefined;
|
|
24
24
|
profileId?: string | undefined;
|
|
25
25
|
createdAt?: string | undefined;
|
|
@@ -30,9 +30,9 @@ export declare const userManagementContract: {
|
|
|
30
30
|
isArchived?: number | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
type?: string | undefined;
|
|
33
|
-
name?: string | undefined;
|
|
34
33
|
id?: string | undefined;
|
|
35
34
|
resetPassword?: number | undefined;
|
|
35
|
+
name?: string | undefined;
|
|
36
36
|
identity?: string | undefined;
|
|
37
37
|
profileId?: string | undefined;
|
|
38
38
|
createdAt?: string | undefined;
|
|
@@ -56,14 +56,21 @@ export declare const userManagementContract: {
|
|
|
56
56
|
resetPassword: z.ZodBoolean;
|
|
57
57
|
isActive: z.ZodBoolean;
|
|
58
58
|
isArchived: z.ZodBoolean;
|
|
59
|
-
role: z.ZodOptional<z.ZodType<
|
|
59
|
+
role: z.ZodOptional<z.ZodType<{
|
|
60
|
+
id: string;
|
|
61
|
+
access: string[];
|
|
62
|
+
name: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
}>>;
|
|
60
67
|
createdAt: z.ZodString;
|
|
61
68
|
updatedAt: z.ZodString;
|
|
62
69
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
63
70
|
type: string;
|
|
64
|
-
name: string;
|
|
65
71
|
id: string;
|
|
66
72
|
resetPassword: boolean;
|
|
73
|
+
name: string;
|
|
67
74
|
identity: string;
|
|
68
75
|
profileId: string;
|
|
69
76
|
createdAt: string;
|
|
@@ -72,18 +79,18 @@ export declare const userManagementContract: {
|
|
|
72
79
|
isActive: boolean;
|
|
73
80
|
isArchived: boolean;
|
|
74
81
|
role?: {
|
|
75
|
-
name: string;
|
|
76
82
|
id: string;
|
|
77
83
|
access: string[];
|
|
84
|
+
name: string;
|
|
78
85
|
createdAt: string;
|
|
79
86
|
updatedAt: string;
|
|
80
87
|
description?: string | undefined;
|
|
81
88
|
} | undefined;
|
|
82
89
|
}, {
|
|
83
90
|
type: string;
|
|
84
|
-
name: string;
|
|
85
91
|
id: string;
|
|
86
92
|
resetPassword: boolean;
|
|
93
|
+
name: string;
|
|
87
94
|
identity: string;
|
|
88
95
|
profileId: string;
|
|
89
96
|
createdAt: string;
|
|
@@ -92,9 +99,9 @@ export declare const userManagementContract: {
|
|
|
92
99
|
isActive: boolean;
|
|
93
100
|
isArchived: boolean;
|
|
94
101
|
role?: {
|
|
95
|
-
name: string;
|
|
96
102
|
id: string;
|
|
97
103
|
access: string[];
|
|
104
|
+
name: string;
|
|
98
105
|
createdAt: string;
|
|
99
106
|
updatedAt: string;
|
|
100
107
|
description?: string | undefined;
|
|
@@ -140,9 +147,9 @@ export declare const userManagementContract: {
|
|
|
140
147
|
eager: z.ZodOptional<z.ZodString>;
|
|
141
148
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
142
149
|
type?: string | undefined;
|
|
143
|
-
name?: string | undefined;
|
|
144
150
|
id?: string | undefined;
|
|
145
151
|
resetPassword?: number | undefined;
|
|
152
|
+
name?: string | undefined;
|
|
146
153
|
identity?: string | undefined;
|
|
147
154
|
profileId?: string | undefined;
|
|
148
155
|
createdAt?: string | undefined;
|
|
@@ -153,9 +160,9 @@ export declare const userManagementContract: {
|
|
|
153
160
|
isArchived?: number | undefined;
|
|
154
161
|
}, {
|
|
155
162
|
type?: string | undefined;
|
|
156
|
-
name?: string | undefined;
|
|
157
163
|
id?: string | undefined;
|
|
158
164
|
resetPassword?: number | undefined;
|
|
165
|
+
name?: string | undefined;
|
|
159
166
|
identity?: string | undefined;
|
|
160
167
|
profileId?: string | undefined;
|
|
161
168
|
createdAt?: string | undefined;
|
|
@@ -179,14 +186,21 @@ export declare const userManagementContract: {
|
|
|
179
186
|
resetPassword: z.ZodBoolean;
|
|
180
187
|
isActive: z.ZodBoolean;
|
|
181
188
|
isArchived: z.ZodBoolean;
|
|
182
|
-
role: z.ZodOptional<z.ZodType<
|
|
189
|
+
role: z.ZodOptional<z.ZodType<{
|
|
190
|
+
id: string;
|
|
191
|
+
access: string[];
|
|
192
|
+
name: string;
|
|
193
|
+
createdAt: string;
|
|
194
|
+
updatedAt: string;
|
|
195
|
+
description?: string | undefined;
|
|
196
|
+
}>>;
|
|
183
197
|
createdAt: z.ZodString;
|
|
184
198
|
updatedAt: z.ZodString;
|
|
185
199
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
186
200
|
type: string;
|
|
187
|
-
name: string;
|
|
188
201
|
id: string;
|
|
189
202
|
resetPassword: boolean;
|
|
203
|
+
name: string;
|
|
190
204
|
identity: string;
|
|
191
205
|
profileId: string;
|
|
192
206
|
createdAt: string;
|
|
@@ -195,18 +209,18 @@ export declare const userManagementContract: {
|
|
|
195
209
|
isActive: boolean;
|
|
196
210
|
isArchived: boolean;
|
|
197
211
|
role?: {
|
|
198
|
-
name: string;
|
|
199
212
|
id: string;
|
|
200
213
|
access: string[];
|
|
214
|
+
name: string;
|
|
201
215
|
createdAt: string;
|
|
202
216
|
updatedAt: string;
|
|
203
217
|
description?: string | undefined;
|
|
204
218
|
} | undefined;
|
|
205
219
|
}, {
|
|
206
220
|
type: string;
|
|
207
|
-
name: string;
|
|
208
221
|
id: string;
|
|
209
222
|
resetPassword: boolean;
|
|
223
|
+
name: string;
|
|
210
224
|
identity: string;
|
|
211
225
|
profileId: string;
|
|
212
226
|
createdAt: string;
|
|
@@ -215,9 +229,9 @@ export declare const userManagementContract: {
|
|
|
215
229
|
isActive: boolean;
|
|
216
230
|
isArchived: boolean;
|
|
217
231
|
role?: {
|
|
218
|
-
name: string;
|
|
219
232
|
id: string;
|
|
220
233
|
access: string[];
|
|
234
|
+
name: string;
|
|
221
235
|
createdAt: string;
|
|
222
236
|
updatedAt: string;
|
|
223
237
|
description?: string | undefined;
|
|
@@ -260,14 +274,14 @@ export declare const userManagementContract: {
|
|
|
260
274
|
name: string;
|
|
261
275
|
identity: string;
|
|
262
276
|
resetPassword?: boolean | undefined;
|
|
263
|
-
roleId?: string | undefined;
|
|
264
277
|
password?: string | undefined;
|
|
278
|
+
roleId?: string | undefined;
|
|
265
279
|
}, {
|
|
266
280
|
name: string;
|
|
267
281
|
identity: string;
|
|
268
282
|
resetPassword?: boolean | undefined;
|
|
269
|
-
roleId?: string | undefined;
|
|
270
283
|
password?: string | undefined;
|
|
284
|
+
roleId?: string | undefined;
|
|
271
285
|
}>;
|
|
272
286
|
path: "/login";
|
|
273
287
|
responses: {
|
|
@@ -283,8 +297,8 @@ export declare const userManagementContract: {
|
|
|
283
297
|
createdAt: z.ZodString;
|
|
284
298
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
285
299
|
type: string;
|
|
286
|
-
name: string;
|
|
287
300
|
id: string;
|
|
301
|
+
name: string;
|
|
288
302
|
identity: string;
|
|
289
303
|
profileId: string;
|
|
290
304
|
createdAt: string;
|
|
@@ -293,8 +307,8 @@ export declare const userManagementContract: {
|
|
|
293
307
|
isArchived: boolean;
|
|
294
308
|
}, {
|
|
295
309
|
type: string;
|
|
296
|
-
name: string;
|
|
297
310
|
id: string;
|
|
311
|
+
name: string;
|
|
298
312
|
identity: string;
|
|
299
313
|
profileId: string;
|
|
300
314
|
createdAt: string;
|
|
@@ -353,17 +367,17 @@ export declare const userManagementContract: {
|
|
|
353
367
|
resetPassword: z.ZodOptional<z.ZodBoolean>;
|
|
354
368
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
355
369
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
356
|
-
name?: string | undefined;
|
|
357
370
|
resetPassword?: boolean | undefined;
|
|
371
|
+
name?: string | undefined;
|
|
372
|
+
password?: string | undefined;
|
|
358
373
|
roleId?: string | undefined;
|
|
359
374
|
isActive?: boolean | undefined;
|
|
360
|
-
password?: string | undefined;
|
|
361
375
|
}, {
|
|
362
|
-
name?: string | undefined;
|
|
363
376
|
resetPassword?: boolean | undefined;
|
|
377
|
+
name?: string | undefined;
|
|
378
|
+
password?: string | undefined;
|
|
364
379
|
roleId?: string | undefined;
|
|
365
380
|
isActive?: boolean | undefined;
|
|
366
|
-
password?: string | undefined;
|
|
367
381
|
}>;
|
|
368
382
|
path: "/login/:id";
|
|
369
383
|
responses: {
|
|
@@ -377,14 +391,21 @@ export declare const userManagementContract: {
|
|
|
377
391
|
resetPassword: z.ZodBoolean;
|
|
378
392
|
isActive: z.ZodBoolean;
|
|
379
393
|
isArchived: z.ZodBoolean;
|
|
380
|
-
role: z.ZodOptional<z.ZodType<
|
|
394
|
+
role: z.ZodOptional<z.ZodType<{
|
|
395
|
+
id: string;
|
|
396
|
+
access: string[];
|
|
397
|
+
name: string;
|
|
398
|
+
createdAt: string;
|
|
399
|
+
updatedAt: string;
|
|
400
|
+
description?: string | undefined;
|
|
401
|
+
}>>;
|
|
381
402
|
createdAt: z.ZodString;
|
|
382
403
|
updatedAt: z.ZodString;
|
|
383
404
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
384
405
|
type: string;
|
|
385
|
-
name: string;
|
|
386
406
|
id: string;
|
|
387
407
|
resetPassword: boolean;
|
|
408
|
+
name: string;
|
|
388
409
|
identity: string;
|
|
389
410
|
profileId: string;
|
|
390
411
|
createdAt: string;
|
|
@@ -393,18 +414,18 @@ export declare const userManagementContract: {
|
|
|
393
414
|
isActive: boolean;
|
|
394
415
|
isArchived: boolean;
|
|
395
416
|
role?: {
|
|
396
|
-
name: string;
|
|
397
417
|
id: string;
|
|
398
418
|
access: string[];
|
|
419
|
+
name: string;
|
|
399
420
|
createdAt: string;
|
|
400
421
|
updatedAt: string;
|
|
401
422
|
description?: string | undefined;
|
|
402
423
|
} | undefined;
|
|
403
424
|
}, {
|
|
404
425
|
type: string;
|
|
405
|
-
name: string;
|
|
406
426
|
id: string;
|
|
407
427
|
resetPassword: boolean;
|
|
428
|
+
name: string;
|
|
408
429
|
identity: string;
|
|
409
430
|
profileId: string;
|
|
410
431
|
createdAt: string;
|
|
@@ -413,9 +434,9 @@ export declare const userManagementContract: {
|
|
|
413
434
|
isActive: boolean;
|
|
414
435
|
isArchived: boolean;
|
|
415
436
|
role?: {
|
|
416
|
-
name: string;
|
|
417
437
|
id: string;
|
|
418
438
|
access: string[];
|
|
439
|
+
name: string;
|
|
419
440
|
createdAt: string;
|
|
420
441
|
updatedAt: string;
|
|
421
442
|
description?: string | undefined;
|
|
@@ -478,14 +499,21 @@ export declare const userManagementContract: {
|
|
|
478
499
|
resetPassword: z.ZodBoolean;
|
|
479
500
|
isActive: z.ZodBoolean;
|
|
480
501
|
isArchived: z.ZodBoolean;
|
|
481
|
-
role: z.ZodOptional<z.ZodType<
|
|
502
|
+
role: z.ZodOptional<z.ZodType<{
|
|
503
|
+
id: string;
|
|
504
|
+
access: string[];
|
|
505
|
+
name: string;
|
|
506
|
+
createdAt: string;
|
|
507
|
+
updatedAt: string;
|
|
508
|
+
description?: string | undefined;
|
|
509
|
+
}>>;
|
|
482
510
|
createdAt: z.ZodString;
|
|
483
511
|
updatedAt: z.ZodString;
|
|
484
512
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
485
513
|
type: string;
|
|
486
|
-
name: string;
|
|
487
514
|
id: string;
|
|
488
515
|
resetPassword: boolean;
|
|
516
|
+
name: string;
|
|
489
517
|
identity: string;
|
|
490
518
|
profileId: string;
|
|
491
519
|
createdAt: string;
|
|
@@ -494,18 +522,18 @@ export declare const userManagementContract: {
|
|
|
494
522
|
isActive: boolean;
|
|
495
523
|
isArchived: boolean;
|
|
496
524
|
role?: {
|
|
497
|
-
name: string;
|
|
498
525
|
id: string;
|
|
499
526
|
access: string[];
|
|
527
|
+
name: string;
|
|
500
528
|
createdAt: string;
|
|
501
529
|
updatedAt: string;
|
|
502
530
|
description?: string | undefined;
|
|
503
531
|
} | undefined;
|
|
504
532
|
}, {
|
|
505
533
|
type: string;
|
|
506
|
-
name: string;
|
|
507
534
|
id: string;
|
|
508
535
|
resetPassword: boolean;
|
|
536
|
+
name: string;
|
|
509
537
|
identity: string;
|
|
510
538
|
profileId: string;
|
|
511
539
|
createdAt: string;
|
|
@@ -514,9 +542,9 @@ export declare const userManagementContract: {
|
|
|
514
542
|
isActive: boolean;
|
|
515
543
|
isArchived: boolean;
|
|
516
544
|
role?: {
|
|
517
|
-
name: string;
|
|
518
545
|
id: string;
|
|
519
546
|
access: string[];
|
|
547
|
+
name: string;
|
|
520
548
|
createdAt: string;
|
|
521
549
|
updatedAt: string;
|
|
522
550
|
description?: string | undefined;
|
|
@@ -569,14 +597,21 @@ export declare const userManagementContract: {
|
|
|
569
597
|
resetPassword: z.ZodBoolean;
|
|
570
598
|
isActive: z.ZodBoolean;
|
|
571
599
|
isArchived: z.ZodBoolean;
|
|
572
|
-
role: z.ZodOptional<z.ZodType<
|
|
600
|
+
role: z.ZodOptional<z.ZodType<{
|
|
601
|
+
id: string;
|
|
602
|
+
access: string[];
|
|
603
|
+
name: string;
|
|
604
|
+
createdAt: string;
|
|
605
|
+
updatedAt: string;
|
|
606
|
+
description?: string | undefined;
|
|
607
|
+
}>>;
|
|
573
608
|
createdAt: z.ZodString;
|
|
574
609
|
updatedAt: z.ZodString;
|
|
575
610
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
576
611
|
type: string;
|
|
577
|
-
name: string;
|
|
578
612
|
id: string;
|
|
579
613
|
resetPassword: boolean;
|
|
614
|
+
name: string;
|
|
580
615
|
identity: string;
|
|
581
616
|
profileId: string;
|
|
582
617
|
createdAt: string;
|
|
@@ -585,18 +620,18 @@ export declare const userManagementContract: {
|
|
|
585
620
|
isActive: boolean;
|
|
586
621
|
isArchived: boolean;
|
|
587
622
|
role?: {
|
|
588
|
-
name: string;
|
|
589
623
|
id: string;
|
|
590
624
|
access: string[];
|
|
625
|
+
name: string;
|
|
591
626
|
createdAt: string;
|
|
592
627
|
updatedAt: string;
|
|
593
628
|
description?: string | undefined;
|
|
594
629
|
} | undefined;
|
|
595
630
|
}, {
|
|
596
631
|
type: string;
|
|
597
|
-
name: string;
|
|
598
632
|
id: string;
|
|
599
633
|
resetPassword: boolean;
|
|
634
|
+
name: string;
|
|
600
635
|
identity: string;
|
|
601
636
|
profileId: string;
|
|
602
637
|
createdAt: string;
|
|
@@ -605,9 +640,9 @@ export declare const userManagementContract: {
|
|
|
605
640
|
isActive: boolean;
|
|
606
641
|
isArchived: boolean;
|
|
607
642
|
role?: {
|
|
608
|
-
name: string;
|
|
609
643
|
id: string;
|
|
610
644
|
access: string[];
|
|
645
|
+
name: string;
|
|
611
646
|
createdAt: string;
|
|
612
647
|
updatedAt: string;
|
|
613
648
|
description?: string | undefined;
|
|
@@ -710,16 +745,16 @@ export declare const userManagementContract: {
|
|
|
710
745
|
createdAt: z.ZodString;
|
|
711
746
|
updatedAt: z.ZodString;
|
|
712
747
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
713
|
-
name: string;
|
|
714
748
|
id: string;
|
|
715
749
|
access: string[];
|
|
750
|
+
name: string;
|
|
716
751
|
createdAt: string;
|
|
717
752
|
updatedAt: string;
|
|
718
753
|
description?: string | undefined;
|
|
719
754
|
}, {
|
|
720
|
-
name: string;
|
|
721
755
|
id: string;
|
|
722
756
|
access: string[];
|
|
757
|
+
name: string;
|
|
723
758
|
createdAt: string;
|
|
724
759
|
updatedAt: string;
|
|
725
760
|
description?: string | undefined;
|
|
@@ -761,16 +796,16 @@ export declare const userManagementContract: {
|
|
|
761
796
|
createdAt: z.ZodString;
|
|
762
797
|
updatedAt: z.ZodString;
|
|
763
798
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
764
|
-
name: string;
|
|
765
799
|
id: string;
|
|
766
800
|
access: string[];
|
|
801
|
+
name: string;
|
|
767
802
|
createdAt: string;
|
|
768
803
|
updatedAt: string;
|
|
769
804
|
description?: string | undefined;
|
|
770
805
|
}, {
|
|
771
|
-
name: string;
|
|
772
806
|
id: string;
|
|
773
807
|
access: string[];
|
|
808
|
+
name: string;
|
|
774
809
|
createdAt: string;
|
|
775
810
|
updatedAt: string;
|
|
776
811
|
description?: string | undefined;
|
|
@@ -804,3 +839,4 @@ export declare const userManagementContract: {
|
|
|
804
839
|
* Use this type for strongly typed API client implementations.
|
|
805
840
|
*/
|
|
806
841
|
export type UserManagementContract = typeof userManagementContract;
|
|
842
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/src/features/admin/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNjC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
|