@r2wa-org/eden 0.0.52 → 0.0.56
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/router.d.ts +9 -12
- package/dist/src/admin/index.d.ts +1772 -848
- package/dist/src/asset/admin/router.d.ts +9 -12
- package/dist/src/asset/user/router.d.ts +6 -6
- package/dist/src/asset-convert-product/admin/router.d.ts +17 -20
- package/dist/src/asset-convert-product/user/router.d.ts +12 -12
- package/dist/src/asset-price/admin/router.d.ts +7 -10
- package/dist/src/asset-price/user/router.d.ts +5 -5
- package/dist/src/asset-type/admin/router.d.ts +7 -10
- package/dist/src/asset-type/user/router.d.ts +2 -2
- package/dist/src/auth/better-auth.d.ts +43 -1
- package/dist/src/auth/permissions.d.ts +31 -1
- package/dist/src/auth/roles.d.ts +90 -0
- package/dist/src/bank-account/admin/router.d.ts +0 -3
- package/dist/src/bank-account/user/router.d.ts +2 -2
- package/dist/src/check-in/admin/router.d.ts +2 -5
- package/dist/src/check-in/user/router.d.ts +10 -10
- package/dist/src/cron/index.d.ts +8 -74
- package/dist/src/db/schemas.d.ts +3 -0
- package/dist/src/deposit/admin/router.d.ts +6 -9
- 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 +8 -0
- package/dist/src/deposit/user/router.d.ts +60 -10
- package/dist/src/deposit/user/service.d.ts +22 -1
- package/dist/src/dynamic-env/admin.router.d.ts +17 -20
- package/dist/src/file-storage/admin/router.d.ts +7 -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 +2284 -922
- package/dist/src/ledger/admin/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/admin/router.d.ts +4 -7
- package/dist/src/ledger/admin/service.d.ts +2 -2
- package/dist/src/ledger/db.schemas.d.ts +8 -8
- package/dist/src/ledger/internal/service.d.ts +2 -2
- package/dist/src/ledger/schema.d.ts +6 -6
- package/dist/src/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/user/router.d.ts +4 -4
- package/dist/src/ledger/user/service.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +11 -14
- package/dist/src/ledger-account/user/router.d.ts +2 -2
- package/dist/src/ledger-account-import/admin/router.d.ts +12 -15
- package/dist/src/ledger-account-transfer/user/router.d.ts +2 -2
- package/dist/src/ledger-account-type/admin/router.d.ts +9 -12
- package/dist/src/ledger-account-type/user/router.d.ts +2 -2
- package/dist/src/market-data/admin/dto.schemas.d.ts +291 -0
- package/dist/src/market-data/admin/router.d.ts +606 -0
- package/dist/src/market-data/admin/service.d.ts +52 -0
- package/dist/src/market-data/cron.d.ts +6 -0
- package/dist/src/market-data/db.schemas.d.ts +516 -0
- package/dist/src/market-data/errors/index.d.ts +12 -0
- package/dist/src/market-data/errors/locales/zh.d.ts +11 -0
- package/dist/src/market-data/index.d.ts +8 -0
- package/dist/src/market-data/internal/service.d.ts +77 -0
- package/dist/src/market-data/permissions.d.ts +6 -0
- package/dist/src/market-data/schema.d.ts +270 -0
- package/dist/src/market-data/user/dto.schemas.d.ts +289 -0
- package/dist/src/market-data/user/router.d.ts +521 -0
- package/dist/src/market-data/user/service.d.ts +30 -0
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +322 -0
- package/dist/src/market-pricing/admin/router.d.ts +832 -0
- package/dist/src/market-pricing/admin/service.d.ts +129 -0
- package/dist/src/market-pricing/cron.d.ts +6 -0
- package/dist/src/market-pricing/db.schemas.d.ts +828 -0
- package/dist/src/market-pricing/errors/index.d.ts +14 -0
- package/dist/src/market-pricing/errors/locales/zh.d.ts +13 -0
- package/dist/src/market-pricing/internal/service.d.ts +35 -0
- package/dist/src/market-pricing/permissions.d.ts +4 -0
- package/dist/src/market-pricing/schema.d.ts +434 -0
- package/dist/src/news/admin/router.d.ts +19 -22
- package/dist/src/news/user/router.d.ts +11 -11
- package/dist/src/news-category/user/router.d.ts +6 -6
- package/dist/src/notification/admin/router.d.ts +7 -10
- package/dist/src/notification/user/router.d.ts +13 -13
- package/dist/src/receipt-method/admin/router.d.ts +0 -3
- package/dist/src/referral/admin/router.d.ts +4 -7
- package/dist/src/referral/user/router.d.ts +9 -9
- package/dist/src/referral-depth-config/admin/router.d.ts +12 -15
- package/dist/src/server-test/index.d.ts +9 -9
- package/dist/src/shipping-address/admin/router.d.ts +0 -3
- package/dist/src/team/admin/router.d.ts +4 -7
- package/dist/src/team/user/router.d.ts +13 -13
- package/dist/src/trade-market/admin/dto.schemas.d.ts +762 -0
- package/dist/src/trade-market/admin/router.d.ts +848 -0
- package/dist/src/trade-market/admin/service.d.ts +158 -0
- package/dist/src/trade-market/db.schemas.d.ts +1338 -0
- package/dist/src/trade-market/errors/index.d.ts +22 -0
- package/dist/src/trade-market/errors/locales/zh.d.ts +21 -0
- package/dist/src/trade-market/index.d.ts +8 -0
- package/dist/src/trade-market/internal/service.d.ts +239 -0
- package/dist/src/trade-market/permissions.d.ts +5 -0
- package/dist/src/trade-market/schema.d.ts +708 -0
- package/dist/src/trade-market/user/dto.schemas.d.ts +1394 -0
- package/dist/src/trade-market/user/router.d.ts +754 -0
- package/dist/src/trade-market/user/service.d.ts +147 -0
- package/dist/src/transfer/admin/router.d.ts +2 -5
- package/dist/src/transfer/user/router.d.ts +4 -4
- package/dist/src/user/admin/router.d.ts +14 -17
- package/dist/src/user-kyc/admin/router.d.ts +9 -12
- package/dist/src/user-kyc/user/router.d.ts +10 -10
- package/dist/src/user-security/admin/router.d.ts +3 -6
- package/dist/src/user-security/user/router.d.ts +9 -9
- package/dist/src/wallet/admin/router.d.ts +2 -5
- package/dist/src/wallet/user/router.d.ts +6 -6
- package/dist/src/wallet-type/admin/router.d.ts +6 -9
- package/dist/src/wallet-type/user/router.d.ts +2 -2
- package/dist/src/welfare-cycle/admin/router.d.ts +25 -28
- package/dist/src/welfare-cycle/cron.d.ts +2 -53
- package/dist/src/welfare-cycle/user/router.d.ts +17 -17
- package/dist/src/withdraw/admin/router.d.ts +9 -12
- package/dist/src/withdraw/user/router.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
2
|
export declare const adminRouter: Elysia<"/admin", {
|
|
3
3
|
decorator: {};
|
|
4
|
-
store:
|
|
4
|
+
store: any;
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
@@ -385,7 +385,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
385
385
|
} & {
|
|
386
386
|
admin_users: {
|
|
387
387
|
get: {
|
|
388
|
-
body:
|
|
388
|
+
body: {};
|
|
389
389
|
params: {};
|
|
390
390
|
query: {
|
|
391
391
|
limit?: number | undefined;
|
|
@@ -393,7 +393,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
393
393
|
pageSize?: number | undefined;
|
|
394
394
|
pageIndex?: number | undefined;
|
|
395
395
|
};
|
|
396
|
-
headers:
|
|
396
|
+
headers: {};
|
|
397
397
|
response: {
|
|
398
398
|
200: {
|
|
399
399
|
data: {
|
|
@@ -447,8 +447,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
447
447
|
username: string;
|
|
448
448
|
};
|
|
449
449
|
params: {};
|
|
450
|
-
query:
|
|
451
|
-
headers:
|
|
450
|
+
query: {};
|
|
451
|
+
headers: {};
|
|
452
452
|
response: {
|
|
453
453
|
200: {
|
|
454
454
|
user: {
|
|
@@ -492,12 +492,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
492
492
|
password: {
|
|
493
493
|
reset: {
|
|
494
494
|
post: {
|
|
495
|
-
body:
|
|
495
|
+
body: {};
|
|
496
496
|
params: {
|
|
497
497
|
userId: string;
|
|
498
498
|
};
|
|
499
|
-
query:
|
|
500
|
-
headers:
|
|
499
|
+
query: {};
|
|
500
|
+
headers: {};
|
|
501
501
|
response: {
|
|
502
502
|
200: {
|
|
503
503
|
password: string;
|
|
@@ -531,8 +531,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
531
531
|
params: {
|
|
532
532
|
userId: string;
|
|
533
533
|
};
|
|
534
|
-
query:
|
|
535
|
-
headers:
|
|
534
|
+
query: {};
|
|
535
|
+
headers: {};
|
|
536
536
|
response: {
|
|
537
537
|
200: {
|
|
538
538
|
success: boolean;
|
|
@@ -560,10 +560,10 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
560
560
|
} & {
|
|
561
561
|
"dynamic-env": {
|
|
562
562
|
get: {
|
|
563
|
-
body:
|
|
563
|
+
body: {};
|
|
564
564
|
params: {};
|
|
565
|
-
query:
|
|
566
|
-
headers:
|
|
565
|
+
query: {};
|
|
566
|
+
headers: {};
|
|
567
567
|
response: {
|
|
568
568
|
200: {
|
|
569
569
|
createdAt: Date;
|
|
@@ -590,12 +590,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
590
590
|
"dynamic-env": {
|
|
591
591
|
":key": {
|
|
592
592
|
get: {
|
|
593
|
-
body:
|
|
593
|
+
body: {};
|
|
594
594
|
params: {
|
|
595
595
|
key: string;
|
|
596
596
|
};
|
|
597
|
-
query:
|
|
598
|
-
headers:
|
|
597
|
+
query: {};
|
|
598
|
+
headers: {};
|
|
599
599
|
response: {
|
|
600
600
|
200: {
|
|
601
601
|
key: "FIXED_OTP_CODE" | "MAINTENANCE_MODE";
|
|
@@ -626,8 +626,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
626
626
|
params: {
|
|
627
627
|
key: string;
|
|
628
628
|
};
|
|
629
|
-
query:
|
|
630
|
-
headers:
|
|
629
|
+
query: {};
|
|
630
|
+
headers: {};
|
|
631
631
|
response: {
|
|
632
632
|
200: {
|
|
633
633
|
success: boolean;
|
|
@@ -653,12 +653,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
653
653
|
"dynamic-env": {
|
|
654
654
|
":key": {
|
|
655
655
|
delete: {
|
|
656
|
-
body:
|
|
656
|
+
body: {};
|
|
657
657
|
params: {
|
|
658
658
|
key: string;
|
|
659
659
|
};
|
|
660
|
-
query:
|
|
661
|
-
headers:
|
|
660
|
+
query: {};
|
|
661
|
+
headers: {};
|
|
662
662
|
response: {
|
|
663
663
|
200: {
|
|
664
664
|
success: boolean;
|
|
@@ -683,10 +683,10 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
683
683
|
"dynamic-env": {
|
|
684
684
|
"regenerate-otp": {
|
|
685
685
|
post: {
|
|
686
|
-
body:
|
|
686
|
+
body: {};
|
|
687
687
|
params: {};
|
|
688
|
-
query:
|
|
689
|
-
headers:
|
|
688
|
+
query: {};
|
|
689
|
+
headers: {};
|
|
690
690
|
response: {
|
|
691
691
|
200: {
|
|
692
692
|
success: boolean;
|
|
@@ -702,10 +702,10 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
702
702
|
"dynamic-env": {
|
|
703
703
|
reload: {
|
|
704
704
|
post: {
|
|
705
|
-
body:
|
|
705
|
+
body: {};
|
|
706
706
|
params: {};
|
|
707
|
-
query:
|
|
708
|
-
headers:
|
|
707
|
+
query: {};
|
|
708
|
+
headers: {};
|
|
709
709
|
response: {
|
|
710
710
|
200: {
|
|
711
711
|
success: boolean;
|
|
@@ -724,7 +724,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
724
724
|
} & {
|
|
725
725
|
asset_prices: {
|
|
726
726
|
get: {
|
|
727
|
-
body:
|
|
727
|
+
body: {};
|
|
728
728
|
params: {};
|
|
729
729
|
query: {
|
|
730
730
|
baseAsset?: string | undefined;
|
|
@@ -737,7 +737,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
737
737
|
pageIndex?: number | undefined;
|
|
738
738
|
endDate?: Date | undefined;
|
|
739
739
|
};
|
|
740
|
-
headers:
|
|
740
|
+
headers: {};
|
|
741
741
|
response: {
|
|
742
742
|
200: {
|
|
743
743
|
data: {
|
|
@@ -780,13 +780,13 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
780
780
|
":baseAsset": {
|
|
781
781
|
":quoteAsset": {
|
|
782
782
|
get: {
|
|
783
|
-
body:
|
|
783
|
+
body: {};
|
|
784
784
|
params: {
|
|
785
785
|
baseAsset: string;
|
|
786
786
|
quoteAsset: string;
|
|
787
787
|
};
|
|
788
|
-
query:
|
|
789
|
-
headers:
|
|
788
|
+
query: {};
|
|
789
|
+
headers: {};
|
|
790
790
|
response: {
|
|
791
791
|
200: {
|
|
792
792
|
id: string;
|
|
@@ -828,8 +828,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
828
828
|
effectiveAt: Date;
|
|
829
829
|
};
|
|
830
830
|
params: {};
|
|
831
|
-
query:
|
|
832
|
-
headers:
|
|
831
|
+
query: {};
|
|
832
|
+
headers: {};
|
|
833
833
|
response: {
|
|
834
834
|
200: {
|
|
835
835
|
id: string;
|
|
@@ -864,7 +864,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
864
864
|
} & {
|
|
865
865
|
assets: {
|
|
866
866
|
get: {
|
|
867
|
-
body:
|
|
867
|
+
body: {};
|
|
868
868
|
params: {};
|
|
869
869
|
query: {
|
|
870
870
|
category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
|
|
@@ -874,7 +874,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
874
874
|
pageSize?: number | undefined;
|
|
875
875
|
pageIndex?: number | undefined;
|
|
876
876
|
};
|
|
877
|
-
headers:
|
|
877
|
+
headers: {};
|
|
878
878
|
response: {
|
|
879
879
|
200: {
|
|
880
880
|
data: {
|
|
@@ -921,12 +921,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
921
921
|
assets: {
|
|
922
922
|
":code": {
|
|
923
923
|
get: {
|
|
924
|
-
body:
|
|
924
|
+
body: {};
|
|
925
925
|
params: {
|
|
926
926
|
code: string;
|
|
927
927
|
};
|
|
928
|
-
query:
|
|
929
|
-
headers:
|
|
928
|
+
query: {};
|
|
929
|
+
headers: {};
|
|
930
930
|
response: {
|
|
931
931
|
200: {
|
|
932
932
|
symbol: string;
|
|
@@ -983,8 +983,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
983
983
|
};
|
|
984
984
|
};
|
|
985
985
|
params: {};
|
|
986
|
-
query:
|
|
987
|
-
headers:
|
|
986
|
+
query: {};
|
|
987
|
+
headers: {};
|
|
988
988
|
response: {
|
|
989
989
|
200: {
|
|
990
990
|
symbol: string;
|
|
@@ -1036,8 +1036,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1036
1036
|
params: {
|
|
1037
1037
|
code: string;
|
|
1038
1038
|
};
|
|
1039
|
-
query:
|
|
1040
|
-
headers:
|
|
1039
|
+
query: {};
|
|
1040
|
+
headers: {};
|
|
1041
1041
|
response: {
|
|
1042
1042
|
200: {
|
|
1043
1043
|
symbol: string;
|
|
@@ -1093,8 +1093,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1093
1093
|
minPayAmount: string;
|
|
1094
1094
|
};
|
|
1095
1095
|
params: {};
|
|
1096
|
-
query:
|
|
1097
|
-
headers:
|
|
1096
|
+
query: {};
|
|
1097
|
+
headers: {};
|
|
1098
1098
|
response: {
|
|
1099
1099
|
200: {
|
|
1100
1100
|
id: string;
|
|
@@ -1142,8 +1142,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1142
1142
|
params: {
|
|
1143
1143
|
id: string;
|
|
1144
1144
|
};
|
|
1145
|
-
query:
|
|
1146
|
-
headers:
|
|
1145
|
+
query: {};
|
|
1146
|
+
headers: {};
|
|
1147
1147
|
response: {
|
|
1148
1148
|
200: {
|
|
1149
1149
|
createdAt: Date;
|
|
@@ -1180,12 +1180,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1180
1180
|
":id": {
|
|
1181
1181
|
activate: {
|
|
1182
1182
|
post: {
|
|
1183
|
-
body:
|
|
1183
|
+
body: {};
|
|
1184
1184
|
params: {
|
|
1185
1185
|
id: string;
|
|
1186
1186
|
};
|
|
1187
|
-
query:
|
|
1188
|
-
headers:
|
|
1187
|
+
query: {};
|
|
1188
|
+
headers: {};
|
|
1189
1189
|
response: {
|
|
1190
1190
|
200: {
|
|
1191
1191
|
createdAt: Date;
|
|
@@ -1223,12 +1223,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1223
1223
|
":id": {
|
|
1224
1224
|
pause: {
|
|
1225
1225
|
post: {
|
|
1226
|
-
body:
|
|
1226
|
+
body: {};
|
|
1227
1227
|
params: {
|
|
1228
1228
|
id: string;
|
|
1229
1229
|
};
|
|
1230
|
-
query:
|
|
1231
|
-
headers:
|
|
1230
|
+
query: {};
|
|
1231
|
+
headers: {};
|
|
1232
1232
|
response: {
|
|
1233
1233
|
200: {
|
|
1234
1234
|
createdAt: Date;
|
|
@@ -1266,12 +1266,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1266
1266
|
":id": {
|
|
1267
1267
|
end: {
|
|
1268
1268
|
post: {
|
|
1269
|
-
body:
|
|
1269
|
+
body: {};
|
|
1270
1270
|
params: {
|
|
1271
1271
|
id: string;
|
|
1272
1272
|
};
|
|
1273
|
-
query:
|
|
1274
|
-
headers:
|
|
1273
|
+
query: {};
|
|
1274
|
+
headers: {};
|
|
1275
1275
|
response: {
|
|
1276
1276
|
200: {
|
|
1277
1277
|
createdAt: Date;
|
|
@@ -1307,7 +1307,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1307
1307
|
asset_convert_product: {
|
|
1308
1308
|
products: {
|
|
1309
1309
|
get: {
|
|
1310
|
-
body:
|
|
1310
|
+
body: {};
|
|
1311
1311
|
params: {};
|
|
1312
1312
|
query: {
|
|
1313
1313
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
@@ -1317,7 +1317,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1317
1317
|
pageSize?: number | undefined;
|
|
1318
1318
|
pageIndex?: number | undefined;
|
|
1319
1319
|
};
|
|
1320
|
-
headers:
|
|
1320
|
+
headers: {};
|
|
1321
1321
|
response: {
|
|
1322
1322
|
200: {
|
|
1323
1323
|
data: {
|
|
@@ -1360,7 +1360,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1360
1360
|
asset_convert_product: {
|
|
1361
1361
|
orders: {
|
|
1362
1362
|
get: {
|
|
1363
|
-
body:
|
|
1363
|
+
body: {};
|
|
1364
1364
|
params: {};
|
|
1365
1365
|
query: {
|
|
1366
1366
|
userId?: string | undefined;
|
|
@@ -1371,7 +1371,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1371
1371
|
pageSize?: number | undefined;
|
|
1372
1372
|
pageIndex?: number | undefined;
|
|
1373
1373
|
};
|
|
1374
|
-
headers:
|
|
1374
|
+
headers: {};
|
|
1375
1375
|
response: {
|
|
1376
1376
|
200: {
|
|
1377
1377
|
data: {
|
|
@@ -1428,7 +1428,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1428
1428
|
} & {
|
|
1429
1429
|
asset_types: {
|
|
1430
1430
|
get: {
|
|
1431
|
-
body:
|
|
1431
|
+
body: {};
|
|
1432
1432
|
params: {};
|
|
1433
1433
|
query: {
|
|
1434
1434
|
name?: string | undefined;
|
|
@@ -1439,7 +1439,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1439
1439
|
pageSize?: number | undefined;
|
|
1440
1440
|
pageIndex?: number | undefined;
|
|
1441
1441
|
};
|
|
1442
|
-
headers:
|
|
1442
|
+
headers: {};
|
|
1443
1443
|
response: {
|
|
1444
1444
|
200: {
|
|
1445
1445
|
data: {
|
|
@@ -1476,12 +1476,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1476
1476
|
asset_types: {
|
|
1477
1477
|
":id": {
|
|
1478
1478
|
get: {
|
|
1479
|
-
body:
|
|
1479
|
+
body: {};
|
|
1480
1480
|
params: {
|
|
1481
1481
|
id: string;
|
|
1482
1482
|
};
|
|
1483
|
-
query:
|
|
1484
|
-
headers:
|
|
1483
|
+
query: {};
|
|
1484
|
+
headers: {};
|
|
1485
1485
|
response: {
|
|
1486
1486
|
200: {
|
|
1487
1487
|
id: string;
|
|
@@ -1521,8 +1521,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1521
1521
|
params: {
|
|
1522
1522
|
id: string;
|
|
1523
1523
|
};
|
|
1524
|
-
query:
|
|
1525
|
-
headers:
|
|
1524
|
+
query: {};
|
|
1525
|
+
headers: {};
|
|
1526
1526
|
response: {
|
|
1527
1527
|
200: {
|
|
1528
1528
|
createdAt: Date;
|
|
@@ -1556,7 +1556,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1556
1556
|
} & {
|
|
1557
1557
|
wallet_types: {
|
|
1558
1558
|
get: {
|
|
1559
|
-
body:
|
|
1559
|
+
body: {};
|
|
1560
1560
|
params: {};
|
|
1561
1561
|
query: {
|
|
1562
1562
|
key?: string | undefined;
|
|
@@ -1567,7 +1567,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1567
1567
|
pageSize?: number | undefined;
|
|
1568
1568
|
pageIndex?: number | undefined;
|
|
1569
1569
|
};
|
|
1570
|
-
headers:
|
|
1570
|
+
headers: {};
|
|
1571
1571
|
response: {
|
|
1572
1572
|
200: {
|
|
1573
1573
|
data: {
|
|
@@ -1621,8 +1621,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1621
1621
|
allowedLedgerAccountTypeIds: string[];
|
|
1622
1622
|
};
|
|
1623
1623
|
params: {};
|
|
1624
|
-
query:
|
|
1625
|
-
headers:
|
|
1624
|
+
query: {};
|
|
1625
|
+
headers: {};
|
|
1626
1626
|
response: {
|
|
1627
1627
|
200: {
|
|
1628
1628
|
id: string;
|
|
@@ -1669,8 +1669,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1669
1669
|
params: {
|
|
1670
1670
|
key: string;
|
|
1671
1671
|
};
|
|
1672
|
-
query:
|
|
1673
|
-
headers:
|
|
1672
|
+
query: {};
|
|
1673
|
+
headers: {};
|
|
1674
1674
|
response: {
|
|
1675
1675
|
200: {
|
|
1676
1676
|
id: string;
|
|
@@ -1711,7 +1711,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1711
1711
|
} & {
|
|
1712
1712
|
wallets: {
|
|
1713
1713
|
get: {
|
|
1714
|
-
body:
|
|
1714
|
+
body: {};
|
|
1715
1715
|
params: {};
|
|
1716
1716
|
query: {
|
|
1717
1717
|
userId?: string | undefined;
|
|
@@ -1722,7 +1722,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1722
1722
|
pageIndex?: number | undefined;
|
|
1723
1723
|
walletTypeKey?: string | undefined;
|
|
1724
1724
|
};
|
|
1725
|
-
headers:
|
|
1725
|
+
headers: {};
|
|
1726
1726
|
response: {
|
|
1727
1727
|
200: {
|
|
1728
1728
|
data: {
|
|
@@ -1774,7 +1774,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1774
1774
|
} & {
|
|
1775
1775
|
ledger_account_types: {
|
|
1776
1776
|
get: {
|
|
1777
|
-
body:
|
|
1777
|
+
body: {};
|
|
1778
1778
|
params: {};
|
|
1779
1779
|
query: {
|
|
1780
1780
|
key?: string | undefined;
|
|
@@ -1784,7 +1784,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1784
1784
|
pageSize?: number | undefined;
|
|
1785
1785
|
pageIndex?: number | undefined;
|
|
1786
1786
|
};
|
|
1787
|
-
headers:
|
|
1787
|
+
headers: {};
|
|
1788
1788
|
response: {
|
|
1789
1789
|
200: {
|
|
1790
1790
|
data: {
|
|
@@ -1836,12 +1836,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1836
1836
|
ledger_account_types: {
|
|
1837
1837
|
":key": {
|
|
1838
1838
|
get: {
|
|
1839
|
-
body:
|
|
1839
|
+
body: {};
|
|
1840
1840
|
params: {
|
|
1841
1841
|
key: string;
|
|
1842
1842
|
};
|
|
1843
|
-
query:
|
|
1844
|
-
headers:
|
|
1843
|
+
query: {};
|
|
1844
|
+
headers: {};
|
|
1845
1845
|
response: {
|
|
1846
1846
|
200: {
|
|
1847
1847
|
id: string;
|
|
@@ -1909,8 +1909,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1909
1909
|
key: string;
|
|
1910
1910
|
};
|
|
1911
1911
|
params: {};
|
|
1912
|
-
query:
|
|
1913
|
-
headers:
|
|
1912
|
+
query: {};
|
|
1913
|
+
headers: {};
|
|
1914
1914
|
response: {
|
|
1915
1915
|
200: {
|
|
1916
1916
|
id: string;
|
|
@@ -1979,8 +1979,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1979
1979
|
params: {
|
|
1980
1980
|
key: string;
|
|
1981
1981
|
};
|
|
1982
|
-
query:
|
|
1983
|
-
headers:
|
|
1982
|
+
query: {};
|
|
1983
|
+
headers: {};
|
|
1984
1984
|
response: {
|
|
1985
1985
|
200: {
|
|
1986
1986
|
id: string;
|
|
@@ -2029,7 +2029,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2029
2029
|
} & {
|
|
2030
2030
|
ledger_accounts: {
|
|
2031
2031
|
get: {
|
|
2032
|
-
body:
|
|
2032
|
+
body: {};
|
|
2033
2033
|
params: {};
|
|
2034
2034
|
query: {
|
|
2035
2035
|
userId?: string | undefined;
|
|
@@ -2040,7 +2040,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2040
2040
|
pageSize?: number | undefined;
|
|
2041
2041
|
pageIndex?: number | undefined;
|
|
2042
2042
|
};
|
|
2043
|
-
headers:
|
|
2043
|
+
headers: {};
|
|
2044
2044
|
response: {
|
|
2045
2045
|
200: {
|
|
2046
2046
|
data: {
|
|
@@ -2081,12 +2081,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2081
2081
|
ledger_accounts: {
|
|
2082
2082
|
":id": {
|
|
2083
2083
|
get: {
|
|
2084
|
-
body:
|
|
2084
|
+
body: {};
|
|
2085
2085
|
params: {
|
|
2086
2086
|
id: string;
|
|
2087
2087
|
};
|
|
2088
|
-
query:
|
|
2089
|
-
headers:
|
|
2088
|
+
query: {};
|
|
2089
|
+
headers: {};
|
|
2090
2090
|
response: {
|
|
2091
2091
|
200: {
|
|
2092
2092
|
id: string;
|
|
@@ -2126,8 +2126,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2126
2126
|
params: {
|
|
2127
2127
|
id: string;
|
|
2128
2128
|
};
|
|
2129
|
-
query:
|
|
2130
|
-
headers:
|
|
2129
|
+
query: {};
|
|
2130
|
+
headers: {};
|
|
2131
2131
|
response: {
|
|
2132
2132
|
200: {
|
|
2133
2133
|
id: string;
|
|
@@ -2175,8 +2175,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2175
2175
|
direction: "increase" | "decrease";
|
|
2176
2176
|
};
|
|
2177
2177
|
params: {};
|
|
2178
|
-
query:
|
|
2179
|
-
headers:
|
|
2178
|
+
query: {};
|
|
2179
|
+
headers: {};
|
|
2180
2180
|
response: {
|
|
2181
2181
|
200: {
|
|
2182
2182
|
userId: string;
|
|
@@ -2225,8 +2225,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2225
2225
|
}[];
|
|
2226
2226
|
};
|
|
2227
2227
|
params: {};
|
|
2228
|
-
query:
|
|
2229
|
-
headers:
|
|
2228
|
+
query: {};
|
|
2229
|
+
headers: {};
|
|
2230
2230
|
response: {
|
|
2231
2231
|
200: {
|
|
2232
2232
|
totalCount: number;
|
|
@@ -2688,7 +2688,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2688
2688
|
} & {
|
|
2689
2689
|
checkIns: {
|
|
2690
2690
|
get: {
|
|
2691
|
-
body:
|
|
2691
|
+
body: {};
|
|
2692
2692
|
params: {};
|
|
2693
2693
|
query: {
|
|
2694
2694
|
userId?: string | undefined;
|
|
@@ -2700,7 +2700,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2700
2700
|
pageIndex?: number | undefined;
|
|
2701
2701
|
endDate?: Date | undefined;
|
|
2702
2702
|
};
|
|
2703
|
-
headers:
|
|
2703
|
+
headers: {};
|
|
2704
2704
|
response: {
|
|
2705
2705
|
200: {
|
|
2706
2706
|
data: {
|
|
@@ -2767,8 +2767,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2767
2767
|
fileId: string;
|
|
2768
2768
|
};
|
|
2769
2769
|
params: {};
|
|
2770
|
-
query:
|
|
2771
|
-
headers:
|
|
2770
|
+
query: {};
|
|
2771
|
+
headers: {};
|
|
2772
2772
|
response: {
|
|
2773
2773
|
200: {
|
|
2774
2774
|
error: string | null;
|
|
@@ -2805,7 +2805,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2805
2805
|
ledger_account_import: {
|
|
2806
2806
|
jobs: {
|
|
2807
2807
|
get: {
|
|
2808
|
-
body:
|
|
2808
|
+
body: {};
|
|
2809
2809
|
params: {};
|
|
2810
2810
|
query: {
|
|
2811
2811
|
status?: "pending" | "failed" | "running" | "success" | undefined;
|
|
@@ -2814,7 +2814,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2814
2814
|
pageSize?: number | undefined;
|
|
2815
2815
|
pageIndex?: number | undefined;
|
|
2816
2816
|
};
|
|
2817
|
-
headers:
|
|
2817
|
+
headers: {};
|
|
2818
2818
|
response: {
|
|
2819
2819
|
200: {
|
|
2820
2820
|
data: {
|
|
@@ -2861,12 +2861,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2861
2861
|
jobs: {
|
|
2862
2862
|
":id": {
|
|
2863
2863
|
get: {
|
|
2864
|
-
body:
|
|
2864
|
+
body: {};
|
|
2865
2865
|
params: {
|
|
2866
2866
|
id: string;
|
|
2867
2867
|
};
|
|
2868
|
-
query:
|
|
2869
|
-
headers:
|
|
2868
|
+
query: {};
|
|
2869
|
+
headers: {};
|
|
2870
2870
|
response: {
|
|
2871
2871
|
200: {
|
|
2872
2872
|
error: string | null;
|
|
@@ -2906,7 +2906,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2906
2906
|
":id": {
|
|
2907
2907
|
items: {
|
|
2908
2908
|
get: {
|
|
2909
|
-
body:
|
|
2909
|
+
body: {};
|
|
2910
2910
|
params: {
|
|
2911
2911
|
id: string;
|
|
2912
2912
|
};
|
|
@@ -2917,7 +2917,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2917
2917
|
pageSize?: number | undefined;
|
|
2918
2918
|
pageIndex?: number | undefined;
|
|
2919
2919
|
};
|
|
2920
|
-
headers:
|
|
2920
|
+
headers: {};
|
|
2921
2921
|
response: {
|
|
2922
2922
|
200: {
|
|
2923
2923
|
data: {
|
|
@@ -2972,10 +2972,10 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2972
2972
|
ledger_account_import: {
|
|
2973
2973
|
template: {
|
|
2974
2974
|
get: {
|
|
2975
|
-
body:
|
|
2975
|
+
body: {};
|
|
2976
2976
|
params: {};
|
|
2977
|
-
query:
|
|
2978
|
-
headers:
|
|
2977
|
+
query: {};
|
|
2978
|
+
headers: {};
|
|
2979
2979
|
response: {
|
|
2980
2980
|
200: ArrayBuffer;
|
|
2981
2981
|
422: {
|
|
@@ -3001,7 +3001,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3001
3001
|
ledger: {
|
|
3002
3002
|
entries: {
|
|
3003
3003
|
get: {
|
|
3004
|
-
body:
|
|
3004
|
+
body: {};
|
|
3005
3005
|
params: {};
|
|
3006
3006
|
query: {
|
|
3007
3007
|
accountId?: string | undefined;
|
|
@@ -3012,7 +3012,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3012
3012
|
pageIndex?: number | undefined;
|
|
3013
3013
|
userId: string;
|
|
3014
3014
|
};
|
|
3015
|
-
headers:
|
|
3015
|
+
headers: {};
|
|
3016
3016
|
response: {
|
|
3017
3017
|
200: {
|
|
3018
3018
|
data: {
|
|
@@ -3021,7 +3021,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3021
3021
|
assetId: string;
|
|
3022
3022
|
fromAccountId: string | null;
|
|
3023
3023
|
toAccountId: string | null;
|
|
3024
|
-
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit";
|
|
3024
|
+
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
3025
3025
|
amount: string;
|
|
3026
3026
|
fromAvailableBefore: string | null;
|
|
3027
3027
|
fromAvailableAfter: string | null;
|
|
@@ -3032,7 +3032,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3032
3032
|
toLockedBefore: string | null;
|
|
3033
3033
|
toLockedAfter: string | null;
|
|
3034
3034
|
referenceId: string;
|
|
3035
|
-
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order";
|
|
3035
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
3036
3036
|
idempotencyKey: string;
|
|
3037
3037
|
operatorId: string | null;
|
|
3038
3038
|
memo: string | null;
|
|
@@ -3063,121 +3063,102 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3063
3063
|
};
|
|
3064
3064
|
} & {
|
|
3065
3065
|
admin: {
|
|
3066
|
-
|
|
3066
|
+
market_pricing: {};
|
|
3067
3067
|
} & {
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
image: string | null;
|
|
3091
|
-
createdAt: Date;
|
|
3092
|
-
updatedAt: Date;
|
|
3093
|
-
twoFactorEnabled: boolean | null;
|
|
3094
|
-
username: string | null;
|
|
3095
|
-
displayUsername: string | null;
|
|
3096
|
-
isAnonymous: boolean | null;
|
|
3097
|
-
phoneNumber: string | null;
|
|
3098
|
-
phoneNumberVerified: boolean | null;
|
|
3099
|
-
role: string | null;
|
|
3100
|
-
banned: boolean | null;
|
|
3101
|
-
banReason: string | null;
|
|
3102
|
-
banExpires: Date | null;
|
|
3103
|
-
};
|
|
3068
|
+
market_pricing: {
|
|
3069
|
+
strategies: {
|
|
3070
|
+
post: {
|
|
3071
|
+
body: {
|
|
3072
|
+
source?: string | undefined;
|
|
3073
|
+
strategyType?: "random_walk" | undefined;
|
|
3074
|
+
driftBps?: string | undefined;
|
|
3075
|
+
minPrice?: string | null | undefined;
|
|
3076
|
+
maxPrice?: string | null | undefined;
|
|
3077
|
+
intervalSeconds?: number | undefined;
|
|
3078
|
+
maxStepBps?: string | undefined;
|
|
3079
|
+
fallbackPrice?: string | undefined;
|
|
3080
|
+
isEnabled?: boolean | undefined;
|
|
3081
|
+
name: string;
|
|
3082
|
+
baseAssetId: string;
|
|
3083
|
+
quoteAssetId: string;
|
|
3084
|
+
};
|
|
3085
|
+
params: {};
|
|
3086
|
+
query: {};
|
|
3087
|
+
headers: {};
|
|
3088
|
+
response: {
|
|
3089
|
+
200: {
|
|
3104
3090
|
id: string;
|
|
3091
|
+
name: string;
|
|
3105
3092
|
createdAt: Date;
|
|
3106
3093
|
updatedAt: Date;
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
pageIndex: number;
|
|
3128
|
-
totalPages: number;
|
|
3129
|
-
hasNextPage: boolean;
|
|
3094
|
+
baseAssetId: string;
|
|
3095
|
+
quoteAssetId: string;
|
|
3096
|
+
source: string;
|
|
3097
|
+
strategyType: "random_walk";
|
|
3098
|
+
driftBps: string;
|
|
3099
|
+
minPrice: string | null;
|
|
3100
|
+
maxPrice: string | null;
|
|
3101
|
+
intervalSeconds: number;
|
|
3102
|
+
maxStepBps: string;
|
|
3103
|
+
fallbackPrice: string;
|
|
3104
|
+
isEnabled: boolean;
|
|
3105
|
+
};
|
|
3106
|
+
422: {
|
|
3107
|
+
type: "validation";
|
|
3108
|
+
on: string;
|
|
3109
|
+
summary?: string;
|
|
3110
|
+
message?: string;
|
|
3111
|
+
found?: unknown;
|
|
3112
|
+
property?: string;
|
|
3113
|
+
expected?: string;
|
|
3130
3114
|
};
|
|
3115
|
+
401: "Unauthorized";
|
|
3116
|
+
403: "Forbidden: Admins only";
|
|
3131
3117
|
};
|
|
3132
|
-
422: {
|
|
3133
|
-
type: "validation";
|
|
3134
|
-
on: string;
|
|
3135
|
-
summary?: string;
|
|
3136
|
-
message?: string;
|
|
3137
|
-
found?: unknown;
|
|
3138
|
-
property?: string;
|
|
3139
|
-
expected?: string;
|
|
3140
|
-
};
|
|
3141
|
-
401: "Unauthorized";
|
|
3142
|
-
403: "Forbidden: Admins only";
|
|
3143
3118
|
};
|
|
3144
3119
|
};
|
|
3145
3120
|
};
|
|
3146
3121
|
} & {
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
":
|
|
3150
|
-
|
|
3122
|
+
market_pricing: {
|
|
3123
|
+
strategies: {
|
|
3124
|
+
":id": {
|
|
3125
|
+
patch: {
|
|
3151
3126
|
body: {
|
|
3152
|
-
|
|
3153
|
-
|
|
3127
|
+
name?: string | undefined;
|
|
3128
|
+
baseAssetId?: string | undefined;
|
|
3129
|
+
quoteAssetId?: string | undefined;
|
|
3130
|
+
source?: string | undefined;
|
|
3131
|
+
strategyType?: "random_walk" | undefined;
|
|
3132
|
+
driftBps?: string | undefined;
|
|
3133
|
+
minPrice?: string | null | undefined;
|
|
3134
|
+
maxPrice?: string | null | undefined;
|
|
3135
|
+
intervalSeconds?: number | undefined;
|
|
3136
|
+
maxStepBps?: string | undefined;
|
|
3137
|
+
fallbackPrice?: string | undefined;
|
|
3138
|
+
isEnabled?: boolean | undefined;
|
|
3154
3139
|
};
|
|
3155
3140
|
params: {
|
|
3156
|
-
|
|
3141
|
+
id: string;
|
|
3157
3142
|
};
|
|
3158
|
-
query:
|
|
3159
|
-
headers:
|
|
3143
|
+
query: {};
|
|
3144
|
+
headers: {};
|
|
3160
3145
|
response: {
|
|
3161
3146
|
200: {
|
|
3162
3147
|
createdAt: Date;
|
|
3163
3148
|
updatedAt: Date;
|
|
3164
3149
|
id: string;
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
reviewedBy: string | null;
|
|
3178
|
-
reviewedAt: Date | null;
|
|
3179
|
-
reviewNote: string | null;
|
|
3180
|
-
completedAt: Date | null;
|
|
3150
|
+
name: string;
|
|
3151
|
+
baseAssetId: string;
|
|
3152
|
+
quoteAssetId: string;
|
|
3153
|
+
strategyType: "random_walk";
|
|
3154
|
+
driftBps: string;
|
|
3155
|
+
minPrice: string | null;
|
|
3156
|
+
maxPrice: string | null;
|
|
3157
|
+
source: string;
|
|
3158
|
+
intervalSeconds: number;
|
|
3159
|
+
maxStepBps: string;
|
|
3160
|
+
fallbackPrice: string;
|
|
3161
|
+
isEnabled: boolean;
|
|
3181
3162
|
};
|
|
3182
3163
|
422: {
|
|
3183
3164
|
type: "validation";
|
|
@@ -3196,149 +3177,185 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3196
3177
|
};
|
|
3197
3178
|
};
|
|
3198
3179
|
} & {
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
":
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
params: {
|
|
3207
|
-
orderId: string;
|
|
3208
|
-
};
|
|
3209
|
-
query: unknown;
|
|
3210
|
-
headers: unknown;
|
|
3211
|
-
response: {
|
|
3212
|
-
200: {
|
|
3213
|
-
createdAt: Date;
|
|
3214
|
-
updatedAt: Date;
|
|
3180
|
+
market_pricing: {
|
|
3181
|
+
strategies: {
|
|
3182
|
+
":id": {
|
|
3183
|
+
enable: {
|
|
3184
|
+
post: {
|
|
3185
|
+
body: {};
|
|
3186
|
+
params: {
|
|
3215
3187
|
id: string;
|
|
3216
|
-
orderNo: string;
|
|
3217
|
-
idempotencyKey: string;
|
|
3218
|
-
userId: string;
|
|
3219
|
-
amount: string;
|
|
3220
|
-
assetId: string | null;
|
|
3221
|
-
targetAccountId: string | null;
|
|
3222
|
-
actualAmount: string | null;
|
|
3223
|
-
fee: string | null;
|
|
3224
|
-
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
3225
|
-
paymentChannel: string | null;
|
|
3226
|
-
paymentOrderNo: string | null;
|
|
3227
|
-
paymentProof: string | null;
|
|
3228
|
-
reviewedBy: string | null;
|
|
3229
|
-
reviewedAt: Date | null;
|
|
3230
|
-
reviewNote: string | null;
|
|
3231
|
-
completedAt: Date | null;
|
|
3232
3188
|
};
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3189
|
+
query: {};
|
|
3190
|
+
headers: {};
|
|
3191
|
+
response: {
|
|
3192
|
+
200: {
|
|
3193
|
+
createdAt: Date;
|
|
3194
|
+
updatedAt: Date;
|
|
3195
|
+
id: string;
|
|
3196
|
+
name: string;
|
|
3197
|
+
baseAssetId: string;
|
|
3198
|
+
quoteAssetId: string;
|
|
3199
|
+
strategyType: "random_walk";
|
|
3200
|
+
driftBps: string;
|
|
3201
|
+
minPrice: string | null;
|
|
3202
|
+
maxPrice: string | null;
|
|
3203
|
+
source: string;
|
|
3204
|
+
intervalSeconds: number;
|
|
3205
|
+
maxStepBps: string;
|
|
3206
|
+
fallbackPrice: string;
|
|
3207
|
+
isEnabled: boolean;
|
|
3208
|
+
};
|
|
3209
|
+
422: {
|
|
3210
|
+
type: "validation";
|
|
3211
|
+
on: string;
|
|
3212
|
+
summary?: string;
|
|
3213
|
+
message?: string;
|
|
3214
|
+
found?: unknown;
|
|
3215
|
+
property?: string;
|
|
3216
|
+
expected?: string;
|
|
3217
|
+
};
|
|
3218
|
+
401: "Unauthorized";
|
|
3219
|
+
403: "Forbidden: Admins only";
|
|
3241
3220
|
};
|
|
3242
|
-
401: "Unauthorized";
|
|
3243
|
-
403: "Forbidden: Admins only";
|
|
3244
3221
|
};
|
|
3245
3222
|
};
|
|
3246
3223
|
};
|
|
3247
3224
|
};
|
|
3248
3225
|
};
|
|
3249
|
-
};
|
|
3250
|
-
} & {
|
|
3251
|
-
admin: {
|
|
3252
|
-
withdraw: {};
|
|
3253
3226
|
} & {
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3227
|
+
market_pricing: {
|
|
3228
|
+
strategies: {
|
|
3229
|
+
":id": {
|
|
3230
|
+
disable: {
|
|
3231
|
+
post: {
|
|
3232
|
+
body: {};
|
|
3233
|
+
params: {
|
|
3234
|
+
id: string;
|
|
3235
|
+
};
|
|
3236
|
+
query: {};
|
|
3237
|
+
headers: {};
|
|
3238
|
+
response: {
|
|
3239
|
+
200: {
|
|
3240
|
+
createdAt: Date;
|
|
3241
|
+
updatedAt: Date;
|
|
3242
|
+
id: string;
|
|
3243
|
+
name: string;
|
|
3244
|
+
baseAssetId: string;
|
|
3245
|
+
quoteAssetId: string;
|
|
3246
|
+
strategyType: "random_walk";
|
|
3247
|
+
driftBps: string;
|
|
3248
|
+
minPrice: string | null;
|
|
3249
|
+
maxPrice: string | null;
|
|
3250
|
+
source: string;
|
|
3251
|
+
intervalSeconds: number;
|
|
3252
|
+
maxStepBps: string;
|
|
3253
|
+
fallbackPrice: string;
|
|
3254
|
+
isEnabled: boolean;
|
|
3255
|
+
};
|
|
3256
|
+
422: {
|
|
3257
|
+
type: "validation";
|
|
3258
|
+
on: string;
|
|
3259
|
+
summary?: string;
|
|
3260
|
+
message?: string;
|
|
3261
|
+
found?: unknown;
|
|
3262
|
+
property?: string;
|
|
3263
|
+
expected?: string;
|
|
3264
|
+
};
|
|
3265
|
+
401: "Unauthorized";
|
|
3266
|
+
403: "Forbidden: Admins only";
|
|
3267
|
+
};
|
|
3294
3268
|
};
|
|
3295
3269
|
};
|
|
3296
|
-
422: {
|
|
3297
|
-
type: "validation";
|
|
3298
|
-
on: string;
|
|
3299
|
-
summary?: string;
|
|
3300
|
-
message?: string;
|
|
3301
|
-
found?: unknown;
|
|
3302
|
-
property?: string;
|
|
3303
|
-
expected?: string;
|
|
3304
|
-
};
|
|
3305
|
-
401: "Unauthorized";
|
|
3306
|
-
403: "Forbidden: Admins only";
|
|
3307
3270
|
};
|
|
3308
3271
|
};
|
|
3309
3272
|
};
|
|
3310
3273
|
} & {
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3274
|
+
market_pricing: {
|
|
3275
|
+
strategies: {
|
|
3276
|
+
get: {
|
|
3277
|
+
body: {};
|
|
3278
|
+
params: {};
|
|
3279
|
+
query: {
|
|
3280
|
+
baseAssetId?: string | undefined;
|
|
3281
|
+
quoteAssetId?: string | undefined;
|
|
3282
|
+
isEnabled?: boolean | undefined;
|
|
3283
|
+
limit?: number | undefined;
|
|
3284
|
+
offset?: number | undefined;
|
|
3285
|
+
pageSize?: number | undefined;
|
|
3286
|
+
pageIndex?: number | undefined;
|
|
3287
|
+
};
|
|
3288
|
+
headers: {};
|
|
3289
|
+
response: {
|
|
3290
|
+
200: {
|
|
3291
|
+
data: {
|
|
3292
|
+
id: string;
|
|
3293
|
+
name: string;
|
|
3294
|
+
createdAt: Date;
|
|
3295
|
+
updatedAt: Date;
|
|
3296
|
+
baseAssetId: string;
|
|
3297
|
+
quoteAssetId: string;
|
|
3298
|
+
source: string;
|
|
3299
|
+
strategyType: "random_walk";
|
|
3300
|
+
driftBps: string;
|
|
3301
|
+
minPrice: string | null;
|
|
3302
|
+
maxPrice: string | null;
|
|
3303
|
+
intervalSeconds: number;
|
|
3304
|
+
maxStepBps: string;
|
|
3305
|
+
fallbackPrice: string;
|
|
3306
|
+
isEnabled: boolean;
|
|
3307
|
+
}[];
|
|
3308
|
+
pagination: {
|
|
3309
|
+
total: number;
|
|
3310
|
+
pageSize: number;
|
|
3311
|
+
pageIndex: number;
|
|
3312
|
+
totalPages: number;
|
|
3313
|
+
hasNextPage: boolean;
|
|
3314
|
+
};
|
|
3315
|
+
};
|
|
3316
|
+
422: {
|
|
3317
|
+
type: "validation";
|
|
3318
|
+
on: string;
|
|
3319
|
+
summary?: string;
|
|
3320
|
+
message?: string;
|
|
3321
|
+
found?: unknown;
|
|
3322
|
+
property?: string;
|
|
3323
|
+
expected?: string;
|
|
3317
3324
|
};
|
|
3325
|
+
401: "Unauthorized";
|
|
3326
|
+
403: "Forbidden: Admins only";
|
|
3327
|
+
};
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
} & {
|
|
3332
|
+
market_pricing: {
|
|
3333
|
+
strategies: {
|
|
3334
|
+
":id": {
|
|
3335
|
+
get: {
|
|
3336
|
+
body: {};
|
|
3318
3337
|
params: {
|
|
3319
|
-
|
|
3338
|
+
id: string;
|
|
3320
3339
|
};
|
|
3321
|
-
query:
|
|
3322
|
-
headers:
|
|
3340
|
+
query: {};
|
|
3341
|
+
headers: {};
|
|
3323
3342
|
response: {
|
|
3324
3343
|
200: {
|
|
3325
3344
|
id: string;
|
|
3345
|
+
name: string;
|
|
3326
3346
|
createdAt: Date;
|
|
3327
3347
|
updatedAt: Date;
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
rejectReason: string | null;
|
|
3340
|
-
paidBy: string | null;
|
|
3341
|
-
paidAt: Date | null;
|
|
3348
|
+
baseAssetId: string;
|
|
3349
|
+
quoteAssetId: string;
|
|
3350
|
+
source: string;
|
|
3351
|
+
strategyType: "random_walk";
|
|
3352
|
+
driftBps: string;
|
|
3353
|
+
minPrice: string | null;
|
|
3354
|
+
maxPrice: string | null;
|
|
3355
|
+
intervalSeconds: number;
|
|
3356
|
+
maxStepBps: string;
|
|
3357
|
+
fallbackPrice: string;
|
|
3358
|
+
isEnabled: boolean;
|
|
3342
3359
|
};
|
|
3343
3360
|
422: {
|
|
3344
3361
|
type: "validation";
|
|
@@ -3357,37 +3374,54 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3357
3374
|
};
|
|
3358
3375
|
};
|
|
3359
3376
|
} & {
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3377
|
+
market_pricing: {
|
|
3378
|
+
strategies: {
|
|
3379
|
+
":id": {
|
|
3380
|
+
"run-now": {
|
|
3381
|
+
post: {
|
|
3382
|
+
body: {};
|
|
3383
|
+
params: {
|
|
3384
|
+
id: string;
|
|
3385
|
+
};
|
|
3386
|
+
query: {};
|
|
3387
|
+
headers: {};
|
|
3388
|
+
response: {
|
|
3389
|
+
200: {
|
|
3390
|
+
price: string;
|
|
3391
|
+
effectiveAt: Date;
|
|
3392
|
+
created: boolean;
|
|
3393
|
+
strategyId: string;
|
|
3394
|
+
};
|
|
3395
|
+
422: {
|
|
3396
|
+
type: "validation";
|
|
3397
|
+
on: string;
|
|
3398
|
+
summary?: string;
|
|
3399
|
+
message?: string;
|
|
3400
|
+
found?: unknown;
|
|
3401
|
+
property?: string;
|
|
3402
|
+
expected?: string;
|
|
3403
|
+
};
|
|
3404
|
+
401: "Unauthorized";
|
|
3405
|
+
403: "Forbidden: Admins only";
|
|
3406
|
+
};
|
|
3369
3407
|
};
|
|
3370
|
-
|
|
3371
|
-
|
|
3408
|
+
};
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
} & {
|
|
3413
|
+
market_pricing: {
|
|
3414
|
+
jobs: {
|
|
3415
|
+
"run-enabled": {
|
|
3416
|
+
post: {
|
|
3417
|
+
body: {};
|
|
3418
|
+
params: {};
|
|
3419
|
+
query: {};
|
|
3420
|
+
headers: {};
|
|
3372
3421
|
response: {
|
|
3373
3422
|
200: {
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
updatedAt: Date;
|
|
3377
|
-
userId: string;
|
|
3378
|
-
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
3379
|
-
reviewedAt: Date | null;
|
|
3380
|
-
reviewedBy: string | null;
|
|
3381
|
-
assetId: string | null;
|
|
3382
|
-
amount: string;
|
|
3383
|
-
idempotencyKey: string;
|
|
3384
|
-
orderNo: string;
|
|
3385
|
-
reviewNote: string | null;
|
|
3386
|
-
sourceAccountId: string | null;
|
|
3387
|
-
receiptMethodId: string;
|
|
3388
|
-
rejectReason: string | null;
|
|
3389
|
-
paidBy: string | null;
|
|
3390
|
-
paidAt: Date | null;
|
|
3423
|
+
successCount: number;
|
|
3424
|
+
failedStrategyIds: string[];
|
|
3391
3425
|
};
|
|
3392
3426
|
422: {
|
|
3393
3427
|
type: "validation";
|
|
@@ -3405,36 +3439,55 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3405
3439
|
};
|
|
3406
3440
|
};
|
|
3407
3441
|
};
|
|
3442
|
+
};
|
|
3443
|
+
} & {
|
|
3444
|
+
admin: {
|
|
3445
|
+
market_data: {};
|
|
3408
3446
|
} & {
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
body:
|
|
3414
|
-
params: {
|
|
3415
|
-
|
|
3447
|
+
market_data: {
|
|
3448
|
+
klines: {
|
|
3449
|
+
"1m": {
|
|
3450
|
+
get: {
|
|
3451
|
+
body: {};
|
|
3452
|
+
params: {};
|
|
3453
|
+
query: {
|
|
3454
|
+
source?: string | undefined;
|
|
3455
|
+
startDate?: Date | undefined;
|
|
3456
|
+
limit?: number | undefined;
|
|
3457
|
+
offset?: number | undefined;
|
|
3458
|
+
pageSize?: number | undefined;
|
|
3459
|
+
pageIndex?: number | undefined;
|
|
3460
|
+
endDate?: Date | undefined;
|
|
3461
|
+
baseAsset: string;
|
|
3462
|
+
quoteAsset: string;
|
|
3416
3463
|
};
|
|
3417
|
-
|
|
3418
|
-
headers: unknown;
|
|
3464
|
+
headers: {};
|
|
3419
3465
|
response: {
|
|
3420
3466
|
200: {
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3467
|
+
data: {
|
|
3468
|
+
id: string;
|
|
3469
|
+
createdAt: Date;
|
|
3470
|
+
updatedAt: Date;
|
|
3471
|
+
baseAssetId: string;
|
|
3472
|
+
baseAsset: string;
|
|
3473
|
+
quoteAssetId: string;
|
|
3474
|
+
quoteAsset: string;
|
|
3475
|
+
source: string;
|
|
3476
|
+
low: string;
|
|
3477
|
+
high: string;
|
|
3478
|
+
bucketAt: Date;
|
|
3479
|
+
open: string;
|
|
3480
|
+
close: string;
|
|
3481
|
+
tickCount: number;
|
|
3482
|
+
volume: string;
|
|
3483
|
+
}[];
|
|
3484
|
+
pagination: {
|
|
3485
|
+
total: number;
|
|
3486
|
+
pageSize: number;
|
|
3487
|
+
pageIndex: number;
|
|
3488
|
+
totalPages: number;
|
|
3489
|
+
hasNextPage: boolean;
|
|
3490
|
+
};
|
|
3438
3491
|
};
|
|
3439
3492
|
422: {
|
|
3440
3493
|
type: "validation";
|
|
@@ -3452,89 +3505,158 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3452
3505
|
};
|
|
3453
3506
|
};
|
|
3454
3507
|
};
|
|
3455
|
-
};
|
|
3456
|
-
} & {
|
|
3457
|
-
admin: {
|
|
3458
|
-
notifications: {};
|
|
3459
3508
|
} & {
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3509
|
+
market_data: {
|
|
3510
|
+
jobs: {
|
|
3511
|
+
aggregate: {
|
|
3512
|
+
"1m": {
|
|
3513
|
+
"run-one": {
|
|
3514
|
+
post: {
|
|
3515
|
+
body: {
|
|
3516
|
+
source?: string | undefined;
|
|
3517
|
+
bucketAt?: Date | undefined;
|
|
3518
|
+
baseAsset: string;
|
|
3519
|
+
quoteAsset: string;
|
|
3520
|
+
};
|
|
3521
|
+
params: {};
|
|
3522
|
+
query: {};
|
|
3523
|
+
headers: {};
|
|
3524
|
+
response: {
|
|
3525
|
+
200: {
|
|
3526
|
+
id: string;
|
|
3527
|
+
createdAt: Date;
|
|
3528
|
+
updatedAt: Date;
|
|
3529
|
+
baseAssetId: string;
|
|
3530
|
+
baseAsset: string;
|
|
3531
|
+
quoteAssetId: string;
|
|
3532
|
+
quoteAsset: string;
|
|
3533
|
+
source: string;
|
|
3534
|
+
low: string;
|
|
3535
|
+
high: string;
|
|
3536
|
+
bucketAt: Date;
|
|
3537
|
+
open: string;
|
|
3538
|
+
close: string;
|
|
3539
|
+
tickCount: number;
|
|
3540
|
+
volume: string;
|
|
3541
|
+
} | null;
|
|
3542
|
+
422: {
|
|
3543
|
+
type: "validation";
|
|
3544
|
+
on: string;
|
|
3545
|
+
summary?: string;
|
|
3546
|
+
message?: string;
|
|
3547
|
+
found?: unknown;
|
|
3548
|
+
property?: string;
|
|
3549
|
+
expected?: string;
|
|
3550
|
+
};
|
|
3551
|
+
401: "Unauthorized";
|
|
3552
|
+
403: "Forbidden: Admins only";
|
|
3553
|
+
};
|
|
3554
|
+
};
|
|
3555
|
+
};
|
|
3487
3556
|
};
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
} & {
|
|
3561
|
+
market_data: {
|
|
3562
|
+
jobs: {
|
|
3563
|
+
aggregate: {
|
|
3564
|
+
"1m": {
|
|
3565
|
+
"run-enabled": {
|
|
3566
|
+
post: {
|
|
3567
|
+
body: {};
|
|
3568
|
+
params: {};
|
|
3569
|
+
query: {};
|
|
3570
|
+
headers: {};
|
|
3571
|
+
response: {
|
|
3572
|
+
200: {
|
|
3573
|
+
bucketAt: Date;
|
|
3574
|
+
successCount: number;
|
|
3575
|
+
failedPairs: string[];
|
|
3576
|
+
};
|
|
3577
|
+
422: {
|
|
3578
|
+
type: "validation";
|
|
3579
|
+
on: string;
|
|
3580
|
+
summary?: string;
|
|
3581
|
+
message?: string;
|
|
3582
|
+
found?: unknown;
|
|
3583
|
+
property?: string;
|
|
3584
|
+
expected?: string;
|
|
3585
|
+
};
|
|
3586
|
+
401: "Unauthorized";
|
|
3587
|
+
403: "Forbidden: Admins only";
|
|
3588
|
+
};
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3496
3591
|
};
|
|
3497
|
-
401: "Unauthorized";
|
|
3498
|
-
403: "Forbidden: Admins only";
|
|
3499
3592
|
};
|
|
3500
3593
|
};
|
|
3501
3594
|
};
|
|
3595
|
+
};
|
|
3596
|
+
} & {
|
|
3597
|
+
admin: {
|
|
3598
|
+
deposit: {};
|
|
3502
3599
|
} & {
|
|
3503
|
-
|
|
3600
|
+
deposit: {
|
|
3504
3601
|
get: {
|
|
3505
|
-
body:
|
|
3602
|
+
body: {};
|
|
3506
3603
|
params: {};
|
|
3507
3604
|
query: {
|
|
3508
|
-
|
|
3509
|
-
status?: "
|
|
3605
|
+
userId?: string | undefined;
|
|
3606
|
+
status?: "pending" | "approved" | "rejected" | "completed" | "cancelled" | undefined;
|
|
3607
|
+
orderNo?: string | undefined;
|
|
3510
3608
|
limit?: number | undefined;
|
|
3511
3609
|
offset?: number | undefined;
|
|
3512
3610
|
pageSize?: number | undefined;
|
|
3513
3611
|
pageIndex?: number | undefined;
|
|
3514
3612
|
};
|
|
3515
|
-
headers:
|
|
3613
|
+
headers: {};
|
|
3516
3614
|
response: {
|
|
3517
3615
|
200: {
|
|
3518
3616
|
data: {
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3617
|
+
user: {
|
|
3618
|
+
email: string;
|
|
3619
|
+
id: string;
|
|
3620
|
+
name: string;
|
|
3621
|
+
emailVerified: boolean;
|
|
3622
|
+
image: string | null;
|
|
3623
|
+
createdAt: Date;
|
|
3624
|
+
updatedAt: Date;
|
|
3625
|
+
twoFactorEnabled: boolean | null;
|
|
3626
|
+
username: string | null;
|
|
3627
|
+
displayUsername: string | null;
|
|
3628
|
+
isAnonymous: boolean | null;
|
|
3629
|
+
phoneNumber: string | null;
|
|
3630
|
+
phoneNumberVerified: boolean | null;
|
|
3631
|
+
role: string | null;
|
|
3632
|
+
banned: boolean | null;
|
|
3633
|
+
banReason: string | null;
|
|
3634
|
+
banExpires: Date | null;
|
|
3635
|
+
};
|
|
3636
|
+
id: string;
|
|
3523
3637
|
createdAt: Date;
|
|
3524
3638
|
updatedAt: Date;
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3639
|
+
userId: string;
|
|
3640
|
+
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
3641
|
+
reviewedAt: Date | null;
|
|
3642
|
+
reviewedBy: string | null;
|
|
3643
|
+
assetId: string | null;
|
|
3644
|
+
amount: string;
|
|
3645
|
+
idempotencyKey: string;
|
|
3646
|
+
orderNo: string;
|
|
3647
|
+
targetAccountId: string | null;
|
|
3648
|
+
actualAmount: string | null;
|
|
3649
|
+
fee: string | null;
|
|
3650
|
+
paymentChannel: string | null;
|
|
3651
|
+
paymentOrderNo: string | null;
|
|
3652
|
+
paymentProof: string | null;
|
|
3653
|
+
reviewNote: string | null;
|
|
3654
|
+
completedAt: Date | null;
|
|
3533
3655
|
}[];
|
|
3534
3656
|
pagination: {
|
|
3657
|
+
total: number;
|
|
3535
3658
|
pageSize: number;
|
|
3536
3659
|
pageIndex: number;
|
|
3537
|
-
total: number;
|
|
3538
3660
|
totalPages: number;
|
|
3539
3661
|
hasNextPage: boolean;
|
|
3540
3662
|
};
|
|
@@ -3554,26 +3676,436 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3554
3676
|
};
|
|
3555
3677
|
};
|
|
3556
3678
|
} & {
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
response: {
|
|
3565
|
-
200: {
|
|
3566
|
-
totalSent: number;
|
|
3567
|
-
broadcastCount: number;
|
|
3568
|
-
personalCount: number;
|
|
3569
|
-
totalRead: number;
|
|
3570
|
-
readRate: number;
|
|
3679
|
+
deposit: {
|
|
3680
|
+
approve: {
|
|
3681
|
+
":orderId": {
|
|
3682
|
+
post: {
|
|
3683
|
+
body: {
|
|
3684
|
+
actualAmount?: string | undefined;
|
|
3685
|
+
reviewNote?: string | undefined;
|
|
3571
3686
|
};
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3687
|
+
params: {
|
|
3688
|
+
orderId: string;
|
|
3689
|
+
};
|
|
3690
|
+
query: {};
|
|
3691
|
+
headers: {};
|
|
3692
|
+
response: {
|
|
3693
|
+
200: {
|
|
3694
|
+
createdAt: Date;
|
|
3695
|
+
updatedAt: Date;
|
|
3696
|
+
id: string;
|
|
3697
|
+
orderNo: string;
|
|
3698
|
+
idempotencyKey: string;
|
|
3699
|
+
userId: string;
|
|
3700
|
+
amount: string;
|
|
3701
|
+
assetId: string | null;
|
|
3702
|
+
targetAccountId: string | null;
|
|
3703
|
+
actualAmount: string | null;
|
|
3704
|
+
fee: string | null;
|
|
3705
|
+
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
3706
|
+
paymentChannel: string | null;
|
|
3707
|
+
paymentOrderNo: string | null;
|
|
3708
|
+
paymentProof: string | null;
|
|
3709
|
+
reviewedBy: string | null;
|
|
3710
|
+
reviewedAt: Date | null;
|
|
3711
|
+
reviewNote: string | null;
|
|
3712
|
+
completedAt: Date | null;
|
|
3713
|
+
};
|
|
3714
|
+
422: {
|
|
3715
|
+
type: "validation";
|
|
3716
|
+
on: string;
|
|
3717
|
+
summary?: string;
|
|
3718
|
+
message?: string;
|
|
3719
|
+
found?: unknown;
|
|
3720
|
+
property?: string;
|
|
3721
|
+
expected?: string;
|
|
3722
|
+
};
|
|
3723
|
+
401: "Unauthorized";
|
|
3724
|
+
403: "Forbidden: Admins only";
|
|
3725
|
+
};
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
};
|
|
3729
|
+
};
|
|
3730
|
+
} & {
|
|
3731
|
+
deposit: {
|
|
3732
|
+
reject: {
|
|
3733
|
+
":orderId": {
|
|
3734
|
+
post: {
|
|
3735
|
+
body: {
|
|
3736
|
+
reviewNote: string;
|
|
3737
|
+
};
|
|
3738
|
+
params: {
|
|
3739
|
+
orderId: string;
|
|
3740
|
+
};
|
|
3741
|
+
query: {};
|
|
3742
|
+
headers: {};
|
|
3743
|
+
response: {
|
|
3744
|
+
200: {
|
|
3745
|
+
createdAt: Date;
|
|
3746
|
+
updatedAt: Date;
|
|
3747
|
+
id: string;
|
|
3748
|
+
orderNo: string;
|
|
3749
|
+
idempotencyKey: string;
|
|
3750
|
+
userId: string;
|
|
3751
|
+
amount: string;
|
|
3752
|
+
assetId: string | null;
|
|
3753
|
+
targetAccountId: string | null;
|
|
3754
|
+
actualAmount: string | null;
|
|
3755
|
+
fee: string | null;
|
|
3756
|
+
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
3757
|
+
paymentChannel: string | null;
|
|
3758
|
+
paymentOrderNo: string | null;
|
|
3759
|
+
paymentProof: string | null;
|
|
3760
|
+
reviewedBy: string | null;
|
|
3761
|
+
reviewedAt: Date | null;
|
|
3762
|
+
reviewNote: string | null;
|
|
3763
|
+
completedAt: Date | null;
|
|
3764
|
+
};
|
|
3765
|
+
422: {
|
|
3766
|
+
type: "validation";
|
|
3767
|
+
on: string;
|
|
3768
|
+
summary?: string;
|
|
3769
|
+
message?: string;
|
|
3770
|
+
found?: unknown;
|
|
3771
|
+
property?: string;
|
|
3772
|
+
expected?: string;
|
|
3773
|
+
};
|
|
3774
|
+
401: "Unauthorized";
|
|
3775
|
+
403: "Forbidden: Admins only";
|
|
3776
|
+
};
|
|
3777
|
+
};
|
|
3778
|
+
};
|
|
3779
|
+
};
|
|
3780
|
+
};
|
|
3781
|
+
};
|
|
3782
|
+
} & {
|
|
3783
|
+
admin: {
|
|
3784
|
+
withdraw: {};
|
|
3785
|
+
} & {
|
|
3786
|
+
withdraw: {
|
|
3787
|
+
get: {
|
|
3788
|
+
body: {};
|
|
3789
|
+
params: {};
|
|
3790
|
+
query: {
|
|
3791
|
+
userId?: string | undefined;
|
|
3792
|
+
status?: "rejected" | "completed" | "pending_review" | "pending_payout" | undefined;
|
|
3793
|
+
limit?: number | undefined;
|
|
3794
|
+
offset?: number | undefined;
|
|
3795
|
+
pageSize?: number | undefined;
|
|
3796
|
+
pageIndex?: number | undefined;
|
|
3797
|
+
};
|
|
3798
|
+
headers: {};
|
|
3799
|
+
response: {
|
|
3800
|
+
200: {
|
|
3801
|
+
data: {
|
|
3802
|
+
id: string;
|
|
3803
|
+
createdAt: Date;
|
|
3804
|
+
updatedAt: Date;
|
|
3805
|
+
userId: string;
|
|
3806
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
3807
|
+
reviewedAt: Date | null;
|
|
3808
|
+
reviewedBy: string | null;
|
|
3809
|
+
assetId: string | null;
|
|
3810
|
+
amount: string;
|
|
3811
|
+
idempotencyKey: string;
|
|
3812
|
+
orderNo: string;
|
|
3813
|
+
reviewNote: string | null;
|
|
3814
|
+
sourceAccountId: string | null;
|
|
3815
|
+
receiptMethodId: string;
|
|
3816
|
+
rejectReason: string | null;
|
|
3817
|
+
paidBy: string | null;
|
|
3818
|
+
paidAt: Date | null;
|
|
3819
|
+
}[];
|
|
3820
|
+
pagination: {
|
|
3821
|
+
total: number;
|
|
3822
|
+
pageSize: number;
|
|
3823
|
+
pageIndex: number;
|
|
3824
|
+
totalPages: number;
|
|
3825
|
+
hasNextPage: boolean;
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
422: {
|
|
3829
|
+
type: "validation";
|
|
3830
|
+
on: string;
|
|
3831
|
+
summary?: string;
|
|
3832
|
+
message?: string;
|
|
3833
|
+
found?: unknown;
|
|
3834
|
+
property?: string;
|
|
3835
|
+
expected?: string;
|
|
3836
|
+
};
|
|
3837
|
+
401: "Unauthorized";
|
|
3838
|
+
403: "Forbidden: Admins only";
|
|
3839
|
+
};
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
} & {
|
|
3843
|
+
withdraw: {
|
|
3844
|
+
":orderId": {
|
|
3845
|
+
approve: {
|
|
3846
|
+
post: {
|
|
3847
|
+
body: {
|
|
3848
|
+
reviewNote?: string | undefined;
|
|
3849
|
+
};
|
|
3850
|
+
params: {
|
|
3851
|
+
orderId: string;
|
|
3852
|
+
};
|
|
3853
|
+
query: {};
|
|
3854
|
+
headers: {};
|
|
3855
|
+
response: {
|
|
3856
|
+
200: {
|
|
3857
|
+
id: string;
|
|
3858
|
+
createdAt: Date;
|
|
3859
|
+
updatedAt: Date;
|
|
3860
|
+
userId: string;
|
|
3861
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
3862
|
+
reviewedAt: Date | null;
|
|
3863
|
+
reviewedBy: string | null;
|
|
3864
|
+
assetId: string | null;
|
|
3865
|
+
amount: string;
|
|
3866
|
+
idempotencyKey: string;
|
|
3867
|
+
orderNo: string;
|
|
3868
|
+
reviewNote: string | null;
|
|
3869
|
+
sourceAccountId: string | null;
|
|
3870
|
+
receiptMethodId: string;
|
|
3871
|
+
rejectReason: string | null;
|
|
3872
|
+
paidBy: string | null;
|
|
3873
|
+
paidAt: Date | null;
|
|
3874
|
+
};
|
|
3875
|
+
422: {
|
|
3876
|
+
type: "validation";
|
|
3877
|
+
on: string;
|
|
3878
|
+
summary?: string;
|
|
3879
|
+
message?: string;
|
|
3880
|
+
found?: unknown;
|
|
3881
|
+
property?: string;
|
|
3882
|
+
expected?: string;
|
|
3883
|
+
};
|
|
3884
|
+
401: "Unauthorized";
|
|
3885
|
+
403: "Forbidden: Admins only";
|
|
3886
|
+
};
|
|
3887
|
+
};
|
|
3888
|
+
};
|
|
3889
|
+
};
|
|
3890
|
+
};
|
|
3891
|
+
} & {
|
|
3892
|
+
withdraw: {
|
|
3893
|
+
":orderId": {
|
|
3894
|
+
reject: {
|
|
3895
|
+
post: {
|
|
3896
|
+
body: {
|
|
3897
|
+
rejectReason: string;
|
|
3898
|
+
};
|
|
3899
|
+
params: {
|
|
3900
|
+
orderId: string;
|
|
3901
|
+
};
|
|
3902
|
+
query: {};
|
|
3903
|
+
headers: {};
|
|
3904
|
+
response: {
|
|
3905
|
+
200: {
|
|
3906
|
+
id: string;
|
|
3907
|
+
createdAt: Date;
|
|
3908
|
+
updatedAt: Date;
|
|
3909
|
+
userId: string;
|
|
3910
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
3911
|
+
reviewedAt: Date | null;
|
|
3912
|
+
reviewedBy: string | null;
|
|
3913
|
+
assetId: string | null;
|
|
3914
|
+
amount: string;
|
|
3915
|
+
idempotencyKey: string;
|
|
3916
|
+
orderNo: string;
|
|
3917
|
+
reviewNote: string | null;
|
|
3918
|
+
sourceAccountId: string | null;
|
|
3919
|
+
receiptMethodId: string;
|
|
3920
|
+
rejectReason: string | null;
|
|
3921
|
+
paidBy: string | null;
|
|
3922
|
+
paidAt: Date | null;
|
|
3923
|
+
};
|
|
3924
|
+
422: {
|
|
3925
|
+
type: "validation";
|
|
3926
|
+
on: string;
|
|
3927
|
+
summary?: string;
|
|
3928
|
+
message?: string;
|
|
3929
|
+
found?: unknown;
|
|
3930
|
+
property?: string;
|
|
3931
|
+
expected?: string;
|
|
3932
|
+
};
|
|
3933
|
+
401: "Unauthorized";
|
|
3934
|
+
403: "Forbidden: Admins only";
|
|
3935
|
+
};
|
|
3936
|
+
};
|
|
3937
|
+
};
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
} & {
|
|
3941
|
+
withdraw: {
|
|
3942
|
+
":orderId": {
|
|
3943
|
+
paid: {
|
|
3944
|
+
post: {
|
|
3945
|
+
body: {};
|
|
3946
|
+
params: {
|
|
3947
|
+
orderId: string;
|
|
3948
|
+
};
|
|
3949
|
+
query: {};
|
|
3950
|
+
headers: {};
|
|
3951
|
+
response: {
|
|
3952
|
+
200: {
|
|
3953
|
+
id: string;
|
|
3954
|
+
createdAt: Date;
|
|
3955
|
+
updatedAt: Date;
|
|
3956
|
+
userId: string;
|
|
3957
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
3958
|
+
reviewedAt: Date | null;
|
|
3959
|
+
reviewedBy: string | null;
|
|
3960
|
+
assetId: string | null;
|
|
3961
|
+
amount: string;
|
|
3962
|
+
idempotencyKey: string;
|
|
3963
|
+
orderNo: string;
|
|
3964
|
+
reviewNote: string | null;
|
|
3965
|
+
sourceAccountId: string | null;
|
|
3966
|
+
receiptMethodId: string;
|
|
3967
|
+
rejectReason: string | null;
|
|
3968
|
+
paidBy: string | null;
|
|
3969
|
+
paidAt: Date | null;
|
|
3970
|
+
};
|
|
3971
|
+
422: {
|
|
3972
|
+
type: "validation";
|
|
3973
|
+
on: string;
|
|
3974
|
+
summary?: string;
|
|
3975
|
+
message?: string;
|
|
3976
|
+
found?: unknown;
|
|
3977
|
+
property?: string;
|
|
3978
|
+
expected?: string;
|
|
3979
|
+
};
|
|
3980
|
+
401: "Unauthorized";
|
|
3981
|
+
403: "Forbidden: Admins only";
|
|
3982
|
+
};
|
|
3983
|
+
};
|
|
3984
|
+
};
|
|
3985
|
+
};
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
} & {
|
|
3989
|
+
admin: {
|
|
3990
|
+
notifications: {};
|
|
3991
|
+
} & {
|
|
3992
|
+
notifications: {
|
|
3993
|
+
post: {
|
|
3994
|
+
body: {
|
|
3995
|
+
expiresAt?: Date | null | undefined;
|
|
3996
|
+
priority?: "normal" | "low" | "high" | "urgent" | undefined;
|
|
3997
|
+
isBroadcast?: boolean | undefined;
|
|
3998
|
+
userIds?: string[] | undefined;
|
|
3999
|
+
type: "system" | "transaction" | "activity" | "security";
|
|
4000
|
+
category: string;
|
|
4001
|
+
title: string;
|
|
4002
|
+
content: string;
|
|
4003
|
+
};
|
|
4004
|
+
params: {};
|
|
4005
|
+
query: {};
|
|
4006
|
+
headers: {};
|
|
4007
|
+
response: {
|
|
4008
|
+
200: {
|
|
4009
|
+
type: "system" | "transaction" | "activity" | "security";
|
|
4010
|
+
id: string;
|
|
4011
|
+
createdAt: Date;
|
|
4012
|
+
updatedAt: Date;
|
|
4013
|
+
expiresAt: Date | null;
|
|
4014
|
+
category: string;
|
|
4015
|
+
title: string;
|
|
4016
|
+
content: string;
|
|
4017
|
+
priority: "normal" | "low" | "high" | "urgent";
|
|
4018
|
+
isBroadcast: boolean;
|
|
4019
|
+
};
|
|
4020
|
+
422: {
|
|
4021
|
+
type: "validation";
|
|
4022
|
+
on: string;
|
|
4023
|
+
summary?: string;
|
|
4024
|
+
message?: string;
|
|
4025
|
+
found?: unknown;
|
|
4026
|
+
property?: string;
|
|
4027
|
+
expected?: string;
|
|
4028
|
+
};
|
|
4029
|
+
401: "Unauthorized";
|
|
4030
|
+
403: "Forbidden: Admins only";
|
|
4031
|
+
};
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
4034
|
+
} & {
|
|
4035
|
+
notifications: {
|
|
4036
|
+
get: {
|
|
4037
|
+
body: {};
|
|
4038
|
+
params: {};
|
|
4039
|
+
query: {
|
|
4040
|
+
type?: "system" | "transaction" | "activity" | "security" | undefined;
|
|
4041
|
+
status?: "archived" | "unread" | "read" | "deleted" | undefined;
|
|
4042
|
+
limit?: number | undefined;
|
|
4043
|
+
offset?: number | undefined;
|
|
4044
|
+
pageSize?: number | undefined;
|
|
4045
|
+
pageIndex?: number | undefined;
|
|
4046
|
+
};
|
|
4047
|
+
headers: {};
|
|
4048
|
+
response: {
|
|
4049
|
+
200: {
|
|
4050
|
+
data: {
|
|
4051
|
+
sentCount: number;
|
|
4052
|
+
readCount: number;
|
|
4053
|
+
status: "unread";
|
|
4054
|
+
readAt: null;
|
|
4055
|
+
createdAt: Date;
|
|
4056
|
+
updatedAt: Date;
|
|
4057
|
+
id: string;
|
|
4058
|
+
type: "system" | "transaction" | "activity" | "security";
|
|
4059
|
+
category: string;
|
|
4060
|
+
title: string;
|
|
4061
|
+
content: string;
|
|
4062
|
+
priority: "normal" | "low" | "high" | "urgent";
|
|
4063
|
+
isBroadcast: boolean;
|
|
4064
|
+
expiresAt: Date | null;
|
|
4065
|
+
}[];
|
|
4066
|
+
pagination: {
|
|
4067
|
+
pageSize: number;
|
|
4068
|
+
pageIndex: number;
|
|
4069
|
+
total: number;
|
|
4070
|
+
totalPages: number;
|
|
4071
|
+
hasNextPage: boolean;
|
|
4072
|
+
};
|
|
4073
|
+
};
|
|
4074
|
+
422: {
|
|
4075
|
+
type: "validation";
|
|
4076
|
+
on: string;
|
|
4077
|
+
summary?: string;
|
|
4078
|
+
message?: string;
|
|
4079
|
+
found?: unknown;
|
|
4080
|
+
property?: string;
|
|
4081
|
+
expected?: string;
|
|
4082
|
+
};
|
|
4083
|
+
401: "Unauthorized";
|
|
4084
|
+
403: "Forbidden: Admins only";
|
|
4085
|
+
};
|
|
4086
|
+
};
|
|
4087
|
+
};
|
|
4088
|
+
} & {
|
|
4089
|
+
notifications: {
|
|
4090
|
+
stats: {
|
|
4091
|
+
get: {
|
|
4092
|
+
body: {};
|
|
4093
|
+
params: {};
|
|
4094
|
+
query: {};
|
|
4095
|
+
headers: {};
|
|
4096
|
+
response: {
|
|
4097
|
+
200: {
|
|
4098
|
+
totalSent: number;
|
|
4099
|
+
broadcastCount: number;
|
|
4100
|
+
personalCount: number;
|
|
4101
|
+
totalRead: number;
|
|
4102
|
+
readRate: number;
|
|
4103
|
+
};
|
|
4104
|
+
401: "Unauthorized";
|
|
4105
|
+
403: "Forbidden: Admins only";
|
|
4106
|
+
};
|
|
4107
|
+
};
|
|
4108
|
+
};
|
|
3577
4109
|
};
|
|
3578
4110
|
};
|
|
3579
4111
|
} & {
|
|
@@ -3616,33 +4148,269 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3616
4148
|
hasNextPage: boolean;
|
|
3617
4149
|
};
|
|
3618
4150
|
};
|
|
3619
|
-
422: {
|
|
3620
|
-
type: "validation";
|
|
3621
|
-
on: string;
|
|
3622
|
-
summary?: string;
|
|
3623
|
-
message?: string;
|
|
3624
|
-
found?: unknown;
|
|
3625
|
-
property?: string;
|
|
3626
|
-
expected?: string;
|
|
3627
|
-
};
|
|
3628
|
-
401: "Unauthorized";
|
|
3629
|
-
403: "Forbidden: Admins only";
|
|
4151
|
+
422: {
|
|
4152
|
+
type: "validation";
|
|
4153
|
+
on: string;
|
|
4154
|
+
summary?: string;
|
|
4155
|
+
message?: string;
|
|
4156
|
+
found?: unknown;
|
|
4157
|
+
property?: string;
|
|
4158
|
+
expected?: string;
|
|
4159
|
+
};
|
|
4160
|
+
401: "Unauthorized";
|
|
4161
|
+
403: "Forbidden: Admins only";
|
|
4162
|
+
};
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
} & {
|
|
4166
|
+
receipt_method: {
|
|
4167
|
+
":id": {
|
|
4168
|
+
delete: {
|
|
4169
|
+
body: {};
|
|
4170
|
+
params: {
|
|
4171
|
+
id: string;
|
|
4172
|
+
};
|
|
4173
|
+
query: {};
|
|
4174
|
+
headers: {};
|
|
4175
|
+
response: {
|
|
4176
|
+
200: {
|
|
4177
|
+
success: boolean;
|
|
4178
|
+
};
|
|
4179
|
+
422: {
|
|
4180
|
+
type: "validation";
|
|
4181
|
+
on: string;
|
|
4182
|
+
summary?: string;
|
|
4183
|
+
message?: string;
|
|
4184
|
+
found?: unknown;
|
|
4185
|
+
property?: string;
|
|
4186
|
+
expected?: string;
|
|
4187
|
+
};
|
|
4188
|
+
401: "Unauthorized";
|
|
4189
|
+
403: "Forbidden: Admins only";
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4194
|
+
} & {
|
|
4195
|
+
receipt_method: {
|
|
4196
|
+
":id": {
|
|
4197
|
+
get: {
|
|
4198
|
+
body: {};
|
|
4199
|
+
params: {
|
|
4200
|
+
id: string;
|
|
4201
|
+
};
|
|
4202
|
+
query: {};
|
|
4203
|
+
headers: {};
|
|
4204
|
+
response: {
|
|
4205
|
+
200: {
|
|
4206
|
+
type: "bank_card" | "alipay";
|
|
4207
|
+
id: string;
|
|
4208
|
+
createdAt: Date;
|
|
4209
|
+
updatedAt: Date;
|
|
4210
|
+
userId: string;
|
|
4211
|
+
bankName: string | null;
|
|
4212
|
+
fullName: string;
|
|
4213
|
+
bankBranchName: string | null;
|
|
4214
|
+
bankCardNumber: string | null;
|
|
4215
|
+
alipayName: string | null;
|
|
4216
|
+
alipayAccount: string | null;
|
|
4217
|
+
};
|
|
4218
|
+
422: {
|
|
4219
|
+
type: "validation";
|
|
4220
|
+
on: string;
|
|
4221
|
+
summary?: string;
|
|
4222
|
+
message?: string;
|
|
4223
|
+
found?: unknown;
|
|
4224
|
+
property?: string;
|
|
4225
|
+
expected?: string;
|
|
4226
|
+
};
|
|
4227
|
+
401: "Unauthorized";
|
|
4228
|
+
403: "Forbidden: Admins only";
|
|
4229
|
+
};
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
};
|
|
4233
|
+
};
|
|
4234
|
+
} & {
|
|
4235
|
+
admin: {
|
|
4236
|
+
shipping_address: {};
|
|
4237
|
+
} & {
|
|
4238
|
+
shipping_address: {
|
|
4239
|
+
get: {
|
|
4240
|
+
body: {};
|
|
4241
|
+
params: {};
|
|
4242
|
+
query: {
|
|
4243
|
+
userId?: string | undefined;
|
|
4244
|
+
limit?: number | undefined;
|
|
4245
|
+
offset?: number | undefined;
|
|
4246
|
+
pageSize?: number | undefined;
|
|
4247
|
+
pageIndex?: number | undefined;
|
|
4248
|
+
};
|
|
4249
|
+
headers: {};
|
|
4250
|
+
response: {
|
|
4251
|
+
200: {
|
|
4252
|
+
data: {
|
|
4253
|
+
id: string;
|
|
4254
|
+
createdAt: Date;
|
|
4255
|
+
updatedAt: Date;
|
|
4256
|
+
phoneNumber: string;
|
|
4257
|
+
userId: string;
|
|
4258
|
+
isDefault: boolean;
|
|
4259
|
+
recipientName: string;
|
|
4260
|
+
detailAddress: string;
|
|
4261
|
+
}[];
|
|
4262
|
+
pagination: {
|
|
4263
|
+
total: number;
|
|
4264
|
+
pageSize: number;
|
|
4265
|
+
pageIndex: number;
|
|
4266
|
+
totalPages: number;
|
|
4267
|
+
hasNextPage: boolean;
|
|
4268
|
+
};
|
|
4269
|
+
};
|
|
4270
|
+
422: {
|
|
4271
|
+
type: "validation";
|
|
4272
|
+
on: string;
|
|
4273
|
+
summary?: string;
|
|
4274
|
+
message?: string;
|
|
4275
|
+
found?: unknown;
|
|
4276
|
+
property?: string;
|
|
4277
|
+
expected?: string;
|
|
4278
|
+
};
|
|
4279
|
+
401: "Unauthorized";
|
|
4280
|
+
403: "Forbidden: Admins only";
|
|
4281
|
+
};
|
|
4282
|
+
};
|
|
4283
|
+
};
|
|
4284
|
+
};
|
|
4285
|
+
} & {
|
|
4286
|
+
admin: {
|
|
4287
|
+
referrals: {};
|
|
4288
|
+
} & {
|
|
4289
|
+
referrals: {
|
|
4290
|
+
summary: {
|
|
4291
|
+
get: {
|
|
4292
|
+
body: {};
|
|
4293
|
+
params: {};
|
|
4294
|
+
query: {
|
|
4295
|
+
limit?: number | undefined;
|
|
4296
|
+
offset?: number | undefined;
|
|
4297
|
+
pageSize?: number | undefined;
|
|
4298
|
+
pageIndex?: number | undefined;
|
|
4299
|
+
maxDepth?: number | undefined;
|
|
4300
|
+
referralCode: string;
|
|
4301
|
+
};
|
|
4302
|
+
headers: {};
|
|
4303
|
+
response: {
|
|
4304
|
+
200: {
|
|
4305
|
+
referredBy?: string | undefined;
|
|
4306
|
+
userId: string;
|
|
4307
|
+
referralCode: string;
|
|
4308
|
+
totalCount: number;
|
|
4309
|
+
level1Count: number;
|
|
4310
|
+
level2Count: number;
|
|
4311
|
+
level3Count: number;
|
|
4312
|
+
};
|
|
4313
|
+
422: {
|
|
4314
|
+
type: "validation";
|
|
4315
|
+
on: string;
|
|
4316
|
+
summary?: string;
|
|
4317
|
+
message?: string;
|
|
4318
|
+
found?: unknown;
|
|
4319
|
+
property?: string;
|
|
4320
|
+
expected?: string;
|
|
4321
|
+
};
|
|
4322
|
+
401: "Unauthorized";
|
|
4323
|
+
403: "Forbidden: Admins only";
|
|
4324
|
+
};
|
|
4325
|
+
};
|
|
4326
|
+
};
|
|
4327
|
+
};
|
|
4328
|
+
} & {
|
|
4329
|
+
referrals: {
|
|
4330
|
+
members: {
|
|
4331
|
+
get: {
|
|
4332
|
+
body: {};
|
|
4333
|
+
params: {};
|
|
4334
|
+
query: {
|
|
4335
|
+
limit?: number | undefined;
|
|
4336
|
+
offset?: number | undefined;
|
|
4337
|
+
pageSize?: number | undefined;
|
|
4338
|
+
pageIndex?: number | undefined;
|
|
4339
|
+
maxDepth?: number | undefined;
|
|
4340
|
+
referralCode: string;
|
|
4341
|
+
};
|
|
4342
|
+
headers: {};
|
|
4343
|
+
response: {
|
|
4344
|
+
200: {
|
|
4345
|
+
data: {
|
|
4346
|
+
user: {
|
|
4347
|
+
email: string;
|
|
4348
|
+
id: string;
|
|
4349
|
+
name: string;
|
|
4350
|
+
emailVerified: boolean;
|
|
4351
|
+
image: string | null;
|
|
4352
|
+
createdAt: Date;
|
|
4353
|
+
updatedAt: Date;
|
|
4354
|
+
twoFactorEnabled: boolean | null;
|
|
4355
|
+
username: string | null;
|
|
4356
|
+
displayUsername: string | null;
|
|
4357
|
+
isAnonymous: boolean | null;
|
|
4358
|
+
phoneNumber: string | null;
|
|
4359
|
+
phoneNumberVerified: boolean | null;
|
|
4360
|
+
role: string | null;
|
|
4361
|
+
banned: boolean | null;
|
|
4362
|
+
banReason: string | null;
|
|
4363
|
+
banExpires: Date | null;
|
|
4364
|
+
};
|
|
4365
|
+
depth: number;
|
|
4366
|
+
}[];
|
|
4367
|
+
pagination: {
|
|
4368
|
+
total: number;
|
|
4369
|
+
pageSize: number;
|
|
4370
|
+
pageIndex: number;
|
|
4371
|
+
totalPages: number;
|
|
4372
|
+
hasNextPage: boolean;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
422: {
|
|
4376
|
+
type: "validation";
|
|
4377
|
+
on: string;
|
|
4378
|
+
summary?: string;
|
|
4379
|
+
message?: string;
|
|
4380
|
+
found?: unknown;
|
|
4381
|
+
property?: string;
|
|
4382
|
+
expected?: string;
|
|
4383
|
+
};
|
|
4384
|
+
401: "Unauthorized";
|
|
4385
|
+
403: "Forbidden: Admins only";
|
|
4386
|
+
};
|
|
3630
4387
|
};
|
|
3631
4388
|
};
|
|
3632
4389
|
};
|
|
4390
|
+
};
|
|
4391
|
+
} & {
|
|
4392
|
+
admin: {
|
|
4393
|
+
referrals: {
|
|
4394
|
+
"depth-configs": {};
|
|
4395
|
+
};
|
|
3633
4396
|
} & {
|
|
3634
|
-
|
|
3635
|
-
"
|
|
3636
|
-
|
|
3637
|
-
body: {
|
|
3638
|
-
|
|
3639
|
-
|
|
4397
|
+
referrals: {
|
|
4398
|
+
"depth-configs": {
|
|
4399
|
+
post: {
|
|
4400
|
+
body: {
|
|
4401
|
+
depth: number;
|
|
4402
|
+
commissionRate: string;
|
|
3640
4403
|
};
|
|
4404
|
+
params: {};
|
|
3641
4405
|
query: {};
|
|
3642
4406
|
headers: {};
|
|
3643
4407
|
response: {
|
|
3644
4408
|
200: {
|
|
3645
|
-
|
|
4409
|
+
id: string;
|
|
4410
|
+
createdAt: Date;
|
|
4411
|
+
updatedAt: Date;
|
|
4412
|
+
depth: number;
|
|
4413
|
+
commissionRate: string;
|
|
3646
4414
|
};
|
|
3647
4415
|
422: {
|
|
3648
4416
|
type: "validation";
|
|
@@ -3660,28 +4428,35 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3660
4428
|
};
|
|
3661
4429
|
};
|
|
3662
4430
|
} & {
|
|
3663
|
-
|
|
3664
|
-
"
|
|
4431
|
+
referrals: {
|
|
4432
|
+
"depth-configs": {
|
|
3665
4433
|
get: {
|
|
3666
4434
|
body: {};
|
|
3667
|
-
params: {
|
|
3668
|
-
|
|
4435
|
+
params: {};
|
|
4436
|
+
query: {
|
|
4437
|
+
depth?: number | undefined;
|
|
4438
|
+
limit?: number | undefined;
|
|
4439
|
+
offset?: number | undefined;
|
|
4440
|
+
pageSize?: number | undefined;
|
|
4441
|
+
pageIndex?: number | undefined;
|
|
3669
4442
|
};
|
|
3670
|
-
query: {};
|
|
3671
4443
|
headers: {};
|
|
3672
4444
|
response: {
|
|
3673
4445
|
200: {
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
4446
|
+
data: {
|
|
4447
|
+
id: string;
|
|
4448
|
+
createdAt: Date;
|
|
4449
|
+
updatedAt: Date;
|
|
4450
|
+
depth: number;
|
|
4451
|
+
commissionRate: string;
|
|
4452
|
+
}[];
|
|
4453
|
+
pagination: {
|
|
4454
|
+
total: number;
|
|
4455
|
+
pageSize: number;
|
|
4456
|
+
pageIndex: number;
|
|
4457
|
+
totalPages: number;
|
|
4458
|
+
hasNextPage: boolean;
|
|
4459
|
+
};
|
|
3685
4460
|
};
|
|
3686
4461
|
422: {
|
|
3687
4462
|
type: "validation";
|
|
@@ -3698,79 +4473,126 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3698
4473
|
};
|
|
3699
4474
|
};
|
|
3700
4475
|
};
|
|
3701
|
-
};
|
|
3702
|
-
} & {
|
|
3703
|
-
admin: {
|
|
3704
|
-
shipping_address: {};
|
|
3705
4476
|
} & {
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
4477
|
+
referrals: {
|
|
4478
|
+
"depth-configs": {
|
|
4479
|
+
":id": {
|
|
4480
|
+
get: {
|
|
4481
|
+
body: {};
|
|
4482
|
+
params: {
|
|
4483
|
+
id: string;
|
|
4484
|
+
};
|
|
4485
|
+
query: {};
|
|
4486
|
+
headers: {};
|
|
4487
|
+
response: {
|
|
4488
|
+
200: {
|
|
4489
|
+
id: string;
|
|
4490
|
+
createdAt: Date;
|
|
4491
|
+
updatedAt: Date;
|
|
4492
|
+
depth: number;
|
|
4493
|
+
commissionRate: string;
|
|
4494
|
+
};
|
|
4495
|
+
422: {
|
|
4496
|
+
type: "validation";
|
|
4497
|
+
on: string;
|
|
4498
|
+
summary?: string;
|
|
4499
|
+
message?: string;
|
|
4500
|
+
found?: unknown;
|
|
4501
|
+
property?: string;
|
|
4502
|
+
expected?: string;
|
|
4503
|
+
};
|
|
4504
|
+
401: "Unauthorized";
|
|
4505
|
+
403: "Forbidden: Admins only";
|
|
4506
|
+
};
|
|
4507
|
+
};
|
|
3716
4508
|
};
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
4509
|
+
};
|
|
4510
|
+
};
|
|
4511
|
+
} & {
|
|
4512
|
+
referrals: {
|
|
4513
|
+
"depth-configs": {
|
|
4514
|
+
":id": {
|
|
4515
|
+
patch: {
|
|
4516
|
+
body: {
|
|
4517
|
+
depth?: number | undefined;
|
|
4518
|
+
commissionRate?: string | undefined;
|
|
4519
|
+
};
|
|
4520
|
+
params: {
|
|
3721
4521
|
id: string;
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
4522
|
+
};
|
|
4523
|
+
query: {};
|
|
4524
|
+
headers: {};
|
|
4525
|
+
response: {
|
|
4526
|
+
200: {
|
|
4527
|
+
id: string;
|
|
4528
|
+
createdAt: Date;
|
|
4529
|
+
updatedAt: Date;
|
|
4530
|
+
depth: number;
|
|
4531
|
+
commissionRate: string;
|
|
4532
|
+
};
|
|
4533
|
+
422: {
|
|
4534
|
+
type: "validation";
|
|
4535
|
+
on: string;
|
|
4536
|
+
summary?: string;
|
|
4537
|
+
message?: string;
|
|
4538
|
+
found?: unknown;
|
|
4539
|
+
property?: string;
|
|
4540
|
+
expected?: string;
|
|
4541
|
+
};
|
|
4542
|
+
401: "Unauthorized";
|
|
4543
|
+
403: "Forbidden: Admins only";
|
|
3736
4544
|
};
|
|
3737
4545
|
};
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
4546
|
+
};
|
|
4547
|
+
};
|
|
4548
|
+
};
|
|
4549
|
+
} & {
|
|
4550
|
+
referrals: {
|
|
4551
|
+
"depth-configs": {
|
|
4552
|
+
":id": {
|
|
4553
|
+
delete: {
|
|
4554
|
+
body: {};
|
|
4555
|
+
params: {
|
|
4556
|
+
id: string;
|
|
4557
|
+
};
|
|
4558
|
+
query: {};
|
|
4559
|
+
headers: {};
|
|
4560
|
+
response: {
|
|
4561
|
+
200: {
|
|
4562
|
+
success: boolean;
|
|
4563
|
+
};
|
|
4564
|
+
422: {
|
|
4565
|
+
type: "validation";
|
|
4566
|
+
on: string;
|
|
4567
|
+
summary?: string;
|
|
4568
|
+
message?: string;
|
|
4569
|
+
found?: unknown;
|
|
4570
|
+
property?: string;
|
|
4571
|
+
expected?: string;
|
|
4572
|
+
};
|
|
4573
|
+
401: "Unauthorized";
|
|
4574
|
+
403: "Forbidden: Admins only";
|
|
4575
|
+
};
|
|
3746
4576
|
};
|
|
3747
|
-
401: "Unauthorized";
|
|
3748
|
-
403: "Forbidden: Admins only";
|
|
3749
4577
|
};
|
|
3750
4578
|
};
|
|
3751
4579
|
};
|
|
3752
4580
|
};
|
|
3753
4581
|
} & {
|
|
3754
4582
|
admin: {
|
|
3755
|
-
|
|
4583
|
+
team: {};
|
|
3756
4584
|
} & {
|
|
3757
|
-
|
|
4585
|
+
team: {
|
|
3758
4586
|
summary: {
|
|
3759
4587
|
get: {
|
|
3760
|
-
body:
|
|
4588
|
+
body: {};
|
|
3761
4589
|
params: {};
|
|
3762
4590
|
query: {
|
|
3763
|
-
limit?: number | undefined;
|
|
3764
|
-
offset?: number | undefined;
|
|
3765
|
-
pageSize?: number | undefined;
|
|
3766
|
-
pageIndex?: number | undefined;
|
|
3767
|
-
maxDepth?: number | undefined;
|
|
3768
4591
|
referralCode: string;
|
|
3769
4592
|
};
|
|
3770
|
-
headers:
|
|
4593
|
+
headers: {};
|
|
3771
4594
|
response: {
|
|
3772
4595
|
200: {
|
|
3773
|
-
referredBy?: string | undefined;
|
|
3774
4596
|
userId: string;
|
|
3775
4597
|
referralCode: string;
|
|
3776
4598
|
totalCount: number;
|
|
@@ -3794,24 +4616,30 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3794
4616
|
};
|
|
3795
4617
|
};
|
|
3796
4618
|
} & {
|
|
3797
|
-
|
|
4619
|
+
team: {
|
|
3798
4620
|
members: {
|
|
3799
4621
|
get: {
|
|
3800
|
-
body:
|
|
4622
|
+
body: {};
|
|
3801
4623
|
params: {};
|
|
3802
4624
|
query: {
|
|
4625
|
+
depth?: number | undefined;
|
|
3803
4626
|
limit?: number | undefined;
|
|
3804
4627
|
offset?: number | undefined;
|
|
3805
4628
|
pageSize?: number | undefined;
|
|
3806
4629
|
pageIndex?: number | undefined;
|
|
3807
|
-
maxDepth?: number | undefined;
|
|
3808
4630
|
referralCode: string;
|
|
3809
4631
|
};
|
|
3810
|
-
headers:
|
|
4632
|
+
headers: {};
|
|
3811
4633
|
response: {
|
|
3812
4634
|
200: {
|
|
3813
4635
|
data: {
|
|
3814
|
-
|
|
4636
|
+
id: string;
|
|
4637
|
+
createdAt: Date;
|
|
4638
|
+
updatedAt: Date;
|
|
4639
|
+
depth: number;
|
|
4640
|
+
ancestorId: string;
|
|
4641
|
+
descendantId: string;
|
|
4642
|
+
descendant: {
|
|
3815
4643
|
email: string;
|
|
3816
4644
|
id: string;
|
|
3817
4645
|
name: string;
|
|
@@ -3830,7 +4658,14 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3830
4658
|
banReason: string | null;
|
|
3831
4659
|
banExpires: Date | null;
|
|
3832
4660
|
};
|
|
3833
|
-
|
|
4661
|
+
depthConfig: {
|
|
4662
|
+
id: string;
|
|
4663
|
+
createdAt: Date;
|
|
4664
|
+
updatedAt: Date;
|
|
4665
|
+
depth: number;
|
|
4666
|
+
commissionRate: string;
|
|
4667
|
+
} | null;
|
|
4668
|
+
directCount: number;
|
|
3834
4669
|
}[];
|
|
3835
4670
|
pagination: {
|
|
3836
4671
|
total: number;
|
|
@@ -3858,73 +4693,102 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3858
4693
|
};
|
|
3859
4694
|
} & {
|
|
3860
4695
|
admin: {
|
|
3861
|
-
|
|
3862
|
-
"depth-configs": {};
|
|
3863
|
-
};
|
|
4696
|
+
transfer: {};
|
|
3864
4697
|
} & {
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
4698
|
+
transfer: {
|
|
4699
|
+
get: {
|
|
4700
|
+
body: {};
|
|
4701
|
+
params: {};
|
|
4702
|
+
query: {
|
|
4703
|
+
limit?: number | undefined;
|
|
4704
|
+
offset?: number | undefined;
|
|
4705
|
+
pageSize?: number | undefined;
|
|
4706
|
+
pageIndex?: number | undefined;
|
|
4707
|
+
};
|
|
4708
|
+
headers: {};
|
|
4709
|
+
response: {
|
|
4710
|
+
200: {
|
|
4711
|
+
data: {
|
|
3877
4712
|
id: string;
|
|
3878
4713
|
createdAt: Date;
|
|
3879
4714
|
updatedAt: Date;
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
4715
|
+
assetId: string | null;
|
|
4716
|
+
amount: string;
|
|
4717
|
+
idempotencyKey: string;
|
|
4718
|
+
orderNo: string;
|
|
4719
|
+
targetAccountId: string | null;
|
|
4720
|
+
sourceAccountId: string | null;
|
|
4721
|
+
sourceUserId: string;
|
|
4722
|
+
targetUserId: string;
|
|
4723
|
+
}[];
|
|
4724
|
+
pagination: {
|
|
4725
|
+
total: number;
|
|
4726
|
+
pageSize: number;
|
|
4727
|
+
pageIndex: number;
|
|
4728
|
+
totalPages: number;
|
|
4729
|
+
hasNextPage: boolean;
|
|
3891
4730
|
};
|
|
3892
|
-
401: "Unauthorized";
|
|
3893
|
-
403: "Forbidden: Admins only";
|
|
3894
4731
|
};
|
|
4732
|
+
422: {
|
|
4733
|
+
type: "validation";
|
|
4734
|
+
on: string;
|
|
4735
|
+
summary?: string;
|
|
4736
|
+
message?: string;
|
|
4737
|
+
found?: unknown;
|
|
4738
|
+
property?: string;
|
|
4739
|
+
expected?: string;
|
|
4740
|
+
};
|
|
4741
|
+
401: "Unauthorized";
|
|
4742
|
+
403: "Forbidden: Admins only";
|
|
3895
4743
|
};
|
|
3896
4744
|
};
|
|
3897
4745
|
};
|
|
4746
|
+
};
|
|
4747
|
+
} & {
|
|
4748
|
+
admin: {
|
|
4749
|
+
trade_market: {};
|
|
3898
4750
|
} & {
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
body:
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
4751
|
+
trade_market: {
|
|
4752
|
+
markets: {
|
|
4753
|
+
post: {
|
|
4754
|
+
body: {
|
|
4755
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4756
|
+
pricingSource?: string | undefined;
|
|
4757
|
+
isBuyEnabled?: boolean | undefined;
|
|
4758
|
+
isSellEnabled?: boolean | undefined;
|
|
4759
|
+
maxBaseAmount?: string | null | undefined;
|
|
4760
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
4761
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
4762
|
+
maxSlippageBps?: string | undefined;
|
|
4763
|
+
name: string;
|
|
4764
|
+
baseAssetId: string;
|
|
4765
|
+
quoteAssetId: string;
|
|
4766
|
+
systemBaseAccountId: string;
|
|
4767
|
+
systemQuoteAccountId: string;
|
|
4768
|
+
minBaseAmount: string;
|
|
3910
4769
|
};
|
|
3911
|
-
|
|
4770
|
+
params: {};
|
|
4771
|
+
query: {};
|
|
4772
|
+
headers: {};
|
|
3912
4773
|
response: {
|
|
3913
4774
|
200: {
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
4775
|
+
id: string;
|
|
4776
|
+
name: string;
|
|
4777
|
+
createdAt: Date;
|
|
4778
|
+
updatedAt: Date;
|
|
4779
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4780
|
+
baseAssetId: string;
|
|
4781
|
+
quoteAssetId: string;
|
|
4782
|
+
pricingSource: string;
|
|
4783
|
+
systemBaseAccountId: string;
|
|
4784
|
+
systemQuoteAccountId: string;
|
|
4785
|
+
isBuyEnabled: boolean;
|
|
4786
|
+
isSellEnabled: boolean;
|
|
4787
|
+
minBaseAmount: string;
|
|
4788
|
+
maxBaseAmount: string | null;
|
|
4789
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4790
|
+
dailyUserSellBaseLimit: string | null;
|
|
4791
|
+
maxSlippageBps: string;
|
|
3928
4792
|
};
|
|
3929
4793
|
422: {
|
|
3930
4794
|
type: "validation";
|
|
@@ -3942,23 +4806,50 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3942
4806
|
};
|
|
3943
4807
|
};
|
|
3944
4808
|
} & {
|
|
3945
|
-
|
|
3946
|
-
|
|
4809
|
+
trade_market: {
|
|
4810
|
+
markets: {
|
|
3947
4811
|
":id": {
|
|
3948
|
-
|
|
3949
|
-
body:
|
|
4812
|
+
patch: {
|
|
4813
|
+
body: {
|
|
4814
|
+
name?: string | undefined;
|
|
4815
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4816
|
+
baseAssetId?: string | undefined;
|
|
4817
|
+
quoteAssetId?: string | undefined;
|
|
4818
|
+
pricingSource?: string | undefined;
|
|
4819
|
+
systemBaseAccountId?: string | undefined;
|
|
4820
|
+
systemQuoteAccountId?: string | undefined;
|
|
4821
|
+
isBuyEnabled?: boolean | undefined;
|
|
4822
|
+
isSellEnabled?: boolean | undefined;
|
|
4823
|
+
minBaseAmount?: string | undefined;
|
|
4824
|
+
maxBaseAmount?: string | null | undefined;
|
|
4825
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
4826
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
4827
|
+
maxSlippageBps?: string | undefined;
|
|
4828
|
+
};
|
|
3950
4829
|
params: {
|
|
3951
4830
|
id: string;
|
|
3952
4831
|
};
|
|
3953
|
-
query:
|
|
3954
|
-
headers:
|
|
4832
|
+
query: {};
|
|
4833
|
+
headers: {};
|
|
3955
4834
|
response: {
|
|
3956
4835
|
200: {
|
|
3957
4836
|
id: string;
|
|
4837
|
+
name: string;
|
|
3958
4838
|
createdAt: Date;
|
|
3959
4839
|
updatedAt: Date;
|
|
3960
|
-
|
|
3961
|
-
|
|
4840
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4841
|
+
baseAssetId: string;
|
|
4842
|
+
quoteAssetId: string;
|
|
4843
|
+
pricingSource: string;
|
|
4844
|
+
systemBaseAccountId: string;
|
|
4845
|
+
systemQuoteAccountId: string;
|
|
4846
|
+
isBuyEnabled: boolean;
|
|
4847
|
+
isSellEnabled: boolean;
|
|
4848
|
+
minBaseAmount: string;
|
|
4849
|
+
maxBaseAmount: string | null;
|
|
4850
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4851
|
+
dailyUserSellBaseLimit: string | null;
|
|
4852
|
+
maxSlippageBps: string;
|
|
3962
4853
|
};
|
|
3963
4854
|
422: {
|
|
3964
4855
|
type: "validation";
|
|
@@ -3977,96 +4868,194 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3977
4868
|
};
|
|
3978
4869
|
};
|
|
3979
4870
|
} & {
|
|
3980
|
-
|
|
3981
|
-
|
|
4871
|
+
trade_market: {
|
|
4872
|
+
markets: {
|
|
3982
4873
|
":id": {
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
};
|
|
3988
|
-
params: {
|
|
3989
|
-
id: string;
|
|
3990
|
-
};
|
|
3991
|
-
query: unknown;
|
|
3992
|
-
headers: unknown;
|
|
3993
|
-
response: {
|
|
3994
|
-
200: {
|
|
4874
|
+
activate: {
|
|
4875
|
+
post: {
|
|
4876
|
+
body: {};
|
|
4877
|
+
params: {
|
|
3995
4878
|
id: string;
|
|
3996
|
-
createdAt: Date;
|
|
3997
|
-
updatedAt: Date;
|
|
3998
|
-
depth: number;
|
|
3999
|
-
commissionRate: string;
|
|
4000
4879
|
};
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4880
|
+
query: {};
|
|
4881
|
+
headers: {};
|
|
4882
|
+
response: {
|
|
4883
|
+
200: {
|
|
4884
|
+
createdAt: Date;
|
|
4885
|
+
updatedAt: Date;
|
|
4886
|
+
id: string;
|
|
4887
|
+
name: string;
|
|
4888
|
+
baseAssetId: string;
|
|
4889
|
+
quoteAssetId: string;
|
|
4890
|
+
pricingSource: string;
|
|
4891
|
+
systemBaseAccountId: string;
|
|
4892
|
+
systemQuoteAccountId: string;
|
|
4893
|
+
isBuyEnabled: boolean;
|
|
4894
|
+
isSellEnabled: boolean;
|
|
4895
|
+
minBaseAmount: string;
|
|
4896
|
+
maxBaseAmount: string | null;
|
|
4897
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4898
|
+
dailyUserSellBaseLimit: string | null;
|
|
4899
|
+
maxSlippageBps: string;
|
|
4900
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4901
|
+
};
|
|
4902
|
+
422: {
|
|
4903
|
+
type: "validation";
|
|
4904
|
+
on: string;
|
|
4905
|
+
summary?: string;
|
|
4906
|
+
message?: string;
|
|
4907
|
+
found?: unknown;
|
|
4908
|
+
property?: string;
|
|
4909
|
+
expected?: string;
|
|
4910
|
+
};
|
|
4911
|
+
401: "Unauthorized";
|
|
4912
|
+
403: "Forbidden: Admins only";
|
|
4009
4913
|
};
|
|
4010
|
-
401: "Unauthorized";
|
|
4011
|
-
403: "Forbidden: Admins only";
|
|
4012
4914
|
};
|
|
4013
4915
|
};
|
|
4014
4916
|
};
|
|
4015
4917
|
};
|
|
4016
4918
|
};
|
|
4017
4919
|
} & {
|
|
4018
|
-
|
|
4019
|
-
|
|
4920
|
+
trade_market: {
|
|
4921
|
+
markets: {
|
|
4020
4922
|
":id": {
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4923
|
+
pause: {
|
|
4924
|
+
post: {
|
|
4925
|
+
body: {};
|
|
4926
|
+
params: {
|
|
4927
|
+
id: string;
|
|
4928
|
+
};
|
|
4929
|
+
query: {};
|
|
4930
|
+
headers: {};
|
|
4931
|
+
response: {
|
|
4932
|
+
200: {
|
|
4933
|
+
createdAt: Date;
|
|
4934
|
+
updatedAt: Date;
|
|
4935
|
+
id: string;
|
|
4936
|
+
name: string;
|
|
4937
|
+
baseAssetId: string;
|
|
4938
|
+
quoteAssetId: string;
|
|
4939
|
+
pricingSource: string;
|
|
4940
|
+
systemBaseAccountId: string;
|
|
4941
|
+
systemQuoteAccountId: string;
|
|
4942
|
+
isBuyEnabled: boolean;
|
|
4943
|
+
isSellEnabled: boolean;
|
|
4944
|
+
minBaseAmount: string;
|
|
4945
|
+
maxBaseAmount: string | null;
|
|
4946
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4947
|
+
dailyUserSellBaseLimit: string | null;
|
|
4948
|
+
maxSlippageBps: string;
|
|
4949
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4950
|
+
};
|
|
4951
|
+
422: {
|
|
4952
|
+
type: "validation";
|
|
4953
|
+
on: string;
|
|
4954
|
+
summary?: string;
|
|
4955
|
+
message?: string;
|
|
4956
|
+
found?: unknown;
|
|
4957
|
+
property?: string;
|
|
4958
|
+
expected?: string;
|
|
4959
|
+
};
|
|
4960
|
+
401: "Unauthorized";
|
|
4961
|
+
403: "Forbidden: Admins only";
|
|
4962
|
+
};
|
|
4025
4963
|
};
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4964
|
+
};
|
|
4965
|
+
};
|
|
4966
|
+
};
|
|
4967
|
+
};
|
|
4968
|
+
} & {
|
|
4969
|
+
trade_market: {
|
|
4970
|
+
markets: {
|
|
4971
|
+
":id": {
|
|
4972
|
+
end: {
|
|
4973
|
+
post: {
|
|
4974
|
+
body: {};
|
|
4975
|
+
params: {
|
|
4976
|
+
id: string;
|
|
4031
4977
|
};
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4978
|
+
query: {};
|
|
4979
|
+
headers: {};
|
|
4980
|
+
response: {
|
|
4981
|
+
200: {
|
|
4982
|
+
createdAt: Date;
|
|
4983
|
+
updatedAt: Date;
|
|
4984
|
+
id: string;
|
|
4985
|
+
name: string;
|
|
4986
|
+
baseAssetId: string;
|
|
4987
|
+
quoteAssetId: string;
|
|
4988
|
+
pricingSource: string;
|
|
4989
|
+
systemBaseAccountId: string;
|
|
4990
|
+
systemQuoteAccountId: string;
|
|
4991
|
+
isBuyEnabled: boolean;
|
|
4992
|
+
isSellEnabled: boolean;
|
|
4993
|
+
minBaseAmount: string;
|
|
4994
|
+
maxBaseAmount: string | null;
|
|
4995
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4996
|
+
dailyUserSellBaseLimit: string | null;
|
|
4997
|
+
maxSlippageBps: string;
|
|
4998
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4999
|
+
};
|
|
5000
|
+
422: {
|
|
5001
|
+
type: "validation";
|
|
5002
|
+
on: string;
|
|
5003
|
+
summary?: string;
|
|
5004
|
+
message?: string;
|
|
5005
|
+
found?: unknown;
|
|
5006
|
+
property?: string;
|
|
5007
|
+
expected?: string;
|
|
5008
|
+
};
|
|
5009
|
+
401: "Unauthorized";
|
|
5010
|
+
403: "Forbidden: Admins only";
|
|
4040
5011
|
};
|
|
4041
|
-
401: "Unauthorized";
|
|
4042
|
-
403: "Forbidden: Admins only";
|
|
4043
5012
|
};
|
|
4044
5013
|
};
|
|
4045
5014
|
};
|
|
4046
5015
|
};
|
|
4047
5016
|
};
|
|
4048
|
-
};
|
|
4049
|
-
} & {
|
|
4050
|
-
admin: {
|
|
4051
|
-
team: {};
|
|
4052
5017
|
} & {
|
|
4053
|
-
|
|
4054
|
-
|
|
5018
|
+
trade_market: {
|
|
5019
|
+
markets: {
|
|
4055
5020
|
get: {
|
|
4056
|
-
body:
|
|
5021
|
+
body: {};
|
|
4057
5022
|
params: {};
|
|
4058
5023
|
query: {
|
|
4059
|
-
|
|
5024
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5025
|
+
limit?: number | undefined;
|
|
5026
|
+
offset?: number | undefined;
|
|
5027
|
+
pageSize?: number | undefined;
|
|
5028
|
+
pageIndex?: number | undefined;
|
|
4060
5029
|
};
|
|
4061
|
-
headers:
|
|
5030
|
+
headers: {};
|
|
4062
5031
|
response: {
|
|
4063
5032
|
200: {
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
5033
|
+
data: {
|
|
5034
|
+
id: string;
|
|
5035
|
+
name: string;
|
|
5036
|
+
createdAt: Date;
|
|
5037
|
+
updatedAt: Date;
|
|
5038
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5039
|
+
baseAssetId: string;
|
|
5040
|
+
quoteAssetId: string;
|
|
5041
|
+
pricingSource: string;
|
|
5042
|
+
systemBaseAccountId: string;
|
|
5043
|
+
systemQuoteAccountId: string;
|
|
5044
|
+
isBuyEnabled: boolean;
|
|
5045
|
+
isSellEnabled: boolean;
|
|
5046
|
+
minBaseAmount: string;
|
|
5047
|
+
maxBaseAmount: string | null;
|
|
5048
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5049
|
+
dailyUserSellBaseLimit: string | null;
|
|
5050
|
+
maxSlippageBps: string;
|
|
5051
|
+
}[];
|
|
5052
|
+
pagination: {
|
|
5053
|
+
total: number;
|
|
5054
|
+
pageSize: number;
|
|
5055
|
+
pageIndex: number;
|
|
5056
|
+
totalPages: number;
|
|
5057
|
+
hasNextPage: boolean;
|
|
5058
|
+
};
|
|
4070
5059
|
};
|
|
4071
5060
|
422: {
|
|
4072
5061
|
type: "validation";
|
|
@@ -4084,56 +5073,47 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4084
5073
|
};
|
|
4085
5074
|
};
|
|
4086
5075
|
} & {
|
|
4087
|
-
|
|
4088
|
-
|
|
5076
|
+
trade_market: {
|
|
5077
|
+
orders: {
|
|
4089
5078
|
get: {
|
|
4090
|
-
body:
|
|
5079
|
+
body: {};
|
|
4091
5080
|
params: {};
|
|
4092
5081
|
query: {
|
|
4093
|
-
|
|
5082
|
+
userId?: string | undefined;
|
|
5083
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
5084
|
+
marketId?: string | undefined;
|
|
5085
|
+
side?: "buy" | "sell" | undefined;
|
|
4094
5086
|
limit?: number | undefined;
|
|
4095
5087
|
offset?: number | undefined;
|
|
4096
5088
|
pageSize?: number | undefined;
|
|
4097
5089
|
pageIndex?: number | undefined;
|
|
4098
|
-
referralCode: string;
|
|
4099
5090
|
};
|
|
4100
|
-
headers:
|
|
5091
|
+
headers: {};
|
|
4101
5092
|
response: {
|
|
4102
5093
|
200: {
|
|
4103
5094
|
data: {
|
|
4104
5095
|
id: string;
|
|
4105
5096
|
createdAt: Date;
|
|
4106
5097
|
updatedAt: Date;
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
banReason: string | null;
|
|
4127
|
-
banExpires: Date | null;
|
|
4128
|
-
};
|
|
4129
|
-
depthConfig: {
|
|
4130
|
-
id: string;
|
|
4131
|
-
createdAt: Date;
|
|
4132
|
-
updatedAt: Date;
|
|
4133
|
-
depth: number;
|
|
4134
|
-
commissionRate: string;
|
|
4135
|
-
} | null;
|
|
4136
|
-
directCount: number;
|
|
5098
|
+
userId: string;
|
|
5099
|
+
status: "created" | "completed" | "failed";
|
|
5100
|
+
idempotencyKey: string;
|
|
5101
|
+
orderNo: string;
|
|
5102
|
+
priceSnapshot: string;
|
|
5103
|
+
priceEffectiveAtSnapshot: Date;
|
|
5104
|
+
failureCode: string | null;
|
|
5105
|
+
failureReason: string | null;
|
|
5106
|
+
marketId: string;
|
|
5107
|
+
side: "buy" | "sell";
|
|
5108
|
+
baseAmount: string;
|
|
5109
|
+
quoteAmount: string;
|
|
5110
|
+
pricingSourceSnapshot: string;
|
|
5111
|
+
userBaseAccountId: string;
|
|
5112
|
+
userQuoteAccountId: string;
|
|
5113
|
+
systemBaseAccountIdSnapshot: string;
|
|
5114
|
+
systemQuoteAccountIdSnapshot: string;
|
|
5115
|
+
userDebitLedgerEntryId: string | null;
|
|
5116
|
+
userCreditLedgerEntryId: string | null;
|
|
4137
5117
|
}[];
|
|
4138
5118
|
pagination: {
|
|
4139
5119
|
total: number;
|
|
@@ -4159,59 +5139,6 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4159
5139
|
};
|
|
4160
5140
|
};
|
|
4161
5141
|
};
|
|
4162
|
-
} & {
|
|
4163
|
-
admin: {
|
|
4164
|
-
transfer: {};
|
|
4165
|
-
} & {
|
|
4166
|
-
transfer: {
|
|
4167
|
-
get: {
|
|
4168
|
-
body: unknown;
|
|
4169
|
-
params: {};
|
|
4170
|
-
query: {
|
|
4171
|
-
limit?: number | undefined;
|
|
4172
|
-
offset?: number | undefined;
|
|
4173
|
-
pageSize?: number | undefined;
|
|
4174
|
-
pageIndex?: number | undefined;
|
|
4175
|
-
};
|
|
4176
|
-
headers: unknown;
|
|
4177
|
-
response: {
|
|
4178
|
-
200: {
|
|
4179
|
-
data: {
|
|
4180
|
-
id: string;
|
|
4181
|
-
createdAt: Date;
|
|
4182
|
-
updatedAt: Date;
|
|
4183
|
-
assetId: string | null;
|
|
4184
|
-
amount: string;
|
|
4185
|
-
idempotencyKey: string;
|
|
4186
|
-
orderNo: string;
|
|
4187
|
-
targetAccountId: string | null;
|
|
4188
|
-
sourceAccountId: string | null;
|
|
4189
|
-
sourceUserId: string;
|
|
4190
|
-
targetUserId: string;
|
|
4191
|
-
}[];
|
|
4192
|
-
pagination: {
|
|
4193
|
-
total: number;
|
|
4194
|
-
pageSize: number;
|
|
4195
|
-
pageIndex: number;
|
|
4196
|
-
totalPages: number;
|
|
4197
|
-
hasNextPage: boolean;
|
|
4198
|
-
};
|
|
4199
|
-
};
|
|
4200
|
-
422: {
|
|
4201
|
-
type: "validation";
|
|
4202
|
-
on: string;
|
|
4203
|
-
summary?: string;
|
|
4204
|
-
message?: string;
|
|
4205
|
-
found?: unknown;
|
|
4206
|
-
property?: string;
|
|
4207
|
-
expected?: string;
|
|
4208
|
-
};
|
|
4209
|
-
401: "Unauthorized";
|
|
4210
|
-
403: "Forbidden: Admins only";
|
|
4211
|
-
};
|
|
4212
|
-
};
|
|
4213
|
-
};
|
|
4214
|
-
};
|
|
4215
5142
|
} & {
|
|
4216
5143
|
admin: {
|
|
4217
5144
|
news_categories: {
|
|
@@ -4414,8 +5341,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4414
5341
|
content: string;
|
|
4415
5342
|
};
|
|
4416
5343
|
params: {};
|
|
4417
|
-
query:
|
|
4418
|
-
headers:
|
|
5344
|
+
query: {};
|
|
5345
|
+
headers: {};
|
|
4419
5346
|
response: {
|
|
4420
5347
|
422: {
|
|
4421
5348
|
type: "validation";
|
|
@@ -4434,7 +5361,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4434
5361
|
} & {
|
|
4435
5362
|
news: {
|
|
4436
5363
|
get: {
|
|
4437
|
-
body:
|
|
5364
|
+
body: {};
|
|
4438
5365
|
params: {};
|
|
4439
5366
|
query: {
|
|
4440
5367
|
status?: "archived" | "draft" | "published" | undefined;
|
|
@@ -4446,7 +5373,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4446
5373
|
pageSize?: number | undefined;
|
|
4447
5374
|
pageIndex?: number | undefined;
|
|
4448
5375
|
};
|
|
4449
|
-
headers:
|
|
5376
|
+
headers: {};
|
|
4450
5377
|
response: {
|
|
4451
5378
|
200: {
|
|
4452
5379
|
data: {
|
|
@@ -4510,12 +5437,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4510
5437
|
news: {
|
|
4511
5438
|
":id": {
|
|
4512
5439
|
get: {
|
|
4513
|
-
body:
|
|
5440
|
+
body: {};
|
|
4514
5441
|
params: {
|
|
4515
5442
|
id: string;
|
|
4516
5443
|
};
|
|
4517
|
-
query:
|
|
4518
|
-
headers:
|
|
5444
|
+
query: {};
|
|
5445
|
+
headers: {};
|
|
4519
5446
|
response: {
|
|
4520
5447
|
200: {
|
|
4521
5448
|
id: string;
|
|
@@ -4624,8 +5551,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4624
5551
|
params: {
|
|
4625
5552
|
id: string;
|
|
4626
5553
|
};
|
|
4627
|
-
query:
|
|
4628
|
-
headers:
|
|
5554
|
+
query: {};
|
|
5555
|
+
headers: {};
|
|
4629
5556
|
response: {
|
|
4630
5557
|
422: {
|
|
4631
5558
|
type: "validation";
|
|
@@ -4646,12 +5573,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4646
5573
|
news: {
|
|
4647
5574
|
":id": {
|
|
4648
5575
|
delete: {
|
|
4649
|
-
body:
|
|
5576
|
+
body: {};
|
|
4650
5577
|
params: {
|
|
4651
5578
|
id: string;
|
|
4652
5579
|
};
|
|
4653
|
-
query:
|
|
4654
|
-
headers:
|
|
5580
|
+
query: {};
|
|
5581
|
+
headers: {};
|
|
4655
5582
|
response: {
|
|
4656
5583
|
200: {
|
|
4657
5584
|
success: boolean;
|
|
@@ -4683,8 +5610,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4683
5610
|
params: {
|
|
4684
5611
|
id: string;
|
|
4685
5612
|
};
|
|
4686
|
-
query:
|
|
4687
|
-
headers:
|
|
5613
|
+
query: {};
|
|
5614
|
+
headers: {};
|
|
4688
5615
|
response: {
|
|
4689
5616
|
422: {
|
|
4690
5617
|
type: "validation";
|
|
@@ -4713,8 +5640,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4713
5640
|
params: {
|
|
4714
5641
|
id: string;
|
|
4715
5642
|
};
|
|
4716
|
-
query:
|
|
4717
|
-
headers:
|
|
5643
|
+
query: {};
|
|
5644
|
+
headers: {};
|
|
4718
5645
|
response: {
|
|
4719
5646
|
422: {
|
|
4720
5647
|
type: "validation";
|
|
@@ -4736,10 +5663,10 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4736
5663
|
news: {
|
|
4737
5664
|
stats: {
|
|
4738
5665
|
get: {
|
|
4739
|
-
body:
|
|
5666
|
+
body: {};
|
|
4740
5667
|
params: {};
|
|
4741
|
-
query:
|
|
4742
|
-
headers:
|
|
5668
|
+
query: {};
|
|
5669
|
+
headers: {};
|
|
4743
5670
|
response: {
|
|
4744
5671
|
200: {
|
|
4745
5672
|
total: number;
|
|
@@ -4767,8 +5694,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4767
5694
|
fileId: string;
|
|
4768
5695
|
};
|
|
4769
5696
|
params: {};
|
|
4770
|
-
query:
|
|
4771
|
-
headers:
|
|
5697
|
+
query: {};
|
|
5698
|
+
headers: {};
|
|
4772
5699
|
response: {
|
|
4773
5700
|
422: {
|
|
4774
5701
|
type: "validation";
|
|
@@ -4788,7 +5715,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4788
5715
|
} & {
|
|
4789
5716
|
file_storage: {
|
|
4790
5717
|
get: {
|
|
4791
|
-
body:
|
|
5718
|
+
body: {};
|
|
4792
5719
|
params: {};
|
|
4793
5720
|
query: {
|
|
4794
5721
|
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment" | undefined;
|
|
@@ -4801,7 +5728,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4801
5728
|
pageSize?: number | undefined;
|
|
4802
5729
|
pageIndex?: number | undefined;
|
|
4803
5730
|
};
|
|
4804
|
-
headers:
|
|
5731
|
+
headers: {};
|
|
4805
5732
|
response: {
|
|
4806
5733
|
200: {
|
|
4807
5734
|
data: {
|
|
@@ -4872,12 +5799,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4872
5799
|
":id": {
|
|
4873
5800
|
permanent: {
|
|
4874
5801
|
delete: {
|
|
4875
|
-
body:
|
|
5802
|
+
body: {};
|
|
4876
5803
|
params: {
|
|
4877
5804
|
id: string;
|
|
4878
5805
|
};
|
|
4879
|
-
query:
|
|
4880
|
-
headers:
|
|
5806
|
+
query: {};
|
|
5807
|
+
headers: {};
|
|
4881
5808
|
response: {
|
|
4882
5809
|
200: {
|
|
4883
5810
|
success: boolean;
|
|
@@ -4923,8 +5850,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4923
5850
|
maturityYieldRate: string;
|
|
4924
5851
|
};
|
|
4925
5852
|
params: {};
|
|
4926
|
-
query:
|
|
4927
|
-
headers:
|
|
5853
|
+
query: {};
|
|
5854
|
+
headers: {};
|
|
4928
5855
|
response: {
|
|
4929
5856
|
200: {
|
|
4930
5857
|
id: string;
|
|
@@ -4984,8 +5911,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4984
5911
|
params: {
|
|
4985
5912
|
id: string;
|
|
4986
5913
|
};
|
|
4987
|
-
query:
|
|
4988
|
-
headers:
|
|
5914
|
+
query: {};
|
|
5915
|
+
headers: {};
|
|
4989
5916
|
response: {
|
|
4990
5917
|
200: {
|
|
4991
5918
|
createdAt: Date;
|
|
@@ -5028,12 +5955,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5028
5955
|
":id": {
|
|
5029
5956
|
activate: {
|
|
5030
5957
|
post: {
|
|
5031
|
-
body:
|
|
5958
|
+
body: {};
|
|
5032
5959
|
params: {
|
|
5033
5960
|
id: string;
|
|
5034
5961
|
};
|
|
5035
|
-
query:
|
|
5036
|
-
headers:
|
|
5962
|
+
query: {};
|
|
5963
|
+
headers: {};
|
|
5037
5964
|
response: {
|
|
5038
5965
|
200: {
|
|
5039
5966
|
createdAt: Date;
|
|
@@ -5077,12 +6004,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5077
6004
|
":id": {
|
|
5078
6005
|
pause: {
|
|
5079
6006
|
post: {
|
|
5080
|
-
body:
|
|
6007
|
+
body: {};
|
|
5081
6008
|
params: {
|
|
5082
6009
|
id: string;
|
|
5083
6010
|
};
|
|
5084
|
-
query:
|
|
5085
|
-
headers:
|
|
6011
|
+
query: {};
|
|
6012
|
+
headers: {};
|
|
5086
6013
|
response: {
|
|
5087
6014
|
200: {
|
|
5088
6015
|
createdAt: Date;
|
|
@@ -5126,12 +6053,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5126
6053
|
":id": {
|
|
5127
6054
|
end: {
|
|
5128
6055
|
post: {
|
|
5129
|
-
body:
|
|
6056
|
+
body: {};
|
|
5130
6057
|
params: {
|
|
5131
6058
|
id: string;
|
|
5132
6059
|
};
|
|
5133
|
-
query:
|
|
5134
|
-
headers:
|
|
6060
|
+
query: {};
|
|
6061
|
+
headers: {};
|
|
5135
6062
|
response: {
|
|
5136
6063
|
200: {
|
|
5137
6064
|
createdAt: Date;
|
|
@@ -5173,7 +6100,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5173
6100
|
welfare_cycle: {
|
|
5174
6101
|
plans: {
|
|
5175
6102
|
get: {
|
|
5176
|
-
body:
|
|
6103
|
+
body: {};
|
|
5177
6104
|
params: {};
|
|
5178
6105
|
query: {
|
|
5179
6106
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
@@ -5182,7 +6109,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5182
6109
|
pageSize?: number | undefined;
|
|
5183
6110
|
pageIndex?: number | undefined;
|
|
5184
6111
|
};
|
|
5185
|
-
headers:
|
|
6112
|
+
headers: {};
|
|
5186
6113
|
response: {
|
|
5187
6114
|
200: {
|
|
5188
6115
|
data: {
|
|
@@ -5231,7 +6158,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5231
6158
|
welfare_cycle: {
|
|
5232
6159
|
subscriptions: {
|
|
5233
6160
|
get: {
|
|
5234
|
-
body:
|
|
6161
|
+
body: {};
|
|
5235
6162
|
params: {};
|
|
5236
6163
|
query: {
|
|
5237
6164
|
userId?: string | undefined;
|
|
@@ -5242,7 +6169,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5242
6169
|
pageSize?: number | undefined;
|
|
5243
6170
|
pageIndex?: number | undefined;
|
|
5244
6171
|
};
|
|
5245
|
-
headers:
|
|
6172
|
+
headers: {};
|
|
5246
6173
|
response: {
|
|
5247
6174
|
200: {
|
|
5248
6175
|
data: {
|
|
@@ -5298,7 +6225,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5298
6225
|
welfare_cycle: {
|
|
5299
6226
|
"daily-payouts": {
|
|
5300
6227
|
get: {
|
|
5301
|
-
body:
|
|
6228
|
+
body: {};
|
|
5302
6229
|
params: {};
|
|
5303
6230
|
query: {
|
|
5304
6231
|
userId?: string | undefined;
|
|
@@ -5309,7 +6236,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5309
6236
|
pageSize?: number | undefined;
|
|
5310
6237
|
pageIndex?: number | undefined;
|
|
5311
6238
|
};
|
|
5312
|
-
headers:
|
|
6239
|
+
headers: {};
|
|
5313
6240
|
response: {
|
|
5314
6241
|
200: {
|
|
5315
6242
|
data: {
|
|
@@ -5352,7 +6279,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5352
6279
|
welfare_cycle: {
|
|
5353
6280
|
"maturity-settlements": {
|
|
5354
6281
|
get: {
|
|
5355
|
-
body:
|
|
6282
|
+
body: {};
|
|
5356
6283
|
params: {};
|
|
5357
6284
|
query: {
|
|
5358
6285
|
userId?: string | undefined;
|
|
@@ -5363,7 +6290,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5363
6290
|
pageSize?: number | undefined;
|
|
5364
6291
|
pageIndex?: number | undefined;
|
|
5365
6292
|
};
|
|
5366
|
-
headers:
|
|
6293
|
+
headers: {};
|
|
5367
6294
|
response: {
|
|
5368
6295
|
200: {
|
|
5369
6296
|
data: {
|
|
@@ -5414,8 +6341,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5414
6341
|
subscriptionIds?: string[] | undefined;
|
|
5415
6342
|
};
|
|
5416
6343
|
params: {};
|
|
5417
|
-
query:
|
|
5418
|
-
headers:
|
|
6344
|
+
query: {};
|
|
6345
|
+
headers: {};
|
|
5419
6346
|
response: {
|
|
5420
6347
|
200: {
|
|
5421
6348
|
successCount: number;
|
|
@@ -5448,8 +6375,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5448
6375
|
subscriptionIds?: string[] | undefined;
|
|
5449
6376
|
};
|
|
5450
6377
|
params: {};
|
|
5451
|
-
query:
|
|
5452
|
-
headers:
|
|
6378
|
+
query: {};
|
|
6379
|
+
headers: {};
|
|
5453
6380
|
response: {
|
|
5454
6381
|
200: {
|
|
5455
6382
|
successCount: number;
|
|
@@ -5479,7 +6406,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5479
6406
|
kyc: {
|
|
5480
6407
|
methods: {
|
|
5481
6408
|
get: {
|
|
5482
|
-
body:
|
|
6409
|
+
body: {};
|
|
5483
6410
|
params: {};
|
|
5484
6411
|
query: {
|
|
5485
6412
|
userId?: string | undefined;
|
|
@@ -5490,7 +6417,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5490
6417
|
pageSize?: number | undefined;
|
|
5491
6418
|
pageIndex?: number | undefined;
|
|
5492
6419
|
};
|
|
5493
|
-
headers:
|
|
6420
|
+
headers: {};
|
|
5494
6421
|
response: {
|
|
5495
6422
|
200: {
|
|
5496
6423
|
data: {
|
|
@@ -5540,12 +6467,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5540
6467
|
methods: {
|
|
5541
6468
|
":id": {
|
|
5542
6469
|
get: {
|
|
5543
|
-
body:
|
|
6470
|
+
body: {};
|
|
5544
6471
|
params: {
|
|
5545
6472
|
id: string;
|
|
5546
6473
|
};
|
|
5547
|
-
query:
|
|
5548
|
-
headers:
|
|
6474
|
+
query: {};
|
|
6475
|
+
headers: {};
|
|
5549
6476
|
response: {
|
|
5550
6477
|
200: {
|
|
5551
6478
|
id: string;
|
|
@@ -5594,8 +6521,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5594
6521
|
params: {
|
|
5595
6522
|
id: string;
|
|
5596
6523
|
};
|
|
5597
|
-
query:
|
|
5598
|
-
headers:
|
|
6524
|
+
query: {};
|
|
6525
|
+
headers: {};
|
|
5599
6526
|
response: {
|
|
5600
6527
|
200: {
|
|
5601
6528
|
id: string;
|
|
@@ -5645,8 +6572,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5645
6572
|
params: {
|
|
5646
6573
|
id: string;
|
|
5647
6574
|
};
|
|
5648
|
-
query:
|
|
5649
|
-
headers:
|
|
6575
|
+
query: {};
|
|
6576
|
+
headers: {};
|
|
5650
6577
|
response: {
|
|
5651
6578
|
200: {
|
|
5652
6579
|
id: string;
|
|
@@ -5694,12 +6621,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5694
6621
|
"transaction-password": {
|
|
5695
6622
|
reset: {
|
|
5696
6623
|
post: {
|
|
5697
|
-
body:
|
|
6624
|
+
body: {};
|
|
5698
6625
|
params: {
|
|
5699
6626
|
userId: string;
|
|
5700
6627
|
};
|
|
5701
|
-
query:
|
|
5702
|
-
headers:
|
|
6628
|
+
query: {};
|
|
6629
|
+
headers: {};
|
|
5703
6630
|
response: {
|
|
5704
6631
|
200: {
|
|
5705
6632
|
password: string;
|
|
@@ -5729,12 +6656,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5729
6656
|
users: {
|
|
5730
6657
|
search: {
|
|
5731
6658
|
get: {
|
|
5732
|
-
body:
|
|
6659
|
+
body: {};
|
|
5733
6660
|
params: {};
|
|
5734
6661
|
query: {
|
|
5735
6662
|
keyword: string;
|
|
5736
6663
|
};
|
|
5737
|
-
headers:
|
|
6664
|
+
headers: {};
|
|
5738
6665
|
response: {
|
|
5739
6666
|
200: {
|
|
5740
6667
|
data: {
|
|
@@ -5782,7 +6709,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5782
6709
|
} & {
|
|
5783
6710
|
users: {
|
|
5784
6711
|
get: {
|
|
5785
|
-
body:
|
|
6712
|
+
body: {};
|
|
5786
6713
|
params: {};
|
|
5787
6714
|
query: {
|
|
5788
6715
|
email?: string | undefined;
|
|
@@ -5795,7 +6722,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5795
6722
|
pageSize?: number | undefined;
|
|
5796
6723
|
pageIndex?: number | undefined;
|
|
5797
6724
|
};
|
|
5798
|
-
headers:
|
|
6725
|
+
headers: {};
|
|
5799
6726
|
response: {
|
|
5800
6727
|
200: {
|
|
5801
6728
|
data: {
|
|
@@ -5878,12 +6805,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5878
6805
|
":userId": {
|
|
5879
6806
|
profile: {
|
|
5880
6807
|
get: {
|
|
5881
|
-
body:
|
|
6808
|
+
body: {};
|
|
5882
6809
|
params: {
|
|
5883
6810
|
userId: string;
|
|
5884
6811
|
};
|
|
5885
|
-
query:
|
|
5886
|
-
headers:
|
|
6812
|
+
query: {};
|
|
6813
|
+
headers: {};
|
|
5887
6814
|
response: {
|
|
5888
6815
|
200: {
|
|
5889
6816
|
userProfile?: {
|
|
@@ -5987,8 +6914,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5987
6914
|
params: {
|
|
5988
6915
|
userId: string;
|
|
5989
6916
|
};
|
|
5990
|
-
query:
|
|
5991
|
-
headers:
|
|
6917
|
+
query: {};
|
|
6918
|
+
headers: {};
|
|
5992
6919
|
response: {
|
|
5993
6920
|
200: {
|
|
5994
6921
|
userProfile?: {
|
|
@@ -6065,12 +6992,12 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
6065
6992
|
password: {
|
|
6066
6993
|
reset: {
|
|
6067
6994
|
post: {
|
|
6068
|
-
body:
|
|
6995
|
+
body: {};
|
|
6069
6996
|
params: {
|
|
6070
6997
|
userId: string;
|
|
6071
6998
|
};
|
|
6072
|
-
query:
|
|
6073
|
-
headers:
|
|
6999
|
+
query: {};
|
|
7000
|
+
headers: {};
|
|
6074
7001
|
response: {
|
|
6075
7002
|
200: {
|
|
6076
7003
|
password: string;
|
|
@@ -6104,8 +7031,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
6104
7031
|
params: {
|
|
6105
7032
|
userId: string;
|
|
6106
7033
|
};
|
|
6107
|
-
query:
|
|
6108
|
-
headers:
|
|
7034
|
+
query: {};
|
|
7035
|
+
headers: {};
|
|
6109
7036
|
response: {
|
|
6110
7037
|
200: {
|
|
6111
7038
|
success: boolean;
|
|
@@ -6200,9 +7127,6 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
6200
7127
|
standaloneSchema: {};
|
|
6201
7128
|
response: {
|
|
6202
7129
|
401: "Unauthorized";
|
|
6203
|
-
} & {
|
|
6204
|
-
401: "Unauthorized";
|
|
6205
|
-
} & {
|
|
6206
7130
|
403: "Forbidden: Admins only";
|
|
6207
7131
|
};
|
|
6208
7132
|
} & {
|