@r2wa-org/eden 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
- package/dist/src/admin/admin/router.d.ts +10 -12
- package/dist/src/admin/admin/service.d.ts +0 -2
- package/dist/src/admin/index.d.ts +1043 -54
- package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
- package/dist/src/asset/admin/router.d.ts +123 -20
- package/dist/src/asset/admin/service.d.ts +52 -4
- package/dist/src/asset/user/dto.schemas.d.ts +7 -15
- package/dist/src/asset/user/router.d.ts +9 -9
- package/dist/src/asset/user/service.d.ts +1 -1
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
- package/dist/src/asset-convert-product/admin/router.d.ts +564 -22
- package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
- package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
- package/dist/src/asset-convert-product/permissions.d.ts +2 -2
- package/dist/src/asset-convert-product/user/router.d.ts +8 -8
- package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
- package/dist/src/asset-price/admin/router.d.ts +125 -10
- package/dist/src/asset-price/admin/service.d.ts +157 -0
- package/dist/src/asset-price/errors/index.d.ts +2 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +2 -0
- package/dist/src/asset-price/internal/service.d.ts +1 -0
- package/dist/src/asset-price/user/router.d.ts +8 -8
- package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
- package/dist/src/asset-type/admin/router.d.ts +60 -18
- package/dist/src/asset-type/admin/service.d.ts +16 -6
- package/dist/src/asset-type/db.schemas.d.ts +6 -6
- package/dist/src/asset-type/errors/index.d.ts +6 -0
- package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
- package/dist/src/asset-type/internal/service.d.ts +4 -4
- package/dist/src/asset-type/permissions.d.ts +1 -1
- package/dist/src/asset-type/schema.d.ts +3 -5
- package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
- package/dist/src/asset-type/user/router.d.ts +10 -10
- package/dist/src/asset-type/user/service.d.ts +1 -1
- package/dist/src/auth/better-auth.d.ts +706 -451
- package/dist/src/auth/db.schemas.d.ts +27 -407
- package/dist/src/auth/permissions.d.ts +20 -20
- package/dist/src/auth/roles.d.ts +60 -60
- package/dist/src/auth/router.d.ts +6 -6
- package/dist/src/auth/schema.d.ts +8 -206
- package/dist/src/bank-account/admin/router.d.ts +10 -10
- package/dist/src/bank-account/user/router.d.ts +6 -6
- package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/admin/router.d.ts +10 -11
- package/dist/src/check-in/admin/service.d.ts +0 -1
- package/dist/src/check-in/internal/service.d.ts +0 -1
- package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/user/router.d.ts +8 -9
- package/dist/src/check-in/user/service.d.ts +0 -1
- package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/admin/router.d.ts +10 -11
- package/dist/src/deposit/admin/service.d.ts +0 -2
- package/dist/src/deposit/user/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/user/router.d.ts +8 -9
- package/dist/src/deposit/user/service.d.ts +0 -2
- package/dist/src/dynamic-env/admin.router.d.ts +10 -10
- package/dist/src/env/server.d.ts +1 -1
- package/dist/src/file-storage/admin/router.d.ts +10 -10
- package/dist/src/file-storage/share/router.d.ts +8 -8
- package/dist/src/file-storage/user/router.d.ts +8 -8
- package/dist/src/index.d.ts +1161 -137
- package/dist/src/ledger/admin/router.d.ts +10 -10
- package/dist/src/ledger/user/router.d.ts +8 -8
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +11 -11
- package/dist/src/ledger-account/user/router.d.ts +8 -8
- package/dist/src/ledger-account-import/admin/router.d.ts +10 -10
- package/dist/src/ledger-account-transfer/user/router.d.ts +8 -8
- package/dist/src/ledger-account-type/admin/router.d.ts +10 -10
- package/dist/src/ledger-account-type/user/router.d.ts +8 -8
- package/dist/src/market-data/admin/router.d.ts +10 -10
- package/dist/src/market-data/user/router.d.ts +8 -8
- package/dist/src/market-pricing/admin/router.d.ts +10 -10
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/admin/router.d.ts +10 -10
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/news/user/router.d.ts +8 -8
- package/dist/src/news-category/user/router.d.ts +6 -6
- package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
- package/dist/src/notification/admin/router.d.ts +10 -10
- package/dist/src/notification/user/dto.schemas.d.ts +2 -2
- package/dist/src/notification/user/router.d.ts +8 -8
- package/dist/src/receipt-method/admin/router.d.ts +10 -10
- package/dist/src/receipt-method/user/router.d.ts +6 -6
- package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
- package/dist/src/referral/admin/router.d.ts +10 -11
- package/dist/src/referral/user/dto.schemas.d.ts +2 -36
- package/dist/src/referral/user/router.d.ts +8 -9
- package/dist/src/referral-depth-config/admin/router.d.ts +10 -10
- package/dist/src/server-test/index.d.ts +6 -6
- package/dist/src/shipping-address/admin/router.d.ts +10 -10
- package/dist/src/shipping-address/user/router.d.ts +6 -6
- package/dist/src/team/admin/dto.schemas.d.ts +2 -36
- package/dist/src/team/admin/router.d.ts +10 -11
- package/dist/src/team/user/dto.schemas.d.ts +5 -90
- package/dist/src/team/user/router.d.ts +8 -11
- package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
- package/dist/src/trade-market/admin/router.d.ts +10 -10
- package/dist/src/trade-market/user/router.d.ts +8 -8
- package/dist/src/transfer/admin/router.d.ts +10 -10
- package/dist/src/transfer/admin/service.d.ts +0 -2
- package/dist/src/transfer/user/router.d.ts +8 -8
- package/dist/src/transfer/user/service.d.ts +0 -2
- package/dist/src/user/admin/dto.schemas.d.ts +1 -21
- package/dist/src/user/admin/router.d.ts +10 -15
- package/dist/src/user/admin/service.d.ts +0 -4
- package/dist/src/user/user/router.d.ts +6 -8
- package/dist/src/user/user/service.d.ts +0 -2
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/user-kyc/admin/router.d.ts +10 -10
- package/dist/src/user-kyc/user/router.d.ts +8 -8
- package/dist/src/user-security/admin/router.d.ts +10 -10
- package/dist/src/user-security/user/router.d.ts +8 -8
- package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
- package/dist/src/wallet/admin/router.d.ts +75 -10
- package/dist/src/wallet/admin/service.d.ts +46 -8
- package/dist/src/wallet/internal/service.d.ts +118 -14
- package/dist/src/wallet/user/dto.schemas.d.ts +4 -2
- package/dist/src/wallet/user/router.d.ts +10 -9
- package/dist/src/wallet/user/service.d.ts +18 -8
- package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
- package/dist/src/wallet-type/admin/router.d.ts +143 -10
- package/dist/src/wallet-type/admin/service.d.ts +51 -0
- package/dist/src/wallet-type/errors/index.d.ts +4 -0
- package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
- package/dist/src/wallet-type/internal/service.d.ts +37 -0
- package/dist/src/wallet-type/user/router.d.ts +8 -8
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/admin/router.d.ts +10 -10
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
- package/dist/src/welfare-cycle/user/router.d.ts +51 -56
- package/dist/src/welfare-cycle/user/service.d.ts +1 -1
- package/dist/src/withdraw/admin/router.d.ts +10 -10
- package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
- package/dist/src/withdraw/user/router.d.ts +55 -8
- package/dist/src/withdraw/user/service.d.ts +20 -1
- package/package.json +1 -1
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": {
|
|
@@ -1992,37 +2835,127 @@ declare const app: Elysia<"/api", {
|
|
|
1992
2835
|
params: {
|
|
1993
2836
|
key: string;
|
|
1994
2837
|
};
|
|
1995
|
-
query: {};
|
|
1996
|
-
headers: {};
|
|
1997
|
-
response: {
|
|
1998
|
-
200: {
|
|
1999
|
-
id: string;
|
|
2000
|
-
name: string;
|
|
2001
|
-
createdAt: Date;
|
|
2002
|
-
updatedAt: Date;
|
|
2838
|
+
query: {};
|
|
2839
|
+
headers: {};
|
|
2840
|
+
response: {
|
|
2841
|
+
200: {
|
|
2842
|
+
id: string;
|
|
2843
|
+
name: string;
|
|
2844
|
+
createdAt: Date;
|
|
2845
|
+
updatedAt: Date;
|
|
2846
|
+
key: string;
|
|
2847
|
+
isActive: boolean;
|
|
2848
|
+
sortOrder: number;
|
|
2849
|
+
isSingleton: boolean;
|
|
2850
|
+
allowedLedgerAccountTypes: {
|
|
2851
|
+
id: string;
|
|
2852
|
+
name: string;
|
|
2853
|
+
description: string | null;
|
|
2854
|
+
key: string;
|
|
2855
|
+
isActive: boolean;
|
|
2856
|
+
}[];
|
|
2857
|
+
};
|
|
2858
|
+
422: {
|
|
2859
|
+
type: "validation";
|
|
2860
|
+
on: string;
|
|
2861
|
+
summary?: string;
|
|
2862
|
+
message?: string;
|
|
2863
|
+
found?: unknown;
|
|
2864
|
+
property?: string;
|
|
2865
|
+
expected?: string;
|
|
2866
|
+
};
|
|
2867
|
+
401: "Unauthorized";
|
|
2868
|
+
403: "Forbidden: Admins only";
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
};
|
|
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: {
|
|
2003
2925
|
key: string;
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2926
|
+
};
|
|
2927
|
+
query: {};
|
|
2928
|
+
headers: {};
|
|
2929
|
+
response: {
|
|
2930
|
+
200: {
|
|
2008
2931
|
id: string;
|
|
2009
2932
|
name: string;
|
|
2010
|
-
|
|
2933
|
+
createdAt: Date;
|
|
2934
|
+
updatedAt: Date;
|
|
2011
2935
|
key: string;
|
|
2012
2936
|
isActive: boolean;
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
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";
|
|
2023
2958
|
};
|
|
2024
|
-
401: "Unauthorized";
|
|
2025
|
-
403: "Forbidden: Admins only";
|
|
2026
2959
|
};
|
|
2027
2960
|
};
|
|
2028
2961
|
};
|
|
@@ -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;
|
|
@@ -7871,7 +8858,7 @@ declare const app: Elysia<"/api", {
|
|
|
7871
8858
|
type: {
|
|
7872
8859
|
id: string;
|
|
7873
8860
|
name: string;
|
|
7874
|
-
key:
|
|
8861
|
+
key: string;
|
|
7875
8862
|
isGasAsset: boolean;
|
|
7876
8863
|
isActive: boolean;
|
|
7877
8864
|
};
|
|
@@ -8370,7 +9357,7 @@ declare const app: Elysia<"/api", {
|
|
|
8370
9357
|
params: {};
|
|
8371
9358
|
query: {
|
|
8372
9359
|
name?: string | undefined;
|
|
8373
|
-
key?:
|
|
9360
|
+
key?: string | undefined;
|
|
8374
9361
|
isActive?: boolean | undefined;
|
|
8375
9362
|
limit?: number | undefined;
|
|
8376
9363
|
offset?: number | undefined;
|
|
@@ -8384,7 +9371,7 @@ declare const app: Elysia<"/api", {
|
|
|
8384
9371
|
id: string;
|
|
8385
9372
|
name: string;
|
|
8386
9373
|
description: string | null;
|
|
8387
|
-
key:
|
|
9374
|
+
key: string;
|
|
8388
9375
|
isGasAsset: boolean;
|
|
8389
9376
|
isActive: boolean;
|
|
8390
9377
|
}[];
|
|
@@ -8548,8 +9535,8 @@ declare const app: Elysia<"/api", {
|
|
|
8548
9535
|
walletTypeId: string;
|
|
8549
9536
|
isPrimary: boolean;
|
|
8550
9537
|
totalValuation: string;
|
|
8551
|
-
walletTypeKey: string;
|
|
8552
9538
|
walletId: string;
|
|
9539
|
+
walletTypeKey: string;
|
|
8553
9540
|
walletName: string;
|
|
8554
9541
|
walletTypeName: string;
|
|
8555
9542
|
}[];
|
|
@@ -8566,6 +9553,7 @@ declare const app: Elysia<"/api", {
|
|
|
8566
9553
|
ledgerAccountTypeName: string;
|
|
8567
9554
|
}[];
|
|
8568
9555
|
assetView: {
|
|
9556
|
+
iconUrl: string;
|
|
8569
9557
|
assetId: string;
|
|
8570
9558
|
assetCode: string;
|
|
8571
9559
|
totalValuation: string;
|
|
@@ -9123,7 +10111,6 @@ declare const app: Elysia<"/api", {
|
|
|
9123
10111
|
twoFactorEnabled: boolean | null;
|
|
9124
10112
|
username: string | null;
|
|
9125
10113
|
displayUsername: string | null;
|
|
9126
|
-
isAnonymous: boolean | null;
|
|
9127
10114
|
phoneNumber: string | null;
|
|
9128
10115
|
phoneNumberVerified: boolean | null;
|
|
9129
10116
|
role: string | null;
|
|
@@ -10014,7 +11001,6 @@ declare const app: Elysia<"/api", {
|
|
|
10014
11001
|
twoFactorEnabled: boolean | null;
|
|
10015
11002
|
username: string | null;
|
|
10016
11003
|
displayUsername: string | null;
|
|
10017
|
-
isAnonymous: boolean | null;
|
|
10018
11004
|
phoneNumber: string | null;
|
|
10019
11005
|
phoneNumberVerified: boolean | null;
|
|
10020
11006
|
role: string | null;
|
|
@@ -10193,6 +11179,53 @@ declare const app: Elysia<"/api", {
|
|
|
10193
11179
|
};
|
|
10194
11180
|
};
|
|
10195
11181
|
};
|
|
11182
|
+
} & {
|
|
11183
|
+
withdraw: {
|
|
11184
|
+
direct_cny_balance: {
|
|
11185
|
+
post: {
|
|
11186
|
+
body: {
|
|
11187
|
+
amount: string;
|
|
11188
|
+
idempotencyKey: string;
|
|
11189
|
+
receiptMethodId: string;
|
|
11190
|
+
transactionPassword: string;
|
|
11191
|
+
};
|
|
11192
|
+
params: {};
|
|
11193
|
+
query: {};
|
|
11194
|
+
headers: {};
|
|
11195
|
+
response: {
|
|
11196
|
+
200: {
|
|
11197
|
+
id: string;
|
|
11198
|
+
createdAt: Date;
|
|
11199
|
+
updatedAt: Date;
|
|
11200
|
+
userId: string;
|
|
11201
|
+
status: "rejected" | "completed" | "pending_review" | "pending_payout";
|
|
11202
|
+
reviewedAt: Date | null;
|
|
11203
|
+
reviewedBy: string | null;
|
|
11204
|
+
assetId: string | null;
|
|
11205
|
+
amount: string;
|
|
11206
|
+
idempotencyKey: string;
|
|
11207
|
+
orderNo: string;
|
|
11208
|
+
reviewNote: string | null;
|
|
11209
|
+
sourceAccountId: string | null;
|
|
11210
|
+
receiptMethodId: string;
|
|
11211
|
+
rejectReason: string | null;
|
|
11212
|
+
paidBy: string | null;
|
|
11213
|
+
paidAt: Date | null;
|
|
11214
|
+
};
|
|
11215
|
+
422: {
|
|
11216
|
+
type: "validation";
|
|
11217
|
+
on: string;
|
|
11218
|
+
summary?: string;
|
|
11219
|
+
message?: string;
|
|
11220
|
+
found?: unknown;
|
|
11221
|
+
property?: string;
|
|
11222
|
+
expected?: string;
|
|
11223
|
+
};
|
|
11224
|
+
401: "Unauthorized";
|
|
11225
|
+
};
|
|
11226
|
+
};
|
|
11227
|
+
};
|
|
11228
|
+
};
|
|
10196
11229
|
} & {
|
|
10197
11230
|
withdraw: {
|
|
10198
11231
|
get: {
|
|
@@ -11014,7 +12047,6 @@ declare const app: Elysia<"/api", {
|
|
|
11014
12047
|
twoFactorEnabled: boolean | null;
|
|
11015
12048
|
username: string | null;
|
|
11016
12049
|
displayUsername: string | null;
|
|
11017
|
-
isAnonymous: boolean | null;
|
|
11018
12050
|
phoneNumber: string | null;
|
|
11019
12051
|
phoneNumberVerified: boolean | null;
|
|
11020
12052
|
role: string | null;
|
|
@@ -11108,7 +12140,6 @@ declare const app: Elysia<"/api", {
|
|
|
11108
12140
|
twoFactorEnabled: boolean | null;
|
|
11109
12141
|
username: string | null;
|
|
11110
12142
|
displayUsername: string | null;
|
|
11111
|
-
isAnonymous: boolean | null;
|
|
11112
12143
|
phoneNumber: string | null;
|
|
11113
12144
|
phoneNumberVerified: boolean | null;
|
|
11114
12145
|
role: string | null;
|
|
@@ -11178,7 +12209,6 @@ declare const app: Elysia<"/api", {
|
|
|
11178
12209
|
twoFactorEnabled: boolean | null;
|
|
11179
12210
|
username: string | null;
|
|
11180
12211
|
displayUsername: string | null;
|
|
11181
|
-
isAnonymous: boolean | null;
|
|
11182
12212
|
phoneNumber: string | null;
|
|
11183
12213
|
phoneNumberVerified: boolean | null;
|
|
11184
12214
|
role: string | null;
|
|
@@ -11319,7 +12349,6 @@ declare const app: Elysia<"/api", {
|
|
|
11319
12349
|
twoFactorEnabled: boolean | null;
|
|
11320
12350
|
username: string | null;
|
|
11321
12351
|
displayUsername: string | null;
|
|
11322
|
-
isAnonymous: boolean | null;
|
|
11323
12352
|
phoneNumber: string | null;
|
|
11324
12353
|
phoneNumberVerified: boolean | null;
|
|
11325
12354
|
role: string | null;
|
|
@@ -12062,57 +13091,52 @@ declare const app: Elysia<"/api", {
|
|
|
12062
13091
|
};
|
|
12063
13092
|
} & {
|
|
12064
13093
|
welfare_cycle: {
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
13094
|
+
"daily-payouts": {
|
|
13095
|
+
get: {
|
|
13096
|
+
body: {};
|
|
13097
|
+
params: {};
|
|
13098
|
+
query: {
|
|
13099
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
13100
|
+
subscriptionId?: string | undefined;
|
|
13101
|
+
limit?: number | undefined;
|
|
13102
|
+
offset?: number | undefined;
|
|
13103
|
+
pageSize?: number | undefined;
|
|
13104
|
+
pageIndex?: number | undefined;
|
|
13105
|
+
};
|
|
13106
|
+
headers: {};
|
|
13107
|
+
response: {
|
|
13108
|
+
200: {
|
|
13109
|
+
data: {
|
|
12071
13110
|
id: string;
|
|
13111
|
+
createdAt: Date;
|
|
13112
|
+
updatedAt: Date;
|
|
13113
|
+
userId: string;
|
|
13114
|
+
status: "pending" | "completed" | "failed";
|
|
13115
|
+
amount: string;
|
|
13116
|
+
idempotencyKey: string;
|
|
13117
|
+
ledgerEntryId: string | null;
|
|
13118
|
+
planId: string;
|
|
13119
|
+
subscriptionId: string;
|
|
13120
|
+
payoutDate: string;
|
|
13121
|
+
}[];
|
|
13122
|
+
pagination: {
|
|
13123
|
+
total: number;
|
|
13124
|
+
pageSize: number;
|
|
13125
|
+
pageIndex: number;
|
|
13126
|
+
totalPages: number;
|
|
13127
|
+
hasNextPage: boolean;
|
|
12072
13128
|
};
|
|
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
13129
|
};
|
|
13130
|
+
422: {
|
|
13131
|
+
type: "validation";
|
|
13132
|
+
on: string;
|
|
13133
|
+
summary?: string;
|
|
13134
|
+
message?: string;
|
|
13135
|
+
found?: unknown;
|
|
13136
|
+
property?: string;
|
|
13137
|
+
expected?: string;
|
|
13138
|
+
};
|
|
13139
|
+
401: "Unauthorized";
|
|
12116
13140
|
};
|
|
12117
13141
|
};
|
|
12118
13142
|
};
|