@r2wa-org/eden 0.0.48 → 0.0.50
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/dist/src/account/admin.router.d.ts +548 -0
- package/dist/src/account/db.schemas.d.ts +346 -0
- package/dist/src/account/dto.schemas.d.ts +414 -0
- package/dist/src/account/index.d.ts +7 -0
- package/dist/src/account/router.d.ts +509 -0
- package/dist/src/account/schema.d.ts +190 -0
- package/dist/src/account/seed.d.ts +1 -0
- package/dist/src/account/service.d.ts +139 -0
- package/dist/src/account-type/admin.router.d.ts +495 -0
- package/dist/src/account-type/db.schemas.d.ts +380 -0
- package/dist/src/account-type/dto.schemas.d.ts +28 -0
- package/dist/src/account-type/index.d.ts +7 -0
- package/dist/src/account-type/router.d.ts +460 -0
- package/dist/src/account-type/schema.d.ts +201 -0
- package/dist/src/account-type/seed.d.ts +1 -0
- package/dist/src/account-type/service.d.ts +52 -0
- package/dist/src/admin/admin/dto.schemas.d.ts +923 -0
- package/dist/src/admin/admin/errors/index.d.ts +14 -0
- package/dist/src/admin/admin/errors/locales/zh.d.ts +13 -0
- package/dist/src/admin/admin/router.d.ts +631 -0
- package/dist/src/admin/admin/service.d.ts +59 -0
- package/dist/src/admin/index.d.ts +3494 -2420
- package/dist/src/admin/user/dto.schemas.d.ts +600 -0
- package/dist/src/admin/user/router.d.ts +82 -0
- package/dist/src/admin/user/service.d.ts +31 -0
- package/dist/src/asset/admin/dto.schemas.d.ts +150 -0
- package/dist/src/asset/admin/router.d.ts +673 -0
- package/dist/src/asset/admin/service.d.ts +101 -0
- package/dist/src/asset/admin.router.d.ts +661 -0
- package/dist/src/asset/db.schemas.d.ts +380 -0
- package/dist/src/asset/dto.schemas.d.ts +139 -0
- package/dist/src/asset/errors/index.d.ts +31 -0
- package/dist/src/asset/errors/locales/zh.d.ts +19 -0
- package/dist/src/asset/index.d.ts +11 -0
- package/dist/src/asset/internal/service.d.ts +16 -0
- package/dist/src/asset/permissions.d.ts +4 -0
- package/dist/src/asset/router.d.ts +480 -0
- package/dist/src/asset/schema.d.ts +209 -0
- package/dist/src/asset/seed.d.ts +1 -0
- package/dist/src/asset/service.d.ts +160 -0
- package/dist/src/asset/user/dto.schemas.d.ts +162 -0
- package/dist/src/asset/user/router.d.ts +576 -0
- package/dist/src/asset/user/service.d.ts +78 -0
- package/dist/src/asset-price/admin/dto.schemas.d.ts +391 -0
- package/dist/src/asset-price/admin/router.d.ts +596 -0
- package/dist/src/asset-price/admin/service.d.ts +43 -0
- package/dist/src/asset-price/db.schemas.d.ts +358 -0
- package/dist/src/asset-price/errors/index.d.ts +16 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +15 -0
- package/dist/src/asset-price/index.d.ts +11 -0
- package/dist/src/asset-price/internal/service.d.ts +54 -0
- package/dist/src/asset-price/permissions.d.ts +6 -0
- package/dist/src/asset-price/schema.d.ts +191 -0
- package/dist/src/asset-price/seed.d.ts +1 -0
- package/dist/src/asset-price/user/dto.schemas.d.ts +383 -0
- package/dist/src/asset-price/user/router.d.ts +520 -0
- package/dist/src/asset-price/user/service.d.ts +31 -0
- package/dist/src/asset-type/admin/dto.schemas.d.ts +199 -0
- package/dist/src/asset-type/admin/router.d.ts +584 -0
- package/dist/src/asset-type/admin/service.d.ts +39 -0
- package/dist/src/asset-type/admin.router.d.ts +584 -0
- package/dist/src/asset-type/db.schemas.d.ts +278 -0
- package/dist/src/asset-type/dto.schemas.d.ts +178 -0
- package/dist/src/asset-type/errors/index.d.ts +21 -0
- package/dist/src/asset-type/errors/locales/zh.d.ts +14 -0
- package/dist/src/asset-type/index.d.ts +11 -0
- package/dist/src/asset-type/internal/service.d.ts +9 -0
- package/dist/src/asset-type/permissions.d.ts +4 -0
- package/dist/src/asset-type/router.d.ts +472 -0
- package/dist/src/asset-type/schema.d.ts +152 -0
- package/dist/src/asset-type/seed.d.ts +22 -0
- package/dist/src/asset-type/service.d.ts +59 -0
- package/dist/src/asset-type/share/dto.schemas.d.ts +178 -0
- package/dist/src/asset-type/user/dto.schemas.d.ts +49 -0
- package/dist/src/asset-type/user/router.d.ts +472 -0
- package/dist/src/asset-type/user/service.d.ts +19 -0
- package/dist/src/auth/better-auth.d.ts +81 -25
- package/dist/src/auth/permissions.d.ts +56 -16
- package/dist/src/auth/roles.d.ts +265 -36
- package/dist/src/auth/router.d.ts +2 -2
- package/dist/src/bank-account/admin/dto.schemas.d.ts +479 -0
- package/dist/src/bank-account/admin/router.d.ts +880 -0
- package/dist/src/bank-account/admin/service.d.ts +148 -0
- package/dist/src/bank-account/dto.schemas.d.ts +2 -2
- package/dist/src/bank-account/errors/index.d.ts +13 -0
- package/dist/src/bank-account/errors/locales/zh.d.ts +12 -0
- package/dist/src/bank-account/index.d.ts +4 -4
- package/dist/src/bank-account/internal/service.d.ts +51 -0
- package/dist/src/bank-account/service.d.ts +4 -4
- package/dist/src/bank-account/user/dto.schemas.d.ts +458 -0
- package/dist/src/bank-account/user/router.d.ts +680 -0
- package/dist/src/bank-account/user/service.d.ts +133 -0
- package/dist/src/check-in/admin/dto.schemas.d.ts +329 -0
- package/dist/src/check-in/admin/router.d.ts +530 -0
- package/dist/src/check-in/admin/service.d.ts +39 -0
- package/dist/src/check-in/dto.schemas.d.ts +4 -4
- package/dist/src/check-in/index.d.ts +4 -4
- package/dist/src/check-in/internal/service.d.ts +52 -0
- package/dist/src/check-in/user/dto.schemas.d.ts +520 -0
- package/dist/src/check-in/user/router.d.ts +616 -0
- package/dist/src/check-in/user/service.d.ts +50 -0
- package/dist/src/cron/index.d.ts +1 -13
- package/dist/src/db/schemas.d.ts +8 -3
- package/dist/src/deposit/admin/dto.schemas.d.ts +683 -0
- package/dist/src/deposit/admin/router.d.ts +642 -0
- package/dist/src/deposit/admin/service.d.ts +129 -0
- package/dist/src/deposit/admin.router.d.ts +9 -0
- package/dist/src/deposit/db.schemas.d.ts +102 -0
- package/dist/src/deposit/dto.schemas.d.ts +12 -4
- package/dist/src/deposit/errors/index.d.ts +8 -0
- package/dist/src/deposit/errors/locales/zh.d.ts +4 -0
- package/dist/src/deposit/index.d.ts +4 -4
- package/dist/src/deposit/internal/service.d.ts +8 -0
- package/dist/src/deposit/router.d.ts +13 -2
- package/dist/src/deposit/schema.d.ts +53 -0
- package/dist/src/deposit/service.d.ts +30 -10
- package/dist/src/deposit/user/dto.schemas.d.ts +681 -0
- package/dist/src/deposit/user/router.d.ts +632 -0
- package/dist/src/deposit/user/service.d.ts +129 -0
- package/dist/src/dynamic-env/admin.router.d.ts +113 -127
- package/dist/src/dynamic-env/errors/index.d.ts +11 -0
- package/dist/src/dynamic-env/errors/locales/zh.d.ts +10 -0
- package/dist/src/eden/index.d.ts +1 -1
- package/dist/src/env/server.d.ts +0 -1
- package/dist/src/file-storage/admin/dto.schemas.d.ts +209 -0
- package/dist/src/file-storage/admin/router.d.ts +601 -0
- package/dist/src/file-storage/admin/service.d.ts +89 -0
- package/dist/src/file-storage/admin.router.d.ts +2 -2
- package/dist/src/file-storage/db.schemas.d.ts +4 -4
- package/dist/src/file-storage/dto.schemas.d.ts +8 -8
- package/dist/src/file-storage/index.d.ts +5 -4
- package/dist/src/file-storage/internal/service.d.ts +66 -0
- package/dist/src/file-storage/router.d.ts +3 -3
- package/dist/src/file-storage/s3.client.d.ts +4 -4
- package/dist/src/file-storage/schema.d.ts +3 -3
- package/dist/src/file-storage/service.d.ts +7 -7
- package/dist/src/file-storage/share/dto.schemas.d.ts +68 -0
- package/dist/src/file-storage/share/router.d.ts +561 -0
- package/dist/src/file-storage/share.router.d.ts +1 -1
- package/dist/src/file-storage/user/dto.schemas.d.ts +1100 -0
- package/dist/src/file-storage/user/router.d.ts +585 -0
- package/dist/src/file-storage/user/service.d.ts +80 -0
- package/dist/src/index.d.ts +5715 -4110
- package/dist/src/ledger/admin/dto.schemas.d.ts +717 -0
- package/dist/src/ledger/admin/router.d.ts +523 -0
- package/dist/src/ledger/admin/service.d.ts +142 -0
- package/dist/src/ledger/admin.router.d.ts +17 -14
- package/dist/src/ledger/db.schemas.d.ts +266 -58
- package/dist/src/ledger/dto.schemas.d.ts +690 -138
- package/dist/src/ledger/errors/index.d.ts +16 -0
- package/dist/src/ledger/errors/locales/zh.d.ts +8 -0
- package/dist/src/ledger/index.d.ts +4 -4
- package/dist/src/ledger/internal/service.d.ts +182 -0
- package/dist/src/ledger/router.d.ts +17 -16
- package/dist/src/ledger/schema.d.ts +142 -37
- package/dist/src/ledger/service.d.ts +380 -126
- package/dist/src/ledger/user/dto.schemas.d.ts +712 -0
- package/dist/src/ledger/user/router.d.ts +487 -0
- package/dist/src/ledger/user/service.d.ts +142 -0
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +642 -0
- package/dist/src/ledger-account/admin/router.d.ts +691 -0
- package/dist/src/ledger-account/admin/service.d.ts +184 -0
- package/dist/src/ledger-account/admin.router.d.ts +591 -0
- package/dist/src/ledger-account/db.schemas.d.ts +346 -0
- package/dist/src/ledger-account/dto.schemas.d.ts +559 -0
- package/dist/src/ledger-account/errors/index.d.ts +18 -0
- package/dist/src/ledger-account/errors/locales/zh.d.ts +17 -0
- package/dist/src/ledger-account/index.d.ts +8 -0
- package/dist/src/ledger-account/internal/service.d.ts +44 -0
- package/dist/src/ledger-account/permissions.d.ts +4 -0
- package/dist/src/ledger-account/router.d.ts +426 -0
- package/dist/src/ledger-account/schema.d.ts +190 -0
- package/dist/src/ledger-account/seed.d.ts +1 -0
- package/dist/src/ledger-account/service.d.ts +200 -0
- package/dist/src/ledger-account/user/dto.schemas.d.ts +734 -0
- package/dist/src/ledger-account/user/router.d.ts +479 -0
- package/dist/src/ledger-account/user/service.d.ts +54 -0
- package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +1255 -0
- package/dist/src/ledger-account-import/admin/router.d.ts +694 -0
- package/dist/src/ledger-account-import/admin/service.d.ts +92 -0
- package/dist/src/ledger-account-import/admin.router.d.ts +694 -0
- package/dist/src/ledger-account-import/db.schemas.d.ts +1206 -0
- package/dist/src/ledger-account-import/dto.schemas.d.ts +1255 -0
- package/dist/src/ledger-account-import/errors/index.d.ts +18 -0
- package/dist/src/ledger-account-import/errors/locales/zh.d.ts +17 -0
- package/dist/src/ledger-account-import/index.d.ts +8 -0
- package/dist/src/ledger-account-import/internal/service.d.ts +13 -0
- package/dist/src/ledger-account-import/permissions.d.ts +7 -0
- package/dist/src/ledger-account-import/schema.d.ts +636 -0
- package/dist/src/ledger-account-import/service.d.ts +105 -0
- package/dist/src/ledger-account-import/user/service.d.ts +3 -0
- package/dist/src/ledger-account-import/worker.d.ts +1 -0
- package/dist/src/ledger-account-transfer/admin/service.d.ts +3 -0
- package/dist/src/ledger-account-transfer/dto.schemas.d.ts +22 -0
- package/dist/src/ledger-account-transfer/errors/index.d.ts +23 -0
- package/dist/src/ledger-account-transfer/errors/locales/zh.d.ts +15 -0
- package/dist/src/ledger-account-transfer/index.d.ts +6 -0
- package/dist/src/ledger-account-transfer/internal/service.d.ts +8 -0
- package/dist/src/ledger-account-transfer/router.d.ts +469 -0
- package/dist/src/ledger-account-transfer/service.d.ts +26 -0
- package/dist/src/ledger-account-transfer/user/dto.schemas.d.ts +20 -0
- package/dist/src/ledger-account-transfer/user/router.d.ts +466 -0
- package/dist/src/ledger-account-transfer/user/service.d.ts +16 -0
- package/dist/src/ledger-account-type/admin/dto.schemas.d.ts +509 -0
- package/dist/src/ledger-account-type/admin/router.d.ts +711 -0
- package/dist/src/ledger-account-type/admin/service.d.ts +109 -0
- package/dist/src/ledger-account-type/admin.router.d.ts +711 -0
- package/dist/src/ledger-account-type/db.schemas.d.ts +788 -0
- package/dist/src/ledger-account-type/dto.schemas.d.ts +509 -0
- package/dist/src/ledger-account-type/errors/index.d.ts +18 -0
- package/dist/src/ledger-account-type/errors/locales/zh.d.ts +17 -0
- package/dist/src/ledger-account-type/index.d.ts +9 -0
- package/dist/src/ledger-account-type/internal/service.d.ts +8 -0
- package/dist/src/ledger-account-type/permissions.d.ts +4 -0
- package/dist/src/ledger-account-type/router.d.ts +486 -0
- package/dist/src/ledger-account-type/schema.d.ts +405 -0
- package/dist/src/ledger-account-type/seed.d.ts +1 -0
- package/dist/src/ledger-account-type/service.d.ts +147 -0
- package/dist/src/ledger-account-type/user/dto.schemas.d.ts +509 -0
- package/dist/src/ledger-account-type/user/router.d.ts +486 -0
- package/dist/src/ledger-account-type/user/service.d.ts +34 -0
- package/dist/src/news/admin/dto.schemas.d.ts +159 -0
- package/dist/src/news/admin/router.d.ts +821 -0
- package/dist/src/news/admin/service.d.ts +220 -0
- package/dist/src/news/admin.router.d.ts +1 -1
- package/dist/src/news/index.d.ts +4 -3
- package/dist/src/news/internal/service.d.ts +7 -0
- package/dist/src/news/service.d.ts +3 -3
- package/dist/src/news/user/dto.schemas.d.ts +178 -0
- package/dist/src/news/user/router.d.ts +617 -0
- package/dist/src/news/user/service.d.ts +228 -0
- package/dist/src/news-category/admin/dto.schemas.d.ts +52 -0
- package/dist/src/news-category/admin/router.d.ts +204 -0
- package/dist/src/news-category/admin/service.d.ts +54 -0
- package/dist/src/news-category/index.d.ts +4 -3
- package/dist/src/news-category/internal/service.d.ts +5 -0
- package/dist/src/news-category/user/dto.schemas.d.ts +55 -0
- package/dist/src/news-category/user/router.d.ts +457 -0
- package/dist/src/news-category/user/service.d.ts +25 -0
- package/dist/src/notification/admin/dto.schemas.d.ts +432 -0
- package/dist/src/notification/admin/router.d.ts +579 -0
- package/dist/src/notification/admin/service.d.ts +43 -0
- package/dist/src/notification/dto.schemas.d.ts +9 -9
- package/dist/src/notification/index.d.ts +4 -4
- package/dist/src/notification/internal/service.d.ts +28 -0
- package/dist/src/notification/user/dto.schemas.d.ts +411 -0
- package/dist/src/notification/user/router.d.ts +632 -0
- package/dist/src/notification/user/service.d.ts +82 -0
- package/dist/src/receipt-method/admin/dto.schemas.d.ts +392 -0
- package/dist/src/receipt-method/admin/router.d.ts +579 -0
- package/dist/src/receipt-method/admin/service.d.ts +46 -0
- package/dist/src/receipt-method/errors/index.d.ts +17 -0
- package/dist/src/receipt-method/errors/locales/zh.d.ts +16 -0
- package/dist/src/receipt-method/index.d.ts +4 -4
- package/dist/src/receipt-method/internal/service.d.ts +33 -0
- package/dist/src/receipt-method/user/dto.schemas.d.ts +417 -0
- package/dist/src/receipt-method/user/router.d.ts +602 -0
- package/dist/src/receipt-method/user/service.d.ts +73 -0
- package/dist/src/referral/admin/dto.schemas.d.ts +627 -0
- package/dist/src/referral/admin/router.d.ts +562 -0
- package/dist/src/referral/admin/service.d.ts +6 -0
- package/dist/src/referral/index.d.ts +6 -3
- package/dist/src/referral/internal/service.d.ts +23 -0
- package/dist/src/referral/user/dto.schemas.d.ts +636 -0
- package/dist/src/referral/user/router.d.ts +579 -0
- package/dist/src/referral/user/service.d.ts +21 -0
- package/dist/src/referral-depth-config/admin/dto.schemas.d.ts +203 -0
- package/dist/src/referral-depth-config/admin/router.d.ts +646 -0
- package/dist/src/referral-depth-config/admin/service.d.ts +38 -0
- package/dist/src/referral-depth-config/internal/service.d.ts +4 -0
- package/dist/src/server-test/index.d.ts +2 -2
- package/dist/src/shipping-address/admin/dto.schemas.d.ts +289 -0
- package/dist/src/shipping-address/admin/router.d.ts +507 -0
- package/dist/src/shipping-address/admin/service.d.ts +17 -0
- package/dist/src/shipping-address/errors/index.d.ts +12 -0
- package/dist/src/shipping-address/errors/locales/zh.d.ts +11 -0
- package/dist/src/shipping-address/index.d.ts +4 -4
- package/dist/src/shipping-address/internal/service.d.ts +15 -0
- package/dist/src/shipping-address/user/dto.schemas.d.ts +303 -0
- package/dist/src/shipping-address/user/router.d.ts +621 -0
- package/dist/src/shipping-address/user/service.d.ts +68 -0
- package/dist/src/subscription/admin.router.d.ts +6 -6
- package/dist/src/subscription/db.schemas.d.ts +2 -2
- package/dist/src/subscription/dto.schemas.d.ts +293 -293
- package/dist/src/subscription/router.d.ts +7 -7
- package/dist/src/subscription/schema.d.ts +1 -1
- package/dist/src/subscription/service.d.ts +9 -9
- package/dist/src/team/admin/dto.schemas.d.ts +807 -0
- package/dist/src/team/admin/router.d.ts +569 -0
- package/dist/src/team/admin/service.d.ts +6 -0
- package/dist/src/team/index.d.ts +6 -3
- package/dist/src/team/internal/service.d.ts +6 -0
- package/dist/src/team/user/dto.schemas.d.ts +2072 -0
- package/dist/src/team/user/router.d.ts +737 -0
- package/dist/src/team/user/service.d.ts +10 -0
- package/dist/src/transfer/admin/dto.schemas.d.ts +396 -0
- package/dist/src/transfer/admin/router.d.ts +509 -0
- package/dist/src/transfer/admin/service.d.ts +58 -0
- package/dist/src/transfer/admin.router.d.ts +4 -90
- package/dist/src/transfer/db.schemas.d.ts +80 -12
- package/dist/src/transfer/dto.schemas.d.ts +342 -3923
- package/dist/src/transfer/errors/index.d.ts +16 -16
- package/dist/src/transfer/errors/locales/zh.d.ts +8 -8
- package/dist/src/transfer/index.d.ts +7 -4
- package/dist/src/transfer/internal/service.d.ts +8 -0
- package/dist/src/transfer/router.d.ts +36 -119
- package/dist/src/transfer/schema.d.ts +43 -8
- package/dist/src/transfer/service.d.ts +15 -114
- package/dist/src/transfer/user/dto.schemas.d.ts +416 -0
- package/dist/src/transfer/user/router.d.ts +514 -0
- package/dist/src/transfer/user/service.d.ts +69 -0
- package/dist/src/user/admin/dto.schemas.d.ts +1459 -0
- package/dist/src/user/admin/router.d.ts +861 -0
- package/dist/src/user/admin/service.d.ts +168 -0
- package/dist/src/user/dto.schemas.d.ts +4 -4
- package/dist/src/user/errors/index.d.ts +2 -0
- package/dist/src/user/errors/locales/zh.d.ts +1 -0
- package/dist/src/user/index.d.ts +6 -4
- package/dist/src/user/internal/service.d.ts +22 -0
- package/dist/src/user/user/dto.schemas.d.ts +14 -0
- package/dist/src/user/user/router.d.ts +560 -0
- package/dist/src/user/user/service.d.ts +91 -0
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +625 -0
- package/dist/src/user-kyc/admin/router.d.ts +669 -0
- package/dist/src/user-kyc/admin/service.d.ts +89 -0
- package/dist/src/user-kyc/index.d.ts +6 -4
- package/dist/src/user-kyc/internal/service.d.ts +9 -0
- package/dist/src/user-kyc/user/dto.schemas.d.ts +314 -0
- package/dist/src/user-kyc/user/router.d.ts +602 -0
- package/dist/src/user-kyc/user/service.d.ts +64 -0
- package/dist/src/user-security/admin/dto.schemas.d.ts +8 -0
- package/dist/src/user-security/admin/router.d.ts +493 -0
- package/dist/src/user-security/admin/service.d.ts +6 -0
- package/dist/src/user-security/index.d.ts +6 -4
- package/dist/src/user-security/internal/service.d.ts +15 -0
- package/dist/src/user-security/user/dto.schemas.d.ts +21 -0
- package/dist/src/user-security/user/router.d.ts +547 -0
- package/dist/src/user-security/user/service.d.ts +15 -0
- package/dist/src/wallet/admin/dto.schemas.d.ts +317 -0
- package/dist/src/wallet/admin/router.d.ts +519 -0
- package/dist/src/wallet/admin/service.d.ts +27 -0
- package/dist/src/wallet/admin.router.d.ts +50 -147
- package/dist/src/wallet/db.schemas.d.ts +54 -54
- package/dist/src/wallet/dto.schemas.d.ts +47 -1420
- package/dist/src/wallet/ensure.d.ts +2 -2
- package/dist/src/wallet/errors/index.d.ts +10 -0
- package/dist/src/wallet/errors/locales/zh.d.ts +9 -0
- package/dist/src/wallet/index.d.ts +9 -4
- package/dist/src/wallet/internal/service.d.ts +73 -0
- package/dist/src/wallet/permissions.d.ts +8 -0
- package/dist/src/wallet/router.d.ts +39 -209
- package/dist/src/wallet/schema.d.ts +31 -31
- package/dist/src/wallet/seed.d.ts +1 -0
- package/dist/src/wallet/service.d.ts +66 -191
- package/dist/src/wallet/user/dto.schemas.d.ts +432 -0
- package/dist/src/wallet/user/router.d.ts +604 -0
- package/dist/src/wallet/user/service.d.ts +101 -0
- package/dist/src/wallet-import/admin.router.d.ts +7 -3
- package/dist/src/wallet-import/db.schemas.d.ts +154 -18
- package/dist/src/wallet-import/dto.schemas.d.ts +154 -18
- package/dist/src/wallet-import/errors/index.d.ts +2 -1
- package/dist/src/wallet-import/errors/locales/zh.d.ts +2 -1
- package/dist/src/wallet-import/schema.d.ts +80 -10
- package/dist/src/wallet-import/service.d.ts +7 -3
- package/dist/src/wallet-transfer/dto.schemas.d.ts +18 -60
- package/dist/src/wallet-transfer/errors/index.d.ts +12 -14
- package/dist/src/wallet-transfer/errors/locales/zh.d.ts +6 -7
- package/dist/src/wallet-transfer/router.d.ts +32 -28
- package/dist/src/wallet-transfer/service.d.ts +12 -12
- package/dist/src/wallet-type/admin/dto.schemas.d.ts +79 -0
- package/dist/src/wallet-type/admin/router.d.ts +611 -0
- package/dist/src/wallet-type/admin/service.d.ts +58 -0
- package/dist/src/wallet-type/admin.router.d.ts +63 -219
- package/dist/src/wallet-type/db.schemas.d.ts +14 -530
- package/dist/src/wallet-type/dto.schemas.d.ts +44 -125
- package/dist/src/wallet-type/errors/index.d.ts +1 -15
- package/dist/src/wallet-type/errors/locales/zh.d.ts +1 -7
- package/dist/src/wallet-type/index.d.ts +6 -3
- package/dist/src/wallet-type/internal/service.d.ts +219 -0
- package/dist/src/wallet-type/permissions.d.ts +0 -1
- package/dist/src/wallet-type/router.d.ts +481 -0
- package/dist/src/wallet-type/schema.d.ts +41 -250
- package/dist/src/wallet-type/seed.d.ts +0 -3
- package/dist/src/wallet-type/service.d.ts +206 -171
- package/dist/src/wallet-type/user/dto.schemas.d.ts +62 -0
- package/dist/src/wallet-type/user/router.d.ts +481 -0
- package/dist/src/wallet-type/user/service.d.ts +24 -0
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +1261 -0
- package/dist/src/welfare-cycle/admin/router.d.ts +1029 -0
- package/dist/src/welfare-cycle/admin/service.d.ts +217 -0
- package/dist/src/welfare-cycle/db.schemas.d.ts +2234 -0
- package/dist/src/welfare-cycle/errors/index.d.ts +19 -0
- package/dist/src/welfare-cycle/errors/locales/zh.d.ts +18 -0
- package/dist/src/welfare-cycle/index.d.ts +7 -0
- package/dist/src/welfare-cycle/internal/service.d.ts +208 -0
- package/dist/src/welfare-cycle/permissions.d.ts +6 -0
- package/dist/src/welfare-cycle/schema.d.ts +1183 -0
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1603 -0
- package/dist/src/welfare-cycle/user/router.d.ts +803 -0
- package/dist/src/welfare-cycle/user/service.d.ts +175 -0
- package/dist/src/withdraw/admin/dto.schemas.d.ts +902 -0
- package/dist/src/withdraw/admin/router.d.ts +662 -0
- package/dist/src/withdraw/admin/service.d.ts +83 -0
- package/dist/src/withdraw/admin.router.d.ts +12 -4
- package/dist/src/withdraw/db.schemas.d.ts +74 -6
- package/dist/src/withdraw/dto.schemas.d.ts +115 -12
- package/dist/src/withdraw/errors/index.d.ts +6 -4
- package/dist/src/withdraw/errors/locales/zh.d.ts +3 -2
- package/dist/src/withdraw/index.d.ts +7 -6
- package/dist/src/withdraw/internal/index.d.ts +1 -0
- package/dist/src/withdraw/internal/service.d.ts +10 -0
- package/dist/src/withdraw/router.d.ts +42 -35
- package/dist/src/withdraw/schema.d.ts +39 -4
- package/dist/src/withdraw/service.d.ts +21 -11
- package/dist/src/withdraw/user/dto.schemas.d.ts +902 -0
- package/dist/src/withdraw/user/index.d.ts +3 -0
- package/dist/src/withdraw/user/router.d.ts +529 -0
- package/dist/src/withdraw/user/service.d.ts +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BaseFileStorageService } from "../internal/service";
|
|
2
|
+
import type { ListAdminFilesQueryInput, VerifyFileInput } from "./dto.schemas";
|
|
3
|
+
export declare abstract class AdminFileStorageService extends BaseFileStorageService {
|
|
4
|
+
static verifyFile(input: VerifyFileInput, adminId: string): Promise<{
|
|
5
|
+
deletedAt: Date | null;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
id: string;
|
|
9
|
+
fileName: string | null;
|
|
10
|
+
fileSize: number | null;
|
|
11
|
+
mimeType: string | null;
|
|
12
|
+
fileExtension: string | null;
|
|
13
|
+
fileHash: string | null;
|
|
14
|
+
s3Bucket: string;
|
|
15
|
+
s3Key: string;
|
|
16
|
+
s3Region: string;
|
|
17
|
+
s3ETag: string | null;
|
|
18
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
19
|
+
businessId: string | null;
|
|
20
|
+
businessMetadata: string | null;
|
|
21
|
+
ownerId: string;
|
|
22
|
+
accessControl: "private" | "restricted" | "public" | null;
|
|
23
|
+
status: "uploading" | "active" | "archived" | "pending_deletion" | null;
|
|
24
|
+
publicUrl: string | null;
|
|
25
|
+
thumbnailUrl: string | null;
|
|
26
|
+
archivedAt: Date | null;
|
|
27
|
+
uploadCompletedAt: Date | null;
|
|
28
|
+
uploadIpAddress: string | null;
|
|
29
|
+
downloadCount: number | null;
|
|
30
|
+
lastDownloadedAt: Date | null;
|
|
31
|
+
isVerified: boolean | null;
|
|
32
|
+
verifiedBy: string | null;
|
|
33
|
+
verifiedAt: Date | null;
|
|
34
|
+
verificationNote: string | null;
|
|
35
|
+
} | undefined>;
|
|
36
|
+
static listAllFiles(filters: ListAdminFilesQueryInput): Promise<{
|
|
37
|
+
data: {
|
|
38
|
+
id: string;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
deletedAt: Date | null;
|
|
42
|
+
fileName: string | null;
|
|
43
|
+
fileSize: number | null;
|
|
44
|
+
mimeType: string | null;
|
|
45
|
+
fileExtension: string | null;
|
|
46
|
+
fileHash: string | null;
|
|
47
|
+
s3Bucket: string;
|
|
48
|
+
s3Key: string;
|
|
49
|
+
s3Region: string;
|
|
50
|
+
s3ETag: string | null;
|
|
51
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
52
|
+
businessId: string | null;
|
|
53
|
+
businessMetadata: string | null;
|
|
54
|
+
ownerId: string;
|
|
55
|
+
accessControl: "private" | "restricted" | "public" | null;
|
|
56
|
+
status: "uploading" | "active" | "archived" | "pending_deletion" | null;
|
|
57
|
+
publicUrl: string | null;
|
|
58
|
+
thumbnailUrl: string | null;
|
|
59
|
+
archivedAt: Date | null;
|
|
60
|
+
uploadCompletedAt: Date | null;
|
|
61
|
+
uploadIpAddress: string | null;
|
|
62
|
+
downloadCount: number | null;
|
|
63
|
+
lastDownloadedAt: Date | null;
|
|
64
|
+
isVerified: boolean | null;
|
|
65
|
+
verifiedBy: string | null;
|
|
66
|
+
verifiedAt: Date | null;
|
|
67
|
+
verificationNote: string | null;
|
|
68
|
+
owner: {
|
|
69
|
+
email: string;
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
verifier: {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
} | null;
|
|
77
|
+
}[];
|
|
78
|
+
pagination: {
|
|
79
|
+
pageSize: number;
|
|
80
|
+
pageIndex: number;
|
|
81
|
+
total: number;
|
|
82
|
+
totalPages: number;
|
|
83
|
+
hasNextPage: boolean;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
static permanentlyDeleteFile(fileId: string): Promise<{
|
|
87
|
+
success: boolean;
|
|
88
|
+
}>;
|
|
89
|
+
}
|
|
@@ -413,7 +413,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
413
413
|
body: unknown;
|
|
414
414
|
params: {};
|
|
415
415
|
query: {
|
|
416
|
-
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
416
|
+
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment" | undefined;
|
|
417
417
|
businessId?: string | undefined;
|
|
418
418
|
accessControl?: "private" | "restricted" | "public" | null | undefined;
|
|
419
419
|
status?: "uploading" | "active" | "archived" | "pending_deletion" | null | undefined;
|
|
@@ -449,7 +449,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
449
449
|
s3Key: string;
|
|
450
450
|
s3Region: string;
|
|
451
451
|
s3ETag: string | null;
|
|
452
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
452
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
453
453
|
businessId: string | null;
|
|
454
454
|
businessMetadata: string | null;
|
|
455
455
|
ownerId: string;
|
|
@@ -225,14 +225,14 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
225
225
|
tableName: "file_storage";
|
|
226
226
|
dataType: "string";
|
|
227
227
|
columnType: "PgEnumColumn";
|
|
228
|
-
data: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
228
|
+
data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
229
229
|
driverParam: string;
|
|
230
230
|
notNull: true;
|
|
231
231
|
hasDefault: false;
|
|
232
232
|
isPrimaryKey: false;
|
|
233
233
|
isAutoincrement: false;
|
|
234
234
|
hasRuntimeDefault: false;
|
|
235
|
-
enumValues: ["kyc_document", "contract", "financial_report", "
|
|
235
|
+
enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
|
|
236
236
|
baseColumn: never;
|
|
237
237
|
identity: undefined;
|
|
238
238
|
generated: undefined;
|
|
@@ -738,14 +738,14 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
|
|
|
738
738
|
tableName: "file_storage";
|
|
739
739
|
dataType: "string";
|
|
740
740
|
columnType: "PgEnumColumn";
|
|
741
|
-
data: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
741
|
+
data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
742
742
|
driverParam: string;
|
|
743
743
|
notNull: true;
|
|
744
744
|
hasDefault: false;
|
|
745
745
|
isPrimaryKey: false;
|
|
746
746
|
isAutoincrement: false;
|
|
747
747
|
hasRuntimeDefault: false;
|
|
748
|
-
enumValues: ["kyc_document", "contract", "financial_report", "
|
|
748
|
+
enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
|
|
749
749
|
baseColumn: never;
|
|
750
750
|
identity: undefined;
|
|
751
751
|
generated: undefined;
|
|
@@ -7,7 +7,7 @@ export declare const generateUploadUrlSchema: import("@sinclair/typebox").TObjec
|
|
|
7
7
|
kyc_document: "kyc_document";
|
|
8
8
|
contract: "contract";
|
|
9
9
|
financial_report: "financial_report";
|
|
10
|
-
|
|
10
|
+
ledger_account_import: "ledger_account_import";
|
|
11
11
|
avatar: "avatar";
|
|
12
12
|
cover_image: "cover_image";
|
|
13
13
|
notification_attachment: "notification_attachment";
|
|
@@ -73,7 +73,7 @@ export declare const listFilesSchema: import("@sinclair/typebox").TObject<{
|
|
|
73
73
|
kyc_document: "kyc_document";
|
|
74
74
|
contract: "contract";
|
|
75
75
|
financial_report: "financial_report";
|
|
76
|
-
|
|
76
|
+
ledger_account_import: "ledger_account_import";
|
|
77
77
|
avatar: "avatar";
|
|
78
78
|
cover_image: "cover_image";
|
|
79
79
|
notification_attachment: "notification_attachment";
|
|
@@ -103,7 +103,7 @@ export declare const listUserFilesQuerySchema: import("@sinclair/typebox").TObje
|
|
|
103
103
|
kyc_document: "kyc_document";
|
|
104
104
|
contract: "contract";
|
|
105
105
|
financial_report: "financial_report";
|
|
106
|
-
|
|
106
|
+
ledger_account_import: "ledger_account_import";
|
|
107
107
|
avatar: "avatar";
|
|
108
108
|
cover_image: "cover_image";
|
|
109
109
|
notification_attachment: "notification_attachment";
|
|
@@ -358,14 +358,14 @@ export declare const listUserFilesResponseSchema: import("@sinclair/typebox").TO
|
|
|
358
358
|
tableName: "file_storage";
|
|
359
359
|
dataType: "string";
|
|
360
360
|
columnType: "PgEnumColumn";
|
|
361
|
-
data: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
361
|
+
data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
362
362
|
driverParam: string;
|
|
363
363
|
notNull: true;
|
|
364
364
|
hasDefault: false;
|
|
365
365
|
isPrimaryKey: false;
|
|
366
366
|
isAutoincrement: false;
|
|
367
367
|
hasRuntimeDefault: false;
|
|
368
|
-
enumValues: ["kyc_document", "contract", "financial_report", "
|
|
368
|
+
enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
|
|
369
369
|
baseColumn: never;
|
|
370
370
|
identity: undefined;
|
|
371
371
|
generated: undefined;
|
|
@@ -881,14 +881,14 @@ export declare const getFileByIdResponseSchema: import("drizzle-typebox").BuildS
|
|
|
881
881
|
tableName: "file_storage";
|
|
882
882
|
dataType: "string";
|
|
883
883
|
columnType: "PgEnumColumn";
|
|
884
|
-
data: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
884
|
+
data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
885
885
|
driverParam: string;
|
|
886
886
|
notNull: true;
|
|
887
887
|
hasDefault: false;
|
|
888
888
|
isPrimaryKey: false;
|
|
889
889
|
isAutoincrement: false;
|
|
890
890
|
hasRuntimeDefault: false;
|
|
891
|
-
enumValues: ["kyc_document", "contract", "financial_report", "
|
|
891
|
+
enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
|
|
892
892
|
baseColumn: never;
|
|
893
893
|
identity: undefined;
|
|
894
894
|
generated: undefined;
|
|
@@ -1193,7 +1193,7 @@ export declare const fileStorageWithRelationsSchema: import("@sinclair/typebox")
|
|
|
1193
1193
|
kyc_document: "kyc_document";
|
|
1194
1194
|
contract: "contract";
|
|
1195
1195
|
financial_report: "financial_report";
|
|
1196
|
-
|
|
1196
|
+
ledger_account_import: "ledger_account_import";
|
|
1197
1197
|
avatar: "avatar";
|
|
1198
1198
|
cover_image: "cover_image";
|
|
1199
1199
|
notification_attachment: "notification_attachment";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from "./admin
|
|
1
|
+
export * from "./admin/service";
|
|
2
|
+
export * from "./internal/service";
|
|
2
3
|
export * from "./permissions";
|
|
3
|
-
export * from "./router";
|
|
4
4
|
export * from "./schema";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
5
|
+
export * from "./share/router";
|
|
6
|
+
export * from "./user/router";
|
|
7
|
+
export * from "./user/service";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ConfirmUploadInput, GenerateAccessUrlInput, GenerateBatchAccessUrlsInput, GenerateUploadUrlInput } from "../share/dto.schemas";
|
|
2
|
+
export declare abstract class BaseFileStorageService {
|
|
3
|
+
protected static ensureFileExists<T>(file: T | undefined | null): asserts file is T;
|
|
4
|
+
protected static ensurePrivateOwnership(file: {
|
|
5
|
+
accessControl: string | null;
|
|
6
|
+
ownerId: string;
|
|
7
|
+
}, userId: string): void;
|
|
8
|
+
}
|
|
9
|
+
export declare abstract class InternalFileStorageService extends BaseFileStorageService {
|
|
10
|
+
static generateUploadUrl(input: GenerateUploadUrlInput, userId: string): Promise<{
|
|
11
|
+
readonly fileId: string;
|
|
12
|
+
readonly uploadUrl: string;
|
|
13
|
+
readonly method: "PUT";
|
|
14
|
+
readonly headers: {
|
|
15
|
+
readonly "Content-Type": string;
|
|
16
|
+
};
|
|
17
|
+
readonly publicUrl: string | undefined;
|
|
18
|
+
readonly mimeType: string;
|
|
19
|
+
readonly expiresIn: number;
|
|
20
|
+
readonly expiresAt: number;
|
|
21
|
+
}>;
|
|
22
|
+
static confirmUpload(input: ConfirmUploadInput, userId: string): Promise<{
|
|
23
|
+
deletedAt: Date | null;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
id: string;
|
|
27
|
+
fileName: string | null;
|
|
28
|
+
fileSize: number | null;
|
|
29
|
+
mimeType: string | null;
|
|
30
|
+
fileExtension: string | null;
|
|
31
|
+
fileHash: string | null;
|
|
32
|
+
s3Bucket: string;
|
|
33
|
+
s3Key: string;
|
|
34
|
+
s3Region: string;
|
|
35
|
+
s3ETag: string | null;
|
|
36
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
37
|
+
businessId: string | null;
|
|
38
|
+
businessMetadata: string | null;
|
|
39
|
+
ownerId: string;
|
|
40
|
+
accessControl: "private" | "restricted" | "public" | null;
|
|
41
|
+
status: "uploading" | "active" | "archived" | "pending_deletion" | null;
|
|
42
|
+
publicUrl: string | null;
|
|
43
|
+
thumbnailUrl: string | null;
|
|
44
|
+
archivedAt: Date | null;
|
|
45
|
+
uploadCompletedAt: Date | null;
|
|
46
|
+
uploadIpAddress: string | null;
|
|
47
|
+
downloadCount: number | null;
|
|
48
|
+
lastDownloadedAt: Date | null;
|
|
49
|
+
isVerified: boolean | null;
|
|
50
|
+
verifiedBy: string | null;
|
|
51
|
+
verifiedAt: Date | null;
|
|
52
|
+
verificationNote: string | null;
|
|
53
|
+
} | undefined>;
|
|
54
|
+
static generateAccessUrl(input: GenerateAccessUrlInput, userId: string): Promise<{
|
|
55
|
+
expiresAt?: number | undefined;
|
|
56
|
+
id: string;
|
|
57
|
+
fileName: string | null;
|
|
58
|
+
url: string;
|
|
59
|
+
}>;
|
|
60
|
+
static generateBatchAccessUrls(input: GenerateBatchAccessUrlsInput, userId: string): Promise<{
|
|
61
|
+
expiresAt?: number | undefined;
|
|
62
|
+
id: string;
|
|
63
|
+
fileName: string | null;
|
|
64
|
+
url: string;
|
|
65
|
+
}[]>;
|
|
66
|
+
}
|
|
@@ -389,7 +389,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
389
389
|
body: unknown;
|
|
390
390
|
params: {};
|
|
391
391
|
query: {
|
|
392
|
-
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
392
|
+
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment" | undefined;
|
|
393
393
|
businessId?: string | undefined;
|
|
394
394
|
accessControl?: "private" | "restricted" | "public" | null | undefined;
|
|
395
395
|
status?: "uploading" | "active" | "archived" | "pending_deletion" | null | undefined;
|
|
@@ -416,7 +416,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
416
416
|
s3Key: string;
|
|
417
417
|
s3Region: string;
|
|
418
418
|
s3ETag: string | null;
|
|
419
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
419
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
420
420
|
businessId: string | null;
|
|
421
421
|
businessMetadata: string | null;
|
|
422
422
|
ownerId: string;
|
|
@@ -481,7 +481,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
481
481
|
s3Key: string;
|
|
482
482
|
s3Region: string;
|
|
483
483
|
s3ETag: string | null;
|
|
484
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
484
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
485
485
|
businessId: string | null;
|
|
486
486
|
businessMetadata: string | null;
|
|
487
487
|
ownerId: string;
|
|
@@ -134,11 +134,11 @@ export declare const BUSINESS_TYPE_CONFIG: {
|
|
|
134
134
|
readonly allowedMimeTypes: readonly ["application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
135
135
|
readonly description: "财务报表";
|
|
136
136
|
};
|
|
137
|
-
readonly
|
|
137
|
+
readonly ledger_account_import: {
|
|
138
138
|
readonly defaultAccessControl: "private";
|
|
139
139
|
readonly maxSize: number;
|
|
140
140
|
readonly allowedMimeTypes: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
141
|
-
readonly description: "
|
|
141
|
+
readonly description: "用户账户导入文件";
|
|
142
142
|
};
|
|
143
143
|
readonly avatar: {
|
|
144
144
|
readonly defaultAccessControl: "public";
|
|
@@ -223,11 +223,11 @@ export declare function getBusinessTypeConfig<T extends BusinessType>(businessTy
|
|
|
223
223
|
readonly allowedMimeTypes: readonly ["application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
224
224
|
readonly description: "财务报表";
|
|
225
225
|
};
|
|
226
|
-
readonly
|
|
226
|
+
readonly ledger_account_import: {
|
|
227
227
|
readonly defaultAccessControl: "private";
|
|
228
228
|
readonly maxSize: number;
|
|
229
229
|
readonly allowedMimeTypes: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
230
|
-
readonly description: "
|
|
230
|
+
readonly description: "用户账户导入文件";
|
|
231
231
|
};
|
|
232
232
|
readonly avatar: {
|
|
233
233
|
readonly defaultAccessControl: "public";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 文件业务类型枚举
|
|
3
3
|
* 按业务场景分类,便于权限控制和生命周期管理
|
|
4
4
|
*/
|
|
5
|
-
export declare const fileBusinessTypeEnum: import("drizzle-orm/pg-core").PgEnum<["kyc_document", "contract", "financial_report", "
|
|
5
|
+
export declare const fileBusinessTypeEnum: import("drizzle-orm/pg-core").PgEnum<["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"]>;
|
|
6
6
|
/**
|
|
7
7
|
* 文件访问控制枚举
|
|
8
8
|
*/
|
|
@@ -245,14 +245,14 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
245
245
|
tableName: "file_storage";
|
|
246
246
|
dataType: "string";
|
|
247
247
|
columnType: "PgEnumColumn";
|
|
248
|
-
data: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
248
|
+
data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
249
249
|
driverParam: string;
|
|
250
250
|
notNull: true;
|
|
251
251
|
hasDefault: false;
|
|
252
252
|
isPrimaryKey: false;
|
|
253
253
|
isAutoincrement: false;
|
|
254
254
|
hasRuntimeDefault: false;
|
|
255
|
-
enumValues: ["kyc_document", "contract", "financial_report", "
|
|
255
|
+
enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
|
|
256
256
|
baseColumn: never;
|
|
257
257
|
identity: undefined;
|
|
258
258
|
generated: undefined;
|
|
@@ -40,7 +40,7 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
|
|
|
40
40
|
s3Key: string;
|
|
41
41
|
s3Region: string;
|
|
42
42
|
s3ETag: string | null;
|
|
43
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
43
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
44
44
|
businessId: string | null;
|
|
45
45
|
businessMetadata: string | null;
|
|
46
46
|
ownerId: string;
|
|
@@ -96,7 +96,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
|
|
|
96
96
|
s3Key: string;
|
|
97
97
|
s3Region: string;
|
|
98
98
|
s3ETag: string | null;
|
|
99
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
99
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
100
100
|
businessId: string | null;
|
|
101
101
|
businessMetadata: string | null;
|
|
102
102
|
ownerId: string;
|
|
@@ -139,7 +139,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
|
|
|
139
139
|
s3Key: string;
|
|
140
140
|
s3Region: string;
|
|
141
141
|
s3ETag: string | null;
|
|
142
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
142
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
143
143
|
businessId: string | null;
|
|
144
144
|
businessMetadata: string | null;
|
|
145
145
|
ownerId: string;
|
|
@@ -166,7 +166,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
|
|
|
166
166
|
}
|
|
167
167
|
export declare abstract class AdminFileStorageService extends BaseFileStorageService {
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* 验证文件
|
|
170
170
|
*/
|
|
171
171
|
static verifyFile(input: VerifyFileInput, adminId: string): Promise<{
|
|
172
172
|
deletedAt: Date | null;
|
|
@@ -182,7 +182,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
|
|
|
182
182
|
s3Key: string;
|
|
183
183
|
s3Region: string;
|
|
184
184
|
s3ETag: string | null;
|
|
185
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
185
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
186
186
|
businessId: string | null;
|
|
187
187
|
businessMetadata: string | null;
|
|
188
188
|
ownerId: string;
|
|
@@ -201,7 +201,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
|
|
|
201
201
|
verificationNote: string | null;
|
|
202
202
|
} | undefined>;
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* 查询所有文件
|
|
205
205
|
*/
|
|
206
206
|
static listAllFiles(filters: ListFilesInput): Promise<{
|
|
207
207
|
data: {
|
|
@@ -218,7 +218,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
|
|
|
218
218
|
s3Key: string;
|
|
219
219
|
s3Region: string;
|
|
220
220
|
s3ETag: string | null;
|
|
221
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "
|
|
221
|
+
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
222
222
|
businessId: string | null;
|
|
223
223
|
businessMetadata: string | null;
|
|
224
224
|
ownerId: string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const generateUploadUrlSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
fileName: import("@sinclair/typebox").TString;
|
|
3
|
+
fileSize: import("@sinclair/typebox").TInteger;
|
|
4
|
+
businessType: import("@sinclair/typebox").TEnum<{
|
|
5
|
+
other: "other";
|
|
6
|
+
kyc_document: "kyc_document";
|
|
7
|
+
contract: "contract";
|
|
8
|
+
financial_report: "financial_report";
|
|
9
|
+
ledger_account_import: "ledger_account_import";
|
|
10
|
+
avatar: "avatar";
|
|
11
|
+
cover_image: "cover_image";
|
|
12
|
+
notification_attachment: "notification_attachment";
|
|
13
|
+
transaction_receipt: "transaction_receipt";
|
|
14
|
+
export_report: "export_report";
|
|
15
|
+
bank_verification: "bank_verification";
|
|
16
|
+
news_attachment: "news_attachment";
|
|
17
|
+
}>;
|
|
18
|
+
fileExtension: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
mimeType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
businessId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
+
businessMetadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
22
|
+
accessControl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
23
|
+
private: "private";
|
|
24
|
+
restricted: "restricted";
|
|
25
|
+
public: "public";
|
|
26
|
+
}>, import("@sinclair/typebox").TNull]>>;
|
|
27
|
+
expiresIn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
28
|
+
}>;
|
|
29
|
+
export type GenerateUploadUrlInput = typeof generateUploadUrlSchema.static;
|
|
30
|
+
export declare const confirmUploadSchema: import("@sinclair/typebox").TObject<{
|
|
31
|
+
fileId: import("@sinclair/typebox").TString;
|
|
32
|
+
fileHash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
|
+
}>;
|
|
34
|
+
export type ConfirmUploadInput = typeof confirmUploadSchema.static;
|
|
35
|
+
export declare const uploadUrlResponseSchema: import("@sinclair/typebox").TObject<{
|
|
36
|
+
fileId: import("@sinclair/typebox").TString;
|
|
37
|
+
uploadUrl: import("@sinclair/typebox").TString;
|
|
38
|
+
method: import("@sinclair/typebox").TLiteral<"PUT">;
|
|
39
|
+
headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
40
|
+
publicUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
41
|
+
mimeType: import("@sinclair/typebox").TString;
|
|
42
|
+
expiresIn: import("@sinclair/typebox").TInteger;
|
|
43
|
+
expiresAt: import("@sinclair/typebox").TInteger;
|
|
44
|
+
}>;
|
|
45
|
+
export type UploadUrlResponse = typeof uploadUrlResponseSchema.static;
|
|
46
|
+
export declare const generateAccessUrlSchema: import("@sinclair/typebox").TObject<{
|
|
47
|
+
fileId: import("@sinclair/typebox").TString;
|
|
48
|
+
expiresIn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
49
|
+
}>;
|
|
50
|
+
export type GenerateAccessUrlInput = typeof generateAccessUrlSchema.static;
|
|
51
|
+
export declare const generateBatchAccessUrlsSchema: import("@sinclair/typebox").TObject<{
|
|
52
|
+
fileIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
53
|
+
expiresIn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
54
|
+
}>;
|
|
55
|
+
export type GenerateBatchAccessUrlsInput = typeof generateBatchAccessUrlsSchema.static;
|
|
56
|
+
export declare const batchFileAccessUrlItemSchema: import("@sinclair/typebox").TObject<{
|
|
57
|
+
id: import("@sinclair/typebox").TString;
|
|
58
|
+
url: import("@sinclair/typebox").TString;
|
|
59
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
60
|
+
expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
61
|
+
}>;
|
|
62
|
+
export type BatchFileAccessUrlsResponse = Array<typeof batchFileAccessUrlItemSchema.static>;
|
|
63
|
+
export declare const fileAccessUrlResponseSchema: import("@sinclair/typebox").TObject<{
|
|
64
|
+
id: import("@sinclair/typebox").TString;
|
|
65
|
+
url: import("@sinclair/typebox").TString;
|
|
66
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
67
|
+
expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
68
|
+
}>;
|