@r2wa-org/eden 0.0.51 → 0.0.54
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/index.d.ts +1863 -589
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +658 -0
- package/dist/src/asset-convert-product/admin/router.d.ts +803 -0
- package/dist/src/asset-convert-product/admin/service.d.ts +125 -0
- package/dist/src/asset-convert-product/db.schemas.d.ts +1134 -0
- package/dist/src/asset-convert-product/errors/index.d.ts +19 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +18 -0
- package/dist/src/asset-convert-product/index.d.ts +8 -0
- package/dist/src/asset-convert-product/internal/service.d.ts +66 -0
- package/dist/src/asset-convert-product/permissions.d.ts +5 -0
- package/dist/src/asset-convert-product/schema.d.ts +619 -0
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +1000 -0
- package/dist/src/asset-convert-product/user/router.d.ts +683 -0
- package/dist/src/asset-convert-product/user/service.d.ts +120 -0
- package/dist/src/auth/better-auth.d.ts +59 -3
- package/dist/src/auth/permissions.d.ts +41 -1
- package/dist/src/auth/roles.d.ts +120 -0
- package/dist/src/cron/index.d.ts +13 -1
- package/dist/src/db/schemas.d.ts +4 -0
- package/dist/src/deposit/admin/dto.schemas.d.ts +6 -6
- package/dist/src/deposit/user/dto.schemas.d.ts +6 -6
- package/dist/src/file-storage/admin/dto.schemas.d.ts +6 -6
- package/dist/src/index.d.ts +2811 -845
- package/dist/src/ledger/admin/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/admin/router.d.ts +2 -2
- package/dist/src/ledger/admin/service.d.ts +2 -2
- package/dist/src/ledger/db.schemas.d.ts +8 -8
- package/dist/src/ledger/internal/service.d.ts +2 -2
- package/dist/src/ledger/schema.d.ts +6 -6
- package/dist/src/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/user/router.d.ts +2 -2
- package/dist/src/ledger/user/service.d.ts +2 -2
- package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
- package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
- package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
- package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
- package/dist/src/ledger-account-import/schema.d.ts +2 -2
- package/dist/src/ledger-account-transfer/user/router.d.ts +1 -1
- package/dist/src/market-data/admin/dto.schemas.d.ts +291 -0
- package/dist/src/market-data/admin/router.d.ts +609 -0
- package/dist/src/market-data/admin/service.d.ts +52 -0
- package/dist/src/market-data/cron.d.ts +57 -0
- package/dist/src/market-data/db.schemas.d.ts +516 -0
- package/dist/src/market-data/errors/index.d.ts +12 -0
- package/dist/src/market-data/errors/locales/zh.d.ts +11 -0
- package/dist/src/market-data/index.d.ts +8 -0
- package/dist/src/market-data/internal/service.d.ts +77 -0
- package/dist/src/market-data/permissions.d.ts +6 -0
- package/dist/src/market-data/schema.d.ts +270 -0
- package/dist/src/market-data/user/dto.schemas.d.ts +289 -0
- package/dist/src/market-data/user/router.d.ts +521 -0
- package/dist/src/market-data/user/service.d.ts +30 -0
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +322 -0
- package/dist/src/market-pricing/admin/router.d.ts +835 -0
- package/dist/src/market-pricing/admin/service.d.ts +129 -0
- package/dist/src/market-pricing/cron.d.ts +57 -0
- package/dist/src/market-pricing/db.schemas.d.ts +828 -0
- package/dist/src/market-pricing/errors/index.d.ts +14 -0
- package/dist/src/market-pricing/errors/locales/zh.d.ts +13 -0
- package/dist/src/market-pricing/internal/service.d.ts +35 -0
- package/dist/src/market-pricing/permissions.d.ts +4 -0
- package/dist/src/market-pricing/schema.d.ts +434 -0
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/notification/admin/dto.schemas.d.ts +8 -8
- package/dist/src/notification/user/dto.schemas.d.ts +8 -8
- package/dist/src/trade-market/admin/dto.schemas.d.ts +762 -0
- package/dist/src/trade-market/admin/router.d.ts +851 -0
- package/dist/src/trade-market/admin/service.d.ts +158 -0
- package/dist/src/trade-market/db.schemas.d.ts +1338 -0
- package/dist/src/trade-market/errors/index.d.ts +22 -0
- package/dist/src/trade-market/errors/locales/zh.d.ts +21 -0
- package/dist/src/trade-market/index.d.ts +8 -0
- package/dist/src/trade-market/internal/service.d.ts +239 -0
- package/dist/src/trade-market/permissions.d.ts +5 -0
- package/dist/src/trade-market/schema.d.ts +708 -0
- package/dist/src/trade-market/user/dto.schemas.d.ts +1394 -0
- package/dist/src/trade-market/user/router.d.ts +754 -0
- package/dist/src/trade-market/user/service.d.ts +147 -0
- package/dist/src/transfer/user/router.d.ts +1 -1
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/wallet/admin/dto.schemas.d.ts +3 -3
- package/dist/src/wallet/user/dto.schemas.d.ts +2 -2
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +7 -7
- package/dist/src/welfare-cycle/admin/router.d.ts +4 -4
- package/dist/src/welfare-cycle/admin/service.d.ts +2 -2
- package/dist/src/welfare-cycle/cron.d.ts +58 -0
- package/dist/src/welfare-cycle/db.schemas.d.ts +4 -4
- package/dist/src/welfare-cycle/internal/service.d.ts +2 -2
- package/dist/src/welfare-cycle/schema.d.ts +2 -2
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/user/router.d.ts +3 -3
- package/dist/src/welfare-cycle/user/service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Elysia from "elysia";
|
|
2
2
|
export declare const adminRouter: Elysia<"/admin", {
|
|
3
3
|
decorator: {};
|
|
4
|
-
store:
|
|
4
|
+
store: any;
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
@@ -1075,6 +1075,353 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
};
|
|
1077
1077
|
};
|
|
1078
|
+
} & {
|
|
1079
|
+
admin: {
|
|
1080
|
+
asset_convert_product: {};
|
|
1081
|
+
} & {
|
|
1082
|
+
asset_convert_product: {
|
|
1083
|
+
products: {
|
|
1084
|
+
post: {
|
|
1085
|
+
body: {
|
|
1086
|
+
description?: string | null | undefined;
|
|
1087
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1088
|
+
name: string;
|
|
1089
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1090
|
+
targetAssetId: string;
|
|
1091
|
+
payAssetId: string;
|
|
1092
|
+
defaultReceiveAccountTypeId: string;
|
|
1093
|
+
minPayAmount: string;
|
|
1094
|
+
};
|
|
1095
|
+
params: {};
|
|
1096
|
+
query: unknown;
|
|
1097
|
+
headers: unknown;
|
|
1098
|
+
response: {
|
|
1099
|
+
200: {
|
|
1100
|
+
id: string;
|
|
1101
|
+
name: string;
|
|
1102
|
+
createdAt: Date;
|
|
1103
|
+
updatedAt: Date;
|
|
1104
|
+
description: string | null;
|
|
1105
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1106
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1107
|
+
targetAssetId: string;
|
|
1108
|
+
payAssetId: string;
|
|
1109
|
+
defaultReceiveAccountTypeId: string;
|
|
1110
|
+
minPayAmount: string;
|
|
1111
|
+
};
|
|
1112
|
+
422: {
|
|
1113
|
+
type: "validation";
|
|
1114
|
+
on: string;
|
|
1115
|
+
summary?: string;
|
|
1116
|
+
message?: string;
|
|
1117
|
+
found?: unknown;
|
|
1118
|
+
property?: string;
|
|
1119
|
+
expected?: string;
|
|
1120
|
+
};
|
|
1121
|
+
401: "Unauthorized";
|
|
1122
|
+
403: "Forbidden: Admins only";
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
} & {
|
|
1128
|
+
asset_convert_product: {
|
|
1129
|
+
products: {
|
|
1130
|
+
":id": {
|
|
1131
|
+
patch: {
|
|
1132
|
+
body: {
|
|
1133
|
+
name?: string | undefined;
|
|
1134
|
+
description?: string | null | undefined;
|
|
1135
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1136
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
1137
|
+
targetAssetId?: string | undefined;
|
|
1138
|
+
payAssetId?: string | undefined;
|
|
1139
|
+
defaultReceiveAccountTypeId?: string | undefined;
|
|
1140
|
+
minPayAmount?: string | undefined;
|
|
1141
|
+
};
|
|
1142
|
+
params: {
|
|
1143
|
+
id: string;
|
|
1144
|
+
};
|
|
1145
|
+
query: unknown;
|
|
1146
|
+
headers: unknown;
|
|
1147
|
+
response: {
|
|
1148
|
+
200: {
|
|
1149
|
+
createdAt: Date;
|
|
1150
|
+
updatedAt: Date;
|
|
1151
|
+
id: string;
|
|
1152
|
+
name: string;
|
|
1153
|
+
description: string | null;
|
|
1154
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1155
|
+
targetAssetId: string;
|
|
1156
|
+
payAssetId: string;
|
|
1157
|
+
defaultReceiveAccountTypeId: string;
|
|
1158
|
+
minPayAmount: string;
|
|
1159
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1160
|
+
};
|
|
1161
|
+
422: {
|
|
1162
|
+
type: "validation";
|
|
1163
|
+
on: string;
|
|
1164
|
+
summary?: string;
|
|
1165
|
+
message?: string;
|
|
1166
|
+
found?: unknown;
|
|
1167
|
+
property?: string;
|
|
1168
|
+
expected?: string;
|
|
1169
|
+
};
|
|
1170
|
+
401: "Unauthorized";
|
|
1171
|
+
403: "Forbidden: Admins only";
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
} & {
|
|
1178
|
+
asset_convert_product: {
|
|
1179
|
+
products: {
|
|
1180
|
+
":id": {
|
|
1181
|
+
activate: {
|
|
1182
|
+
post: {
|
|
1183
|
+
body: unknown;
|
|
1184
|
+
params: {
|
|
1185
|
+
id: string;
|
|
1186
|
+
};
|
|
1187
|
+
query: unknown;
|
|
1188
|
+
headers: unknown;
|
|
1189
|
+
response: {
|
|
1190
|
+
200: {
|
|
1191
|
+
createdAt: Date;
|
|
1192
|
+
updatedAt: Date;
|
|
1193
|
+
id: string;
|
|
1194
|
+
name: string;
|
|
1195
|
+
description: string | null;
|
|
1196
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1197
|
+
targetAssetId: string;
|
|
1198
|
+
payAssetId: string;
|
|
1199
|
+
defaultReceiveAccountTypeId: string;
|
|
1200
|
+
minPayAmount: string;
|
|
1201
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1202
|
+
};
|
|
1203
|
+
422: {
|
|
1204
|
+
type: "validation";
|
|
1205
|
+
on: string;
|
|
1206
|
+
summary?: string;
|
|
1207
|
+
message?: string;
|
|
1208
|
+
found?: unknown;
|
|
1209
|
+
property?: string;
|
|
1210
|
+
expected?: string;
|
|
1211
|
+
};
|
|
1212
|
+
401: "Unauthorized";
|
|
1213
|
+
403: "Forbidden: Admins only";
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
} & {
|
|
1221
|
+
asset_convert_product: {
|
|
1222
|
+
products: {
|
|
1223
|
+
":id": {
|
|
1224
|
+
pause: {
|
|
1225
|
+
post: {
|
|
1226
|
+
body: unknown;
|
|
1227
|
+
params: {
|
|
1228
|
+
id: string;
|
|
1229
|
+
};
|
|
1230
|
+
query: unknown;
|
|
1231
|
+
headers: unknown;
|
|
1232
|
+
response: {
|
|
1233
|
+
200: {
|
|
1234
|
+
createdAt: Date;
|
|
1235
|
+
updatedAt: Date;
|
|
1236
|
+
id: string;
|
|
1237
|
+
name: string;
|
|
1238
|
+
description: string | null;
|
|
1239
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1240
|
+
targetAssetId: string;
|
|
1241
|
+
payAssetId: string;
|
|
1242
|
+
defaultReceiveAccountTypeId: string;
|
|
1243
|
+
minPayAmount: string;
|
|
1244
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1245
|
+
};
|
|
1246
|
+
422: {
|
|
1247
|
+
type: "validation";
|
|
1248
|
+
on: string;
|
|
1249
|
+
summary?: string;
|
|
1250
|
+
message?: string;
|
|
1251
|
+
found?: unknown;
|
|
1252
|
+
property?: string;
|
|
1253
|
+
expected?: string;
|
|
1254
|
+
};
|
|
1255
|
+
401: "Unauthorized";
|
|
1256
|
+
403: "Forbidden: Admins only";
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
} & {
|
|
1264
|
+
asset_convert_product: {
|
|
1265
|
+
products: {
|
|
1266
|
+
":id": {
|
|
1267
|
+
end: {
|
|
1268
|
+
post: {
|
|
1269
|
+
body: unknown;
|
|
1270
|
+
params: {
|
|
1271
|
+
id: string;
|
|
1272
|
+
};
|
|
1273
|
+
query: unknown;
|
|
1274
|
+
headers: unknown;
|
|
1275
|
+
response: {
|
|
1276
|
+
200: {
|
|
1277
|
+
createdAt: Date;
|
|
1278
|
+
updatedAt: Date;
|
|
1279
|
+
id: string;
|
|
1280
|
+
name: string;
|
|
1281
|
+
description: string | null;
|
|
1282
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1283
|
+
targetAssetId: string;
|
|
1284
|
+
payAssetId: string;
|
|
1285
|
+
defaultReceiveAccountTypeId: string;
|
|
1286
|
+
minPayAmount: string;
|
|
1287
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1288
|
+
};
|
|
1289
|
+
422: {
|
|
1290
|
+
type: "validation";
|
|
1291
|
+
on: string;
|
|
1292
|
+
summary?: string;
|
|
1293
|
+
message?: string;
|
|
1294
|
+
found?: unknown;
|
|
1295
|
+
property?: string;
|
|
1296
|
+
expected?: string;
|
|
1297
|
+
};
|
|
1298
|
+
401: "Unauthorized";
|
|
1299
|
+
403: "Forbidden: Admins only";
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
} & {
|
|
1307
|
+
asset_convert_product: {
|
|
1308
|
+
products: {
|
|
1309
|
+
get: {
|
|
1310
|
+
body: unknown;
|
|
1311
|
+
params: {};
|
|
1312
|
+
query: {
|
|
1313
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1314
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
1315
|
+
limit?: number | undefined;
|
|
1316
|
+
offset?: number | undefined;
|
|
1317
|
+
pageSize?: number | undefined;
|
|
1318
|
+
pageIndex?: number | undefined;
|
|
1319
|
+
};
|
|
1320
|
+
headers: unknown;
|
|
1321
|
+
response: {
|
|
1322
|
+
200: {
|
|
1323
|
+
data: {
|
|
1324
|
+
id: string;
|
|
1325
|
+
name: string;
|
|
1326
|
+
createdAt: Date;
|
|
1327
|
+
updatedAt: Date;
|
|
1328
|
+
description: string | null;
|
|
1329
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1330
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1331
|
+
targetAssetId: string;
|
|
1332
|
+
payAssetId: string;
|
|
1333
|
+
defaultReceiveAccountTypeId: string;
|
|
1334
|
+
minPayAmount: string;
|
|
1335
|
+
}[];
|
|
1336
|
+
pagination: {
|
|
1337
|
+
total: number;
|
|
1338
|
+
pageSize: number;
|
|
1339
|
+
pageIndex: number;
|
|
1340
|
+
totalPages: number;
|
|
1341
|
+
hasNextPage: boolean;
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
422: {
|
|
1345
|
+
type: "validation";
|
|
1346
|
+
on: string;
|
|
1347
|
+
summary?: string;
|
|
1348
|
+
message?: string;
|
|
1349
|
+
found?: unknown;
|
|
1350
|
+
property?: string;
|
|
1351
|
+
expected?: string;
|
|
1352
|
+
};
|
|
1353
|
+
401: "Unauthorized";
|
|
1354
|
+
403: "Forbidden: Admins only";
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
} & {
|
|
1360
|
+
asset_convert_product: {
|
|
1361
|
+
orders: {
|
|
1362
|
+
get: {
|
|
1363
|
+
body: unknown;
|
|
1364
|
+
params: {};
|
|
1365
|
+
query: {
|
|
1366
|
+
userId?: string | undefined;
|
|
1367
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
1368
|
+
productId?: string | undefined;
|
|
1369
|
+
limit?: number | undefined;
|
|
1370
|
+
offset?: number | undefined;
|
|
1371
|
+
pageSize?: number | undefined;
|
|
1372
|
+
pageIndex?: number | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
headers: unknown;
|
|
1375
|
+
response: {
|
|
1376
|
+
200: {
|
|
1377
|
+
data: {
|
|
1378
|
+
id: string;
|
|
1379
|
+
createdAt: Date;
|
|
1380
|
+
updatedAt: Date;
|
|
1381
|
+
userId: string;
|
|
1382
|
+
status: "created" | "completed" | "failed";
|
|
1383
|
+
idempotencyKey: string;
|
|
1384
|
+
orderNo: string;
|
|
1385
|
+
productId: string;
|
|
1386
|
+
payAssetIdSnapshot: string;
|
|
1387
|
+
targetAssetIdSnapshot: string;
|
|
1388
|
+
quoteAssetIdSnapshot: string;
|
|
1389
|
+
priceSnapshot: string;
|
|
1390
|
+
priceEffectiveAtSnapshot: Date;
|
|
1391
|
+
payAmount: string;
|
|
1392
|
+
sourcePayAccountId: string;
|
|
1393
|
+
targetAmount: string;
|
|
1394
|
+
settlementModeSnapshot: "available" | "locked";
|
|
1395
|
+
receiveAccountId: string;
|
|
1396
|
+
debitLedgerEntryId: string | null;
|
|
1397
|
+
creditLedgerEntryId: string | null;
|
|
1398
|
+
failureCode: string | null;
|
|
1399
|
+
failureReason: string | null;
|
|
1400
|
+
}[];
|
|
1401
|
+
pagination: {
|
|
1402
|
+
total: number;
|
|
1403
|
+
pageSize: number;
|
|
1404
|
+
pageIndex: number;
|
|
1405
|
+
totalPages: number;
|
|
1406
|
+
hasNextPage: boolean;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
422: {
|
|
1410
|
+
type: "validation";
|
|
1411
|
+
on: string;
|
|
1412
|
+
summary?: string;
|
|
1413
|
+
message?: string;
|
|
1414
|
+
found?: unknown;
|
|
1415
|
+
property?: string;
|
|
1416
|
+
expected?: string;
|
|
1417
|
+
};
|
|
1418
|
+
401: "Unauthorized";
|
|
1419
|
+
403: "Forbidden: Admins only";
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1078
1425
|
} & {
|
|
1079
1426
|
admin: {
|
|
1080
1427
|
asset_types: {};
|
|
@@ -2230,16 +2577,269 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2230
2577
|
headers: {};
|
|
2231
2578
|
response: {
|
|
2232
2579
|
200: {
|
|
2233
|
-
id: string;
|
|
2234
|
-
createdAt: Date;
|
|
2235
|
-
updatedAt: Date;
|
|
2236
|
-
deletedAt: Date | null;
|
|
2237
|
-
isActive: boolean | null;
|
|
2238
|
-
sortOrder: number | null;
|
|
2239
|
-
bankCode: string;
|
|
2240
|
-
swiftCode: string | null;
|
|
2241
|
-
nameCn: string;
|
|
2242
|
-
nameEn: string;
|
|
2580
|
+
id: string;
|
|
2581
|
+
createdAt: Date;
|
|
2582
|
+
updatedAt: Date;
|
|
2583
|
+
deletedAt: Date | null;
|
|
2584
|
+
isActive: boolean | null;
|
|
2585
|
+
sortOrder: number | null;
|
|
2586
|
+
bankCode: string;
|
|
2587
|
+
swiftCode: string | null;
|
|
2588
|
+
nameCn: string;
|
|
2589
|
+
nameEn: string;
|
|
2590
|
+
};
|
|
2591
|
+
422: {
|
|
2592
|
+
type: "validation";
|
|
2593
|
+
on: string;
|
|
2594
|
+
summary?: string;
|
|
2595
|
+
message?: string;
|
|
2596
|
+
found?: unknown;
|
|
2597
|
+
property?: string;
|
|
2598
|
+
expected?: string;
|
|
2599
|
+
};
|
|
2600
|
+
401: "Unauthorized";
|
|
2601
|
+
403: "Forbidden: Admins only";
|
|
2602
|
+
};
|
|
2603
|
+
};
|
|
2604
|
+
};
|
|
2605
|
+
};
|
|
2606
|
+
} & {
|
|
2607
|
+
bank_account: {
|
|
2608
|
+
banks: {
|
|
2609
|
+
":id": {
|
|
2610
|
+
patch: {
|
|
2611
|
+
body: {
|
|
2612
|
+
isActive?: boolean | null | undefined;
|
|
2613
|
+
sortOrder?: number | null | undefined;
|
|
2614
|
+
bankCode?: string | undefined;
|
|
2615
|
+
swiftCode?: string | null | undefined;
|
|
2616
|
+
nameCn?: string | undefined;
|
|
2617
|
+
nameEn?: string | undefined;
|
|
2618
|
+
};
|
|
2619
|
+
params: {
|
|
2620
|
+
id: string;
|
|
2621
|
+
};
|
|
2622
|
+
query: {};
|
|
2623
|
+
headers: {};
|
|
2624
|
+
response: {
|
|
2625
|
+
200: {
|
|
2626
|
+
id: string;
|
|
2627
|
+
createdAt: Date;
|
|
2628
|
+
updatedAt: Date;
|
|
2629
|
+
deletedAt: Date | null;
|
|
2630
|
+
isActive: boolean | null;
|
|
2631
|
+
sortOrder: number | null;
|
|
2632
|
+
bankCode: string;
|
|
2633
|
+
swiftCode: string | null;
|
|
2634
|
+
nameCn: string;
|
|
2635
|
+
nameEn: string;
|
|
2636
|
+
};
|
|
2637
|
+
422: {
|
|
2638
|
+
type: "validation";
|
|
2639
|
+
on: string;
|
|
2640
|
+
summary?: string;
|
|
2641
|
+
message?: string;
|
|
2642
|
+
found?: unknown;
|
|
2643
|
+
property?: string;
|
|
2644
|
+
expected?: string;
|
|
2645
|
+
};
|
|
2646
|
+
401: "Unauthorized";
|
|
2647
|
+
403: "Forbidden: Admins only";
|
|
2648
|
+
};
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
};
|
|
2652
|
+
};
|
|
2653
|
+
} & {
|
|
2654
|
+
bank_account: {
|
|
2655
|
+
banks: {
|
|
2656
|
+
":id": {
|
|
2657
|
+
delete: {
|
|
2658
|
+
body: {};
|
|
2659
|
+
params: {
|
|
2660
|
+
id: string;
|
|
2661
|
+
};
|
|
2662
|
+
query: {};
|
|
2663
|
+
headers: {};
|
|
2664
|
+
response: {
|
|
2665
|
+
200: {
|
|
2666
|
+
success: boolean;
|
|
2667
|
+
};
|
|
2668
|
+
422: {
|
|
2669
|
+
type: "validation";
|
|
2670
|
+
on: string;
|
|
2671
|
+
summary?: string;
|
|
2672
|
+
message?: string;
|
|
2673
|
+
found?: unknown;
|
|
2674
|
+
property?: string;
|
|
2675
|
+
expected?: string;
|
|
2676
|
+
};
|
|
2677
|
+
401: "Unauthorized";
|
|
2678
|
+
403: "Forbidden: Admins only";
|
|
2679
|
+
};
|
|
2680
|
+
};
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
};
|
|
2685
|
+
} & {
|
|
2686
|
+
admin: {
|
|
2687
|
+
checkIns: {};
|
|
2688
|
+
} & {
|
|
2689
|
+
checkIns: {
|
|
2690
|
+
get: {
|
|
2691
|
+
body: unknown;
|
|
2692
|
+
params: {};
|
|
2693
|
+
query: {
|
|
2694
|
+
userId?: string | undefined;
|
|
2695
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
2696
|
+
startDate?: Date | undefined;
|
|
2697
|
+
limit?: number | undefined;
|
|
2698
|
+
offset?: number | undefined;
|
|
2699
|
+
pageSize?: number | undefined;
|
|
2700
|
+
pageIndex?: number | undefined;
|
|
2701
|
+
endDate?: Date | undefined;
|
|
2702
|
+
};
|
|
2703
|
+
headers: unknown;
|
|
2704
|
+
response: {
|
|
2705
|
+
200: {
|
|
2706
|
+
data: {
|
|
2707
|
+
user: {
|
|
2708
|
+
email: string;
|
|
2709
|
+
id: string;
|
|
2710
|
+
name: string;
|
|
2711
|
+
emailVerified: boolean;
|
|
2712
|
+
image: string | null;
|
|
2713
|
+
createdAt: Date;
|
|
2714
|
+
updatedAt: Date;
|
|
2715
|
+
twoFactorEnabled: boolean | null;
|
|
2716
|
+
username: string | null;
|
|
2717
|
+
displayUsername: string | null;
|
|
2718
|
+
isAnonymous: boolean | null;
|
|
2719
|
+
phoneNumber: string | null;
|
|
2720
|
+
phoneNumberVerified: boolean | null;
|
|
2721
|
+
role: string | null;
|
|
2722
|
+
banned: boolean | null;
|
|
2723
|
+
banReason: string | null;
|
|
2724
|
+
banExpires: Date | null;
|
|
2725
|
+
};
|
|
2726
|
+
id: string;
|
|
2727
|
+
createdAt: Date;
|
|
2728
|
+
updatedAt: Date;
|
|
2729
|
+
userId: string;
|
|
2730
|
+
checkInType: "app" | "meeting";
|
|
2731
|
+
checkInAt: Date;
|
|
2732
|
+
checkInTimezone: string | null;
|
|
2733
|
+
checkInOffsetMinutes: number | null;
|
|
2734
|
+
checkInLocalDate: string | null;
|
|
2735
|
+
}[];
|
|
2736
|
+
pagination: {
|
|
2737
|
+
total: number;
|
|
2738
|
+
pageSize: number;
|
|
2739
|
+
pageIndex: number;
|
|
2740
|
+
totalPages: number;
|
|
2741
|
+
hasNextPage: boolean;
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
422: {
|
|
2745
|
+
type: "validation";
|
|
2746
|
+
on: string;
|
|
2747
|
+
summary?: string;
|
|
2748
|
+
message?: string;
|
|
2749
|
+
found?: unknown;
|
|
2750
|
+
property?: string;
|
|
2751
|
+
expected?: string;
|
|
2752
|
+
};
|
|
2753
|
+
401: "Unauthorized";
|
|
2754
|
+
403: "Forbidden: Admins only";
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
} & {
|
|
2760
|
+
admin: {
|
|
2761
|
+
ledger_account_import: {};
|
|
2762
|
+
} & {
|
|
2763
|
+
ledger_account_import: {
|
|
2764
|
+
jobs: {
|
|
2765
|
+
post: {
|
|
2766
|
+
body: {
|
|
2767
|
+
fileId: string;
|
|
2768
|
+
};
|
|
2769
|
+
params: {};
|
|
2770
|
+
query: unknown;
|
|
2771
|
+
headers: unknown;
|
|
2772
|
+
response: {
|
|
2773
|
+
200: {
|
|
2774
|
+
error: string | null;
|
|
2775
|
+
id: string;
|
|
2776
|
+
createdAt: Date;
|
|
2777
|
+
updatedAt: Date;
|
|
2778
|
+
status: "pending" | "failed" | "running" | "success";
|
|
2779
|
+
failed: number;
|
|
2780
|
+
success: number;
|
|
2781
|
+
ignored: number;
|
|
2782
|
+
fileId: string;
|
|
2783
|
+
total: number;
|
|
2784
|
+
processed: number;
|
|
2785
|
+
createdBy: string;
|
|
2786
|
+
startedAt: Date | null;
|
|
2787
|
+
finishedAt: Date | null;
|
|
2788
|
+
};
|
|
2789
|
+
422: {
|
|
2790
|
+
type: "validation";
|
|
2791
|
+
on: string;
|
|
2792
|
+
summary?: string;
|
|
2793
|
+
message?: string;
|
|
2794
|
+
found?: unknown;
|
|
2795
|
+
property?: string;
|
|
2796
|
+
expected?: string;
|
|
2797
|
+
};
|
|
2798
|
+
401: "Unauthorized";
|
|
2799
|
+
403: "Forbidden: Admins only";
|
|
2800
|
+
};
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
};
|
|
2804
|
+
} & {
|
|
2805
|
+
ledger_account_import: {
|
|
2806
|
+
jobs: {
|
|
2807
|
+
get: {
|
|
2808
|
+
body: unknown;
|
|
2809
|
+
params: {};
|
|
2810
|
+
query: {
|
|
2811
|
+
status?: "pending" | "failed" | "running" | "success" | undefined;
|
|
2812
|
+
limit?: number | undefined;
|
|
2813
|
+
offset?: number | undefined;
|
|
2814
|
+
pageSize?: number | undefined;
|
|
2815
|
+
pageIndex?: number | undefined;
|
|
2816
|
+
};
|
|
2817
|
+
headers: unknown;
|
|
2818
|
+
response: {
|
|
2819
|
+
200: {
|
|
2820
|
+
data: {
|
|
2821
|
+
error: string | null;
|
|
2822
|
+
id: string;
|
|
2823
|
+
createdAt: Date;
|
|
2824
|
+
updatedAt: Date;
|
|
2825
|
+
status: "pending" | "failed" | "running" | "success";
|
|
2826
|
+
failed: number;
|
|
2827
|
+
success: number;
|
|
2828
|
+
ignored: number;
|
|
2829
|
+
fileId: string;
|
|
2830
|
+
total: number;
|
|
2831
|
+
processed: number;
|
|
2832
|
+
createdBy: string;
|
|
2833
|
+
startedAt: Date | null;
|
|
2834
|
+
finishedAt: Date | null;
|
|
2835
|
+
}[];
|
|
2836
|
+
pagination: {
|
|
2837
|
+
total: number;
|
|
2838
|
+
pageSize: number;
|
|
2839
|
+
pageIndex: number;
|
|
2840
|
+
totalPages: number;
|
|
2841
|
+
hasNextPage: boolean;
|
|
2842
|
+
};
|
|
2243
2843
|
};
|
|
2244
2844
|
422: {
|
|
2245
2845
|
type: "validation";
|
|
@@ -2257,35 +2857,32 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2257
2857
|
};
|
|
2258
2858
|
};
|
|
2259
2859
|
} & {
|
|
2260
|
-
|
|
2261
|
-
|
|
2860
|
+
ledger_account_import: {
|
|
2861
|
+
jobs: {
|
|
2262
2862
|
":id": {
|
|
2263
|
-
|
|
2264
|
-
body:
|
|
2265
|
-
isActive?: boolean | null | undefined;
|
|
2266
|
-
sortOrder?: number | null | undefined;
|
|
2267
|
-
bankCode?: string | undefined;
|
|
2268
|
-
swiftCode?: string | null | undefined;
|
|
2269
|
-
nameCn?: string | undefined;
|
|
2270
|
-
nameEn?: string | undefined;
|
|
2271
|
-
};
|
|
2863
|
+
get: {
|
|
2864
|
+
body: unknown;
|
|
2272
2865
|
params: {
|
|
2273
2866
|
id: string;
|
|
2274
2867
|
};
|
|
2275
|
-
query:
|
|
2276
|
-
headers:
|
|
2868
|
+
query: unknown;
|
|
2869
|
+
headers: unknown;
|
|
2277
2870
|
response: {
|
|
2278
2871
|
200: {
|
|
2872
|
+
error: string | null;
|
|
2279
2873
|
id: string;
|
|
2280
2874
|
createdAt: Date;
|
|
2281
2875
|
updatedAt: Date;
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2876
|
+
status: "pending" | "failed" | "running" | "success";
|
|
2877
|
+
failed: number;
|
|
2878
|
+
success: number;
|
|
2879
|
+
ignored: number;
|
|
2880
|
+
fileId: string;
|
|
2881
|
+
total: number;
|
|
2882
|
+
processed: number;
|
|
2883
|
+
createdBy: string;
|
|
2884
|
+
startedAt: Date | null;
|
|
2885
|
+
finishedAt: Date | null;
|
|
2289
2886
|
};
|
|
2290
2887
|
422: {
|
|
2291
2888
|
type: "validation";
|
|
@@ -2304,32 +2901,94 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2304
2901
|
};
|
|
2305
2902
|
};
|
|
2306
2903
|
} & {
|
|
2307
|
-
|
|
2308
|
-
|
|
2904
|
+
ledger_account_import: {
|
|
2905
|
+
jobs: {
|
|
2309
2906
|
":id": {
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
query: {};
|
|
2316
|
-
headers: {};
|
|
2317
|
-
response: {
|
|
2318
|
-
200: {
|
|
2319
|
-
success: boolean;
|
|
2907
|
+
items: {
|
|
2908
|
+
get: {
|
|
2909
|
+
body: unknown;
|
|
2910
|
+
params: {
|
|
2911
|
+
id: string;
|
|
2320
2912
|
};
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
property?: string;
|
|
2328
|
-
expected?: string;
|
|
2913
|
+
query: {
|
|
2914
|
+
status?: "failed" | "success" | "ignored" | undefined;
|
|
2915
|
+
limit?: number | undefined;
|
|
2916
|
+
offset?: number | undefined;
|
|
2917
|
+
pageSize?: number | undefined;
|
|
2918
|
+
pageIndex?: number | undefined;
|
|
2329
2919
|
};
|
|
2330
|
-
|
|
2331
|
-
|
|
2920
|
+
headers: unknown;
|
|
2921
|
+
response: {
|
|
2922
|
+
200: {
|
|
2923
|
+
data: {
|
|
2924
|
+
error: string | null;
|
|
2925
|
+
id: string;
|
|
2926
|
+
createdAt: Date;
|
|
2927
|
+
updatedAt: Date;
|
|
2928
|
+
phoneNumber: string | null;
|
|
2929
|
+
userId: string | null;
|
|
2930
|
+
status: "failed" | "success" | "ignored";
|
|
2931
|
+
assetId: string | null;
|
|
2932
|
+
ledgerAccountTypeId: string | null;
|
|
2933
|
+
amount: string | null;
|
|
2934
|
+
referenceId: string | null;
|
|
2935
|
+
memo: string | null;
|
|
2936
|
+
jobId: string;
|
|
2937
|
+
rowNumber: number;
|
|
2938
|
+
assetCode: string | null;
|
|
2939
|
+
assetCodeRaw: string | null;
|
|
2940
|
+
accountTypeKey: string | null;
|
|
2941
|
+
accountTypeKeyRaw: string | null;
|
|
2942
|
+
ledgerAccountId: string | null;
|
|
2943
|
+
ledgerEntryId: string | null;
|
|
2944
|
+
isIdempotent: boolean;
|
|
2945
|
+
}[];
|
|
2946
|
+
pagination: {
|
|
2947
|
+
total: number;
|
|
2948
|
+
pageSize: number;
|
|
2949
|
+
pageIndex: number;
|
|
2950
|
+
totalPages: number;
|
|
2951
|
+
hasNextPage: boolean;
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
422: {
|
|
2955
|
+
type: "validation";
|
|
2956
|
+
on: string;
|
|
2957
|
+
summary?: string;
|
|
2958
|
+
message?: string;
|
|
2959
|
+
found?: unknown;
|
|
2960
|
+
property?: string;
|
|
2961
|
+
expected?: string;
|
|
2962
|
+
};
|
|
2963
|
+
401: "Unauthorized";
|
|
2964
|
+
403: "Forbidden: Admins only";
|
|
2965
|
+
};
|
|
2966
|
+
};
|
|
2967
|
+
};
|
|
2968
|
+
};
|
|
2969
|
+
};
|
|
2970
|
+
};
|
|
2971
|
+
} & {
|
|
2972
|
+
ledger_account_import: {
|
|
2973
|
+
template: {
|
|
2974
|
+
get: {
|
|
2975
|
+
body: unknown;
|
|
2976
|
+
params: {};
|
|
2977
|
+
query: unknown;
|
|
2978
|
+
headers: unknown;
|
|
2979
|
+
response: {
|
|
2980
|
+
200: ArrayBuffer;
|
|
2981
|
+
422: {
|
|
2982
|
+
type: "validation";
|
|
2983
|
+
on: string;
|
|
2984
|
+
summary?: string;
|
|
2985
|
+
message?: string;
|
|
2986
|
+
found?: unknown;
|
|
2987
|
+
property?: string;
|
|
2988
|
+
expected?: string;
|
|
2332
2989
|
};
|
|
2990
|
+
401: "Unauthorized";
|
|
2991
|
+
403: "Forbidden: Admins only";
|
|
2333
2992
|
};
|
|
2334
2993
|
};
|
|
2335
2994
|
};
|
|
@@ -2337,107 +2996,112 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2337
2996
|
};
|
|
2338
2997
|
} & {
|
|
2339
2998
|
admin: {
|
|
2340
|
-
|
|
2999
|
+
ledger: {};
|
|
2341
3000
|
} & {
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
user: {
|
|
2361
|
-
email: string;
|
|
3001
|
+
ledger: {
|
|
3002
|
+
entries: {
|
|
3003
|
+
get: {
|
|
3004
|
+
body: unknown;
|
|
3005
|
+
params: {};
|
|
3006
|
+
query: {
|
|
3007
|
+
accountId?: string | undefined;
|
|
3008
|
+
assetId?: string | undefined;
|
|
3009
|
+
limit?: number | undefined;
|
|
3010
|
+
offset?: number | undefined;
|
|
3011
|
+
pageSize?: number | undefined;
|
|
3012
|
+
pageIndex?: number | undefined;
|
|
3013
|
+
userId: string;
|
|
3014
|
+
};
|
|
3015
|
+
headers: unknown;
|
|
3016
|
+
response: {
|
|
3017
|
+
200: {
|
|
3018
|
+
data: {
|
|
2362
3019
|
id: string;
|
|
2363
|
-
name: string;
|
|
2364
|
-
emailVerified: boolean;
|
|
2365
|
-
image: string | null;
|
|
2366
3020
|
createdAt: Date;
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
totalPages: number;
|
|
2394
|
-
hasNextPage: boolean;
|
|
3021
|
+
assetId: string;
|
|
3022
|
+
fromAccountId: string | null;
|
|
3023
|
+
toAccountId: string | null;
|
|
3024
|
+
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
3025
|
+
amount: string;
|
|
3026
|
+
fromAvailableBefore: string | null;
|
|
3027
|
+
fromAvailableAfter: string | null;
|
|
3028
|
+
fromLockedBefore: string | null;
|
|
3029
|
+
fromLockedAfter: string | null;
|
|
3030
|
+
toAvailableBefore: string | null;
|
|
3031
|
+
toAvailableAfter: string | null;
|
|
3032
|
+
toLockedBefore: string | null;
|
|
3033
|
+
toLockedAfter: string | null;
|
|
3034
|
+
referenceId: string;
|
|
3035
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
3036
|
+
idempotencyKey: string;
|
|
3037
|
+
operatorId: string | null;
|
|
3038
|
+
memo: string | null;
|
|
3039
|
+
}[];
|
|
3040
|
+
pagination: {
|
|
3041
|
+
total: number;
|
|
3042
|
+
pageSize: number;
|
|
3043
|
+
pageIndex: number;
|
|
3044
|
+
totalPages: number;
|
|
3045
|
+
hasNextPage: boolean;
|
|
3046
|
+
};
|
|
2395
3047
|
};
|
|
3048
|
+
422: {
|
|
3049
|
+
type: "validation";
|
|
3050
|
+
on: string;
|
|
3051
|
+
summary?: string;
|
|
3052
|
+
message?: string;
|
|
3053
|
+
found?: unknown;
|
|
3054
|
+
property?: string;
|
|
3055
|
+
expected?: string;
|
|
3056
|
+
};
|
|
3057
|
+
401: "Unauthorized";
|
|
3058
|
+
403: "Forbidden: Admins only";
|
|
2396
3059
|
};
|
|
2397
|
-
422: {
|
|
2398
|
-
type: "validation";
|
|
2399
|
-
on: string;
|
|
2400
|
-
summary?: string;
|
|
2401
|
-
message?: string;
|
|
2402
|
-
found?: unknown;
|
|
2403
|
-
property?: string;
|
|
2404
|
-
expected?: string;
|
|
2405
|
-
};
|
|
2406
|
-
401: "Unauthorized";
|
|
2407
|
-
403: "Forbidden: Admins only";
|
|
2408
3060
|
};
|
|
2409
3061
|
};
|
|
2410
3062
|
};
|
|
2411
3063
|
};
|
|
2412
3064
|
} & {
|
|
2413
3065
|
admin: {
|
|
2414
|
-
|
|
3066
|
+
market_pricing: {};
|
|
2415
3067
|
} & {
|
|
2416
|
-
|
|
2417
|
-
|
|
3068
|
+
market_pricing: {
|
|
3069
|
+
strategies: {
|
|
2418
3070
|
post: {
|
|
2419
3071
|
body: {
|
|
2420
|
-
|
|
3072
|
+
source?: string | undefined;
|
|
3073
|
+
strategyType?: "random_walk" | undefined;
|
|
3074
|
+
driftBps?: string | undefined;
|
|
3075
|
+
minPrice?: string | null | undefined;
|
|
3076
|
+
maxPrice?: string | null | undefined;
|
|
3077
|
+
intervalSeconds?: number | undefined;
|
|
3078
|
+
maxStepBps?: string | undefined;
|
|
3079
|
+
fallbackPrice?: string | undefined;
|
|
3080
|
+
isEnabled?: boolean | undefined;
|
|
3081
|
+
name: string;
|
|
3082
|
+
baseAssetId: string;
|
|
3083
|
+
quoteAssetId: string;
|
|
2421
3084
|
};
|
|
2422
3085
|
params: {};
|
|
2423
3086
|
query: unknown;
|
|
2424
3087
|
headers: unknown;
|
|
2425
3088
|
response: {
|
|
2426
3089
|
200: {
|
|
2427
|
-
error: string | null;
|
|
2428
3090
|
id: string;
|
|
3091
|
+
name: string;
|
|
2429
3092
|
createdAt: Date;
|
|
2430
3093
|
updatedAt: Date;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
3094
|
+
baseAssetId: string;
|
|
3095
|
+
quoteAssetId: string;
|
|
3096
|
+
source: string;
|
|
3097
|
+
strategyType: "random_walk";
|
|
3098
|
+
driftBps: string;
|
|
3099
|
+
minPrice: string | null;
|
|
3100
|
+
maxPrice: string | null;
|
|
3101
|
+
intervalSeconds: number;
|
|
3102
|
+
maxStepBps: string;
|
|
3103
|
+
fallbackPrice: string;
|
|
3104
|
+
isEnabled: boolean;
|
|
2441
3105
|
};
|
|
2442
3106
|
422: {
|
|
2443
3107
|
type: "validation";
|
|
@@ -2455,13 +3119,167 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2455
3119
|
};
|
|
2456
3120
|
};
|
|
2457
3121
|
} & {
|
|
2458
|
-
|
|
2459
|
-
|
|
3122
|
+
market_pricing: {
|
|
3123
|
+
strategies: {
|
|
3124
|
+
":id": {
|
|
3125
|
+
patch: {
|
|
3126
|
+
body: {
|
|
3127
|
+
name?: string | undefined;
|
|
3128
|
+
baseAssetId?: string | undefined;
|
|
3129
|
+
quoteAssetId?: string | undefined;
|
|
3130
|
+
source?: string | undefined;
|
|
3131
|
+
strategyType?: "random_walk" | undefined;
|
|
3132
|
+
driftBps?: string | undefined;
|
|
3133
|
+
minPrice?: string | null | undefined;
|
|
3134
|
+
maxPrice?: string | null | undefined;
|
|
3135
|
+
intervalSeconds?: number | undefined;
|
|
3136
|
+
maxStepBps?: string | undefined;
|
|
3137
|
+
fallbackPrice?: string | undefined;
|
|
3138
|
+
isEnabled?: boolean | undefined;
|
|
3139
|
+
};
|
|
3140
|
+
params: {
|
|
3141
|
+
id: string;
|
|
3142
|
+
};
|
|
3143
|
+
query: unknown;
|
|
3144
|
+
headers: unknown;
|
|
3145
|
+
response: {
|
|
3146
|
+
200: {
|
|
3147
|
+
createdAt: Date;
|
|
3148
|
+
updatedAt: Date;
|
|
3149
|
+
id: string;
|
|
3150
|
+
name: string;
|
|
3151
|
+
baseAssetId: string;
|
|
3152
|
+
quoteAssetId: string;
|
|
3153
|
+
strategyType: "random_walk";
|
|
3154
|
+
driftBps: string;
|
|
3155
|
+
minPrice: string | null;
|
|
3156
|
+
maxPrice: string | null;
|
|
3157
|
+
source: string;
|
|
3158
|
+
intervalSeconds: number;
|
|
3159
|
+
maxStepBps: string;
|
|
3160
|
+
fallbackPrice: string;
|
|
3161
|
+
isEnabled: boolean;
|
|
3162
|
+
};
|
|
3163
|
+
422: {
|
|
3164
|
+
type: "validation";
|
|
3165
|
+
on: string;
|
|
3166
|
+
summary?: string;
|
|
3167
|
+
message?: string;
|
|
3168
|
+
found?: unknown;
|
|
3169
|
+
property?: string;
|
|
3170
|
+
expected?: string;
|
|
3171
|
+
};
|
|
3172
|
+
401: "Unauthorized";
|
|
3173
|
+
403: "Forbidden: Admins only";
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
};
|
|
3178
|
+
};
|
|
3179
|
+
} & {
|
|
3180
|
+
market_pricing: {
|
|
3181
|
+
strategies: {
|
|
3182
|
+
":id": {
|
|
3183
|
+
enable: {
|
|
3184
|
+
post: {
|
|
3185
|
+
body: unknown;
|
|
3186
|
+
params: {
|
|
3187
|
+
id: string;
|
|
3188
|
+
};
|
|
3189
|
+
query: unknown;
|
|
3190
|
+
headers: unknown;
|
|
3191
|
+
response: {
|
|
3192
|
+
200: {
|
|
3193
|
+
createdAt: Date;
|
|
3194
|
+
updatedAt: Date;
|
|
3195
|
+
id: string;
|
|
3196
|
+
name: string;
|
|
3197
|
+
baseAssetId: string;
|
|
3198
|
+
quoteAssetId: string;
|
|
3199
|
+
strategyType: "random_walk";
|
|
3200
|
+
driftBps: string;
|
|
3201
|
+
minPrice: string | null;
|
|
3202
|
+
maxPrice: string | null;
|
|
3203
|
+
source: string;
|
|
3204
|
+
intervalSeconds: number;
|
|
3205
|
+
maxStepBps: string;
|
|
3206
|
+
fallbackPrice: string;
|
|
3207
|
+
isEnabled: boolean;
|
|
3208
|
+
};
|
|
3209
|
+
422: {
|
|
3210
|
+
type: "validation";
|
|
3211
|
+
on: string;
|
|
3212
|
+
summary?: string;
|
|
3213
|
+
message?: string;
|
|
3214
|
+
found?: unknown;
|
|
3215
|
+
property?: string;
|
|
3216
|
+
expected?: string;
|
|
3217
|
+
};
|
|
3218
|
+
401: "Unauthorized";
|
|
3219
|
+
403: "Forbidden: Admins only";
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
};
|
|
3226
|
+
} & {
|
|
3227
|
+
market_pricing: {
|
|
3228
|
+
strategies: {
|
|
3229
|
+
":id": {
|
|
3230
|
+
disable: {
|
|
3231
|
+
post: {
|
|
3232
|
+
body: unknown;
|
|
3233
|
+
params: {
|
|
3234
|
+
id: string;
|
|
3235
|
+
};
|
|
3236
|
+
query: unknown;
|
|
3237
|
+
headers: unknown;
|
|
3238
|
+
response: {
|
|
3239
|
+
200: {
|
|
3240
|
+
createdAt: Date;
|
|
3241
|
+
updatedAt: Date;
|
|
3242
|
+
id: string;
|
|
3243
|
+
name: string;
|
|
3244
|
+
baseAssetId: string;
|
|
3245
|
+
quoteAssetId: string;
|
|
3246
|
+
strategyType: "random_walk";
|
|
3247
|
+
driftBps: string;
|
|
3248
|
+
minPrice: string | null;
|
|
3249
|
+
maxPrice: string | null;
|
|
3250
|
+
source: string;
|
|
3251
|
+
intervalSeconds: number;
|
|
3252
|
+
maxStepBps: string;
|
|
3253
|
+
fallbackPrice: string;
|
|
3254
|
+
isEnabled: boolean;
|
|
3255
|
+
};
|
|
3256
|
+
422: {
|
|
3257
|
+
type: "validation";
|
|
3258
|
+
on: string;
|
|
3259
|
+
summary?: string;
|
|
3260
|
+
message?: string;
|
|
3261
|
+
found?: unknown;
|
|
3262
|
+
property?: string;
|
|
3263
|
+
expected?: string;
|
|
3264
|
+
};
|
|
3265
|
+
401: "Unauthorized";
|
|
3266
|
+
403: "Forbidden: Admins only";
|
|
3267
|
+
};
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
};
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
} & {
|
|
3274
|
+
market_pricing: {
|
|
3275
|
+
strategies: {
|
|
2460
3276
|
get: {
|
|
2461
3277
|
body: unknown;
|
|
2462
3278
|
params: {};
|
|
2463
3279
|
query: {
|
|
2464
|
-
|
|
3280
|
+
baseAssetId?: string | undefined;
|
|
3281
|
+
quoteAssetId?: string | undefined;
|
|
3282
|
+
isEnabled?: boolean | undefined;
|
|
2465
3283
|
limit?: number | undefined;
|
|
2466
3284
|
offset?: number | undefined;
|
|
2467
3285
|
pageSize?: number | undefined;
|
|
@@ -2471,20 +3289,21 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2471
3289
|
response: {
|
|
2472
3290
|
200: {
|
|
2473
3291
|
data: {
|
|
2474
|
-
error: string | null;
|
|
2475
3292
|
id: string;
|
|
3293
|
+
name: string;
|
|
2476
3294
|
createdAt: Date;
|
|
2477
3295
|
updatedAt: Date;
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
3296
|
+
baseAssetId: string;
|
|
3297
|
+
quoteAssetId: string;
|
|
3298
|
+
source: string;
|
|
3299
|
+
strategyType: "random_walk";
|
|
3300
|
+
driftBps: string;
|
|
3301
|
+
minPrice: string | null;
|
|
3302
|
+
maxPrice: string | null;
|
|
3303
|
+
intervalSeconds: number;
|
|
3304
|
+
maxStepBps: string;
|
|
3305
|
+
fallbackPrice: string;
|
|
3306
|
+
isEnabled: boolean;
|
|
2488
3307
|
}[];
|
|
2489
3308
|
pagination: {
|
|
2490
3309
|
total: number;
|
|
@@ -2510,8 +3329,8 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2510
3329
|
};
|
|
2511
3330
|
};
|
|
2512
3331
|
} & {
|
|
2513
|
-
|
|
2514
|
-
|
|
3332
|
+
market_pricing: {
|
|
3333
|
+
strategies: {
|
|
2515
3334
|
":id": {
|
|
2516
3335
|
get: {
|
|
2517
3336
|
body: unknown;
|
|
@@ -2522,20 +3341,21 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2522
3341
|
headers: unknown;
|
|
2523
3342
|
response: {
|
|
2524
3343
|
200: {
|
|
2525
|
-
error: string | null;
|
|
2526
3344
|
id: string;
|
|
3345
|
+
name: string;
|
|
2527
3346
|
createdAt: Date;
|
|
2528
3347
|
updatedAt: Date;
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
3348
|
+
baseAssetId: string;
|
|
3349
|
+
quoteAssetId: string;
|
|
3350
|
+
source: string;
|
|
3351
|
+
strategyType: "random_walk";
|
|
3352
|
+
driftBps: string;
|
|
3353
|
+
minPrice: string | null;
|
|
3354
|
+
maxPrice: string | null;
|
|
3355
|
+
intervalSeconds: number;
|
|
3356
|
+
maxStepBps: string;
|
|
3357
|
+
fallbackPrice: string;
|
|
3358
|
+
isEnabled: boolean;
|
|
2539
3359
|
};
|
|
2540
3360
|
422: {
|
|
2541
3361
|
type: "validation";
|
|
@@ -2554,55 +3374,23 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2554
3374
|
};
|
|
2555
3375
|
};
|
|
2556
3376
|
} & {
|
|
2557
|
-
|
|
2558
|
-
|
|
3377
|
+
market_pricing: {
|
|
3378
|
+
strategies: {
|
|
2559
3379
|
":id": {
|
|
2560
|
-
|
|
2561
|
-
|
|
3380
|
+
"run-now": {
|
|
3381
|
+
post: {
|
|
2562
3382
|
body: unknown;
|
|
2563
3383
|
params: {
|
|
2564
3384
|
id: string;
|
|
2565
3385
|
};
|
|
2566
|
-
query:
|
|
2567
|
-
status?: "success" | "failed" | "ignored" | undefined;
|
|
2568
|
-
limit?: number | undefined;
|
|
2569
|
-
offset?: number | undefined;
|
|
2570
|
-
pageSize?: number | undefined;
|
|
2571
|
-
pageIndex?: number | undefined;
|
|
2572
|
-
};
|
|
3386
|
+
query: unknown;
|
|
2573
3387
|
headers: unknown;
|
|
2574
3388
|
response: {
|
|
2575
3389
|
200: {
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
updatedAt: Date;
|
|
2581
|
-
phoneNumber: string | null;
|
|
2582
|
-
userId: string | null;
|
|
2583
|
-
status: "success" | "failed" | "ignored";
|
|
2584
|
-
assetId: string | null;
|
|
2585
|
-
ledgerAccountTypeId: string | null;
|
|
2586
|
-
amount: string | null;
|
|
2587
|
-
referenceId: string | null;
|
|
2588
|
-
memo: string | null;
|
|
2589
|
-
jobId: string;
|
|
2590
|
-
rowNumber: number;
|
|
2591
|
-
assetCode: string | null;
|
|
2592
|
-
assetCodeRaw: string | null;
|
|
2593
|
-
accountTypeKey: string | null;
|
|
2594
|
-
accountTypeKeyRaw: string | null;
|
|
2595
|
-
ledgerAccountId: string | null;
|
|
2596
|
-
ledgerEntryId: string | null;
|
|
2597
|
-
isIdempotent: boolean;
|
|
2598
|
-
}[];
|
|
2599
|
-
pagination: {
|
|
2600
|
-
total: number;
|
|
2601
|
-
pageSize: number;
|
|
2602
|
-
pageIndex: number;
|
|
2603
|
-
totalPages: number;
|
|
2604
|
-
hasNextPage: boolean;
|
|
2605
|
-
};
|
|
3390
|
+
price: string;
|
|
3391
|
+
effectiveAt: Date;
|
|
3392
|
+
created: boolean;
|
|
3393
|
+
strategyId: string;
|
|
2606
3394
|
};
|
|
2607
3395
|
422: {
|
|
2608
3396
|
type: "validation";
|
|
@@ -2622,93 +3410,184 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2622
3410
|
};
|
|
2623
3411
|
};
|
|
2624
3412
|
} & {
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
3413
|
+
market_pricing: {
|
|
3414
|
+
jobs: {
|
|
3415
|
+
"run-enabled": {
|
|
3416
|
+
post: {
|
|
3417
|
+
body: unknown;
|
|
3418
|
+
params: {};
|
|
3419
|
+
query: unknown;
|
|
3420
|
+
headers: unknown;
|
|
3421
|
+
response: {
|
|
3422
|
+
200: {
|
|
3423
|
+
successCount: number;
|
|
3424
|
+
failedStrategyIds: string[];
|
|
3425
|
+
};
|
|
3426
|
+
422: {
|
|
3427
|
+
type: "validation";
|
|
3428
|
+
on: string;
|
|
3429
|
+
summary?: string;
|
|
3430
|
+
message?: string;
|
|
3431
|
+
found?: unknown;
|
|
3432
|
+
property?: string;
|
|
3433
|
+
expected?: string;
|
|
3434
|
+
};
|
|
3435
|
+
401: "Unauthorized";
|
|
3436
|
+
403: "Forbidden: Admins only";
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
3439
|
+
};
|
|
3440
|
+
};
|
|
3441
|
+
};
|
|
3442
|
+
};
|
|
3443
|
+
} & {
|
|
3444
|
+
admin: {
|
|
3445
|
+
market_data: {};
|
|
3446
|
+
} & {
|
|
3447
|
+
market_data: {
|
|
3448
|
+
klines: {
|
|
3449
|
+
"1m": {
|
|
3450
|
+
get: {
|
|
3451
|
+
body: unknown;
|
|
3452
|
+
params: {};
|
|
3453
|
+
query: {
|
|
3454
|
+
source?: string | undefined;
|
|
3455
|
+
startDate?: Date | undefined;
|
|
3456
|
+
limit?: number | undefined;
|
|
3457
|
+
offset?: number | undefined;
|
|
3458
|
+
pageSize?: number | undefined;
|
|
3459
|
+
pageIndex?: number | undefined;
|
|
3460
|
+
endDate?: Date | undefined;
|
|
3461
|
+
baseAsset: string;
|
|
3462
|
+
quoteAsset: string;
|
|
3463
|
+
};
|
|
3464
|
+
headers: unknown;
|
|
3465
|
+
response: {
|
|
3466
|
+
200: {
|
|
3467
|
+
data: {
|
|
3468
|
+
id: string;
|
|
3469
|
+
createdAt: Date;
|
|
3470
|
+
updatedAt: Date;
|
|
3471
|
+
baseAssetId: string;
|
|
3472
|
+
baseAsset: string;
|
|
3473
|
+
quoteAssetId: string;
|
|
3474
|
+
quoteAsset: string;
|
|
3475
|
+
source: string;
|
|
3476
|
+
low: string;
|
|
3477
|
+
high: string;
|
|
3478
|
+
bucketAt: Date;
|
|
3479
|
+
open: string;
|
|
3480
|
+
close: string;
|
|
3481
|
+
tickCount: number;
|
|
3482
|
+
volume: string;
|
|
3483
|
+
}[];
|
|
3484
|
+
pagination: {
|
|
3485
|
+
total: number;
|
|
3486
|
+
pageSize: number;
|
|
3487
|
+
pageIndex: number;
|
|
3488
|
+
totalPages: number;
|
|
3489
|
+
hasNextPage: boolean;
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
422: {
|
|
3493
|
+
type: "validation";
|
|
3494
|
+
on: string;
|
|
3495
|
+
summary?: string;
|
|
3496
|
+
message?: string;
|
|
3497
|
+
found?: unknown;
|
|
3498
|
+
property?: string;
|
|
3499
|
+
expected?: string;
|
|
3500
|
+
};
|
|
3501
|
+
401: "Unauthorized";
|
|
3502
|
+
403: "Forbidden: Admins only";
|
|
2642
3503
|
};
|
|
2643
|
-
401: "Unauthorized";
|
|
2644
|
-
403: "Forbidden: Admins only";
|
|
2645
3504
|
};
|
|
2646
3505
|
};
|
|
2647
3506
|
};
|
|
2648
3507
|
};
|
|
2649
|
-
};
|
|
2650
|
-
} & {
|
|
2651
|
-
admin: {
|
|
2652
|
-
ledger: {};
|
|
2653
3508
|
} & {
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
3509
|
+
market_data: {
|
|
3510
|
+
jobs: {
|
|
3511
|
+
aggregate: {
|
|
3512
|
+
"1m": {
|
|
3513
|
+
"run-one": {
|
|
3514
|
+
post: {
|
|
3515
|
+
body: {
|
|
3516
|
+
source?: string | undefined;
|
|
3517
|
+
bucketAt?: Date | undefined;
|
|
3518
|
+
baseAsset: string;
|
|
3519
|
+
quoteAsset: string;
|
|
3520
|
+
};
|
|
3521
|
+
params: {};
|
|
3522
|
+
query: unknown;
|
|
3523
|
+
headers: unknown;
|
|
3524
|
+
response: {
|
|
3525
|
+
200: {
|
|
3526
|
+
id: string;
|
|
3527
|
+
createdAt: Date;
|
|
3528
|
+
updatedAt: Date;
|
|
3529
|
+
baseAssetId: string;
|
|
3530
|
+
baseAsset: string;
|
|
3531
|
+
quoteAssetId: string;
|
|
3532
|
+
quoteAsset: string;
|
|
3533
|
+
source: string;
|
|
3534
|
+
low: string;
|
|
3535
|
+
high: string;
|
|
3536
|
+
bucketAt: Date;
|
|
3537
|
+
open: string;
|
|
3538
|
+
close: string;
|
|
3539
|
+
tickCount: number;
|
|
3540
|
+
volume: string;
|
|
3541
|
+
} | null;
|
|
3542
|
+
422: {
|
|
3543
|
+
type: "validation";
|
|
3544
|
+
on: string;
|
|
3545
|
+
summary?: string;
|
|
3546
|
+
message?: string;
|
|
3547
|
+
found?: unknown;
|
|
3548
|
+
property?: string;
|
|
3549
|
+
expected?: string;
|
|
3550
|
+
};
|
|
3551
|
+
401: "Unauthorized";
|
|
3552
|
+
403: "Forbidden: Admins only";
|
|
3553
|
+
};
|
|
2699
3554
|
};
|
|
2700
3555
|
};
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
} & {
|
|
3561
|
+
market_data: {
|
|
3562
|
+
jobs: {
|
|
3563
|
+
aggregate: {
|
|
3564
|
+
"1m": {
|
|
3565
|
+
"run-enabled": {
|
|
3566
|
+
post: {
|
|
3567
|
+
body: unknown;
|
|
3568
|
+
params: {};
|
|
3569
|
+
query: unknown;
|
|
3570
|
+
headers: unknown;
|
|
3571
|
+
response: {
|
|
3572
|
+
200: {
|
|
3573
|
+
bucketAt: Date;
|
|
3574
|
+
successCount: number;
|
|
3575
|
+
failedPairs: string[];
|
|
3576
|
+
};
|
|
3577
|
+
422: {
|
|
3578
|
+
type: "validation";
|
|
3579
|
+
on: string;
|
|
3580
|
+
summary?: string;
|
|
3581
|
+
message?: string;
|
|
3582
|
+
found?: unknown;
|
|
3583
|
+
property?: string;
|
|
3584
|
+
expected?: string;
|
|
3585
|
+
};
|
|
3586
|
+
401: "Unauthorized";
|
|
3587
|
+
403: "Forbidden: Admins only";
|
|
3588
|
+
};
|
|
3589
|
+
};
|
|
2709
3590
|
};
|
|
2710
|
-
401: "Unauthorized";
|
|
2711
|
-
403: "Forbidden: Admins only";
|
|
2712
3591
|
};
|
|
2713
3592
|
};
|
|
2714
3593
|
};
|
|
@@ -3231,14 +4110,136 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3231
4110
|
};
|
|
3232
4111
|
} & {
|
|
3233
4112
|
admin: {
|
|
3234
|
-
receipt_method: {};
|
|
4113
|
+
receipt_method: {};
|
|
4114
|
+
} & {
|
|
4115
|
+
receipt_method: {
|
|
4116
|
+
get: {
|
|
4117
|
+
body: {};
|
|
4118
|
+
params: {};
|
|
4119
|
+
query: {
|
|
4120
|
+
type?: "bank_card" | "alipay" | undefined;
|
|
4121
|
+
userId?: string | undefined;
|
|
4122
|
+
limit?: number | undefined;
|
|
4123
|
+
offset?: number | undefined;
|
|
4124
|
+
pageSize?: number | undefined;
|
|
4125
|
+
pageIndex?: number | undefined;
|
|
4126
|
+
};
|
|
4127
|
+
headers: {};
|
|
4128
|
+
response: {
|
|
4129
|
+
200: {
|
|
4130
|
+
data: {
|
|
4131
|
+
type: "bank_card" | "alipay";
|
|
4132
|
+
id: string;
|
|
4133
|
+
createdAt: Date;
|
|
4134
|
+
updatedAt: Date;
|
|
4135
|
+
userId: string;
|
|
4136
|
+
bankName: string | null;
|
|
4137
|
+
fullName: string;
|
|
4138
|
+
bankBranchName: string | null;
|
|
4139
|
+
bankCardNumber: string | null;
|
|
4140
|
+
alipayName: string | null;
|
|
4141
|
+
alipayAccount: string | null;
|
|
4142
|
+
}[];
|
|
4143
|
+
pagination: {
|
|
4144
|
+
total: number;
|
|
4145
|
+
pageSize: number;
|
|
4146
|
+
pageIndex: number;
|
|
4147
|
+
totalPages: number;
|
|
4148
|
+
hasNextPage: boolean;
|
|
4149
|
+
};
|
|
4150
|
+
};
|
|
4151
|
+
422: {
|
|
4152
|
+
type: "validation";
|
|
4153
|
+
on: string;
|
|
4154
|
+
summary?: string;
|
|
4155
|
+
message?: string;
|
|
4156
|
+
found?: unknown;
|
|
4157
|
+
property?: string;
|
|
4158
|
+
expected?: string;
|
|
4159
|
+
};
|
|
4160
|
+
401: "Unauthorized";
|
|
4161
|
+
403: "Forbidden: Admins only";
|
|
4162
|
+
};
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
} & {
|
|
4166
|
+
receipt_method: {
|
|
4167
|
+
":id": {
|
|
4168
|
+
delete: {
|
|
4169
|
+
body: {};
|
|
4170
|
+
params: {
|
|
4171
|
+
id: string;
|
|
4172
|
+
};
|
|
4173
|
+
query: {};
|
|
4174
|
+
headers: {};
|
|
4175
|
+
response: {
|
|
4176
|
+
200: {
|
|
4177
|
+
success: boolean;
|
|
4178
|
+
};
|
|
4179
|
+
422: {
|
|
4180
|
+
type: "validation";
|
|
4181
|
+
on: string;
|
|
4182
|
+
summary?: string;
|
|
4183
|
+
message?: string;
|
|
4184
|
+
found?: unknown;
|
|
4185
|
+
property?: string;
|
|
4186
|
+
expected?: string;
|
|
4187
|
+
};
|
|
4188
|
+
401: "Unauthorized";
|
|
4189
|
+
403: "Forbidden: Admins only";
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4194
|
+
} & {
|
|
4195
|
+
receipt_method: {
|
|
4196
|
+
":id": {
|
|
4197
|
+
get: {
|
|
4198
|
+
body: {};
|
|
4199
|
+
params: {
|
|
4200
|
+
id: string;
|
|
4201
|
+
};
|
|
4202
|
+
query: {};
|
|
4203
|
+
headers: {};
|
|
4204
|
+
response: {
|
|
4205
|
+
200: {
|
|
4206
|
+
type: "bank_card" | "alipay";
|
|
4207
|
+
id: string;
|
|
4208
|
+
createdAt: Date;
|
|
4209
|
+
updatedAt: Date;
|
|
4210
|
+
userId: string;
|
|
4211
|
+
bankName: string | null;
|
|
4212
|
+
fullName: string;
|
|
4213
|
+
bankBranchName: string | null;
|
|
4214
|
+
bankCardNumber: string | null;
|
|
4215
|
+
alipayName: string | null;
|
|
4216
|
+
alipayAccount: string | null;
|
|
4217
|
+
};
|
|
4218
|
+
422: {
|
|
4219
|
+
type: "validation";
|
|
4220
|
+
on: string;
|
|
4221
|
+
summary?: string;
|
|
4222
|
+
message?: string;
|
|
4223
|
+
found?: unknown;
|
|
4224
|
+
property?: string;
|
|
4225
|
+
expected?: string;
|
|
4226
|
+
};
|
|
4227
|
+
401: "Unauthorized";
|
|
4228
|
+
403: "Forbidden: Admins only";
|
|
4229
|
+
};
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
};
|
|
4233
|
+
};
|
|
4234
|
+
} & {
|
|
4235
|
+
admin: {
|
|
4236
|
+
shipping_address: {};
|
|
3235
4237
|
} & {
|
|
3236
|
-
|
|
4238
|
+
shipping_address: {
|
|
3237
4239
|
get: {
|
|
3238
4240
|
body: {};
|
|
3239
4241
|
params: {};
|
|
3240
4242
|
query: {
|
|
3241
|
-
type?: "bank_card" | "alipay" | undefined;
|
|
3242
4243
|
userId?: string | undefined;
|
|
3243
4244
|
limit?: number | undefined;
|
|
3244
4245
|
offset?: number | undefined;
|
|
@@ -3249,17 +4250,14 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3249
4250
|
response: {
|
|
3250
4251
|
200: {
|
|
3251
4252
|
data: {
|
|
3252
|
-
type: "bank_card" | "alipay";
|
|
3253
4253
|
id: string;
|
|
3254
4254
|
createdAt: Date;
|
|
3255
4255
|
updatedAt: Date;
|
|
4256
|
+
phoneNumber: string;
|
|
3256
4257
|
userId: string;
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
bankCardNumber: string | null;
|
|
3261
|
-
alipayName: string | null;
|
|
3262
|
-
alipayAccount: string | null;
|
|
4258
|
+
isDefault: boolean;
|
|
4259
|
+
recipientName: string;
|
|
4260
|
+
detailAddress: string;
|
|
3263
4261
|
}[];
|
|
3264
4262
|
pagination: {
|
|
3265
4263
|
total: number;
|
|
@@ -3283,19 +4281,34 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3283
4281
|
};
|
|
3284
4282
|
};
|
|
3285
4283
|
};
|
|
4284
|
+
};
|
|
4285
|
+
} & {
|
|
4286
|
+
admin: {
|
|
4287
|
+
referrals: {};
|
|
3286
4288
|
} & {
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
body:
|
|
3291
|
-
params: {
|
|
3292
|
-
|
|
4289
|
+
referrals: {
|
|
4290
|
+
summary: {
|
|
4291
|
+
get: {
|
|
4292
|
+
body: unknown;
|
|
4293
|
+
params: {};
|
|
4294
|
+
query: {
|
|
4295
|
+
limit?: number | undefined;
|
|
4296
|
+
offset?: number | undefined;
|
|
4297
|
+
pageSize?: number | undefined;
|
|
4298
|
+
pageIndex?: number | undefined;
|
|
4299
|
+
maxDepth?: number | undefined;
|
|
4300
|
+
referralCode: string;
|
|
3293
4301
|
};
|
|
3294
|
-
|
|
3295
|
-
headers: {};
|
|
4302
|
+
headers: unknown;
|
|
3296
4303
|
response: {
|
|
3297
4304
|
200: {
|
|
3298
|
-
|
|
4305
|
+
referredBy?: string | undefined;
|
|
4306
|
+
userId: string;
|
|
4307
|
+
referralCode: string;
|
|
4308
|
+
totalCount: number;
|
|
4309
|
+
level1Count: number;
|
|
4310
|
+
level2Count: number;
|
|
4311
|
+
level3Count: number;
|
|
3299
4312
|
};
|
|
3300
4313
|
422: {
|
|
3301
4314
|
type: "validation";
|
|
@@ -3313,28 +4326,137 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3313
4326
|
};
|
|
3314
4327
|
};
|
|
3315
4328
|
} & {
|
|
3316
|
-
|
|
3317
|
-
|
|
4329
|
+
referrals: {
|
|
4330
|
+
members: {
|
|
3318
4331
|
get: {
|
|
3319
|
-
body:
|
|
3320
|
-
params: {
|
|
3321
|
-
|
|
4332
|
+
body: unknown;
|
|
4333
|
+
params: {};
|
|
4334
|
+
query: {
|
|
4335
|
+
limit?: number | undefined;
|
|
4336
|
+
offset?: number | undefined;
|
|
4337
|
+
pageSize?: number | undefined;
|
|
4338
|
+
pageIndex?: number | undefined;
|
|
4339
|
+
maxDepth?: number | undefined;
|
|
4340
|
+
referralCode: string;
|
|
3322
4341
|
};
|
|
3323
|
-
|
|
3324
|
-
|
|
4342
|
+
headers: unknown;
|
|
4343
|
+
response: {
|
|
4344
|
+
200: {
|
|
4345
|
+
data: {
|
|
4346
|
+
user: {
|
|
4347
|
+
email: string;
|
|
4348
|
+
id: string;
|
|
4349
|
+
name: string;
|
|
4350
|
+
emailVerified: boolean;
|
|
4351
|
+
image: string | null;
|
|
4352
|
+
createdAt: Date;
|
|
4353
|
+
updatedAt: Date;
|
|
4354
|
+
twoFactorEnabled: boolean | null;
|
|
4355
|
+
username: string | null;
|
|
4356
|
+
displayUsername: string | null;
|
|
4357
|
+
isAnonymous: boolean | null;
|
|
4358
|
+
phoneNumber: string | null;
|
|
4359
|
+
phoneNumberVerified: boolean | null;
|
|
4360
|
+
role: string | null;
|
|
4361
|
+
banned: boolean | null;
|
|
4362
|
+
banReason: string | null;
|
|
4363
|
+
banExpires: Date | null;
|
|
4364
|
+
};
|
|
4365
|
+
depth: number;
|
|
4366
|
+
}[];
|
|
4367
|
+
pagination: {
|
|
4368
|
+
total: number;
|
|
4369
|
+
pageSize: number;
|
|
4370
|
+
pageIndex: number;
|
|
4371
|
+
totalPages: number;
|
|
4372
|
+
hasNextPage: boolean;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
422: {
|
|
4376
|
+
type: "validation";
|
|
4377
|
+
on: string;
|
|
4378
|
+
summary?: string;
|
|
4379
|
+
message?: string;
|
|
4380
|
+
found?: unknown;
|
|
4381
|
+
property?: string;
|
|
4382
|
+
expected?: string;
|
|
4383
|
+
};
|
|
4384
|
+
401: "Unauthorized";
|
|
4385
|
+
403: "Forbidden: Admins only";
|
|
4386
|
+
};
|
|
4387
|
+
};
|
|
4388
|
+
};
|
|
4389
|
+
};
|
|
4390
|
+
};
|
|
4391
|
+
} & {
|
|
4392
|
+
admin: {
|
|
4393
|
+
referrals: {
|
|
4394
|
+
"depth-configs": {};
|
|
4395
|
+
};
|
|
4396
|
+
} & {
|
|
4397
|
+
referrals: {
|
|
4398
|
+
"depth-configs": {
|
|
4399
|
+
post: {
|
|
4400
|
+
body: {
|
|
4401
|
+
depth: number;
|
|
4402
|
+
commissionRate: string;
|
|
4403
|
+
};
|
|
4404
|
+
params: {};
|
|
4405
|
+
query: unknown;
|
|
4406
|
+
headers: unknown;
|
|
3325
4407
|
response: {
|
|
3326
4408
|
200: {
|
|
3327
|
-
type: "bank_card" | "alipay";
|
|
3328
4409
|
id: string;
|
|
3329
4410
|
createdAt: Date;
|
|
3330
4411
|
updatedAt: Date;
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
4412
|
+
depth: number;
|
|
4413
|
+
commissionRate: string;
|
|
4414
|
+
};
|
|
4415
|
+
422: {
|
|
4416
|
+
type: "validation";
|
|
4417
|
+
on: string;
|
|
4418
|
+
summary?: string;
|
|
4419
|
+
message?: string;
|
|
4420
|
+
found?: unknown;
|
|
4421
|
+
property?: string;
|
|
4422
|
+
expected?: string;
|
|
4423
|
+
};
|
|
4424
|
+
401: "Unauthorized";
|
|
4425
|
+
403: "Forbidden: Admins only";
|
|
4426
|
+
};
|
|
4427
|
+
};
|
|
4428
|
+
};
|
|
4429
|
+
};
|
|
4430
|
+
} & {
|
|
4431
|
+
referrals: {
|
|
4432
|
+
"depth-configs": {
|
|
4433
|
+
get: {
|
|
4434
|
+
body: unknown;
|
|
4435
|
+
params: {};
|
|
4436
|
+
query: {
|
|
4437
|
+
depth?: number | undefined;
|
|
4438
|
+
limit?: number | undefined;
|
|
4439
|
+
offset?: number | undefined;
|
|
4440
|
+
pageSize?: number | undefined;
|
|
4441
|
+
pageIndex?: number | undefined;
|
|
4442
|
+
};
|
|
4443
|
+
headers: unknown;
|
|
4444
|
+
response: {
|
|
4445
|
+
200: {
|
|
4446
|
+
data: {
|
|
4447
|
+
id: string;
|
|
4448
|
+
createdAt: Date;
|
|
4449
|
+
updatedAt: Date;
|
|
4450
|
+
depth: number;
|
|
4451
|
+
commissionRate: string;
|
|
4452
|
+
}[];
|
|
4453
|
+
pagination: {
|
|
4454
|
+
total: number;
|
|
4455
|
+
pageSize: number;
|
|
4456
|
+
pageIndex: number;
|
|
4457
|
+
totalPages: number;
|
|
4458
|
+
hasNextPage: boolean;
|
|
4459
|
+
};
|
|
3338
4460
|
};
|
|
3339
4461
|
422: {
|
|
3340
4462
|
type: "validation";
|
|
@@ -3345,85 +4467,132 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3345
4467
|
property?: string;
|
|
3346
4468
|
expected?: string;
|
|
3347
4469
|
};
|
|
3348
|
-
401: "Unauthorized";
|
|
3349
|
-
403: "Forbidden: Admins only";
|
|
4470
|
+
401: "Unauthorized";
|
|
4471
|
+
403: "Forbidden: Admins only";
|
|
4472
|
+
};
|
|
4473
|
+
};
|
|
4474
|
+
};
|
|
4475
|
+
};
|
|
4476
|
+
} & {
|
|
4477
|
+
referrals: {
|
|
4478
|
+
"depth-configs": {
|
|
4479
|
+
":id": {
|
|
4480
|
+
get: {
|
|
4481
|
+
body: unknown;
|
|
4482
|
+
params: {
|
|
4483
|
+
id: string;
|
|
4484
|
+
};
|
|
4485
|
+
query: unknown;
|
|
4486
|
+
headers: unknown;
|
|
4487
|
+
response: {
|
|
4488
|
+
200: {
|
|
4489
|
+
id: string;
|
|
4490
|
+
createdAt: Date;
|
|
4491
|
+
updatedAt: Date;
|
|
4492
|
+
depth: number;
|
|
4493
|
+
commissionRate: string;
|
|
4494
|
+
};
|
|
4495
|
+
422: {
|
|
4496
|
+
type: "validation";
|
|
4497
|
+
on: string;
|
|
4498
|
+
summary?: string;
|
|
4499
|
+
message?: string;
|
|
4500
|
+
found?: unknown;
|
|
4501
|
+
property?: string;
|
|
4502
|
+
expected?: string;
|
|
4503
|
+
};
|
|
4504
|
+
401: "Unauthorized";
|
|
4505
|
+
403: "Forbidden: Admins only";
|
|
4506
|
+
};
|
|
4507
|
+
};
|
|
4508
|
+
};
|
|
4509
|
+
};
|
|
4510
|
+
};
|
|
4511
|
+
} & {
|
|
4512
|
+
referrals: {
|
|
4513
|
+
"depth-configs": {
|
|
4514
|
+
":id": {
|
|
4515
|
+
patch: {
|
|
4516
|
+
body: {
|
|
4517
|
+
depth?: number | undefined;
|
|
4518
|
+
commissionRate?: string | undefined;
|
|
4519
|
+
};
|
|
4520
|
+
params: {
|
|
4521
|
+
id: string;
|
|
4522
|
+
};
|
|
4523
|
+
query: unknown;
|
|
4524
|
+
headers: unknown;
|
|
4525
|
+
response: {
|
|
4526
|
+
200: {
|
|
4527
|
+
id: string;
|
|
4528
|
+
createdAt: Date;
|
|
4529
|
+
updatedAt: Date;
|
|
4530
|
+
depth: number;
|
|
4531
|
+
commissionRate: string;
|
|
4532
|
+
};
|
|
4533
|
+
422: {
|
|
4534
|
+
type: "validation";
|
|
4535
|
+
on: string;
|
|
4536
|
+
summary?: string;
|
|
4537
|
+
message?: string;
|
|
4538
|
+
found?: unknown;
|
|
4539
|
+
property?: string;
|
|
4540
|
+
expected?: string;
|
|
4541
|
+
};
|
|
4542
|
+
401: "Unauthorized";
|
|
4543
|
+
403: "Forbidden: Admins only";
|
|
4544
|
+
};
|
|
3350
4545
|
};
|
|
3351
4546
|
};
|
|
3352
4547
|
};
|
|
3353
4548
|
};
|
|
3354
|
-
};
|
|
3355
|
-
} & {
|
|
3356
|
-
admin: {
|
|
3357
|
-
shipping_address: {};
|
|
3358
4549
|
} & {
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
limit?: number | undefined;
|
|
3366
|
-
offset?: number | undefined;
|
|
3367
|
-
pageSize?: number | undefined;
|
|
3368
|
-
pageIndex?: number | undefined;
|
|
3369
|
-
};
|
|
3370
|
-
headers: {};
|
|
3371
|
-
response: {
|
|
3372
|
-
200: {
|
|
3373
|
-
data: {
|
|
4550
|
+
referrals: {
|
|
4551
|
+
"depth-configs": {
|
|
4552
|
+
":id": {
|
|
4553
|
+
delete: {
|
|
4554
|
+
body: unknown;
|
|
4555
|
+
params: {
|
|
3374
4556
|
id: string;
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
4557
|
+
};
|
|
4558
|
+
query: unknown;
|
|
4559
|
+
headers: unknown;
|
|
4560
|
+
response: {
|
|
4561
|
+
200: {
|
|
4562
|
+
success: boolean;
|
|
4563
|
+
};
|
|
4564
|
+
422: {
|
|
4565
|
+
type: "validation";
|
|
4566
|
+
on: string;
|
|
4567
|
+
summary?: string;
|
|
4568
|
+
message?: string;
|
|
4569
|
+
found?: unknown;
|
|
4570
|
+
property?: string;
|
|
4571
|
+
expected?: string;
|
|
4572
|
+
};
|
|
4573
|
+
401: "Unauthorized";
|
|
4574
|
+
403: "Forbidden: Admins only";
|
|
3389
4575
|
};
|
|
3390
4576
|
};
|
|
3391
|
-
422: {
|
|
3392
|
-
type: "validation";
|
|
3393
|
-
on: string;
|
|
3394
|
-
summary?: string;
|
|
3395
|
-
message?: string;
|
|
3396
|
-
found?: unknown;
|
|
3397
|
-
property?: string;
|
|
3398
|
-
expected?: string;
|
|
3399
|
-
};
|
|
3400
|
-
401: "Unauthorized";
|
|
3401
|
-
403: "Forbidden: Admins only";
|
|
3402
4577
|
};
|
|
3403
4578
|
};
|
|
3404
4579
|
};
|
|
3405
4580
|
};
|
|
3406
4581
|
} & {
|
|
3407
4582
|
admin: {
|
|
3408
|
-
|
|
4583
|
+
team: {};
|
|
3409
4584
|
} & {
|
|
3410
|
-
|
|
4585
|
+
team: {
|
|
3411
4586
|
summary: {
|
|
3412
4587
|
get: {
|
|
3413
4588
|
body: unknown;
|
|
3414
4589
|
params: {};
|
|
3415
4590
|
query: {
|
|
3416
|
-
limit?: number | undefined;
|
|
3417
|
-
offset?: number | undefined;
|
|
3418
|
-
pageSize?: number | undefined;
|
|
3419
|
-
pageIndex?: number | undefined;
|
|
3420
|
-
maxDepth?: number | undefined;
|
|
3421
4591
|
referralCode: string;
|
|
3422
4592
|
};
|
|
3423
4593
|
headers: unknown;
|
|
3424
4594
|
response: {
|
|
3425
4595
|
200: {
|
|
3426
|
-
referredBy?: string | undefined;
|
|
3427
4596
|
userId: string;
|
|
3428
4597
|
referralCode: string;
|
|
3429
4598
|
totalCount: number;
|
|
@@ -3447,24 +4616,30 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3447
4616
|
};
|
|
3448
4617
|
};
|
|
3449
4618
|
} & {
|
|
3450
|
-
|
|
4619
|
+
team: {
|
|
3451
4620
|
members: {
|
|
3452
4621
|
get: {
|
|
3453
4622
|
body: unknown;
|
|
3454
4623
|
params: {};
|
|
3455
4624
|
query: {
|
|
4625
|
+
depth?: number | undefined;
|
|
3456
4626
|
limit?: number | undefined;
|
|
3457
4627
|
offset?: number | undefined;
|
|
3458
4628
|
pageSize?: number | undefined;
|
|
3459
4629
|
pageIndex?: number | undefined;
|
|
3460
|
-
maxDepth?: number | undefined;
|
|
3461
4630
|
referralCode: string;
|
|
3462
4631
|
};
|
|
3463
4632
|
headers: unknown;
|
|
3464
4633
|
response: {
|
|
3465
4634
|
200: {
|
|
3466
4635
|
data: {
|
|
3467
|
-
|
|
4636
|
+
id: string;
|
|
4637
|
+
createdAt: Date;
|
|
4638
|
+
updatedAt: Date;
|
|
4639
|
+
depth: number;
|
|
4640
|
+
ancestorId: string;
|
|
4641
|
+
descendantId: string;
|
|
4642
|
+
descendant: {
|
|
3468
4643
|
email: string;
|
|
3469
4644
|
id: string;
|
|
3470
4645
|
name: string;
|
|
@@ -3483,7 +4658,14 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3483
4658
|
banReason: string | null;
|
|
3484
4659
|
banExpires: Date | null;
|
|
3485
4660
|
};
|
|
3486
|
-
|
|
4661
|
+
depthConfig: {
|
|
4662
|
+
id: string;
|
|
4663
|
+
createdAt: Date;
|
|
4664
|
+
updatedAt: Date;
|
|
4665
|
+
depth: number;
|
|
4666
|
+
commissionRate: string;
|
|
4667
|
+
} | null;
|
|
4668
|
+
directCount: number;
|
|
3487
4669
|
}[];
|
|
3488
4670
|
pagination: {
|
|
3489
4671
|
total: number;
|
|
@@ -3511,73 +4693,102 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3511
4693
|
};
|
|
3512
4694
|
} & {
|
|
3513
4695
|
admin: {
|
|
3514
|
-
|
|
3515
|
-
"depth-configs": {};
|
|
3516
|
-
};
|
|
4696
|
+
transfer: {};
|
|
3517
4697
|
} & {
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
4698
|
+
transfer: {
|
|
4699
|
+
get: {
|
|
4700
|
+
body: unknown;
|
|
4701
|
+
params: {};
|
|
4702
|
+
query: {
|
|
4703
|
+
limit?: number | undefined;
|
|
4704
|
+
offset?: number | undefined;
|
|
4705
|
+
pageSize?: number | undefined;
|
|
4706
|
+
pageIndex?: number | undefined;
|
|
4707
|
+
};
|
|
4708
|
+
headers: unknown;
|
|
4709
|
+
response: {
|
|
4710
|
+
200: {
|
|
4711
|
+
data: {
|
|
3530
4712
|
id: string;
|
|
3531
4713
|
createdAt: Date;
|
|
3532
4714
|
updatedAt: Date;
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
4715
|
+
assetId: string | null;
|
|
4716
|
+
amount: string;
|
|
4717
|
+
idempotencyKey: string;
|
|
4718
|
+
orderNo: string;
|
|
4719
|
+
targetAccountId: string | null;
|
|
4720
|
+
sourceAccountId: string | null;
|
|
4721
|
+
sourceUserId: string;
|
|
4722
|
+
targetUserId: string;
|
|
4723
|
+
}[];
|
|
4724
|
+
pagination: {
|
|
4725
|
+
total: number;
|
|
4726
|
+
pageSize: number;
|
|
4727
|
+
pageIndex: number;
|
|
4728
|
+
totalPages: number;
|
|
4729
|
+
hasNextPage: boolean;
|
|
3544
4730
|
};
|
|
3545
|
-
401: "Unauthorized";
|
|
3546
|
-
403: "Forbidden: Admins only";
|
|
3547
4731
|
};
|
|
4732
|
+
422: {
|
|
4733
|
+
type: "validation";
|
|
4734
|
+
on: string;
|
|
4735
|
+
summary?: string;
|
|
4736
|
+
message?: string;
|
|
4737
|
+
found?: unknown;
|
|
4738
|
+
property?: string;
|
|
4739
|
+
expected?: string;
|
|
4740
|
+
};
|
|
4741
|
+
401: "Unauthorized";
|
|
4742
|
+
403: "Forbidden: Admins only";
|
|
3548
4743
|
};
|
|
3549
4744
|
};
|
|
3550
4745
|
};
|
|
4746
|
+
};
|
|
4747
|
+
} & {
|
|
4748
|
+
admin: {
|
|
4749
|
+
trade_market: {};
|
|
3551
4750
|
} & {
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
body:
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
4751
|
+
trade_market: {
|
|
4752
|
+
markets: {
|
|
4753
|
+
post: {
|
|
4754
|
+
body: {
|
|
4755
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4756
|
+
pricingSource?: string | undefined;
|
|
4757
|
+
isBuyEnabled?: boolean | undefined;
|
|
4758
|
+
isSellEnabled?: boolean | undefined;
|
|
4759
|
+
maxBaseAmount?: string | null | undefined;
|
|
4760
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
4761
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
4762
|
+
maxSlippageBps?: string | undefined;
|
|
4763
|
+
name: string;
|
|
4764
|
+
baseAssetId: string;
|
|
4765
|
+
quoteAssetId: string;
|
|
4766
|
+
systemBaseAccountId: string;
|
|
4767
|
+
systemQuoteAccountId: string;
|
|
4768
|
+
minBaseAmount: string;
|
|
3563
4769
|
};
|
|
4770
|
+
params: {};
|
|
4771
|
+
query: unknown;
|
|
3564
4772
|
headers: unknown;
|
|
3565
4773
|
response: {
|
|
3566
4774
|
200: {
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
4775
|
+
id: string;
|
|
4776
|
+
name: string;
|
|
4777
|
+
createdAt: Date;
|
|
4778
|
+
updatedAt: Date;
|
|
4779
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4780
|
+
baseAssetId: string;
|
|
4781
|
+
quoteAssetId: string;
|
|
4782
|
+
pricingSource: string;
|
|
4783
|
+
systemBaseAccountId: string;
|
|
4784
|
+
systemQuoteAccountId: string;
|
|
4785
|
+
isBuyEnabled: boolean;
|
|
4786
|
+
isSellEnabled: boolean;
|
|
4787
|
+
minBaseAmount: string;
|
|
4788
|
+
maxBaseAmount: string | null;
|
|
4789
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4790
|
+
dailyUserSellBaseLimit: string | null;
|
|
4791
|
+
maxSlippageBps: string;
|
|
3581
4792
|
};
|
|
3582
4793
|
422: {
|
|
3583
4794
|
type: "validation";
|
|
@@ -3589,54 +4800,31 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3589
4800
|
expected?: string;
|
|
3590
4801
|
};
|
|
3591
4802
|
401: "Unauthorized";
|
|
3592
|
-
403: "Forbidden: Admins only";
|
|
3593
|
-
};
|
|
3594
|
-
};
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
} & {
|
|
3598
|
-
referrals: {
|
|
3599
|
-
"depth-configs": {
|
|
3600
|
-
":id": {
|
|
3601
|
-
get: {
|
|
3602
|
-
body: unknown;
|
|
3603
|
-
params: {
|
|
3604
|
-
id: string;
|
|
3605
|
-
};
|
|
3606
|
-
query: unknown;
|
|
3607
|
-
headers: unknown;
|
|
3608
|
-
response: {
|
|
3609
|
-
200: {
|
|
3610
|
-
id: string;
|
|
3611
|
-
createdAt: Date;
|
|
3612
|
-
updatedAt: Date;
|
|
3613
|
-
depth: number;
|
|
3614
|
-
commissionRate: string;
|
|
3615
|
-
};
|
|
3616
|
-
422: {
|
|
3617
|
-
type: "validation";
|
|
3618
|
-
on: string;
|
|
3619
|
-
summary?: string;
|
|
3620
|
-
message?: string;
|
|
3621
|
-
found?: unknown;
|
|
3622
|
-
property?: string;
|
|
3623
|
-
expected?: string;
|
|
3624
|
-
};
|
|
3625
|
-
401: "Unauthorized";
|
|
3626
|
-
403: "Forbidden: Admins only";
|
|
3627
|
-
};
|
|
4803
|
+
403: "Forbidden: Admins only";
|
|
3628
4804
|
};
|
|
3629
4805
|
};
|
|
3630
4806
|
};
|
|
3631
4807
|
};
|
|
3632
4808
|
} & {
|
|
3633
|
-
|
|
3634
|
-
|
|
4809
|
+
trade_market: {
|
|
4810
|
+
markets: {
|
|
3635
4811
|
":id": {
|
|
3636
4812
|
patch: {
|
|
3637
4813
|
body: {
|
|
3638
|
-
|
|
3639
|
-
|
|
4814
|
+
name?: string | undefined;
|
|
4815
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4816
|
+
baseAssetId?: string | undefined;
|
|
4817
|
+
quoteAssetId?: string | undefined;
|
|
4818
|
+
pricingSource?: string | undefined;
|
|
4819
|
+
systemBaseAccountId?: string | undefined;
|
|
4820
|
+
systemQuoteAccountId?: string | undefined;
|
|
4821
|
+
isBuyEnabled?: boolean | undefined;
|
|
4822
|
+
isSellEnabled?: boolean | undefined;
|
|
4823
|
+
minBaseAmount?: string | undefined;
|
|
4824
|
+
maxBaseAmount?: string | null | undefined;
|
|
4825
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
4826
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
4827
|
+
maxSlippageBps?: string | undefined;
|
|
3640
4828
|
};
|
|
3641
4829
|
params: {
|
|
3642
4830
|
id: string;
|
|
@@ -3646,10 +4834,22 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3646
4834
|
response: {
|
|
3647
4835
|
200: {
|
|
3648
4836
|
id: string;
|
|
4837
|
+
name: string;
|
|
3649
4838
|
createdAt: Date;
|
|
3650
4839
|
updatedAt: Date;
|
|
3651
|
-
|
|
3652
|
-
|
|
4840
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4841
|
+
baseAssetId: string;
|
|
4842
|
+
quoteAssetId: string;
|
|
4843
|
+
pricingSource: string;
|
|
4844
|
+
systemBaseAccountId: string;
|
|
4845
|
+
systemQuoteAccountId: string;
|
|
4846
|
+
isBuyEnabled: boolean;
|
|
4847
|
+
isSellEnabled: boolean;
|
|
4848
|
+
minBaseAmount: string;
|
|
4849
|
+
maxBaseAmount: string | null;
|
|
4850
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4851
|
+
dailyUserSellBaseLimit: string | null;
|
|
4852
|
+
maxSlippageBps: string;
|
|
3653
4853
|
};
|
|
3654
4854
|
422: {
|
|
3655
4855
|
type: "validation";
|
|
@@ -3668,58 +4868,194 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3668
4868
|
};
|
|
3669
4869
|
};
|
|
3670
4870
|
} & {
|
|
3671
|
-
|
|
3672
|
-
|
|
4871
|
+
trade_market: {
|
|
4872
|
+
markets: {
|
|
3673
4873
|
":id": {
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
4874
|
+
activate: {
|
|
4875
|
+
post: {
|
|
4876
|
+
body: unknown;
|
|
4877
|
+
params: {
|
|
4878
|
+
id: string;
|
|
4879
|
+
};
|
|
4880
|
+
query: unknown;
|
|
4881
|
+
headers: unknown;
|
|
4882
|
+
response: {
|
|
4883
|
+
200: {
|
|
4884
|
+
createdAt: Date;
|
|
4885
|
+
updatedAt: Date;
|
|
4886
|
+
id: string;
|
|
4887
|
+
name: string;
|
|
4888
|
+
baseAssetId: string;
|
|
4889
|
+
quoteAssetId: string;
|
|
4890
|
+
pricingSource: string;
|
|
4891
|
+
systemBaseAccountId: string;
|
|
4892
|
+
systemQuoteAccountId: string;
|
|
4893
|
+
isBuyEnabled: boolean;
|
|
4894
|
+
isSellEnabled: boolean;
|
|
4895
|
+
minBaseAmount: string;
|
|
4896
|
+
maxBaseAmount: string | null;
|
|
4897
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4898
|
+
dailyUserSellBaseLimit: string | null;
|
|
4899
|
+
maxSlippageBps: string;
|
|
4900
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4901
|
+
};
|
|
4902
|
+
422: {
|
|
4903
|
+
type: "validation";
|
|
4904
|
+
on: string;
|
|
4905
|
+
summary?: string;
|
|
4906
|
+
message?: string;
|
|
4907
|
+
found?: unknown;
|
|
4908
|
+
property?: string;
|
|
4909
|
+
expected?: string;
|
|
4910
|
+
};
|
|
4911
|
+
401: "Unauthorized";
|
|
4912
|
+
403: "Forbidden: Admins only";
|
|
4913
|
+
};
|
|
3678
4914
|
};
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
4915
|
+
};
|
|
4916
|
+
};
|
|
4917
|
+
};
|
|
4918
|
+
};
|
|
4919
|
+
} & {
|
|
4920
|
+
trade_market: {
|
|
4921
|
+
markets: {
|
|
4922
|
+
":id": {
|
|
4923
|
+
pause: {
|
|
4924
|
+
post: {
|
|
4925
|
+
body: unknown;
|
|
4926
|
+
params: {
|
|
4927
|
+
id: string;
|
|
3684
4928
|
};
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
4929
|
+
query: unknown;
|
|
4930
|
+
headers: unknown;
|
|
4931
|
+
response: {
|
|
4932
|
+
200: {
|
|
4933
|
+
createdAt: Date;
|
|
4934
|
+
updatedAt: Date;
|
|
4935
|
+
id: string;
|
|
4936
|
+
name: string;
|
|
4937
|
+
baseAssetId: string;
|
|
4938
|
+
quoteAssetId: string;
|
|
4939
|
+
pricingSource: string;
|
|
4940
|
+
systemBaseAccountId: string;
|
|
4941
|
+
systemQuoteAccountId: string;
|
|
4942
|
+
isBuyEnabled: boolean;
|
|
4943
|
+
isSellEnabled: boolean;
|
|
4944
|
+
minBaseAmount: string;
|
|
4945
|
+
maxBaseAmount: string | null;
|
|
4946
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4947
|
+
dailyUserSellBaseLimit: string | null;
|
|
4948
|
+
maxSlippageBps: string;
|
|
4949
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4950
|
+
};
|
|
4951
|
+
422: {
|
|
4952
|
+
type: "validation";
|
|
4953
|
+
on: string;
|
|
4954
|
+
summary?: string;
|
|
4955
|
+
message?: string;
|
|
4956
|
+
found?: unknown;
|
|
4957
|
+
property?: string;
|
|
4958
|
+
expected?: string;
|
|
4959
|
+
};
|
|
4960
|
+
401: "Unauthorized";
|
|
4961
|
+
403: "Forbidden: Admins only";
|
|
3693
4962
|
};
|
|
3694
|
-
401: "Unauthorized";
|
|
3695
|
-
403: "Forbidden: Admins only";
|
|
3696
4963
|
};
|
|
3697
4964
|
};
|
|
3698
4965
|
};
|
|
3699
4966
|
};
|
|
3700
4967
|
};
|
|
3701
|
-
};
|
|
3702
|
-
} & {
|
|
3703
|
-
admin: {
|
|
3704
|
-
team: {};
|
|
3705
4968
|
} & {
|
|
3706
|
-
|
|
3707
|
-
|
|
4969
|
+
trade_market: {
|
|
4970
|
+
markets: {
|
|
4971
|
+
":id": {
|
|
4972
|
+
end: {
|
|
4973
|
+
post: {
|
|
4974
|
+
body: unknown;
|
|
4975
|
+
params: {
|
|
4976
|
+
id: string;
|
|
4977
|
+
};
|
|
4978
|
+
query: unknown;
|
|
4979
|
+
headers: unknown;
|
|
4980
|
+
response: {
|
|
4981
|
+
200: {
|
|
4982
|
+
createdAt: Date;
|
|
4983
|
+
updatedAt: Date;
|
|
4984
|
+
id: string;
|
|
4985
|
+
name: string;
|
|
4986
|
+
baseAssetId: string;
|
|
4987
|
+
quoteAssetId: string;
|
|
4988
|
+
pricingSource: string;
|
|
4989
|
+
systemBaseAccountId: string;
|
|
4990
|
+
systemQuoteAccountId: string;
|
|
4991
|
+
isBuyEnabled: boolean;
|
|
4992
|
+
isSellEnabled: boolean;
|
|
4993
|
+
minBaseAmount: string;
|
|
4994
|
+
maxBaseAmount: string | null;
|
|
4995
|
+
dailyUserBuyBaseLimit: string | null;
|
|
4996
|
+
dailyUserSellBaseLimit: string | null;
|
|
4997
|
+
maxSlippageBps: string;
|
|
4998
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
4999
|
+
};
|
|
5000
|
+
422: {
|
|
5001
|
+
type: "validation";
|
|
5002
|
+
on: string;
|
|
5003
|
+
summary?: string;
|
|
5004
|
+
message?: string;
|
|
5005
|
+
found?: unknown;
|
|
5006
|
+
property?: string;
|
|
5007
|
+
expected?: string;
|
|
5008
|
+
};
|
|
5009
|
+
401: "Unauthorized";
|
|
5010
|
+
403: "Forbidden: Admins only";
|
|
5011
|
+
};
|
|
5012
|
+
};
|
|
5013
|
+
};
|
|
5014
|
+
};
|
|
5015
|
+
};
|
|
5016
|
+
};
|
|
5017
|
+
} & {
|
|
5018
|
+
trade_market: {
|
|
5019
|
+
markets: {
|
|
3708
5020
|
get: {
|
|
3709
5021
|
body: unknown;
|
|
3710
5022
|
params: {};
|
|
3711
5023
|
query: {
|
|
3712
|
-
|
|
5024
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5025
|
+
limit?: number | undefined;
|
|
5026
|
+
offset?: number | undefined;
|
|
5027
|
+
pageSize?: number | undefined;
|
|
5028
|
+
pageIndex?: number | undefined;
|
|
3713
5029
|
};
|
|
3714
5030
|
headers: unknown;
|
|
3715
5031
|
response: {
|
|
3716
5032
|
200: {
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
5033
|
+
data: {
|
|
5034
|
+
id: string;
|
|
5035
|
+
name: string;
|
|
5036
|
+
createdAt: Date;
|
|
5037
|
+
updatedAt: Date;
|
|
5038
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5039
|
+
baseAssetId: string;
|
|
5040
|
+
quoteAssetId: string;
|
|
5041
|
+
pricingSource: string;
|
|
5042
|
+
systemBaseAccountId: string;
|
|
5043
|
+
systemQuoteAccountId: string;
|
|
5044
|
+
isBuyEnabled: boolean;
|
|
5045
|
+
isSellEnabled: boolean;
|
|
5046
|
+
minBaseAmount: string;
|
|
5047
|
+
maxBaseAmount: string | null;
|
|
5048
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5049
|
+
dailyUserSellBaseLimit: string | null;
|
|
5050
|
+
maxSlippageBps: string;
|
|
5051
|
+
}[];
|
|
5052
|
+
pagination: {
|
|
5053
|
+
total: number;
|
|
5054
|
+
pageSize: number;
|
|
5055
|
+
pageIndex: number;
|
|
5056
|
+
totalPages: number;
|
|
5057
|
+
hasNextPage: boolean;
|
|
5058
|
+
};
|
|
3723
5059
|
};
|
|
3724
5060
|
422: {
|
|
3725
5061
|
type: "validation";
|
|
@@ -3737,18 +5073,20 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3737
5073
|
};
|
|
3738
5074
|
};
|
|
3739
5075
|
} & {
|
|
3740
|
-
|
|
3741
|
-
|
|
5076
|
+
trade_market: {
|
|
5077
|
+
orders: {
|
|
3742
5078
|
get: {
|
|
3743
5079
|
body: unknown;
|
|
3744
5080
|
params: {};
|
|
3745
5081
|
query: {
|
|
3746
|
-
|
|
5082
|
+
userId?: string | undefined;
|
|
5083
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
5084
|
+
marketId?: string | undefined;
|
|
5085
|
+
side?: "buy" | "sell" | undefined;
|
|
3747
5086
|
limit?: number | undefined;
|
|
3748
5087
|
offset?: number | undefined;
|
|
3749
5088
|
pageSize?: number | undefined;
|
|
3750
5089
|
pageIndex?: number | undefined;
|
|
3751
|
-
referralCode: string;
|
|
3752
5090
|
};
|
|
3753
5091
|
headers: unknown;
|
|
3754
5092
|
response: {
|
|
@@ -3757,36 +5095,25 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3757
5095
|
id: string;
|
|
3758
5096
|
createdAt: Date;
|
|
3759
5097
|
updatedAt: Date;
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
banReason: string | null;
|
|
3780
|
-
banExpires: Date | null;
|
|
3781
|
-
};
|
|
3782
|
-
depthConfig: {
|
|
3783
|
-
id: string;
|
|
3784
|
-
createdAt: Date;
|
|
3785
|
-
updatedAt: Date;
|
|
3786
|
-
depth: number;
|
|
3787
|
-
commissionRate: string;
|
|
3788
|
-
} | null;
|
|
3789
|
-
directCount: number;
|
|
5098
|
+
userId: string;
|
|
5099
|
+
status: "created" | "completed" | "failed";
|
|
5100
|
+
idempotencyKey: string;
|
|
5101
|
+
orderNo: string;
|
|
5102
|
+
priceSnapshot: string;
|
|
5103
|
+
priceEffectiveAtSnapshot: Date;
|
|
5104
|
+
failureCode: string | null;
|
|
5105
|
+
failureReason: string | null;
|
|
5106
|
+
marketId: string;
|
|
5107
|
+
side: "buy" | "sell";
|
|
5108
|
+
baseAmount: string;
|
|
5109
|
+
quoteAmount: string;
|
|
5110
|
+
pricingSourceSnapshot: string;
|
|
5111
|
+
userBaseAccountId: string;
|
|
5112
|
+
userQuoteAccountId: string;
|
|
5113
|
+
systemBaseAccountIdSnapshot: string;
|
|
5114
|
+
systemQuoteAccountIdSnapshot: string;
|
|
5115
|
+
userDebitLedgerEntryId: string | null;
|
|
5116
|
+
userCreditLedgerEntryId: string | null;
|
|
3790
5117
|
}[];
|
|
3791
5118
|
pagination: {
|
|
3792
5119
|
total: number;
|
|
@@ -3812,59 +5139,6 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3812
5139
|
};
|
|
3813
5140
|
};
|
|
3814
5141
|
};
|
|
3815
|
-
} & {
|
|
3816
|
-
admin: {
|
|
3817
|
-
transfer: {};
|
|
3818
|
-
} & {
|
|
3819
|
-
transfer: {
|
|
3820
|
-
get: {
|
|
3821
|
-
body: unknown;
|
|
3822
|
-
params: {};
|
|
3823
|
-
query: {
|
|
3824
|
-
limit?: number | undefined;
|
|
3825
|
-
offset?: number | undefined;
|
|
3826
|
-
pageSize?: number | undefined;
|
|
3827
|
-
pageIndex?: number | undefined;
|
|
3828
|
-
};
|
|
3829
|
-
headers: unknown;
|
|
3830
|
-
response: {
|
|
3831
|
-
200: {
|
|
3832
|
-
data: {
|
|
3833
|
-
id: string;
|
|
3834
|
-
createdAt: Date;
|
|
3835
|
-
updatedAt: Date;
|
|
3836
|
-
assetId: string | null;
|
|
3837
|
-
amount: string;
|
|
3838
|
-
idempotencyKey: string;
|
|
3839
|
-
orderNo: string;
|
|
3840
|
-
targetAccountId: string | null;
|
|
3841
|
-
sourceAccountId: string | null;
|
|
3842
|
-
sourceUserId: string;
|
|
3843
|
-
targetUserId: string;
|
|
3844
|
-
}[];
|
|
3845
|
-
pagination: {
|
|
3846
|
-
total: number;
|
|
3847
|
-
pageSize: number;
|
|
3848
|
-
pageIndex: number;
|
|
3849
|
-
totalPages: number;
|
|
3850
|
-
hasNextPage: boolean;
|
|
3851
|
-
};
|
|
3852
|
-
};
|
|
3853
|
-
422: {
|
|
3854
|
-
type: "validation";
|
|
3855
|
-
on: string;
|
|
3856
|
-
summary?: string;
|
|
3857
|
-
message?: string;
|
|
3858
|
-
found?: unknown;
|
|
3859
|
-
property?: string;
|
|
3860
|
-
expected?: string;
|
|
3861
|
-
};
|
|
3862
|
-
401: "Unauthorized";
|
|
3863
|
-
403: "Forbidden: Admins only";
|
|
3864
|
-
};
|
|
3865
|
-
};
|
|
3866
|
-
};
|
|
3867
|
-
};
|
|
3868
5142
|
} & {
|
|
3869
5143
|
admin: {
|
|
3870
5144
|
news_categories: {
|
|
@@ -4955,7 +6229,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4955
6229
|
params: {};
|
|
4956
6230
|
query: {
|
|
4957
6231
|
userId?: string | undefined;
|
|
4958
|
-
status?: "pending" | "
|
|
6232
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
4959
6233
|
planId?: string | undefined;
|
|
4960
6234
|
limit?: number | undefined;
|
|
4961
6235
|
offset?: number | undefined;
|
|
@@ -4970,7 +6244,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4970
6244
|
createdAt: Date;
|
|
4971
6245
|
updatedAt: Date;
|
|
4972
6246
|
userId: string;
|
|
4973
|
-
status: "pending" | "
|
|
6247
|
+
status: "pending" | "completed" | "failed";
|
|
4974
6248
|
amount: string;
|
|
4975
6249
|
idempotencyKey: string;
|
|
4976
6250
|
ledgerEntryId: string | null;
|
|
@@ -5009,7 +6283,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5009
6283
|
params: {};
|
|
5010
6284
|
query: {
|
|
5011
6285
|
userId?: string | undefined;
|
|
5012
|
-
status?: "pending" | "
|
|
6286
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
5013
6287
|
planId?: string | undefined;
|
|
5014
6288
|
limit?: number | undefined;
|
|
5015
6289
|
offset?: number | undefined;
|
|
@@ -5024,7 +6298,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5024
6298
|
createdAt: Date;
|
|
5025
6299
|
updatedAt: Date;
|
|
5026
6300
|
userId: string;
|
|
5027
|
-
status: "pending" | "
|
|
6301
|
+
status: "pending" | "completed" | "failed";
|
|
5028
6302
|
idempotencyKey: string;
|
|
5029
6303
|
planId: string;
|
|
5030
6304
|
subscriptionId: string;
|