@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.
- 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/user/dto.schemas.d.ts +9 -83
- package/dist/src/asset/user/router.d.ts +60 -66
- package/dist/src/asset/user/service.d.ts +41 -41
- 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/asset-price/errors/index.d.ts +1 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +1 -0
- package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
- package/dist/src/asset-price/user/router.d.ts +43 -2
- package/dist/src/asset-price/user/service.d.ts +13 -1
- package/dist/src/index.d.ts +701 -291
- package/dist/src/ledger-account/admin/router.d.ts +1 -1
- package/dist/src/ledger-account/user/dto.schemas.d.ts +44 -193
- package/dist/src/ledger-account/user/router.d.ts +104 -42
- package/dist/src/ledger-account/user/service.d.ts +90 -40
- package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
- package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
- package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
- package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
- package/dist/src/ledger-account-import/schema.d.ts +2 -2
- package/dist/src/ledger-account-type/user/router.d.ts +48 -0
- package/dist/src/ledger-account-type/user/service.d.ts +25 -0
- package/dist/src/portfolio/index.d.ts +2 -0
- package/dist/src/portfolio/internal/index.d.ts +1 -0
- package/dist/src/portfolio/internal/service.d.ts +5 -0
- package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
- package/dist/src/portfolio/user/index.d.ts +3 -0
- package/dist/src/portfolio/user/router.d.ts +659 -0
- package/dist/src/portfolio/user/service.d.ts +143 -0
- package/dist/src/wallet/user/dto.schemas.d.ts +4 -66
- package/dist/src/wallet/user/router.d.ts +1 -62
- package/dist/src/wallet/user/service.d.ts +3 -39
- 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
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { InternalPortfolioService } from "../internal/service";
|
|
2
|
+
import type { PortfolioAccountTypeOverviewParamsType, PortfolioAssetOverviewParamsType, PortfolioAssetOverviewQueryType, PortfolioLedgerAccountOverviewParamsType, PortfolioLedgerAccountOverviewQueryType, PortfolioOverviewQueryType } from "./dto.schemas";
|
|
3
|
+
export declare abstract class UserPortfolioService extends InternalPortfolioService {
|
|
4
|
+
private static normalizeQuoteAsset;
|
|
5
|
+
static getPortfolioOverview(userId: string, query?: PortfolioOverviewQueryType): Promise<{
|
|
6
|
+
quoteAsset: string;
|
|
7
|
+
overview: {
|
|
8
|
+
totalValuation: string;
|
|
9
|
+
};
|
|
10
|
+
walletView: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
walletTypeId: string;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
accountTypeView: {
|
|
18
|
+
id: string;
|
|
19
|
+
key: string;
|
|
20
|
+
name: string;
|
|
21
|
+
accountCount: number;
|
|
22
|
+
totalValuation: string;
|
|
23
|
+
}[];
|
|
24
|
+
assetView: {
|
|
25
|
+
id: string;
|
|
26
|
+
code: string;
|
|
27
|
+
name: string;
|
|
28
|
+
iconUrl: string;
|
|
29
|
+
quantity: string;
|
|
30
|
+
totalValuation: string;
|
|
31
|
+
}[];
|
|
32
|
+
}>;
|
|
33
|
+
static getAccountTypeOverview(userId: string, params: PortfolioAccountTypeOverviewParamsType, query?: PortfolioOverviewQueryType): Promise<{
|
|
34
|
+
quoteAsset: string;
|
|
35
|
+
overview: {
|
|
36
|
+
totalValuation: string;
|
|
37
|
+
};
|
|
38
|
+
accountType: {
|
|
39
|
+
id: string;
|
|
40
|
+
key: string;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
accounts: {
|
|
44
|
+
id: string;
|
|
45
|
+
userId: string;
|
|
46
|
+
assetId: string;
|
|
47
|
+
ledgerAccountTypeId: string;
|
|
48
|
+
available: string;
|
|
49
|
+
locked: string;
|
|
50
|
+
status: "active" | "frozen" | "disabled";
|
|
51
|
+
asset: {
|
|
52
|
+
id: string;
|
|
53
|
+
code: string;
|
|
54
|
+
name: string;
|
|
55
|
+
iconUrl: string;
|
|
56
|
+
};
|
|
57
|
+
accountType: {
|
|
58
|
+
id: string;
|
|
59
|
+
key: string;
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
quantity: string;
|
|
63
|
+
totalValuation: string;
|
|
64
|
+
}[];
|
|
65
|
+
}>;
|
|
66
|
+
static getAssetOverview(userId: string, params: PortfolioAssetOverviewParamsType, query?: PortfolioAssetOverviewQueryType): Promise<{
|
|
67
|
+
quoteAsset: string;
|
|
68
|
+
asset: {
|
|
69
|
+
id: string;
|
|
70
|
+
code: string;
|
|
71
|
+
name: string;
|
|
72
|
+
iconUrl: string;
|
|
73
|
+
symbol: string;
|
|
74
|
+
precision: number;
|
|
75
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
76
|
+
isActive: boolean;
|
|
77
|
+
};
|
|
78
|
+
quantity: string;
|
|
79
|
+
totalValuation: string;
|
|
80
|
+
curve: {
|
|
81
|
+
at: Date;
|
|
82
|
+
value: string;
|
|
83
|
+
}[];
|
|
84
|
+
accountDistribution: {
|
|
85
|
+
ledgerAccountId: string;
|
|
86
|
+
ledgerAccountTypeId: string;
|
|
87
|
+
ledgerAccountTypeKey: string;
|
|
88
|
+
ledgerAccountTypeName: string;
|
|
89
|
+
quantity: string;
|
|
90
|
+
valuation: string;
|
|
91
|
+
proportion: string;
|
|
92
|
+
}[];
|
|
93
|
+
}>;
|
|
94
|
+
static getLedgerAccountOverview(userId: string, params: PortfolioLedgerAccountOverviewParamsType, query?: PortfolioLedgerAccountOverviewQueryType): Promise<{
|
|
95
|
+
quoteAsset: string;
|
|
96
|
+
overview: {
|
|
97
|
+
totalValuation: string;
|
|
98
|
+
};
|
|
99
|
+
ledgerAccount: {
|
|
100
|
+
id: string;
|
|
101
|
+
createdAt: Date;
|
|
102
|
+
updatedAt: Date;
|
|
103
|
+
userId: string;
|
|
104
|
+
status: "active" | "frozen" | "disabled";
|
|
105
|
+
assetId: string;
|
|
106
|
+
ledgerAccountTypeId: string;
|
|
107
|
+
available: string;
|
|
108
|
+
locked: string;
|
|
109
|
+
version: number;
|
|
110
|
+
ledgerAccountType: {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
updatedAt: Date;
|
|
115
|
+
description: string | null;
|
|
116
|
+
key: string;
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
allowDeposit: boolean;
|
|
119
|
+
allowWithdraw: boolean;
|
|
120
|
+
minWithdrawAmount: string;
|
|
121
|
+
maxWithdrawAmount: string;
|
|
122
|
+
allowTransfer: boolean;
|
|
123
|
+
minTransferAmount: string;
|
|
124
|
+
maxTransferAmount: string;
|
|
125
|
+
allowInternalTransfer: boolean;
|
|
126
|
+
allowInternalReceiveTransfer: boolean;
|
|
127
|
+
minInternalTransferAmount: string;
|
|
128
|
+
maxInternalTransferAmount: string;
|
|
129
|
+
internalTransferRatio: string;
|
|
130
|
+
allowTransaction: boolean;
|
|
131
|
+
hasExpiry: boolean;
|
|
132
|
+
expiryDays: number | null;
|
|
133
|
+
sortOrder: number;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
ledgerAccountType: {
|
|
137
|
+
id: string;
|
|
138
|
+
key: string;
|
|
139
|
+
name: string;
|
|
140
|
+
description: string | null;
|
|
141
|
+
};
|
|
142
|
+
}>;
|
|
143
|
+
}
|
|
@@ -314,27 +314,11 @@ export declare const walletListResponseSchema: import("@sinclair/typebox").TObje
|
|
|
314
314
|
}>;
|
|
315
315
|
}>;
|
|
316
316
|
export type WalletListResponseType = typeof walletListResponseSchema.static;
|
|
317
|
-
export declare const
|
|
317
|
+
export declare const walletOverviewQuerySchema: import("@sinclair/typebox").TObject<{
|
|
318
318
|
quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
319
319
|
}>;
|
|
320
|
-
export type
|
|
321
|
-
export declare const
|
|
322
|
-
quantity: import("@sinclair/typebox").TString;
|
|
323
|
-
valuation: import("@sinclair/typebox").TString;
|
|
324
|
-
}>;
|
|
325
|
-
export type FinanceOverviewBaseAssetValueType = typeof financeOverviewBaseAssetValueSchema.static;
|
|
326
|
-
export declare const financeOverviewWalletItemSchema: import("@sinclair/typebox").TObject<{
|
|
327
|
-
walletId: import("@sinclair/typebox").TString;
|
|
328
|
-
walletName: import("@sinclair/typebox").TString;
|
|
329
|
-
walletTypeId: import("@sinclair/typebox").TString;
|
|
330
|
-
walletTypeKey: import("@sinclair/typebox").TString;
|
|
331
|
-
walletTypeName: import("@sinclair/typebox").TString;
|
|
332
|
-
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
333
|
-
isActive: import("@sinclair/typebox").TBoolean;
|
|
334
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
335
|
-
}>;
|
|
336
|
-
export type FinanceOverviewWalletItemType = typeof financeOverviewWalletItemSchema.static;
|
|
337
|
-
export declare const financeOverviewAccountItemSchema: import("@sinclair/typebox").TObject<{
|
|
320
|
+
export type WalletOverviewQueryType = typeof walletOverviewQuerySchema.static;
|
|
321
|
+
export declare const walletOverviewAccountItemSchema: import("@sinclair/typebox").TObject<{
|
|
338
322
|
ledgerAccountId: import("@sinclair/typebox").TString;
|
|
339
323
|
assetId: import("@sinclair/typebox").TString;
|
|
340
324
|
assetCode: import("@sinclair/typebox").TString;
|
|
@@ -346,53 +330,7 @@ export declare const financeOverviewAccountItemSchema: import("@sinclair/typebox
|
|
|
346
330
|
quantity: import("@sinclair/typebox").TString;
|
|
347
331
|
totalValuation: import("@sinclair/typebox").TString;
|
|
348
332
|
}>;
|
|
349
|
-
export type
|
|
350
|
-
export declare const financeOverviewAssetItemSchema: import("@sinclair/typebox").TObject<{
|
|
351
|
-
assetId: import("@sinclair/typebox").TString;
|
|
352
|
-
assetCode: import("@sinclair/typebox").TString;
|
|
353
|
-
assetName: import("@sinclair/typebox").TString;
|
|
354
|
-
iconUrl: import("@sinclair/typebox").TString;
|
|
355
|
-
quantity: import("@sinclair/typebox").TString;
|
|
356
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
357
|
-
}>;
|
|
358
|
-
export type FinanceOverviewAssetItemType = typeof financeOverviewAssetItemSchema.static;
|
|
359
|
-
export declare const financeOverviewResponseSchema: import("@sinclair/typebox").TObject<{
|
|
360
|
-
quoteAsset: import("@sinclair/typebox").TString;
|
|
361
|
-
overview: import("@sinclair/typebox").TObject<{
|
|
362
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
363
|
-
}>;
|
|
364
|
-
walletView: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
365
|
-
walletId: import("@sinclair/typebox").TString;
|
|
366
|
-
walletName: import("@sinclair/typebox").TString;
|
|
367
|
-
walletTypeId: import("@sinclair/typebox").TString;
|
|
368
|
-
walletTypeKey: import("@sinclair/typebox").TString;
|
|
369
|
-
walletTypeName: import("@sinclair/typebox").TString;
|
|
370
|
-
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
371
|
-
isActive: import("@sinclair/typebox").TBoolean;
|
|
372
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
373
|
-
}>>;
|
|
374
|
-
accountView: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
375
|
-
ledgerAccountId: import("@sinclair/typebox").TString;
|
|
376
|
-
assetId: import("@sinclair/typebox").TString;
|
|
377
|
-
assetCode: import("@sinclair/typebox").TString;
|
|
378
|
-
assetName: import("@sinclair/typebox").TString;
|
|
379
|
-
ledgerAccountTypeId: import("@sinclair/typebox").TString;
|
|
380
|
-
ledgerAccountTypeKey: import("@sinclair/typebox").TString;
|
|
381
|
-
ledgerAccountTypeName: import("@sinclair/typebox").TString;
|
|
382
|
-
status: import("@sinclair/typebox").TString;
|
|
383
|
-
quantity: import("@sinclair/typebox").TString;
|
|
384
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
385
|
-
}>>;
|
|
386
|
-
assetView: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
387
|
-
assetId: import("@sinclair/typebox").TString;
|
|
388
|
-
assetCode: import("@sinclair/typebox").TString;
|
|
389
|
-
assetName: import("@sinclair/typebox").TString;
|
|
390
|
-
iconUrl: import("@sinclair/typebox").TString;
|
|
391
|
-
quantity: import("@sinclair/typebox").TString;
|
|
392
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
393
|
-
}>>;
|
|
394
|
-
}>;
|
|
395
|
-
export type FinanceOverviewResponseType = typeof financeOverviewResponseSchema.static;
|
|
333
|
+
export type WalletOverviewAccountItemType = typeof walletOverviewAccountItemSchema.static;
|
|
396
334
|
export declare const walletDetailParamsSchema: import("@sinclair/typebox").TObject<{
|
|
397
335
|
walletId: import("@sinclair/typebox").TString;
|
|
398
336
|
}>;
|
|
@@ -434,67 +434,6 @@ export declare const walletRouter: Elysia<"", {
|
|
|
434
434
|
};
|
|
435
435
|
};
|
|
436
436
|
};
|
|
437
|
-
} & {
|
|
438
|
-
finance: {
|
|
439
|
-
overview: {
|
|
440
|
-
get: {
|
|
441
|
-
body: {};
|
|
442
|
-
params: {};
|
|
443
|
-
query: {
|
|
444
|
-
quoteAsset?: string | undefined;
|
|
445
|
-
};
|
|
446
|
-
headers: {};
|
|
447
|
-
response: {
|
|
448
|
-
200: {
|
|
449
|
-
quoteAsset: string;
|
|
450
|
-
overview: {
|
|
451
|
-
totalValuation: string;
|
|
452
|
-
};
|
|
453
|
-
walletView: {
|
|
454
|
-
isActive: boolean;
|
|
455
|
-
walletTypeId: string;
|
|
456
|
-
isPrimary: boolean;
|
|
457
|
-
totalValuation: string;
|
|
458
|
-
walletId: string;
|
|
459
|
-
walletTypeKey: string;
|
|
460
|
-
walletName: string;
|
|
461
|
-
walletTypeName: string;
|
|
462
|
-
}[];
|
|
463
|
-
accountView: {
|
|
464
|
-
status: string;
|
|
465
|
-
assetId: string;
|
|
466
|
-
ledgerAccountTypeId: string;
|
|
467
|
-
assetCode: string;
|
|
468
|
-
ledgerAccountId: string;
|
|
469
|
-
totalValuation: string;
|
|
470
|
-
assetName: string;
|
|
471
|
-
quantity: string;
|
|
472
|
-
ledgerAccountTypeKey: string;
|
|
473
|
-
ledgerAccountTypeName: string;
|
|
474
|
-
}[];
|
|
475
|
-
assetView: {
|
|
476
|
-
iconUrl: string;
|
|
477
|
-
assetId: string;
|
|
478
|
-
assetCode: string;
|
|
479
|
-
totalValuation: string;
|
|
480
|
-
assetName: string;
|
|
481
|
-
quantity: string;
|
|
482
|
-
}[];
|
|
483
|
-
};
|
|
484
|
-
422: {
|
|
485
|
-
type: "validation";
|
|
486
|
-
on: string;
|
|
487
|
-
summary?: string;
|
|
488
|
-
message?: string;
|
|
489
|
-
found?: unknown;
|
|
490
|
-
property?: string;
|
|
491
|
-
expected?: string;
|
|
492
|
-
};
|
|
493
|
-
401: "Unauthorized";
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
};
|
|
498
437
|
} & {
|
|
499
438
|
wallets: {
|
|
500
439
|
":walletId": {
|
|
@@ -537,10 +476,10 @@ export declare const walletRouter: Elysia<"", {
|
|
|
537
476
|
assetCode: string;
|
|
538
477
|
ledgerAccountId: string;
|
|
539
478
|
totalValuation: string;
|
|
540
|
-
assetName: string;
|
|
541
479
|
quantity: string;
|
|
542
480
|
ledgerAccountTypeKey: string;
|
|
543
481
|
ledgerAccountTypeName: string;
|
|
482
|
+
assetName: string;
|
|
544
483
|
}[];
|
|
545
484
|
};
|
|
546
485
|
422: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InternalWalletService } from "../internal/service";
|
|
2
|
-
import type {
|
|
2
|
+
import type { WalletDetailParamsType, WalletListQueryType, WalletOverviewQueryType } from "./dto.schemas";
|
|
3
3
|
export declare abstract class UserWalletService extends InternalWalletService {
|
|
4
4
|
static listWallets(userId: string, options?: Omit<WalletListQueryType, "userId">): Promise<{
|
|
5
5
|
items: {
|
|
@@ -37,44 +37,8 @@ export declare abstract class UserWalletService extends InternalWalletService {
|
|
|
37
37
|
private static toDecimal;
|
|
38
38
|
private static getLatestPriceMapForAssets;
|
|
39
39
|
private static getValuationPrice;
|
|
40
|
-
private static
|
|
41
|
-
static
|
|
42
|
-
quoteAsset: string;
|
|
43
|
-
overview: {
|
|
44
|
-
totalValuation: string;
|
|
45
|
-
};
|
|
46
|
-
walletView: {
|
|
47
|
-
walletId: string;
|
|
48
|
-
walletName: string;
|
|
49
|
-
walletTypeId: string;
|
|
50
|
-
walletTypeKey: string;
|
|
51
|
-
walletTypeName: string;
|
|
52
|
-
isPrimary: boolean;
|
|
53
|
-
isActive: boolean;
|
|
54
|
-
totalValuation: string;
|
|
55
|
-
}[];
|
|
56
|
-
accountView: {
|
|
57
|
-
ledgerAccountId: string;
|
|
58
|
-
assetId: string;
|
|
59
|
-
assetCode: string;
|
|
60
|
-
assetName: string;
|
|
61
|
-
ledgerAccountTypeId: string;
|
|
62
|
-
ledgerAccountTypeKey: string;
|
|
63
|
-
ledgerAccountTypeName: string;
|
|
64
|
-
status: string;
|
|
65
|
-
quantity: string;
|
|
66
|
-
totalValuation: string;
|
|
67
|
-
}[];
|
|
68
|
-
assetView: {
|
|
69
|
-
assetId: string;
|
|
70
|
-
assetCode: string;
|
|
71
|
-
assetName: string;
|
|
72
|
-
iconUrl: string;
|
|
73
|
-
quantity: string;
|
|
74
|
-
totalValuation: string;
|
|
75
|
-
}[];
|
|
76
|
-
}>;
|
|
77
|
-
static getWalletOverview(userId: string, params: WalletDetailParamsType, query?: FinanceOverviewQueryType): Promise<{
|
|
40
|
+
private static getWalletOverviewBaseData;
|
|
41
|
+
static getWalletOverview(userId: string, params: WalletDetailParamsType, query?: WalletOverviewQueryType): Promise<{
|
|
78
42
|
quoteAsset: string;
|
|
79
43
|
overview: {
|
|
80
44
|
totalValuation: string;
|
|
@@ -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;
|