@r2wa-org/eden 0.0.72 → 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 +2256 -213
- package/dist/admin-user/admin/dto.schemas.d.ts +3 -3
- package/dist/admin-user/admin/errors/index.d.ts +4 -0
- package/dist/admin-user/admin/errors/locales/zh.d.ts +1 -0
- package/dist/app-version/admin/dto.schemas.d.ts +99 -0
- package/dist/{src/admin → app-version}/admin/router.d.ts +182 -83
- package/dist/app-version/admin/service.d.ts +105 -0
- package/dist/{src/account-type → app-version}/db.schemas.d.ts +142 -74
- package/dist/{src/account-type → app-version}/schema.d.ts +76 -41
- package/dist/asset/admin/dto.schemas.d.ts +3 -7
- package/dist/asset/admin/router.d.ts +2 -8
- package/dist/asset/admin/service.d.ts +1 -6
- package/dist/asset/errors/index.d.ts +2 -0
- package/dist/asset/errors/locales/zh.d.ts +1 -0
- package/dist/asset/user/dto.schemas.d.ts +0 -2
- package/dist/asset/user/router.d.ts +0 -3
- package/dist/asset/user/service.d.ts +0 -3
- package/dist/asset-convert-product/admin/service.d.ts +1 -0
- package/dist/asset-convert-product/errors/index.d.ts +1 -0
- package/dist/asset-convert-product/errors/locales/zh.d.ts +1 -0
- package/dist/asset-convert-product/user/dto.schemas.d.ts +119 -84
- package/dist/asset-convert-product/user/router.d.ts +21 -0
- package/dist/asset-convert-product/user/service.d.ts +39 -0
- package/dist/asset-type/admin/dto.schemas.d.ts +0 -53
- package/dist/asset-type/admin/router.d.ts +0 -6
- package/dist/asset-type/admin/service.d.ts +0 -4
- package/dist/asset-type/db.schemas.d.ts +0 -34
- package/dist/asset-type/schema.d.ts +0 -17
- package/dist/asset-type/seed.d.ts +0 -3
- package/dist/asset-type/user/dto.schemas.d.ts +0 -2
- package/dist/asset-type/user/router.d.ts +0 -1
- package/dist/asset-type/user/service.d.ts +0 -1
- package/dist/auth/db.schemas.d.ts +8 -8
- package/dist/auth/schema.d.ts +4 -4
- package/dist/bank-account/admin/dto.schemas.d.ts +47 -2
- package/dist/bank-account/admin/router.d.ts +32 -0
- package/dist/bank-account/admin/service.d.ts +88 -15
- package/dist/check-in/admin/dto.schemas.d.ts +1 -1
- package/dist/check-in/user/dto.schemas.d.ts +1 -1
- package/dist/db/schemas.d.ts +1 -0
- package/dist/deposit/admin/dto.schemas.d.ts +2 -2
- package/dist/deposit/user/dto.schemas.d.ts +2 -2
- package/dist/env/server.d.ts +1 -0
- package/dist/http-access-log.d.ts +30 -0
- package/dist/index.d.ts +2591 -358
- package/dist/ledger/admin/dto.schemas.d.ts +353 -688
- package/dist/ledger/admin/router.d.ts +81 -0
- package/dist/ledger/admin/service.d.ts +2 -135
- package/dist/ledger/schema.d.ts +1 -0
- package/dist/ledger-account/admin/dto.schemas.d.ts +132 -516
- package/dist/ledger-account/admin/router.d.ts +69 -0
- package/dist/ledger-account/admin/service.d.ts +54 -0
- package/dist/market-data/admin/dto.schemas.d.ts +597 -64
- package/dist/market-data/admin/router.d.ts +30 -4
- package/dist/market-data/admin/service.d.ts +26 -0
- package/dist/market-data/errors/index.d.ts +1 -0
- package/dist/market-data/errors/locales/zh.d.ts +1 -0
- package/dist/market-data/user/dto.schemas.d.ts +81 -0
- package/dist/market-data/user/router.d.ts +172 -0
- package/dist/market-data/user/service.d.ts +12 -1
- package/dist/market-pricing/admin/dto.schemas.d.ts +602 -64
- package/dist/market-pricing/admin/router.d.ts +173 -17
- package/dist/market-pricing/admin/service.d.ts +172 -15
- package/dist/news/admin/service.d.ts +1 -0
- package/dist/news-category/admin/dto.schemas.d.ts +4 -4
- package/dist/news-category/admin/router.d.ts +2 -2
- package/dist/news-category/admin/service.d.ts +1 -0
- package/dist/news-category/errors/index.d.ts +2 -0
- package/dist/news-category/errors/locales/zh.d.ts +1 -0
- package/dist/operations-overview/admin/dto.schemas.d.ts +41 -0
- package/dist/{src/shipping-address/admin.router.d.ts → operations-overview/admin/router.d.ts} +47 -37
- package/dist/operations-overview/admin/service.d.ts +4 -0
- package/dist/receipt-method/admin/dto.schemas.d.ts +48 -378
- package/dist/receipt-method/admin/router.d.ts +16 -0
- package/dist/receipt-method/admin/service.d.ts +36 -0
- package/dist/referral/admin/dto.schemas.d.ts +6 -2
- package/dist/referral/admin/router.d.ts +1 -6
- package/dist/referral/admin/service.d.ts +1 -1
- package/dist/referral/errors/index.d.ts +1 -0
- package/dist/referral/errors/locales/zh.d.ts +1 -0
- package/dist/referral/user/dto.schemas.d.ts +2 -2
- package/dist/src/admin/index.d.ts +2256 -213
- package/dist/src/admin-user/admin/dto.schemas.d.ts +3 -3
- package/dist/src/admin-user/admin/errors/index.d.ts +4 -0
- package/dist/src/admin-user/admin/errors/locales/zh.d.ts +1 -0
- package/dist/src/app-version/admin/dto.schemas.d.ts +99 -0
- package/dist/src/{referral-depth-config/admin.router.d.ts → app-version/admin/router.d.ts} +211 -101
- package/dist/src/app-version/admin/service.d.ts +105 -0
- package/dist/src/{account → app-version}/db.schemas.d.ts +186 -84
- package/dist/src/{account → app-version}/schema.d.ts +98 -52
- package/dist/src/asset/admin/dto.schemas.d.ts +3 -7
- 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 +0 -2
- 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 +30 -0
- 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 +2591 -358
- 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/operations-overview/admin/dto.schemas.d.ts +41 -0
- package/dist/src/{transfer/admin.router.d.ts → operations-overview/admin/router.d.ts} +49 -41
- 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 +1 -1
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +1080 -1561
- package/dist/src/welfare-cycle/admin/router.d.ts +748 -2
- package/dist/src/welfare-cycle/admin/service.d.ts +828 -40
- 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/user/dto.schemas.d.ts +1 -0
- package/dist/src/welfare-cycle/user/router.d.ts +1 -0
- package/dist/src/welfare-cycle/user/service.d.ts +1 -0
- 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 +1678 -253
- package/dist/team/admin/router.d.ts +82 -1
- package/dist/team/admin/service.d.ts +2 -2
- package/dist/team/errors/index.d.ts +1 -0
- package/dist/team/errors/locales/zh.d.ts +1 -0
- package/dist/team/user/dto.schemas.d.ts +5 -5
- package/dist/trade-market/admin/dto.schemas.d.ts +4079 -77
- package/dist/trade-market/admin/router.d.ts +486 -0
- package/dist/trade-market/admin/service.d.ts +488 -0
- package/dist/trade-market/errors/index.d.ts +1 -0
- package/dist/trade-market/errors/locales/zh.d.ts +1 -0
- package/dist/trade-market/internal/service.d.ts +325 -0
- package/dist/trade-market/user/service.d.ts +324 -0
- package/dist/user/admin/dto.schemas.d.ts +1 -1
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +1080 -1561
- package/dist/welfare-cycle/admin/router.d.ts +748 -2
- package/dist/welfare-cycle/admin/service.d.ts +828 -40
- package/dist/welfare-cycle/errors/index.d.ts +2 -0
- package/dist/welfare-cycle/errors/locales/zh.d.ts +2 -0
- package/dist/welfare-cycle/user/dto.schemas.d.ts +1 -0
- package/dist/welfare-cycle/user/router.d.ts +1 -0
- package/dist/welfare-cycle/user/service.d.ts +1 -0
- package/dist/withdraw/errors/index.d.ts +2 -0
- package/dist/withdraw/errors/locales/zh.d.ts +1 -0
- package/dist/withdraw/user/dto.schemas.d.ts +2 -2
- package/dist/withdraw/user/router.d.ts +2 -2
- package/dist/withdraw/user/service.d.ts +1 -0
- package/package.json +54 -6
- package/dist/src/account/admin.router.d.ts +0 -548
- package/dist/src/account/dto.schemas.d.ts +0 -414
- 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/admin.router.d.ts +0 -495
- 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/router.d.ts +0 -460
- package/dist/src/account-type/seed.d.ts +0 -1
- package/dist/src/account-type/service.d.ts +0 -52
- package/dist/src/admin/admin/dto.schemas.d.ts +0 -880
- package/dist/src/admin/admin/errors/index.d.ts +0 -15
- package/dist/src/admin/admin/errors/locales/zh.d.ts +0 -14
- package/dist/src/admin/admin/service.d.ts +0 -60
- package/dist/src/admin/user/dto.schemas.d.ts +0 -600
- package/dist/src/admin/user/router.d.ts +0 -82
- package/dist/src/admin/user/service.d.ts +0 -31
- package/dist/src/asset/admin.router.d.ts +0 -661
- package/dist/src/asset/dto.schemas.d.ts +0 -139
- package/dist/src/asset/router.d.ts +0 -480
- package/dist/src/asset/service.d.ts +0 -160
- package/dist/src/asset-type/admin.router.d.ts +0 -584
- package/dist/src/asset-type/dto.schemas.d.ts +0 -178
- package/dist/src/asset-type/router.d.ts +0 -472
- 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/admin.router.d.ts +0 -880
- package/dist/src/bank-account/dto.schemas.d.ts +0 -572
- package/dist/src/bank-account/router.d.ts +0 -680
- package/dist/src/bank-account/service.d.ts +0 -359
- package/dist/src/check-in/admin.router.d.ts +0 -533
- package/dist/src/check-in/dto.schemas.d.ts +0 -544
- package/dist/src/check-in/router.d.ts +0 -619
- package/dist/src/check-in/service.d.ts +0 -99
- package/dist/src/deposit/admin.router.d.ts +0 -642
- package/dist/src/deposit/dto.schemas.d.ts +0 -715
- package/dist/src/deposit/router.d.ts +0 -632
- package/dist/src/deposit/service.d.ts +0 -298
- package/dist/src/eden/index.d.ts +0 -57
- package/dist/src/file-storage/admin.router.d.ts +0 -601
- package/dist/src/file-storage/dto.schemas.d.ts +0 -1238
- package/dist/src/file-storage/router.d.ts +0 -588
- package/dist/src/file-storage/service.d.ts +0 -264
- package/dist/src/file-storage/share.router.d.ts +0 -564
- package/dist/src/ledger/admin.router.d.ts +0 -527
- package/dist/src/ledger/dto.schemas.d.ts +0 -712
- package/dist/src/ledger/router.d.ts +0 -487
- package/dist/src/ledger/service.d.ts +0 -462
- package/dist/src/ledger-account/admin.router.d.ts +0 -591
- package/dist/src/ledger-account/dto.schemas.d.ts +0 -559
- package/dist/src/ledger-account/router.d.ts +0 -426
- package/dist/src/ledger-account/seed.d.ts +0 -1
- package/dist/src/ledger-account/service.d.ts +0 -200
- package/dist/src/ledger-account-import/admin.router.d.ts +0 -694
- package/dist/src/ledger-account-import/dto.schemas.d.ts +0 -1255
- package/dist/src/ledger-account-import/service.d.ts +0 -105
- package/dist/src/ledger-account-transfer/dto.schemas.d.ts +0 -22
- package/dist/src/ledger-account-transfer/router.d.ts +0 -469
- package/dist/src/ledger-account-transfer/service.d.ts +0 -26
- package/dist/src/ledger-account-type/admin.router.d.ts +0 -711
- package/dist/src/ledger-account-type/dto.schemas.d.ts +0 -509
- package/dist/src/ledger-account-type/router.d.ts +0 -486
- package/dist/src/ledger-account-type/service.d.ts +0 -147
- package/dist/src/news/admin.router.d.ts +0 -824
- package/dist/src/news/dto.schemas.d.ts +0 -233
- package/dist/src/news/router.d.ts +0 -620
- package/dist/src/news/service.d.ts +0 -495
- package/dist/src/news-category/admin.router.d.ts +0 -207
- package/dist/src/news-category/dto.schemas.d.ts +0 -57
- package/dist/src/news-category/router.d.ts +0 -460
- package/dist/src/news-category/service.d.ts +0 -105
- package/dist/src/notification/admin.router.d.ts +0 -582
- package/dist/src/notification/dto.schemas.d.ts +0 -457
- package/dist/src/notification/router.d.ts +0 -626
- package/dist/src/notification/service.d.ts +0 -195
- package/dist/src/receipt-method/admin.router.d.ts +0 -579
- package/dist/src/receipt-method/dto.schemas.d.ts +0 -418
- package/dist/src/receipt-method/router.d.ts +0 -602
- package/dist/src/receipt-method/service.d.ts +0 -152
- package/dist/src/referral/admin.router.d.ts +0 -562
- package/dist/src/referral/dto.schemas.d.ts +0 -665
- package/dist/src/referral/router.d.ts +0 -579
- package/dist/src/referral/service.d.ts +0 -42
- package/dist/src/referral-depth-config/dto.schemas.d.ts +0 -208
- package/dist/src/referral-depth-config/index.d.ts +0 -5
- package/dist/src/referral-depth-config/service.d.ts +0 -56
- package/dist/src/shipping-address/dto.schemas.d.ts +0 -303
- package/dist/src/shipping-address/router.d.ts +0 -621
- package/dist/src/shipping-address/service.d.ts +0 -109
- package/dist/src/subscription/admin.router.d.ts +0 -818
- package/dist/src/subscription/cron.d.ts +0 -53
- package/dist/src/subscription/db.schemas.d.ts +0 -896
- 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/schema.d.ts +0 -475
- package/dist/src/subscription/service.d.ts +0 -306
- package/dist/src/team/admin.router.d.ts +0 -569
- package/dist/src/team/dto.schemas.d.ts +0 -2110
- package/dist/src/team/router.d.ts +0 -737
- package/dist/src/team/service.d.ts +0 -40
- package/dist/src/transfer/dto.schemas.d.ts +0 -628
- package/dist/src/transfer/router.d.ts +0 -514
- package/dist/src/transfer/service.d.ts +0 -133
- package/dist/src/user/admin.router.d.ts +0 -827
- package/dist/src/user/dto.schemas.d.ts +0 -1446
- package/dist/src/user/router.d.ts +0 -560
- package/dist/src/user/service.d.ts +0 -294
- package/dist/src/user-kyc/admin.router.d.ts +0 -669
- package/dist/src/user-kyc/dto.schemas.d.ts +0 -939
- package/dist/src/user-kyc/router.d.ts +0 -602
- package/dist/src/user-kyc/service.d.ts +0 -170
- package/dist/src/user-security/admin.router.d.ts +0 -493
- package/dist/src/user-security/dto.schemas.d.ts +0 -36
- package/dist/src/user-security/router.d.ts +0 -547
- package/dist/src/user-security/service.d.ts +0 -51
- package/dist/src/wallet/admin.router.d.ts +0 -519
- package/dist/src/wallet/dto.schemas.d.ts +0 -317
- package/dist/src/wallet/ensure.d.ts +0 -11
- package/dist/src/wallet/router.d.ts +0 -484
- package/dist/src/wallet/service.d.ts +0 -100
- package/dist/src/wallet-import/admin.router.d.ts +0 -694
- package/dist/src/wallet-import/db.schemas.d.ts +0 -1206
- package/dist/src/wallet-import/dto.schemas.d.ts +0 -1255
- 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/schema.d.ts +0 -636
- 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/index.d.ts +0 -4
- 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/admin.router.d.ts +0 -611
- package/dist/src/wallet-type/constants.d.ts +0 -4
- package/dist/src/wallet-type/dto.schemas.d.ts +0 -79
- package/dist/src/wallet-type/router.d.ts +0 -481
- package/dist/src/wallet-type/service.d.ts +0 -243
- package/dist/src/withdraw/admin.router.d.ts +0 -662
- package/dist/src/withdraw/dto.schemas.d.ts +0 -919
- package/dist/src/withdraw/router.d.ts +0 -529
- package/dist/src/withdraw/service.d.ts +0 -153
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import Decimal from "decimal.js";
|
|
2
|
-
import type { DepositAdminListQueryType, DepositApproveInputType, DepositListQueryType, DepositRejectInputType, LedgerAccountDepositCreateInputType } from "./dto.schemas";
|
|
3
|
-
/**
|
|
4
|
-
* 充值基础服务(抽象类)
|
|
5
|
-
*/
|
|
6
|
-
declare abstract class BaseDepositService {
|
|
7
|
-
protected static validateUserId(userId: string): void;
|
|
8
|
-
protected static validateOrderId(orderId: string): void;
|
|
9
|
-
protected static validateAmount(amount: string): Decimal;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 管理侧服务
|
|
13
|
-
* 管理员可以审核充值、查看所有充值订单
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class AdminDepositService extends BaseDepositService {
|
|
16
|
-
static approveDeposit(orderId: string, reviewerId: string, input: DepositApproveInputType): Promise<{
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
id: string;
|
|
20
|
-
orderNo: string;
|
|
21
|
-
idempotencyKey: string;
|
|
22
|
-
userId: string;
|
|
23
|
-
amount: string;
|
|
24
|
-
assetId: string | null;
|
|
25
|
-
targetAccountId: string | null;
|
|
26
|
-
actualAmount: string | null;
|
|
27
|
-
fee: string | null;
|
|
28
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
29
|
-
paymentChannel: string | null;
|
|
30
|
-
paymentOrderNo: string | null;
|
|
31
|
-
paymentProof: string | null;
|
|
32
|
-
reviewedBy: string | null;
|
|
33
|
-
reviewedAt: Date | null;
|
|
34
|
-
reviewNote: string | null;
|
|
35
|
-
completedAt: Date | null;
|
|
36
|
-
}>;
|
|
37
|
-
/**
|
|
38
|
-
* 拒绝充值申请
|
|
39
|
-
*/
|
|
40
|
-
static rejectDeposit(orderId: string, reviewerId: string, input: DepositRejectInputType): Promise<{
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
updatedAt: Date;
|
|
43
|
-
id: string;
|
|
44
|
-
orderNo: string;
|
|
45
|
-
idempotencyKey: string;
|
|
46
|
-
userId: string;
|
|
47
|
-
amount: string;
|
|
48
|
-
assetId: string | null;
|
|
49
|
-
targetAccountId: string | null;
|
|
50
|
-
actualAmount: string | null;
|
|
51
|
-
fee: string | null;
|
|
52
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
53
|
-
paymentChannel: string | null;
|
|
54
|
-
paymentOrderNo: string | null;
|
|
55
|
-
paymentProof: string | null;
|
|
56
|
-
reviewedBy: string | null;
|
|
57
|
-
reviewedAt: Date | null;
|
|
58
|
-
reviewNote: string | null;
|
|
59
|
-
completedAt: Date | null;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* 充值订单列表
|
|
63
|
-
*/
|
|
64
|
-
static listDepositOrders(options?: DepositAdminListQueryType): Promise<{
|
|
65
|
-
orders: {
|
|
66
|
-
id: string;
|
|
67
|
-
createdAt: Date;
|
|
68
|
-
updatedAt: Date;
|
|
69
|
-
userId: string;
|
|
70
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
71
|
-
reviewedAt: Date | null;
|
|
72
|
-
reviewedBy: string | null;
|
|
73
|
-
assetId: string | null;
|
|
74
|
-
amount: string;
|
|
75
|
-
idempotencyKey: string;
|
|
76
|
-
orderNo: string;
|
|
77
|
-
targetAccountId: string | null;
|
|
78
|
-
actualAmount: string | null;
|
|
79
|
-
fee: string | null;
|
|
80
|
-
paymentChannel: string | null;
|
|
81
|
-
paymentOrderNo: string | null;
|
|
82
|
-
paymentProof: string | null;
|
|
83
|
-
reviewNote: string | null;
|
|
84
|
-
completedAt: Date | null;
|
|
85
|
-
user: {
|
|
86
|
-
email: string;
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
emailVerified: boolean;
|
|
90
|
-
image: string | null;
|
|
91
|
-
createdAt: Date;
|
|
92
|
-
updatedAt: Date;
|
|
93
|
-
twoFactorEnabled: boolean | null;
|
|
94
|
-
username: string | null;
|
|
95
|
-
displayUsername: string | null;
|
|
96
|
-
isAnonymous: boolean | null;
|
|
97
|
-
phoneNumber: string | null;
|
|
98
|
-
phoneNumberVerified: boolean | null;
|
|
99
|
-
role: string | null;
|
|
100
|
-
banned: boolean | null;
|
|
101
|
-
banReason: string | null;
|
|
102
|
-
banExpires: Date | null;
|
|
103
|
-
};
|
|
104
|
-
}[];
|
|
105
|
-
total: number;
|
|
106
|
-
}>;
|
|
107
|
-
/**
|
|
108
|
-
* 获取单个充值订单(管理员无userId限制)
|
|
109
|
-
*/
|
|
110
|
-
static getDepositOrder(orderId: string): Promise<{
|
|
111
|
-
id: string;
|
|
112
|
-
createdAt: Date;
|
|
113
|
-
updatedAt: Date;
|
|
114
|
-
userId: string;
|
|
115
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
116
|
-
reviewedAt: Date | null;
|
|
117
|
-
reviewedBy: string | null;
|
|
118
|
-
assetId: string | null;
|
|
119
|
-
amount: string;
|
|
120
|
-
idempotencyKey: string;
|
|
121
|
-
orderNo: string;
|
|
122
|
-
targetAccountId: string | null;
|
|
123
|
-
actualAmount: string | null;
|
|
124
|
-
fee: string | null;
|
|
125
|
-
paymentChannel: string | null;
|
|
126
|
-
paymentOrderNo: string | null;
|
|
127
|
-
paymentProof: string | null;
|
|
128
|
-
reviewNote: string | null;
|
|
129
|
-
completedAt: Date | null;
|
|
130
|
-
user: {
|
|
131
|
-
email: string;
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
emailVerified: boolean;
|
|
135
|
-
image: string | null;
|
|
136
|
-
createdAt: Date;
|
|
137
|
-
updatedAt: Date;
|
|
138
|
-
twoFactorEnabled: boolean | null;
|
|
139
|
-
username: string | null;
|
|
140
|
-
displayUsername: string | null;
|
|
141
|
-
isAnonymous: boolean | null;
|
|
142
|
-
phoneNumber: string | null;
|
|
143
|
-
phoneNumberVerified: boolean | null;
|
|
144
|
-
role: string | null;
|
|
145
|
-
banned: boolean | null;
|
|
146
|
-
banReason: string | null;
|
|
147
|
-
banExpires: Date | null;
|
|
148
|
-
};
|
|
149
|
-
} | undefined>;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* 用户侧服务
|
|
153
|
-
* 用户端可以创建充值订单、查看自己的充值记录、取消订单
|
|
154
|
-
*/
|
|
155
|
-
export declare abstract class UserDepositService extends BaseDepositService {
|
|
156
|
-
static createLedgerAccountDeposit(userId: string, input: LedgerAccountDepositCreateInputType): Promise<{
|
|
157
|
-
id: string;
|
|
158
|
-
createdAt: Date;
|
|
159
|
-
updatedAt: Date;
|
|
160
|
-
userId: string;
|
|
161
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
162
|
-
reviewedAt: Date | null;
|
|
163
|
-
reviewedBy: string | null;
|
|
164
|
-
assetId: string | null;
|
|
165
|
-
amount: string;
|
|
166
|
-
idempotencyKey: string;
|
|
167
|
-
orderNo: string;
|
|
168
|
-
targetAccountId: string | null;
|
|
169
|
-
actualAmount: string | null;
|
|
170
|
-
fee: string | null;
|
|
171
|
-
paymentChannel: string | null;
|
|
172
|
-
paymentOrderNo: string | null;
|
|
173
|
-
paymentProof: string | null;
|
|
174
|
-
reviewNote: string | null;
|
|
175
|
-
completedAt: Date | null;
|
|
176
|
-
}>;
|
|
177
|
-
/**
|
|
178
|
-
* 取消充值订单(用户操作,仅限pending状态)
|
|
179
|
-
*/
|
|
180
|
-
static cancelDeposit(orderId: string, userId: string): Promise<{
|
|
181
|
-
createdAt: Date;
|
|
182
|
-
updatedAt: Date;
|
|
183
|
-
id: string;
|
|
184
|
-
orderNo: string;
|
|
185
|
-
idempotencyKey: string;
|
|
186
|
-
userId: string;
|
|
187
|
-
amount: string;
|
|
188
|
-
assetId: string | null;
|
|
189
|
-
targetAccountId: string | null;
|
|
190
|
-
actualAmount: string | null;
|
|
191
|
-
fee: string | null;
|
|
192
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
193
|
-
paymentChannel: string | null;
|
|
194
|
-
paymentOrderNo: string | null;
|
|
195
|
-
paymentProof: string | null;
|
|
196
|
-
reviewedBy: string | null;
|
|
197
|
-
reviewedAt: Date | null;
|
|
198
|
-
reviewNote: string | null;
|
|
199
|
-
completedAt: Date | null;
|
|
200
|
-
}>;
|
|
201
|
-
/**
|
|
202
|
-
* 获取用户充值订单列表
|
|
203
|
-
*/
|
|
204
|
-
static getUserDepositOrders(userId: string, options?: DepositListQueryType): Promise<{
|
|
205
|
-
orders: {
|
|
206
|
-
id: string;
|
|
207
|
-
createdAt: Date;
|
|
208
|
-
updatedAt: Date;
|
|
209
|
-
userId: string;
|
|
210
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
211
|
-
reviewedAt: Date | null;
|
|
212
|
-
reviewedBy: string | null;
|
|
213
|
-
assetId: string | null;
|
|
214
|
-
amount: string;
|
|
215
|
-
idempotencyKey: string;
|
|
216
|
-
orderNo: string;
|
|
217
|
-
targetAccountId: string | null;
|
|
218
|
-
actualAmount: string | null;
|
|
219
|
-
fee: string | null;
|
|
220
|
-
paymentChannel: string | null;
|
|
221
|
-
paymentOrderNo: string | null;
|
|
222
|
-
paymentProof: string | null;
|
|
223
|
-
reviewNote: string | null;
|
|
224
|
-
completedAt: Date | null;
|
|
225
|
-
user: {
|
|
226
|
-
email: string;
|
|
227
|
-
id: string;
|
|
228
|
-
name: string;
|
|
229
|
-
emailVerified: boolean;
|
|
230
|
-
image: string | null;
|
|
231
|
-
createdAt: Date;
|
|
232
|
-
updatedAt: Date;
|
|
233
|
-
twoFactorEnabled: boolean | null;
|
|
234
|
-
username: string | null;
|
|
235
|
-
displayUsername: string | null;
|
|
236
|
-
isAnonymous: boolean | null;
|
|
237
|
-
phoneNumber: string | null;
|
|
238
|
-
phoneNumberVerified: boolean | null;
|
|
239
|
-
role: string | null;
|
|
240
|
-
banned: boolean | null;
|
|
241
|
-
banReason: string | null;
|
|
242
|
-
banExpires: Date | null;
|
|
243
|
-
};
|
|
244
|
-
}[];
|
|
245
|
-
total: number;
|
|
246
|
-
}>;
|
|
247
|
-
/**
|
|
248
|
-
* 获取单个充值订单(用户只能查看自己的)
|
|
249
|
-
*/
|
|
250
|
-
static getDepositOrder(orderId: string, userId: string): Promise<{
|
|
251
|
-
id: string;
|
|
252
|
-
createdAt: Date;
|
|
253
|
-
updatedAt: Date;
|
|
254
|
-
userId: string;
|
|
255
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
256
|
-
reviewedAt: Date | null;
|
|
257
|
-
reviewedBy: string | null;
|
|
258
|
-
assetId: string | null;
|
|
259
|
-
amount: string;
|
|
260
|
-
idempotencyKey: string;
|
|
261
|
-
orderNo: string;
|
|
262
|
-
targetAccountId: string | null;
|
|
263
|
-
actualAmount: string | null;
|
|
264
|
-
fee: string | null;
|
|
265
|
-
paymentChannel: string | null;
|
|
266
|
-
paymentOrderNo: string | null;
|
|
267
|
-
paymentProof: string | null;
|
|
268
|
-
reviewNote: string | null;
|
|
269
|
-
completedAt: Date | null;
|
|
270
|
-
user: {
|
|
271
|
-
email: string;
|
|
272
|
-
id: string;
|
|
273
|
-
name: string;
|
|
274
|
-
emailVerified: boolean;
|
|
275
|
-
image: string | null;
|
|
276
|
-
createdAt: Date;
|
|
277
|
-
updatedAt: Date;
|
|
278
|
-
twoFactorEnabled: boolean | null;
|
|
279
|
-
username: string | null;
|
|
280
|
-
displayUsername: string | null;
|
|
281
|
-
isAnonymous: boolean | null;
|
|
282
|
-
phoneNumber: string | null;
|
|
283
|
-
phoneNumberVerified: boolean | null;
|
|
284
|
-
role: string | null;
|
|
285
|
-
banned: boolean | null;
|
|
286
|
-
banReason: string | null;
|
|
287
|
-
banExpires: Date | null;
|
|
288
|
-
};
|
|
289
|
-
} | undefined>;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* 内部服务
|
|
293
|
-
* 供其他模块内部调用的业务逻辑,无权限控制,只提供纯业务方法
|
|
294
|
-
* 跨模块权限在调用点由各模块自行处理
|
|
295
|
-
*/
|
|
296
|
-
export declare abstract class InternalDepositService extends BaseDepositService {
|
|
297
|
-
}
|
|
298
|
-
export {};
|
package/dist/src/eden/index.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import Elysia from "elysia";
|
|
2
|
-
export declare const edenRouter: Elysia<"", {
|
|
3
|
-
decorator: {};
|
|
4
|
-
store: {};
|
|
5
|
-
derive: {};
|
|
6
|
-
resolve: {};
|
|
7
|
-
}, {
|
|
8
|
-
typebox: {};
|
|
9
|
-
error: {};
|
|
10
|
-
}, {
|
|
11
|
-
schema: {};
|
|
12
|
-
standaloneSchema: {};
|
|
13
|
-
macro: {};
|
|
14
|
-
macroFn: {};
|
|
15
|
-
parser: {};
|
|
16
|
-
response: {};
|
|
17
|
-
}, {
|
|
18
|
-
[x: `${string}-eden-${string}.tgz`]: {
|
|
19
|
-
get: {
|
|
20
|
-
body: unknown;
|
|
21
|
-
params: {};
|
|
22
|
-
query: unknown;
|
|
23
|
-
headers: unknown;
|
|
24
|
-
response: {
|
|
25
|
-
200: Response;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
} & {
|
|
30
|
-
eden: {
|
|
31
|
-
latest: {
|
|
32
|
-
get: {
|
|
33
|
-
body: unknown;
|
|
34
|
-
params: {};
|
|
35
|
-
query: unknown;
|
|
36
|
-
headers: unknown;
|
|
37
|
-
response: {
|
|
38
|
-
200: {
|
|
39
|
-
version: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
derive: {};
|
|
47
|
-
resolve: {};
|
|
48
|
-
schema: {};
|
|
49
|
-
standaloneSchema: {};
|
|
50
|
-
response: {};
|
|
51
|
-
}, {
|
|
52
|
-
derive: {};
|
|
53
|
-
resolve: {};
|
|
54
|
-
schema: {};
|
|
55
|
-
standaloneSchema: {};
|
|
56
|
-
response: {};
|
|
57
|
-
}>;
|