@r2wa-org/eden 0.0.48
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 +28 -0
- package/dist/src/admin/index.d.ts +4793 -0
- package/dist/src/auth/better-auth.d.ts +2915 -0
- package/dist/src/auth/better-hooks.d.ts +16 -0
- package/dist/src/auth/db.schemas.d.ts +2076 -0
- package/dist/src/auth/permissions.d.ts +155 -0
- package/dist/src/auth/roles.d.ts +376 -0
- package/dist/src/auth/router.d.ts +385 -0
- package/dist/src/auth/schema.d.ts +1080 -0
- package/dist/src/bank-account/admin.router.d.ts +880 -0
- package/dist/src/bank-account/db.schemas.d.ts +1032 -0
- package/dist/src/bank-account/dto.schemas.d.ts +572 -0
- package/dist/src/bank-account/index.d.ts +8 -0
- package/dist/src/bank-account/permissions.d.ts +10 -0
- package/dist/src/bank-account/router.d.ts +680 -0
- package/dist/src/bank-account/schema.d.ts +535 -0
- package/dist/src/bank-account/seed.d.ts +4 -0
- package/dist/src/bank-account/service.d.ts +359 -0
- package/dist/src/check-in/admin.router.d.ts +533 -0
- package/dist/src/check-in/db.schemas.d.ts +312 -0
- package/dist/src/check-in/dto.schemas.d.ts +544 -0
- package/dist/src/check-in/errors/index.d.ts +13 -0
- package/dist/src/check-in/errors/locales/zh.d.ts +10 -0
- package/dist/src/check-in/index.d.ts +7 -0
- package/dist/src/check-in/permissions.d.ts +6 -0
- package/dist/src/check-in/router.d.ts +619 -0
- package/dist/src/check-in/schema.d.ts +168 -0
- package/dist/src/check-in/service.d.ts +99 -0
- package/dist/src/cors/index.d.ts +30 -0
- package/dist/src/cron/index.d.ts +76 -0
- package/dist/src/db/columns.helpers.d.ts +13 -0
- package/dist/src/db/enums.d.ts +1 -0
- package/dist/src/db/index.d.ts +4 -0
- package/dist/src/db/schemas.d.ts +24 -0
- package/dist/src/db/transaction.d.ts +3 -0
- package/dist/src/db/typebox.d.ts +19 -0
- package/dist/src/deposit/admin.router.d.ts +633 -0
- package/dist/src/deposit/db.schemas.d.ts +550 -0
- package/dist/src/deposit/dto.schemas.d.ts +707 -0
- package/dist/src/deposit/errors/index.d.ts +33 -0
- package/dist/src/deposit/errors/locales/zh.d.ts +18 -0
- package/dist/src/deposit/index.d.ts +7 -0
- package/dist/src/deposit/permissions.d.ts +9 -0
- package/dist/src/deposit/router.d.ts +621 -0
- package/dist/src/deposit/schema.d.ts +287 -0
- package/dist/src/deposit/service.d.ts +278 -0
- package/dist/src/dynamic-env/admin.router.d.ts +637 -0
- package/dist/src/dynamic-env/cache.d.ts +35 -0
- package/dist/src/dynamic-env/db.schemas.d.ts +182 -0
- package/dist/src/dynamic-env/dto.schema.d.ts +17 -0
- package/dist/src/dynamic-env/index.d.ts +3 -0
- package/dist/src/dynamic-env/schema.d.ts +96 -0
- package/dist/src/dynamic-env/service.d.ts +93 -0
- package/dist/src/eden/index.d.ts +57 -0
- package/dist/src/email/index.d.ts +2 -0
- package/dist/src/env/client.d.ts +2 -0
- package/dist/src/env/index.d.ts +2 -0
- package/dist/src/env/server.d.ts +50 -0
- package/dist/src/env/typebox-env.d.ts +7 -0
- package/dist/src/error/errorcode.d.ts +9 -0
- package/dist/src/error/index.d.ts +120 -0
- package/dist/src/error/locales/zh.d.ts +2 -0
- package/dist/src/error/messages.d.ts +10 -0
- package/dist/src/external/dto.schemas.d.ts +173 -0
- package/dist/src/external/errors/index.d.ts +13 -0
- package/dist/src/external/errors/locales/zh.d.ts +10 -0
- package/dist/src/external/index.d.ts +4 -0
- package/dist/src/external/router.d.ts +105 -0
- package/dist/src/external/service.d.ts +31 -0
- package/dist/src/file-storage/admin.router.d.ts +601 -0
- package/dist/src/file-storage/db.schemas.d.ts +1026 -0
- package/dist/src/file-storage/dto.schemas.d.ts +1238 -0
- package/dist/src/file-storage/errors/index.d.ts +19 -0
- package/dist/src/file-storage/errors/locales/zh.d.ts +18 -0
- package/dist/src/file-storage/index.d.ts +6 -0
- package/dist/src/file-storage/permissions.d.ts +5 -0
- package/dist/src/file-storage/router.d.ts +588 -0
- package/dist/src/file-storage/s3.client.d.ts +284 -0
- package/dist/src/file-storage/schema.d.ts +538 -0
- package/dist/src/file-storage/service.d.ts +264 -0
- package/dist/src/file-storage/share.router.d.ts +564 -0
- package/dist/src/index.d.ts +8664 -0
- package/dist/src/ledger/admin.router.d.ts +524 -0
- package/dist/src/ledger/db.schemas.d.ts +486 -0
- package/dist/src/ledger/dto.schemas.d.ts +160 -0
- package/dist/src/ledger/errors/index.d.ts +22 -0
- package/dist/src/ledger/errors/locales/zh.d.ts +14 -0
- package/dist/src/ledger/index.d.ts +6 -0
- package/dist/src/ledger/permissions.d.ts +8 -0
- package/dist/src/ledger/router.d.ts +486 -0
- package/dist/src/ledger/schema.d.ts +259 -0
- package/dist/src/ledger/service.d.ts +208 -0
- package/dist/src/nanoid/index.d.ts +2 -0
- package/dist/src/news/admin.router.d.ts +824 -0
- package/dist/src/news/db.schemas.d.ts +1150 -0
- package/dist/src/news/dto.schemas.d.ts +233 -0
- package/dist/src/news/errors/index.d.ts +20 -0
- package/dist/src/news/errors/locales/zh.d.ts +13 -0
- package/dist/src/news/index.d.ts +6 -0
- package/dist/src/news/permissions.d.ts +4 -0
- package/dist/src/news/router.d.ts +620 -0
- package/dist/src/news/schema.d.ts +616 -0
- package/dist/src/news/service.d.ts +495 -0
- package/dist/src/news-category/admin.router.d.ts +207 -0
- package/dist/src/news-category/constants.d.ts +1 -0
- package/dist/src/news-category/db.schemas.d.ts +324 -0
- package/dist/src/news-category/dto.schemas.d.ts +57 -0
- package/dist/src/news-category/errors/index.d.ts +19 -0
- package/dist/src/news-category/errors/locales/zh.d.ts +13 -0
- package/dist/src/news-category/index.d.ts +7 -0
- package/dist/src/news-category/permissions.d.ts +4 -0
- package/dist/src/news-category/router.d.ts +460 -0
- package/dist/src/news-category/schema.d.ts +173 -0
- package/dist/src/news-category/seed.d.ts +12 -0
- package/dist/src/news-category/service.d.ts +105 -0
- package/dist/src/notification/admin.router.d.ts +582 -0
- package/dist/src/notification/db.schemas.d.ts +624 -0
- package/dist/src/notification/dto.schemas.d.ts +457 -0
- package/dist/src/notification/errors/index.d.ts +19 -0
- package/dist/src/notification/errors/locales/zh.d.ts +13 -0
- package/dist/src/notification/index.d.ts +7 -0
- package/dist/src/notification/permissions.d.ts +6 -0
- package/dist/src/notification/router.d.ts +626 -0
- package/dist/src/notification/schema.d.ts +347 -0
- package/dist/src/notification/service.d.ts +195 -0
- package/dist/src/receipt-method/admin.router.d.ts +579 -0
- package/dist/src/receipt-method/db.schemas.d.ts +380 -0
- package/dist/src/receipt-method/dto.schemas.d.ts +418 -0
- package/dist/src/receipt-method/index.d.ts +7 -0
- package/dist/src/receipt-method/permissions.d.ts +4 -0
- package/dist/src/receipt-method/router.d.ts +602 -0
- package/dist/src/receipt-method/schema.d.ts +205 -0
- package/dist/src/receipt-method/service.d.ts +152 -0
- package/dist/src/referral/admin.router.d.ts +562 -0
- package/dist/src/referral/db.schemas.d.ts +420 -0
- package/dist/src/referral/dto.schemas.d.ts +665 -0
- package/dist/src/referral/errors/index.d.ts +14 -0
- package/dist/src/referral/errors/locales/zh.d.ts +13 -0
- package/dist/src/referral/index.d.ts +6 -0
- package/dist/src/referral/permissions.d.ts +8 -0
- package/dist/src/referral/router.d.ts +579 -0
- package/dist/src/referral/schema.d.ts +235 -0
- package/dist/src/referral/service.d.ts +42 -0
- package/dist/src/referral-depth-config/admin.router.d.ts +646 -0
- package/dist/src/referral-depth-config/db.schemas.d.ts +176 -0
- package/dist/src/referral-depth-config/dto.schemas.d.ts +208 -0
- package/dist/src/referral-depth-config/errors/index.d.ts +11 -0
- package/dist/src/referral-depth-config/errors/locales/zh.d.ts +10 -0
- package/dist/src/referral-depth-config/index.d.ts +5 -0
- package/dist/src/referral-depth-config/permissions.d.ts +8 -0
- package/dist/src/referral-depth-config/schema.d.ts +99 -0
- package/dist/src/referral-depth-config/service.d.ts +56 -0
- package/dist/src/server-test/errors/index.d.ts +10 -0
- package/dist/src/server-test/errors/locales/zh.d.ts +9 -0
- package/dist/src/server-test/index.d.ts +486 -0
- package/dist/src/shipping-address/admin.router.d.ts +507 -0
- package/dist/src/shipping-address/db.schemas.d.ts +278 -0
- package/dist/src/shipping-address/dto.schemas.d.ts +303 -0
- package/dist/src/shipping-address/index.d.ts +7 -0
- package/dist/src/shipping-address/permissions.d.ts +4 -0
- package/dist/src/shipping-address/router.d.ts +621 -0
- package/dist/src/shipping-address/schema.d.ts +150 -0
- package/dist/src/shipping-address/service.d.ts +109 -0
- package/dist/src/sms/index.d.ts +5 -0
- package/dist/src/subscription/admin.router.d.ts +818 -0
- package/dist/src/subscription/cron.d.ts +53 -0
- package/dist/src/subscription/db.schemas.d.ts +896 -0
- package/dist/src/subscription/dto.schemas.d.ts +1942 -0
- package/dist/src/subscription/errors/index.d.ts +21 -0
- package/dist/src/subscription/errors/locales/zh.d.ts +20 -0
- package/dist/src/subscription/index.d.ts +7 -0
- package/dist/src/subscription/permissions.d.ts +5 -0
- package/dist/src/subscription/router.d.ts +625 -0
- package/dist/src/subscription/schema.d.ts +475 -0
- package/dist/src/subscription/service.d.ts +306 -0
- package/dist/src/team/admin.router.d.ts +569 -0
- package/dist/src/team/dto.schemas.d.ts +2110 -0
- package/dist/src/team/errors/index.d.ts +12 -0
- package/dist/src/team/errors/locales/zh.d.ts +11 -0
- package/dist/src/team/index.d.ts +5 -0
- package/dist/src/team/permissions.d.ts +7 -0
- package/dist/src/team/router.d.ts +737 -0
- package/dist/src/team/service.d.ts +40 -0
- package/dist/src/transfer/admin.router.d.ts +595 -0
- package/dist/src/transfer/db.schemas.d.ts +318 -0
- package/dist/src/transfer/dto.schemas.d.ts +4209 -0
- package/dist/src/transfer/errors/index.d.ts +32 -0
- package/dist/src/transfer/errors/locales/zh.d.ts +19 -0
- package/dist/src/transfer/index.d.ts +8 -0
- package/dist/src/transfer/permissions.d.ts +8 -0
- package/dist/src/transfer/router.d.ts +597 -0
- package/dist/src/transfer/schema.d.ts +169 -0
- package/dist/src/transfer/service.d.ts +232 -0
- package/dist/src/user/admin.router.d.ts +827 -0
- package/dist/src/user/db.schemas.d.ts +1038 -0
- package/dist/src/user/dto.schemas.d.ts +1446 -0
- package/dist/src/user/errors/index.d.ts +38 -0
- package/dist/src/user/errors/locales/zh.d.ts +22 -0
- package/dist/src/user/index.d.ts +7 -0
- package/dist/src/user/permissions.d.ts +7 -0
- package/dist/src/user/router.d.ts +560 -0
- package/dist/src/user/schema.d.ts +541 -0
- package/dist/src/user/service.d.ts +294 -0
- package/dist/src/user-kyc/admin.router.d.ts +669 -0
- package/dist/src/user-kyc/db.schemas.d.ts +896 -0
- package/dist/src/user-kyc/dto.schemas.d.ts +939 -0
- package/dist/src/user-kyc/errors/index.d.ts +21 -0
- package/dist/src/user-kyc/errors/locales/zh.d.ts +14 -0
- package/dist/src/user-kyc/index.d.ts +8 -0
- package/dist/src/user-kyc/permissions.d.ts +6 -0
- package/dist/src/user-kyc/router.d.ts +602 -0
- package/dist/src/user-kyc/schema.d.ts +474 -0
- package/dist/src/user-kyc/service.d.ts +170 -0
- package/dist/src/user-security/admin.router.d.ts +493 -0
- package/dist/src/user-security/db.schemas.d.ts +414 -0
- package/dist/src/user-security/dto.schemas.d.ts +36 -0
- package/dist/src/user-security/index.d.ts +6 -0
- package/dist/src/user-security/router.d.ts +547 -0
- package/dist/src/user-security/schema.d.ts +215 -0
- package/dist/src/user-security/service.d.ts +51 -0
- package/dist/src/utils/date.d.ts +21 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/order.d.ts +6 -0
- package/dist/src/utils/pagination.d.ts +113 -0
- package/dist/src/utils/password.d.ts +8 -0
- package/dist/src/wallet/admin.router.d.ts +616 -0
- package/dist/src/wallet/db.schemas.d.ts +278 -0
- package/dist/src/wallet/dto.schemas.d.ts +1690 -0
- package/dist/src/wallet/ensure.d.ts +11 -0
- package/dist/src/wallet/index.d.ts +6 -0
- package/dist/src/wallet/router.d.ts +654 -0
- package/dist/src/wallet/schema.d.ts +152 -0
- package/dist/src/wallet/service.d.ts +225 -0
- package/dist/src/wallet-import/admin.router.d.ts +690 -0
- package/dist/src/wallet-import/db.schemas.d.ts +1070 -0
- package/dist/src/wallet-import/dto.schemas.d.ts +1119 -0
- package/dist/src/wallet-import/errors/index.d.ts +17 -0
- package/dist/src/wallet-import/errors/locales/zh.d.ts +16 -0
- package/dist/src/wallet-import/index.d.ts +8 -0
- package/dist/src/wallet-import/permissions.d.ts +7 -0
- package/dist/src/wallet-import/schema.d.ts +566 -0
- package/dist/src/wallet-import/service.d.ts +101 -0
- package/dist/src/wallet-import/worker.d.ts +1 -0
- package/dist/src/wallet-transfer/dto.schemas.d.ts +64 -0
- package/dist/src/wallet-transfer/errors/index.d.ts +25 -0
- package/dist/src/wallet-transfer/errors/locales/zh.d.ts +16 -0
- package/dist/src/wallet-transfer/index.d.ts +4 -0
- package/dist/src/wallet-transfer/router.d.ts +465 -0
- package/dist/src/wallet-transfer/service.d.ts +26 -0
- package/dist/src/wallet-type/admin.router.d.ts +767 -0
- package/dist/src/wallet-type/constants.d.ts +4 -0
- package/dist/src/wallet-type/db.schemas.d.ts +794 -0
- package/dist/src/wallet-type/dto.schemas.d.ts +160 -0
- package/dist/src/wallet-type/errors/index.d.ts +25 -0
- package/dist/src/wallet-type/errors/locales/zh.d.ts +16 -0
- package/dist/src/wallet-type/index.d.ts +7 -0
- package/dist/src/wallet-type/permissions.d.ts +5 -0
- package/dist/src/wallet-type/schema.d.ts +408 -0
- package/dist/src/wallet-type/seed.d.ts +4 -0
- package/dist/src/wallet-type/service.d.ts +208 -0
- package/dist/src/withdraw/admin.router.d.ts +654 -0
- package/dist/src/withdraw/db.schemas.d.ts +516 -0
- package/dist/src/withdraw/dto.schemas.d.ts +816 -0
- package/dist/src/withdraw/errors/index.d.ts +41 -0
- package/dist/src/withdraw/errors/locales/zh.d.ts +22 -0
- package/dist/src/withdraw/index.d.ts +7 -0
- package/dist/src/withdraw/permissions.d.ts +9 -0
- package/dist/src/withdraw/router.d.ts +522 -0
- package/dist/src/withdraw/schema.d.ts +272 -0
- package/dist/src/withdraw/service.d.ts +143 -0
- package/package.json +19 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { TeamAdminMemberListQueryType, TeamAdminSummaryResponseType, TeamCheckInCountQueryType, TeamCheckInCountResponseType, TeamCheckInListQueryType, TeamCheckInListResponseType, TeamDashboardSummaryQueryType, TeamDashboardSummaryResponseType, TeamEarningsQueryType, TeamEarningsSummaryResponseType, TeamLeaderResponseType, TeamMemberListQueryType, TeamMemberListResponseType } from "./dto.schemas";
|
|
2
|
+
/**
|
|
3
|
+
* 团队基础服务(抽象类)
|
|
4
|
+
*/
|
|
5
|
+
declare abstract class BaseTeamService {
|
|
6
|
+
protected static validateUserId(userId: string): void;
|
|
7
|
+
protected static getUserTimezone(userId: string): Promise<string | undefined>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 用户侧服务
|
|
11
|
+
*/
|
|
12
|
+
export declare abstract class UserTeamService extends BaseTeamService {
|
|
13
|
+
/** 查询我的团长(直属上级) */
|
|
14
|
+
static getLeader(userId: string): Promise<TeamLeaderResponseType>;
|
|
15
|
+
/** 按精确层级查询下级列表 */
|
|
16
|
+
static listMembers(userId: string, query: TeamMemberListQueryType): Promise<TeamMemberListResponseType>;
|
|
17
|
+
/** 团队收益(总收益 + 今日收益) */
|
|
18
|
+
static getEarningsSummary(userId: string, query: TeamEarningsQueryType): Promise<TeamEarningsSummaryResponseType>;
|
|
19
|
+
/** 团队看板汇总 */
|
|
20
|
+
static getDashboardSummary(userId: string, query: TeamDashboardSummaryQueryType): Promise<TeamDashboardSummaryResponseType>;
|
|
21
|
+
/** 查询团队今日签到人数(<= depth) */
|
|
22
|
+
static getCheckInCount(userId: string, query: TeamCheckInCountQueryType): Promise<TeamCheckInCountResponseType>;
|
|
23
|
+
/** 按层级查询团队今日签到列表 */
|
|
24
|
+
static listCheckIns(userId: string, query: TeamCheckInListQueryType): Promise<TeamCheckInListResponseType>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 管理侧服务(预留)
|
|
28
|
+
*/
|
|
29
|
+
export declare abstract class AdminTeamService extends BaseTeamService {
|
|
30
|
+
/** 管理侧:按邀请码获取团队汇总(一级/二级/三级/总人数) */
|
|
31
|
+
static getSummaryByReferralCode(referralCode: string): Promise<TeamAdminSummaryResponseType>;
|
|
32
|
+
/** 管理侧:按邀请码查询团队成员(精确层级或全部) */
|
|
33
|
+
static listMembersByReferralCode(query: TeamAdminMemberListQueryType): Promise<TeamMemberListResponseType>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 内部服务(预留)
|
|
37
|
+
*/
|
|
38
|
+
export declare abstract class InternalTeamService extends BaseTeamService {
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
export declare const transferAdminRouter: Elysia<"/transfer", {
|
|
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
|
+
schema: {};
|
|
19
|
+
standaloneSchema: {};
|
|
20
|
+
macro: Partial<{
|
|
21
|
+
readonly auth: boolean;
|
|
22
|
+
readonly admin: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
macroFn: {
|
|
25
|
+
readonly auth: {
|
|
26
|
+
readonly resolve: ({ status, request: { headers } }: {
|
|
27
|
+
body: unknown;
|
|
28
|
+
query: Record<string, string>;
|
|
29
|
+
params: {};
|
|
30
|
+
headers: Record<string, string | undefined>;
|
|
31
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
32
|
+
server: import("elysia/universal/server").Server | null;
|
|
33
|
+
redirect: import("elysia").redirect;
|
|
34
|
+
set: {
|
|
35
|
+
headers: import("elysia").HTTPHeaders;
|
|
36
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
37
|
+
redirect?: string;
|
|
38
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
39
|
+
};
|
|
40
|
+
path: string;
|
|
41
|
+
route: string;
|
|
42
|
+
request: Request;
|
|
43
|
+
store: {};
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
|
+
readonly 100: "Continue";
|
|
46
|
+
readonly 101: "Switching Protocols";
|
|
47
|
+
readonly 102: "Processing";
|
|
48
|
+
readonly 103: "Early Hints";
|
|
49
|
+
readonly 200: "OK";
|
|
50
|
+
readonly 201: "Created";
|
|
51
|
+
readonly 202: "Accepted";
|
|
52
|
+
readonly 203: "Non-Authoritative Information";
|
|
53
|
+
readonly 204: "No Content";
|
|
54
|
+
readonly 205: "Reset Content";
|
|
55
|
+
readonly 206: "Partial Content";
|
|
56
|
+
readonly 207: "Multi-Status";
|
|
57
|
+
readonly 208: "Already Reported";
|
|
58
|
+
readonly 300: "Multiple Choices";
|
|
59
|
+
readonly 301: "Moved Permanently";
|
|
60
|
+
readonly 302: "Found";
|
|
61
|
+
readonly 303: "See Other";
|
|
62
|
+
readonly 304: "Not Modified";
|
|
63
|
+
readonly 307: "Temporary Redirect";
|
|
64
|
+
readonly 308: "Permanent Redirect";
|
|
65
|
+
readonly 400: "Bad Request";
|
|
66
|
+
readonly 401: "Unauthorized";
|
|
67
|
+
readonly 402: "Payment Required";
|
|
68
|
+
readonly 403: "Forbidden";
|
|
69
|
+
readonly 404: "Not Found";
|
|
70
|
+
readonly 405: "Method Not Allowed";
|
|
71
|
+
readonly 406: "Not Acceptable";
|
|
72
|
+
readonly 407: "Proxy Authentication Required";
|
|
73
|
+
readonly 408: "Request Timeout";
|
|
74
|
+
readonly 409: "Conflict";
|
|
75
|
+
readonly 410: "Gone";
|
|
76
|
+
readonly 411: "Length Required";
|
|
77
|
+
readonly 412: "Precondition Failed";
|
|
78
|
+
readonly 413: "Payload Too Large";
|
|
79
|
+
readonly 414: "URI Too Long";
|
|
80
|
+
readonly 415: "Unsupported Media Type";
|
|
81
|
+
readonly 416: "Range Not Satisfiable";
|
|
82
|
+
readonly 417: "Expectation Failed";
|
|
83
|
+
readonly 418: "I'm a teapot";
|
|
84
|
+
readonly 420: "Enhance Your Calm";
|
|
85
|
+
readonly 421: "Misdirected Request";
|
|
86
|
+
readonly 422: "Unprocessable Content";
|
|
87
|
+
readonly 423: "Locked";
|
|
88
|
+
readonly 424: "Failed Dependency";
|
|
89
|
+
readonly 425: "Too Early";
|
|
90
|
+
readonly 426: "Upgrade Required";
|
|
91
|
+
readonly 428: "Precondition Required";
|
|
92
|
+
readonly 429: "Too Many Requests";
|
|
93
|
+
readonly 431: "Request Header Fields Too Large";
|
|
94
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
95
|
+
readonly 500: "Internal Server Error";
|
|
96
|
+
readonly 501: "Not Implemented";
|
|
97
|
+
readonly 502: "Bad Gateway";
|
|
98
|
+
readonly 503: "Service Unavailable";
|
|
99
|
+
readonly 504: "Gateway Timeout";
|
|
100
|
+
readonly 505: "HTTP Version Not Supported";
|
|
101
|
+
readonly 506: "Variant Also Negotiates";
|
|
102
|
+
readonly 507: "Insufficient Storage";
|
|
103
|
+
readonly 508: "Loop Detected";
|
|
104
|
+
readonly 510: "Not Extended";
|
|
105
|
+
readonly 511: "Network Authentication Required";
|
|
106
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
107
|
+
readonly Continue: 100;
|
|
108
|
+
readonly "Switching Protocols": 101;
|
|
109
|
+
readonly Processing: 102;
|
|
110
|
+
readonly "Early Hints": 103;
|
|
111
|
+
readonly OK: 200;
|
|
112
|
+
readonly Created: 201;
|
|
113
|
+
readonly Accepted: 202;
|
|
114
|
+
readonly "Non-Authoritative Information": 203;
|
|
115
|
+
readonly "No Content": 204;
|
|
116
|
+
readonly "Reset Content": 205;
|
|
117
|
+
readonly "Partial Content": 206;
|
|
118
|
+
readonly "Multi-Status": 207;
|
|
119
|
+
readonly "Already Reported": 208;
|
|
120
|
+
readonly "Multiple Choices": 300;
|
|
121
|
+
readonly "Moved Permanently": 301;
|
|
122
|
+
readonly Found: 302;
|
|
123
|
+
readonly "See Other": 303;
|
|
124
|
+
readonly "Not Modified": 304;
|
|
125
|
+
readonly "Temporary Redirect": 307;
|
|
126
|
+
readonly "Permanent Redirect": 308;
|
|
127
|
+
readonly "Bad Request": 400;
|
|
128
|
+
readonly Unauthorized: 401;
|
|
129
|
+
readonly "Payment Required": 402;
|
|
130
|
+
readonly Forbidden: 403;
|
|
131
|
+
readonly "Not Found": 404;
|
|
132
|
+
readonly "Method Not Allowed": 405;
|
|
133
|
+
readonly "Not Acceptable": 406;
|
|
134
|
+
readonly "Proxy Authentication Required": 407;
|
|
135
|
+
readonly "Request Timeout": 408;
|
|
136
|
+
readonly Conflict: 409;
|
|
137
|
+
readonly Gone: 410;
|
|
138
|
+
readonly "Length Required": 411;
|
|
139
|
+
readonly "Precondition Failed": 412;
|
|
140
|
+
readonly "Payload Too Large": 413;
|
|
141
|
+
readonly "URI Too Long": 414;
|
|
142
|
+
readonly "Unsupported Media Type": 415;
|
|
143
|
+
readonly "Range Not Satisfiable": 416;
|
|
144
|
+
readonly "Expectation Failed": 417;
|
|
145
|
+
readonly "I'm a teapot": 418;
|
|
146
|
+
readonly "Enhance Your Calm": 420;
|
|
147
|
+
readonly "Misdirected Request": 421;
|
|
148
|
+
readonly "Unprocessable Content": 422;
|
|
149
|
+
readonly Locked: 423;
|
|
150
|
+
readonly "Failed Dependency": 424;
|
|
151
|
+
readonly "Too Early": 425;
|
|
152
|
+
readonly "Upgrade Required": 426;
|
|
153
|
+
readonly "Precondition Required": 428;
|
|
154
|
+
readonly "Too Many Requests": 429;
|
|
155
|
+
readonly "Request Header Fields Too Large": 431;
|
|
156
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
157
|
+
readonly "Internal Server Error": 500;
|
|
158
|
+
readonly "Not Implemented": 501;
|
|
159
|
+
readonly "Bad Gateway": 502;
|
|
160
|
+
readonly "Service Unavailable": 503;
|
|
161
|
+
readonly "Gateway Timeout": 504;
|
|
162
|
+
readonly "HTTP Version Not Supported": 505;
|
|
163
|
+
readonly "Variant Also Negotiates": 506;
|
|
164
|
+
readonly "Insufficient Storage": 507;
|
|
165
|
+
readonly "Loop Detected": 508;
|
|
166
|
+
readonly "Not Extended": 510;
|
|
167
|
+
readonly "Network Authentication Required": 511;
|
|
168
|
+
}[Code] : Code>;
|
|
169
|
+
}) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
|
|
170
|
+
user: {
|
|
171
|
+
id: string;
|
|
172
|
+
createdAt: Date;
|
|
173
|
+
updatedAt: Date;
|
|
174
|
+
email: string;
|
|
175
|
+
emailVerified: boolean;
|
|
176
|
+
name: string;
|
|
177
|
+
image?: string | null | undefined | undefined;
|
|
178
|
+
phoneNumber?: string | null | undefined;
|
|
179
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
180
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
181
|
+
username?: string | null | undefined;
|
|
182
|
+
displayUsername?: string | null | undefined;
|
|
183
|
+
banned: boolean | null | undefined;
|
|
184
|
+
role?: string | null | undefined;
|
|
185
|
+
banReason?: string | null | undefined;
|
|
186
|
+
banExpires?: Date | null | undefined;
|
|
187
|
+
};
|
|
188
|
+
session: {
|
|
189
|
+
id: string;
|
|
190
|
+
createdAt: Date;
|
|
191
|
+
updatedAt: Date;
|
|
192
|
+
userId: string;
|
|
193
|
+
expiresAt: Date;
|
|
194
|
+
token: string;
|
|
195
|
+
ipAddress?: string | null | undefined | undefined;
|
|
196
|
+
userAgent?: string | null | undefined | undefined;
|
|
197
|
+
impersonatedBy?: string | null | undefined;
|
|
198
|
+
};
|
|
199
|
+
}>;
|
|
200
|
+
};
|
|
201
|
+
readonly admin: {
|
|
202
|
+
readonly resolve: ({ status, request: { headers } }: {
|
|
203
|
+
body: unknown;
|
|
204
|
+
query: Record<string, string>;
|
|
205
|
+
params: {};
|
|
206
|
+
headers: Record<string, string | undefined>;
|
|
207
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
208
|
+
server: import("elysia/universal/server").Server | null;
|
|
209
|
+
redirect: import("elysia").redirect;
|
|
210
|
+
set: {
|
|
211
|
+
headers: import("elysia").HTTPHeaders;
|
|
212
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
213
|
+
redirect?: string;
|
|
214
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
215
|
+
};
|
|
216
|
+
path: string;
|
|
217
|
+
route: string;
|
|
218
|
+
request: Request;
|
|
219
|
+
store: {};
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
|
+
readonly 100: "Continue";
|
|
222
|
+
readonly 101: "Switching Protocols";
|
|
223
|
+
readonly 102: "Processing";
|
|
224
|
+
readonly 103: "Early Hints";
|
|
225
|
+
readonly 200: "OK";
|
|
226
|
+
readonly 201: "Created";
|
|
227
|
+
readonly 202: "Accepted";
|
|
228
|
+
readonly 203: "Non-Authoritative Information";
|
|
229
|
+
readonly 204: "No Content";
|
|
230
|
+
readonly 205: "Reset Content";
|
|
231
|
+
readonly 206: "Partial Content";
|
|
232
|
+
readonly 207: "Multi-Status";
|
|
233
|
+
readonly 208: "Already Reported";
|
|
234
|
+
readonly 300: "Multiple Choices";
|
|
235
|
+
readonly 301: "Moved Permanently";
|
|
236
|
+
readonly 302: "Found";
|
|
237
|
+
readonly 303: "See Other";
|
|
238
|
+
readonly 304: "Not Modified";
|
|
239
|
+
readonly 307: "Temporary Redirect";
|
|
240
|
+
readonly 308: "Permanent Redirect";
|
|
241
|
+
readonly 400: "Bad Request";
|
|
242
|
+
readonly 401: "Unauthorized";
|
|
243
|
+
readonly 402: "Payment Required";
|
|
244
|
+
readonly 403: "Forbidden";
|
|
245
|
+
readonly 404: "Not Found";
|
|
246
|
+
readonly 405: "Method Not Allowed";
|
|
247
|
+
readonly 406: "Not Acceptable";
|
|
248
|
+
readonly 407: "Proxy Authentication Required";
|
|
249
|
+
readonly 408: "Request Timeout";
|
|
250
|
+
readonly 409: "Conflict";
|
|
251
|
+
readonly 410: "Gone";
|
|
252
|
+
readonly 411: "Length Required";
|
|
253
|
+
readonly 412: "Precondition Failed";
|
|
254
|
+
readonly 413: "Payload Too Large";
|
|
255
|
+
readonly 414: "URI Too Long";
|
|
256
|
+
readonly 415: "Unsupported Media Type";
|
|
257
|
+
readonly 416: "Range Not Satisfiable";
|
|
258
|
+
readonly 417: "Expectation Failed";
|
|
259
|
+
readonly 418: "I'm a teapot";
|
|
260
|
+
readonly 420: "Enhance Your Calm";
|
|
261
|
+
readonly 421: "Misdirected Request";
|
|
262
|
+
readonly 422: "Unprocessable Content";
|
|
263
|
+
readonly 423: "Locked";
|
|
264
|
+
readonly 424: "Failed Dependency";
|
|
265
|
+
readonly 425: "Too Early";
|
|
266
|
+
readonly 426: "Upgrade Required";
|
|
267
|
+
readonly 428: "Precondition Required";
|
|
268
|
+
readonly 429: "Too Many Requests";
|
|
269
|
+
readonly 431: "Request Header Fields Too Large";
|
|
270
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
271
|
+
readonly 500: "Internal Server Error";
|
|
272
|
+
readonly 501: "Not Implemented";
|
|
273
|
+
readonly 502: "Bad Gateway";
|
|
274
|
+
readonly 503: "Service Unavailable";
|
|
275
|
+
readonly 504: "Gateway Timeout";
|
|
276
|
+
readonly 505: "HTTP Version Not Supported";
|
|
277
|
+
readonly 506: "Variant Also Negotiates";
|
|
278
|
+
readonly 507: "Insufficient Storage";
|
|
279
|
+
readonly 508: "Loop Detected";
|
|
280
|
+
readonly 510: "Not Extended";
|
|
281
|
+
readonly 511: "Network Authentication Required";
|
|
282
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
283
|
+
readonly Continue: 100;
|
|
284
|
+
readonly "Switching Protocols": 101;
|
|
285
|
+
readonly Processing: 102;
|
|
286
|
+
readonly "Early Hints": 103;
|
|
287
|
+
readonly OK: 200;
|
|
288
|
+
readonly Created: 201;
|
|
289
|
+
readonly Accepted: 202;
|
|
290
|
+
readonly "Non-Authoritative Information": 203;
|
|
291
|
+
readonly "No Content": 204;
|
|
292
|
+
readonly "Reset Content": 205;
|
|
293
|
+
readonly "Partial Content": 206;
|
|
294
|
+
readonly "Multi-Status": 207;
|
|
295
|
+
readonly "Already Reported": 208;
|
|
296
|
+
readonly "Multiple Choices": 300;
|
|
297
|
+
readonly "Moved Permanently": 301;
|
|
298
|
+
readonly Found: 302;
|
|
299
|
+
readonly "See Other": 303;
|
|
300
|
+
readonly "Not Modified": 304;
|
|
301
|
+
readonly "Temporary Redirect": 307;
|
|
302
|
+
readonly "Permanent Redirect": 308;
|
|
303
|
+
readonly "Bad Request": 400;
|
|
304
|
+
readonly Unauthorized: 401;
|
|
305
|
+
readonly "Payment Required": 402;
|
|
306
|
+
readonly Forbidden: 403;
|
|
307
|
+
readonly "Not Found": 404;
|
|
308
|
+
readonly "Method Not Allowed": 405;
|
|
309
|
+
readonly "Not Acceptable": 406;
|
|
310
|
+
readonly "Proxy Authentication Required": 407;
|
|
311
|
+
readonly "Request Timeout": 408;
|
|
312
|
+
readonly Conflict: 409;
|
|
313
|
+
readonly Gone: 410;
|
|
314
|
+
readonly "Length Required": 411;
|
|
315
|
+
readonly "Precondition Failed": 412;
|
|
316
|
+
readonly "Payload Too Large": 413;
|
|
317
|
+
readonly "URI Too Long": 414;
|
|
318
|
+
readonly "Unsupported Media Type": 415;
|
|
319
|
+
readonly "Range Not Satisfiable": 416;
|
|
320
|
+
readonly "Expectation Failed": 417;
|
|
321
|
+
readonly "I'm a teapot": 418;
|
|
322
|
+
readonly "Enhance Your Calm": 420;
|
|
323
|
+
readonly "Misdirected Request": 421;
|
|
324
|
+
readonly "Unprocessable Content": 422;
|
|
325
|
+
readonly Locked: 423;
|
|
326
|
+
readonly "Failed Dependency": 424;
|
|
327
|
+
readonly "Too Early": 425;
|
|
328
|
+
readonly "Upgrade Required": 426;
|
|
329
|
+
readonly "Precondition Required": 428;
|
|
330
|
+
readonly "Too Many Requests": 429;
|
|
331
|
+
readonly "Request Header Fields Too Large": 431;
|
|
332
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
333
|
+
readonly "Internal Server Error": 500;
|
|
334
|
+
readonly "Not Implemented": 501;
|
|
335
|
+
readonly "Bad Gateway": 502;
|
|
336
|
+
readonly "Service Unavailable": 503;
|
|
337
|
+
readonly "Gateway Timeout": 504;
|
|
338
|
+
readonly "HTTP Version Not Supported": 505;
|
|
339
|
+
readonly "Variant Also Negotiates": 506;
|
|
340
|
+
readonly "Insufficient Storage": 507;
|
|
341
|
+
readonly "Loop Detected": 508;
|
|
342
|
+
readonly "Not Extended": 510;
|
|
343
|
+
readonly "Network Authentication Required": 511;
|
|
344
|
+
}[Code] : Code>;
|
|
345
|
+
}) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
|
|
346
|
+
user: {
|
|
347
|
+
id: string;
|
|
348
|
+
createdAt: Date;
|
|
349
|
+
updatedAt: Date;
|
|
350
|
+
email: string;
|
|
351
|
+
emailVerified: boolean;
|
|
352
|
+
name: string;
|
|
353
|
+
image?: string | null | undefined | undefined;
|
|
354
|
+
phoneNumber?: string | null | undefined;
|
|
355
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
356
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
357
|
+
username?: string | null | undefined;
|
|
358
|
+
displayUsername?: string | null | undefined;
|
|
359
|
+
banned: boolean | null | undefined;
|
|
360
|
+
role?: string | null | undefined;
|
|
361
|
+
banReason?: string | null | undefined;
|
|
362
|
+
banExpires?: Date | null | undefined;
|
|
363
|
+
};
|
|
364
|
+
session: {
|
|
365
|
+
id: string;
|
|
366
|
+
createdAt: Date;
|
|
367
|
+
updatedAt: Date;
|
|
368
|
+
userId: string;
|
|
369
|
+
expiresAt: Date;
|
|
370
|
+
token: string;
|
|
371
|
+
ipAddress?: string | null | undefined | undefined;
|
|
372
|
+
userAgent?: string | null | undefined | undefined;
|
|
373
|
+
impersonatedBy?: string | null | undefined;
|
|
374
|
+
};
|
|
375
|
+
}>;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
parser: {};
|
|
379
|
+
response: {};
|
|
380
|
+
}, {
|
|
381
|
+
transfer: {};
|
|
382
|
+
} & {
|
|
383
|
+
transfer: {
|
|
384
|
+
get: {
|
|
385
|
+
body: unknown;
|
|
386
|
+
params: {};
|
|
387
|
+
query: {
|
|
388
|
+
limit?: number | undefined;
|
|
389
|
+
offset?: number | undefined;
|
|
390
|
+
pageSize?: number | undefined;
|
|
391
|
+
pageIndex?: number | undefined;
|
|
392
|
+
};
|
|
393
|
+
headers: unknown;
|
|
394
|
+
response: {
|
|
395
|
+
200: {
|
|
396
|
+
data: {
|
|
397
|
+
id: string;
|
|
398
|
+
createdAt: Date;
|
|
399
|
+
updatedAt: Date;
|
|
400
|
+
amount: string;
|
|
401
|
+
orderNo: string;
|
|
402
|
+
sourceUserId: string;
|
|
403
|
+
targetUserId: string;
|
|
404
|
+
sourceWalletTypeId: string;
|
|
405
|
+
targetWalletTypeId: string;
|
|
406
|
+
sourceUser: {
|
|
407
|
+
email: string;
|
|
408
|
+
id: string;
|
|
409
|
+
name: string;
|
|
410
|
+
emailVerified: boolean;
|
|
411
|
+
image: string | null;
|
|
412
|
+
createdAt: Date;
|
|
413
|
+
updatedAt: Date;
|
|
414
|
+
twoFactorEnabled: boolean | null;
|
|
415
|
+
username: string | null;
|
|
416
|
+
displayUsername: string | null;
|
|
417
|
+
isAnonymous: boolean | null;
|
|
418
|
+
phoneNumber: string | null;
|
|
419
|
+
phoneNumberVerified: boolean | null;
|
|
420
|
+
role: string | null;
|
|
421
|
+
banned: boolean | null;
|
|
422
|
+
banReason: string | null;
|
|
423
|
+
banExpires: Date | null;
|
|
424
|
+
};
|
|
425
|
+
targetUser: {
|
|
426
|
+
email: string;
|
|
427
|
+
id: string;
|
|
428
|
+
name: string;
|
|
429
|
+
emailVerified: boolean;
|
|
430
|
+
image: string | null;
|
|
431
|
+
createdAt: Date;
|
|
432
|
+
updatedAt: Date;
|
|
433
|
+
twoFactorEnabled: boolean | null;
|
|
434
|
+
username: string | null;
|
|
435
|
+
displayUsername: string | null;
|
|
436
|
+
isAnonymous: boolean | null;
|
|
437
|
+
phoneNumber: string | null;
|
|
438
|
+
phoneNumberVerified: boolean | null;
|
|
439
|
+
role: string | null;
|
|
440
|
+
banned: boolean | null;
|
|
441
|
+
banReason: string | null;
|
|
442
|
+
banExpires: Date | null;
|
|
443
|
+
};
|
|
444
|
+
sourceWalletType: {
|
|
445
|
+
id: string;
|
|
446
|
+
name: string;
|
|
447
|
+
createdAt: Date;
|
|
448
|
+
updatedAt: Date;
|
|
449
|
+
description: string | null;
|
|
450
|
+
code: "balance" | "profit" | "team" | "check_in" | "meeting_reward" | "reform_pioneer_allowance" | "reform_monthly_enjoy" | "basic_livelihood" | "basic_pension" | "basic_medical";
|
|
451
|
+
allowDeposit: boolean;
|
|
452
|
+
allowWithdraw: boolean;
|
|
453
|
+
minWithdrawAmount: string;
|
|
454
|
+
maxWithdrawAmount: string;
|
|
455
|
+
allowTransfer: boolean;
|
|
456
|
+
minTransferAmount: string;
|
|
457
|
+
maxTransferAmount: string;
|
|
458
|
+
allowExchange: boolean;
|
|
459
|
+
allowReceiveExchange: boolean;
|
|
460
|
+
minExchangeAmount: string;
|
|
461
|
+
maxExchangeAmount: string;
|
|
462
|
+
exchangeRate: string;
|
|
463
|
+
allowTransaction: boolean;
|
|
464
|
+
hasExpiry: boolean;
|
|
465
|
+
expiryDays: number | null;
|
|
466
|
+
isActive: boolean;
|
|
467
|
+
sortOrder: number;
|
|
468
|
+
};
|
|
469
|
+
targetWalletType: {
|
|
470
|
+
id: string;
|
|
471
|
+
name: string;
|
|
472
|
+
createdAt: Date;
|
|
473
|
+
updatedAt: Date;
|
|
474
|
+
description: string | null;
|
|
475
|
+
code: "balance" | "profit" | "team" | "check_in" | "meeting_reward" | "reform_pioneer_allowance" | "reform_monthly_enjoy" | "basic_livelihood" | "basic_pension" | "basic_medical";
|
|
476
|
+
allowDeposit: boolean;
|
|
477
|
+
allowWithdraw: boolean;
|
|
478
|
+
minWithdrawAmount: string;
|
|
479
|
+
maxWithdrawAmount: string;
|
|
480
|
+
allowTransfer: boolean;
|
|
481
|
+
minTransferAmount: string;
|
|
482
|
+
maxTransferAmount: string;
|
|
483
|
+
allowExchange: boolean;
|
|
484
|
+
allowReceiveExchange: boolean;
|
|
485
|
+
minExchangeAmount: string;
|
|
486
|
+
maxExchangeAmount: string;
|
|
487
|
+
exchangeRate: string;
|
|
488
|
+
allowTransaction: boolean;
|
|
489
|
+
hasExpiry: boolean;
|
|
490
|
+
expiryDays: number | null;
|
|
491
|
+
isActive: boolean;
|
|
492
|
+
sortOrder: number;
|
|
493
|
+
};
|
|
494
|
+
}[];
|
|
495
|
+
pagination: {
|
|
496
|
+
total: number;
|
|
497
|
+
pageSize: number;
|
|
498
|
+
pageIndex: number;
|
|
499
|
+
totalPages: number;
|
|
500
|
+
hasNextPage: boolean;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
422: {
|
|
504
|
+
type: "validation";
|
|
505
|
+
on: string;
|
|
506
|
+
summary?: string;
|
|
507
|
+
message?: string;
|
|
508
|
+
found?: unknown;
|
|
509
|
+
property?: string;
|
|
510
|
+
expected?: string;
|
|
511
|
+
};
|
|
512
|
+
401: "Unauthorized";
|
|
513
|
+
403: "Forbidden: Admins only";
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
}, {
|
|
518
|
+
derive: {};
|
|
519
|
+
resolve: {};
|
|
520
|
+
schema: {};
|
|
521
|
+
standaloneSchema: {};
|
|
522
|
+
response: {};
|
|
523
|
+
}, {
|
|
524
|
+
derive: {};
|
|
525
|
+
resolve: {
|
|
526
|
+
user: {
|
|
527
|
+
id: string;
|
|
528
|
+
createdAt: Date;
|
|
529
|
+
updatedAt: Date;
|
|
530
|
+
email: string;
|
|
531
|
+
emailVerified: boolean;
|
|
532
|
+
name: string;
|
|
533
|
+
image?: string | null | undefined | undefined;
|
|
534
|
+
phoneNumber?: string | null | undefined;
|
|
535
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
536
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
537
|
+
username?: string | null | undefined;
|
|
538
|
+
displayUsername?: string | null | undefined;
|
|
539
|
+
banned: boolean | null | undefined;
|
|
540
|
+
role?: string | null | undefined;
|
|
541
|
+
banReason?: string | null | undefined;
|
|
542
|
+
banExpires?: Date | null | undefined;
|
|
543
|
+
};
|
|
544
|
+
session: {
|
|
545
|
+
id: string;
|
|
546
|
+
createdAt: Date;
|
|
547
|
+
updatedAt: Date;
|
|
548
|
+
userId: string;
|
|
549
|
+
expiresAt: Date;
|
|
550
|
+
token: string;
|
|
551
|
+
ipAddress?: string | null | undefined | undefined;
|
|
552
|
+
userAgent?: string | null | undefined | undefined;
|
|
553
|
+
impersonatedBy?: string | null | undefined;
|
|
554
|
+
};
|
|
555
|
+
} & {
|
|
556
|
+
user: {
|
|
557
|
+
id: string;
|
|
558
|
+
createdAt: Date;
|
|
559
|
+
updatedAt: Date;
|
|
560
|
+
email: string;
|
|
561
|
+
emailVerified: boolean;
|
|
562
|
+
name: string;
|
|
563
|
+
image?: string | null | undefined | undefined;
|
|
564
|
+
phoneNumber?: string | null | undefined;
|
|
565
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
566
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
567
|
+
username?: string | null | undefined;
|
|
568
|
+
displayUsername?: string | null | undefined;
|
|
569
|
+
banned: boolean | null | undefined;
|
|
570
|
+
role?: string | null | undefined;
|
|
571
|
+
banReason?: string | null | undefined;
|
|
572
|
+
banExpires?: Date | null | undefined;
|
|
573
|
+
};
|
|
574
|
+
session: {
|
|
575
|
+
id: string;
|
|
576
|
+
createdAt: Date;
|
|
577
|
+
updatedAt: Date;
|
|
578
|
+
userId: string;
|
|
579
|
+
expiresAt: Date;
|
|
580
|
+
token: string;
|
|
581
|
+
ipAddress?: string | null | undefined | undefined;
|
|
582
|
+
userAgent?: string | null | undefined | undefined;
|
|
583
|
+
impersonatedBy?: string | null | undefined;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
schema: {};
|
|
587
|
+
standaloneSchema: {};
|
|
588
|
+
response: {
|
|
589
|
+
401: "Unauthorized";
|
|
590
|
+
} & {
|
|
591
|
+
401: "Unauthorized";
|
|
592
|
+
} & {
|
|
593
|
+
403: "Forbidden: Admins only";
|
|
594
|
+
};
|
|
595
|
+
}>;
|