@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
@@ -8,8 +8,12 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
8
8
  updatedAt: Date;
9
9
  description: string | null;
10
10
  status: "active" | "draft" | "paused" | "ended";
11
+ coverImageUrl: string | null;
11
12
  rightsAssetId: string;
12
13
  pricingAssetId: string;
14
+ sourcePricingAccountTypeId: string;
15
+ dailyPayoutAccountTypeId: string;
16
+ maturitySettlementAccountTypeId: string;
13
17
  pricePerShare: string;
14
18
  rightsPerShare: string;
15
19
  cycleDays: number;
@@ -26,8 +30,12 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
26
30
  id: string;
27
31
  name: string;
28
32
  description: string | null;
33
+ coverImageUrl: string | null;
29
34
  rightsAssetId: string;
30
35
  pricingAssetId: string;
36
+ sourcePricingAccountTypeId: string;
37
+ dailyPayoutAccountTypeId: string;
38
+ maturitySettlementAccountTypeId: string;
31
39
  pricePerShare: string;
32
40
  rightsPerShare: string;
33
41
  cycleDays: number;
@@ -45,8 +53,12 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
45
53
  id: string;
46
54
  name: string;
47
55
  description: string | null;
56
+ coverImageUrl: string | null;
48
57
  rightsAssetId: string;
49
58
  pricingAssetId: string;
59
+ sourcePricingAccountTypeId: string;
60
+ dailyPayoutAccountTypeId: string;
61
+ maturitySettlementAccountTypeId: string;
50
62
  pricePerShare: string;
51
63
  rightsPerShare: string;
52
64
  cycleDays: number;
@@ -64,8 +76,12 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
64
76
  id: string;
65
77
  name: string;
66
78
  description: string | null;
79
+ coverImageUrl: string | null;
67
80
  rightsAssetId: string;
68
81
  pricingAssetId: string;
82
+ sourcePricingAccountTypeId: string;
83
+ dailyPayoutAccountTypeId: string;
84
+ maturitySettlementAccountTypeId: string;
69
85
  pricePerShare: string;
70
86
  rightsPerShare: string;
71
87
  cycleDays: number;
@@ -83,8 +99,12 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
83
99
  id: string;
84
100
  name: string;
85
101
  description: string | null;
102
+ coverImageUrl: string | null;
86
103
  rightsAssetId: string;
87
104
  pricingAssetId: string;
105
+ sourcePricingAccountTypeId: string;
106
+ dailyPayoutAccountTypeId: string;
107
+ maturitySettlementAccountTypeId: string;
88
108
  pricePerShare: string;
89
109
  rightsPerShare: string;
90
110
  cycleDays: number;
@@ -105,8 +125,12 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
105
125
  updatedAt: Date;
106
126
  description: string | null;
107
127
  status: "active" | "draft" | "paused" | "ended";
128
+ coverImageUrl: string | null;
108
129
  rightsAssetId: string;
109
130
  pricingAssetId: string;
131
+ sourcePricingAccountTypeId: string;
132
+ dailyPayoutAccountTypeId: string;
133
+ maturitySettlementAccountTypeId: string;
110
134
  pricePerShare: string;
111
135
  rightsPerShare: string;
112
136
  cycleDays: number;
@@ -136,7 +160,8 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
136
160
  orderNo: string;
137
161
  planId: string;
138
162
  sourcePricingAccountId: string;
139
- rightsReceiveAccountId: string;
163
+ dailyPayoutReceiveAccountId: string;
164
+ maturitySettlementReceiveAccountId: string;
140
165
  shares: number;
141
166
  totalPricingAmount: string;
142
167
  totalRightsPrincipal: string;
@@ -84,6 +84,23 @@ export declare const welfareCyclePlanSelectSchema: import("drizzle-typebox").Bui
84
84
  identity: undefined;
85
85
  generated: undefined;
86
86
  }, {}, {}>;
87
+ coverImageUrl: import("drizzle-orm/pg-core").PgColumn<{
88
+ name: "cover_image_url";
89
+ tableName: "welfare_cycle_plan";
90
+ dataType: "string";
91
+ columnType: "PgText";
92
+ data: string;
93
+ driverParam: string;
94
+ notNull: false;
95
+ hasDefault: false;
96
+ isPrimaryKey: false;
97
+ isAutoincrement: false;
98
+ hasRuntimeDefault: false;
99
+ enumValues: [string, ...string[]];
100
+ baseColumn: never;
101
+ identity: undefined;
102
+ generated: undefined;
103
+ }, {}, {}>;
87
104
  rightsAssetId: import("drizzle-orm/pg-core").PgColumn<{
88
105
  name: "rights_asset_id";
89
106
  tableName: "welfare_cycle_plan";
@@ -118,6 +135,57 @@ export declare const welfareCyclePlanSelectSchema: import("drizzle-typebox").Bui
118
135
  identity: undefined;
119
136
  generated: undefined;
120
137
  }, {}, {}>;
138
+ sourcePricingAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
139
+ name: "source_pricing_account_type_id";
140
+ tableName: "welfare_cycle_plan";
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
+ dailyPayoutAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
156
+ name: "daily_payout_account_type_id";
157
+ tableName: "welfare_cycle_plan";
158
+ dataType: "string";
159
+ columnType: "PgUUID";
160
+ data: string;
161
+ driverParam: string;
162
+ notNull: true;
163
+ hasDefault: false;
164
+ isPrimaryKey: false;
165
+ isAutoincrement: false;
166
+ hasRuntimeDefault: false;
167
+ enumValues: undefined;
168
+ baseColumn: never;
169
+ identity: undefined;
170
+ generated: undefined;
171
+ }, {}, {}>;
172
+ maturitySettlementAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
173
+ name: "maturity_settlement_account_type_id";
174
+ tableName: "welfare_cycle_plan";
175
+ dataType: "string";
176
+ columnType: "PgUUID";
177
+ data: string;
178
+ driverParam: string;
179
+ notNull: true;
180
+ hasDefault: false;
181
+ isPrimaryKey: false;
182
+ isAutoincrement: false;
183
+ hasRuntimeDefault: false;
184
+ enumValues: undefined;
185
+ baseColumn: never;
186
+ identity: undefined;
187
+ generated: undefined;
188
+ }, {}, {}>;
121
189
  pricePerShare: import("drizzle-orm/pg-core").PgColumn<{
122
190
  name: "price_per_share";
123
191
  tableName: "welfare_cycle_plan";
@@ -376,6 +444,23 @@ export declare const welfareCyclePlanInsertSchema: import("drizzle-typebox").Bui
376
444
  identity: undefined;
377
445
  generated: undefined;
378
446
  }, {}, {}>;
447
+ coverImageUrl: import("drizzle-orm/pg-core").PgColumn<{
448
+ name: "cover_image_url";
449
+ tableName: "welfare_cycle_plan";
450
+ dataType: "string";
451
+ columnType: "PgText";
452
+ data: string;
453
+ driverParam: string;
454
+ notNull: false;
455
+ hasDefault: false;
456
+ isPrimaryKey: false;
457
+ isAutoincrement: false;
458
+ hasRuntimeDefault: false;
459
+ enumValues: [string, ...string[]];
460
+ baseColumn: never;
461
+ identity: undefined;
462
+ generated: undefined;
463
+ }, {}, {}>;
379
464
  rightsAssetId: import("drizzle-orm/pg-core").PgColumn<{
380
465
  name: "rights_asset_id";
381
466
  tableName: "welfare_cycle_plan";
@@ -410,6 +495,57 @@ export declare const welfareCyclePlanInsertSchema: import("drizzle-typebox").Bui
410
495
  identity: undefined;
411
496
  generated: undefined;
412
497
  }, {}, {}>;
498
+ sourcePricingAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
499
+ name: "source_pricing_account_type_id";
500
+ tableName: "welfare_cycle_plan";
501
+ dataType: "string";
502
+ columnType: "PgUUID";
503
+ data: string;
504
+ driverParam: string;
505
+ notNull: true;
506
+ hasDefault: false;
507
+ isPrimaryKey: false;
508
+ isAutoincrement: false;
509
+ hasRuntimeDefault: false;
510
+ enumValues: undefined;
511
+ baseColumn: never;
512
+ identity: undefined;
513
+ generated: undefined;
514
+ }, {}, {}>;
515
+ dailyPayoutAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
516
+ name: "daily_payout_account_type_id";
517
+ tableName: "welfare_cycle_plan";
518
+ dataType: "string";
519
+ columnType: "PgUUID";
520
+ data: string;
521
+ driverParam: string;
522
+ notNull: true;
523
+ hasDefault: false;
524
+ isPrimaryKey: false;
525
+ isAutoincrement: false;
526
+ hasRuntimeDefault: false;
527
+ enumValues: undefined;
528
+ baseColumn: never;
529
+ identity: undefined;
530
+ generated: undefined;
531
+ }, {}, {}>;
532
+ maturitySettlementAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
533
+ name: "maturity_settlement_account_type_id";
534
+ tableName: "welfare_cycle_plan";
535
+ dataType: "string";
536
+ columnType: "PgUUID";
537
+ data: string;
538
+ driverParam: string;
539
+ notNull: true;
540
+ hasDefault: false;
541
+ isPrimaryKey: false;
542
+ isAutoincrement: false;
543
+ hasRuntimeDefault: false;
544
+ enumValues: undefined;
545
+ baseColumn: never;
546
+ identity: undefined;
547
+ generated: undefined;
548
+ }, {}, {}>;
413
549
  pricePerShare: import("drizzle-orm/pg-core").PgColumn<{
414
550
  name: "price_per_share";
415
551
  tableName: "welfare_cycle_plan";
@@ -719,8 +855,25 @@ export declare const welfareCycleSubscriptionSelectSchema: import("drizzle-typeb
719
855
  identity: undefined;
720
856
  generated: undefined;
721
857
  }, {}, {}>;
722
- rightsReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
723
- name: "rights_receive_account_id";
858
+ dailyPayoutReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
859
+ name: "daily_payout_receive_account_id";
860
+ tableName: "welfare_cycle_subscription";
861
+ dataType: "string";
862
+ columnType: "PgUUID";
863
+ data: string;
864
+ driverParam: string;
865
+ notNull: true;
866
+ hasDefault: false;
867
+ isPrimaryKey: false;
868
+ isAutoincrement: false;
869
+ hasRuntimeDefault: false;
870
+ enumValues: undefined;
871
+ baseColumn: never;
872
+ identity: undefined;
873
+ generated: undefined;
874
+ }, {}, {}>;
875
+ maturitySettlementReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
876
+ name: "maturity_settlement_receive_account_id";
724
877
  tableName: "welfare_cycle_subscription";
725
878
  dataType: "string";
726
879
  columnType: "PgUUID";
@@ -1130,8 +1283,25 @@ export declare const welfareCycleSubscriptionInsertSchema: import("drizzle-typeb
1130
1283
  identity: undefined;
1131
1284
  generated: undefined;
1132
1285
  }, {}, {}>;
1133
- rightsReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
1134
- name: "rights_receive_account_id";
1286
+ dailyPayoutReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
1287
+ name: "daily_payout_receive_account_id";
1288
+ tableName: "welfare_cycle_subscription";
1289
+ dataType: "string";
1290
+ columnType: "PgUUID";
1291
+ data: string;
1292
+ driverParam: string;
1293
+ notNull: true;
1294
+ hasDefault: false;
1295
+ isPrimaryKey: false;
1296
+ isAutoincrement: false;
1297
+ hasRuntimeDefault: false;
1298
+ enumValues: undefined;
1299
+ baseColumn: never;
1300
+ identity: undefined;
1301
+ generated: undefined;
1302
+ }, {}, {}>;
1303
+ maturitySettlementReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
1304
+ name: "maturity_settlement_receive_account_id";
1135
1305
  tableName: "welfare_cycle_subscription";
1136
1306
  dataType: "string";
1137
1307
  columnType: "PgUUID";
@@ -3,9 +3,15 @@ export declare const WelfareCycleErrorCodes: {
3
3
  readonly WELFARE_CYCLE_PLAN_NOT_FOUND: "WELFARE_CYCLE_PLAN_NOT_FOUND";
4
4
  readonly WELFARE_CYCLE_PLAN_STATUS_INVALID: "WELFARE_CYCLE_PLAN_STATUS_INVALID";
5
5
  readonly WELFARE_CYCLE_PLAN_NOT_SALE_TIME: "WELFARE_CYCLE_PLAN_NOT_SALE_TIME";
6
+ readonly WELFARE_CYCLE_ASSET_NOT_FOUND: "WELFARE_CYCLE_ASSET_NOT_FOUND";
7
+ readonly WELFARE_CYCLE_ASSET_INACTIVE: "WELFARE_CYCLE_ASSET_INACTIVE";
8
+ readonly WELFARE_CYCLE_ACCOUNT_TYPE_NOT_FOUND: "WELFARE_CYCLE_ACCOUNT_TYPE_NOT_FOUND";
9
+ readonly WELFARE_CYCLE_ACCOUNT_TYPE_INACTIVE: "WELFARE_CYCLE_ACCOUNT_TYPE_INACTIVE";
6
10
  readonly WELFARE_CYCLE_SUBSCRIPTION_NOT_FOUND: "WELFARE_CYCLE_SUBSCRIPTION_NOT_FOUND";
7
11
  readonly WELFARE_CYCLE_INVALID_SHARES: "WELFARE_CYCLE_INVALID_SHARES";
8
12
  readonly WELFARE_CYCLE_ACCOUNT_NOT_MATCH: "WELFARE_CYCLE_ACCOUNT_NOT_MATCH";
13
+ readonly WELFARE_CYCLE_ACCOUNT_NOT_FOUND: "WELFARE_CYCLE_ACCOUNT_NOT_FOUND";
14
+ readonly WELFARE_CYCLE_ACCOUNT_STATUS_INVALID: "WELFARE_CYCLE_ACCOUNT_STATUS_INVALID";
9
15
  readonly WELFARE_CYCLE_ASSET_NOT_MATCH: "WELFARE_CYCLE_ASSET_NOT_MATCH";
10
16
  readonly WELFARE_CYCLE_IDEMPOTENCY_CONFLICT: "WELFARE_CYCLE_IDEMPOTENCY_CONFLICT";
11
17
  readonly WELFARE_CYCLE_SUBSCRIPTION_CREATE_FAILED: "WELFARE_CYCLE_SUBSCRIPTION_CREATE_FAILED";
@@ -2,9 +2,15 @@ export declare const zh: {
2
2
  WELFARE_CYCLE_PLAN_NOT_FOUND: string;
3
3
  WELFARE_CYCLE_PLAN_STATUS_INVALID: string;
4
4
  WELFARE_CYCLE_PLAN_NOT_SALE_TIME: string;
5
+ WELFARE_CYCLE_ASSET_NOT_FOUND: string;
6
+ WELFARE_CYCLE_ASSET_INACTIVE: string;
7
+ WELFARE_CYCLE_ACCOUNT_TYPE_NOT_FOUND: string;
8
+ WELFARE_CYCLE_ACCOUNT_TYPE_INACTIVE: string;
5
9
  WELFARE_CYCLE_SUBSCRIPTION_NOT_FOUND: string;
6
10
  WELFARE_CYCLE_INVALID_SHARES: string;
7
11
  WELFARE_CYCLE_ACCOUNT_NOT_MATCH: string;
12
+ WELFARE_CYCLE_ACCOUNT_NOT_FOUND: string;
13
+ WELFARE_CYCLE_ACCOUNT_STATUS_INVALID: string;
8
14
  WELFARE_CYCLE_ASSET_NOT_MATCH: string;
9
15
  WELFARE_CYCLE_IDEMPOTENCY_CONFLICT: string;
10
16
  WELFARE_CYCLE_SUBSCRIPTION_CREATE_FAILED: string;
@@ -12,8 +12,12 @@ export declare abstract class BaseWelfareCycleService {
12
12
  updatedAt: Date;
13
13
  description: string | null;
14
14
  status: "active" | "draft" | "paused" | "ended";
15
+ coverImageUrl: string | null;
15
16
  rightsAssetId: string;
16
17
  pricingAssetId: string;
18
+ sourcePricingAccountTypeId: string;
19
+ dailyPayoutAccountTypeId: string;
20
+ maturitySettlementAccountTypeId: string;
17
21
  pricePerShare: string;
18
22
  rightsPerShare: string;
19
23
  cycleDays: number;
@@ -34,7 +38,8 @@ export declare abstract class BaseWelfareCycleService {
34
38
  orderNo: string;
35
39
  planId: string;
36
40
  sourcePricingAccountId: string;
37
- rightsReceiveAccountId: string;
41
+ dailyPayoutReceiveAccountId: string;
42
+ maturitySettlementReceiveAccountId: string;
38
43
  shares: number;
39
44
  totalPricingAmount: string;
40
45
  totalRightsPrincipal: string;
@@ -56,8 +61,12 @@ export declare abstract class BaseWelfareCycleService {
56
61
  updatedAt: Date;
57
62
  description: string | null;
58
63
  status: "active" | "draft" | "paused" | "ended";
64
+ coverImageUrl: string | null;
59
65
  rightsAssetId: string;
60
66
  pricingAssetId: string;
67
+ sourcePricingAccountTypeId: string;
68
+ dailyPayoutAccountTypeId: string;
69
+ maturitySettlementAccountTypeId: string;
61
70
  pricePerShare: string;
62
71
  rightsPerShare: string;
63
72
  cycleDays: number;
@@ -81,6 +90,25 @@ export declare abstract class BaseWelfareCycleService {
81
90
  locked: string;
82
91
  version: number;
83
92
  }>;
93
+ protected static getActiveAccountByTypeForUser(tx: TransactionTx, userId: string, assetId: string, accountTypeId: string): Promise<{
94
+ id: string;
95
+ createdAt: Date;
96
+ updatedAt: Date;
97
+ userId: string;
98
+ status: "active" | "frozen" | "disabled";
99
+ assetId: string;
100
+ ledgerAccountTypeId: string;
101
+ available: string;
102
+ locked: string;
103
+ version: number;
104
+ }>;
105
+ protected static ensurePlanReferencesValid(tx: TransactionTx, input: {
106
+ rightsAssetId: string;
107
+ pricingAssetId: string;
108
+ sourcePricingAccountTypeId: string;
109
+ dailyPayoutAccountTypeId: string;
110
+ maturitySettlementAccountTypeId: string;
111
+ }): Promise<void>;
84
112
  protected static calcTotalPricingAmount(pricePerShare: string, shares: number): string;
85
113
  protected static calcTotalRightsPrincipal(rightsPerShare: string, shares: number): string;
86
114
  protected static calcDailyPayoutAmount(totalRightsPrincipal: string, dailyYieldRate: string): string;
@@ -125,7 +153,8 @@ export declare abstract class InternalWelfareCycleService extends BaseWelfareCyc
125
153
  orderNo: string;
126
154
  planId: string;
127
155
  sourcePricingAccountId: string;
128
- rightsReceiveAccountId: string;
156
+ dailyPayoutReceiveAccountId: string;
157
+ maturitySettlementReceiveAccountId: string;
129
158
  shares: number;
130
159
  totalPricingAmount: string;
131
160
  totalRightsPrincipal: string;
@@ -147,8 +176,12 @@ export declare abstract class InternalWelfareCycleService extends BaseWelfareCyc
147
176
  updatedAt: Date;
148
177
  description: string | null;
149
178
  status: "active" | "draft" | "paused" | "ended";
179
+ coverImageUrl: string | null;
150
180
  rightsAssetId: string;
151
181
  pricingAssetId: string;
182
+ sourcePricingAccountTypeId: string;
183
+ dailyPayoutAccountTypeId: string;
184
+ maturitySettlementAccountTypeId: string;
152
185
  pricePerShare: string;
153
186
  rightsPerShare: string;
154
187
  cycleDays: number;
@@ -170,7 +203,8 @@ export declare abstract class InternalWelfareCycleService extends BaseWelfareCyc
170
203
  orderNo: string;
171
204
  planId: string;
172
205
  sourcePricingAccountId: string;
173
- rightsReceiveAccountId: string;
206
+ dailyPayoutReceiveAccountId: string;
207
+ maturitySettlementReceiveAccountId: string;
174
208
  shares: number;
175
209
  totalPricingAmount: string;
176
210
  totalRightsPrincipal: string;
@@ -192,8 +226,12 @@ export declare abstract class InternalWelfareCycleService extends BaseWelfareCyc
192
226
  updatedAt: Date;
193
227
  description: string | null;
194
228
  status: "active" | "draft" | "paused" | "ended";
229
+ coverImageUrl: string | null;
195
230
  rightsAssetId: string;
196
231
  pricingAssetId: string;
232
+ sourcePricingAccountTypeId: string;
233
+ dailyPayoutAccountTypeId: string;
234
+ maturitySettlementAccountTypeId: string;
197
235
  pricePerShare: string;
198
236
  rightsPerShare: string;
199
237
  cycleDays: number;
@@ -97,6 +97,23 @@ export declare const welfareCyclePlan: import("drizzle-orm/pg-core").PgTableWith
97
97
  identity: undefined;
98
98
  generated: undefined;
99
99
  }, {}, {}>;
100
+ coverImageUrl: import("drizzle-orm/pg-core").PgColumn<{
101
+ name: "cover_image_url";
102
+ tableName: "welfare_cycle_plan";
103
+ dataType: "string";
104
+ columnType: "PgText";
105
+ data: string;
106
+ driverParam: string;
107
+ notNull: false;
108
+ hasDefault: false;
109
+ isPrimaryKey: false;
110
+ isAutoincrement: false;
111
+ hasRuntimeDefault: false;
112
+ enumValues: [string, ...string[]];
113
+ baseColumn: never;
114
+ identity: undefined;
115
+ generated: undefined;
116
+ }, {}, {}>;
100
117
  rightsAssetId: import("drizzle-orm/pg-core").PgColumn<{
101
118
  name: "rights_asset_id";
102
119
  tableName: "welfare_cycle_plan";
@@ -131,6 +148,57 @@ export declare const welfareCyclePlan: import("drizzle-orm/pg-core").PgTableWith
131
148
  identity: undefined;
132
149
  generated: undefined;
133
150
  }, {}, {}>;
151
+ sourcePricingAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
152
+ name: "source_pricing_account_type_id";
153
+ tableName: "welfare_cycle_plan";
154
+ dataType: "string";
155
+ columnType: "PgUUID";
156
+ data: string;
157
+ driverParam: string;
158
+ notNull: true;
159
+ hasDefault: false;
160
+ isPrimaryKey: false;
161
+ isAutoincrement: false;
162
+ hasRuntimeDefault: false;
163
+ enumValues: undefined;
164
+ baseColumn: never;
165
+ identity: undefined;
166
+ generated: undefined;
167
+ }, {}, {}>;
168
+ dailyPayoutAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
169
+ name: "daily_payout_account_type_id";
170
+ tableName: "welfare_cycle_plan";
171
+ dataType: "string";
172
+ columnType: "PgUUID";
173
+ data: string;
174
+ driverParam: string;
175
+ notNull: true;
176
+ hasDefault: false;
177
+ isPrimaryKey: false;
178
+ isAutoincrement: false;
179
+ hasRuntimeDefault: false;
180
+ enumValues: undefined;
181
+ baseColumn: never;
182
+ identity: undefined;
183
+ generated: undefined;
184
+ }, {}, {}>;
185
+ maturitySettlementAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
186
+ name: "maturity_settlement_account_type_id";
187
+ tableName: "welfare_cycle_plan";
188
+ dataType: "string";
189
+ columnType: "PgUUID";
190
+ data: string;
191
+ driverParam: string;
192
+ notNull: true;
193
+ hasDefault: false;
194
+ isPrimaryKey: false;
195
+ isAutoincrement: false;
196
+ hasRuntimeDefault: false;
197
+ enumValues: undefined;
198
+ baseColumn: never;
199
+ identity: undefined;
200
+ generated: undefined;
201
+ }, {}, {}>;
134
202
  pricePerShare: import("drizzle-orm/pg-core").PgColumn<{
135
203
  name: "price_per_share";
136
204
  tableName: "welfare_cycle_plan";
@@ -448,8 +516,25 @@ export declare const welfareCycleSubscription: import("drizzle-orm/pg-core").PgT
448
516
  identity: undefined;
449
517
  generated: undefined;
450
518
  }, {}, {}>;
451
- rightsReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
452
- name: "rights_receive_account_id";
519
+ dailyPayoutReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
520
+ name: "daily_payout_receive_account_id";
521
+ tableName: "welfare_cycle_subscription";
522
+ dataType: "string";
523
+ columnType: "PgUUID";
524
+ data: string;
525
+ driverParam: string;
526
+ notNull: true;
527
+ hasDefault: false;
528
+ isPrimaryKey: false;
529
+ isAutoincrement: false;
530
+ hasRuntimeDefault: false;
531
+ enumValues: undefined;
532
+ baseColumn: never;
533
+ identity: undefined;
534
+ generated: undefined;
535
+ }, {}, {}>;
536
+ maturitySettlementReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
537
+ name: "maturity_settlement_receive_account_id";
453
538
  tableName: "welfare_cycle_subscription";
454
539
  dataType: "string";
455
540
  columnType: "PgUUID";
@@ -1156,13 +1241,17 @@ export declare const welfareCycleMaturitySettlement: import("drizzle-orm/pg-core
1156
1241
  export declare const welfareCyclePlanRelations: import("drizzle-orm").Relations<"welfare_cycle_plan", {
1157
1242
  rightsAsset: import("drizzle-orm").One<"asset", true>;
1158
1243
  pricingAsset: import("drizzle-orm").One<"asset", true>;
1244
+ sourcePricingAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
1245
+ dailyPayoutAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
1246
+ maturitySettlementAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
1159
1247
  subscriptions: import("drizzle-orm").Many<"welfare_cycle_subscription">;
1160
1248
  }>;
1161
1249
  export declare const welfareCycleSubscriptionRelations: import("drizzle-orm").Relations<"welfare_cycle_subscription", {
1162
1250
  user: import("drizzle-orm").One<"user", true>;
1163
1251
  plan: import("drizzle-orm").One<"welfare_cycle_plan", true>;
1164
1252
  sourcePricingAccount: import("drizzle-orm").One<"ledger_account", true>;
1165
- rightsReceiveAccount: import("drizzle-orm").One<"ledger_account", true>;
1253
+ dailyPayoutReceiveAccount: import("drizzle-orm").One<"ledger_account", true>;
1254
+ maturitySettlementReceiveAccount: import("drizzle-orm").One<"ledger_account", true>;
1166
1255
  pricingAssetSnapshot: import("drizzle-orm").One<"asset", true>;
1167
1256
  rightsAssetSnapshot: import("drizzle-orm").One<"asset", true>;
1168
1257
  dailyPayouts: import("drizzle-orm").Many<"welfare_cycle_daily_payout">;