@r2wa-org/eden 0.0.77 → 0.0.78
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 +5 -5
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin-user/admin/errors/index.d.ts +2 -2
- package/dist/admin-user/admin/errors/locales/zh.d.ts +1 -1
- package/dist/admin-user/admin/router.d.ts +1 -1
- package/dist/admin-user/admin/service.d.ts +1 -1
- package/dist/app-version/admin/dto.schemas.d.ts +1 -1
- package/dist/app-version/admin/router.d.ts +1 -1
- package/dist/app-version/admin/service.d.ts +1 -1
- package/dist/asset/admin/router.d.ts +1 -1
- package/dist/asset/admin/service.d.ts +2 -2
- package/dist/asset/errors/index.d.ts +2 -2
- package/dist/asset/errors/locales/zh.d.ts +1 -1
- package/dist/asset/index.d.ts +11 -11
- package/dist/asset/internal/service.d.ts +3 -3
- package/dist/asset/permissions.d.ts +1 -1
- package/dist/asset/user/router.d.ts +1 -1
- package/dist/asset/user/service.d.ts +2 -2
- package/dist/asset-convert-product/admin/router.d.ts +1 -1
- package/dist/asset-convert-product/admin/service.d.ts +2 -2
- package/dist/asset-convert-product/errors/index.d.ts +2 -2
- package/dist/asset-convert-product/errors/locales/zh.d.ts +1 -1
- package/dist/asset-convert-product/index.d.ts +8 -8
- package/dist/asset-convert-product/permissions.d.ts +2 -2
- package/dist/asset-convert-product/user/router.d.ts +1 -1
- package/dist/asset-convert-product/user/service.d.ts +4 -4
- package/dist/asset-price/admin/router.d.ts +1 -1
- package/dist/asset-price/admin/service.d.ts +1 -1
- package/dist/asset-price/errors/index.d.ts +2 -2
- package/dist/asset-price/errors/locales/zh.d.ts +1 -1
- package/dist/asset-price/index.d.ts +12 -12
- package/dist/asset-price/permissions.d.ts +2 -2
- package/dist/asset-price/user/router.d.ts +1 -1
- package/dist/asset-price/user/service.d.ts +1 -1
- package/dist/asset-type/admin/router.d.ts +1 -1
- package/dist/asset-type/admin/service.d.ts +2 -2
- package/dist/asset-type/errors/index.d.ts +2 -2
- package/dist/asset-type/errors/locales/zh.d.ts +1 -1
- package/dist/asset-type/index.d.ts +11 -11
- package/dist/asset-type/permissions.d.ts +1 -1
- package/dist/asset-type/seed.d.ts +1 -1
- package/dist/asset-type/user/router.d.ts +1 -1
- package/dist/asset-type/user/service.d.ts +2 -2
- package/dist/auth/better-auth.d.ts +253 -253
- package/dist/auth/better-hooks.d.ts +1 -1
- package/dist/auth/permissions.d.ts +210 -210
- package/dist/auth/roles.d.ts +630 -630
- package/dist/auth/router.d.ts +1 -1
- package/dist/bank-account/admin/router.d.ts +1 -1
- package/dist/bank-account/admin/service.d.ts +5 -5
- package/dist/bank-account/errors/index.d.ts +2 -2
- package/dist/bank-account/errors/locales/zh.d.ts +1 -1
- package/dist/bank-account/index.d.ts +8 -8
- package/dist/bank-account/internal/service.d.ts +1 -1
- package/dist/bank-account/permissions.d.ts +3 -3
- package/dist/bank-account/user/router.d.ts +1 -1
- package/dist/bank-account/user/service.d.ts +3 -3
- package/dist/check-in/admin/router.d.ts +1 -1
- package/dist/check-in/admin/service.d.ts +2 -2
- package/dist/check-in/errors/index.d.ts +2 -2
- package/dist/check-in/errors/locales/zh.d.ts +1 -1
- package/dist/check-in/index.d.ts +7 -7
- package/dist/check-in/internal/service.d.ts +5 -5
- package/dist/check-in/permissions.d.ts +2 -2
- package/dist/check-in/user/router.d.ts +1 -1
- package/dist/check-in/user/service.d.ts +3 -3
- package/dist/db/index.d.ts +1 -1
- package/dist/db/schemas.d.ts +34 -34
- package/dist/db/transaction.d.ts +1 -1
- package/dist/db/typebox.d.ts +4 -4
- package/dist/deposit/admin/router.d.ts +1 -1
- package/dist/deposit/admin/service.d.ts +2 -2
- package/dist/deposit/errors/index.d.ts +2 -2
- package/dist/deposit/errors/locales/zh.d.ts +1 -1
- package/dist/deposit/index.d.ts +7 -7
- package/dist/deposit/internal/service.d.ts +1 -1
- package/dist/deposit/permissions.d.ts +2 -2
- package/dist/deposit/user/router.d.ts +1 -1
- package/dist/deposit/user/service.d.ts +2 -2
- package/dist/dynamic-env/admin.router.d.ts +1 -1
- package/dist/dynamic-env/cache.d.ts +1 -1
- package/dist/dynamic-env/errors/index.d.ts +2 -2
- package/dist/dynamic-env/errors/locales/zh.d.ts +1 -1
- package/dist/dynamic-env/index.d.ts +3 -3
- package/dist/dynamic-env/service.d.ts +1 -1
- package/dist/email/index.d.ts +1 -1
- package/dist/env/index.d.ts +2 -2
- package/dist/env/server.d.ts +2 -2
- package/dist/env/typebox-env.d.ts +1 -1
- package/dist/error/index.d.ts +4 -4
- package/dist/error/locales/zh.d.ts +1 -1
- package/dist/error/messages.d.ts +2 -2
- package/dist/external/errors/index.d.ts +2 -2
- package/dist/external/errors/locales/zh.d.ts +1 -1
- package/dist/external/index.d.ts +4 -4
- package/dist/external/router.d.ts +4 -4
- package/dist/external/service.d.ts +1 -1
- package/dist/file-storage/admin/dto.schemas.d.ts +2 -2
- package/dist/file-storage/admin/router.d.ts +1 -1
- package/dist/file-storage/admin/service.d.ts +2 -2
- package/dist/file-storage/errors/index.d.ts +2 -2
- package/dist/file-storage/errors/locales/zh.d.ts +1 -1
- package/dist/file-storage/index.d.ts +7 -7
- package/dist/file-storage/internal/service.d.ts +2 -2
- package/dist/file-storage/permissions.d.ts +2 -2
- package/dist/file-storage/s3.client.d.ts +11 -11
- package/dist/file-storage/share/router.d.ts +1 -1
- package/dist/file-storage/user/router.d.ts +1 -1
- package/dist/file-storage/user/service.d.ts +2 -2
- package/dist/http-access-log.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/ledger/admin/router.d.ts +1 -1
- package/dist/ledger/admin/service.d.ts +2 -2
- package/dist/ledger/errors/index.d.ts +2 -2
- package/dist/ledger/errors/locales/zh.d.ts +1 -1
- package/dist/ledger/index.d.ts +6 -6
- package/dist/ledger/internal/service.d.ts +5 -5
- package/dist/ledger/permissions.d.ts +1 -1
- package/dist/ledger/user/router.d.ts +1 -1
- package/dist/ledger-account/admin/dto.schemas.d.ts +5 -5
- package/dist/ledger-account/admin/router.d.ts +1 -1
- package/dist/ledger-account/admin/service.d.ts +2 -2
- package/dist/ledger-account/errors/index.d.ts +2 -2
- package/dist/ledger-account/errors/locales/zh.d.ts +1 -1
- package/dist/ledger-account/index.d.ts +8 -8
- package/dist/ledger-account/internal/service.d.ts +1 -1
- package/dist/ledger-account/permissions.d.ts +1 -1
- package/dist/ledger-account/user/dto.schemas.d.ts +1 -1
- package/dist/ledger-account/user/router.d.ts +1 -1
- package/dist/ledger-account/user/service.d.ts +2 -2
- package/dist/ledger-account-import/admin/router.d.ts +1 -1
- package/dist/ledger-account-import/admin/service.d.ts +2 -2
- package/dist/ledger-account-import/errors/index.d.ts +2 -2
- package/dist/ledger-account-import/errors/locales/zh.d.ts +1 -1
- package/dist/ledger-account-import/index.d.ts +8 -8
- package/dist/ledger-account-import/internal/service.d.ts +1 -1
- package/dist/ledger-account-import/permissions.d.ts +1 -1
- package/dist/ledger-account-import/user/service.d.ts +1 -1
- package/dist/ledger-account-transfer/admin/service.d.ts +1 -1
- package/dist/ledger-account-transfer/errors/index.d.ts +2 -2
- package/dist/ledger-account-transfer/errors/locales/zh.d.ts +1 -1
- package/dist/ledger-account-transfer/index.d.ts +6 -6
- package/dist/ledger-account-transfer/internal/service.d.ts +1 -1
- package/dist/ledger-account-transfer/user/router.d.ts +1 -1
- package/dist/ledger-account-transfer/user/service.d.ts +2 -2
- package/dist/ledger-account-type/admin/router.d.ts +1 -1
- package/dist/ledger-account-type/admin/service.d.ts +2 -2
- package/dist/ledger-account-type/errors/index.d.ts +2 -2
- package/dist/ledger-account-type/errors/locales/zh.d.ts +1 -1
- package/dist/ledger-account-type/index.d.ts +9 -9
- package/dist/ledger-account-type/permissions.d.ts +1 -1
- package/dist/ledger-account-type/user/router.d.ts +1 -1
- package/dist/ledger-account-type/user/service.d.ts +2 -2
- package/dist/market-data/admin/router.d.ts +1 -1
- package/dist/market-data/admin/service.d.ts +2 -2
- package/dist/market-data/cron.d.ts +1 -1
- package/dist/market-data/errors/index.d.ts +2 -2
- package/dist/market-data/errors/locales/zh.d.ts +1 -1
- package/dist/market-data/index.d.ts +8 -8
- package/dist/market-data/internal/service.d.ts +1 -1
- package/dist/market-data/permissions.d.ts +3 -3
- package/dist/market-data/user/router.d.ts +1 -1
- package/dist/market-data/user/service.d.ts +2 -2
- package/dist/market-pricing/admin/dto.schemas.d.ts +3 -3
- package/dist/market-pricing/admin/router.d.ts +1 -1
- package/dist/market-pricing/admin/service.d.ts +1 -1
- package/dist/market-pricing/cron.d.ts +1 -1
- package/dist/market-pricing/errors/index.d.ts +2 -2
- package/dist/market-pricing/errors/locales/zh.d.ts +1 -1
- package/dist/market-pricing/internal/service.d.ts +2 -2
- package/dist/market-pricing/permissions.d.ts +1 -1
- package/dist/news/admin/dto.schemas.d.ts +2 -2
- package/dist/news/admin/router.d.ts +1 -1
- package/dist/news/admin/service.d.ts +2 -2
- package/dist/news/errors/index.d.ts +2 -2
- package/dist/news/errors/locales/zh.d.ts +1 -1
- package/dist/news/index.d.ts +7 -7
- package/dist/news/permissions.d.ts +1 -1
- package/dist/news/user/dto.schemas.d.ts +4 -4
- package/dist/news/user/router.d.ts +1 -1
- package/dist/news/user/service.d.ts +2 -2
- package/dist/news-category/admin/dto.schemas.d.ts +2 -2
- package/dist/news-category/admin/router.d.ts +1 -1
- package/dist/news-category/admin/service.d.ts +2 -2
- package/dist/news-category/errors/index.d.ts +2 -2
- package/dist/news-category/errors/locales/zh.d.ts +1 -1
- package/dist/news-category/index.d.ts +8 -8
- package/dist/news-category/permissions.d.ts +1 -1
- package/dist/news-category/user/router.d.ts +1 -1
- package/dist/news-category/user/service.d.ts +1 -1
- package/dist/notification/admin/router.d.ts +1 -1
- package/dist/notification/admin/service.d.ts +2 -2
- package/dist/notification/errors/index.d.ts +2 -2
- package/dist/notification/errors/locales/zh.d.ts +1 -1
- package/dist/notification/index.d.ts +7 -7
- package/dist/notification/internal/service.d.ts +4 -4
- package/dist/notification/permissions.d.ts +2 -2
- package/dist/notification/user/router.d.ts +1 -1
- package/dist/notification/user/service.d.ts +2 -2
- package/dist/operations-overview/admin/router.d.ts +1 -1
- package/dist/operations-overview/admin/service.d.ts +1 -1
- package/dist/portfolio/index.d.ts +2 -2
- package/dist/portfolio/internal/index.d.ts +1 -1
- package/dist/portfolio/user/index.d.ts +3 -3
- package/dist/portfolio/user/router.d.ts +1 -1
- package/dist/portfolio/user/service.d.ts +2 -2
- package/dist/receipt-method/admin/router.d.ts +1 -1
- package/dist/receipt-method/admin/service.d.ts +2 -2
- package/dist/receipt-method/errors/index.d.ts +2 -2
- package/dist/receipt-method/errors/locales/zh.d.ts +1 -1
- package/dist/receipt-method/index.d.ts +7 -7
- package/dist/receipt-method/internal/service.d.ts +3 -3
- package/dist/receipt-method/permissions.d.ts +1 -1
- package/dist/receipt-method/user/router.d.ts +1 -1
- package/dist/receipt-method/user/service.d.ts +3 -3
- package/dist/referral/admin/router.d.ts +1 -1
- package/dist/referral/admin/service.d.ts +2 -2
- package/dist/referral/errors/index.d.ts +2 -2
- package/dist/referral/errors/locales/zh.d.ts +1 -1
- package/dist/referral/index.d.ts +9 -9
- package/dist/referral/permissions.d.ts +1 -1
- package/dist/referral/user/router.d.ts +1 -1
- package/dist/referral/user/service.d.ts +2 -2
- package/dist/referral-depth-config/admin/router.d.ts +1 -1
- package/dist/referral-depth-config/admin/service.d.ts +2 -2
- package/dist/referral-depth-config/errors/index.d.ts +2 -2
- package/dist/referral-depth-config/errors/locales/zh.d.ts +1 -1
- package/dist/referral-depth-config/permissions.d.ts +1 -1
- package/dist/server-test/errors/index.d.ts +2 -2
- package/dist/server-test/errors/locales/zh.d.ts +1 -1
- package/dist/server-test/index.d.ts +1 -1
- package/dist/shipping-address/admin/router.d.ts +1 -1
- package/dist/shipping-address/admin/service.d.ts +2 -2
- package/dist/shipping-address/errors/index.d.ts +2 -2
- package/dist/shipping-address/errors/locales/zh.d.ts +1 -1
- package/dist/shipping-address/index.d.ts +7 -7
- package/dist/shipping-address/permissions.d.ts +1 -1
- package/dist/shipping-address/user/router.d.ts +1 -1
- package/dist/shipping-address/user/service.d.ts +3 -3
- package/dist/team/admin/router.d.ts +1 -1
- package/dist/team/admin/service.d.ts +2 -2
- package/dist/team/errors/index.d.ts +2 -2
- package/dist/team/errors/locales/zh.d.ts +1 -1
- package/dist/team/index.d.ts +8 -8
- package/dist/team/permissions.d.ts +1 -1
- package/dist/team/user/dto.schemas.d.ts +1 -1
- package/dist/team/user/router.d.ts +1 -1
- package/dist/team/user/service.d.ts +2 -2
- package/dist/trade-market/admin/dto.schemas.d.ts +4 -4
- package/dist/trade-market/admin/router.d.ts +1 -1
- package/dist/trade-market/admin/service.d.ts +2 -2
- package/dist/trade-market/errors/index.d.ts +2 -2
- package/dist/trade-market/errors/locales/zh.d.ts +1 -1
- package/dist/trade-market/index.d.ts +8 -8
- package/dist/trade-market/internal/service.d.ts +11 -11
- package/dist/trade-market/permissions.d.ts +2 -2
- package/dist/trade-market/user/router.d.ts +1 -1
- package/dist/trade-market/user/service.d.ts +1 -1
- package/dist/transfer/admin/router.d.ts +1 -1
- package/dist/transfer/admin/service.d.ts +2 -2
- package/dist/transfer/errors/index.d.ts +2 -2
- package/dist/transfer/errors/locales/zh.d.ts +1 -1
- package/dist/transfer/index.d.ts +11 -11
- package/dist/transfer/internal/service.d.ts +1 -1
- package/dist/transfer/permissions.d.ts +1 -1
- package/dist/transfer/user/router.d.ts +1 -1
- package/dist/transfer/user/service.d.ts +2 -2
- package/dist/user/admin/router.d.ts +1 -1
- package/dist/user/admin/service.d.ts +2 -2
- package/dist/user/errors/index.d.ts +2 -2
- package/dist/user/errors/locales/zh.d.ts +1 -1
- package/dist/user/index.d.ts +9 -9
- package/dist/user/internal/service.d.ts +1 -1
- package/dist/user/permissions.d.ts +3 -3
- package/dist/user/user/router.d.ts +1 -1
- package/dist/user/user/service.d.ts +2 -2
- package/dist/user-kyc/admin/router.d.ts +1 -1
- package/dist/user-kyc/admin/service.d.ts +2 -2
- package/dist/user-kyc/errors/index.d.ts +2 -2
- package/dist/user-kyc/errors/locales/zh.d.ts +1 -1
- package/dist/user-kyc/index.d.ts +10 -10
- package/dist/user-kyc/internal/service.d.ts +3 -3
- package/dist/user-kyc/permissions.d.ts +2 -2
- package/dist/user-kyc/user/router.d.ts +1 -1
- package/dist/user-kyc/user/service.d.ts +6 -6
- package/dist/user-security/admin/router.d.ts +1 -1
- package/dist/user-security/admin/service.d.ts +1 -1
- package/dist/user-security/index.d.ts +8 -8
- package/dist/user-security/internal/service.d.ts +2 -2
- package/dist/user-security/user/router.d.ts +1 -1
- package/dist/user-security/user/service.d.ts +1 -1
- package/dist/utils/date.d.ts +2 -2
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/pagination.d.ts +1 -1
- package/dist/wallet/admin/router.d.ts +1 -1
- package/dist/wallet/admin/service.d.ts +2 -2
- package/dist/wallet/errors/index.d.ts +2 -2
- package/dist/wallet/errors/locales/zh.d.ts +1 -1
- package/dist/wallet/index.d.ts +11 -11
- package/dist/wallet/internal/service.d.ts +2 -2
- package/dist/wallet/permissions.d.ts +1 -1
- package/dist/wallet/user/router.d.ts +1 -1
- package/dist/wallet/user/service.d.ts +3 -3
- package/dist/wallet-type/admin/dto.schemas.d.ts +4 -4
- package/dist/wallet-type/admin/router.d.ts +1 -1
- package/dist/wallet-type/admin/service.d.ts +2 -2
- package/dist/wallet-type/errors/index.d.ts +2 -2
- package/dist/wallet-type/errors/locales/zh.d.ts +1 -1
- package/dist/wallet-type/index.d.ts +10 -10
- package/dist/wallet-type/internal/service.d.ts +2 -2
- package/dist/wallet-type/permissions.d.ts +1 -1
- package/dist/wallet-type/user/dto.schemas.d.ts +2 -2
- package/dist/wallet-type/user/router.d.ts +1 -1
- package/dist/wallet-type/user/service.d.ts +2 -2
- package/dist/welfare-cycle/admin/router.d.ts +1 -1
- package/dist/welfare-cycle/admin/service.d.ts +1 -1
- package/dist/welfare-cycle/cron.d.ts +1 -1
- package/dist/welfare-cycle/errors/index.d.ts +2 -2
- package/dist/welfare-cycle/errors/locales/zh.d.ts +1 -1
- package/dist/welfare-cycle/index.d.ts +7 -7
- package/dist/welfare-cycle/internal/service.d.ts +2 -2
- package/dist/welfare-cycle/permissions.d.ts +3 -3
- package/dist/welfare-cycle/user/router.d.ts +1 -1
- package/dist/welfare-cycle/user/service.d.ts +1 -1
- package/dist/withdraw/admin/router.d.ts +1 -1
- package/dist/withdraw/admin/service.d.ts +2 -2
- package/dist/withdraw/errors/index.d.ts +2 -2
- package/dist/withdraw/errors/locales/zh.d.ts +1 -1
- package/dist/withdraw/index.d.ts +8 -8
- package/dist/withdraw/internal/index.d.ts +1 -1
- package/dist/withdraw/internal/service.d.ts +1 -1
- package/dist/withdraw/permissions.d.ts +2 -2
- package/dist/withdraw/user/dto.schemas.d.ts +1 -1
- package/dist/withdraw/user/index.d.ts +3 -3
- package/dist/withdraw/user/router.d.ts +1 -1
- package/dist/withdraw/user/service.d.ts +2 -2
- package/package.json +24 -21
package/dist/auth/router.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AdminListBankAccountsFilters, ListBanksOptions } from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { AdminListBankAccountsFilters, ListBanksOptions } from '../internal/service';
|
|
2
|
+
import type { BankAccountUpdateInputType, BankCreateInputType, BankUpdateInputType } from './dto.schemas';
|
|
3
|
+
import { BankAccountBaseService } from '../internal/service';
|
|
4
4
|
export declare abstract class AdminBankAccountService extends BankAccountBaseService {
|
|
5
5
|
private static getBankAccountDetail;
|
|
6
6
|
static listAllBankAccounts(filters?: AdminListBankAccountsFilters): Promise<{
|
|
@@ -46,7 +46,7 @@ export declare abstract class AdminBankAccountService extends BankAccountBaseSer
|
|
|
46
46
|
}[];
|
|
47
47
|
total: number;
|
|
48
48
|
}>;
|
|
49
|
-
static verifyBankAccount(id: string, method:
|
|
49
|
+
static verifyBankAccount(id: string, method: 'manual' | 'micro_deposit' | 'document'): Promise<{
|
|
50
50
|
id: string;
|
|
51
51
|
createdAt: Date;
|
|
52
52
|
updatedAt: Date;
|
|
@@ -126,7 +126,7 @@ export declare abstract class AdminBankAccountService extends BankAccountBaseSer
|
|
|
126
126
|
banExpires: Date | null;
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
|
-
static updateBankAccountRiskStatus(id: string, riskStatus:
|
|
129
|
+
static updateBankAccountRiskStatus(id: string, riskStatus: 'normal' | 'warning' | 'high-risk' | 'blocked'): Promise<{
|
|
130
130
|
id: string;
|
|
131
131
|
createdAt: Date;
|
|
132
132
|
updatedAt: Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './locales/zh';
|
|
2
2
|
export declare const BankAccountErrorCodes: {
|
|
3
3
|
readonly BANK_ACCOUNT_USER_ID_REQUIRED: "BANK_ACCOUNT_USER_ID_REQUIRED";
|
|
4
4
|
readonly BANK_ACCOUNT_ID_REQUIRED: "BANK_ACCOUNT_ID_REQUIRED";
|
|
@@ -7,7 +7,7 @@ export declare const BankAccountErrorCodes: {
|
|
|
7
7
|
};
|
|
8
8
|
type BankAccountErrorCodesType = typeof BankAccountErrorCodes;
|
|
9
9
|
export type BankAccountErrorCode = keyof BankAccountErrorCodesType;
|
|
10
|
-
declare module
|
|
10
|
+
declare module '../../error/errorcode' {
|
|
11
11
|
interface ErrorCodeRegistry extends BankAccountErrorCodesType {
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { bankAccountRouter } from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export { seedBanks } from
|
|
1
|
+
export * from './schema';
|
|
2
|
+
export * from './db.schemas';
|
|
3
|
+
export * from './admin/service';
|
|
4
|
+
export { bankAccountRouter } from './user/router';
|
|
5
|
+
export * from './user/service';
|
|
6
|
+
export * from './internal/service';
|
|
7
|
+
export * from './permissions';
|
|
8
|
+
export { seedBanks } from './seed';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** 银行卡权限 */
|
|
5
5
|
export declare const bankAccountPermissions: {
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
6
|
+
readonly 'bank-account:manage': readonly ["read", "create", "update", "delete", "set-default", "verify"];
|
|
7
|
+
readonly 'bank-account:review': readonly ["read", "verify", "risk-control", "update-risk-status"];
|
|
8
|
+
readonly 'bank:manage': readonly ["read", "create", "update", "delete"];
|
|
9
9
|
};
|
|
10
10
|
export type BankAccountPermission = keyof typeof bankAccountPermissions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ListBankAccountsOptions, ListBanksOptions } from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { ListBankAccountsOptions, ListBanksOptions } from '../internal/service';
|
|
2
|
+
import type { BankAccountCreateInputType, BankAccountUpdateInputType } from './dto.schemas';
|
|
3
|
+
import { BankAccountBaseService } from '../internal/service';
|
|
4
4
|
export declare abstract class UserBankAccountService extends BankAccountBaseService {
|
|
5
5
|
static getUserBankAccounts(userId: string, options?: ListBankAccountsOptions): Promise<{
|
|
6
6
|
items: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { CheckInAdminListQueryType } from './dto.schemas';
|
|
2
|
+
import { BaseCheckInService } from '../internal/service';
|
|
3
3
|
export declare abstract class AdminCheckInService extends BaseCheckInService {
|
|
4
4
|
static listCheckIns(filters?: CheckInAdminListQueryType): Promise<{
|
|
5
5
|
items: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './locales/zh';
|
|
2
2
|
export declare const CheckInErrorCodes: {
|
|
3
3
|
/** 用户ID不能为空 */
|
|
4
4
|
readonly CHECK_IN_USER_ID_REQUIRED: "CHECK_IN_USER_ID_REQUIRED";
|
|
@@ -7,7 +7,7 @@ export declare const CheckInErrorCodes: {
|
|
|
7
7
|
};
|
|
8
8
|
type CheckInErrorCodesType = typeof CheckInErrorCodes;
|
|
9
9
|
export type CheckInErrorCode = keyof CheckInErrorCodesType;
|
|
10
|
-
declare module
|
|
10
|
+
declare module '../../error/errorcode' {
|
|
11
11
|
interface ErrorCodeRegistry extends CheckInErrorCodesType {
|
|
12
12
|
}
|
|
13
13
|
}
|
package/dist/check-in/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export { checkInRouter } from
|
|
7
|
-
export * from
|
|
1
|
+
export * from './admin/service';
|
|
2
|
+
export * from './db.schemas';
|
|
3
|
+
export * from './internal/service';
|
|
4
|
+
export * from './permissions';
|
|
5
|
+
export * from './schema';
|
|
6
|
+
export { checkInRouter } from './user/router';
|
|
7
|
+
export * from './user/service';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { SQL } from
|
|
2
|
-
import { userCheckIn } from
|
|
1
|
+
import type { SQL } from 'drizzle-orm';
|
|
2
|
+
import { userCheckIn } from '../schema';
|
|
3
3
|
export declare abstract class BaseCheckInService {
|
|
4
4
|
protected static validateUserId(userId: string): void;
|
|
5
5
|
protected static getUserTimezone(userId: string): Promise<string>;
|
|
6
6
|
protected static addDays(dateString: string, days: number): string;
|
|
7
|
-
protected static getCheckInTypeOrDefault(checkInType?: (typeof userCheckIn.$inferSelect)[
|
|
7
|
+
protected static getCheckInTypeOrDefault(checkInType?: (typeof userCheckIn.$inferSelect)['checkInType']): "app" | "meeting";
|
|
8
8
|
protected static buildDateRangeConditions(conditions: SQL[], timezone: string, startDate?: Date, endDate?: Date): void;
|
|
9
9
|
protected static listCheckInsByConditions(conditions: SQL[], limit: number, offset: number): Promise<{
|
|
10
10
|
items: {
|
|
@@ -40,10 +40,10 @@ export declare abstract class BaseCheckInService {
|
|
|
40
40
|
limit: number;
|
|
41
41
|
offset: number;
|
|
42
42
|
}>;
|
|
43
|
-
protected static listGroupedLocalDates(userId: string, checkInType: (typeof userCheckIn.$inferSelect)[
|
|
43
|
+
protected static listGroupedLocalDates(userId: string, checkInType: (typeof userCheckIn.$inferSelect)['checkInType']): Promise<{
|
|
44
44
|
localDate: string | null;
|
|
45
45
|
}[]>;
|
|
46
|
-
protected static findTodayCheckIn(userId: string, checkInType: (typeof userCheckIn.$inferSelect)[
|
|
46
|
+
protected static findTodayCheckIn(userId: string, checkInType: (typeof userCheckIn.$inferSelect)['checkInType'], todayLocalDate: string): Promise<{
|
|
47
47
|
id: string;
|
|
48
48
|
}[]>;
|
|
49
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** 签到模块权限(Access Control: 资源 -> 操作列表) */
|
|
2
2
|
export declare const checkInPermissions: {
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
3
|
+
readonly 'checkIn:checkIn': readonly ["create", "read", "list"];
|
|
4
|
+
readonly 'checkIn:admin': readonly ["read", "list"];
|
|
5
5
|
};
|
|
6
6
|
export type CheckInPermission = keyof typeof checkInPermissions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { CheckInCreateInputType, CheckInListQueryType, CheckInStatsQueryType, CheckInTodayQueryType } from './dto.schemas';
|
|
2
|
+
import { BaseCheckInService } from '../internal/service';
|
|
3
|
+
import { userCheckIn } from '../schema';
|
|
4
4
|
export declare abstract class UserCheckInService extends BaseCheckInService {
|
|
5
5
|
static checkIn(userId: string, payload?: CheckInCreateInputType): Promise<typeof userCheckIn.$inferSelect>;
|
|
6
6
|
static listMyCheckIns(userId: string, filters?: CheckInListQueryType): Promise<{
|
package/dist/db/index.d.ts
CHANGED
package/dist/db/schemas.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
1
|
+
export * from './enums';
|
|
2
|
+
export * from '../auth/schema';
|
|
3
|
+
export * from '../user/schema';
|
|
4
|
+
export * from '../user-security/schema';
|
|
5
|
+
export * from '../user-kyc/schema';
|
|
6
|
+
export * from '../asset-type/schema';
|
|
7
|
+
export * from '../asset/schema';
|
|
8
|
+
export * from '../asset-convert-product/schema';
|
|
9
|
+
export * from '../asset-price/schema';
|
|
10
|
+
export * from '../wallet-type/schema';
|
|
11
|
+
export * from '../ledger-account-type/schema';
|
|
12
|
+
export * from '../ledger-account/schema';
|
|
13
|
+
export * from '../wallet/schema';
|
|
14
|
+
export * from '../ledger-account-import/schema';
|
|
15
|
+
export * from '../ledger/schema';
|
|
16
|
+
export * from '../deposit/schema';
|
|
17
|
+
export * from '../bank-account/schema';
|
|
18
|
+
export * from '../receipt-method/schema';
|
|
19
|
+
export * from '../shipping-address/schema';
|
|
20
|
+
export * from '../check-in/schema';
|
|
21
|
+
export * from '../withdraw/schema';
|
|
22
|
+
export * from '../transfer/schema';
|
|
23
|
+
export * from '../file-storage/schema';
|
|
24
|
+
export * from '../notification/schema';
|
|
25
|
+
export * from '../referral/schema';
|
|
26
|
+
export * from '../referral-depth-config/schema';
|
|
27
|
+
export * from '../news-category/schema';
|
|
28
|
+
export * from '../news/schema';
|
|
29
|
+
export * from '../app-version/schema';
|
|
30
|
+
export * from '../dynamic-env/schema';
|
|
31
|
+
export * from '../market-pricing/schema';
|
|
32
|
+
export * from '../market-data/schema';
|
|
33
|
+
export * from '../trade-market/schema';
|
|
34
|
+
export * from '../welfare-cycle/schema';
|
package/dist/db/transaction.d.ts
CHANGED
package/dist/db/typebox.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { SchemaOptions, TObject } from
|
|
2
|
-
import type { PgTableWithColumns } from
|
|
1
|
+
import type { SchemaOptions, TObject } from '@sinclair/typebox';
|
|
2
|
+
import type { PgTableWithColumns } from 'drizzle-orm/pg-core';
|
|
3
3
|
export declare const createInsertSchema: import("drizzle-typebox").CreateInsertSchema, createSelectSchema: import("drizzle-typebox").CreateSelectSchema, createUpdateSchema: import("drizzle-typebox").CreateUpdateSchema;
|
|
4
|
-
export declare function createSchemaMeta<T extends PgTableWithColumns<any>>(table: T, meta: Record<keyof T[
|
|
4
|
+
export declare function createSchemaMeta<T extends PgTableWithColumns<any>>(table: T, meta: Record<keyof T['$inferSelect'], SchemaOptions>): Record<keyof T["$inferSelect"], SchemaOptions>;
|
|
5
5
|
/**
|
|
6
6
|
* 为派生的 TypeBox schema 补充字段元数据(description、title等)
|
|
7
7
|
* 使用浅层 Object.assign 合并,保持原有类型约束不变。
|
|
@@ -16,4 +16,4 @@ export declare function createSchemaMeta<T extends PgTableWithColumns<any>>(tabl
|
|
|
16
16
|
* email: { description: "邮箱", title: "用户邮箱" },
|
|
17
17
|
* });
|
|
18
18
|
*/
|
|
19
|
-
export declare function annotateSchema<S extends TObject, T extends keyof S[
|
|
19
|
+
export declare function annotateSchema<S extends TObject, T extends keyof S['properties']>(schema: S, fieldMeta: Partial<Record<T, Partial<S['properties'][T]>>>, meta?: SchemaOptions): S;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { DepositAdminListQueryType, DepositApproveInputType, DepositRejectInputType } from './dto.schemas';
|
|
2
|
+
import { BaseDepositService } from '../internal/service';
|
|
3
3
|
export declare abstract class AdminDepositService extends BaseDepositService {
|
|
4
4
|
static approveDeposit(orderId: string, reviewerId: string, input: DepositApproveInputType): Promise<{
|
|
5
5
|
createdAt: Date;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 充值模块错误码
|
|
3
3
|
* @module deposit/errors
|
|
4
4
|
*/
|
|
5
|
-
export * from
|
|
5
|
+
export * from './locales/zh';
|
|
6
6
|
export declare const DepositErrorCodes: {
|
|
7
7
|
/** 用户 ID 为空 */
|
|
8
8
|
readonly DEPOSIT_USER_ID_REQUIRED: "DEPOSIT_USER_ID_REQUIRED";
|
|
@@ -39,7 +39,7 @@ export declare const DepositErrorCodes: {
|
|
|
39
39
|
};
|
|
40
40
|
type DepositErrorCodesType = typeof DepositErrorCodes;
|
|
41
41
|
export type DepositErrorCode = keyof DepositErrorCodesType;
|
|
42
|
-
declare module
|
|
42
|
+
declare module '../../error/errorcode' {
|
|
43
43
|
interface ErrorCodeRegistry extends DepositErrorCodesType {
|
|
44
44
|
}
|
|
45
45
|
}
|
package/dist/deposit/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { depositRouter } from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from './schema';
|
|
2
|
+
export * from './db.schemas';
|
|
3
|
+
export * from './admin/service';
|
|
4
|
+
export { depositRouter } from './user/router';
|
|
5
|
+
export * from './user/service';
|
|
6
|
+
export * from './internal/service';
|
|
7
|
+
export * from './permissions';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** 充值权限 */
|
|
5
5
|
export declare const depositPermissions: {
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
6
|
+
readonly 'deposit:order': readonly ["create", "read", "update", "list"];
|
|
7
|
+
readonly 'deposit:review': readonly ["read", "update", "list"];
|
|
8
8
|
};
|
|
9
9
|
export type DepositPermission = keyof typeof depositPermissions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { DepositListQueryType, DirectCnyBalanceDepositCreateInputType, LedgerAccountDepositCreateInputType } from './dto.schemas';
|
|
2
|
+
import { BaseDepositService } from '../internal/service';
|
|
3
3
|
export declare abstract class UserDepositService extends BaseDepositService {
|
|
4
4
|
static createDirectCnyBalanceDeposit(userId: string, input: DirectCnyBalanceDepositCreateInputType): Promise<{
|
|
5
5
|
id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './locales/zh';
|
|
2
2
|
export declare const DynamicEnvErrorCodes: {
|
|
3
3
|
readonly DYNAMIC_ENV_KEY_REQUIRED: "DYNAMIC_ENV_KEY_REQUIRED";
|
|
4
4
|
readonly DYNAMIC_ENV_VALUE_INVALID: "DYNAMIC_ENV_VALUE_INVALID";
|
|
5
5
|
};
|
|
6
6
|
type DynamicEnvErrorCodesType = typeof DynamicEnvErrorCodes;
|
|
7
7
|
export type DynamicEnvErrorCode = keyof DynamicEnvErrorCodesType;
|
|
8
|
-
declare module
|
|
8
|
+
declare module '../../error/errorcode' {
|
|
9
9
|
interface ErrorCodeRegistry extends DynamicEnvErrorCodesType {
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { dynamicEnv } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { dynamicEnv } from './cache';
|
|
2
|
+
export * from './dto.schema';
|
|
3
|
+
export * from './service';
|
package/dist/email/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SendMailOptions } from
|
|
1
|
+
import type { SendMailOptions } from 'nodemailer';
|
|
2
2
|
export declare function sendEmail(opts: SendMailOptions): Promise<import("nodemailer/lib/smtp-transport").SentMessageInfo>;
|
package/dist/env/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as envClient } from
|
|
2
|
-
export { default as envServer } from
|
|
1
|
+
export { default as envClient } from './client';
|
|
2
|
+
export { default as envServer } from './server';
|
package/dist/env/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { envServer } from
|
|
1
|
+
import type { envServer } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
TZ?: string | undefined;
|
|
4
4
|
PGTZ?: string | undefined;
|
|
@@ -44,7 +44,7 @@ declare const _default: {
|
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
46
46
|
type EnvServerType = typeof envServer;
|
|
47
|
-
declare module
|
|
47
|
+
declare module 'bun' {
|
|
48
48
|
interface Env extends EnvServerType {
|
|
49
49
|
}
|
|
50
50
|
}
|
package/dist/error/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Elysia from
|
|
2
|
-
import { type ErrorCodeKeys } from
|
|
3
|
-
import { type SupportedLanguages } from
|
|
1
|
+
import Elysia from 'elysia';
|
|
2
|
+
import { type ErrorCodeKeys } from './errorcode';
|
|
3
|
+
import { type SupportedLanguages } from './messages';
|
|
4
4
|
interface ErrorOptions {
|
|
5
5
|
context?: any;
|
|
6
6
|
lang?: SupportedLanguages;
|
|
@@ -74,7 +74,7 @@ export declare const errorMessagesRouter: Elysia<"", {
|
|
|
74
74
|
response: {
|
|
75
75
|
200: {
|
|
76
76
|
zh: import("./messages").ErrorMessageRegistry;
|
|
77
|
-
|
|
77
|
+
'zh-CN': import("./messages").ErrorMessageRegistry;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ErrorMessageRegistry } from
|
|
1
|
+
import type { ErrorMessageRegistry } from '../messages';
|
|
2
2
|
export declare const zh: ErrorMessageRegistry;
|
package/dist/error/messages.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ErrorCodeKeys } from
|
|
1
|
+
import type { ErrorCodeKeys } from './errorcode';
|
|
2
2
|
export interface ErrorMessageRegistry extends Record<ErrorCodeKeys, string> {
|
|
3
3
|
}
|
|
4
4
|
export declare const ErrorMessages: {
|
|
5
5
|
zh: ErrorMessageRegistry;
|
|
6
|
-
|
|
6
|
+
'zh-CN': ErrorMessageRegistry;
|
|
7
7
|
};
|
|
8
8
|
export declare const supportedLanguages: Array<keyof typeof ErrorMessages>;
|
|
9
9
|
export type SupportedLanguages = keyof typeof ErrorMessages;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './locales/zh';
|
|
2
2
|
export declare const ExternalErrorCodes: {
|
|
3
3
|
/** 外部接口鉴权失败 */
|
|
4
4
|
readonly EXTERNAL_API_KEY_INVALID: "EXTERNAL_API_KEY_INVALID";
|
|
@@ -7,7 +7,7 @@ export declare const ExternalErrorCodes: {
|
|
|
7
7
|
};
|
|
8
8
|
type ExternalErrorCodesType = typeof ExternalErrorCodes;
|
|
9
9
|
export type ExternalErrorCode = keyof ExternalErrorCodesType;
|
|
10
|
-
declare module
|
|
10
|
+
declare module '../../error/errorcode' {
|
|
11
11
|
interface ErrorCodeRegistry extends ExternalErrorCodesType {
|
|
12
12
|
}
|
|
13
13
|
}
|
package/dist/external/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './dto.schemas';
|
|
2
|
+
export * from './errors';
|
|
3
|
+
export * from './router';
|
|
4
|
+
export * from './service';
|