@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.
- package/dist/src/admin/admin/dto.schemas.d.ts +8 -0
- package/dist/src/admin/admin/errors/index.d.ts +1 -0
- package/dist/src/admin/admin/errors/locales/zh.d.ts +1 -0
- package/dist/src/admin/admin/router.d.ts +31 -0
- package/dist/src/admin/admin/service.d.ts +3 -0
- package/dist/src/admin/index.d.ts +158 -34
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +44 -12
- package/dist/src/asset-convert-product/admin/router.d.ts +83 -23
- package/dist/src/asset-convert-product/admin/service.d.ts +73 -17
- package/dist/src/asset-convert-product/db.schemas.d.ts +76 -8
- package/dist/src/asset-convert-product/errors/index.d.ts +4 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +4 -0
- package/dist/src/asset-convert-product/internal/service.d.ts +4 -3
- package/dist/src/asset-convert-product/schema.d.ts +41 -6
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +264 -14
- package/dist/src/asset-convert-product/user/router.d.ts +10 -8
- package/dist/src/asset-convert-product/user/service.d.ts +9 -5
- package/dist/src/index.d.ts +255 -47
- package/dist/src/ledger-account/admin/router.d.ts +1 -1
- package/dist/src/ledger-account/user/dto.schemas.d.ts +5 -0
- package/dist/src/ledger-account/user/router.d.ts +61 -0
- package/dist/src/ledger-account/user/service.d.ts +51 -1
- 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/welfare-cycle/admin/dto.schemas.d.ts +95 -2
- package/dist/src/welfare-cycle/admin/router.d.ts +34 -1
- package/dist/src/welfare-cycle/admin/service.d.ts +26 -1
- package/dist/src/welfare-cycle/db.schemas.d.ts +174 -4
- package/dist/src/welfare-cycle/errors/index.d.ts +6 -0
- package/dist/src/welfare-cycle/errors/locales/zh.d.ts +6 -0
- package/dist/src/welfare-cycle/internal/service.d.ts +41 -3
- package/dist/src/welfare-cycle/schema.d.ts +92 -3
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +106 -6
- package/dist/src/welfare-cycle/user/router.d.ts +14 -5
- package/dist/src/welfare-cycle/user/service.d.ts +14 -3
- package/dist/src/withdraw/user/dto.schemas.d.ts +599 -0
- package/dist/src/withdraw/user/router.d.ts +73 -0
- package/dist/src/withdraw/user/service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -583,8 +583,8 @@ export declare const ledgerAccountAdminRouter: Elysia<"/ledger_accounts", {
|
|
|
583
583
|
response: {
|
|
584
584
|
200: {
|
|
585
585
|
totalCount: number;
|
|
586
|
-
failedCount: number;
|
|
587
586
|
successCount: number;
|
|
587
|
+
failedCount: number;
|
|
588
588
|
results: {
|
|
589
589
|
accountId?: string | undefined;
|
|
590
590
|
ledgerEntryId?: string | undefined;
|
|
@@ -184,6 +184,11 @@ export declare const ledgerAccountIdParamsSchema: import("@sinclair/typebox").TO
|
|
|
184
184
|
id: import("@sinclair/typebox").TString;
|
|
185
185
|
}>;
|
|
186
186
|
export type LedgerAccountIdParamsType = typeof ledgerAccountIdParamsSchema.static;
|
|
187
|
+
export declare const ledgerAccountByTypeAndAssetParamsSchema: import("@sinclair/typebox").TObject<{
|
|
188
|
+
accountTypeKey: import("@sinclair/typebox").TString;
|
|
189
|
+
assetCode: import("@sinclair/typebox").TString;
|
|
190
|
+
}>;
|
|
191
|
+
export type LedgerAccountByTypeAndAssetParamsType = typeof ledgerAccountByTypeAndAssetParamsSchema.static;
|
|
187
192
|
export declare const ledgerAccountResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
188
193
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
189
194
|
name: "created_at";
|
|
@@ -379,6 +379,67 @@ export declare const ledgerAccountRouter: Elysia<"/ledger_accounts", {
|
|
|
379
379
|
response: {};
|
|
380
380
|
}, {
|
|
381
381
|
ledger_accounts: {};
|
|
382
|
+
} & {
|
|
383
|
+
ledger_accounts: {
|
|
384
|
+
"account-types": {
|
|
385
|
+
":accountTypeKey": {
|
|
386
|
+
assets: {
|
|
387
|
+
":assetCode": {
|
|
388
|
+
get: {
|
|
389
|
+
body: {};
|
|
390
|
+
params: {
|
|
391
|
+
assetCode: string;
|
|
392
|
+
accountTypeKey: string;
|
|
393
|
+
};
|
|
394
|
+
query: {};
|
|
395
|
+
headers: {};
|
|
396
|
+
response: {
|
|
397
|
+
200: {
|
|
398
|
+
id: string;
|
|
399
|
+
createdAt: Date;
|
|
400
|
+
updatedAt: Date;
|
|
401
|
+
userId: string;
|
|
402
|
+
status: "active" | "frozen" | "disabled";
|
|
403
|
+
asset: {
|
|
404
|
+
symbol: string;
|
|
405
|
+
id: string;
|
|
406
|
+
name: string;
|
|
407
|
+
code: string;
|
|
408
|
+
iconUrl: string;
|
|
409
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
410
|
+
isActive: boolean;
|
|
411
|
+
precision: number;
|
|
412
|
+
};
|
|
413
|
+
assetId: string;
|
|
414
|
+
ledgerAccountTypeId: string;
|
|
415
|
+
available: string;
|
|
416
|
+
locked: string;
|
|
417
|
+
version: number;
|
|
418
|
+
ledgerAccountType: {
|
|
419
|
+
id: string;
|
|
420
|
+
name: string;
|
|
421
|
+
description: string | null;
|
|
422
|
+
key: string;
|
|
423
|
+
isActive: boolean;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
422: {
|
|
427
|
+
type: "validation";
|
|
428
|
+
on: string;
|
|
429
|
+
summary?: string;
|
|
430
|
+
message?: string;
|
|
431
|
+
found?: unknown;
|
|
432
|
+
property?: string;
|
|
433
|
+
expected?: string;
|
|
434
|
+
};
|
|
435
|
+
401: "Unauthorized";
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
};
|
|
382
443
|
} & {
|
|
383
444
|
ledger_accounts: {
|
|
384
445
|
":id": {
|
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
import { BaseLedgerAccountService } from "../internal/service";
|
|
2
|
-
import type { LedgerAccountIdParamsType } from "./dto.schemas";
|
|
2
|
+
import type { LedgerAccountByTypeAndAssetParamsType, LedgerAccountIdParamsType } from "./dto.schemas";
|
|
3
3
|
export declare abstract class UserLedgerAccountService extends BaseLedgerAccountService {
|
|
4
|
+
static getAccountByTypeAndAsset(userId: string, params: LedgerAccountByTypeAndAssetParamsType): Promise<{
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
userId: string;
|
|
9
|
+
status: "active" | "frozen" | "disabled";
|
|
10
|
+
assetId: string;
|
|
11
|
+
ledgerAccountTypeId: string;
|
|
12
|
+
available: string;
|
|
13
|
+
locked: string;
|
|
14
|
+
version: number;
|
|
15
|
+
asset: {
|
|
16
|
+
symbol: string;
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
code: string;
|
|
22
|
+
iconUrl: string;
|
|
23
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
typeId: string;
|
|
26
|
+
precision: number;
|
|
27
|
+
};
|
|
28
|
+
ledgerAccountType: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
description: string | null;
|
|
34
|
+
key: string;
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
allowDeposit: boolean;
|
|
37
|
+
allowWithdraw: boolean;
|
|
38
|
+
minWithdrawAmount: string;
|
|
39
|
+
maxWithdrawAmount: string;
|
|
40
|
+
allowTransfer: boolean;
|
|
41
|
+
minTransferAmount: string;
|
|
42
|
+
maxTransferAmount: string;
|
|
43
|
+
allowInternalTransfer: boolean;
|
|
44
|
+
allowInternalReceiveTransfer: boolean;
|
|
45
|
+
minInternalTransferAmount: string;
|
|
46
|
+
maxInternalTransferAmount: string;
|
|
47
|
+
internalTransferRatio: string;
|
|
48
|
+
allowTransaction: boolean;
|
|
49
|
+
hasExpiry: boolean;
|
|
50
|
+
expiryDays: number | null;
|
|
51
|
+
sortOrder: number;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
4
54
|
static getAccountById(userId: string, params: LedgerAccountIdParamsType): Promise<{
|
|
5
55
|
id: string;
|
|
6
56
|
createdAt: Date;
|
|
@@ -72,7 +72,7 @@ export declare const ledgerAccountImportJobResponseSchema: import("drizzle-typeb
|
|
|
72
72
|
tableName: "ledger_account_import_job";
|
|
73
73
|
dataType: "string";
|
|
74
74
|
columnType: "PgEnumColumn";
|
|
75
|
-
data: "pending" | "
|
|
75
|
+
data: "pending" | "running" | "success" | "failed";
|
|
76
76
|
driverParam: string;
|
|
77
77
|
notNull: true;
|
|
78
78
|
hasDefault: true;
|
|
@@ -254,9 +254,9 @@ export declare const ledgerAccountImportJobListQuerySchema: import("@sinclair/ty
|
|
|
254
254
|
pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
255
255
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
256
256
|
pending: "pending";
|
|
257
|
-
failed: "failed";
|
|
258
257
|
running: "running";
|
|
259
258
|
success: "success";
|
|
259
|
+
failed: "failed";
|
|
260
260
|
}>>;
|
|
261
261
|
}>;
|
|
262
262
|
export type LedgerAccountImportJobListQueryType = typeof ledgerAccountImportJobListQuerySchema.static;
|
|
@@ -335,7 +335,7 @@ export declare const ledgerAccountImportJobListResponseSchema: import("@sinclair
|
|
|
335
335
|
tableName: "ledger_account_import_job";
|
|
336
336
|
dataType: "string";
|
|
337
337
|
columnType: "PgEnumColumn";
|
|
338
|
-
data: "pending" | "
|
|
338
|
+
data: "pending" | "running" | "success" | "failed";
|
|
339
339
|
driverParam: string;
|
|
340
340
|
notNull: true;
|
|
341
341
|
hasDefault: true;
|
|
@@ -719,7 +719,7 @@ export declare const ledgerAccountImportItemResponseSchema: import("drizzle-type
|
|
|
719
719
|
tableName: "ledger_account_import_item";
|
|
720
720
|
dataType: "string";
|
|
721
721
|
columnType: "PgEnumColumn";
|
|
722
|
-
data: "
|
|
722
|
+
data: "success" | "failed" | "ignored";
|
|
723
723
|
driverParam: string;
|
|
724
724
|
notNull: true;
|
|
725
725
|
hasDefault: false;
|
|
@@ -877,8 +877,8 @@ export declare const ledgerAccountImportItemListQuerySchema: import("@sinclair/t
|
|
|
877
877
|
pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
878
878
|
pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
879
879
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
880
|
-
failed: "failed";
|
|
881
880
|
success: "success";
|
|
881
|
+
failed: "failed";
|
|
882
882
|
ignored: "ignored";
|
|
883
883
|
}>>;
|
|
884
884
|
}>;
|
|
@@ -1094,7 +1094,7 @@ export declare const ledgerAccountImportItemListResponseSchema: import("@sinclai
|
|
|
1094
1094
|
tableName: "ledger_account_import_item";
|
|
1095
1095
|
dataType: "string";
|
|
1096
1096
|
columnType: "PgEnumColumn";
|
|
1097
|
-
data: "
|
|
1097
|
+
data: "success" | "failed" | "ignored";
|
|
1098
1098
|
driverParam: string;
|
|
1099
1099
|
notNull: true;
|
|
1100
1100
|
hasDefault: false;
|
|
@@ -395,9 +395,9 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
|
|
|
395
395
|
id: string;
|
|
396
396
|
createdAt: Date;
|
|
397
397
|
updatedAt: Date;
|
|
398
|
-
status: "pending" | "
|
|
399
|
-
failed: number;
|
|
398
|
+
status: "pending" | "running" | "success" | "failed";
|
|
400
399
|
success: number;
|
|
400
|
+
failed: number;
|
|
401
401
|
ignored: number;
|
|
402
402
|
fileId: string;
|
|
403
403
|
total: number;
|
|
@@ -428,7 +428,7 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
|
|
|
428
428
|
body: {};
|
|
429
429
|
params: {};
|
|
430
430
|
query: {
|
|
431
|
-
status?: "pending" | "
|
|
431
|
+
status?: "pending" | "running" | "success" | "failed" | undefined;
|
|
432
432
|
limit?: number | undefined;
|
|
433
433
|
offset?: number | undefined;
|
|
434
434
|
pageSize?: number | undefined;
|
|
@@ -442,9 +442,9 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
|
|
|
442
442
|
id: string;
|
|
443
443
|
createdAt: Date;
|
|
444
444
|
updatedAt: Date;
|
|
445
|
-
status: "pending" | "
|
|
446
|
-
failed: number;
|
|
445
|
+
status: "pending" | "running" | "success" | "failed";
|
|
447
446
|
success: number;
|
|
447
|
+
failed: number;
|
|
448
448
|
ignored: number;
|
|
449
449
|
fileId: string;
|
|
450
450
|
total: number;
|
|
@@ -493,9 +493,9 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
|
|
|
493
493
|
id: string;
|
|
494
494
|
createdAt: Date;
|
|
495
495
|
updatedAt: Date;
|
|
496
|
-
status: "pending" | "
|
|
497
|
-
failed: number;
|
|
496
|
+
status: "pending" | "running" | "success" | "failed";
|
|
498
497
|
success: number;
|
|
498
|
+
failed: number;
|
|
499
499
|
ignored: number;
|
|
500
500
|
fileId: string;
|
|
501
501
|
total: number;
|
|
@@ -531,7 +531,7 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
|
|
|
531
531
|
id: string;
|
|
532
532
|
};
|
|
533
533
|
query: {
|
|
534
|
-
status?: "
|
|
534
|
+
status?: "success" | "failed" | "ignored" | undefined;
|
|
535
535
|
limit?: number | undefined;
|
|
536
536
|
offset?: number | undefined;
|
|
537
537
|
pageSize?: number | undefined;
|
|
@@ -547,7 +547,7 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
|
|
|
547
547
|
updatedAt: Date;
|
|
548
548
|
phoneNumber: string | null;
|
|
549
549
|
userId: string | null;
|
|
550
|
-
status: "
|
|
550
|
+
status: "success" | "failed" | "ignored";
|
|
551
551
|
assetId: string | null;
|
|
552
552
|
ledgerAccountTypeId: string | null;
|
|
553
553
|
amount: string | null;
|
|
@@ -6,9 +6,9 @@ export declare abstract class AdminLedgerAccountImportService extends BaseLedger
|
|
|
6
6
|
id: string;
|
|
7
7
|
createdAt: Date;
|
|
8
8
|
updatedAt: Date;
|
|
9
|
-
status: "pending" | "
|
|
10
|
-
failed: number;
|
|
9
|
+
status: "pending" | "running" | "success" | "failed";
|
|
11
10
|
success: number;
|
|
11
|
+
failed: number;
|
|
12
12
|
ignored: number;
|
|
13
13
|
fileId: string;
|
|
14
14
|
total: number;
|
|
@@ -22,9 +22,9 @@ export declare abstract class AdminLedgerAccountImportService extends BaseLedger
|
|
|
22
22
|
id: string;
|
|
23
23
|
createdAt: Date;
|
|
24
24
|
updatedAt: Date;
|
|
25
|
-
status: "pending" | "
|
|
26
|
-
failed: number;
|
|
25
|
+
status: "pending" | "running" | "success" | "failed";
|
|
27
26
|
success: number;
|
|
27
|
+
failed: number;
|
|
28
28
|
ignored: number;
|
|
29
29
|
fileId: string;
|
|
30
30
|
total: number;
|
|
@@ -44,7 +44,7 @@ export declare abstract class AdminLedgerAccountImportService extends BaseLedger
|
|
|
44
44
|
updatedAt: Date;
|
|
45
45
|
phoneNumber: string | null;
|
|
46
46
|
userId: string | null;
|
|
47
|
-
status: "
|
|
47
|
+
status: "success" | "failed" | "ignored";
|
|
48
48
|
assetId: string | null;
|
|
49
49
|
ledgerAccountTypeId: string | null;
|
|
50
50
|
amount: string | null;
|
|
@@ -73,9 +73,9 @@ export declare abstract class AdminLedgerAccountImportService extends BaseLedger
|
|
|
73
73
|
id: string;
|
|
74
74
|
createdAt: Date;
|
|
75
75
|
updatedAt: Date;
|
|
76
|
-
status: "pending" | "
|
|
77
|
-
failed: number;
|
|
76
|
+
status: "pending" | "running" | "success" | "failed";
|
|
78
77
|
success: number;
|
|
78
|
+
failed: number;
|
|
79
79
|
ignored: number;
|
|
80
80
|
fileId: string;
|
|
81
81
|
total: number;
|
|
@@ -72,7 +72,7 @@ export declare const ledgerAccountImportJobSelectSchema: import("drizzle-typebox
|
|
|
72
72
|
tableName: "ledger_account_import_job";
|
|
73
73
|
dataType: "string";
|
|
74
74
|
columnType: "PgEnumColumn";
|
|
75
|
-
data: "pending" | "
|
|
75
|
+
data: "pending" | "running" | "success" | "failed";
|
|
76
76
|
driverParam: string;
|
|
77
77
|
notNull: true;
|
|
78
78
|
hasDefault: true;
|
|
@@ -448,7 +448,7 @@ export declare const ledgerAccountImportItemSelectSchema: import("drizzle-typebo
|
|
|
448
448
|
tableName: "ledger_account_import_item";
|
|
449
449
|
dataType: "string";
|
|
450
450
|
columnType: "PgEnumColumn";
|
|
451
|
-
data: "
|
|
451
|
+
data: "success" | "failed" | "ignored";
|
|
452
452
|
driverParam: string;
|
|
453
453
|
notNull: true;
|
|
454
454
|
hasDefault: false;
|
|
@@ -673,7 +673,7 @@ export declare const ledgerAccountImportJobInsertSchema: import("drizzle-typebox
|
|
|
673
673
|
tableName: "ledger_account_import_job";
|
|
674
674
|
dataType: "string";
|
|
675
675
|
columnType: "PgEnumColumn";
|
|
676
|
-
data: "pending" | "
|
|
676
|
+
data: "pending" | "running" | "success" | "failed";
|
|
677
677
|
driverParam: string;
|
|
678
678
|
notNull: true;
|
|
679
679
|
hasDefault: true;
|
|
@@ -1049,7 +1049,7 @@ export declare const ledgerAccountImportItemInsertSchema: import("drizzle-typebo
|
|
|
1049
1049
|
tableName: "ledger_account_import_item";
|
|
1050
1050
|
dataType: "string";
|
|
1051
1051
|
columnType: "PgEnumColumn";
|
|
1052
|
-
data: "
|
|
1052
|
+
data: "success" | "failed" | "ignored";
|
|
1053
1053
|
driverParam: string;
|
|
1054
1054
|
notNull: true;
|
|
1055
1055
|
hasDefault: false;
|
|
@@ -83,7 +83,7 @@ export declare const ledgerAccountImportJob: import("drizzle-orm/pg-core").PgTab
|
|
|
83
83
|
tableName: "ledger_account_import_job";
|
|
84
84
|
dataType: "string";
|
|
85
85
|
columnType: "PgEnumColumn";
|
|
86
|
-
data: "pending" | "
|
|
86
|
+
data: "pending" | "running" | "success" | "failed";
|
|
87
87
|
driverParam: string;
|
|
88
88
|
notNull: true;
|
|
89
89
|
hasDefault: true;
|
|
@@ -468,7 +468,7 @@ export declare const ledgerAccountImportItem: import("drizzle-orm/pg-core").PgTa
|
|
|
468
468
|
tableName: "ledger_account_import_item";
|
|
469
469
|
dataType: "string";
|
|
470
470
|
columnType: "PgEnumColumn";
|
|
471
|
-
data: "
|
|
471
|
+
data: "success" | "failed" | "ignored";
|
|
472
472
|
driverParam: string;
|
|
473
473
|
notNull: true;
|
|
474
474
|
hasDefault: false;
|
|
@@ -7,8 +7,12 @@ export declare const welfareCyclePlanCreateSchema: import("@sinclair/typebox").T
|
|
|
7
7
|
paused: "paused";
|
|
8
8
|
ended: "ended";
|
|
9
9
|
}>>;
|
|
10
|
+
coverImageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
10
11
|
rightsAssetId: import("@sinclair/typebox").TString;
|
|
11
12
|
pricingAssetId: import("@sinclair/typebox").TString;
|
|
13
|
+
sourcePricingAccountTypeId: import("@sinclair/typebox").TString;
|
|
14
|
+
dailyPayoutAccountTypeId: import("@sinclair/typebox").TString;
|
|
15
|
+
maturitySettlementAccountTypeId: import("@sinclair/typebox").TString;
|
|
12
16
|
pricePerShare: import("@sinclair/typebox").TString;
|
|
13
17
|
rightsPerShare: import("@sinclair/typebox").TString;
|
|
14
18
|
cycleDays: import("@sinclair/typebox").TInteger;
|
|
@@ -29,8 +33,12 @@ export declare const welfareCyclePlanUpdateSchema: import("@sinclair/typebox").T
|
|
|
29
33
|
paused: "paused";
|
|
30
34
|
ended: "ended";
|
|
31
35
|
}>>;
|
|
36
|
+
coverImageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
32
37
|
rightsAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
38
|
pricingAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
39
|
+
sourcePricingAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
|
+
dailyPayoutAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
41
|
+
maturitySettlementAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
34
42
|
pricePerShare: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
35
43
|
rightsPerShare: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36
44
|
cycleDays: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
@@ -142,6 +150,23 @@ export declare const welfareCyclePlanListResponseSchema: import("@sinclair/typeb
|
|
|
142
150
|
identity: undefined;
|
|
143
151
|
generated: undefined;
|
|
144
152
|
}, {}, {}>;
|
|
153
|
+
coverImageUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
154
|
+
name: "cover_image_url";
|
|
155
|
+
tableName: "welfare_cycle_plan";
|
|
156
|
+
dataType: "string";
|
|
157
|
+
columnType: "PgText";
|
|
158
|
+
data: string;
|
|
159
|
+
driverParam: string;
|
|
160
|
+
notNull: false;
|
|
161
|
+
hasDefault: false;
|
|
162
|
+
isPrimaryKey: false;
|
|
163
|
+
isAutoincrement: false;
|
|
164
|
+
hasRuntimeDefault: false;
|
|
165
|
+
enumValues: [string, ...string[]];
|
|
166
|
+
baseColumn: never;
|
|
167
|
+
identity: undefined;
|
|
168
|
+
generated: undefined;
|
|
169
|
+
}, {}, {}>;
|
|
145
170
|
rightsAssetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
146
171
|
name: "rights_asset_id";
|
|
147
172
|
tableName: "welfare_cycle_plan";
|
|
@@ -176,6 +201,57 @@ export declare const welfareCyclePlanListResponseSchema: import("@sinclair/typeb
|
|
|
176
201
|
identity: undefined;
|
|
177
202
|
generated: undefined;
|
|
178
203
|
}, {}, {}>;
|
|
204
|
+
sourcePricingAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
205
|
+
name: "source_pricing_account_type_id";
|
|
206
|
+
tableName: "welfare_cycle_plan";
|
|
207
|
+
dataType: "string";
|
|
208
|
+
columnType: "PgUUID";
|
|
209
|
+
data: string;
|
|
210
|
+
driverParam: string;
|
|
211
|
+
notNull: true;
|
|
212
|
+
hasDefault: false;
|
|
213
|
+
isPrimaryKey: false;
|
|
214
|
+
isAutoincrement: false;
|
|
215
|
+
hasRuntimeDefault: false;
|
|
216
|
+
enumValues: undefined;
|
|
217
|
+
baseColumn: never;
|
|
218
|
+
identity: undefined;
|
|
219
|
+
generated: undefined;
|
|
220
|
+
}, {}, {}>;
|
|
221
|
+
dailyPayoutAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
222
|
+
name: "daily_payout_account_type_id";
|
|
223
|
+
tableName: "welfare_cycle_plan";
|
|
224
|
+
dataType: "string";
|
|
225
|
+
columnType: "PgUUID";
|
|
226
|
+
data: string;
|
|
227
|
+
driverParam: string;
|
|
228
|
+
notNull: true;
|
|
229
|
+
hasDefault: false;
|
|
230
|
+
isPrimaryKey: false;
|
|
231
|
+
isAutoincrement: false;
|
|
232
|
+
hasRuntimeDefault: false;
|
|
233
|
+
enumValues: undefined;
|
|
234
|
+
baseColumn: never;
|
|
235
|
+
identity: undefined;
|
|
236
|
+
generated: undefined;
|
|
237
|
+
}, {}, {}>;
|
|
238
|
+
maturitySettlementAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
239
|
+
name: "maturity_settlement_account_type_id";
|
|
240
|
+
tableName: "welfare_cycle_plan";
|
|
241
|
+
dataType: "string";
|
|
242
|
+
columnType: "PgUUID";
|
|
243
|
+
data: string;
|
|
244
|
+
driverParam: string;
|
|
245
|
+
notNull: true;
|
|
246
|
+
hasDefault: false;
|
|
247
|
+
isPrimaryKey: false;
|
|
248
|
+
isAutoincrement: false;
|
|
249
|
+
hasRuntimeDefault: false;
|
|
250
|
+
enumValues: undefined;
|
|
251
|
+
baseColumn: never;
|
|
252
|
+
identity: undefined;
|
|
253
|
+
generated: undefined;
|
|
254
|
+
}, {}, {}>;
|
|
179
255
|
pricePerShare: import("drizzle-orm/pg-core").PgColumn<{
|
|
180
256
|
name: "price_per_share";
|
|
181
257
|
tableName: "welfare_cycle_plan";
|
|
@@ -509,8 +585,25 @@ export declare const welfareCycleSubscriptionListResponseSchema: import("@sincla
|
|
|
509
585
|
identity: undefined;
|
|
510
586
|
generated: undefined;
|
|
511
587
|
}, {}, {}>;
|
|
512
|
-
|
|
513
|
-
name: "
|
|
588
|
+
dailyPayoutReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
|
|
589
|
+
name: "daily_payout_receive_account_id";
|
|
590
|
+
tableName: "welfare_cycle_subscription";
|
|
591
|
+
dataType: "string";
|
|
592
|
+
columnType: "PgUUID";
|
|
593
|
+
data: string;
|
|
594
|
+
driverParam: string;
|
|
595
|
+
notNull: true;
|
|
596
|
+
hasDefault: false;
|
|
597
|
+
isPrimaryKey: false;
|
|
598
|
+
isAutoincrement: false;
|
|
599
|
+
hasRuntimeDefault: false;
|
|
600
|
+
enumValues: undefined;
|
|
601
|
+
baseColumn: never;
|
|
602
|
+
identity: undefined;
|
|
603
|
+
generated: undefined;
|
|
604
|
+
}, {}, {}>;
|
|
605
|
+
maturitySettlementReceiveAccountId: import("drizzle-orm/pg-core").PgColumn<{
|
|
606
|
+
name: "maturity_settlement_receive_account_id";
|
|
514
607
|
tableName: "welfare_cycle_subscription";
|
|
515
608
|
dataType: "string";
|
|
516
609
|
columnType: "PgUUID";
|
|
@@ -386,6 +386,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
386
386
|
body: {
|
|
387
387
|
description?: string | null | undefined;
|
|
388
388
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
389
|
+
coverImageUrl?: string | null | undefined;
|
|
389
390
|
minShares?: number | undefined;
|
|
390
391
|
maxSharesPerOrder?: number | null | undefined;
|
|
391
392
|
saleStartAt?: Date | null | undefined;
|
|
@@ -393,6 +394,9 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
393
394
|
name: string;
|
|
394
395
|
rightsAssetId: string;
|
|
395
396
|
pricingAssetId: string;
|
|
397
|
+
sourcePricingAccountTypeId: string;
|
|
398
|
+
dailyPayoutAccountTypeId: string;
|
|
399
|
+
maturitySettlementAccountTypeId: string;
|
|
396
400
|
pricePerShare: string;
|
|
397
401
|
rightsPerShare: string;
|
|
398
402
|
cycleDays: number;
|
|
@@ -410,8 +414,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
410
414
|
updatedAt: Date;
|
|
411
415
|
description: string | null;
|
|
412
416
|
status: "active" | "draft" | "paused" | "ended";
|
|
417
|
+
coverImageUrl: string | null;
|
|
413
418
|
rightsAssetId: string;
|
|
414
419
|
pricingAssetId: string;
|
|
420
|
+
sourcePricingAccountTypeId: string;
|
|
421
|
+
dailyPayoutAccountTypeId: string;
|
|
422
|
+
maturitySettlementAccountTypeId: string;
|
|
415
423
|
pricePerShare: string;
|
|
416
424
|
rightsPerShare: string;
|
|
417
425
|
cycleDays: number;
|
|
@@ -446,8 +454,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
446
454
|
name?: string | undefined;
|
|
447
455
|
description?: string | null | undefined;
|
|
448
456
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
457
|
+
coverImageUrl?: string | null | undefined;
|
|
449
458
|
rightsAssetId?: string | undefined;
|
|
450
459
|
pricingAssetId?: string | undefined;
|
|
460
|
+
sourcePricingAccountTypeId?: string | undefined;
|
|
461
|
+
dailyPayoutAccountTypeId?: string | undefined;
|
|
462
|
+
maturitySettlementAccountTypeId?: string | undefined;
|
|
451
463
|
pricePerShare?: string | undefined;
|
|
452
464
|
rightsPerShare?: string | undefined;
|
|
453
465
|
cycleDays?: number | undefined;
|
|
@@ -470,8 +482,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
470
482
|
id: string;
|
|
471
483
|
name: string;
|
|
472
484
|
description: string | null;
|
|
485
|
+
coverImageUrl: string | null;
|
|
473
486
|
rightsAssetId: string;
|
|
474
487
|
pricingAssetId: string;
|
|
488
|
+
sourcePricingAccountTypeId: string;
|
|
489
|
+
dailyPayoutAccountTypeId: string;
|
|
490
|
+
maturitySettlementAccountTypeId: string;
|
|
475
491
|
pricePerShare: string;
|
|
476
492
|
rightsPerShare: string;
|
|
477
493
|
cycleDays: number;
|
|
@@ -518,8 +534,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
518
534
|
id: string;
|
|
519
535
|
name: string;
|
|
520
536
|
description: string | null;
|
|
537
|
+
coverImageUrl: string | null;
|
|
521
538
|
rightsAssetId: string;
|
|
522
539
|
pricingAssetId: string;
|
|
540
|
+
sourcePricingAccountTypeId: string;
|
|
541
|
+
dailyPayoutAccountTypeId: string;
|
|
542
|
+
maturitySettlementAccountTypeId: string;
|
|
523
543
|
pricePerShare: string;
|
|
524
544
|
rightsPerShare: string;
|
|
525
545
|
cycleDays: number;
|
|
@@ -567,8 +587,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
567
587
|
id: string;
|
|
568
588
|
name: string;
|
|
569
589
|
description: string | null;
|
|
590
|
+
coverImageUrl: string | null;
|
|
570
591
|
rightsAssetId: string;
|
|
571
592
|
pricingAssetId: string;
|
|
593
|
+
sourcePricingAccountTypeId: string;
|
|
594
|
+
dailyPayoutAccountTypeId: string;
|
|
595
|
+
maturitySettlementAccountTypeId: string;
|
|
572
596
|
pricePerShare: string;
|
|
573
597
|
rightsPerShare: string;
|
|
574
598
|
cycleDays: number;
|
|
@@ -616,8 +640,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
616
640
|
id: string;
|
|
617
641
|
name: string;
|
|
618
642
|
description: string | null;
|
|
643
|
+
coverImageUrl: string | null;
|
|
619
644
|
rightsAssetId: string;
|
|
620
645
|
pricingAssetId: string;
|
|
646
|
+
sourcePricingAccountTypeId: string;
|
|
647
|
+
dailyPayoutAccountTypeId: string;
|
|
648
|
+
maturitySettlementAccountTypeId: string;
|
|
621
649
|
pricePerShare: string;
|
|
622
650
|
rightsPerShare: string;
|
|
623
651
|
cycleDays: number;
|
|
@@ -669,8 +697,12 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
669
697
|
updatedAt: Date;
|
|
670
698
|
description: string | null;
|
|
671
699
|
status: "active" | "draft" | "paused" | "ended";
|
|
700
|
+
coverImageUrl: string | null;
|
|
672
701
|
rightsAssetId: string;
|
|
673
702
|
pricingAssetId: string;
|
|
703
|
+
sourcePricingAccountTypeId: string;
|
|
704
|
+
dailyPayoutAccountTypeId: string;
|
|
705
|
+
maturitySettlementAccountTypeId: string;
|
|
674
706
|
pricePerShare: string;
|
|
675
707
|
rightsPerShare: string;
|
|
676
708
|
cycleDays: number;
|
|
@@ -732,7 +764,8 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
732
764
|
orderNo: string;
|
|
733
765
|
planId: string;
|
|
734
766
|
sourcePricingAccountId: string;
|
|
735
|
-
|
|
767
|
+
dailyPayoutReceiveAccountId: string;
|
|
768
|
+
maturitySettlementReceiveAccountId: string;
|
|
736
769
|
shares: number;
|
|
737
770
|
totalPricingAmount: string;
|
|
738
771
|
totalRightsPrincipal: string;
|