@r2wa-org/eden 0.0.54 → 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 +19 -24
- package/dist/src/admin/admin/service.d.ts +0 -2
- package/dist/src/admin/index.d.ts +1329 -343
- package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
- package/dist/src/asset/admin/router.d.ts +132 -32
- 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 +15 -15
- 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 +581 -42
- 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 +20 -20
- package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
- package/dist/src/asset-price/admin/router.d.ts +132 -20
- 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 +13 -13
- package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
- package/dist/src/asset-type/admin/router.d.ts +67 -28
- 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 +12 -12
- 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 -13
- package/dist/src/bank-account/user/router.d.ts +8 -8
- package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/admin/router.d.ts +12 -16
- 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 +18 -19
- package/dist/src/check-in/user/service.d.ts +0 -1
- package/dist/src/cron/index.d.ts +8 -74
- package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/admin/router.d.ts +16 -20
- package/dist/src/deposit/admin/service.d.ts +0 -2
- package/dist/src/deposit/errors/index.d.ts +4 -0
- package/dist/src/deposit/errors/locales/zh.d.ts +2 -0
- package/dist/src/deposit/user/dto.schemas.d.ts +16 -42
- package/dist/src/deposit/user/router.d.ts +68 -19
- package/dist/src/deposit/user/service.d.ts +22 -3
- package/dist/src/dynamic-env/admin.router.d.ts +27 -30
- package/dist/src/env/server.d.ts +1 -1
- package/dist/src/file-storage/admin/router.d.ts +17 -20
- package/dist/src/file-storage/share/router.d.ts +16 -16
- package/dist/src/file-storage/user/router.d.ts +16 -16
- package/dist/src/index.d.ts +1688 -660
- package/dist/src/ledger/admin/router.d.ts +12 -15
- package/dist/src/ledger/user/router.d.ts +10 -10
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +22 -25
- package/dist/src/ledger-account/user/router.d.ts +10 -10
- package/dist/src/ledger-account-import/admin/router.d.ts +22 -25
- package/dist/src/ledger-account-transfer/user/router.d.ts +10 -10
- package/dist/src/ledger-account-type/admin/router.d.ts +19 -22
- package/dist/src/ledger-account-type/user/router.d.ts +10 -10
- package/dist/src/market-data/admin/router.d.ts +17 -20
- package/dist/src/market-data/cron.d.ts +3 -54
- package/dist/src/market-data/user/router.d.ts +12 -12
- package/dist/src/market-pricing/admin/router.d.ts +31 -34
- package/dist/src/market-pricing/cron.d.ts +2 -53
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/admin/router.d.ts +29 -32
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/news/user/router.d.ts +19 -19
- package/dist/src/news-category/user/router.d.ts +12 -12
- package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
- package/dist/src/notification/admin/router.d.ts +17 -20
- package/dist/src/notification/user/dto.schemas.d.ts +2 -2
- package/dist/src/notification/user/router.d.ts +21 -21
- package/dist/src/receipt-method/admin/router.d.ts +10 -13
- 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 +14 -18
- package/dist/src/referral/user/dto.schemas.d.ts +2 -36
- package/dist/src/referral/user/router.d.ts +17 -18
- package/dist/src/referral-depth-config/admin/router.d.ts +22 -25
- package/dist/src/server-test/index.d.ts +15 -15
- package/dist/src/shipping-address/admin/router.d.ts +10 -13
- 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 +14 -18
- package/dist/src/team/user/dto.schemas.d.ts +5 -90
- package/dist/src/team/user/router.d.ts +21 -24
- package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
- package/dist/src/trade-market/admin/router.d.ts +27 -30
- package/dist/src/trade-market/user/router.d.ts +22 -22
- package/dist/src/transfer/admin/router.d.ts +12 -15
- package/dist/src/transfer/admin/service.d.ts +0 -2
- package/dist/src/transfer/user/router.d.ts +12 -12
- 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 +24 -32
- 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 +19 -22
- package/dist/src/user-kyc/user/router.d.ts +18 -18
- package/dist/src/user-security/admin/router.d.ts +13 -16
- package/dist/src/user-security/user/router.d.ts +17 -17
- package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
- package/dist/src/wallet/admin/router.d.ts +77 -15
- 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 +16 -15
- 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 +149 -19
- 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 +10 -10
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/admin/router.d.ts +35 -38
- package/dist/src/welfare-cycle/cron.d.ts +2 -53
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
- package/dist/src/welfare-cycle/user/router.d.ts +66 -71
- package/dist/src/welfare-cycle/user/service.d.ts +1 -1
- package/dist/src/withdraw/admin/router.d.ts +19 -22
- package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
- package/dist/src/withdraw/user/router.d.ts +59 -12
- package/dist/src/withdraw/user/service.d.ts +20 -1
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ export declare const userKycRouter: Elysia<"/kyc", {
|
|
|
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 userKycRouter: Elysia<"/kyc", {
|
|
|
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 userKycRouter: Elysia<"/kyc", {
|
|
|
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 userKycRouter: Elysia<"/kyc", {
|
|
|
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;
|
|
@@ -384,12 +384,12 @@ export declare const userKycRouter: Elysia<"/kyc", {
|
|
|
384
384
|
":kycMethod": {
|
|
385
385
|
verified: {
|
|
386
386
|
get: {
|
|
387
|
-
body:
|
|
387
|
+
body: {};
|
|
388
388
|
params: {
|
|
389
389
|
kycMethod: "passport" | "id_card" | "selfie" | "utility_bill";
|
|
390
390
|
};
|
|
391
|
-
query:
|
|
392
|
-
headers:
|
|
391
|
+
query: {};
|
|
392
|
+
headers: {};
|
|
393
393
|
response: {
|
|
394
394
|
200: {
|
|
395
395
|
verified: boolean;
|
|
@@ -424,8 +424,8 @@ export declare const userKycRouter: Elysia<"/kyc", {
|
|
|
424
424
|
params: {
|
|
425
425
|
kycMethod: "passport" | "id_card" | "selfie" | "utility_bill";
|
|
426
426
|
};
|
|
427
|
-
query:
|
|
428
|
-
headers:
|
|
427
|
+
query: {};
|
|
428
|
+
headers: {};
|
|
429
429
|
response: {
|
|
430
430
|
200: {
|
|
431
431
|
id: string;
|
|
@@ -464,12 +464,12 @@ export declare const userKycRouter: Elysia<"/kyc", {
|
|
|
464
464
|
kyc: {
|
|
465
465
|
":kycMethod": {
|
|
466
466
|
get: {
|
|
467
|
-
body:
|
|
467
|
+
body: {};
|
|
468
468
|
params: {
|
|
469
469
|
kycMethod: "passport" | "id_card" | "selfie" | "utility_bill";
|
|
470
470
|
};
|
|
471
|
-
query:
|
|
472
|
-
headers:
|
|
471
|
+
query: {};
|
|
472
|
+
headers: {};
|
|
473
473
|
response: {
|
|
474
474
|
200: {
|
|
475
475
|
id: string;
|
|
@@ -519,8 +519,8 @@ export declare const userKycRouter: Elysia<"/kyc", {
|
|
|
519
519
|
params: {
|
|
520
520
|
kycMethod: "passport" | "id_card" | "selfie" | "utility_bill";
|
|
521
521
|
};
|
|
522
|
-
query:
|
|
523
|
-
headers:
|
|
522
|
+
query: {};
|
|
523
|
+
headers: {};
|
|
524
524
|
response: {
|
|
525
525
|
200: {
|
|
526
526
|
id: string;
|
|
@@ -572,11 +572,11 @@ export declare const userKycRouter: Elysia<"/kyc", {
|
|
|
572
572
|
emailVerified: boolean;
|
|
573
573
|
name: string;
|
|
574
574
|
image?: string | null | undefined | undefined;
|
|
575
|
-
phoneNumber?: string | null | undefined;
|
|
576
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
577
575
|
twoFactorEnabled: boolean | null | undefined;
|
|
578
576
|
username?: string | null | undefined;
|
|
579
577
|
displayUsername?: string | null | undefined;
|
|
578
|
+
phoneNumber?: string | null | undefined;
|
|
579
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
580
580
|
banned: boolean | null | undefined;
|
|
581
581
|
role?: string | null | undefined;
|
|
582
582
|
banReason?: string | null | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
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 userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
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 userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
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 userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
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;
|
|
@@ -385,12 +385,12 @@ export declare const userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
385
385
|
"transaction-password": {
|
|
386
386
|
reset: {
|
|
387
387
|
post: {
|
|
388
|
-
body:
|
|
388
|
+
body: {};
|
|
389
389
|
params: {
|
|
390
390
|
userId: string;
|
|
391
391
|
};
|
|
392
|
-
query:
|
|
393
|
-
headers:
|
|
392
|
+
query: {};
|
|
393
|
+
headers: {};
|
|
394
394
|
response: {
|
|
395
395
|
200: {
|
|
396
396
|
password: string;
|
|
@@ -429,11 +429,11 @@ export declare const userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
429
429
|
emailVerified: boolean;
|
|
430
430
|
name: string;
|
|
431
431
|
image?: string | null | undefined | undefined;
|
|
432
|
-
phoneNumber?: string | null | undefined;
|
|
433
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
434
432
|
twoFactorEnabled: boolean | null | undefined;
|
|
435
433
|
username?: string | null | undefined;
|
|
436
434
|
displayUsername?: string | null | undefined;
|
|
435
|
+
phoneNumber?: string | null | undefined;
|
|
436
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
437
437
|
banned: boolean | null | undefined;
|
|
438
438
|
role?: string | null | undefined;
|
|
439
439
|
banReason?: string | null | undefined;
|
|
@@ -459,11 +459,11 @@ export declare const userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
459
459
|
emailVerified: boolean;
|
|
460
460
|
name: string;
|
|
461
461
|
image?: string | null | undefined | undefined;
|
|
462
|
-
phoneNumber?: string | null | undefined;
|
|
463
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
464
462
|
twoFactorEnabled: boolean | null | undefined;
|
|
465
463
|
username?: string | null | undefined;
|
|
466
464
|
displayUsername?: string | null | undefined;
|
|
465
|
+
phoneNumber?: string | null | undefined;
|
|
466
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
467
467
|
banned: boolean | null | undefined;
|
|
468
468
|
role?: string | null | undefined;
|
|
469
469
|
banReason?: string | null | undefined;
|
|
@@ -485,9 +485,6 @@ export declare const userSecurityAdminRouter: Elysia<"/user_security", {
|
|
|
485
485
|
standaloneSchema: {};
|
|
486
486
|
response: {
|
|
487
487
|
401: "Unauthorized";
|
|
488
|
-
} & {
|
|
489
|
-
401: "Unauthorized";
|
|
490
|
-
} & {
|
|
491
488
|
403: "Forbidden: Admins only";
|
|
492
489
|
};
|
|
493
490
|
}>;
|
|
@@ -41,7 +41,7 @@ export declare const userSecurityRouter: Elysia<"/user", {
|
|
|
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 userSecurityRouter: Elysia<"/user", {
|
|
|
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 userSecurityRouter: Elysia<"/user", {
|
|
|
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 userSecurityRouter: Elysia<"/user", {
|
|
|
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;
|
|
@@ -388,8 +388,8 @@ export declare const userSecurityRouter: Elysia<"/user", {
|
|
|
388
388
|
password: string;
|
|
389
389
|
};
|
|
390
390
|
params: {};
|
|
391
|
-
query:
|
|
392
|
-
headers:
|
|
391
|
+
query: {};
|
|
392
|
+
headers: {};
|
|
393
393
|
response: {
|
|
394
394
|
200: {
|
|
395
395
|
success: boolean;
|
|
@@ -419,8 +419,8 @@ export declare const userSecurityRouter: Elysia<"/user", {
|
|
|
419
419
|
oldPassword: string;
|
|
420
420
|
};
|
|
421
421
|
params: {};
|
|
422
|
-
query:
|
|
423
|
-
headers:
|
|
422
|
+
query: {};
|
|
423
|
+
headers: {};
|
|
424
424
|
response: {
|
|
425
425
|
200: {
|
|
426
426
|
success: boolean;
|
|
@@ -449,8 +449,8 @@ export declare const userSecurityRouter: Elysia<"/user", {
|
|
|
449
449
|
oldPassword: string;
|
|
450
450
|
};
|
|
451
451
|
params: {};
|
|
452
|
-
query:
|
|
453
|
-
headers:
|
|
452
|
+
query: {};
|
|
453
|
+
headers: {};
|
|
454
454
|
response: {
|
|
455
455
|
200: {
|
|
456
456
|
success: boolean;
|
|
@@ -476,10 +476,10 @@ export declare const userSecurityRouter: Elysia<"/user", {
|
|
|
476
476
|
"transaction-password": {
|
|
477
477
|
status: {
|
|
478
478
|
get: {
|
|
479
|
-
body:
|
|
479
|
+
body: {};
|
|
480
480
|
params: {};
|
|
481
|
-
query:
|
|
482
|
-
headers:
|
|
481
|
+
query: {};
|
|
482
|
+
headers: {};
|
|
483
483
|
response: {
|
|
484
484
|
200: {
|
|
485
485
|
enabled: boolean;
|
|
@@ -517,11 +517,11 @@ export declare const userSecurityRouter: Elysia<"/user", {
|
|
|
517
517
|
emailVerified: boolean;
|
|
518
518
|
name: string;
|
|
519
519
|
image?: string | null | undefined | undefined;
|
|
520
|
-
phoneNumber?: string | null | undefined;
|
|
521
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
522
520
|
twoFactorEnabled: boolean | null | undefined;
|
|
523
521
|
username?: string | null | undefined;
|
|
524
522
|
displayUsername?: string | null | undefined;
|
|
523
|
+
phoneNumber?: string | null | undefined;
|
|
524
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
525
525
|
banned: boolean | null | undefined;
|
|
526
526
|
role?: string | null | undefined;
|
|
527
527
|
banReason?: string | null | undefined;
|
|
@@ -1,12 +1,34 @@
|
|
|
1
|
+
export declare const walletAdminIdParamsSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
id: import("@sinclair/typebox").TString;
|
|
3
|
+
}>;
|
|
4
|
+
export type WalletAdminIdParamsType = typeof walletAdminIdParamsSchema.static;
|
|
5
|
+
export declare const walletAdminUserSnapshotSchema: import("@sinclair/typebox").TObject<{
|
|
6
|
+
email: import("@sinclair/typebox").TString;
|
|
7
|
+
id: import("@sinclair/typebox").TString;
|
|
8
|
+
username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
9
|
+
displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
10
|
+
phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
11
|
+
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
12
|
+
banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
13
|
+
}>;
|
|
1
14
|
export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObject<{
|
|
2
15
|
createdAt: import("@sinclair/typebox").TDate;
|
|
3
16
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
17
|
id: import("@sinclair/typebox").TString;
|
|
5
18
|
name: import("@sinclair/typebox").TString;
|
|
6
|
-
userId: import("@sinclair/typebox").TString;
|
|
7
19
|
isActive: import("@sinclair/typebox").TBoolean;
|
|
20
|
+
userId: import("@sinclair/typebox").TString;
|
|
8
21
|
walletTypeId: import("@sinclair/typebox").TString;
|
|
9
22
|
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
23
|
+
userInfo: import("@sinclair/typebox").TObject<{
|
|
24
|
+
email: import("@sinclair/typebox").TString;
|
|
25
|
+
id: import("@sinclair/typebox").TString;
|
|
26
|
+
username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
27
|
+
displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
28
|
+
phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
29
|
+
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
30
|
+
banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
31
|
+
}>;
|
|
10
32
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
11
33
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12
34
|
name: "created_at";
|
|
@@ -148,8 +170,9 @@ export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObj
|
|
|
148
170
|
}>;
|
|
149
171
|
export type WalletAdminResponseType = typeof walletAdminResponseSchema.static;
|
|
150
172
|
export declare const walletAdminListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
151
|
-
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
152
173
|
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
174
|
+
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
175
|
+
walletId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
153
176
|
walletTypeKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
154
177
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
155
178
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -163,10 +186,19 @@ export declare const walletAdminListResponseSchema: import("@sinclair/typebox").
|
|
|
163
186
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
164
187
|
id: import("@sinclair/typebox").TString;
|
|
165
188
|
name: import("@sinclair/typebox").TString;
|
|
166
|
-
userId: import("@sinclair/typebox").TString;
|
|
167
189
|
isActive: import("@sinclair/typebox").TBoolean;
|
|
190
|
+
userId: import("@sinclair/typebox").TString;
|
|
168
191
|
walletTypeId: import("@sinclair/typebox").TString;
|
|
169
192
|
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
193
|
+
userInfo: import("@sinclair/typebox").TObject<{
|
|
194
|
+
email: import("@sinclair/typebox").TString;
|
|
195
|
+
id: import("@sinclair/typebox").TString;
|
|
196
|
+
username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
197
|
+
displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
198
|
+
phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
199
|
+
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
200
|
+
banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
|
|
201
|
+
}>;
|
|
170
202
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
171
203
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
172
204
|
name: "created_at";
|
|
@@ -41,7 +41,7 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
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 walletAdminRouter: Elysia<"/wallets", {
|
|
|
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 walletAdminRouter: Elysia<"/wallets", {
|
|
|
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 walletAdminRouter: Elysia<"/wallets", {
|
|
|
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;
|
|
@@ -382,7 +382,7 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
382
382
|
} & {
|
|
383
383
|
wallets: {
|
|
384
384
|
get: {
|
|
385
|
-
body:
|
|
385
|
+
body: {};
|
|
386
386
|
params: {};
|
|
387
387
|
query: {
|
|
388
388
|
userId?: string | undefined;
|
|
@@ -391,9 +391,10 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
391
391
|
offset?: number | undefined;
|
|
392
392
|
pageSize?: number | undefined;
|
|
393
393
|
pageIndex?: number | undefined;
|
|
394
|
+
walletId?: string | undefined;
|
|
394
395
|
walletTypeKey?: string | undefined;
|
|
395
396
|
};
|
|
396
|
-
headers:
|
|
397
|
+
headers: {};
|
|
397
398
|
response: {
|
|
398
399
|
200: {
|
|
399
400
|
data: {
|
|
@@ -415,6 +416,15 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
415
416
|
sortOrder: number;
|
|
416
417
|
isSingleton: boolean;
|
|
417
418
|
};
|
|
419
|
+
userInfo: {
|
|
420
|
+
email: string;
|
|
421
|
+
id: string;
|
|
422
|
+
username: string | null;
|
|
423
|
+
displayUsername: string | null;
|
|
424
|
+
phoneNumber: string | null;
|
|
425
|
+
role: string | null;
|
|
426
|
+
banned: boolean | null;
|
|
427
|
+
};
|
|
418
428
|
}[];
|
|
419
429
|
pagination: {
|
|
420
430
|
total: number;
|
|
@@ -438,6 +448,61 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
438
448
|
};
|
|
439
449
|
};
|
|
440
450
|
};
|
|
451
|
+
} & {
|
|
452
|
+
wallets: {
|
|
453
|
+
":id": {
|
|
454
|
+
get: {
|
|
455
|
+
body: {};
|
|
456
|
+
params: {
|
|
457
|
+
id: string;
|
|
458
|
+
};
|
|
459
|
+
query: {};
|
|
460
|
+
headers: {};
|
|
461
|
+
response: {
|
|
462
|
+
200: {
|
|
463
|
+
id: string;
|
|
464
|
+
name: string;
|
|
465
|
+
createdAt: Date;
|
|
466
|
+
updatedAt: Date;
|
|
467
|
+
userId: string;
|
|
468
|
+
isActive: boolean;
|
|
469
|
+
walletTypeId: string;
|
|
470
|
+
isPrimary: boolean;
|
|
471
|
+
walletType: {
|
|
472
|
+
id: string;
|
|
473
|
+
name: string;
|
|
474
|
+
createdAt: Date;
|
|
475
|
+
updatedAt: Date;
|
|
476
|
+
key: string;
|
|
477
|
+
isActive: boolean;
|
|
478
|
+
sortOrder: number;
|
|
479
|
+
isSingleton: boolean;
|
|
480
|
+
};
|
|
481
|
+
userInfo: {
|
|
482
|
+
email: string;
|
|
483
|
+
id: string;
|
|
484
|
+
username: string | null;
|
|
485
|
+
displayUsername: string | null;
|
|
486
|
+
phoneNumber: string | null;
|
|
487
|
+
role: string | null;
|
|
488
|
+
banned: boolean | null;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
422: {
|
|
492
|
+
type: "validation";
|
|
493
|
+
on: string;
|
|
494
|
+
summary?: string;
|
|
495
|
+
message?: string;
|
|
496
|
+
found?: unknown;
|
|
497
|
+
property?: string;
|
|
498
|
+
expected?: string;
|
|
499
|
+
};
|
|
500
|
+
401: "Unauthorized";
|
|
501
|
+
403: "Forbidden: Admins only";
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
};
|
|
441
506
|
}, {
|
|
442
507
|
derive: {};
|
|
443
508
|
resolve: {};
|
|
@@ -455,11 +520,11 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
455
520
|
emailVerified: boolean;
|
|
456
521
|
name: string;
|
|
457
522
|
image?: string | null | undefined | undefined;
|
|
458
|
-
phoneNumber?: string | null | undefined;
|
|
459
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
460
523
|
twoFactorEnabled: boolean | null | undefined;
|
|
461
524
|
username?: string | null | undefined;
|
|
462
525
|
displayUsername?: string | null | undefined;
|
|
526
|
+
phoneNumber?: string | null | undefined;
|
|
527
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
463
528
|
banned: boolean | null | undefined;
|
|
464
529
|
role?: string | null | undefined;
|
|
465
530
|
banReason?: string | null | undefined;
|
|
@@ -485,11 +550,11 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
485
550
|
emailVerified: boolean;
|
|
486
551
|
name: string;
|
|
487
552
|
image?: string | null | undefined | undefined;
|
|
488
|
-
phoneNumber?: string | null | undefined;
|
|
489
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
490
553
|
twoFactorEnabled: boolean | null | undefined;
|
|
491
554
|
username?: string | null | undefined;
|
|
492
555
|
displayUsername?: string | null | undefined;
|
|
556
|
+
phoneNumber?: string | null | undefined;
|
|
557
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
493
558
|
banned: boolean | null | undefined;
|
|
494
559
|
role?: string | null | undefined;
|
|
495
560
|
banReason?: string | null | undefined;
|
|
@@ -511,9 +576,6 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
|
|
|
511
576
|
standaloneSchema: {};
|
|
512
577
|
response: {
|
|
513
578
|
401: "Unauthorized";
|
|
514
|
-
} & {
|
|
515
|
-
401: "Unauthorized";
|
|
516
|
-
} & {
|
|
517
579
|
403: "Forbidden: Admins only";
|
|
518
580
|
};
|
|
519
581
|
}>;
|
|
@@ -3,25 +3,63 @@ import type { WalletAdminListQueryType } from "./dto.schemas";
|
|
|
3
3
|
export declare abstract class AdminWalletService extends InternalWalletService {
|
|
4
4
|
static listWallets(options?: WalletAdminListQueryType): Promise<{
|
|
5
5
|
items: {
|
|
6
|
+
userInfo: {
|
|
7
|
+
id: string;
|
|
8
|
+
username: string | null;
|
|
9
|
+
displayUsername: string | null;
|
|
10
|
+
email: string;
|
|
11
|
+
phoneNumber: string | null;
|
|
12
|
+
role: string | null;
|
|
13
|
+
banned: boolean | null;
|
|
14
|
+
};
|
|
6
15
|
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
16
|
userId: string;
|
|
11
|
-
isActive: boolean;
|
|
12
17
|
walletTypeId: string;
|
|
18
|
+
name: string;
|
|
13
19
|
isPrimary: boolean;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
14
23
|
walletType: {
|
|
15
24
|
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
25
|
key: string;
|
|
26
|
+
name: string;
|
|
27
|
+
isSingleton: boolean;
|
|
20
28
|
isActive: boolean;
|
|
21
29
|
sortOrder: number;
|
|
22
|
-
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
updatedAt: Date;
|
|
23
32
|
};
|
|
24
33
|
}[];
|
|
25
34
|
total: number;
|
|
26
35
|
}>;
|
|
36
|
+
static getWalletById(walletId: string): Promise<{
|
|
37
|
+
userInfo: {
|
|
38
|
+
id: string;
|
|
39
|
+
username: string | null;
|
|
40
|
+
displayUsername: string | null;
|
|
41
|
+
email: string;
|
|
42
|
+
phoneNumber: string | null;
|
|
43
|
+
role: string | null;
|
|
44
|
+
banned: boolean | null;
|
|
45
|
+
};
|
|
46
|
+
id: string;
|
|
47
|
+
userId: string;
|
|
48
|
+
walletTypeId: string;
|
|
49
|
+
name: string;
|
|
50
|
+
isPrimary: boolean;
|
|
51
|
+
isActive: boolean;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
walletType: {
|
|
55
|
+
id: string;
|
|
56
|
+
key: string;
|
|
57
|
+
name: string;
|
|
58
|
+
isSingleton: boolean;
|
|
59
|
+
isActive: boolean;
|
|
60
|
+
sortOrder: number;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
updatedAt: Date;
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
27
65
|
}
|