@r2wa-org/eden 0.0.57 → 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 (62) 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/user/dto.schemas.d.ts +9 -83
  8. package/dist/src/asset/user/router.d.ts +60 -66
  9. package/dist/src/asset/user/service.d.ts +41 -41
  10. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +44 -12
  11. package/dist/src/asset-convert-product/admin/router.d.ts +83 -23
  12. package/dist/src/asset-convert-product/admin/service.d.ts +73 -17
  13. package/dist/src/asset-convert-product/db.schemas.d.ts +76 -8
  14. package/dist/src/asset-convert-product/errors/index.d.ts +4 -0
  15. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +4 -0
  16. package/dist/src/asset-convert-product/internal/service.d.ts +4 -3
  17. package/dist/src/asset-convert-product/schema.d.ts +41 -6
  18. package/dist/src/asset-convert-product/user/dto.schemas.d.ts +264 -14
  19. package/dist/src/asset-convert-product/user/router.d.ts +10 -8
  20. package/dist/src/asset-convert-product/user/service.d.ts +9 -5
  21. package/dist/src/asset-price/errors/index.d.ts +1 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +1 -0
  23. package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
  24. package/dist/src/asset-price/user/router.d.ts +43 -2
  25. package/dist/src/asset-price/user/service.d.ts +13 -1
  26. package/dist/src/index.d.ts +701 -291
  27. package/dist/src/ledger-account/admin/router.d.ts +1 -1
  28. package/dist/src/ledger-account/user/dto.schemas.d.ts +44 -193
  29. package/dist/src/ledger-account/user/router.d.ts +104 -42
  30. package/dist/src/ledger-account/user/service.d.ts +90 -40
  31. package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
  32. package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
  33. package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
  34. package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
  35. package/dist/src/ledger-account-import/schema.d.ts +2 -2
  36. package/dist/src/ledger-account-type/user/router.d.ts +48 -0
  37. package/dist/src/ledger-account-type/user/service.d.ts +25 -0
  38. package/dist/src/portfolio/index.d.ts +2 -0
  39. package/dist/src/portfolio/internal/index.d.ts +1 -0
  40. package/dist/src/portfolio/internal/service.d.ts +5 -0
  41. package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
  42. package/dist/src/portfolio/user/index.d.ts +3 -0
  43. package/dist/src/portfolio/user/router.d.ts +659 -0
  44. package/dist/src/portfolio/user/service.d.ts +143 -0
  45. package/dist/src/wallet/user/dto.schemas.d.ts +4 -66
  46. package/dist/src/wallet/user/router.d.ts +1 -62
  47. package/dist/src/wallet/user/service.d.ts +3 -39
  48. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +95 -2
  49. package/dist/src/welfare-cycle/admin/router.d.ts +34 -1
  50. package/dist/src/welfare-cycle/admin/service.d.ts +26 -1
  51. package/dist/src/welfare-cycle/db.schemas.d.ts +174 -4
  52. package/dist/src/welfare-cycle/errors/index.d.ts +6 -0
  53. package/dist/src/welfare-cycle/errors/locales/zh.d.ts +6 -0
  54. package/dist/src/welfare-cycle/internal/service.d.ts +41 -3
  55. package/dist/src/welfare-cycle/schema.d.ts +92 -3
  56. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +106 -6
  57. package/dist/src/welfare-cycle/user/router.d.ts +14 -5
  58. package/dist/src/welfare-cycle/user/service.d.ts +14 -3
  59. package/dist/src/withdraw/user/dto.schemas.d.ts +599 -0
  60. package/dist/src/withdraw/user/router.d.ts +73 -0
  61. package/dist/src/withdraw/user/service.d.ts +2 -1
  62. package/package.json +1 -1
@@ -390,8 +390,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
390
390
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
391
391
  targetAssetId: string;
392
392
  payAssetId: string;
393
- defaultReceiveAccountTypeId: string;
393
+ payAccountTypeId: string;
394
+ receiveAccountTypeId: string;
394
395
  minPayAmount: string;
396
+ settlementMode: "available" | "locked";
395
397
  };
396
398
  params: {};
397
399
  query: {};
@@ -407,8 +409,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
407
409
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
408
410
  targetAssetId: string;
409
411
  payAssetId: string;
410
- defaultReceiveAccountTypeId: string;
412
+ payAccountTypeId: string;
413
+ receiveAccountTypeId: string;
411
414
  minPayAmount: string;
415
+ settlementMode: "available" | "locked";
412
416
  targetAssetInfo: {
413
417
  symbol: string;
414
418
  id: string;
@@ -425,7 +429,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
425
429
  isActive: boolean;
426
430
  precision: number;
427
431
  };
428
- defaultReceiveAccountTypeInfo: {
432
+ payAccountTypeInfo: {
433
+ id: string;
434
+ name: string;
435
+ key: string;
436
+ isActive: boolean;
437
+ };
438
+ receiveAccountTypeInfo: {
429
439
  id: string;
430
440
  name: string;
431
441
  key: string;
@@ -459,8 +469,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
459
469
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
460
470
  targetAssetId?: string | undefined;
461
471
  payAssetId?: string | undefined;
462
- defaultReceiveAccountTypeId?: string | undefined;
472
+ payAccountTypeId?: string | undefined;
473
+ receiveAccountTypeId?: string | undefined;
463
474
  minPayAmount?: string | undefined;
475
+ settlementMode?: "available" | "locked" | undefined;
464
476
  };
465
477
  params: {
466
478
  id: string;
@@ -478,8 +490,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
478
490
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
479
491
  targetAssetId: string;
480
492
  payAssetId: string;
481
- defaultReceiveAccountTypeId: string;
493
+ payAccountTypeId: string;
494
+ receiveAccountTypeId: string;
482
495
  minPayAmount: string;
496
+ settlementMode: "available" | "locked";
483
497
  targetAssetInfo: {
484
498
  symbol: string;
485
499
  id: string;
@@ -496,7 +510,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
496
510
  isActive: boolean;
497
511
  precision: number;
498
512
  };
499
- defaultReceiveAccountTypeInfo: {
513
+ payAccountTypeInfo: {
514
+ id: string;
515
+ name: string;
516
+ key: string;
517
+ isActive: boolean;
518
+ };
519
+ receiveAccountTypeInfo: {
500
520
  id: string;
501
521
  name: string;
502
522
  key: string;
@@ -542,8 +562,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
542
562
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
543
563
  targetAssetId: string;
544
564
  payAssetId: string;
545
- defaultReceiveAccountTypeId: string;
565
+ payAccountTypeId: string;
566
+ receiveAccountTypeId: string;
546
567
  minPayAmount: string;
568
+ settlementMode: "available" | "locked";
547
569
  targetAssetInfo: {
548
570
  symbol: string;
549
571
  id: string;
@@ -560,7 +582,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
560
582
  isActive: boolean;
561
583
  precision: number;
562
584
  };
563
- defaultReceiveAccountTypeInfo: {
585
+ payAccountTypeInfo: {
586
+ id: string;
587
+ name: string;
588
+ key: string;
589
+ isActive: boolean;
590
+ };
591
+ receiveAccountTypeInfo: {
564
592
  id: string;
565
593
  name: string;
566
594
  key: string;
@@ -607,8 +635,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
607
635
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
608
636
  targetAssetId: string;
609
637
  payAssetId: string;
610
- defaultReceiveAccountTypeId: string;
638
+ payAccountTypeId: string;
639
+ receiveAccountTypeId: string;
611
640
  minPayAmount: string;
641
+ settlementMode: "available" | "locked";
612
642
  targetAssetInfo: {
613
643
  symbol: string;
614
644
  id: string;
@@ -625,7 +655,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
625
655
  isActive: boolean;
626
656
  precision: number;
627
657
  };
628
- defaultReceiveAccountTypeInfo: {
658
+ payAccountTypeInfo: {
659
+ id: string;
660
+ name: string;
661
+ key: string;
662
+ isActive: boolean;
663
+ };
664
+ receiveAccountTypeInfo: {
629
665
  id: string;
630
666
  name: string;
631
667
  key: string;
@@ -672,8 +708,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
672
708
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
673
709
  targetAssetId: string;
674
710
  payAssetId: string;
675
- defaultReceiveAccountTypeId: string;
711
+ payAccountTypeId: string;
712
+ receiveAccountTypeId: string;
676
713
  minPayAmount: string;
714
+ settlementMode: "available" | "locked";
677
715
  targetAssetInfo: {
678
716
  symbol: string;
679
717
  id: string;
@@ -690,7 +728,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
690
728
  isActive: boolean;
691
729
  precision: number;
692
730
  };
693
- defaultReceiveAccountTypeInfo: {
731
+ payAccountTypeInfo: {
732
+ id: string;
733
+ name: string;
734
+ key: string;
735
+ isActive: boolean;
736
+ };
737
+ receiveAccountTypeInfo: {
694
738
  id: string;
695
739
  name: string;
696
740
  key: string;
@@ -736,8 +780,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
736
780
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
737
781
  targetAssetId: string;
738
782
  payAssetId: string;
739
- defaultReceiveAccountTypeId: string;
783
+ payAccountTypeId: string;
784
+ receiveAccountTypeId: string;
740
785
  minPayAmount: string;
786
+ settlementMode: "available" | "locked";
741
787
  targetAssetInfo: {
742
788
  symbol: string;
743
789
  id: string;
@@ -754,7 +800,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
754
800
  isActive: boolean;
755
801
  precision: number;
756
802
  };
757
- defaultReceiveAccountTypeInfo: {
803
+ payAccountTypeInfo: {
804
+ id: string;
805
+ name: string;
806
+ key: string;
807
+ isActive: boolean;
808
+ };
809
+ receiveAccountTypeInfo: {
758
810
  id: string;
759
811
  name: string;
760
812
  key: string;
@@ -790,7 +842,9 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
790
842
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
791
843
  targetAssetId?: string | undefined;
792
844
  payAssetId?: string | undefined;
793
- defaultReceiveAccountTypeId?: string | undefined;
845
+ payAccountTypeId?: string | undefined;
846
+ receiveAccountTypeId?: string | undefined;
847
+ settlementMode?: "available" | "locked" | undefined;
794
848
  limit?: number | undefined;
795
849
  offset?: number | undefined;
796
850
  pageSize?: number | undefined;
@@ -813,8 +867,10 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
813
867
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
814
868
  targetAssetId: string;
815
869
  payAssetId: string;
816
- defaultReceiveAccountTypeId: string;
870
+ payAccountTypeId: string;
871
+ receiveAccountTypeId: string;
817
872
  minPayAmount: string;
873
+ settlementMode: "available" | "locked";
818
874
  targetAssetInfo: {
819
875
  symbol: string;
820
876
  id: string;
@@ -831,7 +887,13 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
831
887
  isActive: boolean;
832
888
  precision: number;
833
889
  };
834
- defaultReceiveAccountTypeInfo: {
890
+ payAccountTypeInfo: {
891
+ id: string;
892
+ name: string;
893
+ key: string;
894
+ isActive: boolean;
895
+ };
896
+ receiveAccountTypeInfo: {
835
897
  id: string;
836
898
  name: string;
837
899
  key: string;
@@ -870,13 +932,12 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
870
932
  query: {
871
933
  id?: string | undefined;
872
934
  userId?: string | undefined;
873
- status?: "created" | "completed" | "failed" | undefined;
935
+ status?: "created" | "completed" | undefined;
874
936
  idempotencyKey?: string | undefined;
875
937
  orderNo?: string | undefined;
876
938
  productId?: string | undefined;
877
939
  sourcePayAccountId?: string | undefined;
878
940
  receiveAccountId?: string | undefined;
879
- failureCode?: string | null | undefined;
880
941
  limit?: number | undefined;
881
942
  offset?: number | undefined;
882
943
  pageSize?: number | undefined;
@@ -904,7 +965,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
904
965
  createdAt: Date;
905
966
  updatedAt: Date;
906
967
  userId: string;
907
- status: "created" | "completed" | "failed";
968
+ status: "created" | "completed";
908
969
  idempotencyKey: string;
909
970
  orderNo: string;
910
971
  productId: string;
@@ -1025,7 +1086,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
1025
1086
  createdAt: Date;
1026
1087
  updatedAt: Date;
1027
1088
  userId: string;
1028
- status: "created" | "completed" | "failed";
1089
+ status: "created" | "completed";
1029
1090
  idempotencyKey: string;
1030
1091
  orderNo: string;
1031
1092
  productId: string;
@@ -1140,7 +1201,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
1140
1201
  createdAt: Date;
1141
1202
  updatedAt: Date;
1142
1203
  userId: string;
1143
- status: "created" | "completed" | "failed";
1204
+ status: "created" | "completed";
1144
1205
  idempotencyKey: string;
1145
1206
  orderNo: string;
1146
1207
  productId: string;
@@ -1244,7 +1305,6 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
1244
1305
  totalCount: number;
1245
1306
  createdCount: number;
1246
1307
  completedCount: number;
1247
- failedCount: number;
1248
1308
  totalPayAmount: string;
1249
1309
  totalTargetAmount: string;
1250
1310
  };
@@ -16,8 +16,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
16
16
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
17
17
  targetAssetId: string;
18
18
  payAssetId: string;
19
- defaultReceiveAccountTypeId: string;
19
+ payAccountTypeId: string;
20
+ receiveAccountTypeId: string;
20
21
  minPayAmount: string;
22
+ settlementMode: "available" | "locked";
21
23
  targetAssetInfo: {
22
24
  symbol: string;
23
25
  id: string;
@@ -34,7 +36,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
34
36
  isActive: boolean;
35
37
  precision: number;
36
38
  };
37
- defaultReceiveAccountTypeInfo: {
39
+ payAccountTypeInfo: {
40
+ id: string;
41
+ name: string;
42
+ key: string;
43
+ isActive: boolean;
44
+ };
45
+ receiveAccountTypeInfo: {
38
46
  id: string;
39
47
  name: string;
40
48
  key: string;
@@ -51,8 +59,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
51
59
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
52
60
  targetAssetId: string;
53
61
  payAssetId: string;
54
- defaultReceiveAccountTypeId: string;
62
+ payAccountTypeId: string;
63
+ receiveAccountTypeId: string;
55
64
  minPayAmount: string;
65
+ settlementMode: "available" | "locked";
56
66
  targetAssetInfo: {
57
67
  symbol: string;
58
68
  id: string;
@@ -69,7 +79,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
69
79
  isActive: boolean;
70
80
  precision: number;
71
81
  };
72
- defaultReceiveAccountTypeInfo: {
82
+ payAccountTypeInfo: {
83
+ id: string;
84
+ name: string;
85
+ key: string;
86
+ isActive: boolean;
87
+ };
88
+ receiveAccountTypeInfo: {
73
89
  id: string;
74
90
  name: string;
75
91
  key: string;
@@ -86,8 +102,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
86
102
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
87
103
  targetAssetId: string;
88
104
  payAssetId: string;
89
- defaultReceiveAccountTypeId: string;
105
+ payAccountTypeId: string;
106
+ receiveAccountTypeId: string;
90
107
  minPayAmount: string;
108
+ settlementMode: "available" | "locked";
91
109
  targetAssetInfo: {
92
110
  symbol: string;
93
111
  id: string;
@@ -104,7 +122,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
104
122
  isActive: boolean;
105
123
  precision: number;
106
124
  };
107
- defaultReceiveAccountTypeInfo: {
125
+ payAccountTypeInfo: {
126
+ id: string;
127
+ name: string;
128
+ key: string;
129
+ isActive: boolean;
130
+ };
131
+ receiveAccountTypeInfo: {
108
132
  id: string;
109
133
  name: string;
110
134
  key: string;
@@ -121,8 +145,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
121
145
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
122
146
  targetAssetId: string;
123
147
  payAssetId: string;
124
- defaultReceiveAccountTypeId: string;
148
+ payAccountTypeId: string;
149
+ receiveAccountTypeId: string;
125
150
  minPayAmount: string;
151
+ settlementMode: "available" | "locked";
126
152
  targetAssetInfo: {
127
153
  symbol: string;
128
154
  id: string;
@@ -139,7 +165,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
139
165
  isActive: boolean;
140
166
  precision: number;
141
167
  };
142
- defaultReceiveAccountTypeInfo: {
168
+ payAccountTypeInfo: {
169
+ id: string;
170
+ name: string;
171
+ key: string;
172
+ isActive: boolean;
173
+ };
174
+ receiveAccountTypeInfo: {
143
175
  id: string;
144
176
  name: string;
145
177
  key: string;
@@ -156,8 +188,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
156
188
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
157
189
  targetAssetId: string;
158
190
  payAssetId: string;
159
- defaultReceiveAccountTypeId: string;
191
+ payAccountTypeId: string;
192
+ receiveAccountTypeId: string;
160
193
  minPayAmount: string;
194
+ settlementMode: "available" | "locked";
161
195
  targetAssetInfo: {
162
196
  symbol: string;
163
197
  id: string;
@@ -174,7 +208,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
174
208
  isActive: boolean;
175
209
  precision: number;
176
210
  };
177
- defaultReceiveAccountTypeInfo: {
211
+ payAccountTypeInfo: {
212
+ id: string;
213
+ name: string;
214
+ key: string;
215
+ isActive: boolean;
216
+ };
217
+ receiveAccountTypeInfo: {
178
218
  id: string;
179
219
  name: string;
180
220
  key: string;
@@ -192,8 +232,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
192
232
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
193
233
  targetAssetId: string;
194
234
  payAssetId: string;
195
- defaultReceiveAccountTypeId: string;
235
+ payAccountTypeId: string;
236
+ receiveAccountTypeId: string;
196
237
  minPayAmount: string;
238
+ settlementMode: "available" | "locked";
197
239
  targetAssetInfo: {
198
240
  symbol: string;
199
241
  id: string;
@@ -210,7 +252,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
210
252
  isActive: boolean;
211
253
  precision: number;
212
254
  };
213
- defaultReceiveAccountTypeInfo: {
255
+ payAccountTypeInfo: {
256
+ id: string;
257
+ name: string;
258
+ key: string;
259
+ isActive: boolean;
260
+ };
261
+ receiveAccountTypeInfo: {
214
262
  id: string;
215
263
  name: string;
216
264
  key: string;
@@ -228,8 +276,10 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
228
276
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
229
277
  targetAssetId: string;
230
278
  payAssetId: string;
231
- defaultReceiveAccountTypeId: string;
279
+ payAccountTypeId: string;
280
+ receiveAccountTypeId: string;
232
281
  minPayAmount: string;
282
+ settlementMode: "available" | "locked";
233
283
  targetAssetInfo: {
234
284
  symbol: string;
235
285
  id: string;
@@ -246,7 +296,13 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
246
296
  isActive: boolean;
247
297
  precision: number;
248
298
  };
249
- defaultReceiveAccountTypeInfo: {
299
+ payAccountTypeInfo: {
300
+ id: string;
301
+ name: string;
302
+ key: string;
303
+ isActive: boolean;
304
+ };
305
+ receiveAccountTypeInfo: {
250
306
  id: string;
251
307
  name: string;
252
308
  key: string;
@@ -278,7 +334,7 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
278
334
  createdAt: Date;
279
335
  updatedAt: Date;
280
336
  userId: string;
281
- status: "created" | "completed" | "failed";
337
+ status: "created" | "completed";
282
338
  idempotencyKey: string;
283
339
  orderNo: string;
284
340
  productId: string;
@@ -364,7 +420,7 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
364
420
  createdAt: Date;
365
421
  updatedAt: Date;
366
422
  userId: string;
367
- status: "created" | "completed" | "failed";
423
+ status: "created" | "completed";
368
424
  idempotencyKey: string;
369
425
  orderNo: string;
370
426
  productId: string;
@@ -451,7 +507,7 @@ export declare abstract class AdminAssetConvertProductService extends BaseAssetC
451
507
  createdAt: Date;
452
508
  updatedAt: Date;
453
509
  userId: string;
454
- status: "created" | "completed" | "failed";
510
+ status: "created" | "completed";
455
511
  idempotencyKey: string;
456
512
  orderNo: string;
457
513
  productId: string;
@@ -135,8 +135,25 @@ export declare const assetConvertProductSelectSchema: import("drizzle-typebox").
135
135
  identity: undefined;
136
136
  generated: undefined;
137
137
  }, {}, {}>;
138
- defaultReceiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
139
- name: "default_receive_account_type_id";
138
+ payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
139
+ name: "pay_account_type_id";
140
+ tableName: "asset_convert_product";
141
+ dataType: "string";
142
+ columnType: "PgUUID";
143
+ data: string;
144
+ driverParam: string;
145
+ notNull: true;
146
+ hasDefault: false;
147
+ isPrimaryKey: false;
148
+ isAutoincrement: false;
149
+ hasRuntimeDefault: false;
150
+ enumValues: undefined;
151
+ baseColumn: never;
152
+ identity: undefined;
153
+ generated: undefined;
154
+ }, {}, {}>;
155
+ receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
156
+ name: "receive_account_type_id";
140
157
  tableName: "asset_convert_product";
141
158
  dataType: "string";
142
159
  columnType: "PgUUID";
@@ -169,6 +186,23 @@ export declare const assetConvertProductSelectSchema: import("drizzle-typebox").
169
186
  identity: undefined;
170
187
  generated: undefined;
171
188
  }, {}, {}>;
189
+ settlementMode: import("drizzle-orm/pg-core").PgColumn<{
190
+ name: "settlement_mode";
191
+ tableName: "asset_convert_product";
192
+ dataType: "string";
193
+ columnType: "PgEnumColumn";
194
+ data: "available" | "locked";
195
+ driverParam: string;
196
+ notNull: true;
197
+ hasDefault: false;
198
+ isPrimaryKey: false;
199
+ isAutoincrement: false;
200
+ hasRuntimeDefault: false;
201
+ enumValues: ["locked", "available"];
202
+ baseColumn: never;
203
+ identity: undefined;
204
+ generated: undefined;
205
+ }, {}, {}>;
172
206
  status: import("drizzle-orm/pg-core").PgColumn<{
173
207
  name: "status";
174
208
  tableName: "asset_convert_product";
@@ -325,8 +359,25 @@ export declare const assetConvertProductInsertSchema: import("drizzle-typebox").
325
359
  identity: undefined;
326
360
  generated: undefined;
327
361
  }, {}, {}>;
328
- defaultReceiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
329
- name: "default_receive_account_type_id";
362
+ payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
363
+ name: "pay_account_type_id";
364
+ tableName: "asset_convert_product";
365
+ dataType: "string";
366
+ columnType: "PgUUID";
367
+ data: string;
368
+ driverParam: string;
369
+ notNull: true;
370
+ hasDefault: false;
371
+ isPrimaryKey: false;
372
+ isAutoincrement: false;
373
+ hasRuntimeDefault: false;
374
+ enumValues: undefined;
375
+ baseColumn: never;
376
+ identity: undefined;
377
+ generated: undefined;
378
+ }, {}, {}>;
379
+ receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
380
+ name: "receive_account_type_id";
330
381
  tableName: "asset_convert_product";
331
382
  dataType: "string";
332
383
  columnType: "PgUUID";
@@ -359,6 +410,23 @@ export declare const assetConvertProductInsertSchema: import("drizzle-typebox").
359
410
  identity: undefined;
360
411
  generated: undefined;
361
412
  }, {}, {}>;
413
+ settlementMode: import("drizzle-orm/pg-core").PgColumn<{
414
+ name: "settlement_mode";
415
+ tableName: "asset_convert_product";
416
+ dataType: "string";
417
+ columnType: "PgEnumColumn";
418
+ data: "available" | "locked";
419
+ driverParam: string;
420
+ notNull: true;
421
+ hasDefault: false;
422
+ isPrimaryKey: false;
423
+ isAutoincrement: false;
424
+ hasRuntimeDefault: false;
425
+ enumValues: ["locked", "available"];
426
+ baseColumn: never;
427
+ identity: undefined;
428
+ generated: undefined;
429
+ }, {}, {}>;
362
430
  status: import("drizzle-orm/pg-core").PgColumn<{
363
431
  name: "status";
364
432
  tableName: "asset_convert_product";
@@ -673,14 +741,14 @@ export declare const assetConvertOrderSelectSchema: import("drizzle-typebox").Bu
673
741
  tableName: "asset_convert_order";
674
742
  dataType: "string";
675
743
  columnType: "PgEnumColumn";
676
- data: "created" | "completed" | "failed";
744
+ data: "created" | "completed";
677
745
  driverParam: string;
678
746
  notNull: true;
679
747
  hasDefault: true;
680
748
  isPrimaryKey: false;
681
749
  isAutoincrement: false;
682
750
  hasRuntimeDefault: false;
683
- enumValues: ["created", "completed", "failed"];
751
+ enumValues: ["created", "completed"];
684
752
  baseColumn: never;
685
753
  identity: undefined;
686
754
  generated: undefined;
@@ -1050,14 +1118,14 @@ export declare const assetConvertOrderInsertSchema: import("drizzle-typebox").Bu
1050
1118
  tableName: "asset_convert_order";
1051
1119
  dataType: "string";
1052
1120
  columnType: "PgEnumColumn";
1053
- data: "created" | "completed" | "failed";
1121
+ data: "created" | "completed";
1054
1122
  driverParam: string;
1055
1123
  notNull: true;
1056
1124
  hasDefault: true;
1057
1125
  isPrimaryKey: false;
1058
1126
  isAutoincrement: false;
1059
1127
  hasRuntimeDefault: false;
1060
- enumValues: ["created", "completed", "failed"];
1128
+ enumValues: ["created", "completed"];
1061
1129
  baseColumn: never;
1062
1130
  identity: undefined;
1063
1131
  generated: undefined;
@@ -8,12 +8,16 @@ export declare const AssetConvertProductErrorCodes: {
8
8
  readonly ASSET_CONVERT_PRODUCT_ASSET_INACTIVE: "ASSET_CONVERT_PRODUCT_ASSET_INACTIVE";
9
9
  readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_NOT_FOUND: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_NOT_FOUND";
10
10
  readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_INACTIVE: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_INACTIVE";
11
+ readonly ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_NOT_FOUND: "ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_NOT_FOUND";
12
+ readonly ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_INACTIVE: "ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_INACTIVE";
11
13
  readonly ASSET_CONVERT_PRODUCT_ASSETS_MUST_DIFFER: "ASSET_CONVERT_PRODUCT_ASSETS_MUST_DIFFER";
12
14
  readonly ASSET_CONVERT_PRODUCT_TIME_RANGE_INVALID: "ASSET_CONVERT_PRODUCT_TIME_RANGE_INVALID";
13
15
  readonly ASSET_CONVERT_PRODUCT_ORDER_NOT_FOUND: "ASSET_CONVERT_PRODUCT_ORDER_NOT_FOUND";
14
16
  readonly ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_NOT_FOUND: "ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_NOT_FOUND";
15
17
  readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_NOT_FOUND: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_NOT_FOUND";
18
+ readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_STATUS_INVALID: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_STATUS_INVALID";
16
19
  readonly ASSET_CONVERT_PRODUCT_ACCOUNT_ASSET_NOT_MATCH: "ASSET_CONVERT_PRODUCT_ACCOUNT_ASSET_NOT_MATCH";
20
+ readonly ASSET_CONVERT_PRODUCT_ACCOUNT_TYPE_NOT_MATCH: "ASSET_CONVERT_PRODUCT_ACCOUNT_TYPE_NOT_MATCH";
17
21
  readonly ASSET_CONVERT_PRODUCT_IDEMPOTENCY_CONFLICT: "ASSET_CONVERT_PRODUCT_IDEMPOTENCY_CONFLICT";
18
22
  readonly ASSET_CONVERT_PRODUCT_PAY_AMOUNT_INVALID: "ASSET_CONVERT_PRODUCT_PAY_AMOUNT_INVALID";
19
23
  readonly ASSET_CONVERT_PRODUCT_ORDER_CREATE_FAILED: "ASSET_CONVERT_PRODUCT_ORDER_CREATE_FAILED";
@@ -7,12 +7,16 @@ export declare const zh: {
7
7
  ASSET_CONVERT_PRODUCT_ASSET_INACTIVE: string;
8
8
  ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_NOT_FOUND: string;
9
9
  ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_INACTIVE: string;
10
+ ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_NOT_FOUND: string;
11
+ ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_INACTIVE: string;
10
12
  ASSET_CONVERT_PRODUCT_ASSETS_MUST_DIFFER: string;
11
13
  ASSET_CONVERT_PRODUCT_TIME_RANGE_INVALID: string;
12
14
  ASSET_CONVERT_PRODUCT_ORDER_NOT_FOUND: string;
13
15
  ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_NOT_FOUND: string;
14
16
  ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_NOT_FOUND: string;
17
+ ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_STATUS_INVALID: string;
15
18
  ASSET_CONVERT_PRODUCT_ACCOUNT_ASSET_NOT_MATCH: string;
19
+ ASSET_CONVERT_PRODUCT_ACCOUNT_TYPE_NOT_MATCH: string;
16
20
  ASSET_CONVERT_PRODUCT_IDEMPOTENCY_CONFLICT: string;
17
21
  ASSET_CONVERT_PRODUCT_PAY_AMOUNT_INVALID: string;
18
22
  ASSET_CONVERT_PRODUCT_ORDER_CREATE_FAILED: string;