@r2wa-org/eden 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
- package/dist/src/admin/admin/router.d.ts +10 -12
- package/dist/src/admin/admin/service.d.ts +0 -2
- package/dist/src/admin/index.d.ts +1043 -54
- package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
- package/dist/src/asset/admin/router.d.ts +123 -20
- package/dist/src/asset/admin/service.d.ts +52 -4
- package/dist/src/asset/user/dto.schemas.d.ts +7 -15
- package/dist/src/asset/user/router.d.ts +9 -9
- package/dist/src/asset/user/service.d.ts +1 -1
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
- package/dist/src/asset-convert-product/admin/router.d.ts +564 -22
- package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
- package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
- package/dist/src/asset-convert-product/permissions.d.ts +2 -2
- package/dist/src/asset-convert-product/user/router.d.ts +8 -8
- package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
- package/dist/src/asset-price/admin/router.d.ts +125 -10
- package/dist/src/asset-price/admin/service.d.ts +157 -0
- package/dist/src/asset-price/errors/index.d.ts +2 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +2 -0
- package/dist/src/asset-price/internal/service.d.ts +1 -0
- package/dist/src/asset-price/user/router.d.ts +8 -8
- package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
- package/dist/src/asset-type/admin/router.d.ts +60 -18
- package/dist/src/asset-type/admin/service.d.ts +16 -6
- package/dist/src/asset-type/db.schemas.d.ts +6 -6
- package/dist/src/asset-type/errors/index.d.ts +6 -0
- package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
- package/dist/src/asset-type/internal/service.d.ts +4 -4
- package/dist/src/asset-type/permissions.d.ts +1 -1
- package/dist/src/asset-type/schema.d.ts +3 -5
- package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
- package/dist/src/asset-type/user/router.d.ts +10 -10
- package/dist/src/asset-type/user/service.d.ts +1 -1
- package/dist/src/auth/better-auth.d.ts +706 -451
- package/dist/src/auth/db.schemas.d.ts +27 -407
- package/dist/src/auth/permissions.d.ts +20 -20
- package/dist/src/auth/roles.d.ts +60 -60
- package/dist/src/auth/router.d.ts +6 -6
- package/dist/src/auth/schema.d.ts +8 -206
- package/dist/src/bank-account/admin/router.d.ts +10 -10
- package/dist/src/bank-account/user/router.d.ts +6 -6
- package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/admin/router.d.ts +10 -11
- package/dist/src/check-in/admin/service.d.ts +0 -1
- package/dist/src/check-in/internal/service.d.ts +0 -1
- package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/user/router.d.ts +8 -9
- package/dist/src/check-in/user/service.d.ts +0 -1
- package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/admin/router.d.ts +10 -11
- package/dist/src/deposit/admin/service.d.ts +0 -2
- package/dist/src/deposit/user/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/user/router.d.ts +8 -9
- package/dist/src/deposit/user/service.d.ts +0 -2
- package/dist/src/dynamic-env/admin.router.d.ts +10 -10
- package/dist/src/env/server.d.ts +1 -1
- package/dist/src/file-storage/admin/router.d.ts +10 -10
- package/dist/src/file-storage/share/router.d.ts +8 -8
- package/dist/src/file-storage/user/router.d.ts +8 -8
- package/dist/src/index.d.ts +1161 -137
- package/dist/src/ledger/admin/router.d.ts +10 -10
- package/dist/src/ledger/user/router.d.ts +8 -8
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +11 -11
- package/dist/src/ledger-account/user/router.d.ts +8 -8
- package/dist/src/ledger-account-import/admin/router.d.ts +10 -10
- package/dist/src/ledger-account-transfer/user/router.d.ts +8 -8
- package/dist/src/ledger-account-type/admin/router.d.ts +10 -10
- package/dist/src/ledger-account-type/user/router.d.ts +8 -8
- package/dist/src/market-data/admin/router.d.ts +10 -10
- package/dist/src/market-data/user/router.d.ts +8 -8
- package/dist/src/market-pricing/admin/router.d.ts +10 -10
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/admin/router.d.ts +10 -10
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/news/user/router.d.ts +8 -8
- package/dist/src/news-category/user/router.d.ts +6 -6
- package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
- package/dist/src/notification/admin/router.d.ts +10 -10
- package/dist/src/notification/user/dto.schemas.d.ts +2 -2
- package/dist/src/notification/user/router.d.ts +8 -8
- package/dist/src/receipt-method/admin/router.d.ts +10 -10
- package/dist/src/receipt-method/user/router.d.ts +6 -6
- package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
- package/dist/src/referral/admin/router.d.ts +10 -11
- package/dist/src/referral/user/dto.schemas.d.ts +2 -36
- package/dist/src/referral/user/router.d.ts +8 -9
- package/dist/src/referral-depth-config/admin/router.d.ts +10 -10
- package/dist/src/server-test/index.d.ts +6 -6
- package/dist/src/shipping-address/admin/router.d.ts +10 -10
- package/dist/src/shipping-address/user/router.d.ts +6 -6
- package/dist/src/team/admin/dto.schemas.d.ts +2 -36
- package/dist/src/team/admin/router.d.ts +10 -11
- package/dist/src/team/user/dto.schemas.d.ts +5 -90
- package/dist/src/team/user/router.d.ts +8 -11
- package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
- package/dist/src/trade-market/admin/router.d.ts +10 -10
- package/dist/src/trade-market/user/router.d.ts +8 -8
- package/dist/src/transfer/admin/router.d.ts +10 -10
- package/dist/src/transfer/admin/service.d.ts +0 -2
- package/dist/src/transfer/user/router.d.ts +8 -8
- package/dist/src/transfer/user/service.d.ts +0 -2
- package/dist/src/user/admin/dto.schemas.d.ts +1 -21
- package/dist/src/user/admin/router.d.ts +10 -15
- package/dist/src/user/admin/service.d.ts +0 -4
- package/dist/src/user/user/router.d.ts +6 -8
- package/dist/src/user/user/service.d.ts +0 -2
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/user-kyc/admin/router.d.ts +10 -10
- package/dist/src/user-kyc/user/router.d.ts +8 -8
- package/dist/src/user-security/admin/router.d.ts +10 -10
- package/dist/src/user-security/user/router.d.ts +8 -8
- package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
- package/dist/src/wallet/admin/router.d.ts +75 -10
- package/dist/src/wallet/admin/service.d.ts +46 -8
- package/dist/src/wallet/internal/service.d.ts +118 -14
- package/dist/src/wallet/user/dto.schemas.d.ts +4 -2
- package/dist/src/wallet/user/router.d.ts +10 -9
- package/dist/src/wallet/user/service.d.ts +18 -8
- package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
- package/dist/src/wallet-type/admin/router.d.ts +143 -10
- package/dist/src/wallet-type/admin/service.d.ts +51 -0
- package/dist/src/wallet-type/errors/index.d.ts +4 -0
- package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
- package/dist/src/wallet-type/internal/service.d.ts +37 -0
- package/dist/src/wallet-type/user/router.d.ts +8 -8
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/admin/router.d.ts +10 -10
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
- package/dist/src/welfare-cycle/user/router.d.ts +51 -56
- package/dist/src/welfare-cycle/user/service.d.ts +1 -1
- package/dist/src/withdraw/admin/router.d.ts +10 -10
- package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
- package/dist/src/withdraw/user/router.d.ts +55 -8
- package/dist/src/withdraw/user/service.d.ts +20 -1
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -175,11 +175,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
177
|
image?: string | null | undefined | undefined;
|
|
178
|
-
phoneNumber?: string | null | undefined;
|
|
179
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
180
178
|
twoFactorEnabled: boolean | null | undefined;
|
|
181
179
|
username?: string | null | undefined;
|
|
182
180
|
displayUsername?: string | null | undefined;
|
|
181
|
+
phoneNumber?: string | null | undefined;
|
|
182
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
183
183
|
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
185
|
banReason?: string | null | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -351,11 +351,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
353
|
image?: string | null | undefined | undefined;
|
|
354
|
-
phoneNumber?: string | null | undefined;
|
|
355
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
356
354
|
twoFactorEnabled: boolean | null | undefined;
|
|
357
355
|
username?: string | null | undefined;
|
|
358
356
|
displayUsername?: string | null | undefined;
|
|
357
|
+
phoneNumber?: string | null | undefined;
|
|
358
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
359
359
|
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
361
|
banReason?: string | null | undefined;
|
|
@@ -965,11 +965,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
965
965
|
emailVerified: boolean;
|
|
966
966
|
name: string;
|
|
967
967
|
image?: string | null | undefined | undefined;
|
|
968
|
-
phoneNumber?: string | null | undefined;
|
|
969
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
970
968
|
twoFactorEnabled: boolean | null | undefined;
|
|
971
969
|
username?: string | null | undefined;
|
|
972
970
|
displayUsername?: string | null | undefined;
|
|
971
|
+
phoneNumber?: string | null | undefined;
|
|
972
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
973
973
|
banned: boolean | null | undefined;
|
|
974
974
|
role?: string | null | undefined;
|
|
975
975
|
banReason?: string | null | undefined;
|
|
@@ -995,11 +995,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
995
995
|
emailVerified: boolean;
|
|
996
996
|
name: string;
|
|
997
997
|
image?: string | null | undefined | undefined;
|
|
998
|
-
phoneNumber?: string | null | undefined;
|
|
999
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
1000
998
|
twoFactorEnabled: boolean | null | undefined;
|
|
1001
999
|
username?: string | null | undefined;
|
|
1002
1000
|
displayUsername?: string | null | undefined;
|
|
1001
|
+
phoneNumber?: string | null | undefined;
|
|
1002
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
1003
1003
|
banned: boolean | null | undefined;
|
|
1004
1004
|
role?: string | null | undefined;
|
|
1005
1005
|
banReason?: string | null | undefined;
|
|
@@ -1172,6 +1172,7 @@ export declare const welfareCycleDailyPayoutListQuerySchema: import("@sinclair/t
|
|
|
1172
1172
|
completed: "completed";
|
|
1173
1173
|
failed: "failed";
|
|
1174
1174
|
}>>;
|
|
1175
|
+
subscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1175
1176
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
1176
1177
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
1177
1178
|
pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -41,7 +41,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -175,11 +175,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
177
|
image?: string | null | undefined | undefined;
|
|
178
|
-
phoneNumber?: string | null | undefined;
|
|
179
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
180
178
|
twoFactorEnabled: boolean | null | undefined;
|
|
181
179
|
username?: string | null | undefined;
|
|
182
180
|
displayUsername?: string | null | undefined;
|
|
181
|
+
phoneNumber?: string | null | undefined;
|
|
182
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
183
183
|
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
185
|
banReason?: string | null | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -351,11 +351,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
353
|
image?: string | null | undefined | undefined;
|
|
354
|
-
phoneNumber?: string | null | undefined;
|
|
355
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
356
354
|
twoFactorEnabled: boolean | null | undefined;
|
|
357
355
|
username?: string | null | undefined;
|
|
358
356
|
displayUsername?: string | null | undefined;
|
|
357
|
+
phoneNumber?: string | null | undefined;
|
|
358
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
359
359
|
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
361
|
banReason?: string | null | undefined;
|
|
@@ -657,57 +657,52 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
657
657
|
};
|
|
658
658
|
} & {
|
|
659
659
|
welfare_cycle: {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
660
|
+
"daily-payouts": {
|
|
661
|
+
get: {
|
|
662
|
+
body: {};
|
|
663
|
+
params: {};
|
|
664
|
+
query: {
|
|
665
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
666
|
+
subscriptionId?: string | undefined;
|
|
667
|
+
limit?: number | undefined;
|
|
668
|
+
offset?: number | undefined;
|
|
669
|
+
pageSize?: number | undefined;
|
|
670
|
+
pageIndex?: number | undefined;
|
|
671
|
+
};
|
|
672
|
+
headers: {};
|
|
673
|
+
response: {
|
|
674
|
+
200: {
|
|
675
|
+
data: {
|
|
666
676
|
id: string;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
amount: string;
|
|
685
|
-
idempotencyKey: string;
|
|
686
|
-
ledgerEntryId: string | null;
|
|
687
|
-
planId: string;
|
|
688
|
-
subscriptionId: string;
|
|
689
|
-
payoutDate: string;
|
|
690
|
-
}[];
|
|
691
|
-
pagination: {
|
|
692
|
-
total: number;
|
|
693
|
-
pageSize: number;
|
|
694
|
-
pageIndex: number;
|
|
695
|
-
totalPages: number;
|
|
696
|
-
hasNextPage: boolean;
|
|
697
|
-
};
|
|
698
|
-
};
|
|
699
|
-
422: {
|
|
700
|
-
type: "validation";
|
|
701
|
-
on: string;
|
|
702
|
-
summary?: string;
|
|
703
|
-
message?: string;
|
|
704
|
-
found?: unknown;
|
|
705
|
-
property?: string;
|
|
706
|
-
expected?: string;
|
|
707
|
-
};
|
|
708
|
-
401: "Unauthorized";
|
|
677
|
+
createdAt: Date;
|
|
678
|
+
updatedAt: Date;
|
|
679
|
+
userId: string;
|
|
680
|
+
status: "pending" | "completed" | "failed";
|
|
681
|
+
amount: string;
|
|
682
|
+
idempotencyKey: string;
|
|
683
|
+
ledgerEntryId: string | null;
|
|
684
|
+
planId: string;
|
|
685
|
+
subscriptionId: string;
|
|
686
|
+
payoutDate: string;
|
|
687
|
+
}[];
|
|
688
|
+
pagination: {
|
|
689
|
+
total: number;
|
|
690
|
+
pageSize: number;
|
|
691
|
+
pageIndex: number;
|
|
692
|
+
totalPages: number;
|
|
693
|
+
hasNextPage: boolean;
|
|
709
694
|
};
|
|
710
695
|
};
|
|
696
|
+
422: {
|
|
697
|
+
type: "validation";
|
|
698
|
+
on: string;
|
|
699
|
+
summary?: string;
|
|
700
|
+
message?: string;
|
|
701
|
+
found?: unknown;
|
|
702
|
+
property?: string;
|
|
703
|
+
expected?: string;
|
|
704
|
+
};
|
|
705
|
+
401: "Unauthorized";
|
|
711
706
|
};
|
|
712
707
|
};
|
|
713
708
|
};
|
|
@@ -773,11 +768,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
773
768
|
emailVerified: boolean;
|
|
774
769
|
name: string;
|
|
775
770
|
image?: string | null | undefined | undefined;
|
|
776
|
-
phoneNumber?: string | null | undefined;
|
|
777
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
778
771
|
twoFactorEnabled: boolean | null | undefined;
|
|
779
772
|
username?: string | null | undefined;
|
|
780
773
|
displayUsername?: string | null | undefined;
|
|
774
|
+
phoneNumber?: string | null | undefined;
|
|
775
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
781
776
|
banned: boolean | null | undefined;
|
|
782
777
|
role?: string | null | undefined;
|
|
783
778
|
banReason?: string | null | undefined;
|
|
@@ -135,7 +135,7 @@ export declare abstract class UserWelfareCycleService extends BaseWelfareCycleSe
|
|
|
135
135
|
nextPayoutDate: Date | null;
|
|
136
136
|
lastPayoutDate: Date | null;
|
|
137
137
|
}>;
|
|
138
|
-
static listDailyPayouts(userId: string,
|
|
138
|
+
static listDailyPayouts(userId: string, filters?: WelfareCycleDailyPayoutListQueryType): Promise<{
|
|
139
139
|
data: {
|
|
140
140
|
id: string;
|
|
141
141
|
createdAt: Date;
|
|
@@ -41,7 +41,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -175,11 +175,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
|
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
177
|
image?: string | null | undefined | undefined;
|
|
178
|
-
phoneNumber?: string | null | undefined;
|
|
179
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
180
178
|
twoFactorEnabled: boolean | null | undefined;
|
|
181
179
|
username?: string | null | undefined;
|
|
182
180
|
displayUsername?: string | null | undefined;
|
|
181
|
+
phoneNumber?: string | null | undefined;
|
|
182
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
183
183
|
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
185
|
banReason?: string | null | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -351,11 +351,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
|
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
353
|
image?: string | null | undefined | undefined;
|
|
354
|
-
phoneNumber?: string | null | undefined;
|
|
355
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
356
354
|
twoFactorEnabled: boolean | null | undefined;
|
|
357
355
|
username?: string | null | undefined;
|
|
358
356
|
displayUsername?: string | null | undefined;
|
|
357
|
+
phoneNumber?: string | null | undefined;
|
|
358
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
359
359
|
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
361
|
banReason?: string | null | undefined;
|
|
@@ -598,11 +598,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
|
|
|
598
598
|
emailVerified: boolean;
|
|
599
599
|
name: string;
|
|
600
600
|
image?: string | null | undefined | undefined;
|
|
601
|
-
phoneNumber?: string | null | undefined;
|
|
602
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
603
601
|
twoFactorEnabled: boolean | null | undefined;
|
|
604
602
|
username?: string | null | undefined;
|
|
605
603
|
displayUsername?: string | null | undefined;
|
|
604
|
+
phoneNumber?: string | null | undefined;
|
|
605
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
606
606
|
banned: boolean | null | undefined;
|
|
607
607
|
role?: string | null | undefined;
|
|
608
608
|
banReason?: string | null | undefined;
|
|
@@ -628,11 +628,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
|
|
|
628
628
|
emailVerified: boolean;
|
|
629
629
|
name: string;
|
|
630
630
|
image?: string | null | undefined | undefined;
|
|
631
|
-
phoneNumber?: string | null | undefined;
|
|
632
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
633
631
|
twoFactorEnabled: boolean | null | undefined;
|
|
634
632
|
username?: string | null | undefined;
|
|
635
633
|
displayUsername?: string | null | undefined;
|
|
634
|
+
phoneNumber?: string | null | undefined;
|
|
635
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
636
636
|
banned: boolean | null | undefined;
|
|
637
637
|
role?: string | null | undefined;
|
|
638
638
|
banReason?: string | null | undefined;
|
|
@@ -600,6 +600,13 @@ export declare const ledgerAccountWithdrawCreateInputSchema: import("@sinclair/t
|
|
|
600
600
|
transactionPassword: import("@sinclair/typebox").TString;
|
|
601
601
|
}>;
|
|
602
602
|
export type LedgerAccountWithdrawCreateInputType = typeof ledgerAccountWithdrawCreateInputSchema.static;
|
|
603
|
+
export declare const directCnyWithdrawCreateInputSchema: import("@sinclair/typebox").TObject<{
|
|
604
|
+
receiptMethodId: import("@sinclair/typebox").TString;
|
|
605
|
+
amount: import("@sinclair/typebox").TString;
|
|
606
|
+
idempotencyKey: import("@sinclair/typebox").TString;
|
|
607
|
+
transactionPassword: import("@sinclair/typebox").TString;
|
|
608
|
+
}>;
|
|
609
|
+
export type DirectCnyWithdrawCreateInputType = typeof directCnyWithdrawCreateInputSchema.static;
|
|
603
610
|
export declare const withdrawUserListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
604
611
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
605
612
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -41,7 +41,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -175,11 +175,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
|
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
177
|
image?: string | null | undefined | undefined;
|
|
178
|
-
phoneNumber?: string | null | undefined;
|
|
179
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
180
178
|
twoFactorEnabled: boolean | null | undefined;
|
|
181
179
|
username?: string | null | undefined;
|
|
182
180
|
displayUsername?: string | null | undefined;
|
|
181
|
+
phoneNumber?: string | null | undefined;
|
|
182
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
183
183
|
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
185
|
banReason?: string | null | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 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 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -351,11 +351,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
|
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
353
|
image?: string | null | undefined | undefined;
|
|
354
|
-
phoneNumber?: string | null | undefined;
|
|
355
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
356
354
|
twoFactorEnabled: boolean | null | undefined;
|
|
357
355
|
username?: string | null | undefined;
|
|
358
356
|
displayUsername?: string | null | undefined;
|
|
357
|
+
phoneNumber?: string | null | undefined;
|
|
358
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
359
359
|
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
361
|
banReason?: string | null | undefined;
|
|
@@ -427,6 +427,53 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
|
|
|
427
427
|
};
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
+
} & {
|
|
431
|
+
withdraw: {
|
|
432
|
+
direct_cny_balance: {
|
|
433
|
+
post: {
|
|
434
|
+
body: {
|
|
435
|
+
amount: string;
|
|
436
|
+
idempotencyKey: string;
|
|
437
|
+
receiptMethodId: string;
|
|
438
|
+
transactionPassword: string;
|
|
439
|
+
};
|
|
440
|
+
params: {};
|
|
441
|
+
query: {};
|
|
442
|
+
headers: {};
|
|
443
|
+
response: {
|
|
444
|
+
200: {
|
|
445
|
+
id: string;
|
|
446
|
+
createdAt: Date;
|
|
447
|
+
updatedAt: Date;
|
|
448
|
+
userId: string;
|
|
449
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
450
|
+
reviewedAt: Date | null;
|
|
451
|
+
reviewedBy: string | null;
|
|
452
|
+
assetId: string | null;
|
|
453
|
+
amount: string;
|
|
454
|
+
idempotencyKey: string;
|
|
455
|
+
orderNo: string;
|
|
456
|
+
reviewNote: string | null;
|
|
457
|
+
sourceAccountId: string | null;
|
|
458
|
+
receiptMethodId: string;
|
|
459
|
+
rejectReason: string | null;
|
|
460
|
+
paidBy: string | null;
|
|
461
|
+
paidAt: Date | null;
|
|
462
|
+
};
|
|
463
|
+
422: {
|
|
464
|
+
type: "validation";
|
|
465
|
+
on: string;
|
|
466
|
+
summary?: string;
|
|
467
|
+
message?: string;
|
|
468
|
+
found?: unknown;
|
|
469
|
+
property?: string;
|
|
470
|
+
expected?: string;
|
|
471
|
+
};
|
|
472
|
+
401: "Unauthorized";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
};
|
|
430
477
|
} & {
|
|
431
478
|
withdraw: {
|
|
432
479
|
get: {
|
|
@@ -499,11 +546,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
|
|
|
499
546
|
emailVerified: boolean;
|
|
500
547
|
name: string;
|
|
501
548
|
image?: string | null | undefined | undefined;
|
|
502
|
-
phoneNumber?: string | null | undefined;
|
|
503
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
504
549
|
twoFactorEnabled: boolean | null | undefined;
|
|
505
550
|
username?: string | null | undefined;
|
|
506
551
|
displayUsername?: string | null | undefined;
|
|
552
|
+
phoneNumber?: string | null | undefined;
|
|
553
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
507
554
|
banned: boolean | null | undefined;
|
|
508
555
|
role?: string | null | undefined;
|
|
509
556
|
banReason?: string | null | undefined;
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import { InternalWithdrawService } from "../internal/service";
|
|
2
|
-
import type { LedgerAccountWithdrawCreateInputType, WithdrawUserListQueryType } from "./dto.schemas";
|
|
2
|
+
import type { DirectCnyWithdrawCreateInputType, LedgerAccountWithdrawCreateInputType, WithdrawUserListQueryType } from "./dto.schemas";
|
|
3
3
|
export declare abstract class UserWithdrawService extends InternalWithdrawService {
|
|
4
|
+
static createDirectCnyWithdrawOrder(userId: string, input: DirectCnyWithdrawCreateInputType): Promise<{
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
userId: string;
|
|
9
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
10
|
+
reviewedAt: Date | null;
|
|
11
|
+
reviewedBy: string | null;
|
|
12
|
+
assetId: string | null;
|
|
13
|
+
amount: string;
|
|
14
|
+
idempotencyKey: string;
|
|
15
|
+
orderNo: string;
|
|
16
|
+
reviewNote: string | null;
|
|
17
|
+
sourceAccountId: string | null;
|
|
18
|
+
receiptMethodId: string;
|
|
19
|
+
rejectReason: string | null;
|
|
20
|
+
paidBy: string | null;
|
|
21
|
+
paidAt: Date | null;
|
|
22
|
+
}>;
|
|
4
23
|
static createLedgerAccountWithdrawOrder(userId: string, input: LedgerAccountWithdrawCreateInputType): Promise<{
|
|
5
24
|
id: string;
|
|
6
25
|
createdAt: Date;
|