@r2wa-org/eden 0.0.71 → 0.0.76
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 +18 -4
- package/dist/admin/index.d.ts +10428 -0
- package/dist/{src/admin → admin-user}/admin/dto.schemas.d.ts +3 -5
- package/dist/{src/admin → admin-user}/admin/errors/index.d.ts +5 -0
- package/dist/{src/admin → admin-user}/admin/errors/locales/zh.d.ts +2 -0
- package/dist/{src/admin → admin-user}/admin/router.d.ts +1 -3
- package/dist/{src/admin → admin-user}/admin/service.d.ts +1 -1
- package/dist/app-version/admin/dto.schemas.d.ts +99 -0
- package/dist/app-version/admin/router.d.ts +756 -0
- package/dist/app-version/admin/service.d.ts +105 -0
- package/dist/app-version/db.schemas.d.ts +448 -0
- package/dist/app-version/schema.d.ts +236 -0
- package/dist/{src/asset → asset/admin}/dto.schemas.d.ts +70 -45
- package/dist/asset/admin/router.d.ts +762 -0
- package/dist/asset/admin/service.d.ts +144 -0
- package/dist/{src/account-type → asset}/db.schemas.d.ts +96 -96
- package/dist/asset/errors/index.d.ts +33 -0
- package/dist/asset/errors/locales/zh.d.ts +20 -0
- package/dist/asset/index.d.ts +11 -0
- package/dist/asset/internal/service.d.ts +16 -0
- package/dist/asset/permissions.d.ts +4 -0
- package/dist/asset/schema.d.ts +209 -0
- package/dist/asset/seed.d.ts +1 -0
- package/dist/asset/user/dto.schemas.d.ts +78 -0
- package/dist/{src/asset → asset/user}/router.d.ts +102 -15
- package/dist/asset/user/service.d.ts +75 -0
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +823 -0
- package/dist/asset-convert-product/admin/router.d.ts +1586 -0
- package/dist/asset-convert-product/admin/service.d.ts +814 -0
- package/dist/asset-convert-product/db.schemas.d.ts +1270 -0
- package/dist/asset-convert-product/errors/index.d.ts +32 -0
- package/dist/asset-convert-product/errors/locales/zh.d.ts +31 -0
- package/dist/asset-convert-product/index.d.ts +8 -0
- package/dist/asset-convert-product/internal/service.d.ts +2 -0
- package/dist/asset-convert-product/permissions.d.ts +5 -0
- package/dist/asset-convert-product/schema.d.ts +688 -0
- package/dist/asset-convert-product/user/dto.schemas.d.ts +1089 -0
- package/dist/{src/subscription/admin.router.d.ts → asset-convert-product/user/router.d.ts} +254 -275
- package/dist/asset-convert-product/user/service.d.ts +413 -0
- package/dist/asset-price/admin/dto.schemas.d.ts +102 -0
- package/dist/{src/asset/admin.router.d.ts → asset-price/admin/router.d.ts} +122 -125
- package/dist/asset-price/admin/service.d.ts +82 -0
- package/dist/asset-price/constants.d.ts +2 -0
- package/dist/asset-price/db.schemas.d.ts +358 -0
- package/dist/asset-price/errors/index.d.ts +20 -0
- package/dist/asset-price/errors/locales/zh.d.ts +19 -0
- package/dist/asset-price/index.d.ts +12 -0
- package/dist/asset-price/internal/service.d.ts +14 -0
- package/dist/asset-price/permissions.d.ts +6 -0
- package/dist/asset-price/schema.d.ts +191 -0
- package/dist/asset-price/seed.d.ts +1 -0
- package/dist/asset-price/user/dto.schemas.d.ts +45 -0
- package/dist/{src/wallet → asset-price/user}/router.d.ts +59 -31
- package/dist/asset-price/user/service.d.ts +26 -0
- package/dist/asset-type/admin/dto.schemas.d.ts +404 -0
- package/dist/{src/asset-type/admin.router.d.ts → asset-type/admin/router.d.ts} +65 -32
- package/dist/asset-type/admin/service.d.ts +45 -0
- package/dist/{src/asset-type/dto.schemas.d.ts → asset-type/db.schemas.d.ts} +112 -46
- package/dist/asset-type/errors/index.d.ts +27 -0
- package/dist/asset-type/errors/locales/zh.d.ts +17 -0
- package/dist/asset-type/index.d.ts +11 -0
- package/dist/asset-type/internal/service.d.ts +9 -0
- package/dist/asset-type/permissions.d.ts +4 -0
- package/dist/asset-type/schema.d.ts +133 -0
- package/dist/asset-type/seed.d.ts +19 -0
- package/dist/asset-type/user/dto.schemas.d.ts +35 -0
- package/dist/{src/asset-type → asset-type/user}/router.d.ts +12 -13
- package/dist/asset-type/user/service.d.ts +18 -0
- package/dist/auth/better-auth.d.ts +3312 -0
- package/dist/auth/better-hooks.d.ts +23 -0
- package/dist/auth/db.schemas.d.ts +1696 -0
- package/dist/auth/permissions.d.ts +235 -0
- package/dist/auth/roles.d.ts +725 -0
- package/dist/{src/ledger-account → auth}/router.d.ts +11 -52
- package/dist/auth/schema.d.ts +882 -0
- package/dist/{src/bank-account → bank-account/admin}/dto.schemas.d.ts +46 -94
- package/dist/{src/bank-account/admin.router.d.ts → bank-account/admin/router.d.ts} +42 -13
- package/dist/bank-account/admin/service.d.ts +221 -0
- package/dist/bank-account/db.schemas.d.ts +1032 -0
- package/dist/bank-account/errors/index.d.ts +13 -0
- package/dist/bank-account/errors/locales/zh.d.ts +12 -0
- package/dist/bank-account/index.d.ts +8 -0
- package/dist/bank-account/internal/service.d.ts +51 -0
- package/dist/bank-account/permissions.d.ts +10 -0
- package/dist/bank-account/schema.d.ts +535 -0
- package/dist/bank-account/seed.d.ts +4 -0
- package/dist/bank-account/user/dto.schemas.d.ts +458 -0
- package/dist/{src/bank-account → bank-account/user}/router.d.ts +8 -8
- package/dist/bank-account/user/service.d.ts +133 -0
- package/dist/check-in/admin/dto.schemas.d.ts +312 -0
- package/dist/{src/check-in/admin.router.d.ts → check-in/admin/router.d.ts} +13 -20
- package/dist/check-in/admin/service.d.ts +38 -0
- package/dist/check-in/db.schemas.d.ts +312 -0
- package/dist/check-in/errors/index.d.ts +13 -0
- package/dist/check-in/errors/locales/zh.d.ts +10 -0
- package/dist/check-in/index.d.ts +7 -0
- package/dist/check-in/internal/service.d.ts +51 -0
- package/dist/check-in/permissions.d.ts +6 -0
- package/dist/check-in/schema.d.ts +168 -0
- package/dist/{src/check-in → check-in/user}/dto.schemas.d.ts +0 -41
- package/dist/{src/check-in → check-in/user}/router.d.ts +19 -23
- package/dist/check-in/user/service.d.ts +49 -0
- package/dist/cors/index.d.ts +30 -0
- package/dist/cron/index.d.ts +10 -0
- package/dist/db/columns.helpers.d.ts +13 -0
- package/dist/db/enums.d.ts +1 -0
- package/dist/db/index.d.ts +4 -0
- package/dist/db/schemas.d.ts +34 -0
- package/dist/db/transaction.d.ts +3 -0
- package/dist/db/typebox.d.ts +19 -0
- package/dist/{src/deposit → deposit/admin}/dto.schemas.d.ts +4 -70
- package/dist/{src/deposit/admin.router.d.ts → deposit/admin/router.d.ts} +16 -20
- package/dist/deposit/admin/service.d.ts +127 -0
- package/dist/deposit/db.schemas.d.ts +652 -0
- package/dist/deposit/errors/index.d.ts +45 -0
- package/dist/deposit/errors/locales/zh.d.ts +24 -0
- package/dist/deposit/index.d.ts +7 -0
- package/dist/deposit/internal/service.d.ts +8 -0
- package/dist/deposit/permissions.d.ts +9 -0
- package/dist/deposit/schema.d.ts +340 -0
- package/dist/deposit/user/dto.schemas.d.ts +655 -0
- package/dist/{src/deposit → deposit/user}/router.d.ts +68 -19
- package/dist/deposit/user/service.d.ts +148 -0
- package/dist/{src/account → dynamic-env}/admin.router.d.ts +135 -63
- package/dist/dynamic-env/cache.d.ts +35 -0
- package/dist/dynamic-env/db.schemas.d.ts +182 -0
- package/dist/dynamic-env/dto.schema.d.ts +17 -0
- package/dist/dynamic-env/errors/index.d.ts +11 -0
- package/dist/dynamic-env/errors/locales/zh.d.ts +10 -0
- package/dist/dynamic-env/index.d.ts +3 -0
- package/dist/dynamic-env/schema.d.ts +96 -0
- package/dist/dynamic-env/service.d.ts +93 -0
- package/dist/email/index.d.ts +2 -0
- package/dist/env/client.d.ts +2 -0
- package/dist/env/index.d.ts +2 -0
- package/dist/env/server.d.ts +50 -0
- package/dist/env/typebox-env.d.ts +7 -0
- package/dist/error/errorcode.d.ts +9 -0
- package/dist/error/index.d.ts +120 -0
- package/dist/error/locales/zh.d.ts +2 -0
- package/dist/error/messages.d.ts +10 -0
- package/dist/external/dto.schemas.d.ts +173 -0
- package/dist/external/errors/index.d.ts +13 -0
- package/dist/external/errors/locales/zh.d.ts +10 -0
- package/dist/external/router.d.ts +105 -0
- package/dist/external/service.d.ts +31 -0
- package/dist/file-storage/admin/dto.schemas.d.ts +209 -0
- package/dist/{src/file-storage/admin.router.d.ts → file-storage/admin/router.d.ts} +17 -20
- package/dist/file-storage/admin/service.d.ts +89 -0
- package/dist/file-storage/db.schemas.d.ts +1026 -0
- package/dist/file-storage/errors/index.d.ts +19 -0
- package/dist/file-storage/errors/locales/zh.d.ts +18 -0
- package/dist/file-storage/index.d.ts +7 -0
- package/dist/file-storage/internal/service.d.ts +66 -0
- package/dist/file-storage/permissions.d.ts +5 -0
- package/dist/file-storage/s3.client.d.ts +284 -0
- package/dist/file-storage/schema.d.ts +538 -0
- package/dist/file-storage/share/dto.schemas.d.ts +68 -0
- package/dist/{src/file-storage/share.router.d.ts → file-storage/share/router.d.ts} +16 -19
- package/dist/{src/file-storage → file-storage/user}/dto.schemas.d.ts +3 -141
- package/dist/{src/file-storage → file-storage/user}/router.d.ts +16 -19
- package/dist/file-storage/user/service.d.ts +80 -0
- package/dist/http-access-log.d.ts +30 -0
- package/dist/index.d.ts +16262 -0
- package/dist/ledger/admin/dto.schemas.d.ts +461 -0
- package/dist/{src/ledger/admin.router.d.ts → ledger/admin/router.d.ts} +103 -22
- package/dist/ledger/admin/service.d.ts +22 -0
- package/dist/ledger/db.schemas.d.ts +694 -0
- package/dist/ledger/errors/index.d.ts +38 -0
- package/dist/ledger/errors/locales/zh.d.ts +22 -0
- package/dist/ledger/index.d.ts +6 -0
- package/dist/ledger/internal/service.d.ts +36 -0
- package/dist/ledger/permissions.d.ts +8 -0
- package/dist/ledger/schema.d.ts +365 -0
- package/dist/{src/ledger → ledger/user}/dto.schemas.d.ts +8 -8
- package/dist/{src/ledger → ledger/user}/router.d.ts +12 -12
- package/dist/ledger/user/service.d.ts +146 -0
- package/dist/ledger-account/admin/dto.schemas.d.ts +258 -0
- package/dist/ledger-account/admin/router.d.ts +757 -0
- package/dist/{src/ledger-account → ledger-account/admin}/service.d.ts +90 -52
- package/dist/{src/account → ledger-account}/db.schemas.d.ts +36 -36
- package/dist/ledger-account/errors/index.d.ts +18 -0
- package/dist/ledger-account/errors/locales/zh.d.ts +17 -0
- package/dist/ledger-account/index.d.ts +8 -0
- package/dist/ledger-account/internal/service.d.ts +44 -0
- package/dist/ledger-account/permissions.d.ts +4 -0
- package/dist/{src/account → ledger-account}/schema.d.ts +22 -22
- package/dist/{src/ledger-account → ledger-account/user}/dto.schemas.d.ts +43 -12
- package/dist/ledger-account/user/router.d.ts +602 -0
- package/dist/ledger-account/user/service.d.ts +154 -0
- package/dist/{src/ledger-account-import/admin.router.d.ts → ledger-account-import/admin/router.d.ts} +22 -25
- package/dist/{src/ledger-account-import → ledger-account-import/admin}/service.d.ts +1 -14
- package/dist/{src/wallet-import → ledger-account-import}/db.schemas.d.ts +78 -78
- package/dist/ledger-account-import/errors/index.d.ts +18 -0
- package/dist/ledger-account-import/errors/locales/zh.d.ts +17 -0
- package/dist/ledger-account-import/index.d.ts +8 -0
- package/dist/ledger-account-import/internal/service.d.ts +13 -0
- package/dist/ledger-account-import/permissions.d.ts +7 -0
- package/dist/{src/wallet-import → ledger-account-import}/schema.d.ts +49 -49
- package/dist/ledger-account-import/user/service.d.ts +3 -0
- package/dist/ledger-account-import/worker.d.ts +1 -0
- package/dist/ledger-account-transfer/admin/service.d.ts +3 -0
- package/dist/ledger-account-transfer/errors/index.d.ts +23 -0
- package/dist/ledger-account-transfer/errors/locales/zh.d.ts +15 -0
- package/dist/ledger-account-transfer/index.d.ts +6 -0
- package/dist/ledger-account-transfer/internal/service.d.ts +8 -0
- package/dist/{src/ledger-account-transfer → ledger-account-transfer/user}/dto.schemas.d.ts +0 -2
- package/dist/{src/ledger-account-transfer → ledger-account-transfer/user}/router.d.ts +11 -14
- package/dist/{src/ledger-account-transfer → ledger-account-transfer/user}/service.d.ts +1 -11
- package/dist/{src/ledger-account-type/admin.router.d.ts → ledger-account-type/admin/router.d.ts} +25 -28
- package/dist/{src/ledger-account-type → ledger-account-type/admin}/service.d.ts +5 -43
- package/dist/ledger-account-type/db.schemas.d.ts +788 -0
- package/dist/ledger-account-type/errors/index.d.ts +18 -0
- package/dist/ledger-account-type/errors/locales/zh.d.ts +17 -0
- package/dist/ledger-account-type/index.d.ts +9 -0
- package/dist/ledger-account-type/internal/service.d.ts +8 -0
- package/dist/ledger-account-type/permissions.d.ts +4 -0
- package/dist/ledger-account-type/schema.d.ts +405 -0
- package/dist/ledger-account-type/seed.d.ts +1 -0
- package/dist/ledger-account-type/user/dto.schemas.d.ts +509 -0
- package/dist/{src/ledger-account-type → ledger-account-type/user}/router.d.ts +59 -11
- package/dist/ledger-account-type/user/service.d.ts +59 -0
- package/dist/market-data/admin/dto.schemas.d.ts +824 -0
- package/dist/market-data/admin/router.d.ts +632 -0
- package/dist/market-data/admin/service.d.ts +78 -0
- package/dist/market-data/cron.d.ts +6 -0
- package/dist/market-data/db.schemas.d.ts +516 -0
- package/dist/market-data/errors/index.d.ts +13 -0
- package/dist/market-data/errors/locales/zh.d.ts +12 -0
- package/dist/market-data/index.d.ts +8 -0
- package/dist/market-data/internal/service.d.ts +77 -0
- package/dist/market-data/permissions.d.ts +6 -0
- package/dist/market-data/schema.d.ts +270 -0
- package/dist/market-data/user/dto.schemas.d.ts +370 -0
- package/dist/{src/wallet-import/admin.router.d.ts → market-data/user/router.d.ts} +214 -215
- package/dist/market-data/user/service.d.ts +41 -0
- package/dist/market-pricing/admin/dto.schemas.d.ts +860 -0
- package/dist/market-pricing/admin/router.d.ts +988 -0
- package/dist/market-pricing/admin/service.d.ts +286 -0
- package/dist/market-pricing/cron.d.ts +6 -0
- package/dist/{src/subscription → market-pricing}/db.schemas.d.ts +248 -316
- package/dist/market-pricing/errors/index.d.ts +14 -0
- package/dist/market-pricing/errors/locales/zh.d.ts +13 -0
- package/dist/market-pricing/internal/service.d.ts +35 -0
- package/dist/market-pricing/permissions.d.ts +4 -0
- package/dist/{src/subscription → market-pricing}/schema.d.ts +134 -175
- package/dist/nanoid/index.d.ts +2 -0
- package/dist/news/admin/dto.schemas.d.ts +159 -0
- package/dist/{src/news/admin.router.d.ts → news/admin/router.d.ts} +33 -39
- package/dist/news/admin/service.d.ts +221 -0
- package/dist/news/db.schemas.d.ts +1150 -0
- package/dist/news/errors/index.d.ts +20 -0
- package/dist/news/errors/locales/zh.d.ts +13 -0
- package/dist/news/index.d.ts +7 -0
- package/dist/news/internal/service.d.ts +7 -0
- package/dist/news/permissions.d.ts +4 -0
- package/dist/news/schema.d.ts +616 -0
- package/dist/{src/news → news/user}/dto.schemas.d.ts +9 -64
- package/dist/{src/news → news/user}/router.d.ts +22 -25
- package/dist/news/user/service.d.ts +228 -0
- package/dist/news-category/admin/dto.schemas.d.ts +52 -0
- package/dist/{src/news-category/admin.router.d.ts → news-category/admin/router.d.ts} +2 -5
- package/dist/{src/news-category → news-category/admin}/service.d.ts +3 -53
- package/dist/news-category/constants.d.ts +1 -0
- package/dist/news-category/db.schemas.d.ts +324 -0
- package/dist/news-category/errors/index.d.ts +21 -0
- package/dist/news-category/errors/locales/zh.d.ts +14 -0
- package/dist/news-category/index.d.ts +8 -0
- package/dist/news-category/internal/service.d.ts +5 -0
- package/dist/news-category/permissions.d.ts +4 -0
- package/dist/news-category/schema.d.ts +173 -0
- package/dist/news-category/seed.d.ts +12 -0
- package/dist/{src/news-category → news-category/user}/dto.schemas.d.ts +3 -5
- package/dist/{src/news-category → news-category/user}/router.d.ts +12 -15
- package/dist/news-category/user/service.d.ts +25 -0
- package/dist/{src/notification → notification/admin}/dto.schemas.d.ts +7 -32
- package/dist/{src/notification/admin.router.d.ts → notification/admin/router.d.ts} +17 -23
- package/dist/notification/admin/service.d.ts +43 -0
- package/dist/notification/db.schemas.d.ts +624 -0
- package/dist/notification/errors/index.d.ts +19 -0
- package/dist/notification/errors/locales/zh.d.ts +13 -0
- package/dist/notification/index.d.ts +7 -0
- package/dist/notification/internal/service.d.ts +28 -0
- package/dist/notification/permissions.d.ts +6 -0
- package/dist/notification/schema.d.ts +347 -0
- package/dist/notification/user/dto.schemas.d.ts +411 -0
- package/dist/{src/notification → notification/user}/router.d.ts +30 -24
- package/dist/notification/user/service.d.ts +82 -0
- package/dist/operations-overview/admin/dto.schemas.d.ts +41 -0
- package/dist/{src/wallet/admin.router.d.ts → operations-overview/admin/router.d.ts} +49 -51
- package/dist/operations-overview/admin/service.d.ts +4 -0
- package/dist/portfolio/index.d.ts +2 -0
- package/dist/portfolio/internal/index.d.ts +1 -0
- package/dist/portfolio/internal/service.d.ts +5 -0
- package/dist/portfolio/user/dto.schemas.d.ts +352 -0
- package/dist/portfolio/user/index.d.ts +3 -0
- package/dist/portfolio/user/router.d.ts +659 -0
- package/dist/portfolio/user/service.d.ts +143 -0
- package/dist/receipt-method/admin/dto.schemas.d.ts +62 -0
- package/dist/{src/receipt-method/admin.router.d.ts → receipt-method/admin/router.d.ts} +26 -13
- package/dist/receipt-method/admin/service.d.ts +82 -0
- package/dist/receipt-method/db.schemas.d.ts +380 -0
- package/dist/receipt-method/errors/index.d.ts +17 -0
- package/dist/receipt-method/errors/locales/zh.d.ts +16 -0
- package/dist/receipt-method/index.d.ts +7 -0
- package/dist/receipt-method/internal/service.d.ts +33 -0
- package/dist/receipt-method/permissions.d.ts +4 -0
- package/dist/receipt-method/schema.d.ts +205 -0
- package/dist/{src/receipt-method → receipt-method/user}/dto.schemas.d.ts +0 -1
- package/dist/{src/receipt-method → receipt-method/user}/router.d.ts +6 -6
- package/dist/receipt-method/user/service.d.ts +73 -0
- package/dist/referral/admin/dto.schemas.d.ts +597 -0
- package/dist/{src/referral/admin.router.d.ts → referral/admin/router.d.ts} +16 -25
- package/dist/referral/admin/service.d.ts +6 -0
- package/dist/referral/db.schemas.d.ts +420 -0
- package/dist/referral/errors/index.d.ts +15 -0
- package/dist/referral/errors/locales/zh.d.ts +14 -0
- package/dist/referral/index.d.ts +9 -0
- package/dist/referral/internal/service.d.ts +23 -0
- package/dist/referral/permissions.d.ts +8 -0
- package/dist/referral/schema.d.ts +235 -0
- package/dist/{src/referral → referral/user}/dto.schemas.d.ts +0 -63
- package/dist/{src/referral → referral/user}/router.d.ts +18 -19
- package/dist/referral/user/service.d.ts +21 -0
- package/dist/{src/referral-depth-config → referral-depth-config/admin}/dto.schemas.d.ts +0 -5
- package/dist/{src/referral-depth-config/admin.router.d.ts → referral-depth-config/admin/router.d.ts} +22 -25
- package/dist/{src/referral-depth-config → referral-depth-config/admin}/service.d.ts +1 -19
- package/dist/referral-depth-config/db.schemas.d.ts +176 -0
- package/dist/referral-depth-config/errors/index.d.ts +11 -0
- package/dist/referral-depth-config/errors/locales/zh.d.ts +10 -0
- package/dist/referral-depth-config/internal/service.d.ts +4 -0
- package/dist/referral-depth-config/permissions.d.ts +8 -0
- package/dist/referral-depth-config/schema.d.ts +99 -0
- package/dist/server-test/errors/index.d.ts +10 -0
- package/dist/server-test/errors/locales/zh.d.ts +9 -0
- package/dist/{src/account-type/router.d.ts → server-test/index.d.ts} +94 -68
- package/dist/shipping-address/admin/dto.schemas.d.ts +289 -0
- package/dist/{src/shipping-address/admin.router.d.ts → shipping-address/admin/router.d.ts} +10 -13
- package/dist/shipping-address/admin/service.d.ts +17 -0
- package/dist/shipping-address/db.schemas.d.ts +278 -0
- package/dist/shipping-address/errors/index.d.ts +12 -0
- package/dist/shipping-address/errors/locales/zh.d.ts +11 -0
- package/dist/shipping-address/index.d.ts +7 -0
- package/dist/shipping-address/internal/service.d.ts +15 -0
- package/dist/shipping-address/permissions.d.ts +4 -0
- package/dist/shipping-address/schema.d.ts +150 -0
- package/dist/{src/shipping-address → shipping-address/user}/router.d.ts +6 -6
- package/dist/{src/shipping-address → shipping-address/user}/service.d.ts +3 -44
- package/dist/sms/index.d.ts +5 -0
- package/dist/src/admin/index.d.ts +2222 -181
- package/dist/src/{admin/user → admin-user/admin}/dto.schemas.d.ts +306 -28
- package/dist/src/admin-user/admin/errors/index.d.ts +20 -0
- package/dist/src/admin-user/admin/errors/locales/zh.d.ts +16 -0
- package/dist/src/admin-user/admin/router.d.ts +655 -0
- package/dist/src/admin-user/admin/service.d.ts +60 -0
- package/dist/src/app-version/admin/dto.schemas.d.ts +99 -0
- package/dist/src/app-version/admin/router.d.ts +756 -0
- package/dist/src/app-version/admin/service.d.ts +105 -0
- package/dist/src/app-version/db.schemas.d.ts +448 -0
- package/dist/src/app-version/schema.d.ts +236 -0
- package/dist/src/asset/admin/dto.schemas.d.ts +8 -12
- package/dist/src/asset/admin/router.d.ts +2 -8
- package/dist/src/asset/admin/service.d.ts +1 -6
- package/dist/src/asset/errors/index.d.ts +2 -0
- package/dist/src/asset/errors/locales/zh.d.ts +1 -0
- package/dist/src/asset/user/dto.schemas.d.ts +2 -4
- package/dist/src/asset/user/router.d.ts +0 -3
- package/dist/src/asset/user/service.d.ts +0 -3
- package/dist/src/asset-convert-product/admin/service.d.ts +1 -0
- package/dist/src/asset-convert-product/errors/index.d.ts +1 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +1 -0
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +119 -84
- package/dist/src/asset-convert-product/user/router.d.ts +21 -0
- package/dist/src/asset-convert-product/user/service.d.ts +39 -0
- package/dist/src/asset-type/admin/dto.schemas.d.ts +0 -53
- package/dist/src/asset-type/admin/router.d.ts +0 -6
- package/dist/src/asset-type/admin/service.d.ts +0 -4
- package/dist/src/asset-type/db.schemas.d.ts +0 -34
- package/dist/src/asset-type/schema.d.ts +0 -17
- package/dist/src/asset-type/seed.d.ts +0 -3
- package/dist/src/asset-type/user/dto.schemas.d.ts +0 -2
- package/dist/src/asset-type/user/router.d.ts +0 -1
- package/dist/src/asset-type/user/service.d.ts +0 -1
- package/dist/src/auth/better-auth.d.ts +33 -3
- package/dist/src/auth/better-hooks.d.ts +10 -3
- package/dist/src/auth/db.schemas.d.ts +8 -8
- package/dist/src/auth/schema.d.ts +4 -4
- package/dist/src/bank-account/admin/dto.schemas.d.ts +47 -2
- package/dist/src/bank-account/admin/router.d.ts +32 -0
- package/dist/src/bank-account/admin/service.d.ts +88 -15
- package/dist/src/check-in/admin/dto.schemas.d.ts +1 -1
- package/dist/src/check-in/user/dto.schemas.d.ts +1 -1
- package/dist/src/db/schemas.d.ts +1 -0
- package/dist/src/deposit/admin/dto.schemas.d.ts +2 -2
- package/dist/src/deposit/user/dto.schemas.d.ts +2 -2
- package/dist/src/env/server.d.ts +1 -0
- package/dist/src/http-access-log.d.ts +30 -0
- package/dist/src/index.d.ts +2596 -365
- package/dist/src/ledger/admin/dto.schemas.d.ts +353 -688
- package/dist/src/ledger/admin/router.d.ts +81 -0
- package/dist/src/ledger/admin/service.d.ts +2 -135
- package/dist/src/ledger/schema.d.ts +1 -0
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +132 -516
- package/dist/src/ledger-account/admin/router.d.ts +69 -0
- package/dist/src/ledger-account/admin/service.d.ts +54 -0
- package/dist/src/market-data/admin/dto.schemas.d.ts +597 -64
- package/dist/src/market-data/admin/router.d.ts +30 -4
- package/dist/src/market-data/admin/service.d.ts +26 -0
- package/dist/src/market-data/errors/index.d.ts +1 -0
- package/dist/src/market-data/errors/locales/zh.d.ts +1 -0
- package/dist/src/market-data/user/dto.schemas.d.ts +81 -0
- package/dist/src/market-data/user/router.d.ts +172 -0
- package/dist/src/market-data/user/service.d.ts +12 -1
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +602 -64
- package/dist/src/market-pricing/admin/router.d.ts +173 -17
- package/dist/src/market-pricing/admin/service.d.ts +172 -15
- package/dist/src/news/admin/service.d.ts +1 -0
- package/dist/src/news-category/admin/dto.schemas.d.ts +4 -4
- package/dist/src/news-category/admin/router.d.ts +2 -2
- package/dist/src/news-category/admin/service.d.ts +1 -0
- package/dist/src/news-category/errors/index.d.ts +2 -0
- package/dist/src/news-category/errors/locales/zh.d.ts +1 -0
- package/dist/src/notification/admin/dto.schemas.d.ts +1 -1
- package/dist/src/operations-overview/admin/dto.schemas.d.ts +41 -0
- package/dist/src/{account-type/admin.router.d.ts → operations-overview/admin/router.d.ts} +52 -30
- package/dist/src/operations-overview/admin/service.d.ts +4 -0
- package/dist/src/receipt-method/admin/dto.schemas.d.ts +48 -378
- package/dist/src/receipt-method/admin/router.d.ts +16 -0
- package/dist/src/receipt-method/admin/service.d.ts +36 -0
- package/dist/src/referral/admin/dto.schemas.d.ts +6 -2
- package/dist/src/referral/admin/router.d.ts +1 -6
- package/dist/src/referral/admin/service.d.ts +1 -1
- package/dist/src/referral/errors/index.d.ts +1 -0
- package/dist/src/referral/errors/locales/zh.d.ts +1 -0
- package/dist/src/referral/user/dto.schemas.d.ts +2 -2
- package/dist/src/team/admin/dto.schemas.d.ts +1678 -253
- package/dist/src/team/admin/router.d.ts +82 -1
- package/dist/src/team/admin/service.d.ts +2 -2
- package/dist/src/team/errors/index.d.ts +1 -0
- package/dist/src/team/errors/locales/zh.d.ts +1 -0
- package/dist/src/team/user/dto.schemas.d.ts +5 -5
- package/dist/src/trade-market/admin/dto.schemas.d.ts +4079 -77
- package/dist/src/trade-market/admin/router.d.ts +486 -0
- package/dist/src/trade-market/admin/service.d.ts +488 -0
- package/dist/src/trade-market/errors/index.d.ts +1 -0
- package/dist/src/trade-market/errors/locales/zh.d.ts +1 -0
- package/dist/src/trade-market/internal/service.d.ts +325 -0
- package/dist/src/trade-market/user/service.d.ts +324 -0
- package/dist/src/user/admin/dto.schemas.d.ts +5 -5
- package/dist/src/wallet/admin/dto.schemas.d.ts +3 -3
- package/dist/src/wallet/user/dto.schemas.d.ts +2 -2
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +1090 -1202
- package/dist/src/welfare-cycle/admin/router.d.ts +760 -14
- package/dist/src/welfare-cycle/admin/service.d.ts +831 -42
- package/dist/src/welfare-cycle/errors/index.d.ts +2 -0
- package/dist/src/welfare-cycle/errors/locales/zh.d.ts +2 -0
- package/dist/src/welfare-cycle/internal/service.d.ts +4 -115
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +369 -0
- package/dist/src/welfare-cycle/user/router.d.ts +1 -0
- package/dist/src/welfare-cycle/user/service.d.ts +8 -2
- package/dist/src/withdraw/errors/index.d.ts +2 -0
- package/dist/src/withdraw/errors/locales/zh.d.ts +1 -0
- package/dist/src/withdraw/user/dto.schemas.d.ts +2 -2
- package/dist/src/withdraw/user/router.d.ts +2 -2
- package/dist/src/withdraw/user/service.d.ts +1 -0
- package/dist/team/admin/dto.schemas.d.ts +2198 -0
- package/dist/{src/team/admin.router.d.ts → team/admin/router.d.ts} +97 -20
- package/dist/team/admin/service.d.ts +6 -0
- package/dist/team/errors/index.d.ts +13 -0
- package/dist/team/errors/locales/zh.d.ts +12 -0
- package/dist/team/index.d.ts +8 -0
- package/dist/team/internal/service.d.ts +6 -0
- package/dist/team/permissions.d.ts +7 -0
- package/dist/{src/team → team/user}/dto.schemas.d.ts +0 -123
- package/dist/{src/team → team/user}/router.d.ts +21 -24
- package/dist/team/user/service.d.ts +10 -0
- package/dist/trade-market/admin/dto.schemas.d.ts +4764 -0
- package/dist/trade-market/admin/router.d.ts +1334 -0
- package/dist/trade-market/admin/service.d.ts +646 -0
- package/dist/trade-market/db.schemas.d.ts +1338 -0
- package/dist/trade-market/errors/index.d.ts +23 -0
- package/dist/trade-market/errors/locales/zh.d.ts +22 -0
- package/dist/trade-market/index.d.ts +8 -0
- package/dist/trade-market/internal/service.d.ts +564 -0
- package/dist/trade-market/permissions.d.ts +5 -0
- package/dist/trade-market/schema.d.ts +708 -0
- package/dist/{src/wallet-import → trade-market/user}/dto.schemas.d.ts +695 -556
- package/dist/trade-market/user/router.d.ts +754 -0
- package/dist/trade-market/user/service.d.ts +471 -0
- package/dist/{src/account → transfer/admin}/dto.schemas.d.ts +135 -153
- package/dist/{src/transfer/admin.router.d.ts → transfer/admin/router.d.ts} +12 -15
- package/dist/transfer/admin/service.d.ts +56 -0
- package/dist/transfer/db.schemas.d.ts +386 -0
- package/dist/transfer/errors/index.d.ts +32 -0
- package/dist/transfer/errors/locales/zh.d.ts +19 -0
- package/dist/transfer/index.d.ts +11 -0
- package/dist/transfer/internal/service.d.ts +8 -0
- package/dist/transfer/permissions.d.ts +8 -0
- package/dist/transfer/schema.d.ts +204 -0
- package/dist/{src/transfer → transfer/user}/dto.schemas.d.ts +0 -212
- package/dist/{src/transfer → transfer/user}/router.d.ts +13 -13
- package/dist/transfer/user/service.d.ts +67 -0
- package/dist/{src/user → user/admin}/dto.schemas.d.ts +19 -26
- package/dist/{src/user/admin.router.d.ts → user/admin/router.d.ts} +56 -30
- package/dist/{src/user → user/admin}/service.d.ts +5 -135
- package/dist/user/db.schemas.d.ts +1038 -0
- package/dist/user/errors/index.d.ts +40 -0
- package/dist/user/errors/locales/zh.d.ts +23 -0
- package/dist/user/index.d.ts +9 -0
- package/dist/user/internal/service.d.ts +22 -0
- package/dist/user/permissions.d.ts +7 -0
- package/dist/user/schema.d.ts +541 -0
- package/dist/user/user/dto.schemas.d.ts +14 -0
- package/dist/{src → user}/user/router.d.ts +6 -8
- package/dist/user/user/service.d.ts +89 -0
- package/dist/{src/user-kyc → user-kyc/admin}/dto.schemas.d.ts +0 -314
- package/dist/{src/user-kyc/admin.router.d.ts → user-kyc/admin/router.d.ts} +19 -22
- package/dist/user-kyc/admin/service.d.ts +89 -0
- package/dist/user-kyc/db.schemas.d.ts +896 -0
- package/dist/user-kyc/errors/index.d.ts +21 -0
- package/dist/user-kyc/errors/locales/zh.d.ts +14 -0
- package/dist/user-kyc/index.d.ts +10 -0
- package/dist/user-kyc/internal/service.d.ts +9 -0
- package/dist/user-kyc/permissions.d.ts +6 -0
- package/dist/user-kyc/schema.d.ts +474 -0
- package/dist/user-kyc/user/dto.schemas.d.ts +314 -0
- package/dist/{src/user-kyc → user-kyc/user}/router.d.ts +18 -18
- package/dist/user-kyc/user/service.d.ts +64 -0
- package/dist/user-security/admin/dto.schemas.d.ts +8 -0
- package/dist/{src/user-security/admin.router.d.ts → user-security/admin/router.d.ts} +13 -16
- package/dist/user-security/admin/service.d.ts +6 -0
- package/dist/user-security/db.schemas.d.ts +414 -0
- package/dist/user-security/index.d.ts +8 -0
- package/dist/user-security/internal/service.d.ts +15 -0
- package/dist/user-security/schema.d.ts +215 -0
- package/dist/{src/user-security → user-security/user}/dto.schemas.d.ts +0 -15
- package/dist/{src/user-security → user-security/user}/router.d.ts +17 -17
- package/dist/user-security/user/service.d.ts +15 -0
- package/dist/utils/date.d.ts +21 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/order.d.ts +6 -0
- package/dist/utils/pagination.d.ts +113 -0
- package/dist/utils/password.d.ts +8 -0
- package/dist/wallet/admin/dto.schemas.d.ts +349 -0
- package/dist/{src/ledger-account/admin.router.d.ts → wallet/admin/router.d.ts} +68 -78
- package/dist/wallet/admin/service.d.ts +65 -0
- package/dist/wallet/db.schemas.d.ts +278 -0
- package/dist/wallet/errors/index.d.ts +10 -0
- package/dist/wallet/errors/locales/zh.d.ts +9 -0
- package/dist/wallet/index.d.ts +11 -0
- package/dist/wallet/internal/service.d.ts +177 -0
- package/dist/wallet/permissions.d.ts +8 -0
- package/dist/wallet/schema.d.ts +152 -0
- package/dist/wallet/seed.d.ts +1 -0
- package/dist/{src/wallet → wallet/user}/dto.schemas.d.ts +58 -3
- package/dist/wallet/user/router.d.ts +544 -0
- package/dist/wallet/user/service.d.ts +75 -0
- package/dist/{src/wallet-type → wallet-type/admin}/dto.schemas.d.ts +11 -7
- package/dist/{src/wallet-type/admin.router.d.ts → wallet-type/admin/router.d.ts} +149 -19
- package/dist/wallet-type/admin/service.d.ts +109 -0
- package/dist/wallet-type/db.schemas.d.ts +278 -0
- package/dist/wallet-type/errors/index.d.ts +15 -0
- package/dist/wallet-type/errors/locales/zh.d.ts +14 -0
- package/dist/wallet-type/index.d.ts +10 -0
- package/dist/{src/wallet-type → wallet-type/internal}/service.d.ts +82 -69
- package/dist/wallet-type/permissions.d.ts +4 -0
- package/dist/{src/account-type → wallet-type}/schema.d.ts +55 -57
- package/dist/wallet-type/seed.d.ts +1 -0
- package/dist/wallet-type/user/dto.schemas.d.ts +62 -0
- package/dist/{src/wallet-type → wallet-type/user}/router.d.ts +10 -10
- package/dist/wallet-type/user/service.d.ts +24 -0
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +1242 -0
- package/dist/welfare-cycle/admin/router.d.ts +1805 -0
- package/dist/welfare-cycle/admin/service.d.ts +1031 -0
- package/dist/welfare-cycle/cron.d.ts +7 -0
- package/dist/welfare-cycle/db.schemas.d.ts +2404 -0
- package/dist/welfare-cycle/errors/index.d.ts +27 -0
- package/dist/welfare-cycle/errors/locales/zh.d.ts +26 -0
- package/dist/welfare-cycle/index.d.ts +7 -0
- package/dist/welfare-cycle/internal/service.d.ts +135 -0
- package/dist/welfare-cycle/permissions.d.ts +6 -0
- package/dist/welfare-cycle/schema.d.ts +1272 -0
- package/dist/welfare-cycle/user/dto.schemas.d.ts +2073 -0
- package/dist/welfare-cycle/user/router.d.ts +808 -0
- package/dist/welfare-cycle/user/service.d.ts +192 -0
- package/dist/{src/withdraw → withdraw/admin}/dto.schemas.d.ts +0 -17
- package/dist/{src/withdraw/admin.router.d.ts → withdraw/admin/router.d.ts} +19 -22
- package/dist/{src/withdraw → withdraw/admin}/service.d.ts +3 -73
- package/dist/withdraw/db.schemas.d.ts +584 -0
- package/dist/withdraw/errors/index.d.ts +45 -0
- package/dist/withdraw/errors/locales/zh.d.ts +24 -0
- package/dist/withdraw/index.d.ts +8 -0
- package/dist/withdraw/internal/index.d.ts +1 -0
- package/dist/withdraw/internal/service.d.ts +10 -0
- package/dist/withdraw/permissions.d.ts +9 -0
- package/dist/withdraw/schema.d.ts +307 -0
- package/dist/withdraw/user/dto.schemas.d.ts +1508 -0
- package/dist/withdraw/user/index.d.ts +3 -0
- package/dist/{src/withdraw → withdraw/user}/router.d.ts +133 -13
- package/dist/withdraw/user/service.d.ts +66 -0
- package/package.json +54 -6
- package/dist/src/account/index.d.ts +0 -7
- package/dist/src/account/router.d.ts +0 -509
- package/dist/src/account/seed.d.ts +0 -1
- package/dist/src/account/service.d.ts +0 -139
- package/dist/src/account-type/dto.schemas.d.ts +0 -28
- package/dist/src/account-type/index.d.ts +0 -7
- package/dist/src/account-type/seed.d.ts +0 -1
- package/dist/src/account-type/service.d.ts +0 -52
- package/dist/src/admin/user/router.d.ts +0 -82
- package/dist/src/admin/user/service.d.ts +0 -31
- package/dist/src/asset/service.d.ts +0 -160
- package/dist/src/asset-type/service.d.ts +0 -59
- package/dist/src/asset-type/share/dto.schemas.d.ts +0 -178
- package/dist/src/bank-account/service.d.ts +0 -359
- package/dist/src/check-in/service.d.ts +0 -99
- package/dist/src/deposit/service.d.ts +0 -298
- package/dist/src/eden/index.d.ts +0 -57
- package/dist/src/file-storage/service.d.ts +0 -264
- package/dist/src/ledger/service.d.ts +0 -462
- package/dist/src/ledger-account/seed.d.ts +0 -1
- package/dist/src/news/service.d.ts +0 -495
- package/dist/src/notification/service.d.ts +0 -195
- package/dist/src/receipt-method/service.d.ts +0 -152
- package/dist/src/referral/service.d.ts +0 -42
- package/dist/src/referral-depth-config/index.d.ts +0 -5
- package/dist/src/subscription/cron.d.ts +0 -53
- package/dist/src/subscription/dto.schemas.d.ts +0 -1942
- package/dist/src/subscription/errors/index.d.ts +0 -21
- package/dist/src/subscription/errors/locales/zh.d.ts +0 -20
- package/dist/src/subscription/index.d.ts +0 -7
- package/dist/src/subscription/permissions.d.ts +0 -5
- package/dist/src/subscription/router.d.ts +0 -625
- package/dist/src/subscription/service.d.ts +0 -306
- package/dist/src/team/service.d.ts +0 -40
- package/dist/src/transfer/service.d.ts +0 -133
- package/dist/src/user-kyc/service.d.ts +0 -170
- package/dist/src/user-security/service.d.ts +0 -51
- package/dist/src/wallet/ensure.d.ts +0 -11
- package/dist/src/wallet/service.d.ts +0 -100
- package/dist/src/wallet-import/errors/index.d.ts +0 -18
- package/dist/src/wallet-import/errors/locales/zh.d.ts +0 -17
- package/dist/src/wallet-import/index.d.ts +0 -8
- package/dist/src/wallet-import/permissions.d.ts +0 -7
- package/dist/src/wallet-import/service.d.ts +0 -105
- package/dist/src/wallet-import/worker.d.ts +0 -1
- package/dist/src/wallet-transfer/dto.schemas.d.ts +0 -22
- package/dist/src/wallet-transfer/errors/index.d.ts +0 -23
- package/dist/src/wallet-transfer/errors/locales/zh.d.ts +0 -15
- package/dist/src/wallet-transfer/router.d.ts +0 -469
- package/dist/src/wallet-transfer/service.d.ts +0 -26
- package/dist/src/wallet-type/constants.d.ts +0 -4
- package/dist/{src/wallet-transfer → external}/index.d.ts +0 -0
- package/dist/{src/ledger-account-import → ledger-account-import/admin}/dto.schemas.d.ts +0 -0
- package/dist/{src/ledger-account-type → ledger-account-type/admin}/dto.schemas.d.ts +4 -4
- /package/dist/{src/shipping-address → shipping-address/user}/dto.schemas.d.ts +0 -0
|
@@ -13,7 +13,6 @@ export declare const assetTypeUserItemResponseSchema: import("@sinclair/typebox"
|
|
|
13
13
|
name: import("@sinclair/typebox").TString;
|
|
14
14
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
15
15
|
key: import("@sinclair/typebox").TString;
|
|
16
|
-
isGasAsset: import("@sinclair/typebox").TBoolean;
|
|
17
16
|
isActive: import("@sinclair/typebox").TBoolean;
|
|
18
17
|
}>;
|
|
19
18
|
export type AssetTypeUserItemResponseType = typeof assetTypeUserItemResponseSchema.static;
|
|
@@ -23,7 +22,6 @@ export declare const assetTypeUserListResponseSchema: import("@sinclair/typebox"
|
|
|
23
22
|
name: import("@sinclair/typebox").TString;
|
|
24
23
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
25
24
|
key: import("@sinclair/typebox").TString;
|
|
26
|
-
isGasAsset: import("@sinclair/typebox").TBoolean;
|
|
27
25
|
isActive: import("@sinclair/typebox").TBoolean;
|
|
28
26
|
}>>;
|
|
29
27
|
pagination: import("@sinclair/typebox").TObject<{
|
|
@@ -931,6 +931,36 @@ export declare const auth: import("better-auth").Auth<{
|
|
|
931
931
|
}, {
|
|
932
932
|
id: "phone-number";
|
|
933
933
|
version: string;
|
|
934
|
+
init(): {
|
|
935
|
+
options: {
|
|
936
|
+
databaseHooks: {
|
|
937
|
+
user: {
|
|
938
|
+
update: {
|
|
939
|
+
before(data: Partial<{
|
|
940
|
+
id: string;
|
|
941
|
+
createdAt: Date;
|
|
942
|
+
updatedAt: Date;
|
|
943
|
+
email: string;
|
|
944
|
+
emailVerified: boolean;
|
|
945
|
+
name: string;
|
|
946
|
+
image?: string | null | undefined;
|
|
947
|
+
}> & Record<string, unknown>): Promise<{
|
|
948
|
+
data: {
|
|
949
|
+
[x: string]: unknown;
|
|
950
|
+
id?: string | undefined;
|
|
951
|
+
createdAt?: Date | undefined;
|
|
952
|
+
updatedAt?: Date | undefined;
|
|
953
|
+
email?: string | undefined;
|
|
954
|
+
emailVerified?: boolean | undefined;
|
|
955
|
+
name?: string | undefined;
|
|
956
|
+
image?: string | null | undefined;
|
|
957
|
+
};
|
|
958
|
+
} | undefined>;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
};
|
|
934
964
|
hooks: {
|
|
935
965
|
before: {
|
|
936
966
|
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
@@ -1967,7 +1997,7 @@ export declare const auth: import("better-auth").Auth<{
|
|
|
1967
1997
|
$Infer: {
|
|
1968
1998
|
body: {
|
|
1969
1999
|
userId: string;
|
|
1970
|
-
role: "user" | "admin" | "
|
|
2000
|
+
role: "user" | "admin" | "superAdmin" | "authAdmin" | "authUser" | ("user" | "admin" | "superAdmin" | "authAdmin" | "authUser")[];
|
|
1971
2001
|
};
|
|
1972
2002
|
};
|
|
1973
2003
|
};
|
|
@@ -2056,7 +2086,7 @@ export declare const auth: import("better-auth").Auth<{
|
|
|
2056
2086
|
email: string;
|
|
2057
2087
|
password?: string | undefined;
|
|
2058
2088
|
name: string;
|
|
2059
|
-
role?: "user" | "admin" | "
|
|
2089
|
+
role?: "user" | "admin" | "superAdmin" | "authAdmin" | "authUser" | ("user" | "admin" | "superAdmin" | "authAdmin" | "authUser")[] | undefined;
|
|
2060
2090
|
data?: Record<string, any> | undefined;
|
|
2061
2091
|
};
|
|
2062
2092
|
};
|
|
@@ -2722,7 +2752,7 @@ export declare const auth: import("better-auth").Auth<{
|
|
|
2722
2752
|
};
|
|
2723
2753
|
} & {
|
|
2724
2754
|
userId?: string | undefined;
|
|
2725
|
-
role?: "user" | "admin" | "
|
|
2755
|
+
role?: "user" | "admin" | "superAdmin" | "authAdmin" | "authUser" | undefined;
|
|
2726
2756
|
};
|
|
2727
2757
|
};
|
|
2728
2758
|
};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { GenericEndpointContext, User } from "better-auth";
|
|
2
|
+
type UserFixture = User & {
|
|
3
|
+
role?: string | null;
|
|
4
|
+
};
|
|
2
5
|
type UserCreateAfterHook = (user: User, context: GenericEndpointContext | null) => Promise<void> | void;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare
|
|
5
|
-
export declare function
|
|
6
|
+
export declare const normalUserCreateAfterHooks: UserCreateAfterHook[];
|
|
7
|
+
export declare const adminUserCreateAfterHooks: UserCreateAfterHook[];
|
|
8
|
+
export declare function registerNormalUserCreateAfterHook(hook: UserCreateAfterHook): void;
|
|
9
|
+
export declare function registerAdminUserCreateAfterHook(hook: UserCreateAfterHook): void;
|
|
10
|
+
export declare function runNormalUserCreateAfterHooks(user: User, context: GenericEndpointContext | null): Promise<void>;
|
|
11
|
+
export declare function runAdminUserCreateAfterHooks(user: User, context: GenericEndpointContext | null): Promise<void>;
|
|
12
|
+
export declare function runScopedUserCreateAfterHooks(user: UserFixture, context: GenericEndpointContext | null): Promise<void>;
|
|
6
13
|
export type SignUpBody = {
|
|
7
14
|
name?: string;
|
|
8
15
|
email?: string;
|
|
@@ -92,7 +92,7 @@ export declare const userSelectSchema: import("drizzle-typebox").BuildSchema<"se
|
|
|
92
92
|
data: Date;
|
|
93
93
|
driverParam: string;
|
|
94
94
|
notNull: true;
|
|
95
|
-
hasDefault:
|
|
95
|
+
hasDefault: true;
|
|
96
96
|
isPrimaryKey: false;
|
|
97
97
|
isAutoincrement: false;
|
|
98
98
|
hasRuntimeDefault: false;
|
|
@@ -367,7 +367,7 @@ export declare const userInsertSchema: import("drizzle-typebox").BuildSchema<"in
|
|
|
367
367
|
data: Date;
|
|
368
368
|
driverParam: string;
|
|
369
369
|
notNull: true;
|
|
370
|
-
hasDefault:
|
|
370
|
+
hasDefault: true;
|
|
371
371
|
isPrimaryKey: false;
|
|
372
372
|
isAutoincrement: false;
|
|
373
373
|
hasRuntimeDefault: false;
|
|
@@ -608,7 +608,7 @@ export declare const sessionSelectSchema: import("drizzle-typebox").BuildSchema<
|
|
|
608
608
|
data: Date;
|
|
609
609
|
driverParam: string;
|
|
610
610
|
notNull: true;
|
|
611
|
-
hasDefault:
|
|
611
|
+
hasDefault: true;
|
|
612
612
|
isPrimaryKey: false;
|
|
613
613
|
isAutoincrement: false;
|
|
614
614
|
hasRuntimeDefault: false;
|
|
@@ -764,7 +764,7 @@ export declare const sessionInsertSchema: import("drizzle-typebox").BuildSchema<
|
|
|
764
764
|
data: Date;
|
|
765
765
|
driverParam: string;
|
|
766
766
|
notNull: true;
|
|
767
|
-
hasDefault:
|
|
767
|
+
hasDefault: true;
|
|
768
768
|
isPrimaryKey: false;
|
|
769
769
|
isAutoincrement: false;
|
|
770
770
|
hasRuntimeDefault: false;
|
|
@@ -1056,7 +1056,7 @@ export declare const accountSelectSchema: import("drizzle-typebox").BuildSchema<
|
|
|
1056
1056
|
data: Date;
|
|
1057
1057
|
driverParam: string;
|
|
1058
1058
|
notNull: true;
|
|
1059
|
-
hasDefault:
|
|
1059
|
+
hasDefault: true;
|
|
1060
1060
|
isPrimaryKey: false;
|
|
1061
1061
|
isAutoincrement: false;
|
|
1062
1062
|
hasRuntimeDefault: false;
|
|
@@ -1280,7 +1280,7 @@ export declare const accountInsertSchema: import("drizzle-typebox").BuildSchema<
|
|
|
1280
1280
|
data: Date;
|
|
1281
1281
|
driverParam: string;
|
|
1282
1282
|
notNull: true;
|
|
1283
|
-
hasDefault:
|
|
1283
|
+
hasDefault: true;
|
|
1284
1284
|
isPrimaryKey: false;
|
|
1285
1285
|
isAutoincrement: false;
|
|
1286
1286
|
hasRuntimeDefault: false;
|
|
@@ -1385,7 +1385,7 @@ export declare const verificationSelectSchema: import("drizzle-typebox").BuildSc
|
|
|
1385
1385
|
data: Date;
|
|
1386
1386
|
driverParam: string;
|
|
1387
1387
|
notNull: true;
|
|
1388
|
-
hasDefault:
|
|
1388
|
+
hasDefault: true;
|
|
1389
1389
|
isPrimaryKey: false;
|
|
1390
1390
|
isAutoincrement: false;
|
|
1391
1391
|
hasRuntimeDefault: false;
|
|
@@ -1490,7 +1490,7 @@ export declare const verificationInsertSchema: import("drizzle-typebox").BuildSc
|
|
|
1490
1490
|
data: Date;
|
|
1491
1491
|
driverParam: string;
|
|
1492
1492
|
notNull: true;
|
|
1493
|
-
hasDefault:
|
|
1493
|
+
hasDefault: true;
|
|
1494
1494
|
isPrimaryKey: false;
|
|
1495
1495
|
isAutoincrement: false;
|
|
1496
1496
|
hasRuntimeDefault: false;
|
|
@@ -95,7 +95,7 @@ export declare const user: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
95
95
|
data: Date;
|
|
96
96
|
driverParam: string;
|
|
97
97
|
notNull: true;
|
|
98
|
-
hasDefault:
|
|
98
|
+
hasDefault: true;
|
|
99
99
|
isPrimaryKey: false;
|
|
100
100
|
isAutoincrement: false;
|
|
101
101
|
hasRuntimeDefault: false;
|
|
@@ -340,7 +340,7 @@ export declare const session: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
340
340
|
data: Date;
|
|
341
341
|
driverParam: string;
|
|
342
342
|
notNull: true;
|
|
343
|
-
hasDefault:
|
|
343
|
+
hasDefault: true;
|
|
344
344
|
isPrimaryKey: false;
|
|
345
345
|
isAutoincrement: false;
|
|
346
346
|
hasRuntimeDefault: false;
|
|
@@ -636,7 +636,7 @@ export declare const account: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
636
636
|
data: Date;
|
|
637
637
|
driverParam: string;
|
|
638
638
|
notNull: true;
|
|
639
|
-
hasDefault:
|
|
639
|
+
hasDefault: true;
|
|
640
640
|
isPrimaryKey: false;
|
|
641
641
|
isAutoincrement: false;
|
|
642
642
|
hasRuntimeDefault: false;
|
|
@@ -745,7 +745,7 @@ export declare const verification: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
745
745
|
data: Date;
|
|
746
746
|
driverParam: string;
|
|
747
747
|
notNull: true;
|
|
748
|
-
hasDefault:
|
|
748
|
+
hasDefault: true;
|
|
749
749
|
isPrimaryKey: false;
|
|
750
750
|
isAutoincrement: false;
|
|
751
751
|
hasRuntimeDefault: false;
|
|
@@ -19,11 +19,40 @@ export declare const bankAccountAdminResponseSchema: import("@sinclair/typebox")
|
|
|
19
19
|
riskStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
20
20
|
}>;
|
|
21
21
|
export type BankAccountAdminResponseType = typeof bankAccountAdminResponseSchema.static;
|
|
22
|
+
export declare const bankAccountAdminResponseWithRelationsSchema: import("@sinclair/typebox").TObject<{
|
|
23
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
24
|
+
updatedAt: import("@sinclair/typebox").TDate;
|
|
25
|
+
id: import("@sinclair/typebox").TString;
|
|
26
|
+
userId: import("@sinclair/typebox").TString;
|
|
27
|
+
country: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
28
|
+
isVerified: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
29
|
+
verifiedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
30
|
+
bankName: import("@sinclair/typebox").TString;
|
|
31
|
+
bankCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
32
|
+
accountName: import("@sinclair/typebox").TString;
|
|
33
|
+
maskAccountNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
34
|
+
branchName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
35
|
+
iban: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
36
|
+
currency: import("@sinclair/typebox").TString;
|
|
37
|
+
swiftCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
38
|
+
isDefault: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
39
|
+
verificationMethod: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
40
|
+
riskStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
41
|
+
user: import("@sinclair/typebox").TObject<{
|
|
42
|
+
email: import("@sinclair/typebox").TString;
|
|
43
|
+
id: import("@sinclair/typebox").TString;
|
|
44
|
+
username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
45
|
+
displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
46
|
+
phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
47
|
+
banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
export type BankAccountAdminResponseWithRelationsType = typeof bankAccountAdminResponseWithRelationsSchema.static;
|
|
22
51
|
export declare const bankAccountAdminListResponseSchema: import("@sinclair/typebox").TObject<{
|
|
23
52
|
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
24
|
-
id: import("@sinclair/typebox").TString;
|
|
25
53
|
createdAt: import("@sinclair/typebox").TDate;
|
|
26
54
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
55
|
+
id: import("@sinclair/typebox").TString;
|
|
27
56
|
userId: import("@sinclair/typebox").TString;
|
|
28
57
|
country: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
29
58
|
isVerified: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
@@ -39,6 +68,14 @@ export declare const bankAccountAdminListResponseSchema: import("@sinclair/typeb
|
|
|
39
68
|
isDefault: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
40
69
|
verificationMethod: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
41
70
|
riskStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
71
|
+
user: import("@sinclair/typebox").TObject<{
|
|
72
|
+
email: import("@sinclair/typebox").TString;
|
|
73
|
+
id: import("@sinclair/typebox").TString;
|
|
74
|
+
username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
75
|
+
displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
76
|
+
phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
77
|
+
banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
78
|
+
}>;
|
|
42
79
|
}>>;
|
|
43
80
|
pagination: import("@sinclair/typebox").TObject<{
|
|
44
81
|
pageSize: import("@sinclair/typebox").TNumber;
|
|
@@ -80,9 +117,9 @@ export declare const bankAccountAdminListQuerySchema: import("@sinclair/typebox"
|
|
|
80
117
|
riskStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
81
118
|
}>;
|
|
82
119
|
export declare const bankAccountAdminSnapshotSchema: import("@sinclair/typebox").TObject<{
|
|
83
|
-
id: import("@sinclair/typebox").TString;
|
|
84
120
|
createdAt: import("@sinclair/typebox").TDate;
|
|
85
121
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
122
|
+
id: import("@sinclair/typebox").TString;
|
|
86
123
|
userId: import("@sinclair/typebox").TString;
|
|
87
124
|
country: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
88
125
|
isVerified: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
@@ -98,6 +135,14 @@ export declare const bankAccountAdminSnapshotSchema: import("@sinclair/typebox")
|
|
|
98
135
|
isDefault: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
99
136
|
verificationMethod: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
100
137
|
riskStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
138
|
+
user: import("@sinclair/typebox").TObject<{
|
|
139
|
+
email: import("@sinclair/typebox").TString;
|
|
140
|
+
id: import("@sinclair/typebox").TString;
|
|
141
|
+
username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
142
|
+
displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
143
|
+
phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
144
|
+
banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
145
|
+
}>;
|
|
101
146
|
}>;
|
|
102
147
|
export declare const bankResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
103
148
|
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -397,6 +397,14 @@ export declare const bankAccountAdminRouter: Elysia<"/bank_account", {
|
|
|
397
397
|
response: {
|
|
398
398
|
200: {
|
|
399
399
|
data: {
|
|
400
|
+
user: {
|
|
401
|
+
email: string;
|
|
402
|
+
id: string;
|
|
403
|
+
username: string | null;
|
|
404
|
+
displayUsername: string | null;
|
|
405
|
+
phoneNumber: string | null;
|
|
406
|
+
banned: boolean | null;
|
|
407
|
+
};
|
|
400
408
|
id: string;
|
|
401
409
|
createdAt: Date;
|
|
402
410
|
updatedAt: Date;
|
|
@@ -462,6 +470,14 @@ export declare const bankAccountAdminRouter: Elysia<"/bank_account", {
|
|
|
462
470
|
headers: {};
|
|
463
471
|
response: {
|
|
464
472
|
200: {
|
|
473
|
+
user: {
|
|
474
|
+
email: string;
|
|
475
|
+
id: string;
|
|
476
|
+
username: string | null;
|
|
477
|
+
displayUsername: string | null;
|
|
478
|
+
phoneNumber: string | null;
|
|
479
|
+
banned: boolean | null;
|
|
480
|
+
};
|
|
465
481
|
id: string;
|
|
466
482
|
createdAt: Date;
|
|
467
483
|
updatedAt: Date;
|
|
@@ -511,6 +527,14 @@ export declare const bankAccountAdminRouter: Elysia<"/bank_account", {
|
|
|
511
527
|
headers: {};
|
|
512
528
|
response: {
|
|
513
529
|
200: {
|
|
530
|
+
user: {
|
|
531
|
+
email: string;
|
|
532
|
+
id: string;
|
|
533
|
+
username: string | null;
|
|
534
|
+
displayUsername: string | null;
|
|
535
|
+
phoneNumber: string | null;
|
|
536
|
+
banned: boolean | null;
|
|
537
|
+
};
|
|
514
538
|
id: string;
|
|
515
539
|
createdAt: Date;
|
|
516
540
|
updatedAt: Date;
|
|
@@ -561,6 +585,14 @@ export declare const bankAccountAdminRouter: Elysia<"/bank_account", {
|
|
|
561
585
|
headers: {};
|
|
562
586
|
response: {
|
|
563
587
|
200: {
|
|
588
|
+
user: {
|
|
589
|
+
email: string;
|
|
590
|
+
id: string;
|
|
591
|
+
username: string | null;
|
|
592
|
+
displayUsername: string | null;
|
|
593
|
+
phoneNumber: string | null;
|
|
594
|
+
banned: boolean | null;
|
|
595
|
+
};
|
|
564
596
|
id: string;
|
|
565
597
|
createdAt: Date;
|
|
566
598
|
updatedAt: Date;
|
|
@@ -2,6 +2,7 @@ import type { AdminListBankAccountsFilters, ListBanksOptions } from "../internal
|
|
|
2
2
|
import { BankAccountBaseService } from "../internal/service";
|
|
3
3
|
import type { BankAccountUpdateInputType, BankCreateInputType, BankUpdateInputType } from "./dto.schemas";
|
|
4
4
|
export declare abstract class AdminBankAccountService extends BankAccountBaseService {
|
|
5
|
+
private static getBankAccountDetail;
|
|
5
6
|
static listAllBankAccounts(filters?: AdminListBankAccountsFilters): Promise<{
|
|
6
7
|
items: {
|
|
7
8
|
id: string;
|
|
@@ -24,74 +25,146 @@ export declare abstract class AdminBankAccountService extends BankAccountBaseSer
|
|
|
24
25
|
isDefault: boolean | null;
|
|
25
26
|
verificationMethod: string | null;
|
|
26
27
|
riskStatus: string | null;
|
|
28
|
+
user: {
|
|
29
|
+
email: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
emailVerified: boolean;
|
|
33
|
+
image: string | null;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
twoFactorEnabled: boolean | null;
|
|
37
|
+
username: string | null;
|
|
38
|
+
displayUsername: string | null;
|
|
39
|
+
phoneNumber: string | null;
|
|
40
|
+
phoneNumberVerified: boolean | null;
|
|
41
|
+
role: string | null;
|
|
42
|
+
banned: boolean | null;
|
|
43
|
+
banReason: string | null;
|
|
44
|
+
banExpires: Date | null;
|
|
45
|
+
};
|
|
27
46
|
}[];
|
|
28
47
|
total: number;
|
|
29
48
|
}>;
|
|
30
49
|
static verifyBankAccount(id: string, method: "manual" | "micro_deposit" | "document"): Promise<{
|
|
31
|
-
|
|
50
|
+
id: string;
|
|
32
51
|
createdAt: Date;
|
|
33
52
|
updatedAt: Date;
|
|
34
|
-
id: string;
|
|
35
53
|
userId: string;
|
|
54
|
+
country: string | null;
|
|
55
|
+
deletedAt: Date | null;
|
|
56
|
+
isVerified: boolean | null;
|
|
57
|
+
verifiedAt: Date | null;
|
|
36
58
|
bankName: string;
|
|
37
59
|
bankCode: string | null;
|
|
38
60
|
accountName: string;
|
|
39
61
|
accountNumber: string;
|
|
40
62
|
maskAccountNumber: string | null;
|
|
41
|
-
country: string | null;
|
|
42
63
|
branchName: string | null;
|
|
43
64
|
iban: string | null;
|
|
44
65
|
currency: string;
|
|
45
66
|
swiftCode: string | null;
|
|
46
67
|
isDefault: boolean | null;
|
|
47
|
-
isVerified: boolean | null;
|
|
48
68
|
verificationMethod: string | null;
|
|
49
|
-
verifiedAt: Date | null;
|
|
50
69
|
riskStatus: string | null;
|
|
70
|
+
user: {
|
|
71
|
+
email: string;
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
emailVerified: boolean;
|
|
75
|
+
image: string | null;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
updatedAt: Date;
|
|
78
|
+
twoFactorEnabled: boolean | null;
|
|
79
|
+
username: string | null;
|
|
80
|
+
displayUsername: string | null;
|
|
81
|
+
phoneNumber: string | null;
|
|
82
|
+
phoneNumberVerified: boolean | null;
|
|
83
|
+
role: string | null;
|
|
84
|
+
banned: boolean | null;
|
|
85
|
+
banReason: string | null;
|
|
86
|
+
banExpires: Date | null;
|
|
87
|
+
};
|
|
51
88
|
}>;
|
|
52
89
|
static updateBankAccount(id: string, data: BankAccountUpdateInputType): Promise<{
|
|
53
|
-
|
|
90
|
+
id: string;
|
|
54
91
|
createdAt: Date;
|
|
55
92
|
updatedAt: Date;
|
|
56
|
-
id: string;
|
|
57
93
|
userId: string;
|
|
94
|
+
country: string | null;
|
|
95
|
+
deletedAt: Date | null;
|
|
96
|
+
isVerified: boolean | null;
|
|
97
|
+
verifiedAt: Date | null;
|
|
58
98
|
bankName: string;
|
|
59
99
|
bankCode: string | null;
|
|
60
100
|
accountName: string;
|
|
61
101
|
accountNumber: string;
|
|
62
102
|
maskAccountNumber: string | null;
|
|
63
|
-
country: string | null;
|
|
64
103
|
branchName: string | null;
|
|
65
104
|
iban: string | null;
|
|
66
105
|
currency: string;
|
|
67
106
|
swiftCode: string | null;
|
|
68
107
|
isDefault: boolean | null;
|
|
69
|
-
isVerified: boolean | null;
|
|
70
108
|
verificationMethod: string | null;
|
|
71
|
-
verifiedAt: Date | null;
|
|
72
109
|
riskStatus: string | null;
|
|
110
|
+
user: {
|
|
111
|
+
email: string;
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
emailVerified: boolean;
|
|
115
|
+
image: string | null;
|
|
116
|
+
createdAt: Date;
|
|
117
|
+
updatedAt: Date;
|
|
118
|
+
twoFactorEnabled: boolean | null;
|
|
119
|
+
username: string | null;
|
|
120
|
+
displayUsername: string | null;
|
|
121
|
+
phoneNumber: string | null;
|
|
122
|
+
phoneNumberVerified: boolean | null;
|
|
123
|
+
role: string | null;
|
|
124
|
+
banned: boolean | null;
|
|
125
|
+
banReason: string | null;
|
|
126
|
+
banExpires: Date | null;
|
|
127
|
+
};
|
|
73
128
|
}>;
|
|
74
129
|
static updateBankAccountRiskStatus(id: string, riskStatus: "normal" | "warning" | "high-risk" | "blocked"): Promise<{
|
|
75
|
-
|
|
130
|
+
id: string;
|
|
76
131
|
createdAt: Date;
|
|
77
132
|
updatedAt: Date;
|
|
78
|
-
id: string;
|
|
79
133
|
userId: string;
|
|
134
|
+
country: string | null;
|
|
135
|
+
deletedAt: Date | null;
|
|
136
|
+
isVerified: boolean | null;
|
|
137
|
+
verifiedAt: Date | null;
|
|
80
138
|
bankName: string;
|
|
81
139
|
bankCode: string | null;
|
|
82
140
|
accountName: string;
|
|
83
141
|
accountNumber: string;
|
|
84
142
|
maskAccountNumber: string | null;
|
|
85
|
-
country: string | null;
|
|
86
143
|
branchName: string | null;
|
|
87
144
|
iban: string | null;
|
|
88
145
|
currency: string;
|
|
89
146
|
swiftCode: string | null;
|
|
90
147
|
isDefault: boolean | null;
|
|
91
|
-
isVerified: boolean | null;
|
|
92
148
|
verificationMethod: string | null;
|
|
93
|
-
verifiedAt: Date | null;
|
|
94
149
|
riskStatus: string | null;
|
|
150
|
+
user: {
|
|
151
|
+
email: string;
|
|
152
|
+
id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
emailVerified: boolean;
|
|
155
|
+
image: string | null;
|
|
156
|
+
createdAt: Date;
|
|
157
|
+
updatedAt: Date;
|
|
158
|
+
twoFactorEnabled: boolean | null;
|
|
159
|
+
username: string | null;
|
|
160
|
+
displayUsername: string | null;
|
|
161
|
+
phoneNumber: string | null;
|
|
162
|
+
phoneNumberVerified: boolean | null;
|
|
163
|
+
role: string | null;
|
|
164
|
+
banned: boolean | null;
|
|
165
|
+
banReason: string | null;
|
|
166
|
+
banExpires: Date | null;
|
|
167
|
+
};
|
|
95
168
|
}>;
|
|
96
169
|
static deleteBankAccount(id: string, hard?: boolean): Promise<void>;
|
|
97
170
|
static listAllBanks(options?: ListBanksOptions): Promise<{
|
|
@@ -106,7 +106,7 @@ export declare const checkInAdminListResponseSchema: import("@sinclair/typebox")
|
|
|
106
106
|
data: Date;
|
|
107
107
|
driverParam: string;
|
|
108
108
|
notNull: true;
|
|
109
|
-
hasDefault:
|
|
109
|
+
hasDefault: true;
|
|
110
110
|
isPrimaryKey: false;
|
|
111
111
|
isAutoincrement: false;
|
|
112
112
|
hasRuntimeDefault: false;
|
|
@@ -270,7 +270,7 @@ export declare const checkInListResponseSchema: import("@sinclair/typebox").TObj
|
|
|
270
270
|
data: Date;
|
|
271
271
|
driverParam: string;
|
|
272
272
|
notNull: true;
|
|
273
|
-
hasDefault:
|
|
273
|
+
hasDefault: true;
|
|
274
274
|
isPrimaryKey: false;
|
|
275
275
|
isAutoincrement: false;
|
|
276
276
|
hasRuntimeDefault: false;
|
package/dist/src/db/schemas.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "../referral/schema";
|
|
|
26
26
|
export * from "../referral-depth-config/schema";
|
|
27
27
|
export * from "../news-category/schema";
|
|
28
28
|
export * from "../news/schema";
|
|
29
|
+
export * from "../app-version/schema";
|
|
29
30
|
export * from "../dynamic-env/schema";
|
|
30
31
|
export * from "../market-pricing/schema";
|
|
31
32
|
export * from "../market-data/schema";
|
|
@@ -118,7 +118,7 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
118
118
|
data: Date;
|
|
119
119
|
driverParam: string;
|
|
120
120
|
notNull: true;
|
|
121
|
-
hasDefault:
|
|
121
|
+
hasDefault: true;
|
|
122
122
|
isPrimaryKey: false;
|
|
123
123
|
isAutoincrement: false;
|
|
124
124
|
hasRuntimeDefault: false;
|
|
@@ -457,7 +457,7 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
457
457
|
data: Date;
|
|
458
458
|
driverParam: string;
|
|
459
459
|
notNull: true;
|
|
460
|
-
hasDefault:
|
|
460
|
+
hasDefault: true;
|
|
461
461
|
isPrimaryKey: false;
|
|
462
462
|
isAutoincrement: false;
|
|
463
463
|
hasRuntimeDefault: false;
|
|
@@ -118,7 +118,7 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
118
118
|
data: Date;
|
|
119
119
|
driverParam: string;
|
|
120
120
|
notNull: true;
|
|
121
|
-
hasDefault:
|
|
121
|
+
hasDefault: true;
|
|
122
122
|
isPrimaryKey: false;
|
|
123
123
|
isAutoincrement: false;
|
|
124
124
|
hasRuntimeDefault: false;
|
|
@@ -463,7 +463,7 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
463
463
|
data: Date;
|
|
464
464
|
driverParam: string;
|
|
465
465
|
notNull: true;
|
|
466
|
-
hasDefault:
|
|
466
|
+
hasDefault: true;
|
|
467
467
|
isPrimaryKey: false;
|
|
468
468
|
isAutoincrement: false;
|
|
469
469
|
hasRuntimeDefault: false;
|
package/dist/src/env/server.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare const _default: {
|
|
|
3
3
|
TZ?: string | undefined;
|
|
4
4
|
PGTZ?: string | undefined;
|
|
5
5
|
LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
|
|
6
|
+
HTTP_ACCESS_LOG?: boolean | undefined;
|
|
6
7
|
ALLOWED_ORIGINS?: string[] | undefined;
|
|
7
8
|
FEATURE_FLAGS?: string[] | undefined;
|
|
8
9
|
S3_PRIVATE_ENDPOINT?: string | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
/** 需在环境变量设置 HTTP_ACCESS_LOG=true;成功与失败请求都会打一行摘要(不落敏感头/body) */
|
|
3
|
+
export declare function httpAccessLogPlugin(): Elysia<"", {
|
|
4
|
+
decorator: {};
|
|
5
|
+
store: {};
|
|
6
|
+
derive: {};
|
|
7
|
+
resolve: {};
|
|
8
|
+
}, {
|
|
9
|
+
typebox: {};
|
|
10
|
+
error: {};
|
|
11
|
+
}, {
|
|
12
|
+
schema: {};
|
|
13
|
+
standaloneSchema: {};
|
|
14
|
+
macro: {};
|
|
15
|
+
macroFn: {};
|
|
16
|
+
parser: {};
|
|
17
|
+
response: {};
|
|
18
|
+
}, {}, {
|
|
19
|
+
derive: {};
|
|
20
|
+
resolve: {};
|
|
21
|
+
schema: {};
|
|
22
|
+
standaloneSchema: {};
|
|
23
|
+
response: {};
|
|
24
|
+
}, {
|
|
25
|
+
derive: {};
|
|
26
|
+
resolve: {};
|
|
27
|
+
schema: {};
|
|
28
|
+
standaloneSchema: {};
|
|
29
|
+
response: {};
|
|
30
|
+
}>;
|