@r2wa-org/eden 0.0.50 → 0.0.52
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 +362 -15
- 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 +17 -3
- package/dist/src/auth/permissions.d.ts +11 -1
- package/dist/src/auth/roles.d.ts +30 -0
- package/dist/src/cron/index.d.ts +13 -1
- package/dist/src/db/schemas.d.ts +1 -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 +630 -22
- 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/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/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
package/dist/src/index.d.ts
CHANGED
|
@@ -1408,6 +1408,353 @@ declare const app: Elysia<"/api", {
|
|
|
1408
1408
|
};
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
} & {
|
|
1412
|
+
admin: {
|
|
1413
|
+
asset_convert_product: {};
|
|
1414
|
+
} & {
|
|
1415
|
+
asset_convert_product: {
|
|
1416
|
+
products: {
|
|
1417
|
+
post: {
|
|
1418
|
+
body: {
|
|
1419
|
+
description?: string | null | undefined;
|
|
1420
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1421
|
+
name: string;
|
|
1422
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1423
|
+
targetAssetId: string;
|
|
1424
|
+
payAssetId: string;
|
|
1425
|
+
defaultReceiveAccountTypeId: string;
|
|
1426
|
+
minPayAmount: string;
|
|
1427
|
+
};
|
|
1428
|
+
params: {};
|
|
1429
|
+
query: unknown;
|
|
1430
|
+
headers: unknown;
|
|
1431
|
+
response: {
|
|
1432
|
+
200: {
|
|
1433
|
+
id: string;
|
|
1434
|
+
name: string;
|
|
1435
|
+
createdAt: Date;
|
|
1436
|
+
updatedAt: Date;
|
|
1437
|
+
description: string | null;
|
|
1438
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1439
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1440
|
+
targetAssetId: string;
|
|
1441
|
+
payAssetId: string;
|
|
1442
|
+
defaultReceiveAccountTypeId: string;
|
|
1443
|
+
minPayAmount: string;
|
|
1444
|
+
};
|
|
1445
|
+
422: {
|
|
1446
|
+
type: "validation";
|
|
1447
|
+
on: string;
|
|
1448
|
+
summary?: string;
|
|
1449
|
+
message?: string;
|
|
1450
|
+
found?: unknown;
|
|
1451
|
+
property?: string;
|
|
1452
|
+
expected?: string;
|
|
1453
|
+
};
|
|
1454
|
+
401: "Unauthorized";
|
|
1455
|
+
403: "Forbidden: Admins only";
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
} & {
|
|
1461
|
+
asset_convert_product: {
|
|
1462
|
+
products: {
|
|
1463
|
+
":id": {
|
|
1464
|
+
patch: {
|
|
1465
|
+
body: {
|
|
1466
|
+
name?: string | undefined;
|
|
1467
|
+
description?: string | null | undefined;
|
|
1468
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1469
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
1470
|
+
targetAssetId?: string | undefined;
|
|
1471
|
+
payAssetId?: string | undefined;
|
|
1472
|
+
defaultReceiveAccountTypeId?: string | undefined;
|
|
1473
|
+
minPayAmount?: string | undefined;
|
|
1474
|
+
};
|
|
1475
|
+
params: {
|
|
1476
|
+
id: string;
|
|
1477
|
+
};
|
|
1478
|
+
query: unknown;
|
|
1479
|
+
headers: unknown;
|
|
1480
|
+
response: {
|
|
1481
|
+
200: {
|
|
1482
|
+
createdAt: Date;
|
|
1483
|
+
updatedAt: Date;
|
|
1484
|
+
id: string;
|
|
1485
|
+
name: string;
|
|
1486
|
+
description: string | null;
|
|
1487
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1488
|
+
targetAssetId: string;
|
|
1489
|
+
payAssetId: string;
|
|
1490
|
+
defaultReceiveAccountTypeId: string;
|
|
1491
|
+
minPayAmount: string;
|
|
1492
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1493
|
+
};
|
|
1494
|
+
422: {
|
|
1495
|
+
type: "validation";
|
|
1496
|
+
on: string;
|
|
1497
|
+
summary?: string;
|
|
1498
|
+
message?: string;
|
|
1499
|
+
found?: unknown;
|
|
1500
|
+
property?: string;
|
|
1501
|
+
expected?: string;
|
|
1502
|
+
};
|
|
1503
|
+
401: "Unauthorized";
|
|
1504
|
+
403: "Forbidden: Admins only";
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
} & {
|
|
1511
|
+
asset_convert_product: {
|
|
1512
|
+
products: {
|
|
1513
|
+
":id": {
|
|
1514
|
+
activate: {
|
|
1515
|
+
post: {
|
|
1516
|
+
body: unknown;
|
|
1517
|
+
params: {
|
|
1518
|
+
id: string;
|
|
1519
|
+
};
|
|
1520
|
+
query: unknown;
|
|
1521
|
+
headers: unknown;
|
|
1522
|
+
response: {
|
|
1523
|
+
200: {
|
|
1524
|
+
createdAt: Date;
|
|
1525
|
+
updatedAt: Date;
|
|
1526
|
+
id: string;
|
|
1527
|
+
name: string;
|
|
1528
|
+
description: string | null;
|
|
1529
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1530
|
+
targetAssetId: string;
|
|
1531
|
+
payAssetId: string;
|
|
1532
|
+
defaultReceiveAccountTypeId: string;
|
|
1533
|
+
minPayAmount: string;
|
|
1534
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1535
|
+
};
|
|
1536
|
+
422: {
|
|
1537
|
+
type: "validation";
|
|
1538
|
+
on: string;
|
|
1539
|
+
summary?: string;
|
|
1540
|
+
message?: string;
|
|
1541
|
+
found?: unknown;
|
|
1542
|
+
property?: string;
|
|
1543
|
+
expected?: string;
|
|
1544
|
+
};
|
|
1545
|
+
401: "Unauthorized";
|
|
1546
|
+
403: "Forbidden: Admins only";
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
} & {
|
|
1554
|
+
asset_convert_product: {
|
|
1555
|
+
products: {
|
|
1556
|
+
":id": {
|
|
1557
|
+
pause: {
|
|
1558
|
+
post: {
|
|
1559
|
+
body: unknown;
|
|
1560
|
+
params: {
|
|
1561
|
+
id: string;
|
|
1562
|
+
};
|
|
1563
|
+
query: unknown;
|
|
1564
|
+
headers: unknown;
|
|
1565
|
+
response: {
|
|
1566
|
+
200: {
|
|
1567
|
+
createdAt: Date;
|
|
1568
|
+
updatedAt: Date;
|
|
1569
|
+
id: string;
|
|
1570
|
+
name: string;
|
|
1571
|
+
description: string | null;
|
|
1572
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1573
|
+
targetAssetId: string;
|
|
1574
|
+
payAssetId: string;
|
|
1575
|
+
defaultReceiveAccountTypeId: string;
|
|
1576
|
+
minPayAmount: string;
|
|
1577
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1578
|
+
};
|
|
1579
|
+
422: {
|
|
1580
|
+
type: "validation";
|
|
1581
|
+
on: string;
|
|
1582
|
+
summary?: string;
|
|
1583
|
+
message?: string;
|
|
1584
|
+
found?: unknown;
|
|
1585
|
+
property?: string;
|
|
1586
|
+
expected?: string;
|
|
1587
|
+
};
|
|
1588
|
+
401: "Unauthorized";
|
|
1589
|
+
403: "Forbidden: Admins only";
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
};
|
|
1595
|
+
};
|
|
1596
|
+
} & {
|
|
1597
|
+
asset_convert_product: {
|
|
1598
|
+
products: {
|
|
1599
|
+
":id": {
|
|
1600
|
+
end: {
|
|
1601
|
+
post: {
|
|
1602
|
+
body: unknown;
|
|
1603
|
+
params: {
|
|
1604
|
+
id: string;
|
|
1605
|
+
};
|
|
1606
|
+
query: unknown;
|
|
1607
|
+
headers: unknown;
|
|
1608
|
+
response: {
|
|
1609
|
+
200: {
|
|
1610
|
+
createdAt: Date;
|
|
1611
|
+
updatedAt: Date;
|
|
1612
|
+
id: string;
|
|
1613
|
+
name: string;
|
|
1614
|
+
description: string | null;
|
|
1615
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1616
|
+
targetAssetId: string;
|
|
1617
|
+
payAssetId: string;
|
|
1618
|
+
defaultReceiveAccountTypeId: string;
|
|
1619
|
+
minPayAmount: string;
|
|
1620
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1621
|
+
};
|
|
1622
|
+
422: {
|
|
1623
|
+
type: "validation";
|
|
1624
|
+
on: string;
|
|
1625
|
+
summary?: string;
|
|
1626
|
+
message?: string;
|
|
1627
|
+
found?: unknown;
|
|
1628
|
+
property?: string;
|
|
1629
|
+
expected?: string;
|
|
1630
|
+
};
|
|
1631
|
+
401: "Unauthorized";
|
|
1632
|
+
403: "Forbidden: Admins only";
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
} & {
|
|
1640
|
+
asset_convert_product: {
|
|
1641
|
+
products: {
|
|
1642
|
+
get: {
|
|
1643
|
+
body: unknown;
|
|
1644
|
+
params: {};
|
|
1645
|
+
query: {
|
|
1646
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1647
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
1648
|
+
limit?: number | undefined;
|
|
1649
|
+
offset?: number | undefined;
|
|
1650
|
+
pageSize?: number | undefined;
|
|
1651
|
+
pageIndex?: number | undefined;
|
|
1652
|
+
};
|
|
1653
|
+
headers: unknown;
|
|
1654
|
+
response: {
|
|
1655
|
+
200: {
|
|
1656
|
+
data: {
|
|
1657
|
+
id: string;
|
|
1658
|
+
name: string;
|
|
1659
|
+
createdAt: Date;
|
|
1660
|
+
updatedAt: Date;
|
|
1661
|
+
description: string | null;
|
|
1662
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1663
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1664
|
+
targetAssetId: string;
|
|
1665
|
+
payAssetId: string;
|
|
1666
|
+
defaultReceiveAccountTypeId: string;
|
|
1667
|
+
minPayAmount: string;
|
|
1668
|
+
}[];
|
|
1669
|
+
pagination: {
|
|
1670
|
+
total: number;
|
|
1671
|
+
pageSize: number;
|
|
1672
|
+
pageIndex: number;
|
|
1673
|
+
totalPages: number;
|
|
1674
|
+
hasNextPage: boolean;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
422: {
|
|
1678
|
+
type: "validation";
|
|
1679
|
+
on: string;
|
|
1680
|
+
summary?: string;
|
|
1681
|
+
message?: string;
|
|
1682
|
+
found?: unknown;
|
|
1683
|
+
property?: string;
|
|
1684
|
+
expected?: string;
|
|
1685
|
+
};
|
|
1686
|
+
401: "Unauthorized";
|
|
1687
|
+
403: "Forbidden: Admins only";
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
} & {
|
|
1693
|
+
asset_convert_product: {
|
|
1694
|
+
orders: {
|
|
1695
|
+
get: {
|
|
1696
|
+
body: unknown;
|
|
1697
|
+
params: {};
|
|
1698
|
+
query: {
|
|
1699
|
+
userId?: string | undefined;
|
|
1700
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
1701
|
+
productId?: string | undefined;
|
|
1702
|
+
limit?: number | undefined;
|
|
1703
|
+
offset?: number | undefined;
|
|
1704
|
+
pageSize?: number | undefined;
|
|
1705
|
+
pageIndex?: number | undefined;
|
|
1706
|
+
};
|
|
1707
|
+
headers: unknown;
|
|
1708
|
+
response: {
|
|
1709
|
+
200: {
|
|
1710
|
+
data: {
|
|
1711
|
+
id: string;
|
|
1712
|
+
createdAt: Date;
|
|
1713
|
+
updatedAt: Date;
|
|
1714
|
+
userId: string;
|
|
1715
|
+
status: "created" | "completed" | "failed";
|
|
1716
|
+
idempotencyKey: string;
|
|
1717
|
+
orderNo: string;
|
|
1718
|
+
productId: string;
|
|
1719
|
+
payAssetIdSnapshot: string;
|
|
1720
|
+
targetAssetIdSnapshot: string;
|
|
1721
|
+
quoteAssetIdSnapshot: string;
|
|
1722
|
+
priceSnapshot: string;
|
|
1723
|
+
priceEffectiveAtSnapshot: Date;
|
|
1724
|
+
payAmount: string;
|
|
1725
|
+
sourcePayAccountId: string;
|
|
1726
|
+
targetAmount: string;
|
|
1727
|
+
settlementModeSnapshot: "available" | "locked";
|
|
1728
|
+
receiveAccountId: string;
|
|
1729
|
+
debitLedgerEntryId: string | null;
|
|
1730
|
+
creditLedgerEntryId: string | null;
|
|
1731
|
+
failureCode: string | null;
|
|
1732
|
+
failureReason: string | null;
|
|
1733
|
+
}[];
|
|
1734
|
+
pagination: {
|
|
1735
|
+
total: number;
|
|
1736
|
+
pageSize: number;
|
|
1737
|
+
pageIndex: number;
|
|
1738
|
+
totalPages: number;
|
|
1739
|
+
hasNextPage: boolean;
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
422: {
|
|
1743
|
+
type: "validation";
|
|
1744
|
+
on: string;
|
|
1745
|
+
summary?: string;
|
|
1746
|
+
message?: string;
|
|
1747
|
+
found?: unknown;
|
|
1748
|
+
property?: string;
|
|
1749
|
+
expected?: string;
|
|
1750
|
+
};
|
|
1751
|
+
401: "Unauthorized";
|
|
1752
|
+
403: "Forbidden: Admins only";
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1411
1758
|
} & {
|
|
1412
1759
|
admin: {
|
|
1413
1760
|
asset_types: {};
|
|
@@ -2761,9 +3108,9 @@ declare const app: Elysia<"/api", {
|
|
|
2761
3108
|
id: string;
|
|
2762
3109
|
createdAt: Date;
|
|
2763
3110
|
updatedAt: Date;
|
|
2764
|
-
status: "pending" | "
|
|
2765
|
-
success: number;
|
|
3111
|
+
status: "pending" | "failed" | "running" | "success";
|
|
2766
3112
|
failed: number;
|
|
3113
|
+
success: number;
|
|
2767
3114
|
ignored: number;
|
|
2768
3115
|
fileId: string;
|
|
2769
3116
|
total: number;
|
|
@@ -2794,7 +3141,7 @@ declare const app: Elysia<"/api", {
|
|
|
2794
3141
|
body: unknown;
|
|
2795
3142
|
params: {};
|
|
2796
3143
|
query: {
|
|
2797
|
-
status?: "pending" | "
|
|
3144
|
+
status?: "pending" | "failed" | "running" | "success" | undefined;
|
|
2798
3145
|
limit?: number | undefined;
|
|
2799
3146
|
offset?: number | undefined;
|
|
2800
3147
|
pageSize?: number | undefined;
|
|
@@ -2808,9 +3155,9 @@ declare const app: Elysia<"/api", {
|
|
|
2808
3155
|
id: string;
|
|
2809
3156
|
createdAt: Date;
|
|
2810
3157
|
updatedAt: Date;
|
|
2811
|
-
status: "pending" | "
|
|
2812
|
-
success: number;
|
|
3158
|
+
status: "pending" | "failed" | "running" | "success";
|
|
2813
3159
|
failed: number;
|
|
3160
|
+
success: number;
|
|
2814
3161
|
ignored: number;
|
|
2815
3162
|
fileId: string;
|
|
2816
3163
|
total: number;
|
|
@@ -2859,9 +3206,9 @@ declare const app: Elysia<"/api", {
|
|
|
2859
3206
|
id: string;
|
|
2860
3207
|
createdAt: Date;
|
|
2861
3208
|
updatedAt: Date;
|
|
2862
|
-
status: "pending" | "
|
|
2863
|
-
success: number;
|
|
3209
|
+
status: "pending" | "failed" | "running" | "success";
|
|
2864
3210
|
failed: number;
|
|
3211
|
+
success: number;
|
|
2865
3212
|
ignored: number;
|
|
2866
3213
|
fileId: string;
|
|
2867
3214
|
total: number;
|
|
@@ -2897,7 +3244,7 @@ declare const app: Elysia<"/api", {
|
|
|
2897
3244
|
id: string;
|
|
2898
3245
|
};
|
|
2899
3246
|
query: {
|
|
2900
|
-
status?: "
|
|
3247
|
+
status?: "failed" | "success" | "ignored" | undefined;
|
|
2901
3248
|
limit?: number | undefined;
|
|
2902
3249
|
offset?: number | undefined;
|
|
2903
3250
|
pageSize?: number | undefined;
|
|
@@ -2913,7 +3260,7 @@ declare const app: Elysia<"/api", {
|
|
|
2913
3260
|
updatedAt: Date;
|
|
2914
3261
|
phoneNumber: string | null;
|
|
2915
3262
|
userId: string | null;
|
|
2916
|
-
status: "
|
|
3263
|
+
status: "failed" | "success" | "ignored";
|
|
2917
3264
|
assetId: string | null;
|
|
2918
3265
|
ledgerAccountTypeId: string | null;
|
|
2919
3266
|
amount: string | null;
|
|
@@ -3007,7 +3354,7 @@ declare const app: Elysia<"/api", {
|
|
|
3007
3354
|
assetId: string;
|
|
3008
3355
|
fromAccountId: string | null;
|
|
3009
3356
|
toAccountId: string | null;
|
|
3010
|
-
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";
|
|
3357
|
+
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";
|
|
3011
3358
|
amount: string;
|
|
3012
3359
|
fromAvailableBefore: string | null;
|
|
3013
3360
|
fromAvailableAfter: string | null;
|
|
@@ -3018,7 +3365,7 @@ declare const app: Elysia<"/api", {
|
|
|
3018
3365
|
toLockedBefore: string | null;
|
|
3019
3366
|
toLockedAfter: string | null;
|
|
3020
3367
|
referenceId: string;
|
|
3021
|
-
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement";
|
|
3368
|
+
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";
|
|
3022
3369
|
idempotencyKey: string;
|
|
3023
3370
|
operatorId: string | null;
|
|
3024
3371
|
memo: string | null;
|
|
@@ -5288,7 +5635,7 @@ declare const app: Elysia<"/api", {
|
|
|
5288
5635
|
params: {};
|
|
5289
5636
|
query: {
|
|
5290
5637
|
userId?: string | undefined;
|
|
5291
|
-
status?: "pending" | "
|
|
5638
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
5292
5639
|
planId?: string | undefined;
|
|
5293
5640
|
limit?: number | undefined;
|
|
5294
5641
|
offset?: number | undefined;
|
|
@@ -5303,7 +5650,7 @@ declare const app: Elysia<"/api", {
|
|
|
5303
5650
|
createdAt: Date;
|
|
5304
5651
|
updatedAt: Date;
|
|
5305
5652
|
userId: string;
|
|
5306
|
-
status: "pending" | "
|
|
5653
|
+
status: "pending" | "completed" | "failed";
|
|
5307
5654
|
amount: string;
|
|
5308
5655
|
idempotencyKey: string;
|
|
5309
5656
|
ledgerEntryId: string | null;
|
|
@@ -5342,7 +5689,7 @@ declare const app: Elysia<"/api", {
|
|
|
5342
5689
|
params: {};
|
|
5343
5690
|
query: {
|
|
5344
5691
|
userId?: string | undefined;
|
|
5345
|
-
status?: "pending" | "
|
|
5692
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
5346
5693
|
planId?: string | undefined;
|
|
5347
5694
|
limit?: number | undefined;
|
|
5348
5695
|
offset?: number | undefined;
|
|
@@ -5357,7 +5704,7 @@ declare const app: Elysia<"/api", {
|
|
|
5357
5704
|
createdAt: Date;
|
|
5358
5705
|
updatedAt: Date;
|
|
5359
5706
|
userId: string;
|
|
5360
|
-
status: "pending" | "
|
|
5707
|
+
status: "pending" | "completed" | "failed";
|
|
5361
5708
|
idempotencyKey: string;
|
|
5362
5709
|
planId: string;
|
|
5363
5710
|
subscriptionId: string;
|
|
@@ -6737,6 +7084,267 @@ declare const app: Elysia<"/api", {
|
|
|
6737
7084
|
};
|
|
6738
7085
|
};
|
|
6739
7086
|
};
|
|
7087
|
+
} & {
|
|
7088
|
+
api: {
|
|
7089
|
+
asset_convert_product: {};
|
|
7090
|
+
} & {
|
|
7091
|
+
asset_convert_product: {
|
|
7092
|
+
products: {
|
|
7093
|
+
get: {
|
|
7094
|
+
body: unknown;
|
|
7095
|
+
params: {};
|
|
7096
|
+
query: {
|
|
7097
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
7098
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
7099
|
+
limit?: number | undefined;
|
|
7100
|
+
offset?: number | undefined;
|
|
7101
|
+
pageSize?: number | undefined;
|
|
7102
|
+
pageIndex?: number | undefined;
|
|
7103
|
+
};
|
|
7104
|
+
headers: unknown;
|
|
7105
|
+
response: {
|
|
7106
|
+
200: {
|
|
7107
|
+
data: {
|
|
7108
|
+
id: string;
|
|
7109
|
+
name: string;
|
|
7110
|
+
createdAt: Date;
|
|
7111
|
+
updatedAt: Date;
|
|
7112
|
+
description: string | null;
|
|
7113
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
7114
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
7115
|
+
targetAssetId: string;
|
|
7116
|
+
payAssetId: string;
|
|
7117
|
+
defaultReceiveAccountTypeId: string;
|
|
7118
|
+
minPayAmount: string;
|
|
7119
|
+
}[];
|
|
7120
|
+
pagination: {
|
|
7121
|
+
total: number;
|
|
7122
|
+
pageSize: number;
|
|
7123
|
+
pageIndex: number;
|
|
7124
|
+
totalPages: number;
|
|
7125
|
+
hasNextPage: boolean;
|
|
7126
|
+
};
|
|
7127
|
+
};
|
|
7128
|
+
422: {
|
|
7129
|
+
type: "validation";
|
|
7130
|
+
on: string;
|
|
7131
|
+
summary?: string;
|
|
7132
|
+
message?: string;
|
|
7133
|
+
found?: unknown;
|
|
7134
|
+
property?: string;
|
|
7135
|
+
expected?: string;
|
|
7136
|
+
};
|
|
7137
|
+
401: "Unauthorized";
|
|
7138
|
+
};
|
|
7139
|
+
};
|
|
7140
|
+
};
|
|
7141
|
+
};
|
|
7142
|
+
} & {
|
|
7143
|
+
asset_convert_product: {
|
|
7144
|
+
products: {
|
|
7145
|
+
":id": {
|
|
7146
|
+
get: {
|
|
7147
|
+
body: unknown;
|
|
7148
|
+
params: {
|
|
7149
|
+
id: string;
|
|
7150
|
+
};
|
|
7151
|
+
query: unknown;
|
|
7152
|
+
headers: unknown;
|
|
7153
|
+
response: {
|
|
7154
|
+
200: {
|
|
7155
|
+
id: string;
|
|
7156
|
+
name: string;
|
|
7157
|
+
createdAt: Date;
|
|
7158
|
+
updatedAt: Date;
|
|
7159
|
+
description: string | null;
|
|
7160
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
7161
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
7162
|
+
targetAssetId: string;
|
|
7163
|
+
payAssetId: string;
|
|
7164
|
+
defaultReceiveAccountTypeId: string;
|
|
7165
|
+
minPayAmount: string;
|
|
7166
|
+
};
|
|
7167
|
+
422: {
|
|
7168
|
+
type: "validation";
|
|
7169
|
+
on: string;
|
|
7170
|
+
summary?: string;
|
|
7171
|
+
message?: string;
|
|
7172
|
+
found?: unknown;
|
|
7173
|
+
property?: string;
|
|
7174
|
+
expected?: string;
|
|
7175
|
+
};
|
|
7176
|
+
401: "Unauthorized";
|
|
7177
|
+
};
|
|
7178
|
+
};
|
|
7179
|
+
};
|
|
7180
|
+
};
|
|
7181
|
+
};
|
|
7182
|
+
} & {
|
|
7183
|
+
asset_convert_product: {
|
|
7184
|
+
orders: {
|
|
7185
|
+
post: {
|
|
7186
|
+
body: {
|
|
7187
|
+
idempotencyKey: string;
|
|
7188
|
+
productId: string;
|
|
7189
|
+
payAmount: string;
|
|
7190
|
+
sourcePayAccountId: string;
|
|
7191
|
+
};
|
|
7192
|
+
params: {};
|
|
7193
|
+
query: unknown;
|
|
7194
|
+
headers: unknown;
|
|
7195
|
+
response: {
|
|
7196
|
+
200: {
|
|
7197
|
+
id: string;
|
|
7198
|
+
createdAt: Date;
|
|
7199
|
+
updatedAt: Date;
|
|
7200
|
+
userId: string;
|
|
7201
|
+
status: "created" | "completed" | "failed";
|
|
7202
|
+
idempotencyKey: string;
|
|
7203
|
+
orderNo: string;
|
|
7204
|
+
productId: string;
|
|
7205
|
+
payAssetIdSnapshot: string;
|
|
7206
|
+
targetAssetIdSnapshot: string;
|
|
7207
|
+
quoteAssetIdSnapshot: string;
|
|
7208
|
+
priceSnapshot: string;
|
|
7209
|
+
priceEffectiveAtSnapshot: Date;
|
|
7210
|
+
payAmount: string;
|
|
7211
|
+
sourcePayAccountId: string;
|
|
7212
|
+
targetAmount: string;
|
|
7213
|
+
settlementModeSnapshot: "available" | "locked";
|
|
7214
|
+
receiveAccountId: string;
|
|
7215
|
+
debitLedgerEntryId: string | null;
|
|
7216
|
+
creditLedgerEntryId: string | null;
|
|
7217
|
+
failureCode: string | null;
|
|
7218
|
+
failureReason: string | null;
|
|
7219
|
+
};
|
|
7220
|
+
422: {
|
|
7221
|
+
type: "validation";
|
|
7222
|
+
on: string;
|
|
7223
|
+
summary?: string;
|
|
7224
|
+
message?: string;
|
|
7225
|
+
found?: unknown;
|
|
7226
|
+
property?: string;
|
|
7227
|
+
expected?: string;
|
|
7228
|
+
};
|
|
7229
|
+
401: "Unauthorized";
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
};
|
|
7233
|
+
};
|
|
7234
|
+
} & {
|
|
7235
|
+
asset_convert_product: {
|
|
7236
|
+
orders: {
|
|
7237
|
+
get: {
|
|
7238
|
+
body: unknown;
|
|
7239
|
+
params: {};
|
|
7240
|
+
query: {
|
|
7241
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
7242
|
+
limit?: number | undefined;
|
|
7243
|
+
offset?: number | undefined;
|
|
7244
|
+
pageSize?: number | undefined;
|
|
7245
|
+
pageIndex?: number | undefined;
|
|
7246
|
+
};
|
|
7247
|
+
headers: unknown;
|
|
7248
|
+
response: {
|
|
7249
|
+
200: {
|
|
7250
|
+
data: {
|
|
7251
|
+
id: string;
|
|
7252
|
+
createdAt: Date;
|
|
7253
|
+
updatedAt: Date;
|
|
7254
|
+
userId: string;
|
|
7255
|
+
status: "created" | "completed" | "failed";
|
|
7256
|
+
idempotencyKey: string;
|
|
7257
|
+
orderNo: string;
|
|
7258
|
+
productId: string;
|
|
7259
|
+
payAssetIdSnapshot: string;
|
|
7260
|
+
targetAssetIdSnapshot: string;
|
|
7261
|
+
quoteAssetIdSnapshot: string;
|
|
7262
|
+
priceSnapshot: string;
|
|
7263
|
+
priceEffectiveAtSnapshot: Date;
|
|
7264
|
+
payAmount: string;
|
|
7265
|
+
sourcePayAccountId: string;
|
|
7266
|
+
targetAmount: string;
|
|
7267
|
+
settlementModeSnapshot: "available" | "locked";
|
|
7268
|
+
receiveAccountId: string;
|
|
7269
|
+
debitLedgerEntryId: string | null;
|
|
7270
|
+
creditLedgerEntryId: string | null;
|
|
7271
|
+
failureCode: string | null;
|
|
7272
|
+
failureReason: string | null;
|
|
7273
|
+
}[];
|
|
7274
|
+
pagination: {
|
|
7275
|
+
total: number;
|
|
7276
|
+
pageSize: number;
|
|
7277
|
+
pageIndex: number;
|
|
7278
|
+
totalPages: number;
|
|
7279
|
+
hasNextPage: boolean;
|
|
7280
|
+
};
|
|
7281
|
+
};
|
|
7282
|
+
422: {
|
|
7283
|
+
type: "validation";
|
|
7284
|
+
on: string;
|
|
7285
|
+
summary?: string;
|
|
7286
|
+
message?: string;
|
|
7287
|
+
found?: unknown;
|
|
7288
|
+
property?: string;
|
|
7289
|
+
expected?: string;
|
|
7290
|
+
};
|
|
7291
|
+
401: "Unauthorized";
|
|
7292
|
+
};
|
|
7293
|
+
};
|
|
7294
|
+
};
|
|
7295
|
+
};
|
|
7296
|
+
} & {
|
|
7297
|
+
asset_convert_product: {
|
|
7298
|
+
orders: {
|
|
7299
|
+
":id": {
|
|
7300
|
+
get: {
|
|
7301
|
+
body: unknown;
|
|
7302
|
+
params: {
|
|
7303
|
+
id: string;
|
|
7304
|
+
};
|
|
7305
|
+
query: unknown;
|
|
7306
|
+
headers: unknown;
|
|
7307
|
+
response: {
|
|
7308
|
+
200: {
|
|
7309
|
+
id: string;
|
|
7310
|
+
createdAt: Date;
|
|
7311
|
+
updatedAt: Date;
|
|
7312
|
+
userId: string;
|
|
7313
|
+
status: "created" | "completed" | "failed";
|
|
7314
|
+
idempotencyKey: string;
|
|
7315
|
+
orderNo: string;
|
|
7316
|
+
productId: string;
|
|
7317
|
+
payAssetIdSnapshot: string;
|
|
7318
|
+
targetAssetIdSnapshot: string;
|
|
7319
|
+
quoteAssetIdSnapshot: string;
|
|
7320
|
+
priceSnapshot: string;
|
|
7321
|
+
priceEffectiveAtSnapshot: Date;
|
|
7322
|
+
payAmount: string;
|
|
7323
|
+
sourcePayAccountId: string;
|
|
7324
|
+
targetAmount: string;
|
|
7325
|
+
settlementModeSnapshot: "available" | "locked";
|
|
7326
|
+
receiveAccountId: string;
|
|
7327
|
+
debitLedgerEntryId: string | null;
|
|
7328
|
+
creditLedgerEntryId: string | null;
|
|
7329
|
+
failureCode: string | null;
|
|
7330
|
+
failureReason: string | null;
|
|
7331
|
+
};
|
|
7332
|
+
422: {
|
|
7333
|
+
type: "validation";
|
|
7334
|
+
on: string;
|
|
7335
|
+
summary?: string;
|
|
7336
|
+
message?: string;
|
|
7337
|
+
found?: unknown;
|
|
7338
|
+
property?: string;
|
|
7339
|
+
expected?: string;
|
|
7340
|
+
};
|
|
7341
|
+
401: "Unauthorized";
|
|
7342
|
+
};
|
|
7343
|
+
};
|
|
7344
|
+
};
|
|
7345
|
+
};
|
|
7346
|
+
};
|
|
7347
|
+
};
|
|
6740
7348
|
} & {
|
|
6741
7349
|
api: {
|
|
6742
7350
|
asset_prices: {};
|
|
@@ -7747,10 +8355,10 @@ declare const app: Elysia<"/api", {
|
|
|
7747
8355
|
targetLedgerEntryId?: string | undefined;
|
|
7748
8356
|
assetId: string;
|
|
7749
8357
|
referenceId: string;
|
|
8358
|
+
targetAmount: string;
|
|
7750
8359
|
targetAccountId: string;
|
|
7751
8360
|
sourceAccountId: string;
|
|
7752
8361
|
sourceAmount: string;
|
|
7753
|
-
targetAmount: string;
|
|
7754
8362
|
transferRatio: string;
|
|
7755
8363
|
sourceLedgerEntryId: string;
|
|
7756
8364
|
};
|
|
@@ -7839,8 +8447,8 @@ declare const app: Elysia<"/api", {
|
|
|
7839
8447
|
id: string;
|
|
7840
8448
|
assetId: string | null;
|
|
7841
8449
|
amount: string;
|
|
7842
|
-
ledgerEntryId: string;
|
|
7843
8450
|
orderNo: string;
|
|
8451
|
+
ledgerEntryId: string;
|
|
7844
8452
|
targetAccountId: string | null;
|
|
7845
8453
|
sourceAccountId: string | null;
|
|
7846
8454
|
sourceUserId: string;
|
|
@@ -7887,7 +8495,7 @@ declare const app: Elysia<"/api", {
|
|
|
7887
8495
|
assetId: string;
|
|
7888
8496
|
fromAccountId: string | null;
|
|
7889
8497
|
toAccountId: string | null;
|
|
7890
|
-
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";
|
|
8498
|
+
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";
|
|
7891
8499
|
amount: string;
|
|
7892
8500
|
fromAvailableBefore: string | null;
|
|
7893
8501
|
fromAvailableAfter: string | null;
|
|
@@ -7898,7 +8506,7 @@ declare const app: Elysia<"/api", {
|
|
|
7898
8506
|
toLockedBefore: string | null;
|
|
7899
8507
|
toLockedAfter: string | null;
|
|
7900
8508
|
referenceId: string;
|
|
7901
|
-
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement";
|
|
8509
|
+
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";
|
|
7902
8510
|
idempotencyKey: string;
|
|
7903
8511
|
operatorId: string | null;
|
|
7904
8512
|
memo: string | null;
|
|
@@ -10065,7 +10673,7 @@ declare const app: Elysia<"/api", {
|
|
|
10065
10673
|
id: string;
|
|
10066
10674
|
};
|
|
10067
10675
|
query: {
|
|
10068
|
-
status?: "pending" | "
|
|
10676
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
10069
10677
|
limit?: number | undefined;
|
|
10070
10678
|
offset?: number | undefined;
|
|
10071
10679
|
pageSize?: number | undefined;
|
|
@@ -10079,7 +10687,7 @@ declare const app: Elysia<"/api", {
|
|
|
10079
10687
|
createdAt: Date;
|
|
10080
10688
|
updatedAt: Date;
|
|
10081
10689
|
userId: string;
|
|
10082
|
-
status: "pending" | "
|
|
10690
|
+
status: "pending" | "completed" | "failed";
|
|
10083
10691
|
amount: string;
|
|
10084
10692
|
idempotencyKey: string;
|
|
10085
10693
|
ledgerEntryId: string | null;
|
|
@@ -10129,7 +10737,7 @@ declare const app: Elysia<"/api", {
|
|
|
10129
10737
|
createdAt: Date;
|
|
10130
10738
|
updatedAt: Date;
|
|
10131
10739
|
userId: string;
|
|
10132
|
-
status: "pending" | "
|
|
10740
|
+
status: "pending" | "completed" | "failed";
|
|
10133
10741
|
idempotencyKey: string;
|
|
10134
10742
|
planId: string;
|
|
10135
10743
|
subscriptionId: string;
|