@temboplus/afloat 0.1.81 → 0.2.0-beta.2
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/README.md +246 -42
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/lib/api/base-repository.d.ts +177 -0
- package/dist/lib/api/index.d.ts +1 -0
- package/{esm/src/errors/api_error.d.ts → dist/lib/error/error.api.d.ts} +0 -1
- package/{script/npm/src/src/errors/permission_error.d.ts → dist/lib/error/error.permission.d.ts} +1 -2
- package/dist/lib/error/error.utils.d.ts +22 -0
- package/dist/lib/error/index.d.ts +3 -0
- package/dist/lib/query/index.d.ts +4 -0
- package/dist/lib/query/pagination/pagination.d.ts +73 -0
- package/dist/lib/query/pagination/pagination.schemas.d.ts +83 -0
- package/dist/lib/query/query.builder.d.ts +75 -0
- package/dist/lib/query/query.types.d.ts +36 -0
- package/{esm/src/features/auth/contract.d.ts → dist/modules/auth/auth.contract.d.ts} +16 -19
- package/dist/modules/auth/auth.repository.d.ts +83 -0
- package/dist/modules/auth/company-membership.model.d.ts +171 -0
- package/dist/modules/auth/index.d.ts +3 -0
- package/dist/modules/auth/user.model.d.ts +363 -0
- package/dist/modules/beneficiary/beneficiary-info.model.d.ts +178 -0
- package/dist/modules/beneficiary/beneficiary-input-handler.d.ts +16 -0
- package/dist/modules/beneficiary/beneficiary.api-contract.d.ts +203 -0
- package/dist/modules/beneficiary/beneficiary.dtos.d.ts +84 -0
- package/dist/modules/beneficiary/beneficiary.model.d.ts +441 -0
- package/dist/modules/beneficiary/beneficiary.repository.d.ts +116 -0
- package/dist/modules/beneficiary/index.d.ts +6 -0
- package/dist/modules/login/index.d.ts +4 -0
- package/dist/modules/login/login.api-contract.d.ts +51 -0
- package/dist/modules/login/login.dtos.d.ts +85 -0
- package/dist/modules/login/login.model.d.ts +168 -0
- package/dist/modules/login/login.repository.d.ts +58 -0
- package/{esm/src/models/permission.d.ts → dist/modules/login/permission.type.d.ts} +9 -10
- package/dist/modules/payout/index.d.ts +5 -0
- package/dist/modules/payout/payout-channel-handler.d.ts +82 -0
- package/{esm/src/features/payout/contract.d.ts → dist/modules/payout/payout.api-contract.d.ts} +350 -207
- package/dist/modules/payout/payout.dtos.d.ts +607 -0
- package/dist/modules/payout/payout.model.d.ts +383 -0
- package/dist/modules/payout/payout.query.d.ts +134 -0
- package/dist/modules/payout/payout.repository.d.ts +204 -0
- package/dist/modules/profile/index.d.ts +3 -0
- package/{script/npm/src/src/features/auth/profile/contract.d.ts → dist/modules/profile/profile.api-contract.d.ts} +8 -6
- package/dist/modules/profile/profile.dtos.d.ts +80 -0
- package/{script/npm/src/src/models/user/profile.d.ts → dist/modules/profile/profile.model.d.ts} +81 -52
- package/dist/modules/profile/profile.repository.d.ts +56 -0
- package/dist/modules/team-member/index.d.ts +4 -0
- package/dist/modules/team-member/role.model.d.ts +61 -0
- package/{esm/src/features/admin/contract.d.ts → dist/modules/team-member/team-member.contract.d.ts} +229 -154
- package/dist/modules/team-member/team-member.dtos.d.ts +261 -0
- package/dist/modules/team-member/team-member.model.d.ts +237 -0
- package/dist/modules/team-member/team-member.repository.d.ts +179 -0
- package/dist/modules/wallet/index.d.ts +6 -0
- package/dist/modules/wallet/narration.model.d.ts +225 -0
- package/dist/modules/wallet/statement-entry.model.d.ts +299 -0
- package/{script/npm/src/src/features/wallet/contract.d.ts → dist/modules/wallet/wallet.contract.d.ts} +17 -15
- package/dist/modules/wallet/wallet.dtos.d.ts +204 -0
- package/{esm/src/models/wallet/wallet.d.ts → dist/modules/wallet/wallet.model.d.ts} +34 -40
- package/dist/modules/wallet/wallet.query.d.ts +95 -0
- package/dist/modules/wallet/wallet.repository.d.ts +205 -0
- package/dist/modules/wallet/wallet.utils.d.ts +17 -0
- package/package.json +49 -23
- package/LICENSE +0 -7
- package/esm/mod.d.ts +0 -8
- package/esm/mod.d.ts.map +0 -1
- package/esm/mod.js +0 -7
- package/esm/package.json +0 -3
- package/esm/src/errors/api_error.d.ts.map +0 -1
- package/esm/src/errors/api_error.js +0 -90
- package/esm/src/errors/index.d.ts +0 -3
- package/esm/src/errors/index.d.ts.map +0 -1
- package/esm/src/errors/index.js +0 -2
- package/esm/src/errors/permission_error.d.ts +0 -48
- package/esm/src/errors/permission_error.d.ts.map +0 -1
- package/esm/src/errors/permission_error.js +0 -70
- package/esm/src/features/admin/contract.d.ts.map +0 -1
- package/esm/src/features/admin/contract.js +0 -210
- package/esm/src/features/admin/index.d.ts +0 -4
- package/esm/src/features/admin/index.d.ts.map +0 -1
- package/esm/src/features/admin/index.js +0 -3
- package/esm/src/features/admin/repository.d.ts +0 -114
- package/esm/src/features/admin/repository.d.ts.map +0 -1
- package/esm/src/features/admin/repository.js +0 -248
- package/esm/src/features/admin/schemas.d.ts +0 -146
- package/esm/src/features/admin/schemas.d.ts.map +0 -1
- package/esm/src/features/admin/schemas.js +0 -206
- package/esm/src/features/auth/access/contract.d.ts +0 -14
- package/esm/src/features/auth/access/contract.d.ts.map +0 -1
- package/esm/src/features/auth/access/contract.js +0 -14
- package/esm/src/features/auth/access/repository.d.ts +0 -11
- package/esm/src/features/auth/access/repository.d.ts.map +0 -1
- package/esm/src/features/auth/access/repository.js +0 -25
- package/esm/src/features/auth/contract.d.ts.map +0 -1
- package/esm/src/features/auth/contract.js +0 -43
- package/esm/src/features/auth/identity/contract.d.ts +0 -23
- package/esm/src/features/auth/identity/contract.d.ts.map +0 -1
- package/esm/src/features/auth/identity/contract.js +0 -17
- package/esm/src/features/auth/identity/repository.d.ts +0 -22
- package/esm/src/features/auth/identity/repository.d.ts.map +0 -1
- package/esm/src/features/auth/identity/repository.js +0 -30
- package/esm/src/features/auth/index.d.ts +0 -6
- package/esm/src/features/auth/index.d.ts.map +0 -1
- package/esm/src/features/auth/index.js +0 -5
- package/esm/src/features/auth/manager.d.ts +0 -105
- package/esm/src/features/auth/manager.d.ts.map +0 -1
- package/esm/src/features/auth/manager.js +0 -181
- package/esm/src/features/auth/profile/contract.d.ts +0 -37
- package/esm/src/features/auth/profile/contract.d.ts.map +0 -1
- package/esm/src/features/auth/profile/contract.js +0 -14
- package/esm/src/features/auth/profile/repository.d.ts +0 -11
- package/esm/src/features/auth/profile/repository.d.ts.map +0 -1
- package/esm/src/features/auth/profile/repository.js +0 -25
- package/esm/src/features/auth/repository.d.ts +0 -30
- package/esm/src/features/auth/repository.d.ts.map +0 -1
- package/esm/src/features/auth/repository.js +0 -69
- package/esm/src/features/auth/storage/client_store.d.ts +0 -30
- package/esm/src/features/auth/storage/client_store.d.ts.map +0 -1
- package/esm/src/features/auth/storage/client_store.js +0 -46
- package/esm/src/features/auth/storage/client_token_handler.d.ts +0 -32
- package/esm/src/features/auth/storage/client_token_handler.d.ts.map +0 -1
- package/esm/src/features/auth/storage/client_token_handler.js +0 -36
- package/esm/src/features/auth/storage/server_store.d.ts +0 -24
- package/esm/src/features/auth/storage/server_store.d.ts.map +0 -1
- package/esm/src/features/auth/storage/server_store.js +0 -34
- package/esm/src/features/auth/storage/server_token_handler.d.ts +0 -36
- package/esm/src/features/auth/storage/server_token_handler.d.ts.map +0 -1
- package/esm/src/features/auth/storage/server_token_handler.js +0 -115
- package/esm/src/features/auth/storage/types.d.ts +0 -42
- package/esm/src/features/auth/storage/types.d.ts.map +0 -1
- package/esm/src/features/auth/storage/types.js +0 -1
- package/esm/src/features/contact/contract.d.ts +0 -170
- package/esm/src/features/contact/contract.d.ts.map +0 -1
- package/esm/src/features/contact/contract.js +0 -49
- package/esm/src/features/contact/index.d.ts +0 -2
- package/esm/src/features/contact/index.d.ts.map +0 -1
- package/esm/src/features/contact/index.js +0 -1
- package/esm/src/features/contact/repository.d.ts +0 -58
- package/esm/src/features/contact/repository.d.ts.map +0 -1
- package/esm/src/features/contact/repository.js +0 -108
- package/esm/src/features/payout/contract.d.ts.map +0 -1
- package/esm/src/features/payout/contract.js +0 -75
- package/esm/src/features/payout/index.d.ts +0 -2
- package/esm/src/features/payout/index.d.ts.map +0 -1
- package/esm/src/features/payout/index.js +0 -1
- package/esm/src/features/payout/repository.d.ts +0 -67
- package/esm/src/features/payout/repository.d.ts.map +0 -1
- package/esm/src/features/payout/repository.js +0 -179
- package/esm/src/features/wallet/contract.d.ts +0 -137
- package/esm/src/features/wallet/contract.d.ts.map +0 -1
- package/esm/src/features/wallet/contract.js +0 -38
- package/esm/src/features/wallet/index.d.ts +0 -2
- package/esm/src/features/wallet/index.d.ts.map +0 -1
- package/esm/src/features/wallet/index.js +0 -1
- package/esm/src/features/wallet/repository.d.ts +0 -57
- package/esm/src/features/wallet/repository.d.ts.map +0 -1
- package/esm/src/features/wallet/repository.js +0 -93
- package/esm/src/models/contact/derivatives/contact.d.ts +0 -172
- package/esm/src/models/contact/derivatives/contact.d.ts.map +0 -1
- package/esm/src/models/contact/derivatives/contact.js +0 -266
- package/esm/src/models/contact/derivatives/contact_info.d.ts +0 -188
- package/esm/src/models/contact/derivatives/contact_info.d.ts.map +0 -1
- package/esm/src/models/contact/derivatives/contact_info.js +0 -255
- package/esm/src/models/contact/index.d.ts +0 -5
- package/esm/src/models/contact/index.d.ts.map +0 -1
- package/esm/src/models/contact/index.js +0 -4
- package/esm/src/models/contact/schemas.d.ts +0 -66
- package/esm/src/models/contact/schemas.d.ts.map +0 -1
- package/esm/src/models/contact/schemas.js +0 -64
- package/esm/src/models/contact/validation.d.ts +0 -37
- package/esm/src/models/contact/validation.d.ts.map +0 -1
- package/esm/src/models/contact/validation.js +0 -146
- package/esm/src/models/index.d.ts +0 -7
- package/esm/src/models/index.d.ts.map +0 -1
- package/esm/src/models/index.js +0 -6
- package/esm/src/models/payout/api.d.ts +0 -29
- package/esm/src/models/payout/api.d.ts.map +0 -1
- package/esm/src/models/payout/api.js +0 -1
- package/esm/src/models/payout/channel.d.ts +0 -58
- package/esm/src/models/payout/channel.d.ts.map +0 -1
- package/esm/src/models/payout/channel.js +0 -53
- package/esm/src/models/payout/derivatives/payout.d.ts +0 -158
- package/esm/src/models/payout/derivatives/payout.d.ts.map +0 -1
- package/esm/src/models/payout/derivatives/payout.js +0 -271
- package/esm/src/models/payout/index.d.ts +0 -7
- package/esm/src/models/payout/index.d.ts.map +0 -1
- package/esm/src/models/payout/index.js +0 -6
- package/esm/src/models/payout/narration.d.ts +0 -164
- package/esm/src/models/payout/narration.d.ts.map +0 -1
- package/esm/src/models/payout/narration.js +0 -308
- package/esm/src/models/payout/schemas.d.ts +0 -156
- package/esm/src/models/payout/schemas.d.ts.map +0 -1
- package/esm/src/models/payout/schemas.js +0 -105
- package/esm/src/models/payout/status.d.ts +0 -33
- package/esm/src/models/payout/status.d.ts.map +0 -1
- package/esm/src/models/payout/status.js +0 -34
- package/esm/src/models/permission.d.ts.map +0 -1
- package/esm/src/models/permission.js +0 -50
- package/esm/src/models/role.d.ts +0 -21
- package/esm/src/models/role.d.ts.map +0 -1
- package/esm/src/models/role.js +0 -73
- package/esm/src/models/user/authenticated-user.d.ts +0 -77
- package/esm/src/models/user/authenticated-user.d.ts.map +0 -1
- package/esm/src/models/user/authenticated-user.js +0 -226
- package/esm/src/models/user/index.d.ts +0 -4
- package/esm/src/models/user/index.d.ts.map +0 -1
- package/esm/src/models/user/index.js +0 -3
- package/esm/src/models/user/managed-user.d.ts +0 -108
- package/esm/src/models/user/managed-user.d.ts.map +0 -1
- package/esm/src/models/user/managed-user.js +0 -255
- package/esm/src/models/user/profile.d.ts +0 -161
- package/esm/src/models/user/profile.d.ts.map +0 -1
- package/esm/src/models/user/profile.js +0 -334
- package/esm/src/models/wallet/index.d.ts +0 -4
- package/esm/src/models/wallet/index.d.ts.map +0 -1
- package/esm/src/models/wallet/index.js +0 -3
- package/esm/src/models/wallet/schemas.d.ts +0 -95
- package/esm/src/models/wallet/schemas.d.ts.map +0 -1
- package/esm/src/models/wallet/schemas.js +0 -35
- package/esm/src/models/wallet/statement_entry.d.ts +0 -160
- package/esm/src/models/wallet/statement_entry.d.ts.map +0 -1
- package/esm/src/models/wallet/statement_entry.js +0 -255
- package/esm/src/models/wallet/wallet.d.ts.map +0 -1
- package/esm/src/models/wallet/wallet.js +0 -279
- package/esm/src/shared/base_repository.d.ts +0 -80
- package/esm/src/shared/base_repository.d.ts.map +0 -1
- package/esm/src/shared/base_repository.js +0 -153
- package/esm/src/shared/common_responses.d.ts +0 -13
- package/esm/src/shared/common_responses.d.ts.map +0 -1
- package/esm/src/shared/common_responses.js +0 -10
- package/esm/src/shared/index.d.ts +0 -3
- package/esm/src/shared/index.d.ts.map +0 -1
- package/esm/src/shared/index.js +0 -2
- package/esm/src/shared/token_required_repository.d.ts +0 -78
- package/esm/src/shared/token_required_repository.d.ts.map +0 -1
- package/esm/src/shared/token_required_repository.js +0 -128
- package/script/mod.d.ts +0 -8
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js +0 -23
- package/script/npm/src/mod.d.ts +0 -8
- package/script/npm/src/mod.d.ts.map +0 -1
- package/script/npm/src/mod.js +0 -23
- package/script/npm/src/src/errors/api_error.d.ts +0 -63
- package/script/npm/src/src/errors/api_error.d.ts.map +0 -1
- package/script/npm/src/src/errors/api_error.js +0 -94
- package/script/npm/src/src/errors/index.d.ts +0 -3
- package/script/npm/src/src/errors/index.d.ts.map +0 -1
- package/script/npm/src/src/errors/index.js +0 -18
- package/script/npm/src/src/errors/permission_error.d.ts.map +0 -1
- package/script/npm/src/src/errors/permission_error.js +0 -74
- package/script/npm/src/src/features/admin/contract.d.ts +0 -842
- package/script/npm/src/src/features/admin/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/admin/contract.js +0 -213
- package/script/npm/src/src/features/admin/index.d.ts +0 -4
- package/script/npm/src/src/features/admin/index.d.ts.map +0 -1
- package/script/npm/src/src/features/admin/index.js +0 -19
- package/script/npm/src/src/features/admin/repository.d.ts +0 -114
- package/script/npm/src/src/features/admin/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/admin/repository.js +0 -252
- package/script/npm/src/src/features/admin/schemas.d.ts +0 -146
- package/script/npm/src/src/features/admin/schemas.d.ts.map +0 -1
- package/script/npm/src/src/features/admin/schemas.js +0 -209
- package/script/npm/src/src/features/auth/access/contract.d.ts +0 -14
- package/script/npm/src/src/features/auth/access/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/access/contract.js +0 -17
- package/script/npm/src/src/features/auth/access/repository.d.ts +0 -11
- package/script/npm/src/src/features/auth/access/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/access/repository.js +0 -29
- package/script/npm/src/src/features/auth/contract.d.ts +0 -112
- package/script/npm/src/src/features/auth/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/contract.js +0 -46
- package/script/npm/src/src/features/auth/identity/contract.d.ts +0 -23
- package/script/npm/src/src/features/auth/identity/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/identity/contract.js +0 -20
- package/script/npm/src/src/features/auth/identity/repository.d.ts +0 -22
- package/script/npm/src/src/features/auth/identity/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/identity/repository.js +0 -34
- package/script/npm/src/src/features/auth/index.d.ts +0 -6
- package/script/npm/src/src/features/auth/index.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/index.js +0 -21
- package/script/npm/src/src/features/auth/manager.d.ts +0 -105
- package/script/npm/src/src/features/auth/manager.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/manager.js +0 -185
- package/script/npm/src/src/features/auth/profile/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/profile/contract.js +0 -17
- package/script/npm/src/src/features/auth/profile/repository.d.ts +0 -11
- package/script/npm/src/src/features/auth/profile/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/profile/repository.js +0 -29
- package/script/npm/src/src/features/auth/repository.d.ts +0 -30
- package/script/npm/src/src/features/auth/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/repository.js +0 -73
- package/script/npm/src/src/features/auth/storage/client_store.d.ts +0 -30
- package/script/npm/src/src/features/auth/storage/client_store.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/storage/client_store.js +0 -51
- package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts +0 -32
- package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/storage/client_token_handler.js +0 -40
- package/script/npm/src/src/features/auth/storage/server_store.d.ts +0 -24
- package/script/npm/src/src/features/auth/storage/server_store.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/storage/server_store.js +0 -38
- package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts +0 -36
- package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/storage/server_token_handler.js +0 -119
- package/script/npm/src/src/features/auth/storage/types.d.ts +0 -42
- package/script/npm/src/src/features/auth/storage/types.d.ts.map +0 -1
- package/script/npm/src/src/features/auth/storage/types.js +0 -2
- package/script/npm/src/src/features/contact/contract.d.ts +0 -170
- package/script/npm/src/src/features/contact/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/contact/contract.js +0 -52
- package/script/npm/src/src/features/contact/index.d.ts +0 -2
- package/script/npm/src/src/features/contact/index.d.ts.map +0 -1
- package/script/npm/src/src/features/contact/index.js +0 -17
- package/script/npm/src/src/features/contact/repository.d.ts +0 -58
- package/script/npm/src/src/features/contact/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/contact/repository.js +0 -112
- package/script/npm/src/src/features/payout/contract.d.ts +0 -623
- package/script/npm/src/src/features/payout/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/payout/contract.js +0 -78
- package/script/npm/src/src/features/payout/index.d.ts +0 -2
- package/script/npm/src/src/features/payout/index.d.ts.map +0 -1
- package/script/npm/src/src/features/payout/index.js +0 -17
- package/script/npm/src/src/features/payout/repository.d.ts +0 -67
- package/script/npm/src/src/features/payout/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/payout/repository.js +0 -183
- package/script/npm/src/src/features/wallet/contract.d.ts.map +0 -1
- package/script/npm/src/src/features/wallet/contract.js +0 -41
- package/script/npm/src/src/features/wallet/index.d.ts +0 -2
- package/script/npm/src/src/features/wallet/index.d.ts.map +0 -1
- package/script/npm/src/src/features/wallet/index.js +0 -17
- package/script/npm/src/src/features/wallet/repository.d.ts +0 -57
- package/script/npm/src/src/features/wallet/repository.d.ts.map +0 -1
- package/script/npm/src/src/features/wallet/repository.js +0 -97
- package/script/npm/src/src/models/contact/derivatives/contact.d.ts +0 -172
- package/script/npm/src/src/models/contact/derivatives/contact.d.ts.map +0 -1
- package/script/npm/src/src/models/contact/derivatives/contact.js +0 -270
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts +0 -188
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +0 -1
- package/script/npm/src/src/models/contact/derivatives/contact_info.js +0 -260
- package/script/npm/src/src/models/contact/index.d.ts +0 -5
- package/script/npm/src/src/models/contact/index.d.ts.map +0 -1
- package/script/npm/src/src/models/contact/index.js +0 -20
- package/script/npm/src/src/models/contact/schemas.d.ts +0 -66
- package/script/npm/src/src/models/contact/schemas.d.ts.map +0 -1
- package/script/npm/src/src/models/contact/schemas.js +0 -67
- package/script/npm/src/src/models/contact/validation.d.ts +0 -37
- package/script/npm/src/src/models/contact/validation.d.ts.map +0 -1
- package/script/npm/src/src/models/contact/validation.js +0 -153
- package/script/npm/src/src/models/index.d.ts +0 -7
- package/script/npm/src/src/models/index.d.ts.map +0 -1
- package/script/npm/src/src/models/index.js +0 -22
- package/script/npm/src/src/models/payout/api.d.ts +0 -29
- package/script/npm/src/src/models/payout/api.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/api.js +0 -2
- package/script/npm/src/src/models/payout/channel.d.ts +0 -58
- package/script/npm/src/src/models/payout/channel.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/channel.js +0 -56
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts +0 -158
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/derivatives/payout.js +0 -275
- package/script/npm/src/src/models/payout/index.d.ts +0 -7
- package/script/npm/src/src/models/payout/index.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/index.js +0 -22
- package/script/npm/src/src/models/payout/narration.d.ts +0 -164
- package/script/npm/src/src/models/payout/narration.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/narration.js +0 -312
- package/script/npm/src/src/models/payout/schemas.d.ts +0 -156
- package/script/npm/src/src/models/payout/schemas.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/schemas.js +0 -108
- package/script/npm/src/src/models/payout/status.d.ts +0 -33
- package/script/npm/src/src/models/payout/status.d.ts.map +0 -1
- package/script/npm/src/src/models/payout/status.js +0 -37
- package/script/npm/src/src/models/permission.d.ts +0 -55
- package/script/npm/src/src/models/permission.d.ts.map +0 -1
- package/script/npm/src/src/models/permission.js +0 -53
- package/script/npm/src/src/models/role.d.ts +0 -21
- package/script/npm/src/src/models/role.d.ts.map +0 -1
- package/script/npm/src/src/models/role.js +0 -77
- package/script/npm/src/src/models/user/authenticated-user.d.ts +0 -77
- package/script/npm/src/src/models/user/authenticated-user.d.ts.map +0 -1
- package/script/npm/src/src/models/user/authenticated-user.js +0 -230
- package/script/npm/src/src/models/user/index.d.ts +0 -4
- package/script/npm/src/src/models/user/index.d.ts.map +0 -1
- package/script/npm/src/src/models/user/index.js +0 -19
- package/script/npm/src/src/models/user/managed-user.d.ts +0 -108
- package/script/npm/src/src/models/user/managed-user.d.ts.map +0 -1
- package/script/npm/src/src/models/user/managed-user.js +0 -260
- package/script/npm/src/src/models/user/profile.d.ts.map +0 -1
- package/script/npm/src/src/models/user/profile.js +0 -338
- package/script/npm/src/src/models/wallet/index.d.ts +0 -4
- package/script/npm/src/src/models/wallet/index.d.ts.map +0 -1
- package/script/npm/src/src/models/wallet/index.js +0 -19
- package/script/npm/src/src/models/wallet/schemas.d.ts +0 -95
- package/script/npm/src/src/models/wallet/schemas.d.ts.map +0 -1
- package/script/npm/src/src/models/wallet/schemas.js +0 -38
- package/script/npm/src/src/models/wallet/statement_entry.d.ts +0 -160
- package/script/npm/src/src/models/wallet/statement_entry.d.ts.map +0 -1
- package/script/npm/src/src/models/wallet/statement_entry.js +0 -259
- package/script/npm/src/src/models/wallet/wallet.d.ts +0 -147
- package/script/npm/src/src/models/wallet/wallet.d.ts.map +0 -1
- package/script/npm/src/src/models/wallet/wallet.js +0 -283
- package/script/npm/src/src/shared/base_repository.d.ts +0 -80
- package/script/npm/src/src/shared/base_repository.d.ts.map +0 -1
- package/script/npm/src/src/shared/base_repository.js +0 -157
- package/script/npm/src/src/shared/common_responses.d.ts +0 -13
- package/script/npm/src/src/shared/common_responses.d.ts.map +0 -1
- package/script/npm/src/src/shared/common_responses.js +0 -13
- package/script/npm/src/src/shared/index.d.ts +0 -3
- package/script/npm/src/src/shared/index.d.ts.map +0 -1
- package/script/npm/src/src/shared/index.js +0 -18
- package/script/npm/src/src/shared/token_required_repository.d.ts +0 -78
- package/script/npm/src/src/shared/token_required_repository.d.ts.map +0 -1
- package/script/npm/src/src/shared/token_required_repository.js +0 -132
- package/script/package.json +0 -3
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Represents the available channels through which payouts can be processed.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
* @readonly
|
|
6
|
+
*/
|
|
7
|
+
export declare enum PayoutChannel {
|
|
8
|
+
/** Payment processed through mobile money services */
|
|
9
|
+
MOBILE = "Mobile",
|
|
10
|
+
/** Payment processed through traditional banking channels */
|
|
11
|
+
BANK = "Bank"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Represents the current status of a payout transaction.
|
|
15
|
+
* @enum {string}
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
export declare enum PayoutStatus {
|
|
19
|
+
/** Payout has been initially created but not yet processed */
|
|
20
|
+
CREATED = "CREATED",
|
|
21
|
+
/** Payout is awaiting processing */
|
|
22
|
+
PENDING = "PENDING",
|
|
23
|
+
/** Payout has been successfully processed */
|
|
24
|
+
PAID = "PAID",
|
|
25
|
+
/** Payout processing has failed */
|
|
26
|
+
FAILED = "FAILED",
|
|
27
|
+
/** Payout has been rejected */
|
|
28
|
+
REJECTED = "REJECTED",
|
|
29
|
+
/** Payout has been reversed */
|
|
30
|
+
REVERSED = "REVERSED",
|
|
31
|
+
/** Payout has been queued for processing */
|
|
32
|
+
QUEUED = "QUEUED"
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Represents the approval status for payouts that require authorization.
|
|
36
|
+
* @enum {string}
|
|
37
|
+
* @readonly
|
|
38
|
+
*/
|
|
39
|
+
export declare enum PayoutApprovalStatus {
|
|
40
|
+
/** Payout is awaiting approval decision */
|
|
41
|
+
PENDING = "Pending",
|
|
42
|
+
/** Payout has been approved */
|
|
43
|
+
APPROVED = "Approved",
|
|
44
|
+
/** Payout has been rejected during approval process */
|
|
45
|
+
REJECTED = "Rejected"
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Schema for identifying users in the payout process
|
|
49
|
+
* Used to track who created or actioned a payout
|
|
50
|
+
*/
|
|
51
|
+
declare const AuthorizerSchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
identity: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
name: string;
|
|
57
|
+
id: string;
|
|
58
|
+
identity: string;
|
|
59
|
+
}, {
|
|
60
|
+
name: string;
|
|
61
|
+
id: string;
|
|
62
|
+
identity: string;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Schema for creating a new payout
|
|
66
|
+
* Extends base payout schema with payee information
|
|
67
|
+
*/
|
|
68
|
+
declare const PayoutInputDTOSchema: z.ZodObject<{
|
|
69
|
+
channel: z.ZodString;
|
|
70
|
+
msisdn: z.ZodString;
|
|
71
|
+
amount: z.ZodNumber;
|
|
72
|
+
description: z.ZodString;
|
|
73
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
} & {
|
|
75
|
+
payeeName: z.ZodString;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
description: string;
|
|
78
|
+
channel: string;
|
|
79
|
+
msisdn: string;
|
|
80
|
+
amount: number;
|
|
81
|
+
payeeName: string;
|
|
82
|
+
notes?: string | null | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
description: string;
|
|
85
|
+
channel: string;
|
|
86
|
+
msisdn: string;
|
|
87
|
+
amount: number;
|
|
88
|
+
payeeName: string;
|
|
89
|
+
notes?: string | null | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Schema for complete payout record
|
|
93
|
+
* Extends base payout schema with additional fields for:
|
|
94
|
+
* - Identification (id, profileId)
|
|
95
|
+
* - Status tracking
|
|
96
|
+
* - Timestamps
|
|
97
|
+
* - Approval information
|
|
98
|
+
* - User tracking (created by, actioned by)
|
|
99
|
+
*/
|
|
100
|
+
declare const PayoutDTOSchema: z.ZodObject<{
|
|
101
|
+
msisdn: z.ZodString;
|
|
102
|
+
amount: z.ZodNumber;
|
|
103
|
+
description: z.ZodString;
|
|
104
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
} & {
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
profileId: z.ZodString;
|
|
108
|
+
payeeName: z.ZodString;
|
|
109
|
+
countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
|
|
110
|
+
currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
|
|
111
|
+
channel: z.ZodString;
|
|
112
|
+
status: z.ZodNativeEnum<typeof PayoutStatus>;
|
|
113
|
+
statusMessage: z.ZodString;
|
|
114
|
+
partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
createdAt: z.ZodDate;
|
|
116
|
+
updatedAt: z.ZodDate;
|
|
117
|
+
actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
118
|
+
approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof PayoutApprovalStatus>>>;
|
|
119
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
identity: z.ZodString;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
name: string;
|
|
125
|
+
id: string;
|
|
126
|
+
identity: string;
|
|
127
|
+
}, {
|
|
128
|
+
name: string;
|
|
129
|
+
id: string;
|
|
130
|
+
identity: string;
|
|
131
|
+
}>>>;
|
|
132
|
+
actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
name: z.ZodString;
|
|
135
|
+
identity: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
name: string;
|
|
138
|
+
id: string;
|
|
139
|
+
identity: string;
|
|
140
|
+
}, {
|
|
141
|
+
name: string;
|
|
142
|
+
id: string;
|
|
143
|
+
identity: string;
|
|
144
|
+
}>>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
status: PayoutStatus;
|
|
147
|
+
createdAt: Date;
|
|
148
|
+
id: string;
|
|
149
|
+
profileId: string;
|
|
150
|
+
updatedAt: Date;
|
|
151
|
+
description: string;
|
|
152
|
+
channel: string;
|
|
153
|
+
msisdn: string;
|
|
154
|
+
amount: number;
|
|
155
|
+
payeeName: string;
|
|
156
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
157
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
158
|
+
statusMessage: string;
|
|
159
|
+
notes?: string | null | undefined;
|
|
160
|
+
partnerReference?: string | null | undefined;
|
|
161
|
+
actionedAt?: Date | null | undefined;
|
|
162
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
163
|
+
createdBy?: {
|
|
164
|
+
name: string;
|
|
165
|
+
id: string;
|
|
166
|
+
identity: string;
|
|
167
|
+
} | null | undefined;
|
|
168
|
+
actionedBy?: {
|
|
169
|
+
name: string;
|
|
170
|
+
id: string;
|
|
171
|
+
identity: string;
|
|
172
|
+
} | null | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
status: PayoutStatus;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
id: string;
|
|
177
|
+
profileId: string;
|
|
178
|
+
updatedAt: Date;
|
|
179
|
+
description: string;
|
|
180
|
+
channel: string;
|
|
181
|
+
msisdn: string;
|
|
182
|
+
amount: number;
|
|
183
|
+
payeeName: string;
|
|
184
|
+
statusMessage: string;
|
|
185
|
+
notes?: string | null | undefined;
|
|
186
|
+
countryCode?: string | undefined;
|
|
187
|
+
currencyCode?: string | undefined;
|
|
188
|
+
partnerReference?: string | null | undefined;
|
|
189
|
+
actionedAt?: Date | null | undefined;
|
|
190
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
191
|
+
createdBy?: {
|
|
192
|
+
name: string;
|
|
193
|
+
id: string;
|
|
194
|
+
identity: string;
|
|
195
|
+
} | null | undefined;
|
|
196
|
+
actionedBy?: {
|
|
197
|
+
name: string;
|
|
198
|
+
id: string;
|
|
199
|
+
identity: string;
|
|
200
|
+
} | null | undefined;
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* Lightweight filters interface for payout queries
|
|
204
|
+
*/
|
|
205
|
+
declare const PayoutFiltersSchema: z.ZodObject<{
|
|
206
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
207
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
208
|
+
sortBy: z.ZodDefault<z.ZodString>;
|
|
209
|
+
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
210
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
payeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
msisdn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
+
partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
currencyCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof PayoutStatus>>>;
|
|
220
|
+
approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof PayoutApprovalStatus>>>;
|
|
221
|
+
minAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
222
|
+
maxAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
223
|
+
search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
page: number;
|
|
226
|
+
limit: number;
|
|
227
|
+
sortBy: string;
|
|
228
|
+
sortOrder: "asc" | "desc";
|
|
229
|
+
status?: PayoutStatus | null | undefined;
|
|
230
|
+
id?: string | null | undefined;
|
|
231
|
+
profileId?: string | null | undefined;
|
|
232
|
+
search?: string | null | undefined;
|
|
233
|
+
channel?: string | null | undefined;
|
|
234
|
+
msisdn?: string | null | undefined;
|
|
235
|
+
payeeName?: string | null | undefined;
|
|
236
|
+
currencyCode?: string | null | undefined;
|
|
237
|
+
partnerReference?: string | null | undefined;
|
|
238
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
239
|
+
startDate?: string | null | undefined;
|
|
240
|
+
endDate?: string | null | undefined;
|
|
241
|
+
minAmount?: number | null | undefined;
|
|
242
|
+
maxAmount?: number | null | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
status?: PayoutStatus | null | undefined;
|
|
245
|
+
page?: number | undefined;
|
|
246
|
+
limit?: number | undefined;
|
|
247
|
+
id?: string | null | undefined;
|
|
248
|
+
profileId?: string | null | undefined;
|
|
249
|
+
search?: string | null | undefined;
|
|
250
|
+
channel?: string | null | undefined;
|
|
251
|
+
msisdn?: string | null | undefined;
|
|
252
|
+
payeeName?: string | null | undefined;
|
|
253
|
+
currencyCode?: string | null | undefined;
|
|
254
|
+
partnerReference?: string | null | undefined;
|
|
255
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
256
|
+
sortBy?: string | undefined;
|
|
257
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
258
|
+
startDate?: string | null | undefined;
|
|
259
|
+
endDate?: string | null | undefined;
|
|
260
|
+
minAmount?: number | null | undefined;
|
|
261
|
+
maxAmount?: number | null | undefined;
|
|
262
|
+
}>;
|
|
263
|
+
/**
|
|
264
|
+
* URL-safe schema for query parameters (all strings)
|
|
265
|
+
*/
|
|
266
|
+
declare const PayoutURLQueryParamsSchema: z.ZodObject<{
|
|
267
|
+
page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
268
|
+
limit: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
269
|
+
sortBy: z.ZodDefault<z.ZodString>;
|
|
270
|
+
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
271
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
272
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
273
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
274
|
+
msisdn: z.ZodOptional<z.ZodString>;
|
|
275
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
id: z.ZodOptional<z.ZodString>;
|
|
277
|
+
partnerReference: z.ZodOptional<z.ZodString>;
|
|
278
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
279
|
+
status: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, PayoutStatus, string>>;
|
|
280
|
+
approvalStatus: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, PayoutApprovalStatus, string>>;
|
|
281
|
+
minAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
282
|
+
maxAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
283
|
+
search: z.ZodOptional<z.ZodString>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
sortBy: string;
|
|
286
|
+
sortOrder: "asc" | "desc";
|
|
287
|
+
status?: PayoutStatus | undefined;
|
|
288
|
+
page?: number | undefined;
|
|
289
|
+
limit?: number | undefined;
|
|
290
|
+
id?: string | undefined;
|
|
291
|
+
profileId?: string | undefined;
|
|
292
|
+
search?: string | undefined;
|
|
293
|
+
channel?: string | undefined;
|
|
294
|
+
msisdn?: string | undefined;
|
|
295
|
+
payeeName?: string | undefined;
|
|
296
|
+
partnerReference?: string | undefined;
|
|
297
|
+
approvalStatus?: PayoutApprovalStatus | undefined;
|
|
298
|
+
startDate?: string | undefined;
|
|
299
|
+
endDate?: string | undefined;
|
|
300
|
+
minAmount?: number | undefined;
|
|
301
|
+
maxAmount?: number | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
status?: string | undefined;
|
|
304
|
+
page?: string | undefined;
|
|
305
|
+
limit?: string | undefined;
|
|
306
|
+
id?: string | undefined;
|
|
307
|
+
profileId?: string | undefined;
|
|
308
|
+
search?: string | undefined;
|
|
309
|
+
channel?: string | undefined;
|
|
310
|
+
msisdn?: string | undefined;
|
|
311
|
+
payeeName?: string | undefined;
|
|
312
|
+
partnerReference?: string | undefined;
|
|
313
|
+
approvalStatus?: string | undefined;
|
|
314
|
+
sortBy?: string | undefined;
|
|
315
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
316
|
+
startDate?: string | undefined;
|
|
317
|
+
endDate?: string | undefined;
|
|
318
|
+
minAmount?: string | undefined;
|
|
319
|
+
maxAmount?: string | undefined;
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* Type definition inferred from AuthorizerSchema
|
|
323
|
+
* Represents the structure of a user who actions the payout
|
|
324
|
+
*/
|
|
325
|
+
type PayoutAuthorizerDTO = z.infer<typeof AuthorizerSchema>;
|
|
326
|
+
/**
|
|
327
|
+
* Type definition inferred from PayoutInputDTOSchema
|
|
328
|
+
* Represents the structure of data required to create a new payout
|
|
329
|
+
*/
|
|
330
|
+
type PayoutInputDTO = z.infer<typeof PayoutInputDTOSchema>;
|
|
331
|
+
/**
|
|
332
|
+
* Type definition inferred from PayoutDTOSchema
|
|
333
|
+
* Represents the complete payout record structure
|
|
334
|
+
*/
|
|
335
|
+
type PayoutDTO = z.infer<typeof PayoutDTOSchema>;
|
|
336
|
+
/**
|
|
337
|
+
* Type definition for payout filters
|
|
338
|
+
*/
|
|
339
|
+
type PayoutFilters = z.infer<typeof PayoutFiltersSchema>;
|
|
340
|
+
/**
|
|
341
|
+
* Type definition for URL query parameters
|
|
342
|
+
*/
|
|
343
|
+
type PayoutURLQueryParams = z.infer<typeof PayoutURLQueryParamsSchema>;
|
|
344
|
+
/**
|
|
345
|
+
* Export object containing all payout-related schemas
|
|
346
|
+
* Used for validation and type checking throughout the application
|
|
347
|
+
*/
|
|
348
|
+
export declare const PayoutDTOSchemas: {
|
|
349
|
+
readonly PayoutDTO: z.ZodObject<{
|
|
350
|
+
msisdn: z.ZodString;
|
|
351
|
+
amount: z.ZodNumber;
|
|
352
|
+
description: z.ZodString;
|
|
353
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
+
} & {
|
|
355
|
+
id: z.ZodString;
|
|
356
|
+
profileId: z.ZodString;
|
|
357
|
+
payeeName: z.ZodString;
|
|
358
|
+
countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
|
|
359
|
+
currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
|
|
360
|
+
channel: z.ZodString;
|
|
361
|
+
status: z.ZodNativeEnum<typeof PayoutStatus>;
|
|
362
|
+
statusMessage: z.ZodString;
|
|
363
|
+
partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
|
+
createdAt: z.ZodDate;
|
|
365
|
+
updatedAt: z.ZodDate;
|
|
366
|
+
actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
367
|
+
approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof PayoutApprovalStatus>>>;
|
|
368
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
369
|
+
id: z.ZodString;
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
identity: z.ZodString;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
name: string;
|
|
374
|
+
id: string;
|
|
375
|
+
identity: string;
|
|
376
|
+
}, {
|
|
377
|
+
name: string;
|
|
378
|
+
id: string;
|
|
379
|
+
identity: string;
|
|
380
|
+
}>>>;
|
|
381
|
+
actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
382
|
+
id: z.ZodString;
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
identity: z.ZodString;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
name: string;
|
|
387
|
+
id: string;
|
|
388
|
+
identity: string;
|
|
389
|
+
}, {
|
|
390
|
+
name: string;
|
|
391
|
+
id: string;
|
|
392
|
+
identity: string;
|
|
393
|
+
}>>>;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
status: PayoutStatus;
|
|
396
|
+
createdAt: Date;
|
|
397
|
+
id: string;
|
|
398
|
+
profileId: string;
|
|
399
|
+
updatedAt: Date;
|
|
400
|
+
description: string;
|
|
401
|
+
channel: string;
|
|
402
|
+
msisdn: string;
|
|
403
|
+
amount: number;
|
|
404
|
+
payeeName: string;
|
|
405
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
406
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
407
|
+
statusMessage: string;
|
|
408
|
+
notes?: string | null | undefined;
|
|
409
|
+
partnerReference?: string | null | undefined;
|
|
410
|
+
actionedAt?: Date | null | undefined;
|
|
411
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
412
|
+
createdBy?: {
|
|
413
|
+
name: string;
|
|
414
|
+
id: string;
|
|
415
|
+
identity: string;
|
|
416
|
+
} | null | undefined;
|
|
417
|
+
actionedBy?: {
|
|
418
|
+
name: string;
|
|
419
|
+
id: string;
|
|
420
|
+
identity: string;
|
|
421
|
+
} | null | undefined;
|
|
422
|
+
}, {
|
|
423
|
+
status: PayoutStatus;
|
|
424
|
+
createdAt: Date;
|
|
425
|
+
id: string;
|
|
426
|
+
profileId: string;
|
|
427
|
+
updatedAt: Date;
|
|
428
|
+
description: string;
|
|
429
|
+
channel: string;
|
|
430
|
+
msisdn: string;
|
|
431
|
+
amount: number;
|
|
432
|
+
payeeName: string;
|
|
433
|
+
statusMessage: string;
|
|
434
|
+
notes?: string | null | undefined;
|
|
435
|
+
countryCode?: string | undefined;
|
|
436
|
+
currencyCode?: string | undefined;
|
|
437
|
+
partnerReference?: string | null | undefined;
|
|
438
|
+
actionedAt?: Date | null | undefined;
|
|
439
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
440
|
+
createdBy?: {
|
|
441
|
+
name: string;
|
|
442
|
+
id: string;
|
|
443
|
+
identity: string;
|
|
444
|
+
} | null | undefined;
|
|
445
|
+
actionedBy?: {
|
|
446
|
+
name: string;
|
|
447
|
+
id: string;
|
|
448
|
+
identity: string;
|
|
449
|
+
} | null | undefined;
|
|
450
|
+
}>;
|
|
451
|
+
readonly PayoutInputDTO: z.ZodObject<{
|
|
452
|
+
channel: z.ZodString;
|
|
453
|
+
msisdn: z.ZodString;
|
|
454
|
+
amount: z.ZodNumber;
|
|
455
|
+
description: z.ZodString;
|
|
456
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
457
|
+
} & {
|
|
458
|
+
payeeName: z.ZodString;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
description: string;
|
|
461
|
+
channel: string;
|
|
462
|
+
msisdn: string;
|
|
463
|
+
amount: number;
|
|
464
|
+
payeeName: string;
|
|
465
|
+
notes?: string | null | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
description: string;
|
|
468
|
+
channel: string;
|
|
469
|
+
msisdn: string;
|
|
470
|
+
amount: number;
|
|
471
|
+
payeeName: string;
|
|
472
|
+
notes?: string | null | undefined;
|
|
473
|
+
}>;
|
|
474
|
+
readonly PayoutStatus: z.ZodNativeEnum<typeof PayoutStatus>;
|
|
475
|
+
readonly PayoutApprovalStatus: z.ZodNativeEnum<typeof PayoutApprovalStatus>;
|
|
476
|
+
readonly PayoutAuthorizer: z.ZodObject<{
|
|
477
|
+
id: z.ZodString;
|
|
478
|
+
name: z.ZodString;
|
|
479
|
+
identity: z.ZodString;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
name: string;
|
|
482
|
+
id: string;
|
|
483
|
+
identity: string;
|
|
484
|
+
}, {
|
|
485
|
+
name: string;
|
|
486
|
+
id: string;
|
|
487
|
+
identity: string;
|
|
488
|
+
}>;
|
|
489
|
+
readonly PayoutFilters: z.ZodObject<{
|
|
490
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
491
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
492
|
+
sortBy: z.ZodDefault<z.ZodString>;
|
|
493
|
+
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
494
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
payeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
msisdn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
profileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
+
partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
502
|
+
currencyCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
503
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof PayoutStatus>>>;
|
|
504
|
+
approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof PayoutApprovalStatus>>>;
|
|
505
|
+
minAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
506
|
+
maxAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
507
|
+
search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
page: number;
|
|
510
|
+
limit: number;
|
|
511
|
+
sortBy: string;
|
|
512
|
+
sortOrder: "asc" | "desc";
|
|
513
|
+
status?: PayoutStatus | null | undefined;
|
|
514
|
+
id?: string | null | undefined;
|
|
515
|
+
profileId?: string | null | undefined;
|
|
516
|
+
search?: string | null | undefined;
|
|
517
|
+
channel?: string | null | undefined;
|
|
518
|
+
msisdn?: string | null | undefined;
|
|
519
|
+
payeeName?: string | null | undefined;
|
|
520
|
+
currencyCode?: string | null | undefined;
|
|
521
|
+
partnerReference?: string | null | undefined;
|
|
522
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
523
|
+
startDate?: string | null | undefined;
|
|
524
|
+
endDate?: string | null | undefined;
|
|
525
|
+
minAmount?: number | null | undefined;
|
|
526
|
+
maxAmount?: number | null | undefined;
|
|
527
|
+
}, {
|
|
528
|
+
status?: PayoutStatus | null | undefined;
|
|
529
|
+
page?: number | undefined;
|
|
530
|
+
limit?: number | undefined;
|
|
531
|
+
id?: string | null | undefined;
|
|
532
|
+
profileId?: string | null | undefined;
|
|
533
|
+
search?: string | null | undefined;
|
|
534
|
+
channel?: string | null | undefined;
|
|
535
|
+
msisdn?: string | null | undefined;
|
|
536
|
+
payeeName?: string | null | undefined;
|
|
537
|
+
currencyCode?: string | null | undefined;
|
|
538
|
+
partnerReference?: string | null | undefined;
|
|
539
|
+
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
540
|
+
sortBy?: string | undefined;
|
|
541
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
542
|
+
startDate?: string | null | undefined;
|
|
543
|
+
endDate?: string | null | undefined;
|
|
544
|
+
minAmount?: number | null | undefined;
|
|
545
|
+
maxAmount?: number | null | undefined;
|
|
546
|
+
}>;
|
|
547
|
+
readonly PayoutURLQueryParams: z.ZodObject<{
|
|
548
|
+
page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
549
|
+
limit: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
550
|
+
sortBy: z.ZodDefault<z.ZodString>;
|
|
551
|
+
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
552
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
553
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
554
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
555
|
+
msisdn: z.ZodOptional<z.ZodString>;
|
|
556
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
557
|
+
id: z.ZodOptional<z.ZodString>;
|
|
558
|
+
partnerReference: z.ZodOptional<z.ZodString>;
|
|
559
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
560
|
+
status: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, PayoutStatus, string>>;
|
|
561
|
+
approvalStatus: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, PayoutApprovalStatus, string>>;
|
|
562
|
+
minAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
563
|
+
maxAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
564
|
+
search: z.ZodOptional<z.ZodString>;
|
|
565
|
+
}, "strip", z.ZodTypeAny, {
|
|
566
|
+
sortBy: string;
|
|
567
|
+
sortOrder: "asc" | "desc";
|
|
568
|
+
status?: PayoutStatus | undefined;
|
|
569
|
+
page?: number | undefined;
|
|
570
|
+
limit?: number | undefined;
|
|
571
|
+
id?: string | undefined;
|
|
572
|
+
profileId?: string | undefined;
|
|
573
|
+
search?: string | undefined;
|
|
574
|
+
channel?: string | undefined;
|
|
575
|
+
msisdn?: string | undefined;
|
|
576
|
+
payeeName?: string | undefined;
|
|
577
|
+
partnerReference?: string | undefined;
|
|
578
|
+
approvalStatus?: PayoutApprovalStatus | undefined;
|
|
579
|
+
startDate?: string | undefined;
|
|
580
|
+
endDate?: string | undefined;
|
|
581
|
+
minAmount?: number | undefined;
|
|
582
|
+
maxAmount?: number | undefined;
|
|
583
|
+
}, {
|
|
584
|
+
status?: string | undefined;
|
|
585
|
+
page?: string | undefined;
|
|
586
|
+
limit?: string | undefined;
|
|
587
|
+
id?: string | undefined;
|
|
588
|
+
profileId?: string | undefined;
|
|
589
|
+
search?: string | undefined;
|
|
590
|
+
channel?: string | undefined;
|
|
591
|
+
msisdn?: string | undefined;
|
|
592
|
+
payeeName?: string | undefined;
|
|
593
|
+
partnerReference?: string | undefined;
|
|
594
|
+
approvalStatus?: string | undefined;
|
|
595
|
+
sortBy?: string | undefined;
|
|
596
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
597
|
+
startDate?: string | undefined;
|
|
598
|
+
endDate?: string | undefined;
|
|
599
|
+
minAmount?: string | undefined;
|
|
600
|
+
maxAmount?: string | undefined;
|
|
601
|
+
}>;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* Export types for use in other parts of the application
|
|
605
|
+
* These types can be used for type checking and documentation
|
|
606
|
+
*/
|
|
607
|
+
export type { PayoutAuthorizerDTO as PayoutAuthorizer, PayoutDTO, PayoutInputDTO, PayoutFilters, PayoutURLQueryParams, };
|