@r2wa-org/eden 0.0.59 → 0.0.60

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.
Files changed (42) hide show
  1. package/dist/src/admin/admin/dto.schemas.d.ts +8 -0
  2. package/dist/src/admin/admin/errors/index.d.ts +1 -0
  3. package/dist/src/admin/admin/errors/locales/zh.d.ts +1 -0
  4. package/dist/src/admin/admin/router.d.ts +31 -0
  5. package/dist/src/admin/admin/service.d.ts +3 -0
  6. package/dist/src/admin/index.d.ts +158 -34
  7. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +44 -12
  8. package/dist/src/asset-convert-product/admin/router.d.ts +83 -23
  9. package/dist/src/asset-convert-product/admin/service.d.ts +73 -17
  10. package/dist/src/asset-convert-product/db.schemas.d.ts +76 -8
  11. package/dist/src/asset-convert-product/errors/index.d.ts +4 -0
  12. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +4 -0
  13. package/dist/src/asset-convert-product/internal/service.d.ts +4 -3
  14. package/dist/src/asset-convert-product/schema.d.ts +41 -6
  15. package/dist/src/asset-convert-product/user/dto.schemas.d.ts +264 -14
  16. package/dist/src/asset-convert-product/user/router.d.ts +10 -8
  17. package/dist/src/asset-convert-product/user/service.d.ts +9 -5
  18. package/dist/src/index.d.ts +255 -47
  19. package/dist/src/ledger-account/admin/router.d.ts +1 -1
  20. package/dist/src/ledger-account/user/dto.schemas.d.ts +5 -0
  21. package/dist/src/ledger-account/user/router.d.ts +61 -0
  22. package/dist/src/ledger-account/user/service.d.ts +51 -1
  23. package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
  24. package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
  25. package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
  26. package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
  27. package/dist/src/ledger-account-import/schema.d.ts +2 -2
  28. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +95 -2
  29. package/dist/src/welfare-cycle/admin/router.d.ts +34 -1
  30. package/dist/src/welfare-cycle/admin/service.d.ts +26 -1
  31. package/dist/src/welfare-cycle/db.schemas.d.ts +174 -4
  32. package/dist/src/welfare-cycle/errors/index.d.ts +6 -0
  33. package/dist/src/welfare-cycle/errors/locales/zh.d.ts +6 -0
  34. package/dist/src/welfare-cycle/internal/service.d.ts +41 -3
  35. package/dist/src/welfare-cycle/schema.d.ts +92 -3
  36. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +106 -6
  37. package/dist/src/welfare-cycle/user/router.d.ts +14 -5
  38. package/dist/src/welfare-cycle/user/service.d.ts +14 -3
  39. package/dist/src/withdraw/user/dto.schemas.d.ts +599 -0
  40. package/dist/src/withdraw/user/router.d.ts +73 -0
  41. package/dist/src/withdraw/user/service.d.ts +2 -1
  42. package/package.json +1 -1
@@ -874,6 +874,37 @@ declare const app: Elysia<"/api", {
874
874
  };
875
875
  };
876
876
  };
877
+ } & {
878
+ admin_users: {
879
+ ":userId": {
880
+ unban: {
881
+ post: {
882
+ body: {};
883
+ params: {
884
+ userId: string;
885
+ };
886
+ query: {};
887
+ headers: {};
888
+ response: {
889
+ 200: {
890
+ success: boolean;
891
+ };
892
+ 422: {
893
+ type: "validation";
894
+ on: string;
895
+ summary?: string;
896
+ message?: string;
897
+ found?: unknown;
898
+ property?: string;
899
+ expected?: string;
900
+ };
901
+ 401: "Unauthorized";
902
+ 403: "Forbidden: Admins only";
903
+ };
904
+ };
905
+ };
906
+ };
907
+ };
877
908
  };
878
909
  } & {
879
910
  admin: {
@@ -1628,8 +1659,10 @@ declare const app: Elysia<"/api", {
1628
1659
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1629
1660
  targetAssetId: string;
1630
1661
  payAssetId: string;
1631
- defaultReceiveAccountTypeId: string;
1662
+ payAccountTypeId: string;
1663
+ receiveAccountTypeId: string;
1632
1664
  minPayAmount: string;
1665
+ settlementMode: "available" | "locked";
1633
1666
  };
1634
1667
  params: {};
1635
1668
  query: {};
@@ -1645,8 +1678,10 @@ declare const app: Elysia<"/api", {
1645
1678
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1646
1679
  targetAssetId: string;
1647
1680
  payAssetId: string;
1648
- defaultReceiveAccountTypeId: string;
1681
+ payAccountTypeId: string;
1682
+ receiveAccountTypeId: string;
1649
1683
  minPayAmount: string;
1684
+ settlementMode: "available" | "locked";
1650
1685
  targetAssetInfo: {
1651
1686
  symbol: string;
1652
1687
  id: string;
@@ -1663,7 +1698,13 @@ declare const app: Elysia<"/api", {
1663
1698
  isActive: boolean;
1664
1699
  precision: number;
1665
1700
  };
1666
- defaultReceiveAccountTypeInfo: {
1701
+ payAccountTypeInfo: {
1702
+ id: string;
1703
+ name: string;
1704
+ key: string;
1705
+ isActive: boolean;
1706
+ };
1707
+ receiveAccountTypeInfo: {
1667
1708
  id: string;
1668
1709
  name: string;
1669
1710
  key: string;
@@ -1697,8 +1738,10 @@ declare const app: Elysia<"/api", {
1697
1738
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
1698
1739
  targetAssetId?: string | undefined;
1699
1740
  payAssetId?: string | undefined;
1700
- defaultReceiveAccountTypeId?: string | undefined;
1741
+ payAccountTypeId?: string | undefined;
1742
+ receiveAccountTypeId?: string | undefined;
1701
1743
  minPayAmount?: string | undefined;
1744
+ settlementMode?: "available" | "locked" | undefined;
1702
1745
  };
1703
1746
  params: {
1704
1747
  id: string;
@@ -1716,8 +1759,10 @@ declare const app: Elysia<"/api", {
1716
1759
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1717
1760
  targetAssetId: string;
1718
1761
  payAssetId: string;
1719
- defaultReceiveAccountTypeId: string;
1762
+ payAccountTypeId: string;
1763
+ receiveAccountTypeId: string;
1720
1764
  minPayAmount: string;
1765
+ settlementMode: "available" | "locked";
1721
1766
  targetAssetInfo: {
1722
1767
  symbol: string;
1723
1768
  id: string;
@@ -1734,7 +1779,13 @@ declare const app: Elysia<"/api", {
1734
1779
  isActive: boolean;
1735
1780
  precision: number;
1736
1781
  };
1737
- defaultReceiveAccountTypeInfo: {
1782
+ payAccountTypeInfo: {
1783
+ id: string;
1784
+ name: string;
1785
+ key: string;
1786
+ isActive: boolean;
1787
+ };
1788
+ receiveAccountTypeInfo: {
1738
1789
  id: string;
1739
1790
  name: string;
1740
1791
  key: string;
@@ -1780,8 +1831,10 @@ declare const app: Elysia<"/api", {
1780
1831
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1781
1832
  targetAssetId: string;
1782
1833
  payAssetId: string;
1783
- defaultReceiveAccountTypeId: string;
1834
+ payAccountTypeId: string;
1835
+ receiveAccountTypeId: string;
1784
1836
  minPayAmount: string;
1837
+ settlementMode: "available" | "locked";
1785
1838
  targetAssetInfo: {
1786
1839
  symbol: string;
1787
1840
  id: string;
@@ -1798,7 +1851,13 @@ declare const app: Elysia<"/api", {
1798
1851
  isActive: boolean;
1799
1852
  precision: number;
1800
1853
  };
1801
- defaultReceiveAccountTypeInfo: {
1854
+ payAccountTypeInfo: {
1855
+ id: string;
1856
+ name: string;
1857
+ key: string;
1858
+ isActive: boolean;
1859
+ };
1860
+ receiveAccountTypeInfo: {
1802
1861
  id: string;
1803
1862
  name: string;
1804
1863
  key: string;
@@ -1845,8 +1904,10 @@ declare const app: Elysia<"/api", {
1845
1904
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1846
1905
  targetAssetId: string;
1847
1906
  payAssetId: string;
1848
- defaultReceiveAccountTypeId: string;
1907
+ payAccountTypeId: string;
1908
+ receiveAccountTypeId: string;
1849
1909
  minPayAmount: string;
1910
+ settlementMode: "available" | "locked";
1850
1911
  targetAssetInfo: {
1851
1912
  symbol: string;
1852
1913
  id: string;
@@ -1863,7 +1924,13 @@ declare const app: Elysia<"/api", {
1863
1924
  isActive: boolean;
1864
1925
  precision: number;
1865
1926
  };
1866
- defaultReceiveAccountTypeInfo: {
1927
+ payAccountTypeInfo: {
1928
+ id: string;
1929
+ name: string;
1930
+ key: string;
1931
+ isActive: boolean;
1932
+ };
1933
+ receiveAccountTypeInfo: {
1867
1934
  id: string;
1868
1935
  name: string;
1869
1936
  key: string;
@@ -1910,8 +1977,10 @@ declare const app: Elysia<"/api", {
1910
1977
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1911
1978
  targetAssetId: string;
1912
1979
  payAssetId: string;
1913
- defaultReceiveAccountTypeId: string;
1980
+ payAccountTypeId: string;
1981
+ receiveAccountTypeId: string;
1914
1982
  minPayAmount: string;
1983
+ settlementMode: "available" | "locked";
1915
1984
  targetAssetInfo: {
1916
1985
  symbol: string;
1917
1986
  id: string;
@@ -1928,7 +1997,13 @@ declare const app: Elysia<"/api", {
1928
1997
  isActive: boolean;
1929
1998
  precision: number;
1930
1999
  };
1931
- defaultReceiveAccountTypeInfo: {
2000
+ payAccountTypeInfo: {
2001
+ id: string;
2002
+ name: string;
2003
+ key: string;
2004
+ isActive: boolean;
2005
+ };
2006
+ receiveAccountTypeInfo: {
1932
2007
  id: string;
1933
2008
  name: string;
1934
2009
  key: string;
@@ -1974,8 +2049,10 @@ declare const app: Elysia<"/api", {
1974
2049
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1975
2050
  targetAssetId: string;
1976
2051
  payAssetId: string;
1977
- defaultReceiveAccountTypeId: string;
2052
+ payAccountTypeId: string;
2053
+ receiveAccountTypeId: string;
1978
2054
  minPayAmount: string;
2055
+ settlementMode: "available" | "locked";
1979
2056
  targetAssetInfo: {
1980
2057
  symbol: string;
1981
2058
  id: string;
@@ -1992,7 +2069,13 @@ declare const app: Elysia<"/api", {
1992
2069
  isActive: boolean;
1993
2070
  precision: number;
1994
2071
  };
1995
- defaultReceiveAccountTypeInfo: {
2072
+ payAccountTypeInfo: {
2073
+ id: string;
2074
+ name: string;
2075
+ key: string;
2076
+ isActive: boolean;
2077
+ };
2078
+ receiveAccountTypeInfo: {
1996
2079
  id: string;
1997
2080
  name: string;
1998
2081
  key: string;
@@ -2028,7 +2111,9 @@ declare const app: Elysia<"/api", {
2028
2111
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
2029
2112
  targetAssetId?: string | undefined;
2030
2113
  payAssetId?: string | undefined;
2031
- defaultReceiveAccountTypeId?: string | undefined;
2114
+ payAccountTypeId?: string | undefined;
2115
+ receiveAccountTypeId?: string | undefined;
2116
+ settlementMode?: "available" | "locked" | undefined;
2032
2117
  limit?: number | undefined;
2033
2118
  offset?: number | undefined;
2034
2119
  pageSize?: number | undefined;
@@ -2051,8 +2136,10 @@ declare const app: Elysia<"/api", {
2051
2136
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
2052
2137
  targetAssetId: string;
2053
2138
  payAssetId: string;
2054
- defaultReceiveAccountTypeId: string;
2139
+ payAccountTypeId: string;
2140
+ receiveAccountTypeId: string;
2055
2141
  minPayAmount: string;
2142
+ settlementMode: "available" | "locked";
2056
2143
  targetAssetInfo: {
2057
2144
  symbol: string;
2058
2145
  id: string;
@@ -2069,7 +2156,13 @@ declare const app: Elysia<"/api", {
2069
2156
  isActive: boolean;
2070
2157
  precision: number;
2071
2158
  };
2072
- defaultReceiveAccountTypeInfo: {
2159
+ payAccountTypeInfo: {
2160
+ id: string;
2161
+ name: string;
2162
+ key: string;
2163
+ isActive: boolean;
2164
+ };
2165
+ receiveAccountTypeInfo: {
2073
2166
  id: string;
2074
2167
  name: string;
2075
2168
  key: string;
@@ -2108,13 +2201,12 @@ declare const app: Elysia<"/api", {
2108
2201
  query: {
2109
2202
  id?: string | undefined;
2110
2203
  userId?: string | undefined;
2111
- status?: "created" | "completed" | "failed" | undefined;
2204
+ status?: "created" | "completed" | undefined;
2112
2205
  idempotencyKey?: string | undefined;
2113
2206
  orderNo?: string | undefined;
2114
2207
  productId?: string | undefined;
2115
2208
  sourcePayAccountId?: string | undefined;
2116
2209
  receiveAccountId?: string | undefined;
2117
- failureCode?: string | null | undefined;
2118
2210
  limit?: number | undefined;
2119
2211
  offset?: number | undefined;
2120
2212
  pageSize?: number | undefined;
@@ -2142,7 +2234,7 @@ declare const app: Elysia<"/api", {
2142
2234
  createdAt: Date;
2143
2235
  updatedAt: Date;
2144
2236
  userId: string;
2145
- status: "created" | "completed" | "failed";
2237
+ status: "created" | "completed";
2146
2238
  idempotencyKey: string;
2147
2239
  orderNo: string;
2148
2240
  productId: string;
@@ -2263,7 +2355,7 @@ declare const app: Elysia<"/api", {
2263
2355
  createdAt: Date;
2264
2356
  updatedAt: Date;
2265
2357
  userId: string;
2266
- status: "created" | "completed" | "failed";
2358
+ status: "created" | "completed";
2267
2359
  idempotencyKey: string;
2268
2360
  orderNo: string;
2269
2361
  productId: string;
@@ -2378,7 +2470,7 @@ declare const app: Elysia<"/api", {
2378
2470
  createdAt: Date;
2379
2471
  updatedAt: Date;
2380
2472
  userId: string;
2381
- status: "created" | "completed" | "failed";
2473
+ status: "created" | "completed";
2382
2474
  idempotencyKey: string;
2383
2475
  orderNo: string;
2384
2476
  productId: string;
@@ -2482,7 +2574,6 @@ declare const app: Elysia<"/api", {
2482
2574
  totalCount: number;
2483
2575
  createdCount: number;
2484
2576
  completedCount: number;
2485
- failedCount: number;
2486
2577
  totalPayAmount: string;
2487
2578
  totalTargetAmount: string;
2488
2579
  };
@@ -3551,8 +3642,8 @@ declare const app: Elysia<"/api", {
3551
3642
  response: {
3552
3643
  200: {
3553
3644
  totalCount: number;
3554
- failedCount: number;
3555
3645
  successCount: number;
3646
+ failedCount: number;
3556
3647
  results: {
3557
3648
  accountId?: string | undefined;
3558
3649
  ledgerEntryId?: string | undefined;
@@ -4095,9 +4186,9 @@ declare const app: Elysia<"/api", {
4095
4186
  id: string;
4096
4187
  createdAt: Date;
4097
4188
  updatedAt: Date;
4098
- status: "pending" | "failed" | "running" | "success";
4099
- failed: number;
4189
+ status: "pending" | "running" | "success" | "failed";
4100
4190
  success: number;
4191
+ failed: number;
4101
4192
  ignored: number;
4102
4193
  fileId: string;
4103
4194
  total: number;
@@ -4128,7 +4219,7 @@ declare const app: Elysia<"/api", {
4128
4219
  body: {};
4129
4220
  params: {};
4130
4221
  query: {
4131
- status?: "pending" | "failed" | "running" | "success" | undefined;
4222
+ status?: "pending" | "running" | "success" | "failed" | undefined;
4132
4223
  limit?: number | undefined;
4133
4224
  offset?: number | undefined;
4134
4225
  pageSize?: number | undefined;
@@ -4142,9 +4233,9 @@ declare const app: Elysia<"/api", {
4142
4233
  id: string;
4143
4234
  createdAt: Date;
4144
4235
  updatedAt: Date;
4145
- status: "pending" | "failed" | "running" | "success";
4146
- failed: number;
4236
+ status: "pending" | "running" | "success" | "failed";
4147
4237
  success: number;
4238
+ failed: number;
4148
4239
  ignored: number;
4149
4240
  fileId: string;
4150
4241
  total: number;
@@ -4193,9 +4284,9 @@ declare const app: Elysia<"/api", {
4193
4284
  id: string;
4194
4285
  createdAt: Date;
4195
4286
  updatedAt: Date;
4196
- status: "pending" | "failed" | "running" | "success";
4197
- failed: number;
4287
+ status: "pending" | "running" | "success" | "failed";
4198
4288
  success: number;
4289
+ failed: number;
4199
4290
  ignored: number;
4200
4291
  fileId: string;
4201
4292
  total: number;
@@ -4231,7 +4322,7 @@ declare const app: Elysia<"/api", {
4231
4322
  id: string;
4232
4323
  };
4233
4324
  query: {
4234
- status?: "failed" | "success" | "ignored" | undefined;
4325
+ status?: "success" | "failed" | "ignored" | undefined;
4235
4326
  limit?: number | undefined;
4236
4327
  offset?: number | undefined;
4237
4328
  pageSize?: number | undefined;
@@ -4247,7 +4338,7 @@ declare const app: Elysia<"/api", {
4247
4338
  updatedAt: Date;
4248
4339
  phoneNumber: string | null;
4249
4340
  userId: string | null;
4250
- status: "failed" | "success" | "ignored";
4341
+ status: "success" | "failed" | "ignored";
4251
4342
  assetId: string | null;
4252
4343
  ledgerAccountTypeId: string | null;
4253
4344
  amount: string | null;
@@ -7153,6 +7244,7 @@ declare const app: Elysia<"/api", {
7153
7244
  body: {
7154
7245
  description?: string | null | undefined;
7155
7246
  status?: "active" | "draft" | "paused" | "ended" | undefined;
7247
+ coverImageUrl?: string | null | undefined;
7156
7248
  minShares?: number | undefined;
7157
7249
  maxSharesPerOrder?: number | null | undefined;
7158
7250
  saleStartAt?: Date | null | undefined;
@@ -7160,6 +7252,9 @@ declare const app: Elysia<"/api", {
7160
7252
  name: string;
7161
7253
  rightsAssetId: string;
7162
7254
  pricingAssetId: string;
7255
+ sourcePricingAccountTypeId: string;
7256
+ dailyPayoutAccountTypeId: string;
7257
+ maturitySettlementAccountTypeId: string;
7163
7258
  pricePerShare: string;
7164
7259
  rightsPerShare: string;
7165
7260
  cycleDays: number;
@@ -7177,8 +7272,12 @@ declare const app: Elysia<"/api", {
7177
7272
  updatedAt: Date;
7178
7273
  description: string | null;
7179
7274
  status: "active" | "draft" | "paused" | "ended";
7275
+ coverImageUrl: string | null;
7180
7276
  rightsAssetId: string;
7181
7277
  pricingAssetId: string;
7278
+ sourcePricingAccountTypeId: string;
7279
+ dailyPayoutAccountTypeId: string;
7280
+ maturitySettlementAccountTypeId: string;
7182
7281
  pricePerShare: string;
7183
7282
  rightsPerShare: string;
7184
7283
  cycleDays: number;
@@ -7213,8 +7312,12 @@ declare const app: Elysia<"/api", {
7213
7312
  name?: string | undefined;
7214
7313
  description?: string | null | undefined;
7215
7314
  status?: "active" | "draft" | "paused" | "ended" | undefined;
7315
+ coverImageUrl?: string | null | undefined;
7216
7316
  rightsAssetId?: string | undefined;
7217
7317
  pricingAssetId?: string | undefined;
7318
+ sourcePricingAccountTypeId?: string | undefined;
7319
+ dailyPayoutAccountTypeId?: string | undefined;
7320
+ maturitySettlementAccountTypeId?: string | undefined;
7218
7321
  pricePerShare?: string | undefined;
7219
7322
  rightsPerShare?: string | undefined;
7220
7323
  cycleDays?: number | undefined;
@@ -7237,8 +7340,12 @@ declare const app: Elysia<"/api", {
7237
7340
  id: string;
7238
7341
  name: string;
7239
7342
  description: string | null;
7343
+ coverImageUrl: string | null;
7240
7344
  rightsAssetId: string;
7241
7345
  pricingAssetId: string;
7346
+ sourcePricingAccountTypeId: string;
7347
+ dailyPayoutAccountTypeId: string;
7348
+ maturitySettlementAccountTypeId: string;
7242
7349
  pricePerShare: string;
7243
7350
  rightsPerShare: string;
7244
7351
  cycleDays: number;
@@ -7285,8 +7392,12 @@ declare const app: Elysia<"/api", {
7285
7392
  id: string;
7286
7393
  name: string;
7287
7394
  description: string | null;
7395
+ coverImageUrl: string | null;
7288
7396
  rightsAssetId: string;
7289
7397
  pricingAssetId: string;
7398
+ sourcePricingAccountTypeId: string;
7399
+ dailyPayoutAccountTypeId: string;
7400
+ maturitySettlementAccountTypeId: string;
7290
7401
  pricePerShare: string;
7291
7402
  rightsPerShare: string;
7292
7403
  cycleDays: number;
@@ -7334,8 +7445,12 @@ declare const app: Elysia<"/api", {
7334
7445
  id: string;
7335
7446
  name: string;
7336
7447
  description: string | null;
7448
+ coverImageUrl: string | null;
7337
7449
  rightsAssetId: string;
7338
7450
  pricingAssetId: string;
7451
+ sourcePricingAccountTypeId: string;
7452
+ dailyPayoutAccountTypeId: string;
7453
+ maturitySettlementAccountTypeId: string;
7339
7454
  pricePerShare: string;
7340
7455
  rightsPerShare: string;
7341
7456
  cycleDays: number;
@@ -7383,8 +7498,12 @@ declare const app: Elysia<"/api", {
7383
7498
  id: string;
7384
7499
  name: string;
7385
7500
  description: string | null;
7501
+ coverImageUrl: string | null;
7386
7502
  rightsAssetId: string;
7387
7503
  pricingAssetId: string;
7504
+ sourcePricingAccountTypeId: string;
7505
+ dailyPayoutAccountTypeId: string;
7506
+ maturitySettlementAccountTypeId: string;
7388
7507
  pricePerShare: string;
7389
7508
  rightsPerShare: string;
7390
7509
  cycleDays: number;
@@ -7436,8 +7555,12 @@ declare const app: Elysia<"/api", {
7436
7555
  updatedAt: Date;
7437
7556
  description: string | null;
7438
7557
  status: "active" | "draft" | "paused" | "ended";
7558
+ coverImageUrl: string | null;
7439
7559
  rightsAssetId: string;
7440
7560
  pricingAssetId: string;
7561
+ sourcePricingAccountTypeId: string;
7562
+ dailyPayoutAccountTypeId: string;
7563
+ maturitySettlementAccountTypeId: string;
7441
7564
  pricePerShare: string;
7442
7565
  rightsPerShare: string;
7443
7566
  cycleDays: number;
@@ -7499,7 +7622,8 @@ declare const app: Elysia<"/api", {
7499
7622
  orderNo: string;
7500
7623
  planId: string;
7501
7624
  sourcePricingAccountId: string;
7502
- rightsReceiveAccountId: string;
7625
+ dailyPayoutReceiveAccountId: string;
7626
+ maturitySettlementReceiveAccountId: string;
7503
7627
  shares: number;
7504
7628
  totalPricingAmount: string;
7505
7629
  totalRightsPrincipal: string;
@@ -9229,7 +9353,6 @@ declare const app: Elysia<"/api", {
9229
9353
  body: {};
9230
9354
  params: {};
9231
9355
  query: {
9232
- status?: "active" | "draft" | "paused" | "ended" | undefined;
9233
9356
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
9234
9357
  limit?: number | undefined;
9235
9358
  offset?: number | undefined;
@@ -9249,8 +9372,10 @@ declare const app: Elysia<"/api", {
9249
9372
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
9250
9373
  targetAssetId: string;
9251
9374
  payAssetId: string;
9252
- defaultReceiveAccountTypeId: string;
9375
+ payAccountTypeId: string;
9376
+ receiveAccountTypeId: string;
9253
9377
  minPayAmount: string;
9378
+ settlementMode: "available" | "locked";
9254
9379
  }[];
9255
9380
  pagination: {
9256
9381
  total: number;
@@ -9296,8 +9421,10 @@ declare const app: Elysia<"/api", {
9296
9421
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
9297
9422
  targetAssetId: string;
9298
9423
  payAssetId: string;
9299
- defaultReceiveAccountTypeId: string;
9424
+ payAccountTypeId: string;
9425
+ receiveAccountTypeId: string;
9300
9426
  minPayAmount: string;
9427
+ settlementMode: "available" | "locked";
9301
9428
  };
9302
9429
  422: {
9303
9430
  type: "validation";
@@ -9322,7 +9449,6 @@ declare const app: Elysia<"/api", {
9322
9449
  idempotencyKey: string;
9323
9450
  productId: string;
9324
9451
  payAmount: string;
9325
- sourcePayAccountId: string;
9326
9452
  };
9327
9453
  params: {};
9328
9454
  query: {};
@@ -9333,7 +9459,7 @@ declare const app: Elysia<"/api", {
9333
9459
  createdAt: Date;
9334
9460
  updatedAt: Date;
9335
9461
  userId: string;
9336
- status: "created" | "completed" | "failed";
9462
+ status: "created" | "completed";
9337
9463
  idempotencyKey: string;
9338
9464
  orderNo: string;
9339
9465
  productId: string;
@@ -9373,7 +9499,7 @@ declare const app: Elysia<"/api", {
9373
9499
  body: {};
9374
9500
  params: {};
9375
9501
  query: {
9376
- status?: "created" | "completed" | "failed" | undefined;
9502
+ status?: "created" | "completed" | undefined;
9377
9503
  limit?: number | undefined;
9378
9504
  offset?: number | undefined;
9379
9505
  pageSize?: number | undefined;
@@ -9387,7 +9513,7 @@ declare const app: Elysia<"/api", {
9387
9513
  createdAt: Date;
9388
9514
  updatedAt: Date;
9389
9515
  userId: string;
9390
- status: "created" | "completed" | "failed";
9516
+ status: "created" | "completed";
9391
9517
  idempotencyKey: string;
9392
9518
  orderNo: string;
9393
9519
  productId: string;
@@ -9445,7 +9571,7 @@ declare const app: Elysia<"/api", {
9445
9571
  createdAt: Date;
9446
9572
  updatedAt: Date;
9447
9573
  userId: string;
9448
- status: "created" | "completed" | "failed";
9574
+ status: "created" | "completed";
9449
9575
  idempotencyKey: string;
9450
9576
  orderNo: string;
9451
9577
  productId: string;
@@ -11333,6 +11459,79 @@ declare const app: Elysia<"/api", {
11333
11459
  } & {
11334
11460
  api: {
11335
11461
  withdraw: {};
11462
+ } & {
11463
+ withdraw: {
11464
+ direct_cny_account: {
11465
+ get: {
11466
+ body: {};
11467
+ params: {};
11468
+ query: {};
11469
+ headers: {};
11470
+ response: {
11471
+ 200: {
11472
+ id: string;
11473
+ createdAt: Date;
11474
+ updatedAt: Date;
11475
+ userId: string;
11476
+ status: "active" | "frozen" | "disabled";
11477
+ asset: {
11478
+ symbol: string;
11479
+ id: string;
11480
+ name: string;
11481
+ createdAt: Date;
11482
+ updatedAt: Date;
11483
+ code: string;
11484
+ iconUrl: string;
11485
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
11486
+ isActive: boolean;
11487
+ typeId: string;
11488
+ precision: number;
11489
+ };
11490
+ assetId: string;
11491
+ ledgerAccountTypeId: string;
11492
+ available: string;
11493
+ locked: string;
11494
+ version: number;
11495
+ ledgerAccountType: {
11496
+ id: string;
11497
+ name: string;
11498
+ createdAt: Date;
11499
+ updatedAt: Date;
11500
+ description: string | null;
11501
+ key: string;
11502
+ isActive: boolean;
11503
+ allowDeposit: boolean;
11504
+ allowWithdraw: boolean;
11505
+ minWithdrawAmount: string;
11506
+ maxWithdrawAmount: string;
11507
+ allowTransfer: boolean;
11508
+ minTransferAmount: string;
11509
+ maxTransferAmount: string;
11510
+ allowInternalTransfer: boolean;
11511
+ allowInternalReceiveTransfer: boolean;
11512
+ minInternalTransferAmount: string;
11513
+ maxInternalTransferAmount: string;
11514
+ internalTransferRatio: string;
11515
+ allowTransaction: boolean;
11516
+ hasExpiry: boolean;
11517
+ expiryDays: number | null;
11518
+ sortOrder: number;
11519
+ };
11520
+ };
11521
+ 422: {
11522
+ type: "validation";
11523
+ on: string;
11524
+ summary?: string;
11525
+ message?: string;
11526
+ found?: unknown;
11527
+ property?: string;
11528
+ expected?: string;
11529
+ };
11530
+ 401: "Unauthorized";
11531
+ };
11532
+ };
11533
+ };
11534
+ };
11336
11535
  } & {
11337
11536
  withdraw: {
11338
11537
  ledger_account: {
@@ -13038,8 +13237,12 @@ declare const app: Elysia<"/api", {
13038
13237
  updatedAt: Date;
13039
13238
  description: string | null;
13040
13239
  status: "active" | "draft" | "paused" | "ended";
13240
+ coverImageUrl: string | null;
13041
13241
  rightsAssetId: string;
13042
13242
  pricingAssetId: string;
13243
+ sourcePricingAccountTypeId: string;
13244
+ dailyPayoutAccountTypeId: string;
13245
+ maturitySettlementAccountTypeId: string;
13043
13246
  pricePerShare: string;
13044
13247
  rightsPerShare: string;
13045
13248
  cycleDays: number;
@@ -13091,8 +13294,12 @@ declare const app: Elysia<"/api", {
13091
13294
  updatedAt: Date;
13092
13295
  description: string | null;
13093
13296
  status: "active" | "draft" | "paused" | "ended";
13297
+ coverImageUrl: string | null;
13094
13298
  rightsAssetId: string;
13095
13299
  pricingAssetId: string;
13300
+ sourcePricingAccountTypeId: string;
13301
+ dailyPayoutAccountTypeId: string;
13302
+ maturitySettlementAccountTypeId: string;
13096
13303
  pricePerShare: string;
13097
13304
  rightsPerShare: string;
13098
13305
  cycleDays: number;
@@ -13125,8 +13332,6 @@ declare const app: Elysia<"/api", {
13125
13332
  body: {
13126
13333
  idempotencyKey: string;
13127
13334
  planId: string;
13128
- sourcePricingAccountId: string;
13129
- rightsReceiveAccountId: string;
13130
13335
  shares: number;
13131
13336
  };
13132
13337
  params: {};
@@ -13143,7 +13348,8 @@ declare const app: Elysia<"/api", {
13143
13348
  orderNo: string;
13144
13349
  planId: string;
13145
13350
  sourcePricingAccountId: string;
13146
- rightsReceiveAccountId: string;
13351
+ dailyPayoutReceiveAccountId: string;
13352
+ maturitySettlementReceiveAccountId: string;
13147
13353
  shares: number;
13148
13354
  totalPricingAmount: string;
13149
13355
  totalRightsPrincipal: string;
@@ -13200,7 +13406,8 @@ declare const app: Elysia<"/api", {
13200
13406
  orderNo: string;
13201
13407
  planId: string;
13202
13408
  sourcePricingAccountId: string;
13203
- rightsReceiveAccountId: string;
13409
+ dailyPayoutReceiveAccountId: string;
13410
+ maturitySettlementReceiveAccountId: string;
13204
13411
  shares: number;
13205
13412
  totalPricingAmount: string;
13206
13413
  totalRightsPrincipal: string;
@@ -13260,7 +13467,8 @@ declare const app: Elysia<"/api", {
13260
13467
  orderNo: string;
13261
13468
  planId: string;
13262
13469
  sourcePricingAccountId: string;
13263
- rightsReceiveAccountId: string;
13470
+ dailyPayoutReceiveAccountId: string;
13471
+ maturitySettlementReceiveAccountId: string;
13264
13472
  shares: number;
13265
13473
  totalPricingAmount: string;
13266
13474
  totalRightsPrincipal: string;