@r2wa-org/eden 0.0.56 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
- package/dist/src/admin/admin/router.d.ts +10 -12
- package/dist/src/admin/admin/service.d.ts +0 -2
- package/dist/src/admin/index.d.ts +1043 -54
- package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
- package/dist/src/asset/admin/router.d.ts +123 -20
- package/dist/src/asset/admin/service.d.ts +52 -4
- package/dist/src/asset/user/dto.schemas.d.ts +16 -98
- package/dist/src/asset/user/router.d.ts +69 -75
- package/dist/src/asset/user/service.d.ts +42 -42
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
- package/dist/src/asset-convert-product/admin/router.d.ts +564 -22
- package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
- package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
- package/dist/src/asset-convert-product/permissions.d.ts +2 -2
- package/dist/src/asset-convert-product/user/router.d.ts +8 -8
- package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
- package/dist/src/asset-price/admin/router.d.ts +125 -10
- package/dist/src/asset-price/admin/service.d.ts +157 -0
- package/dist/src/asset-price/errors/index.d.ts +3 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +3 -0
- package/dist/src/asset-price/internal/service.d.ts +1 -0
- package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
- package/dist/src/asset-price/user/router.d.ts +51 -10
- package/dist/src/asset-price/user/service.d.ts +13 -1
- package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
- package/dist/src/asset-type/admin/router.d.ts +60 -18
- package/dist/src/asset-type/admin/service.d.ts +16 -6
- package/dist/src/asset-type/db.schemas.d.ts +6 -6
- package/dist/src/asset-type/errors/index.d.ts +6 -0
- package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
- package/dist/src/asset-type/internal/service.d.ts +4 -4
- package/dist/src/asset-type/permissions.d.ts +1 -1
- package/dist/src/asset-type/schema.d.ts +3 -5
- package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
- package/dist/src/asset-type/user/router.d.ts +10 -10
- package/dist/src/asset-type/user/service.d.ts +1 -1
- package/dist/src/auth/better-auth.d.ts +706 -451
- package/dist/src/auth/db.schemas.d.ts +27 -407
- package/dist/src/auth/permissions.d.ts +20 -20
- package/dist/src/auth/roles.d.ts +60 -60
- package/dist/src/auth/router.d.ts +6 -6
- package/dist/src/auth/schema.d.ts +8 -206
- package/dist/src/bank-account/admin/router.d.ts +10 -10
- package/dist/src/bank-account/user/router.d.ts +6 -6
- package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/admin/router.d.ts +10 -11
- package/dist/src/check-in/admin/service.d.ts +0 -1
- package/dist/src/check-in/internal/service.d.ts +0 -1
- package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/user/router.d.ts +8 -9
- package/dist/src/check-in/user/service.d.ts +0 -1
- package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/admin/router.d.ts +10 -11
- package/dist/src/deposit/admin/service.d.ts +0 -2
- package/dist/src/deposit/user/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/user/router.d.ts +8 -9
- package/dist/src/deposit/user/service.d.ts +0 -2
- package/dist/src/dynamic-env/admin.router.d.ts +10 -10
- package/dist/src/env/server.d.ts +1 -1
- package/dist/src/file-storage/admin/router.d.ts +10 -10
- package/dist/src/file-storage/share/router.d.ts +8 -8
- package/dist/src/file-storage/user/router.d.ts +8 -8
- package/dist/src/index.d.ts +1578 -352
- package/dist/src/ledger/admin/router.d.ts +10 -10
- package/dist/src/ledger/user/router.d.ts +8 -8
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +11 -11
- package/dist/src/ledger-account/user/dto.schemas.d.ts +39 -193
- package/dist/src/ledger-account/user/router.d.ts +51 -50
- package/dist/src/ledger-account/user/service.d.ts +41 -41
- package/dist/src/ledger-account-import/admin/router.d.ts +10 -10
- package/dist/src/ledger-account-transfer/user/router.d.ts +8 -8
- package/dist/src/ledger-account-type/admin/router.d.ts +10 -10
- package/dist/src/ledger-account-type/user/router.d.ts +56 -8
- package/dist/src/ledger-account-type/user/service.d.ts +25 -0
- package/dist/src/market-data/admin/router.d.ts +10 -10
- package/dist/src/market-data/user/router.d.ts +8 -8
- package/dist/src/market-pricing/admin/router.d.ts +10 -10
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/admin/router.d.ts +10 -10
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/news/user/router.d.ts +8 -8
- package/dist/src/news-category/user/router.d.ts +6 -6
- package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
- package/dist/src/notification/admin/router.d.ts +10 -10
- package/dist/src/notification/user/dto.schemas.d.ts +2 -2
- package/dist/src/notification/user/router.d.ts +8 -8
- package/dist/src/portfolio/index.d.ts +2 -0
- package/dist/src/portfolio/internal/index.d.ts +1 -0
- package/dist/src/portfolio/internal/service.d.ts +5 -0
- package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
- package/dist/src/portfolio/user/index.d.ts +3 -0
- package/dist/src/portfolio/user/router.d.ts +659 -0
- package/dist/src/portfolio/user/service.d.ts +143 -0
- package/dist/src/receipt-method/admin/router.d.ts +10 -10
- package/dist/src/receipt-method/user/router.d.ts +6 -6
- package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
- package/dist/src/referral/admin/router.d.ts +10 -11
- package/dist/src/referral/user/dto.schemas.d.ts +2 -36
- package/dist/src/referral/user/router.d.ts +8 -9
- package/dist/src/referral-depth-config/admin/router.d.ts +10 -10
- package/dist/src/server-test/index.d.ts +6 -6
- package/dist/src/shipping-address/admin/router.d.ts +10 -10
- package/dist/src/shipping-address/user/router.d.ts +6 -6
- package/dist/src/team/admin/dto.schemas.d.ts +2 -36
- package/dist/src/team/admin/router.d.ts +10 -11
- package/dist/src/team/user/dto.schemas.d.ts +5 -90
- package/dist/src/team/user/router.d.ts +8 -11
- package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
- package/dist/src/trade-market/admin/router.d.ts +10 -10
- package/dist/src/trade-market/user/router.d.ts +8 -8
- package/dist/src/transfer/admin/router.d.ts +10 -10
- package/dist/src/transfer/admin/service.d.ts +0 -2
- package/dist/src/transfer/user/router.d.ts +8 -8
- package/dist/src/transfer/user/service.d.ts +0 -2
- package/dist/src/user/admin/dto.schemas.d.ts +1 -21
- package/dist/src/user/admin/router.d.ts +10 -15
- package/dist/src/user/admin/service.d.ts +0 -4
- package/dist/src/user/user/router.d.ts +6 -8
- package/dist/src/user/user/service.d.ts +0 -2
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/user-kyc/admin/router.d.ts +10 -10
- package/dist/src/user-kyc/user/router.d.ts +8 -8
- package/dist/src/user-security/admin/router.d.ts +10 -10
- package/dist/src/user-security/user/router.d.ts +8 -8
- package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
- package/dist/src/wallet/admin/router.d.ts +75 -10
- package/dist/src/wallet/admin/service.d.ts +46 -8
- package/dist/src/wallet/internal/service.d.ts +118 -14
- package/dist/src/wallet/user/dto.schemas.d.ts +6 -66
- package/dist/src/wallet/user/router.d.ts +9 -69
- package/dist/src/wallet/user/service.d.ts +20 -46
- package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
- package/dist/src/wallet-type/admin/router.d.ts +143 -10
- package/dist/src/wallet-type/admin/service.d.ts +51 -0
- package/dist/src/wallet-type/errors/index.d.ts +4 -0
- package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
- package/dist/src/wallet-type/internal/service.d.ts +37 -0
- package/dist/src/wallet-type/user/router.d.ts +8 -8
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/admin/router.d.ts +10 -10
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
- package/dist/src/welfare-cycle/user/router.d.ts +51 -56
- package/dist/src/welfare-cycle/user/service.d.ts +1 -1
- package/dist/src/withdraw/admin/router.d.ts +10 -10
- package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
- package/dist/src/withdraw/user/router.d.ts +55 -8
- package/dist/src/withdraw/user/service.d.ts +20 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare const app: Elysia<"/api", {
|
|
|
61
61
|
route: string;
|
|
62
62
|
request: Request;
|
|
63
63
|
store: {};
|
|
64
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
64
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
65
65
|
readonly 100: "Continue";
|
|
66
66
|
readonly 101: "Switching Protocols";
|
|
67
67
|
readonly 102: "Processing";
|
|
@@ -195,11 +195,11 @@ declare const app: Elysia<"/api", {
|
|
|
195
195
|
emailVerified: boolean;
|
|
196
196
|
name: string;
|
|
197
197
|
image?: string | null | undefined | undefined;
|
|
198
|
-
phoneNumber?: string | null | undefined;
|
|
199
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
200
198
|
twoFactorEnabled: boolean | null | undefined;
|
|
201
199
|
username?: string | null | undefined;
|
|
202
200
|
displayUsername?: string | null | undefined;
|
|
201
|
+
phoneNumber?: string | null | undefined;
|
|
202
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
203
203
|
banned: boolean | null | undefined;
|
|
204
204
|
role?: string | null | undefined;
|
|
205
205
|
banReason?: string | null | undefined;
|
|
@@ -237,7 +237,7 @@ declare const app: Elysia<"/api", {
|
|
|
237
237
|
route: string;
|
|
238
238
|
request: Request;
|
|
239
239
|
store: {};
|
|
240
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
240
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
241
241
|
readonly 100: "Continue";
|
|
242
242
|
readonly 101: "Switching Protocols";
|
|
243
243
|
readonly 102: "Processing";
|
|
@@ -371,11 +371,11 @@ declare const app: Elysia<"/api", {
|
|
|
371
371
|
emailVerified: boolean;
|
|
372
372
|
name: string;
|
|
373
373
|
image?: string | null | undefined | undefined;
|
|
374
|
-
phoneNumber?: string | null | undefined;
|
|
375
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
376
374
|
twoFactorEnabled: boolean | null | undefined;
|
|
377
375
|
username?: string | null | undefined;
|
|
378
376
|
displayUsername?: string | null | undefined;
|
|
377
|
+
phoneNumber?: string | null | undefined;
|
|
378
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
379
379
|
banned: boolean | null | undefined;
|
|
380
380
|
role?: string | null | undefined;
|
|
381
381
|
banReason?: string | null | undefined;
|
|
@@ -730,7 +730,6 @@ declare const app: Elysia<"/api", {
|
|
|
730
730
|
twoFactorEnabled: boolean | null;
|
|
731
731
|
username: string | null;
|
|
732
732
|
displayUsername: string | null;
|
|
733
|
-
isAnonymous: boolean | null;
|
|
734
733
|
phoneNumber: string | null;
|
|
735
734
|
phoneNumberVerified: boolean | null;
|
|
736
735
|
role: string | null;
|
|
@@ -785,7 +784,6 @@ declare const app: Elysia<"/api", {
|
|
|
785
784
|
twoFactorEnabled: boolean | null;
|
|
786
785
|
username: string | null;
|
|
787
786
|
displayUsername: string | null;
|
|
788
|
-
isAnonymous: boolean | null;
|
|
789
787
|
phoneNumber: string | null;
|
|
790
788
|
phoneNumberVerified: boolean | null;
|
|
791
789
|
role: string | null;
|
|
@@ -1050,7 +1048,10 @@ declare const app: Elysia<"/api", {
|
|
|
1050
1048
|
body: {};
|
|
1051
1049
|
params: {};
|
|
1052
1050
|
query: {
|
|
1051
|
+
id?: string | undefined;
|
|
1052
|
+
baseAssetId?: string | undefined;
|
|
1053
1053
|
baseAsset?: string | undefined;
|
|
1054
|
+
quoteAssetId?: string | undefined;
|
|
1054
1055
|
quoteAsset?: string | undefined;
|
|
1055
1056
|
source?: string | undefined;
|
|
1056
1057
|
startDate?: Date | undefined;
|
|
@@ -1058,6 +1059,8 @@ declare const app: Elysia<"/api", {
|
|
|
1058
1059
|
offset?: number | undefined;
|
|
1059
1060
|
pageSize?: number | undefined;
|
|
1060
1061
|
pageIndex?: number | undefined;
|
|
1062
|
+
createdAtStart?: Date | undefined;
|
|
1063
|
+
createdAtEnd?: Date | undefined;
|
|
1061
1064
|
endDate?: Date | undefined;
|
|
1062
1065
|
};
|
|
1063
1066
|
headers: {};
|
|
@@ -1074,6 +1077,24 @@ declare const app: Elysia<"/api", {
|
|
|
1074
1077
|
price: string;
|
|
1075
1078
|
source: string;
|
|
1076
1079
|
effectiveAt: Date;
|
|
1080
|
+
quoteAssetInfo: {
|
|
1081
|
+
symbol: string;
|
|
1082
|
+
id: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
code: string;
|
|
1085
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1086
|
+
isActive: boolean;
|
|
1087
|
+
precision: number;
|
|
1088
|
+
};
|
|
1089
|
+
baseAssetInfo: {
|
|
1090
|
+
symbol: string;
|
|
1091
|
+
id: string;
|
|
1092
|
+
name: string;
|
|
1093
|
+
code: string;
|
|
1094
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1095
|
+
isActive: boolean;
|
|
1096
|
+
precision: number;
|
|
1097
|
+
};
|
|
1077
1098
|
}[];
|
|
1078
1099
|
pagination: {
|
|
1079
1100
|
total: number;
|
|
@@ -1122,6 +1143,24 @@ declare const app: Elysia<"/api", {
|
|
|
1122
1143
|
price: string;
|
|
1123
1144
|
source: string;
|
|
1124
1145
|
effectiveAt: Date;
|
|
1146
|
+
quoteAssetInfo: {
|
|
1147
|
+
symbol: string;
|
|
1148
|
+
id: string;
|
|
1149
|
+
name: string;
|
|
1150
|
+
code: string;
|
|
1151
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1152
|
+
isActive: boolean;
|
|
1153
|
+
precision: number;
|
|
1154
|
+
};
|
|
1155
|
+
baseAssetInfo: {
|
|
1156
|
+
symbol: string;
|
|
1157
|
+
id: string;
|
|
1158
|
+
name: string;
|
|
1159
|
+
code: string;
|
|
1160
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1161
|
+
isActive: boolean;
|
|
1162
|
+
precision: number;
|
|
1163
|
+
};
|
|
1125
1164
|
};
|
|
1126
1165
|
422: {
|
|
1127
1166
|
type: "validation";
|
|
@@ -1140,6 +1179,62 @@ declare const app: Elysia<"/api", {
|
|
|
1140
1179
|
};
|
|
1141
1180
|
};
|
|
1142
1181
|
};
|
|
1182
|
+
} & {
|
|
1183
|
+
asset_prices: {
|
|
1184
|
+
":id": {
|
|
1185
|
+
get: {
|
|
1186
|
+
body: {};
|
|
1187
|
+
params: {
|
|
1188
|
+
id: string;
|
|
1189
|
+
};
|
|
1190
|
+
query: {};
|
|
1191
|
+
headers: {};
|
|
1192
|
+
response: {
|
|
1193
|
+
200: {
|
|
1194
|
+
id: string;
|
|
1195
|
+
createdAt: Date;
|
|
1196
|
+
updatedAt: Date;
|
|
1197
|
+
baseAssetId: string;
|
|
1198
|
+
baseAsset: string;
|
|
1199
|
+
quoteAssetId: string;
|
|
1200
|
+
quoteAsset: string;
|
|
1201
|
+
price: string;
|
|
1202
|
+
source: string;
|
|
1203
|
+
effectiveAt: Date;
|
|
1204
|
+
quoteAssetInfo: {
|
|
1205
|
+
symbol: string;
|
|
1206
|
+
id: string;
|
|
1207
|
+
name: string;
|
|
1208
|
+
code: string;
|
|
1209
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1210
|
+
isActive: boolean;
|
|
1211
|
+
precision: number;
|
|
1212
|
+
};
|
|
1213
|
+
baseAssetInfo: {
|
|
1214
|
+
symbol: string;
|
|
1215
|
+
id: string;
|
|
1216
|
+
name: string;
|
|
1217
|
+
code: string;
|
|
1218
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1219
|
+
isActive: boolean;
|
|
1220
|
+
precision: number;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
422: {
|
|
1224
|
+
type: "validation";
|
|
1225
|
+
on: string;
|
|
1226
|
+
summary?: string;
|
|
1227
|
+
message?: string;
|
|
1228
|
+
found?: unknown;
|
|
1229
|
+
property?: string;
|
|
1230
|
+
expected?: string;
|
|
1231
|
+
};
|
|
1232
|
+
401: "Unauthorized";
|
|
1233
|
+
403: "Forbidden: Admins only";
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1143
1238
|
} & {
|
|
1144
1239
|
asset_prices: {
|
|
1145
1240
|
post: {
|
|
@@ -1165,6 +1260,24 @@ declare const app: Elysia<"/api", {
|
|
|
1165
1260
|
price: string;
|
|
1166
1261
|
source: string;
|
|
1167
1262
|
effectiveAt: Date;
|
|
1263
|
+
quoteAssetInfo: {
|
|
1264
|
+
symbol: string;
|
|
1265
|
+
id: string;
|
|
1266
|
+
name: string;
|
|
1267
|
+
code: string;
|
|
1268
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1269
|
+
isActive: boolean;
|
|
1270
|
+
precision: number;
|
|
1271
|
+
};
|
|
1272
|
+
baseAssetInfo: {
|
|
1273
|
+
symbol: string;
|
|
1274
|
+
id: string;
|
|
1275
|
+
name: string;
|
|
1276
|
+
code: string;
|
|
1277
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1278
|
+
isActive: boolean;
|
|
1279
|
+
precision: number;
|
|
1280
|
+
};
|
|
1168
1281
|
};
|
|
1169
1282
|
422: {
|
|
1170
1283
|
type: "validation";
|
|
@@ -1190,12 +1303,17 @@ declare const app: Elysia<"/api", {
|
|
|
1190
1303
|
body: {};
|
|
1191
1304
|
params: {};
|
|
1192
1305
|
query: {
|
|
1306
|
+
id?: string | undefined;
|
|
1307
|
+
name?: string | undefined;
|
|
1308
|
+
code?: string | undefined;
|
|
1193
1309
|
category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
|
|
1194
1310
|
isActive?: boolean | undefined;
|
|
1311
|
+
typeId?: string | undefined;
|
|
1195
1312
|
limit?: number | undefined;
|
|
1196
1313
|
offset?: number | undefined;
|
|
1197
1314
|
pageSize?: number | undefined;
|
|
1198
1315
|
pageIndex?: number | undefined;
|
|
1316
|
+
keyword?: string | undefined;
|
|
1199
1317
|
};
|
|
1200
1318
|
headers: {};
|
|
1201
1319
|
response: {
|
|
@@ -1205,12 +1323,14 @@ declare const app: Elysia<"/api", {
|
|
|
1205
1323
|
type: {
|
|
1206
1324
|
id: string;
|
|
1207
1325
|
name: string;
|
|
1208
|
-
key:
|
|
1326
|
+
key: string;
|
|
1209
1327
|
isGasAsset: boolean;
|
|
1210
1328
|
isActive: boolean;
|
|
1211
1329
|
};
|
|
1212
1330
|
id: string;
|
|
1213
1331
|
name: string;
|
|
1332
|
+
createdAt: Date;
|
|
1333
|
+
updatedAt: Date;
|
|
1214
1334
|
code: string;
|
|
1215
1335
|
iconUrl: string;
|
|
1216
1336
|
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
@@ -1256,7 +1376,7 @@ declare const app: Elysia<"/api", {
|
|
|
1256
1376
|
type: {
|
|
1257
1377
|
id: string;
|
|
1258
1378
|
name: string;
|
|
1259
|
-
key:
|
|
1379
|
+
key: string;
|
|
1260
1380
|
isGasAsset: boolean;
|
|
1261
1381
|
isActive: boolean;
|
|
1262
1382
|
};
|
|
@@ -1291,6 +1411,12 @@ declare const app: Elysia<"/api", {
|
|
|
1291
1411
|
post: {
|
|
1292
1412
|
body: {
|
|
1293
1413
|
isActive?: boolean | undefined;
|
|
1414
|
+
initialPrice?: {
|
|
1415
|
+
quoteAsset?: string | undefined;
|
|
1416
|
+
source?: string | undefined;
|
|
1417
|
+
effectiveAt?: Date | undefined;
|
|
1418
|
+
price: string;
|
|
1419
|
+
} | undefined;
|
|
1294
1420
|
symbol: string;
|
|
1295
1421
|
name: string;
|
|
1296
1422
|
code: string;
|
|
@@ -1298,12 +1424,6 @@ declare const app: Elysia<"/api", {
|
|
|
1298
1424
|
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1299
1425
|
typeId: string;
|
|
1300
1426
|
precision: number;
|
|
1301
|
-
initialPrice: {
|
|
1302
|
-
quoteAsset?: string | undefined;
|
|
1303
|
-
source?: string | undefined;
|
|
1304
|
-
effectiveAt?: Date | undefined;
|
|
1305
|
-
price: string;
|
|
1306
|
-
};
|
|
1307
1427
|
};
|
|
1308
1428
|
params: {};
|
|
1309
1429
|
query: {};
|
|
@@ -1314,7 +1434,7 @@ declare const app: Elysia<"/api", {
|
|
|
1314
1434
|
type: {
|
|
1315
1435
|
id: string;
|
|
1316
1436
|
name: string;
|
|
1317
|
-
key:
|
|
1437
|
+
key: string;
|
|
1318
1438
|
isGasAsset: boolean;
|
|
1319
1439
|
isActive: boolean;
|
|
1320
1440
|
};
|
|
@@ -1367,7 +1487,7 @@ declare const app: Elysia<"/api", {
|
|
|
1367
1487
|
type: {
|
|
1368
1488
|
id: string;
|
|
1369
1489
|
name: string;
|
|
1370
|
-
key:
|
|
1490
|
+
key: string;
|
|
1371
1491
|
isGasAsset: boolean;
|
|
1372
1492
|
isActive: boolean;
|
|
1373
1493
|
};
|
|
@@ -1397,6 +1517,102 @@ declare const app: Elysia<"/api", {
|
|
|
1397
1517
|
};
|
|
1398
1518
|
};
|
|
1399
1519
|
};
|
|
1520
|
+
} & {
|
|
1521
|
+
assets: {
|
|
1522
|
+
":code": {
|
|
1523
|
+
enable: {
|
|
1524
|
+
post: {
|
|
1525
|
+
body: {};
|
|
1526
|
+
params: {
|
|
1527
|
+
code: string;
|
|
1528
|
+
};
|
|
1529
|
+
query: {};
|
|
1530
|
+
headers: {};
|
|
1531
|
+
response: {
|
|
1532
|
+
200: {
|
|
1533
|
+
symbol: string;
|
|
1534
|
+
type: {
|
|
1535
|
+
id: string;
|
|
1536
|
+
name: string;
|
|
1537
|
+
key: string;
|
|
1538
|
+
isGasAsset: boolean;
|
|
1539
|
+
isActive: boolean;
|
|
1540
|
+
};
|
|
1541
|
+
id: string;
|
|
1542
|
+
name: string;
|
|
1543
|
+
createdAt: Date;
|
|
1544
|
+
updatedAt: Date;
|
|
1545
|
+
code: string;
|
|
1546
|
+
iconUrl: string;
|
|
1547
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1548
|
+
isActive: boolean;
|
|
1549
|
+
typeId: string;
|
|
1550
|
+
precision: number;
|
|
1551
|
+
};
|
|
1552
|
+
422: {
|
|
1553
|
+
type: "validation";
|
|
1554
|
+
on: string;
|
|
1555
|
+
summary?: string;
|
|
1556
|
+
message?: string;
|
|
1557
|
+
found?: unknown;
|
|
1558
|
+
property?: string;
|
|
1559
|
+
expected?: string;
|
|
1560
|
+
};
|
|
1561
|
+
401: "Unauthorized";
|
|
1562
|
+
403: "Forbidden: Admins only";
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
};
|
|
1568
|
+
} & {
|
|
1569
|
+
assets: {
|
|
1570
|
+
":code": {
|
|
1571
|
+
disable: {
|
|
1572
|
+
post: {
|
|
1573
|
+
body: {};
|
|
1574
|
+
params: {
|
|
1575
|
+
code: string;
|
|
1576
|
+
};
|
|
1577
|
+
query: {};
|
|
1578
|
+
headers: {};
|
|
1579
|
+
response: {
|
|
1580
|
+
200: {
|
|
1581
|
+
symbol: string;
|
|
1582
|
+
type: {
|
|
1583
|
+
id: string;
|
|
1584
|
+
name: string;
|
|
1585
|
+
key: string;
|
|
1586
|
+
isGasAsset: boolean;
|
|
1587
|
+
isActive: boolean;
|
|
1588
|
+
};
|
|
1589
|
+
id: string;
|
|
1590
|
+
name: string;
|
|
1591
|
+
createdAt: Date;
|
|
1592
|
+
updatedAt: Date;
|
|
1593
|
+
code: string;
|
|
1594
|
+
iconUrl: string;
|
|
1595
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1596
|
+
isActive: boolean;
|
|
1597
|
+
typeId: string;
|
|
1598
|
+
precision: number;
|
|
1599
|
+
};
|
|
1600
|
+
422: {
|
|
1601
|
+
type: "validation";
|
|
1602
|
+
on: string;
|
|
1603
|
+
summary?: string;
|
|
1604
|
+
message?: string;
|
|
1605
|
+
found?: unknown;
|
|
1606
|
+
property?: string;
|
|
1607
|
+
expected?: string;
|
|
1608
|
+
};
|
|
1609
|
+
401: "Unauthorized";
|
|
1610
|
+
403: "Forbidden: Admins only";
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1400
1616
|
};
|
|
1401
1617
|
} & {
|
|
1402
1618
|
admin: {
|
|
@@ -1431,6 +1647,28 @@ declare const app: Elysia<"/api", {
|
|
|
1431
1647
|
payAssetId: string;
|
|
1432
1648
|
defaultReceiveAccountTypeId: string;
|
|
1433
1649
|
minPayAmount: string;
|
|
1650
|
+
targetAssetInfo: {
|
|
1651
|
+
symbol: string;
|
|
1652
|
+
id: string;
|
|
1653
|
+
name: string;
|
|
1654
|
+
code: string;
|
|
1655
|
+
isActive: boolean;
|
|
1656
|
+
precision: number;
|
|
1657
|
+
};
|
|
1658
|
+
payAssetInfo: {
|
|
1659
|
+
symbol: string;
|
|
1660
|
+
id: string;
|
|
1661
|
+
name: string;
|
|
1662
|
+
code: string;
|
|
1663
|
+
isActive: boolean;
|
|
1664
|
+
precision: number;
|
|
1665
|
+
};
|
|
1666
|
+
defaultReceiveAccountTypeInfo: {
|
|
1667
|
+
id: string;
|
|
1668
|
+
name: string;
|
|
1669
|
+
key: string;
|
|
1670
|
+
isActive: boolean;
|
|
1671
|
+
};
|
|
1434
1672
|
};
|
|
1435
1673
|
422: {
|
|
1436
1674
|
type: "validation";
|
|
@@ -1469,17 +1707,39 @@ declare const app: Elysia<"/api", {
|
|
|
1469
1707
|
headers: {};
|
|
1470
1708
|
response: {
|
|
1471
1709
|
200: {
|
|
1472
|
-
createdAt: Date;
|
|
1473
|
-
updatedAt: Date;
|
|
1474
1710
|
id: string;
|
|
1475
1711
|
name: string;
|
|
1712
|
+
createdAt: Date;
|
|
1713
|
+
updatedAt: Date;
|
|
1476
1714
|
description: string | null;
|
|
1715
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1477
1716
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1478
1717
|
targetAssetId: string;
|
|
1479
1718
|
payAssetId: string;
|
|
1480
1719
|
defaultReceiveAccountTypeId: string;
|
|
1481
1720
|
minPayAmount: string;
|
|
1482
|
-
|
|
1721
|
+
targetAssetInfo: {
|
|
1722
|
+
symbol: string;
|
|
1723
|
+
id: string;
|
|
1724
|
+
name: string;
|
|
1725
|
+
code: string;
|
|
1726
|
+
isActive: boolean;
|
|
1727
|
+
precision: number;
|
|
1728
|
+
};
|
|
1729
|
+
payAssetInfo: {
|
|
1730
|
+
symbol: string;
|
|
1731
|
+
id: string;
|
|
1732
|
+
name: string;
|
|
1733
|
+
code: string;
|
|
1734
|
+
isActive: boolean;
|
|
1735
|
+
precision: number;
|
|
1736
|
+
};
|
|
1737
|
+
defaultReceiveAccountTypeInfo: {
|
|
1738
|
+
id: string;
|
|
1739
|
+
name: string;
|
|
1740
|
+
key: string;
|
|
1741
|
+
isActive: boolean;
|
|
1742
|
+
};
|
|
1483
1743
|
};
|
|
1484
1744
|
422: {
|
|
1485
1745
|
type: "validation";
|
|
@@ -1511,17 +1771,39 @@ declare const app: Elysia<"/api", {
|
|
|
1511
1771
|
headers: {};
|
|
1512
1772
|
response: {
|
|
1513
1773
|
200: {
|
|
1514
|
-
createdAt: Date;
|
|
1515
|
-
updatedAt: Date;
|
|
1516
1774
|
id: string;
|
|
1517
1775
|
name: string;
|
|
1776
|
+
createdAt: Date;
|
|
1777
|
+
updatedAt: Date;
|
|
1518
1778
|
description: string | null;
|
|
1779
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1519
1780
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1520
1781
|
targetAssetId: string;
|
|
1521
1782
|
payAssetId: string;
|
|
1522
1783
|
defaultReceiveAccountTypeId: string;
|
|
1523
1784
|
minPayAmount: string;
|
|
1524
|
-
|
|
1785
|
+
targetAssetInfo: {
|
|
1786
|
+
symbol: string;
|
|
1787
|
+
id: string;
|
|
1788
|
+
name: string;
|
|
1789
|
+
code: string;
|
|
1790
|
+
isActive: boolean;
|
|
1791
|
+
precision: number;
|
|
1792
|
+
};
|
|
1793
|
+
payAssetInfo: {
|
|
1794
|
+
symbol: string;
|
|
1795
|
+
id: string;
|
|
1796
|
+
name: string;
|
|
1797
|
+
code: string;
|
|
1798
|
+
isActive: boolean;
|
|
1799
|
+
precision: number;
|
|
1800
|
+
};
|
|
1801
|
+
defaultReceiveAccountTypeInfo: {
|
|
1802
|
+
id: string;
|
|
1803
|
+
name: string;
|
|
1804
|
+
key: string;
|
|
1805
|
+
isActive: boolean;
|
|
1806
|
+
};
|
|
1525
1807
|
};
|
|
1526
1808
|
422: {
|
|
1527
1809
|
type: "validation";
|
|
@@ -1554,21 +1836,43 @@ declare const app: Elysia<"/api", {
|
|
|
1554
1836
|
headers: {};
|
|
1555
1837
|
response: {
|
|
1556
1838
|
200: {
|
|
1557
|
-
createdAt: Date;
|
|
1558
|
-
updatedAt: Date;
|
|
1559
1839
|
id: string;
|
|
1560
1840
|
name: string;
|
|
1841
|
+
createdAt: Date;
|
|
1842
|
+
updatedAt: Date;
|
|
1561
1843
|
description: string | null;
|
|
1844
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1562
1845
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1563
1846
|
targetAssetId: string;
|
|
1564
1847
|
payAssetId: string;
|
|
1565
1848
|
defaultReceiveAccountTypeId: string;
|
|
1566
1849
|
minPayAmount: string;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1850
|
+
targetAssetInfo: {
|
|
1851
|
+
symbol: string;
|
|
1852
|
+
id: string;
|
|
1853
|
+
name: string;
|
|
1854
|
+
code: string;
|
|
1855
|
+
isActive: boolean;
|
|
1856
|
+
precision: number;
|
|
1857
|
+
};
|
|
1858
|
+
payAssetInfo: {
|
|
1859
|
+
symbol: string;
|
|
1860
|
+
id: string;
|
|
1861
|
+
name: string;
|
|
1862
|
+
code: string;
|
|
1863
|
+
isActive: boolean;
|
|
1864
|
+
precision: number;
|
|
1865
|
+
};
|
|
1866
|
+
defaultReceiveAccountTypeInfo: {
|
|
1867
|
+
id: string;
|
|
1868
|
+
name: string;
|
|
1869
|
+
key: string;
|
|
1870
|
+
isActive: boolean;
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
422: {
|
|
1874
|
+
type: "validation";
|
|
1875
|
+
on: string;
|
|
1572
1876
|
summary?: string;
|
|
1573
1877
|
message?: string;
|
|
1574
1878
|
found?: unknown;
|
|
@@ -1597,17 +1901,39 @@ declare const app: Elysia<"/api", {
|
|
|
1597
1901
|
headers: {};
|
|
1598
1902
|
response: {
|
|
1599
1903
|
200: {
|
|
1600
|
-
createdAt: Date;
|
|
1601
|
-
updatedAt: Date;
|
|
1602
1904
|
id: string;
|
|
1603
1905
|
name: string;
|
|
1906
|
+
createdAt: Date;
|
|
1907
|
+
updatedAt: Date;
|
|
1604
1908
|
description: string | null;
|
|
1909
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1605
1910
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1606
1911
|
targetAssetId: string;
|
|
1607
1912
|
payAssetId: string;
|
|
1608
1913
|
defaultReceiveAccountTypeId: string;
|
|
1609
1914
|
minPayAmount: string;
|
|
1610
|
-
|
|
1915
|
+
targetAssetInfo: {
|
|
1916
|
+
symbol: string;
|
|
1917
|
+
id: string;
|
|
1918
|
+
name: string;
|
|
1919
|
+
code: string;
|
|
1920
|
+
isActive: boolean;
|
|
1921
|
+
precision: number;
|
|
1922
|
+
};
|
|
1923
|
+
payAssetInfo: {
|
|
1924
|
+
symbol: string;
|
|
1925
|
+
id: string;
|
|
1926
|
+
name: string;
|
|
1927
|
+
code: string;
|
|
1928
|
+
isActive: boolean;
|
|
1929
|
+
precision: number;
|
|
1930
|
+
};
|
|
1931
|
+
defaultReceiveAccountTypeInfo: {
|
|
1932
|
+
id: string;
|
|
1933
|
+
name: string;
|
|
1934
|
+
key: string;
|
|
1935
|
+
isActive: boolean;
|
|
1936
|
+
};
|
|
1611
1937
|
};
|
|
1612
1938
|
422: {
|
|
1613
1939
|
type: "validation";
|
|
@@ -1626,6 +1952,69 @@ declare const app: Elysia<"/api", {
|
|
|
1626
1952
|
};
|
|
1627
1953
|
};
|
|
1628
1954
|
};
|
|
1955
|
+
} & {
|
|
1956
|
+
asset_convert_product: {
|
|
1957
|
+
products: {
|
|
1958
|
+
":id": {
|
|
1959
|
+
get: {
|
|
1960
|
+
body: {};
|
|
1961
|
+
params: {
|
|
1962
|
+
id: string;
|
|
1963
|
+
};
|
|
1964
|
+
query: {};
|
|
1965
|
+
headers: {};
|
|
1966
|
+
response: {
|
|
1967
|
+
200: {
|
|
1968
|
+
id: string;
|
|
1969
|
+
name: string;
|
|
1970
|
+
createdAt: Date;
|
|
1971
|
+
updatedAt: Date;
|
|
1972
|
+
description: string | null;
|
|
1973
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1974
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1975
|
+
targetAssetId: string;
|
|
1976
|
+
payAssetId: string;
|
|
1977
|
+
defaultReceiveAccountTypeId: string;
|
|
1978
|
+
minPayAmount: string;
|
|
1979
|
+
targetAssetInfo: {
|
|
1980
|
+
symbol: string;
|
|
1981
|
+
id: string;
|
|
1982
|
+
name: string;
|
|
1983
|
+
code: string;
|
|
1984
|
+
isActive: boolean;
|
|
1985
|
+
precision: number;
|
|
1986
|
+
};
|
|
1987
|
+
payAssetInfo: {
|
|
1988
|
+
symbol: string;
|
|
1989
|
+
id: string;
|
|
1990
|
+
name: string;
|
|
1991
|
+
code: string;
|
|
1992
|
+
isActive: boolean;
|
|
1993
|
+
precision: number;
|
|
1994
|
+
};
|
|
1995
|
+
defaultReceiveAccountTypeInfo: {
|
|
1996
|
+
id: string;
|
|
1997
|
+
name: string;
|
|
1998
|
+
key: string;
|
|
1999
|
+
isActive: boolean;
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
422: {
|
|
2003
|
+
type: "validation";
|
|
2004
|
+
on: string;
|
|
2005
|
+
summary?: string;
|
|
2006
|
+
message?: string;
|
|
2007
|
+
found?: unknown;
|
|
2008
|
+
property?: string;
|
|
2009
|
+
expected?: string;
|
|
2010
|
+
};
|
|
2011
|
+
401: "Unauthorized";
|
|
2012
|
+
403: "Forbidden: Admins only";
|
|
2013
|
+
};
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
1629
2018
|
} & {
|
|
1630
2019
|
asset_convert_product: {
|
|
1631
2020
|
products: {
|
|
@@ -1633,12 +2022,21 @@ declare const app: Elysia<"/api", {
|
|
|
1633
2022
|
body: {};
|
|
1634
2023
|
params: {};
|
|
1635
2024
|
query: {
|
|
2025
|
+
id?: string | undefined;
|
|
2026
|
+
name?: string | undefined;
|
|
1636
2027
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1637
2028
|
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
2029
|
+
targetAssetId?: string | undefined;
|
|
2030
|
+
payAssetId?: string | undefined;
|
|
2031
|
+
defaultReceiveAccountTypeId?: string | undefined;
|
|
1638
2032
|
limit?: number | undefined;
|
|
1639
2033
|
offset?: number | undefined;
|
|
1640
2034
|
pageSize?: number | undefined;
|
|
1641
2035
|
pageIndex?: number | undefined;
|
|
2036
|
+
createdAtStart?: Date | undefined;
|
|
2037
|
+
createdAtEnd?: Date | undefined;
|
|
2038
|
+
updatedAtStart?: Date | undefined;
|
|
2039
|
+
updatedAtEnd?: Date | undefined;
|
|
1642
2040
|
};
|
|
1643
2041
|
headers: {};
|
|
1644
2042
|
response: {
|
|
@@ -1655,6 +2053,28 @@ declare const app: Elysia<"/api", {
|
|
|
1655
2053
|
payAssetId: string;
|
|
1656
2054
|
defaultReceiveAccountTypeId: string;
|
|
1657
2055
|
minPayAmount: string;
|
|
2056
|
+
targetAssetInfo: {
|
|
2057
|
+
symbol: string;
|
|
2058
|
+
id: string;
|
|
2059
|
+
name: string;
|
|
2060
|
+
code: string;
|
|
2061
|
+
isActive: boolean;
|
|
2062
|
+
precision: number;
|
|
2063
|
+
};
|
|
2064
|
+
payAssetInfo: {
|
|
2065
|
+
symbol: string;
|
|
2066
|
+
id: string;
|
|
2067
|
+
name: string;
|
|
2068
|
+
code: string;
|
|
2069
|
+
isActive: boolean;
|
|
2070
|
+
precision: number;
|
|
2071
|
+
};
|
|
2072
|
+
defaultReceiveAccountTypeInfo: {
|
|
2073
|
+
id: string;
|
|
2074
|
+
name: string;
|
|
2075
|
+
key: string;
|
|
2076
|
+
isActive: boolean;
|
|
2077
|
+
};
|
|
1658
2078
|
}[];
|
|
1659
2079
|
pagination: {
|
|
1660
2080
|
total: number;
|
|
@@ -1686,18 +2106,38 @@ declare const app: Elysia<"/api", {
|
|
|
1686
2106
|
body: {};
|
|
1687
2107
|
params: {};
|
|
1688
2108
|
query: {
|
|
2109
|
+
id?: string | undefined;
|
|
1689
2110
|
userId?: string | undefined;
|
|
1690
2111
|
status?: "created" | "completed" | "failed" | undefined;
|
|
2112
|
+
idempotencyKey?: string | undefined;
|
|
2113
|
+
orderNo?: string | undefined;
|
|
1691
2114
|
productId?: string | undefined;
|
|
2115
|
+
sourcePayAccountId?: string | undefined;
|
|
2116
|
+
receiveAccountId?: string | undefined;
|
|
2117
|
+
failureCode?: string | null | undefined;
|
|
1692
2118
|
limit?: number | undefined;
|
|
1693
2119
|
offset?: number | undefined;
|
|
1694
2120
|
pageSize?: number | undefined;
|
|
1695
2121
|
pageIndex?: number | undefined;
|
|
2122
|
+
createdAtStart?: Date | undefined;
|
|
2123
|
+
createdAtEnd?: Date | undefined;
|
|
1696
2124
|
};
|
|
1697
2125
|
headers: {};
|
|
1698
2126
|
response: {
|
|
1699
2127
|
200: {
|
|
1700
2128
|
data: {
|
|
2129
|
+
debitLedgerEntryInfo?: {
|
|
2130
|
+
id: string;
|
|
2131
|
+
createdAt: Date;
|
|
2132
|
+
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";
|
|
2133
|
+
amount: string;
|
|
2134
|
+
} | undefined;
|
|
2135
|
+
creditLedgerEntryInfo?: {
|
|
2136
|
+
id: string;
|
|
2137
|
+
createdAt: Date;
|
|
2138
|
+
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";
|
|
2139
|
+
amount: string;
|
|
2140
|
+
} | undefined;
|
|
1701
2141
|
id: string;
|
|
1702
2142
|
createdAt: Date;
|
|
1703
2143
|
updatedAt: Date;
|
|
@@ -1720,6 +2160,56 @@ declare const app: Elysia<"/api", {
|
|
|
1720
2160
|
creditLedgerEntryId: string | null;
|
|
1721
2161
|
failureCode: string | null;
|
|
1722
2162
|
failureReason: string | null;
|
|
2163
|
+
targetAssetInfo: {
|
|
2164
|
+
symbol: string;
|
|
2165
|
+
id: string;
|
|
2166
|
+
name: string;
|
|
2167
|
+
code: string;
|
|
2168
|
+
isActive: boolean;
|
|
2169
|
+
precision: number;
|
|
2170
|
+
};
|
|
2171
|
+
payAssetInfo: {
|
|
2172
|
+
symbol: string;
|
|
2173
|
+
id: string;
|
|
2174
|
+
name: string;
|
|
2175
|
+
code: string;
|
|
2176
|
+
isActive: boolean;
|
|
2177
|
+
precision: number;
|
|
2178
|
+
};
|
|
2179
|
+
userInfo: {
|
|
2180
|
+
email: string;
|
|
2181
|
+
id: string;
|
|
2182
|
+
username: string | null;
|
|
2183
|
+
displayUsername: string | null;
|
|
2184
|
+
phoneNumber: string | null;
|
|
2185
|
+
banned: boolean | null;
|
|
2186
|
+
};
|
|
2187
|
+
productInfo: {
|
|
2188
|
+
id: string;
|
|
2189
|
+
name: string;
|
|
2190
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
2191
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2192
|
+
};
|
|
2193
|
+
quoteAssetInfo: {
|
|
2194
|
+
symbol: string;
|
|
2195
|
+
id: string;
|
|
2196
|
+
name: string;
|
|
2197
|
+
code: string;
|
|
2198
|
+
isActive: boolean;
|
|
2199
|
+
precision: number;
|
|
2200
|
+
};
|
|
2201
|
+
sourcePayAccountInfo: {
|
|
2202
|
+
id: string;
|
|
2203
|
+
status: "active" | "frozen" | "disabled";
|
|
2204
|
+
assetId: string;
|
|
2205
|
+
ledgerAccountTypeId: string;
|
|
2206
|
+
};
|
|
2207
|
+
receiveAccountInfo: {
|
|
2208
|
+
id: string;
|
|
2209
|
+
status: "active" | "frozen" | "disabled";
|
|
2210
|
+
assetId: string;
|
|
2211
|
+
ledgerAccountTypeId: string;
|
|
2212
|
+
};
|
|
1723
2213
|
}[];
|
|
1724
2214
|
pagination: {
|
|
1725
2215
|
total: number;
|
|
@@ -1744,6 +2234,274 @@ declare const app: Elysia<"/api", {
|
|
|
1744
2234
|
};
|
|
1745
2235
|
};
|
|
1746
2236
|
};
|
|
2237
|
+
} & {
|
|
2238
|
+
asset_convert_product: {
|
|
2239
|
+
orders: {
|
|
2240
|
+
":id": {
|
|
2241
|
+
get: {
|
|
2242
|
+
body: {};
|
|
2243
|
+
params: {
|
|
2244
|
+
id: string;
|
|
2245
|
+
};
|
|
2246
|
+
query: {};
|
|
2247
|
+
headers: {};
|
|
2248
|
+
response: {
|
|
2249
|
+
200: {
|
|
2250
|
+
debitLedgerEntryInfo?: {
|
|
2251
|
+
id: string;
|
|
2252
|
+
createdAt: Date;
|
|
2253
|
+
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";
|
|
2254
|
+
amount: string;
|
|
2255
|
+
} | undefined;
|
|
2256
|
+
creditLedgerEntryInfo?: {
|
|
2257
|
+
id: string;
|
|
2258
|
+
createdAt: Date;
|
|
2259
|
+
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";
|
|
2260
|
+
amount: string;
|
|
2261
|
+
} | undefined;
|
|
2262
|
+
id: string;
|
|
2263
|
+
createdAt: Date;
|
|
2264
|
+
updatedAt: Date;
|
|
2265
|
+
userId: string;
|
|
2266
|
+
status: "created" | "completed" | "failed";
|
|
2267
|
+
idempotencyKey: string;
|
|
2268
|
+
orderNo: string;
|
|
2269
|
+
productId: string;
|
|
2270
|
+
payAssetIdSnapshot: string;
|
|
2271
|
+
targetAssetIdSnapshot: string;
|
|
2272
|
+
quoteAssetIdSnapshot: string;
|
|
2273
|
+
priceSnapshot: string;
|
|
2274
|
+
priceEffectiveAtSnapshot: Date;
|
|
2275
|
+
payAmount: string;
|
|
2276
|
+
sourcePayAccountId: string;
|
|
2277
|
+
targetAmount: string;
|
|
2278
|
+
settlementModeSnapshot: "available" | "locked";
|
|
2279
|
+
receiveAccountId: string;
|
|
2280
|
+
debitLedgerEntryId: string | null;
|
|
2281
|
+
creditLedgerEntryId: string | null;
|
|
2282
|
+
failureCode: string | null;
|
|
2283
|
+
failureReason: string | null;
|
|
2284
|
+
targetAssetInfo: {
|
|
2285
|
+
symbol: string;
|
|
2286
|
+
id: string;
|
|
2287
|
+
name: string;
|
|
2288
|
+
code: string;
|
|
2289
|
+
isActive: boolean;
|
|
2290
|
+
precision: number;
|
|
2291
|
+
};
|
|
2292
|
+
payAssetInfo: {
|
|
2293
|
+
symbol: string;
|
|
2294
|
+
id: string;
|
|
2295
|
+
name: string;
|
|
2296
|
+
code: string;
|
|
2297
|
+
isActive: boolean;
|
|
2298
|
+
precision: number;
|
|
2299
|
+
};
|
|
2300
|
+
userInfo: {
|
|
2301
|
+
email: string;
|
|
2302
|
+
id: string;
|
|
2303
|
+
username: string | null;
|
|
2304
|
+
displayUsername: string | null;
|
|
2305
|
+
phoneNumber: string | null;
|
|
2306
|
+
banned: boolean | null;
|
|
2307
|
+
};
|
|
2308
|
+
productInfo: {
|
|
2309
|
+
id: string;
|
|
2310
|
+
name: string;
|
|
2311
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
2312
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2313
|
+
};
|
|
2314
|
+
quoteAssetInfo: {
|
|
2315
|
+
symbol: string;
|
|
2316
|
+
id: string;
|
|
2317
|
+
name: string;
|
|
2318
|
+
code: string;
|
|
2319
|
+
isActive: boolean;
|
|
2320
|
+
precision: number;
|
|
2321
|
+
};
|
|
2322
|
+
sourcePayAccountInfo: {
|
|
2323
|
+
id: string;
|
|
2324
|
+
status: "active" | "frozen" | "disabled";
|
|
2325
|
+
assetId: string;
|
|
2326
|
+
ledgerAccountTypeId: string;
|
|
2327
|
+
};
|
|
2328
|
+
receiveAccountInfo: {
|
|
2329
|
+
id: string;
|
|
2330
|
+
status: "active" | "frozen" | "disabled";
|
|
2331
|
+
assetId: string;
|
|
2332
|
+
ledgerAccountTypeId: string;
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
422: {
|
|
2336
|
+
type: "validation";
|
|
2337
|
+
on: string;
|
|
2338
|
+
summary?: string;
|
|
2339
|
+
message?: string;
|
|
2340
|
+
found?: unknown;
|
|
2341
|
+
property?: string;
|
|
2342
|
+
expected?: string;
|
|
2343
|
+
};
|
|
2344
|
+
401: "Unauthorized";
|
|
2345
|
+
403: "Forbidden: Admins only";
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2349
|
+
};
|
|
2350
|
+
};
|
|
2351
|
+
} & {
|
|
2352
|
+
asset_convert_product: {
|
|
2353
|
+
orders: {
|
|
2354
|
+
"by-order-no": {
|
|
2355
|
+
":orderNo": {
|
|
2356
|
+
get: {
|
|
2357
|
+
body: {};
|
|
2358
|
+
params: {
|
|
2359
|
+
orderNo: string;
|
|
2360
|
+
};
|
|
2361
|
+
query: {};
|
|
2362
|
+
headers: {};
|
|
2363
|
+
response: {
|
|
2364
|
+
200: {
|
|
2365
|
+
debitLedgerEntryInfo?: {
|
|
2366
|
+
id: string;
|
|
2367
|
+
createdAt: Date;
|
|
2368
|
+
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";
|
|
2369
|
+
amount: string;
|
|
2370
|
+
} | undefined;
|
|
2371
|
+
creditLedgerEntryInfo?: {
|
|
2372
|
+
id: string;
|
|
2373
|
+
createdAt: Date;
|
|
2374
|
+
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";
|
|
2375
|
+
amount: string;
|
|
2376
|
+
} | undefined;
|
|
2377
|
+
id: string;
|
|
2378
|
+
createdAt: Date;
|
|
2379
|
+
updatedAt: Date;
|
|
2380
|
+
userId: string;
|
|
2381
|
+
status: "created" | "completed" | "failed";
|
|
2382
|
+
idempotencyKey: string;
|
|
2383
|
+
orderNo: string;
|
|
2384
|
+
productId: string;
|
|
2385
|
+
payAssetIdSnapshot: string;
|
|
2386
|
+
targetAssetIdSnapshot: string;
|
|
2387
|
+
quoteAssetIdSnapshot: string;
|
|
2388
|
+
priceSnapshot: string;
|
|
2389
|
+
priceEffectiveAtSnapshot: Date;
|
|
2390
|
+
payAmount: string;
|
|
2391
|
+
sourcePayAccountId: string;
|
|
2392
|
+
targetAmount: string;
|
|
2393
|
+
settlementModeSnapshot: "available" | "locked";
|
|
2394
|
+
receiveAccountId: string;
|
|
2395
|
+
debitLedgerEntryId: string | null;
|
|
2396
|
+
creditLedgerEntryId: string | null;
|
|
2397
|
+
failureCode: string | null;
|
|
2398
|
+
failureReason: string | null;
|
|
2399
|
+
targetAssetInfo: {
|
|
2400
|
+
symbol: string;
|
|
2401
|
+
id: string;
|
|
2402
|
+
name: string;
|
|
2403
|
+
code: string;
|
|
2404
|
+
isActive: boolean;
|
|
2405
|
+
precision: number;
|
|
2406
|
+
};
|
|
2407
|
+
payAssetInfo: {
|
|
2408
|
+
symbol: string;
|
|
2409
|
+
id: string;
|
|
2410
|
+
name: string;
|
|
2411
|
+
code: string;
|
|
2412
|
+
isActive: boolean;
|
|
2413
|
+
precision: number;
|
|
2414
|
+
};
|
|
2415
|
+
userInfo: {
|
|
2416
|
+
email: string;
|
|
2417
|
+
id: string;
|
|
2418
|
+
username: string | null;
|
|
2419
|
+
displayUsername: string | null;
|
|
2420
|
+
phoneNumber: string | null;
|
|
2421
|
+
banned: boolean | null;
|
|
2422
|
+
};
|
|
2423
|
+
productInfo: {
|
|
2424
|
+
id: string;
|
|
2425
|
+
name: string;
|
|
2426
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
2427
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2428
|
+
};
|
|
2429
|
+
quoteAssetInfo: {
|
|
2430
|
+
symbol: string;
|
|
2431
|
+
id: string;
|
|
2432
|
+
name: string;
|
|
2433
|
+
code: string;
|
|
2434
|
+
isActive: boolean;
|
|
2435
|
+
precision: number;
|
|
2436
|
+
};
|
|
2437
|
+
sourcePayAccountInfo: {
|
|
2438
|
+
id: string;
|
|
2439
|
+
status: "active" | "frozen" | "disabled";
|
|
2440
|
+
assetId: string;
|
|
2441
|
+
ledgerAccountTypeId: string;
|
|
2442
|
+
};
|
|
2443
|
+
receiveAccountInfo: {
|
|
2444
|
+
id: string;
|
|
2445
|
+
status: "active" | "frozen" | "disabled";
|
|
2446
|
+
assetId: string;
|
|
2447
|
+
ledgerAccountTypeId: string;
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
422: {
|
|
2451
|
+
type: "validation";
|
|
2452
|
+
on: string;
|
|
2453
|
+
summary?: string;
|
|
2454
|
+
message?: string;
|
|
2455
|
+
found?: unknown;
|
|
2456
|
+
property?: string;
|
|
2457
|
+
expected?: string;
|
|
2458
|
+
};
|
|
2459
|
+
401: "Unauthorized";
|
|
2460
|
+
403: "Forbidden: Admins only";
|
|
2461
|
+
};
|
|
2462
|
+
};
|
|
2463
|
+
};
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
};
|
|
2467
|
+
} & {
|
|
2468
|
+
asset_convert_product: {
|
|
2469
|
+
orders: {
|
|
2470
|
+
stats: {
|
|
2471
|
+
get: {
|
|
2472
|
+
body: {};
|
|
2473
|
+
params: {};
|
|
2474
|
+
query: {
|
|
2475
|
+
productId?: string | undefined;
|
|
2476
|
+
createdAtStart?: Date | undefined;
|
|
2477
|
+
createdAtEnd?: Date | undefined;
|
|
2478
|
+
};
|
|
2479
|
+
headers: {};
|
|
2480
|
+
response: {
|
|
2481
|
+
200: {
|
|
2482
|
+
totalCount: number;
|
|
2483
|
+
createdCount: number;
|
|
2484
|
+
completedCount: number;
|
|
2485
|
+
failedCount: number;
|
|
2486
|
+
totalPayAmount: string;
|
|
2487
|
+
totalTargetAmount: string;
|
|
2488
|
+
};
|
|
2489
|
+
422: {
|
|
2490
|
+
type: "validation";
|
|
2491
|
+
on: string;
|
|
2492
|
+
summary?: string;
|
|
2493
|
+
message?: string;
|
|
2494
|
+
found?: unknown;
|
|
2495
|
+
property?: string;
|
|
2496
|
+
expected?: string;
|
|
2497
|
+
};
|
|
2498
|
+
401: "Unauthorized";
|
|
2499
|
+
403: "Forbidden: Admins only";
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2504
|
+
};
|
|
1747
2505
|
};
|
|
1748
2506
|
} & {
|
|
1749
2507
|
admin: {
|
|
@@ -1754,13 +2512,15 @@ declare const app: Elysia<"/api", {
|
|
|
1754
2512
|
body: {};
|
|
1755
2513
|
params: {};
|
|
1756
2514
|
query: {
|
|
2515
|
+
id?: string | undefined;
|
|
1757
2516
|
name?: string | undefined;
|
|
1758
|
-
key?:
|
|
2517
|
+
key?: string | undefined;
|
|
1759
2518
|
isActive?: boolean | undefined;
|
|
1760
2519
|
limit?: number | undefined;
|
|
1761
2520
|
offset?: number | undefined;
|
|
1762
2521
|
pageSize?: number | undefined;
|
|
1763
2522
|
pageIndex?: number | undefined;
|
|
2523
|
+
keyword?: string | undefined;
|
|
1764
2524
|
};
|
|
1765
2525
|
headers: {};
|
|
1766
2526
|
response: {
|
|
@@ -1768,8 +2528,10 @@ declare const app: Elysia<"/api", {
|
|
|
1768
2528
|
data: {
|
|
1769
2529
|
id: string;
|
|
1770
2530
|
name: string;
|
|
2531
|
+
createdAt: Date;
|
|
2532
|
+
updatedAt: Date;
|
|
1771
2533
|
description: string | null;
|
|
1772
|
-
key:
|
|
2534
|
+
key: string;
|
|
1773
2535
|
isGasAsset: boolean;
|
|
1774
2536
|
isActive: boolean;
|
|
1775
2537
|
}[];
|
|
@@ -1812,7 +2574,7 @@ declare const app: Elysia<"/api", {
|
|
|
1812
2574
|
createdAt: Date;
|
|
1813
2575
|
updatedAt: Date;
|
|
1814
2576
|
description: string | null;
|
|
1815
|
-
key:
|
|
2577
|
+
key: string;
|
|
1816
2578
|
isGasAsset: boolean;
|
|
1817
2579
|
isActive: boolean;
|
|
1818
2580
|
};
|
|
@@ -1831,15 +2593,53 @@ declare const app: Elysia<"/api", {
|
|
|
1831
2593
|
};
|
|
1832
2594
|
};
|
|
1833
2595
|
};
|
|
2596
|
+
} & {
|
|
2597
|
+
asset_types: {
|
|
2598
|
+
post: {
|
|
2599
|
+
body: {
|
|
2600
|
+
description?: string | null | undefined;
|
|
2601
|
+
isGasAsset?: boolean | undefined;
|
|
2602
|
+
isActive?: boolean | undefined;
|
|
2603
|
+
name: string;
|
|
2604
|
+
key: string;
|
|
2605
|
+
};
|
|
2606
|
+
params: {};
|
|
2607
|
+
query: {};
|
|
2608
|
+
headers: {};
|
|
2609
|
+
response: {
|
|
2610
|
+
200: {
|
|
2611
|
+
id: string;
|
|
2612
|
+
name: string;
|
|
2613
|
+
createdAt: Date;
|
|
2614
|
+
updatedAt: Date;
|
|
2615
|
+
description: string | null;
|
|
2616
|
+
key: string;
|
|
2617
|
+
isGasAsset: boolean;
|
|
2618
|
+
isActive: boolean;
|
|
2619
|
+
};
|
|
2620
|
+
422: {
|
|
2621
|
+
type: "validation";
|
|
2622
|
+
on: string;
|
|
2623
|
+
summary?: string;
|
|
2624
|
+
message?: string;
|
|
2625
|
+
found?: unknown;
|
|
2626
|
+
property?: string;
|
|
2627
|
+
expected?: string;
|
|
2628
|
+
};
|
|
2629
|
+
401: "Unauthorized";
|
|
2630
|
+
403: "Forbidden: Admins only";
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
1834
2634
|
} & {
|
|
1835
2635
|
asset_types: {
|
|
1836
2636
|
":id": {
|
|
1837
2637
|
patch: {
|
|
1838
2638
|
body: {
|
|
2639
|
+
name?: string | undefined;
|
|
1839
2640
|
description?: string | null | undefined;
|
|
1840
2641
|
isGasAsset?: boolean | undefined;
|
|
1841
2642
|
isActive?: boolean | undefined;
|
|
1842
|
-
name: string;
|
|
1843
2643
|
};
|
|
1844
2644
|
params: {
|
|
1845
2645
|
id: string;
|
|
@@ -1848,15 +2648,15 @@ declare const app: Elysia<"/api", {
|
|
|
1848
2648
|
headers: {};
|
|
1849
2649
|
response: {
|
|
1850
2650
|
200: {
|
|
1851
|
-
createdAt: Date;
|
|
1852
|
-
updatedAt: Date;
|
|
1853
2651
|
id: string;
|
|
1854
|
-
key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
|
|
1855
2652
|
name: string;
|
|
2653
|
+
createdAt: Date;
|
|
2654
|
+
updatedAt: Date;
|
|
1856
2655
|
description: string | null;
|
|
2656
|
+
key: string;
|
|
1857
2657
|
isGasAsset: boolean;
|
|
1858
2658
|
isActive: boolean;
|
|
1859
|
-
}
|
|
2659
|
+
};
|
|
1860
2660
|
422: {
|
|
1861
2661
|
type: "validation";
|
|
1862
2662
|
on: string;
|
|
@@ -1978,6 +2778,49 @@ declare const app: Elysia<"/api", {
|
|
|
1978
2778
|
};
|
|
1979
2779
|
};
|
|
1980
2780
|
};
|
|
2781
|
+
} & {
|
|
2782
|
+
wallet_types: {
|
|
2783
|
+
":key": {
|
|
2784
|
+
get: {
|
|
2785
|
+
body: {};
|
|
2786
|
+
params: {
|
|
2787
|
+
key: string;
|
|
2788
|
+
};
|
|
2789
|
+
query: {};
|
|
2790
|
+
headers: {};
|
|
2791
|
+
response: {
|
|
2792
|
+
200: {
|
|
2793
|
+
id: string;
|
|
2794
|
+
name: string;
|
|
2795
|
+
createdAt: Date;
|
|
2796
|
+
updatedAt: Date;
|
|
2797
|
+
key: string;
|
|
2798
|
+
isActive: boolean;
|
|
2799
|
+
sortOrder: number;
|
|
2800
|
+
isSingleton: boolean;
|
|
2801
|
+
allowedLedgerAccountTypes: {
|
|
2802
|
+
id: string;
|
|
2803
|
+
name: string;
|
|
2804
|
+
description: string | null;
|
|
2805
|
+
key: string;
|
|
2806
|
+
isActive: boolean;
|
|
2807
|
+
}[];
|
|
2808
|
+
};
|
|
2809
|
+
422: {
|
|
2810
|
+
type: "validation";
|
|
2811
|
+
on: string;
|
|
2812
|
+
summary?: string;
|
|
2813
|
+
message?: string;
|
|
2814
|
+
found?: unknown;
|
|
2815
|
+
property?: string;
|
|
2816
|
+
expected?: string;
|
|
2817
|
+
};
|
|
2818
|
+
401: "Unauthorized";
|
|
2819
|
+
403: "Forbidden: Admins only";
|
|
2820
|
+
};
|
|
2821
|
+
};
|
|
2822
|
+
};
|
|
2823
|
+
};
|
|
1981
2824
|
} & {
|
|
1982
2825
|
wallet_types: {
|
|
1983
2826
|
":key": {
|
|
@@ -2027,6 +2870,96 @@ declare const app: Elysia<"/api", {
|
|
|
2027
2870
|
};
|
|
2028
2871
|
};
|
|
2029
2872
|
};
|
|
2873
|
+
} & {
|
|
2874
|
+
wallet_types: {
|
|
2875
|
+
":key": {
|
|
2876
|
+
enable: {
|
|
2877
|
+
post: {
|
|
2878
|
+
body: {};
|
|
2879
|
+
params: {
|
|
2880
|
+
key: string;
|
|
2881
|
+
};
|
|
2882
|
+
query: {};
|
|
2883
|
+
headers: {};
|
|
2884
|
+
response: {
|
|
2885
|
+
200: {
|
|
2886
|
+
id: string;
|
|
2887
|
+
name: string;
|
|
2888
|
+
createdAt: Date;
|
|
2889
|
+
updatedAt: Date;
|
|
2890
|
+
key: string;
|
|
2891
|
+
isActive: boolean;
|
|
2892
|
+
sortOrder: number;
|
|
2893
|
+
isSingleton: boolean;
|
|
2894
|
+
allowedLedgerAccountTypes: {
|
|
2895
|
+
id: string;
|
|
2896
|
+
name: string;
|
|
2897
|
+
description: string | null;
|
|
2898
|
+
key: string;
|
|
2899
|
+
isActive: boolean;
|
|
2900
|
+
}[];
|
|
2901
|
+
};
|
|
2902
|
+
422: {
|
|
2903
|
+
type: "validation";
|
|
2904
|
+
on: string;
|
|
2905
|
+
summary?: string;
|
|
2906
|
+
message?: string;
|
|
2907
|
+
found?: unknown;
|
|
2908
|
+
property?: string;
|
|
2909
|
+
expected?: string;
|
|
2910
|
+
};
|
|
2911
|
+
401: "Unauthorized";
|
|
2912
|
+
403: "Forbidden: Admins only";
|
|
2913
|
+
};
|
|
2914
|
+
};
|
|
2915
|
+
};
|
|
2916
|
+
};
|
|
2917
|
+
};
|
|
2918
|
+
} & {
|
|
2919
|
+
wallet_types: {
|
|
2920
|
+
":key": {
|
|
2921
|
+
disable: {
|
|
2922
|
+
post: {
|
|
2923
|
+
body: {};
|
|
2924
|
+
params: {
|
|
2925
|
+
key: string;
|
|
2926
|
+
};
|
|
2927
|
+
query: {};
|
|
2928
|
+
headers: {};
|
|
2929
|
+
response: {
|
|
2930
|
+
200: {
|
|
2931
|
+
id: string;
|
|
2932
|
+
name: string;
|
|
2933
|
+
createdAt: Date;
|
|
2934
|
+
updatedAt: Date;
|
|
2935
|
+
key: string;
|
|
2936
|
+
isActive: boolean;
|
|
2937
|
+
sortOrder: number;
|
|
2938
|
+
isSingleton: boolean;
|
|
2939
|
+
allowedLedgerAccountTypes: {
|
|
2940
|
+
id: string;
|
|
2941
|
+
name: string;
|
|
2942
|
+
description: string | null;
|
|
2943
|
+
key: string;
|
|
2944
|
+
isActive: boolean;
|
|
2945
|
+
}[];
|
|
2946
|
+
};
|
|
2947
|
+
422: {
|
|
2948
|
+
type: "validation";
|
|
2949
|
+
on: string;
|
|
2950
|
+
summary?: string;
|
|
2951
|
+
message?: string;
|
|
2952
|
+
found?: unknown;
|
|
2953
|
+
property?: string;
|
|
2954
|
+
expected?: string;
|
|
2955
|
+
};
|
|
2956
|
+
401: "Unauthorized";
|
|
2957
|
+
403: "Forbidden: Admins only";
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2030
2963
|
};
|
|
2031
2964
|
} & {
|
|
2032
2965
|
admin: {
|
|
@@ -2043,6 +2976,7 @@ declare const app: Elysia<"/api", {
|
|
|
2043
2976
|
offset?: number | undefined;
|
|
2044
2977
|
pageSize?: number | undefined;
|
|
2045
2978
|
pageIndex?: number | undefined;
|
|
2979
|
+
walletId?: string | undefined;
|
|
2046
2980
|
walletTypeKey?: string | undefined;
|
|
2047
2981
|
};
|
|
2048
2982
|
headers: {};
|
|
@@ -2067,6 +3001,15 @@ declare const app: Elysia<"/api", {
|
|
|
2067
3001
|
sortOrder: number;
|
|
2068
3002
|
isSingleton: boolean;
|
|
2069
3003
|
};
|
|
3004
|
+
userInfo: {
|
|
3005
|
+
email: string;
|
|
3006
|
+
id: string;
|
|
3007
|
+
username: string | null;
|
|
3008
|
+
displayUsername: string | null;
|
|
3009
|
+
phoneNumber: string | null;
|
|
3010
|
+
role: string | null;
|
|
3011
|
+
banned: boolean | null;
|
|
3012
|
+
};
|
|
2070
3013
|
}[];
|
|
2071
3014
|
pagination: {
|
|
2072
3015
|
total: number;
|
|
@@ -2090,6 +3033,61 @@ declare const app: Elysia<"/api", {
|
|
|
2090
3033
|
};
|
|
2091
3034
|
};
|
|
2092
3035
|
};
|
|
3036
|
+
} & {
|
|
3037
|
+
wallets: {
|
|
3038
|
+
":id": {
|
|
3039
|
+
get: {
|
|
3040
|
+
body: {};
|
|
3041
|
+
params: {
|
|
3042
|
+
id: string;
|
|
3043
|
+
};
|
|
3044
|
+
query: {};
|
|
3045
|
+
headers: {};
|
|
3046
|
+
response: {
|
|
3047
|
+
200: {
|
|
3048
|
+
id: string;
|
|
3049
|
+
name: string;
|
|
3050
|
+
createdAt: Date;
|
|
3051
|
+
updatedAt: Date;
|
|
3052
|
+
userId: string;
|
|
3053
|
+
isActive: boolean;
|
|
3054
|
+
walletTypeId: string;
|
|
3055
|
+
isPrimary: boolean;
|
|
3056
|
+
walletType: {
|
|
3057
|
+
id: string;
|
|
3058
|
+
name: string;
|
|
3059
|
+
createdAt: Date;
|
|
3060
|
+
updatedAt: Date;
|
|
3061
|
+
key: string;
|
|
3062
|
+
isActive: boolean;
|
|
3063
|
+
sortOrder: number;
|
|
3064
|
+
isSingleton: boolean;
|
|
3065
|
+
};
|
|
3066
|
+
userInfo: {
|
|
3067
|
+
email: string;
|
|
3068
|
+
id: string;
|
|
3069
|
+
username: string | null;
|
|
3070
|
+
displayUsername: string | null;
|
|
3071
|
+
phoneNumber: string | null;
|
|
3072
|
+
role: string | null;
|
|
3073
|
+
banned: boolean | null;
|
|
3074
|
+
};
|
|
3075
|
+
};
|
|
3076
|
+
422: {
|
|
3077
|
+
type: "validation";
|
|
3078
|
+
on: string;
|
|
3079
|
+
summary?: string;
|
|
3080
|
+
message?: string;
|
|
3081
|
+
found?: unknown;
|
|
3082
|
+
property?: string;
|
|
3083
|
+
expected?: string;
|
|
3084
|
+
};
|
|
3085
|
+
401: "Unauthorized";
|
|
3086
|
+
403: "Forbidden: Admins only";
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
2093
3091
|
};
|
|
2094
3092
|
} & {
|
|
2095
3093
|
admin: {
|
|
@@ -2553,8 +3551,8 @@ declare const app: Elysia<"/api", {
|
|
|
2553
3551
|
response: {
|
|
2554
3552
|
200: {
|
|
2555
3553
|
totalCount: number;
|
|
2556
|
-
successCount: number;
|
|
2557
3554
|
failedCount: number;
|
|
3555
|
+
successCount: number;
|
|
2558
3556
|
results: {
|
|
2559
3557
|
accountId?: string | undefined;
|
|
2560
3558
|
ledgerEntryId?: string | undefined;
|
|
@@ -3038,7 +4036,6 @@ declare const app: Elysia<"/api", {
|
|
|
3038
4036
|
twoFactorEnabled: boolean | null;
|
|
3039
4037
|
username: string | null;
|
|
3040
4038
|
displayUsername: string | null;
|
|
3041
|
-
isAnonymous: boolean | null;
|
|
3042
4039
|
phoneNumber: string | null;
|
|
3043
4040
|
phoneNumberVerified: boolean | null;
|
|
3044
4041
|
role: string | null;
|
|
@@ -3948,7 +4945,6 @@ declare const app: Elysia<"/api", {
|
|
|
3948
4945
|
twoFactorEnabled: boolean | null;
|
|
3949
4946
|
username: string | null;
|
|
3950
4947
|
displayUsername: string | null;
|
|
3951
|
-
isAnonymous: boolean | null;
|
|
3952
4948
|
phoneNumber: string | null;
|
|
3953
4949
|
phoneNumberVerified: boolean | null;
|
|
3954
4950
|
role: string | null;
|
|
@@ -4677,7 +5673,6 @@ declare const app: Elysia<"/api", {
|
|
|
4677
5673
|
twoFactorEnabled: boolean | null;
|
|
4678
5674
|
username: string | null;
|
|
4679
5675
|
displayUsername: string | null;
|
|
4680
|
-
isAnonymous: boolean | null;
|
|
4681
5676
|
phoneNumber: string | null;
|
|
4682
5677
|
phoneNumberVerified: boolean | null;
|
|
4683
5678
|
role: string | null;
|
|
@@ -4973,7 +5968,6 @@ declare const app: Elysia<"/api", {
|
|
|
4973
5968
|
twoFactorEnabled: boolean | null;
|
|
4974
5969
|
username: string | null;
|
|
4975
5970
|
displayUsername: string | null;
|
|
4976
|
-
isAnonymous: boolean | null;
|
|
4977
5971
|
phoneNumber: string | null;
|
|
4978
5972
|
phoneNumberVerified: boolean | null;
|
|
4979
5973
|
role: string | null;
|
|
@@ -6998,7 +7992,6 @@ declare const app: Elysia<"/api", {
|
|
|
6998
7992
|
twoFactorEnabled: boolean | null;
|
|
6999
7993
|
username: string | null;
|
|
7000
7994
|
displayUsername: string | null;
|
|
7001
|
-
isAnonymous: boolean | null;
|
|
7002
7995
|
phoneNumber: string | null;
|
|
7003
7996
|
phoneNumberVerified: boolean | null;
|
|
7004
7997
|
role: string | null;
|
|
@@ -7093,7 +8086,6 @@ declare const app: Elysia<"/api", {
|
|
|
7093
8086
|
twoFactorEnabled: boolean | null;
|
|
7094
8087
|
username: string | null;
|
|
7095
8088
|
displayUsername: string | null;
|
|
7096
|
-
isAnonymous: boolean | null;
|
|
7097
8089
|
phoneNumber: string | null;
|
|
7098
8090
|
phoneNumberVerified: boolean | null;
|
|
7099
8091
|
role: string | null;
|
|
@@ -7180,7 +8172,6 @@ declare const app: Elysia<"/api", {
|
|
|
7180
8172
|
twoFactorEnabled: boolean | null;
|
|
7181
8173
|
username: string | null;
|
|
7182
8174
|
displayUsername: string | null;
|
|
7183
|
-
isAnonymous: boolean | null;
|
|
7184
8175
|
phoneNumber: string | null;
|
|
7185
8176
|
phoneNumberVerified: boolean | null;
|
|
7186
8177
|
role: string | null;
|
|
@@ -7217,7 +8208,6 @@ declare const app: Elysia<"/api", {
|
|
|
7217
8208
|
twoFactorEnabled?: boolean | null | undefined;
|
|
7218
8209
|
username?: string | null | undefined;
|
|
7219
8210
|
displayUsername?: string | null | undefined;
|
|
7220
|
-
isAnonymous?: boolean | null | undefined;
|
|
7221
8211
|
phoneNumber?: string | null | undefined;
|
|
7222
8212
|
phoneNumberVerified?: boolean | null | undefined;
|
|
7223
8213
|
role?: string | null | undefined;
|
|
@@ -7285,7 +8275,6 @@ declare const app: Elysia<"/api", {
|
|
|
7285
8275
|
twoFactorEnabled: boolean | null;
|
|
7286
8276
|
username: string | null;
|
|
7287
8277
|
displayUsername: string | null;
|
|
7288
|
-
isAnonymous: boolean | null;
|
|
7289
8278
|
phoneNumber: string | null;
|
|
7290
8279
|
phoneNumberVerified: boolean | null;
|
|
7291
8280
|
role: string | null;
|
|
@@ -7706,7 +8695,6 @@ declare const app: Elysia<"/api", {
|
|
|
7706
8695
|
twoFactorEnabled: boolean | null;
|
|
7707
8696
|
username: string | null;
|
|
7708
8697
|
displayUsername: string | null;
|
|
7709
|
-
isAnonymous: boolean | null;
|
|
7710
8698
|
phoneNumber: string | null;
|
|
7711
8699
|
phoneNumberVerified: boolean | null;
|
|
7712
8700
|
role: string | null;
|
|
@@ -7764,7 +8752,6 @@ declare const app: Elysia<"/api", {
|
|
|
7764
8752
|
twoFactorEnabled: boolean | null;
|
|
7765
8753
|
username: string | null;
|
|
7766
8754
|
displayUsername: string | null;
|
|
7767
|
-
isAnonymous: boolean | null;
|
|
7768
8755
|
phoneNumber: string | null;
|
|
7769
8756
|
phoneNumberVerified: boolean | null;
|
|
7770
8757
|
role: string | null;
|
|
@@ -7772,76 +8759,313 @@ declare const app: Elysia<"/api", {
|
|
|
7772
8759
|
banReason: string | null;
|
|
7773
8760
|
banExpires: Date | null;
|
|
7774
8761
|
};
|
|
7775
|
-
createdAt: Date;
|
|
7776
|
-
updatedAt: Date;
|
|
7777
|
-
userId: string;
|
|
7778
|
-
gender: "male" | "female" | "other";
|
|
7779
|
-
uid: string;
|
|
7780
|
-
birthday: string | null;
|
|
7781
|
-
country: string | null;
|
|
7782
|
-
city: string | null;
|
|
7783
|
-
language: string | null;
|
|
7784
|
-
timezone: string | null;
|
|
7785
|
-
referralCode: string | null;
|
|
7786
|
-
referredBy: string | null;
|
|
7787
|
-
deletedAt: Date | null;
|
|
8762
|
+
createdAt: Date;
|
|
8763
|
+
updatedAt: Date;
|
|
8764
|
+
userId: string;
|
|
8765
|
+
gender: "male" | "female" | "other";
|
|
8766
|
+
uid: string;
|
|
8767
|
+
birthday: string | null;
|
|
8768
|
+
country: string | null;
|
|
8769
|
+
city: string | null;
|
|
8770
|
+
language: string | null;
|
|
8771
|
+
timezone: string | null;
|
|
8772
|
+
referralCode: string | null;
|
|
8773
|
+
referredBy: string | null;
|
|
8774
|
+
deletedAt: Date | null;
|
|
8775
|
+
};
|
|
8776
|
+
422: {
|
|
8777
|
+
type: "validation";
|
|
8778
|
+
on: string;
|
|
8779
|
+
summary?: string;
|
|
8780
|
+
message?: string;
|
|
8781
|
+
found?: unknown;
|
|
8782
|
+
property?: string;
|
|
8783
|
+
expected?: string;
|
|
8784
|
+
};
|
|
8785
|
+
401: "Unauthorized";
|
|
8786
|
+
};
|
|
8787
|
+
};
|
|
8788
|
+
};
|
|
8789
|
+
};
|
|
8790
|
+
} & {
|
|
8791
|
+
user: {
|
|
8792
|
+
profile: {
|
|
8793
|
+
put: {
|
|
8794
|
+
body: {
|
|
8795
|
+
gender?: "male" | "female" | "other" | undefined;
|
|
8796
|
+
birthday?: string | null | undefined;
|
|
8797
|
+
country?: string | null | undefined;
|
|
8798
|
+
city?: string | null | undefined;
|
|
8799
|
+
language?: string | null | undefined;
|
|
8800
|
+
timezone?: string | null | undefined;
|
|
8801
|
+
referredBy?: string | null | undefined;
|
|
8802
|
+
};
|
|
8803
|
+
params: {};
|
|
8804
|
+
query: {};
|
|
8805
|
+
headers: {};
|
|
8806
|
+
response: {
|
|
8807
|
+
200: {
|
|
8808
|
+
createdAt: Date;
|
|
8809
|
+
updatedAt: Date;
|
|
8810
|
+
userId: string;
|
|
8811
|
+
gender: "male" | "female" | "other";
|
|
8812
|
+
uid: string;
|
|
8813
|
+
birthday: string | null;
|
|
8814
|
+
country: string | null;
|
|
8815
|
+
city: string | null;
|
|
8816
|
+
language: string | null;
|
|
8817
|
+
timezone: string | null;
|
|
8818
|
+
referralCode: string | null;
|
|
8819
|
+
referredBy: string | null;
|
|
8820
|
+
deletedAt: Date | null;
|
|
8821
|
+
};
|
|
8822
|
+
422: {
|
|
8823
|
+
type: "validation";
|
|
8824
|
+
on: string;
|
|
8825
|
+
summary?: string;
|
|
8826
|
+
message?: string;
|
|
8827
|
+
found?: unknown;
|
|
8828
|
+
property?: string;
|
|
8829
|
+
expected?: string;
|
|
8830
|
+
};
|
|
8831
|
+
401: "Unauthorized";
|
|
8832
|
+
};
|
|
8833
|
+
};
|
|
8834
|
+
};
|
|
8835
|
+
};
|
|
8836
|
+
};
|
|
8837
|
+
} & {
|
|
8838
|
+
api: {
|
|
8839
|
+
portfolio: {};
|
|
8840
|
+
} & {
|
|
8841
|
+
portfolio: {
|
|
8842
|
+
overview: {
|
|
8843
|
+
get: {
|
|
8844
|
+
body: {};
|
|
8845
|
+
params: {};
|
|
8846
|
+
query: {
|
|
8847
|
+
quoteAsset?: string | undefined;
|
|
8848
|
+
};
|
|
8849
|
+
headers: {};
|
|
8850
|
+
response: {
|
|
8851
|
+
200: {
|
|
8852
|
+
quoteAsset: string;
|
|
8853
|
+
overview: {
|
|
8854
|
+
totalValuation: string;
|
|
8855
|
+
};
|
|
8856
|
+
walletView: {
|
|
8857
|
+
id: string;
|
|
8858
|
+
name: string;
|
|
8859
|
+
isActive: boolean;
|
|
8860
|
+
walletTypeId: string;
|
|
8861
|
+
isPrimary: boolean;
|
|
8862
|
+
}[];
|
|
8863
|
+
accountTypeView: {
|
|
8864
|
+
id: string;
|
|
8865
|
+
name: string;
|
|
8866
|
+
key: string;
|
|
8867
|
+
accountCount: number;
|
|
8868
|
+
totalValuation: string;
|
|
8869
|
+
}[];
|
|
8870
|
+
assetView: {
|
|
8871
|
+
id: string;
|
|
8872
|
+
name: string;
|
|
8873
|
+
code: string;
|
|
8874
|
+
iconUrl: string;
|
|
8875
|
+
totalValuation: string;
|
|
8876
|
+
quantity: string;
|
|
8877
|
+
}[];
|
|
8878
|
+
};
|
|
8879
|
+
422: {
|
|
8880
|
+
type: "validation";
|
|
8881
|
+
on: string;
|
|
8882
|
+
summary?: string;
|
|
8883
|
+
message?: string;
|
|
8884
|
+
found?: unknown;
|
|
8885
|
+
property?: string;
|
|
8886
|
+
expected?: string;
|
|
8887
|
+
};
|
|
8888
|
+
401: "Unauthorized";
|
|
8889
|
+
};
|
|
8890
|
+
};
|
|
8891
|
+
};
|
|
8892
|
+
};
|
|
8893
|
+
} & {
|
|
8894
|
+
portfolio: {
|
|
8895
|
+
"account-types": {
|
|
8896
|
+
":accountTypeKey": {
|
|
8897
|
+
overview: {
|
|
8898
|
+
get: {
|
|
8899
|
+
body: {};
|
|
8900
|
+
params: {
|
|
8901
|
+
accountTypeKey: string;
|
|
8902
|
+
};
|
|
8903
|
+
query: {
|
|
8904
|
+
quoteAsset?: string | undefined;
|
|
8905
|
+
};
|
|
8906
|
+
headers: {};
|
|
8907
|
+
response: {
|
|
8908
|
+
200: {
|
|
8909
|
+
accounts: {
|
|
8910
|
+
id: string;
|
|
8911
|
+
userId: string;
|
|
8912
|
+
status: "active" | "frozen" | "disabled";
|
|
8913
|
+
asset: {
|
|
8914
|
+
id: string;
|
|
8915
|
+
name: string;
|
|
8916
|
+
code: string;
|
|
8917
|
+
iconUrl: string;
|
|
8918
|
+
};
|
|
8919
|
+
assetId: string;
|
|
8920
|
+
ledgerAccountTypeId: string;
|
|
8921
|
+
available: string;
|
|
8922
|
+
locked: string;
|
|
8923
|
+
totalValuation: string;
|
|
8924
|
+
quantity: string;
|
|
8925
|
+
accountType: {
|
|
8926
|
+
id: string;
|
|
8927
|
+
name: string;
|
|
8928
|
+
key: string;
|
|
8929
|
+
};
|
|
8930
|
+
}[];
|
|
8931
|
+
quoteAsset: string;
|
|
8932
|
+
overview: {
|
|
8933
|
+
totalValuation: string;
|
|
8934
|
+
};
|
|
8935
|
+
accountType: {
|
|
8936
|
+
id: string;
|
|
8937
|
+
name: string;
|
|
8938
|
+
key: string;
|
|
8939
|
+
};
|
|
8940
|
+
};
|
|
8941
|
+
422: {
|
|
8942
|
+
type: "validation";
|
|
8943
|
+
on: string;
|
|
8944
|
+
summary?: string;
|
|
8945
|
+
message?: string;
|
|
8946
|
+
found?: unknown;
|
|
8947
|
+
property?: string;
|
|
8948
|
+
expected?: string;
|
|
8949
|
+
};
|
|
8950
|
+
401: "Unauthorized";
|
|
8951
|
+
};
|
|
8952
|
+
};
|
|
8953
|
+
};
|
|
8954
|
+
};
|
|
8955
|
+
};
|
|
8956
|
+
};
|
|
8957
|
+
} & {
|
|
8958
|
+
portfolio: {
|
|
8959
|
+
assets: {
|
|
8960
|
+
":assetId": {
|
|
8961
|
+
overview: {
|
|
8962
|
+
get: {
|
|
8963
|
+
body: {};
|
|
8964
|
+
params: {
|
|
8965
|
+
assetId: string;
|
|
8966
|
+
};
|
|
8967
|
+
query: {
|
|
8968
|
+
quoteAsset?: string | undefined;
|
|
8969
|
+
accountTypeKey?: string | undefined;
|
|
8970
|
+
days?: number | undefined;
|
|
8971
|
+
};
|
|
8972
|
+
headers: {};
|
|
8973
|
+
response: {
|
|
8974
|
+
200: {
|
|
8975
|
+
asset: {
|
|
8976
|
+
symbol: string;
|
|
8977
|
+
id: string;
|
|
8978
|
+
name: string;
|
|
8979
|
+
code: string;
|
|
8980
|
+
iconUrl: string;
|
|
8981
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
8982
|
+
isActive: boolean;
|
|
8983
|
+
precision: number;
|
|
8984
|
+
};
|
|
8985
|
+
quoteAsset: string;
|
|
8986
|
+
totalValuation: string;
|
|
8987
|
+
quantity: string;
|
|
8988
|
+
curve: {
|
|
8989
|
+
at: Date;
|
|
8990
|
+
value: string;
|
|
8991
|
+
}[];
|
|
8992
|
+
accountDistribution: {
|
|
8993
|
+
ledgerAccountTypeId: string;
|
|
8994
|
+
ledgerAccountId: string;
|
|
8995
|
+
quantity: string;
|
|
8996
|
+
ledgerAccountTypeKey: string;
|
|
8997
|
+
ledgerAccountTypeName: string;
|
|
8998
|
+
valuation: string;
|
|
8999
|
+
proportion: string;
|
|
9000
|
+
}[];
|
|
9001
|
+
};
|
|
9002
|
+
422: {
|
|
9003
|
+
type: "validation";
|
|
9004
|
+
on: string;
|
|
9005
|
+
summary?: string;
|
|
9006
|
+
message?: string;
|
|
9007
|
+
found?: unknown;
|
|
9008
|
+
property?: string;
|
|
9009
|
+
expected?: string;
|
|
9010
|
+
};
|
|
9011
|
+
401: "Unauthorized";
|
|
9012
|
+
};
|
|
7788
9013
|
};
|
|
7789
|
-
422: {
|
|
7790
|
-
type: "validation";
|
|
7791
|
-
on: string;
|
|
7792
|
-
summary?: string;
|
|
7793
|
-
message?: string;
|
|
7794
|
-
found?: unknown;
|
|
7795
|
-
property?: string;
|
|
7796
|
-
expected?: string;
|
|
7797
|
-
};
|
|
7798
|
-
401: "Unauthorized";
|
|
7799
9014
|
};
|
|
7800
9015
|
};
|
|
7801
9016
|
};
|
|
7802
9017
|
};
|
|
7803
9018
|
} & {
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
9019
|
+
portfolio: {
|
|
9020
|
+
accounts: {
|
|
9021
|
+
":id": {
|
|
9022
|
+
overview: {
|
|
9023
|
+
get: {
|
|
9024
|
+
body: {};
|
|
9025
|
+
params: {
|
|
9026
|
+
id: string;
|
|
9027
|
+
};
|
|
9028
|
+
query: {
|
|
9029
|
+
quoteAsset?: string | undefined;
|
|
9030
|
+
};
|
|
9031
|
+
headers: {};
|
|
9032
|
+
response: {
|
|
9033
|
+
200: {
|
|
9034
|
+
quoteAsset: string;
|
|
9035
|
+
ledgerAccountType: {
|
|
9036
|
+
id: string;
|
|
9037
|
+
name: string;
|
|
9038
|
+
description: string | null;
|
|
9039
|
+
key: string;
|
|
9040
|
+
};
|
|
9041
|
+
ledgerAccount: {
|
|
9042
|
+
id: string;
|
|
9043
|
+
createdAt: Date;
|
|
9044
|
+
updatedAt: Date;
|
|
9045
|
+
userId: string;
|
|
9046
|
+
status: "active" | "frozen" | "disabled";
|
|
9047
|
+
assetId: string;
|
|
9048
|
+
ledgerAccountTypeId: string;
|
|
9049
|
+
available: string;
|
|
9050
|
+
locked: string;
|
|
9051
|
+
version: number;
|
|
9052
|
+
};
|
|
9053
|
+
overview: {
|
|
9054
|
+
totalValuation: string;
|
|
9055
|
+
};
|
|
9056
|
+
};
|
|
9057
|
+
422: {
|
|
9058
|
+
type: "validation";
|
|
9059
|
+
on: string;
|
|
9060
|
+
summary?: string;
|
|
9061
|
+
message?: string;
|
|
9062
|
+
found?: unknown;
|
|
9063
|
+
property?: string;
|
|
9064
|
+
expected?: string;
|
|
9065
|
+
};
|
|
9066
|
+
401: "Unauthorized";
|
|
9067
|
+
};
|
|
7843
9068
|
};
|
|
7844
|
-
401: "Unauthorized";
|
|
7845
9069
|
};
|
|
7846
9070
|
};
|
|
7847
9071
|
};
|
|
@@ -7858,6 +9082,7 @@ declare const app: Elysia<"/api", {
|
|
|
7858
9082
|
query: {
|
|
7859
9083
|
category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
|
|
7860
9084
|
isActive?: boolean | undefined;
|
|
9085
|
+
typeId?: string | undefined;
|
|
7861
9086
|
limit?: number | undefined;
|
|
7862
9087
|
offset?: number | undefined;
|
|
7863
9088
|
pageSize?: number | undefined;
|
|
@@ -7871,7 +9096,7 @@ declare const app: Elysia<"/api", {
|
|
|
7871
9096
|
type: {
|
|
7872
9097
|
id: string;
|
|
7873
9098
|
name: string;
|
|
7874
|
-
key:
|
|
9099
|
+
key: string;
|
|
7875
9100
|
isGasAsset: boolean;
|
|
7876
9101
|
isActive: boolean;
|
|
7877
9102
|
};
|
|
@@ -7907,83 +9132,33 @@ declare const app: Elysia<"/api", {
|
|
|
7907
9132
|
};
|
|
7908
9133
|
} & {
|
|
7909
9134
|
assets: {
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
body: {};
|
|
7913
|
-
params: {};
|
|
7914
|
-
query: {
|
|
7915
|
-
quoteAsset?: string | undefined;
|
|
7916
|
-
ledgerAccountId?: string | undefined;
|
|
7917
|
-
walletId?: string | undefined;
|
|
7918
|
-
};
|
|
7919
|
-
headers: {};
|
|
7920
|
-
response: {
|
|
7921
|
-
200: {
|
|
7922
|
-
items: {
|
|
7923
|
-
assetId: string;
|
|
7924
|
-
assetCode: string;
|
|
7925
|
-
totalValuation: string;
|
|
7926
|
-
assetName: string;
|
|
7927
|
-
quantity: string;
|
|
7928
|
-
}[];
|
|
7929
|
-
quoteAsset: string;
|
|
7930
|
-
};
|
|
7931
|
-
422: {
|
|
7932
|
-
type: "validation";
|
|
7933
|
-
on: string;
|
|
7934
|
-
summary?: string;
|
|
7935
|
-
message?: string;
|
|
7936
|
-
found?: unknown;
|
|
7937
|
-
property?: string;
|
|
7938
|
-
expected?: string;
|
|
7939
|
-
};
|
|
7940
|
-
401: "Unauthorized";
|
|
7941
|
-
};
|
|
7942
|
-
};
|
|
7943
|
-
};
|
|
7944
|
-
};
|
|
7945
|
-
} & {
|
|
7946
|
-
assets: {
|
|
7947
|
-
":assetId": {
|
|
7948
|
-
overview: {
|
|
9135
|
+
code: {
|
|
9136
|
+
":code": {
|
|
7949
9137
|
get: {
|
|
7950
9138
|
body: {};
|
|
7951
9139
|
params: {
|
|
7952
|
-
|
|
7953
|
-
};
|
|
7954
|
-
query: {
|
|
7955
|
-
quoteAsset?: string | undefined;
|
|
7956
|
-
days?: number | undefined;
|
|
9140
|
+
code: string;
|
|
7957
9141
|
};
|
|
9142
|
+
query: {};
|
|
7958
9143
|
headers: {};
|
|
7959
9144
|
response: {
|
|
7960
9145
|
200: {
|
|
7961
|
-
|
|
7962
|
-
|
|
9146
|
+
symbol: string;
|
|
9147
|
+
type: {
|
|
7963
9148
|
id: string;
|
|
7964
9149
|
name: string;
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9150
|
+
key: string;
|
|
9151
|
+
isGasAsset: boolean;
|
|
7968
9152
|
isActive: boolean;
|
|
7969
|
-
precision: number;
|
|
7970
9153
|
};
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
ledgerAccountTypeId: string;
|
|
7980
|
-
ledgerAccountId: string;
|
|
7981
|
-
quantity: string;
|
|
7982
|
-
ledgerAccountTypeKey: string;
|
|
7983
|
-
ledgerAccountTypeName: string;
|
|
7984
|
-
valuation: string;
|
|
7985
|
-
proportion: string;
|
|
7986
|
-
}[];
|
|
9154
|
+
id: string;
|
|
9155
|
+
name: string;
|
|
9156
|
+
code: string;
|
|
9157
|
+
iconUrl: string;
|
|
9158
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9159
|
+
isActive: boolean;
|
|
9160
|
+
typeId: string;
|
|
9161
|
+
precision: number;
|
|
7987
9162
|
};
|
|
7988
9163
|
422: {
|
|
7989
9164
|
type: "validation";
|
|
@@ -8000,6 +9175,49 @@ declare const app: Elysia<"/api", {
|
|
|
8000
9175
|
};
|
|
8001
9176
|
};
|
|
8002
9177
|
};
|
|
9178
|
+
} & {
|
|
9179
|
+
assets: {
|
|
9180
|
+
":id": {
|
|
9181
|
+
get: {
|
|
9182
|
+
body: {};
|
|
9183
|
+
params: {
|
|
9184
|
+
id: string;
|
|
9185
|
+
};
|
|
9186
|
+
query: {};
|
|
9187
|
+
headers: {};
|
|
9188
|
+
response: {
|
|
9189
|
+
200: {
|
|
9190
|
+
symbol: string;
|
|
9191
|
+
type: {
|
|
9192
|
+
id: string;
|
|
9193
|
+
name: string;
|
|
9194
|
+
key: string;
|
|
9195
|
+
isGasAsset: boolean;
|
|
9196
|
+
isActive: boolean;
|
|
9197
|
+
};
|
|
9198
|
+
id: string;
|
|
9199
|
+
name: string;
|
|
9200
|
+
code: string;
|
|
9201
|
+
iconUrl: string;
|
|
9202
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9203
|
+
isActive: boolean;
|
|
9204
|
+
typeId: string;
|
|
9205
|
+
precision: number;
|
|
9206
|
+
};
|
|
9207
|
+
422: {
|
|
9208
|
+
type: "validation";
|
|
9209
|
+
on: string;
|
|
9210
|
+
summary?: string;
|
|
9211
|
+
message?: string;
|
|
9212
|
+
found?: unknown;
|
|
9213
|
+
property?: string;
|
|
9214
|
+
expected?: string;
|
|
9215
|
+
};
|
|
9216
|
+
401: "Unauthorized";
|
|
9217
|
+
};
|
|
9218
|
+
};
|
|
9219
|
+
};
|
|
9220
|
+
};
|
|
8003
9221
|
};
|
|
8004
9222
|
} & {
|
|
8005
9223
|
api: {
|
|
@@ -8271,8 +9489,6 @@ declare const app: Elysia<"/api", {
|
|
|
8271
9489
|
body: {};
|
|
8272
9490
|
params: {};
|
|
8273
9491
|
query: {
|
|
8274
|
-
baseAsset?: string | undefined;
|
|
8275
|
-
quoteAsset?: string | undefined;
|
|
8276
9492
|
source?: string | undefined;
|
|
8277
9493
|
startDate?: Date | undefined;
|
|
8278
9494
|
limit?: number | undefined;
|
|
@@ -8280,6 +9496,8 @@ declare const app: Elysia<"/api", {
|
|
|
8280
9496
|
pageSize?: number | undefined;
|
|
8281
9497
|
pageIndex?: number | undefined;
|
|
8282
9498
|
endDate?: Date | undefined;
|
|
9499
|
+
baseAsset: string;
|
|
9500
|
+
quoteAsset: string;
|
|
8283
9501
|
};
|
|
8284
9502
|
headers: {};
|
|
8285
9503
|
response: {
|
|
@@ -8317,6 +9535,47 @@ declare const app: Elysia<"/api", {
|
|
|
8317
9535
|
};
|
|
8318
9536
|
};
|
|
8319
9537
|
};
|
|
9538
|
+
} & {
|
|
9539
|
+
asset_prices: {
|
|
9540
|
+
latest: {
|
|
9541
|
+
cny: {
|
|
9542
|
+
":baseAsset": {
|
|
9543
|
+
get: {
|
|
9544
|
+
body: {};
|
|
9545
|
+
params: {
|
|
9546
|
+
baseAsset: string;
|
|
9547
|
+
};
|
|
9548
|
+
query: {};
|
|
9549
|
+
headers: {};
|
|
9550
|
+
response: {
|
|
9551
|
+
200: {
|
|
9552
|
+
id: string;
|
|
9553
|
+
createdAt: Date;
|
|
9554
|
+
updatedAt: Date;
|
|
9555
|
+
baseAssetId: string;
|
|
9556
|
+
baseAsset: string;
|
|
9557
|
+
quoteAssetId: string;
|
|
9558
|
+
quoteAsset: string;
|
|
9559
|
+
price: string;
|
|
9560
|
+
source: string;
|
|
9561
|
+
effectiveAt: Date;
|
|
9562
|
+
};
|
|
9563
|
+
422: {
|
|
9564
|
+
type: "validation";
|
|
9565
|
+
on: string;
|
|
9566
|
+
summary?: string;
|
|
9567
|
+
message?: string;
|
|
9568
|
+
found?: unknown;
|
|
9569
|
+
property?: string;
|
|
9570
|
+
expected?: string;
|
|
9571
|
+
};
|
|
9572
|
+
401: "Unauthorized";
|
|
9573
|
+
};
|
|
9574
|
+
};
|
|
9575
|
+
};
|
|
9576
|
+
};
|
|
9577
|
+
};
|
|
9578
|
+
};
|
|
8320
9579
|
} & {
|
|
8321
9580
|
asset_prices: {
|
|
8322
9581
|
latest: {
|
|
@@ -8370,7 +9629,7 @@ declare const app: Elysia<"/api", {
|
|
|
8370
9629
|
params: {};
|
|
8371
9630
|
query: {
|
|
8372
9631
|
name?: string | undefined;
|
|
8373
|
-
key?:
|
|
9632
|
+
key?: string | undefined;
|
|
8374
9633
|
isActive?: boolean | undefined;
|
|
8375
9634
|
limit?: number | undefined;
|
|
8376
9635
|
offset?: number | undefined;
|
|
@@ -8384,7 +9643,7 @@ declare const app: Elysia<"/api", {
|
|
|
8384
9643
|
id: string;
|
|
8385
9644
|
name: string;
|
|
8386
9645
|
description: string | null;
|
|
8387
|
-
key:
|
|
9646
|
+
key: string;
|
|
8388
9647
|
isGasAsset: boolean;
|
|
8389
9648
|
isActive: boolean;
|
|
8390
9649
|
}[];
|
|
@@ -8527,66 +9786,6 @@ declare const app: Elysia<"/api", {
|
|
|
8527
9786
|
};
|
|
8528
9787
|
};
|
|
8529
9788
|
};
|
|
8530
|
-
} & {
|
|
8531
|
-
finance: {
|
|
8532
|
-
overview: {
|
|
8533
|
-
get: {
|
|
8534
|
-
body: {};
|
|
8535
|
-
params: {};
|
|
8536
|
-
query: {
|
|
8537
|
-
quoteAsset?: string | undefined;
|
|
8538
|
-
};
|
|
8539
|
-
headers: {};
|
|
8540
|
-
response: {
|
|
8541
|
-
200: {
|
|
8542
|
-
quoteAsset: string;
|
|
8543
|
-
overview: {
|
|
8544
|
-
totalValuation: string;
|
|
8545
|
-
};
|
|
8546
|
-
walletView: {
|
|
8547
|
-
isActive: boolean;
|
|
8548
|
-
walletTypeId: string;
|
|
8549
|
-
isPrimary: boolean;
|
|
8550
|
-
totalValuation: string;
|
|
8551
|
-
walletTypeKey: string;
|
|
8552
|
-
walletId: string;
|
|
8553
|
-
walletName: string;
|
|
8554
|
-
walletTypeName: string;
|
|
8555
|
-
}[];
|
|
8556
|
-
accountView: {
|
|
8557
|
-
status: string;
|
|
8558
|
-
assetId: string;
|
|
8559
|
-
ledgerAccountTypeId: string;
|
|
8560
|
-
assetCode: string;
|
|
8561
|
-
ledgerAccountId: string;
|
|
8562
|
-
totalValuation: string;
|
|
8563
|
-
assetName: string;
|
|
8564
|
-
quantity: string;
|
|
8565
|
-
ledgerAccountTypeKey: string;
|
|
8566
|
-
ledgerAccountTypeName: string;
|
|
8567
|
-
}[];
|
|
8568
|
-
assetView: {
|
|
8569
|
-
assetId: string;
|
|
8570
|
-
assetCode: string;
|
|
8571
|
-
totalValuation: string;
|
|
8572
|
-
assetName: string;
|
|
8573
|
-
quantity: string;
|
|
8574
|
-
}[];
|
|
8575
|
-
};
|
|
8576
|
-
422: {
|
|
8577
|
-
type: "validation";
|
|
8578
|
-
on: string;
|
|
8579
|
-
summary?: string;
|
|
8580
|
-
message?: string;
|
|
8581
|
-
found?: unknown;
|
|
8582
|
-
property?: string;
|
|
8583
|
-
expected?: string;
|
|
8584
|
-
};
|
|
8585
|
-
401: "Unauthorized";
|
|
8586
|
-
};
|
|
8587
|
-
};
|
|
8588
|
-
};
|
|
8589
|
-
};
|
|
8590
9789
|
} & {
|
|
8591
9790
|
wallets: {
|
|
8592
9791
|
":walletId": {
|
|
@@ -8629,10 +9828,10 @@ declare const app: Elysia<"/api", {
|
|
|
8629
9828
|
assetCode: string;
|
|
8630
9829
|
ledgerAccountId: string;
|
|
8631
9830
|
totalValuation: string;
|
|
8632
|
-
assetName: string;
|
|
8633
9831
|
quantity: string;
|
|
8634
9832
|
ledgerAccountTypeKey: string;
|
|
8635
9833
|
ledgerAccountTypeName: string;
|
|
9834
|
+
assetName: string;
|
|
8636
9835
|
}[];
|
|
8637
9836
|
};
|
|
8638
9837
|
422: {
|
|
@@ -8714,59 +9913,50 @@ declare const app: Elysia<"/api", {
|
|
|
8714
9913
|
};
|
|
8715
9914
|
};
|
|
8716
9915
|
};
|
|
8717
|
-
};
|
|
8718
|
-
} & {
|
|
8719
|
-
api: {
|
|
8720
|
-
ledger_accounts: {};
|
|
8721
9916
|
} & {
|
|
8722
|
-
|
|
8723
|
-
":
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
9917
|
+
ledger_account_types: {
|
|
9918
|
+
":key": {
|
|
9919
|
+
get: {
|
|
9920
|
+
body: {};
|
|
9921
|
+
params: {
|
|
9922
|
+
key: string;
|
|
9923
|
+
};
|
|
9924
|
+
query: {};
|
|
9925
|
+
headers: {};
|
|
9926
|
+
response: {
|
|
9927
|
+
200: {
|
|
8728
9928
|
id: string;
|
|
9929
|
+
name: string;
|
|
9930
|
+
description: string | null;
|
|
9931
|
+
key: string;
|
|
9932
|
+
isActive: boolean;
|
|
9933
|
+
allowDeposit: boolean;
|
|
9934
|
+
allowWithdraw: boolean;
|
|
9935
|
+
minWithdrawAmount: string;
|
|
9936
|
+
maxWithdrawAmount: string;
|
|
9937
|
+
allowTransfer: boolean;
|
|
9938
|
+
minTransferAmount: string;
|
|
9939
|
+
maxTransferAmount: string;
|
|
9940
|
+
allowInternalTransfer: boolean;
|
|
9941
|
+
allowInternalReceiveTransfer: boolean;
|
|
9942
|
+
minInternalTransferAmount: string;
|
|
9943
|
+
maxInternalTransferAmount: string;
|
|
9944
|
+
internalTransferRatio: string;
|
|
9945
|
+
allowTransaction: boolean;
|
|
9946
|
+
hasExpiry: boolean;
|
|
9947
|
+
expiryDays: number | null;
|
|
9948
|
+
sortOrder: number;
|
|
8729
9949
|
};
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
id: string;
|
|
8739
|
-
name: string;
|
|
8740
|
-
description: string | null;
|
|
8741
|
-
key: string;
|
|
8742
|
-
};
|
|
8743
|
-
ledgerAccount: {
|
|
8744
|
-
id: string;
|
|
8745
|
-
createdAt: Date;
|
|
8746
|
-
updatedAt: Date;
|
|
8747
|
-
userId: string;
|
|
8748
|
-
status: "active" | "frozen" | "disabled";
|
|
8749
|
-
assetId: string;
|
|
8750
|
-
ledgerAccountTypeId: string;
|
|
8751
|
-
available: string;
|
|
8752
|
-
locked: string;
|
|
8753
|
-
version: number;
|
|
8754
|
-
};
|
|
8755
|
-
overview: {
|
|
8756
|
-
totalValuation: string;
|
|
8757
|
-
};
|
|
8758
|
-
};
|
|
8759
|
-
422: {
|
|
8760
|
-
type: "validation";
|
|
8761
|
-
on: string;
|
|
8762
|
-
summary?: string;
|
|
8763
|
-
message?: string;
|
|
8764
|
-
found?: unknown;
|
|
8765
|
-
property?: string;
|
|
8766
|
-
expected?: string;
|
|
8767
|
-
};
|
|
8768
|
-
401: "Unauthorized";
|
|
9950
|
+
422: {
|
|
9951
|
+
type: "validation";
|
|
9952
|
+
on: string;
|
|
9953
|
+
summary?: string;
|
|
9954
|
+
message?: string;
|
|
9955
|
+
found?: unknown;
|
|
9956
|
+
property?: string;
|
|
9957
|
+
expected?: string;
|
|
8769
9958
|
};
|
|
9959
|
+
401: "Unauthorized";
|
|
8770
9960
|
};
|
|
8771
9961
|
};
|
|
8772
9962
|
};
|
|
@@ -9123,7 +10313,6 @@ declare const app: Elysia<"/api", {
|
|
|
9123
10313
|
twoFactorEnabled: boolean | null;
|
|
9124
10314
|
username: string | null;
|
|
9125
10315
|
displayUsername: string | null;
|
|
9126
|
-
isAnonymous: boolean | null;
|
|
9127
10316
|
phoneNumber: string | null;
|
|
9128
10317
|
phoneNumberVerified: boolean | null;
|
|
9129
10318
|
role: string | null;
|
|
@@ -10014,7 +11203,6 @@ declare const app: Elysia<"/api", {
|
|
|
10014
11203
|
twoFactorEnabled: boolean | null;
|
|
10015
11204
|
username: string | null;
|
|
10016
11205
|
displayUsername: string | null;
|
|
10017
|
-
isAnonymous: boolean | null;
|
|
10018
11206
|
phoneNumber: string | null;
|
|
10019
11207
|
phoneNumberVerified: boolean | null;
|
|
10020
11208
|
role: string | null;
|
|
@@ -10193,6 +11381,53 @@ declare const app: Elysia<"/api", {
|
|
|
10193
11381
|
};
|
|
10194
11382
|
};
|
|
10195
11383
|
};
|
|
11384
|
+
} & {
|
|
11385
|
+
withdraw: {
|
|
11386
|
+
direct_cny_balance: {
|
|
11387
|
+
post: {
|
|
11388
|
+
body: {
|
|
11389
|
+
amount: string;
|
|
11390
|
+
idempotencyKey: string;
|
|
11391
|
+
receiptMethodId: string;
|
|
11392
|
+
transactionPassword: string;
|
|
11393
|
+
};
|
|
11394
|
+
params: {};
|
|
11395
|
+
query: {};
|
|
11396
|
+
headers: {};
|
|
11397
|
+
response: {
|
|
11398
|
+
200: {
|
|
11399
|
+
id: string;
|
|
11400
|
+
createdAt: Date;
|
|
11401
|
+
updatedAt: Date;
|
|
11402
|
+
userId: string;
|
|
11403
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
11404
|
+
reviewedAt: Date | null;
|
|
11405
|
+
reviewedBy: string | null;
|
|
11406
|
+
assetId: string | null;
|
|
11407
|
+
amount: string;
|
|
11408
|
+
idempotencyKey: string;
|
|
11409
|
+
orderNo: string;
|
|
11410
|
+
reviewNote: string | null;
|
|
11411
|
+
sourceAccountId: string | null;
|
|
11412
|
+
receiptMethodId: string;
|
|
11413
|
+
rejectReason: string | null;
|
|
11414
|
+
paidBy: string | null;
|
|
11415
|
+
paidAt: Date | null;
|
|
11416
|
+
};
|
|
11417
|
+
422: {
|
|
11418
|
+
type: "validation";
|
|
11419
|
+
on: string;
|
|
11420
|
+
summary?: string;
|
|
11421
|
+
message?: string;
|
|
11422
|
+
found?: unknown;
|
|
11423
|
+
property?: string;
|
|
11424
|
+
expected?: string;
|
|
11425
|
+
};
|
|
11426
|
+
401: "Unauthorized";
|
|
11427
|
+
};
|
|
11428
|
+
};
|
|
11429
|
+
};
|
|
11430
|
+
};
|
|
10196
11431
|
} & {
|
|
10197
11432
|
withdraw: {
|
|
10198
11433
|
get: {
|
|
@@ -11014,7 +12249,6 @@ declare const app: Elysia<"/api", {
|
|
|
11014
12249
|
twoFactorEnabled: boolean | null;
|
|
11015
12250
|
username: string | null;
|
|
11016
12251
|
displayUsername: string | null;
|
|
11017
|
-
isAnonymous: boolean | null;
|
|
11018
12252
|
phoneNumber: string | null;
|
|
11019
12253
|
phoneNumberVerified: boolean | null;
|
|
11020
12254
|
role: string | null;
|
|
@@ -11108,7 +12342,6 @@ declare const app: Elysia<"/api", {
|
|
|
11108
12342
|
twoFactorEnabled: boolean | null;
|
|
11109
12343
|
username: string | null;
|
|
11110
12344
|
displayUsername: string | null;
|
|
11111
|
-
isAnonymous: boolean | null;
|
|
11112
12345
|
phoneNumber: string | null;
|
|
11113
12346
|
phoneNumberVerified: boolean | null;
|
|
11114
12347
|
role: string | null;
|
|
@@ -11178,7 +12411,6 @@ declare const app: Elysia<"/api", {
|
|
|
11178
12411
|
twoFactorEnabled: boolean | null;
|
|
11179
12412
|
username: string | null;
|
|
11180
12413
|
displayUsername: string | null;
|
|
11181
|
-
isAnonymous: boolean | null;
|
|
11182
12414
|
phoneNumber: string | null;
|
|
11183
12415
|
phoneNumberVerified: boolean | null;
|
|
11184
12416
|
role: string | null;
|
|
@@ -11319,7 +12551,6 @@ declare const app: Elysia<"/api", {
|
|
|
11319
12551
|
twoFactorEnabled: boolean | null;
|
|
11320
12552
|
username: string | null;
|
|
11321
12553
|
displayUsername: string | null;
|
|
11322
|
-
isAnonymous: boolean | null;
|
|
11323
12554
|
phoneNumber: string | null;
|
|
11324
12555
|
phoneNumberVerified: boolean | null;
|
|
11325
12556
|
role: string | null;
|
|
@@ -12062,57 +13293,52 @@ declare const app: Elysia<"/api", {
|
|
|
12062
13293
|
};
|
|
12063
13294
|
} & {
|
|
12064
13295
|
welfare_cycle: {
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
13296
|
+
"daily-payouts": {
|
|
13297
|
+
get: {
|
|
13298
|
+
body: {};
|
|
13299
|
+
params: {};
|
|
13300
|
+
query: {
|
|
13301
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
13302
|
+
subscriptionId?: string | undefined;
|
|
13303
|
+
limit?: number | undefined;
|
|
13304
|
+
offset?: number | undefined;
|
|
13305
|
+
pageSize?: number | undefined;
|
|
13306
|
+
pageIndex?: number | undefined;
|
|
13307
|
+
};
|
|
13308
|
+
headers: {};
|
|
13309
|
+
response: {
|
|
13310
|
+
200: {
|
|
13311
|
+
data: {
|
|
12071
13312
|
id: string;
|
|
13313
|
+
createdAt: Date;
|
|
13314
|
+
updatedAt: Date;
|
|
13315
|
+
userId: string;
|
|
13316
|
+
status: "pending" | "completed" | "failed";
|
|
13317
|
+
amount: string;
|
|
13318
|
+
idempotencyKey: string;
|
|
13319
|
+
ledgerEntryId: string | null;
|
|
13320
|
+
planId: string;
|
|
13321
|
+
subscriptionId: string;
|
|
13322
|
+
payoutDate: string;
|
|
13323
|
+
}[];
|
|
13324
|
+
pagination: {
|
|
13325
|
+
total: number;
|
|
13326
|
+
pageSize: number;
|
|
13327
|
+
pageIndex: number;
|
|
13328
|
+
totalPages: number;
|
|
13329
|
+
hasNextPage: boolean;
|
|
12072
13330
|
};
|
|
12073
|
-
query: {
|
|
12074
|
-
status?: "pending" | "completed" | "failed" | undefined;
|
|
12075
|
-
limit?: number | undefined;
|
|
12076
|
-
offset?: number | undefined;
|
|
12077
|
-
pageSize?: number | undefined;
|
|
12078
|
-
pageIndex?: number | undefined;
|
|
12079
|
-
};
|
|
12080
|
-
headers: {};
|
|
12081
|
-
response: {
|
|
12082
|
-
200: {
|
|
12083
|
-
data: {
|
|
12084
|
-
id: string;
|
|
12085
|
-
createdAt: Date;
|
|
12086
|
-
updatedAt: Date;
|
|
12087
|
-
userId: string;
|
|
12088
|
-
status: "pending" | "completed" | "failed";
|
|
12089
|
-
amount: string;
|
|
12090
|
-
idempotencyKey: string;
|
|
12091
|
-
ledgerEntryId: string | null;
|
|
12092
|
-
planId: string;
|
|
12093
|
-
subscriptionId: string;
|
|
12094
|
-
payoutDate: string;
|
|
12095
|
-
}[];
|
|
12096
|
-
pagination: {
|
|
12097
|
-
total: number;
|
|
12098
|
-
pageSize: number;
|
|
12099
|
-
pageIndex: number;
|
|
12100
|
-
totalPages: number;
|
|
12101
|
-
hasNextPage: boolean;
|
|
12102
|
-
};
|
|
12103
|
-
};
|
|
12104
|
-
422: {
|
|
12105
|
-
type: "validation";
|
|
12106
|
-
on: string;
|
|
12107
|
-
summary?: string;
|
|
12108
|
-
message?: string;
|
|
12109
|
-
found?: unknown;
|
|
12110
|
-
property?: string;
|
|
12111
|
-
expected?: string;
|
|
12112
|
-
};
|
|
12113
|
-
401: "Unauthorized";
|
|
12114
|
-
};
|
|
12115
13331
|
};
|
|
13332
|
+
422: {
|
|
13333
|
+
type: "validation";
|
|
13334
|
+
on: string;
|
|
13335
|
+
summary?: string;
|
|
13336
|
+
message?: string;
|
|
13337
|
+
found?: unknown;
|
|
13338
|
+
property?: string;
|
|
13339
|
+
expected?: string;
|
|
13340
|
+
};
|
|
13341
|
+
401: "Unauthorized";
|
|
12116
13342
|
};
|
|
12117
13343
|
};
|
|
12118
13344
|
};
|