@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
@@ -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" | "failed" | "running" | "success";
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" | "failed" | "running" | "success" | undefined;
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" | "failed" | "running" | "success";
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" | "failed" | "running" | "success";
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?: "failed" | "success" | "ignored" | undefined;
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: "failed" | "success" | "ignored";
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" | "failed" | "running" | "success";
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" | "failed" | "running" | "success";
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: "failed" | "success" | "ignored";
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" | "failed" | "running" | "success";
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" | "failed" | "running" | "success";
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: "failed" | "success" | "ignored";
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" | "failed" | "running" | "success";
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: "failed" | "success" | "ignored";
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" | "failed" | "running" | "success";
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: "failed" | "success" | "ignored";
471
+ data: "success" | "failed" | "ignored";
472
472
  driverParam: string;
473
473
  notNull: true;
474
474
  hasDefault: false;
@@ -439,6 +439,54 @@ export declare const ledgerAccountTypeRouter: Elysia<"/ledger_account_types", {
439
439
  };
440
440
  };
441
441
  };
442
+ } & {
443
+ ledger_account_types: {
444
+ ":key": {
445
+ get: {
446
+ body: {};
447
+ params: {
448
+ key: string;
449
+ };
450
+ query: {};
451
+ headers: {};
452
+ response: {
453
+ 200: {
454
+ id: string;
455
+ name: string;
456
+ description: string | null;
457
+ key: string;
458
+ isActive: boolean;
459
+ allowDeposit: boolean;
460
+ allowWithdraw: boolean;
461
+ minWithdrawAmount: string;
462
+ maxWithdrawAmount: string;
463
+ allowTransfer: boolean;
464
+ minTransferAmount: string;
465
+ maxTransferAmount: string;
466
+ allowInternalTransfer: boolean;
467
+ allowInternalReceiveTransfer: boolean;
468
+ minInternalTransferAmount: string;
469
+ maxInternalTransferAmount: string;
470
+ internalTransferRatio: string;
471
+ allowTransaction: boolean;
472
+ hasExpiry: boolean;
473
+ expiryDays: number | null;
474
+ sortOrder: number;
475
+ };
476
+ 422: {
477
+ type: "validation";
478
+ on: string;
479
+ summary?: string;
480
+ message?: string;
481
+ found?: unknown;
482
+ property?: string;
483
+ expected?: string;
484
+ };
485
+ 401: "Unauthorized";
486
+ };
487
+ };
488
+ };
489
+ };
442
490
  }, {
443
491
  derive: {};
444
492
  resolve: {};
@@ -31,4 +31,29 @@ export declare abstract class UserLedgerAccountTypeService extends BaseLedgerAcc
31
31
  }[];
32
32
  total: number;
33
33
  }>;
34
+ static getLedgerAccountTypeByKey(key: string): Promise<{
35
+ id: string;
36
+ name: string;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ description: string | null;
40
+ key: string;
41
+ isActive: boolean;
42
+ allowDeposit: boolean;
43
+ allowWithdraw: boolean;
44
+ minWithdrawAmount: string;
45
+ maxWithdrawAmount: string;
46
+ allowTransfer: boolean;
47
+ minTransferAmount: string;
48
+ maxTransferAmount: string;
49
+ allowInternalTransfer: boolean;
50
+ allowInternalReceiveTransfer: boolean;
51
+ minInternalTransferAmount: string;
52
+ maxInternalTransferAmount: string;
53
+ internalTransferRatio: string;
54
+ allowTransaction: boolean;
55
+ hasExpiry: boolean;
56
+ expiryDays: number | null;
57
+ sortOrder: number;
58
+ }>;
34
59
  }
@@ -0,0 +1,2 @@
1
+ export * from "./internal";
2
+ export * from "./user";
@@ -0,0 +1 @@
1
+ export * from "./service";
@@ -0,0 +1,5 @@
1
+ export declare abstract class BasePortfolioService {
2
+ protected static validateUserId(userId: string): void;
3
+ }
4
+ export declare abstract class InternalPortfolioService extends BasePortfolioService {
5
+ }
@@ -0,0 +1,352 @@
1
+ export declare const portfolioOverviewQuerySchema: import("@sinclair/typebox").TObject<{
2
+ quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
3
+ }>;
4
+ export type PortfolioOverviewQueryType = typeof portfolioOverviewQuerySchema.static;
5
+ export declare const portfolioOverviewWalletViewItemSchema: import("@sinclair/typebox").TObject<{
6
+ id: import("@sinclair/typebox").TString;
7
+ name: import("@sinclair/typebox").TString;
8
+ isActive: import("@sinclair/typebox").TBoolean;
9
+ walletTypeId: import("@sinclair/typebox").TString;
10
+ isPrimary: import("@sinclair/typebox").TBoolean;
11
+ }>;
12
+ export type PortfolioOverviewWalletViewItemType = typeof portfolioOverviewWalletViewItemSchema.static;
13
+ export declare const portfolioOverviewAccountTypeViewItemSchema: import("@sinclair/typebox").TObject<{
14
+ key: import("@sinclair/typebox").TString;
15
+ id: import("@sinclair/typebox").TString;
16
+ name: import("@sinclair/typebox").TString;
17
+ accountCount: import("@sinclair/typebox").TNumber;
18
+ totalValuation: import("@sinclair/typebox").TString;
19
+ }>;
20
+ export type PortfolioOverviewAccountTypeViewItemType = typeof portfolioOverviewAccountTypeViewItemSchema.static;
21
+ export declare const portfolioOverviewAssetViewItemSchema: import("@sinclair/typebox").TObject<{
22
+ id: import("@sinclair/typebox").TString;
23
+ name: import("@sinclair/typebox").TString;
24
+ code: import("@sinclair/typebox").TString;
25
+ iconUrl: import("@sinclair/typebox").TString;
26
+ totalValuation: import("@sinclair/typebox").TString;
27
+ quantity: import("@sinclair/typebox").TString;
28
+ }>;
29
+ export type PortfolioOverviewAssetViewItemType = typeof portfolioOverviewAssetViewItemSchema.static;
30
+ export declare const portfolioOverviewResponseSchema: import("@sinclair/typebox").TObject<{
31
+ quoteAsset: import("@sinclair/typebox").TString;
32
+ overview: import("@sinclair/typebox").TObject<{
33
+ totalValuation: import("@sinclair/typebox").TString;
34
+ }>;
35
+ walletView: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
36
+ id: import("@sinclair/typebox").TString;
37
+ name: import("@sinclair/typebox").TString;
38
+ isActive: import("@sinclair/typebox").TBoolean;
39
+ walletTypeId: import("@sinclair/typebox").TString;
40
+ isPrimary: import("@sinclair/typebox").TBoolean;
41
+ }>>;
42
+ accountTypeView: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
43
+ key: import("@sinclair/typebox").TString;
44
+ id: import("@sinclair/typebox").TString;
45
+ name: import("@sinclair/typebox").TString;
46
+ accountCount: import("@sinclair/typebox").TNumber;
47
+ totalValuation: import("@sinclair/typebox").TString;
48
+ }>>;
49
+ assetView: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
50
+ id: import("@sinclair/typebox").TString;
51
+ name: import("@sinclair/typebox").TString;
52
+ code: import("@sinclair/typebox").TString;
53
+ iconUrl: import("@sinclair/typebox").TString;
54
+ totalValuation: import("@sinclair/typebox").TString;
55
+ quantity: import("@sinclair/typebox").TString;
56
+ }>>;
57
+ }>;
58
+ export type PortfolioOverviewResponseType = typeof portfolioOverviewResponseSchema.static;
59
+ export declare const portfolioAccountTypeOverviewParamsSchema: import("@sinclair/typebox").TObject<{
60
+ accountTypeKey: import("@sinclair/typebox").TString;
61
+ }>;
62
+ export type PortfolioAccountTypeOverviewParamsType = typeof portfolioAccountTypeOverviewParamsSchema.static;
63
+ export declare const portfolioAssetOverviewParamsSchema: import("@sinclair/typebox").TObject<{
64
+ assetId: import("@sinclair/typebox").TString;
65
+ }>;
66
+ export type PortfolioAssetOverviewParamsType = typeof portfolioAssetOverviewParamsSchema.static;
67
+ export declare const portfolioAssetOverviewQuerySchema: import("@sinclair/typebox").TObject<{
68
+ quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
69
+ days: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
70
+ accountTypeKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
71
+ }>;
72
+ export type PortfolioAssetOverviewQueryType = typeof portfolioAssetOverviewQuerySchema.static;
73
+ export declare const portfolioAssetOverviewCurveItemSchema: import("@sinclair/typebox").TObject<{
74
+ at: import("@sinclair/typebox").TDate;
75
+ value: import("@sinclair/typebox").TString;
76
+ }>;
77
+ export type PortfolioAssetOverviewCurveItemType = typeof portfolioAssetOverviewCurveItemSchema.static;
78
+ export declare const portfolioAssetOverviewAccountDistributionItemSchema: import("@sinclair/typebox").TObject<{
79
+ ledgerAccountId: import("@sinclair/typebox").TString;
80
+ ledgerAccountTypeId: import("@sinclair/typebox").TString;
81
+ ledgerAccountTypeKey: import("@sinclair/typebox").TString;
82
+ ledgerAccountTypeName: import("@sinclair/typebox").TString;
83
+ quantity: import("@sinclair/typebox").TString;
84
+ valuation: import("@sinclair/typebox").TString;
85
+ proportion: import("@sinclair/typebox").TString;
86
+ }>;
87
+ export type PortfolioAssetOverviewAccountDistributionItemType = typeof portfolioAssetOverviewAccountDistributionItemSchema.static;
88
+ export declare const portfolioAssetOverviewResponseSchema: import("@sinclair/typebox").TObject<{
89
+ quoteAsset: import("@sinclair/typebox").TString;
90
+ asset: import("@sinclair/typebox").TObject<{
91
+ symbol: import("@sinclair/typebox").TString;
92
+ id: import("@sinclair/typebox").TString;
93
+ name: import("@sinclair/typebox").TString;
94
+ code: import("@sinclair/typebox").TString;
95
+ iconUrl: import("@sinclair/typebox").TString;
96
+ category: import("@sinclair/typebox").TEnum<{
97
+ FIAT: "FIAT";
98
+ CRYPTO: "CRYPTO";
99
+ POINT: "POINT";
100
+ RWA: "RWA";
101
+ }>;
102
+ isActive: import("@sinclair/typebox").TBoolean;
103
+ precision: import("@sinclair/typebox").TInteger;
104
+ }>;
105
+ quantity: import("@sinclair/typebox").TString;
106
+ totalValuation: import("@sinclair/typebox").TString;
107
+ curve: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
108
+ at: import("@sinclair/typebox").TDate;
109
+ value: import("@sinclair/typebox").TString;
110
+ }>>;
111
+ accountDistribution: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
112
+ ledgerAccountId: import("@sinclair/typebox").TString;
113
+ ledgerAccountTypeId: import("@sinclair/typebox").TString;
114
+ ledgerAccountTypeKey: import("@sinclair/typebox").TString;
115
+ ledgerAccountTypeName: import("@sinclair/typebox").TString;
116
+ quantity: import("@sinclair/typebox").TString;
117
+ valuation: import("@sinclair/typebox").TString;
118
+ proportion: import("@sinclair/typebox").TString;
119
+ }>>;
120
+ }>;
121
+ export type PortfolioAssetOverviewResponseType = typeof portfolioAssetOverviewResponseSchema.static;
122
+ export declare const portfolioLedgerAccountOverviewParamsSchema: import("@sinclair/typebox").TObject<{
123
+ id: import("@sinclair/typebox").TString;
124
+ }>;
125
+ export type PortfolioLedgerAccountOverviewParamsType = typeof portfolioLedgerAccountOverviewParamsSchema.static;
126
+ export declare const portfolioLedgerAccountOverviewQuerySchema: import("@sinclair/typebox").TObject<{
127
+ quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
128
+ }>;
129
+ export type PortfolioLedgerAccountOverviewQueryType = typeof portfolioLedgerAccountOverviewQuerySchema.static;
130
+ export declare const portfolioLedgerAccountOverviewResponseSchema: import("@sinclair/typebox").TObject<{
131
+ quoteAsset: import("@sinclair/typebox").TString;
132
+ overview: import("@sinclair/typebox").TObject<{
133
+ totalValuation: import("@sinclair/typebox").TString;
134
+ }>;
135
+ ledgerAccount: import("drizzle-typebox").BuildSchema<"select", {
136
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
137
+ name: "created_at";
138
+ tableName: "ledger_account";
139
+ dataType: "date";
140
+ columnType: "PgTimestamp";
141
+ data: Date;
142
+ driverParam: string;
143
+ notNull: true;
144
+ hasDefault: true;
145
+ isPrimaryKey: false;
146
+ isAutoincrement: false;
147
+ hasRuntimeDefault: false;
148
+ enumValues: undefined;
149
+ baseColumn: never;
150
+ identity: undefined;
151
+ generated: undefined;
152
+ }, {}, {}>;
153
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
154
+ name: "updated_at";
155
+ tableName: "ledger_account";
156
+ dataType: "date";
157
+ columnType: "PgTimestamp";
158
+ data: Date;
159
+ driverParam: string;
160
+ notNull: true;
161
+ hasDefault: true;
162
+ isPrimaryKey: false;
163
+ isAutoincrement: false;
164
+ hasRuntimeDefault: false;
165
+ enumValues: undefined;
166
+ baseColumn: never;
167
+ identity: undefined;
168
+ generated: undefined;
169
+ }, {}, {}>;
170
+ id: import("drizzle-orm/pg-core").PgColumn<{
171
+ name: "id";
172
+ tableName: "ledger_account";
173
+ dataType: "string";
174
+ columnType: "PgUUID";
175
+ data: string;
176
+ driverParam: string;
177
+ notNull: true;
178
+ hasDefault: true;
179
+ isPrimaryKey: true;
180
+ isAutoincrement: false;
181
+ hasRuntimeDefault: false;
182
+ enumValues: undefined;
183
+ baseColumn: never;
184
+ identity: undefined;
185
+ generated: undefined;
186
+ }, {}, {}>;
187
+ userId: import("drizzle-orm/pg-core").PgColumn<{
188
+ name: "user_id";
189
+ tableName: "ledger_account";
190
+ dataType: "string";
191
+ columnType: "PgText";
192
+ data: string;
193
+ driverParam: string;
194
+ notNull: true;
195
+ hasDefault: false;
196
+ isPrimaryKey: false;
197
+ isAutoincrement: false;
198
+ hasRuntimeDefault: false;
199
+ enumValues: [string, ...string[]];
200
+ baseColumn: never;
201
+ identity: undefined;
202
+ generated: undefined;
203
+ }, {}, {}>;
204
+ assetId: import("drizzle-orm/pg-core").PgColumn<{
205
+ name: "asset_id";
206
+ tableName: "ledger_account";
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
+ ledgerAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
222
+ name: "ledger_account_type_id";
223
+ tableName: "ledger_account";
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
+ available: import("drizzle-orm/pg-core").PgColumn<{
239
+ name: "available";
240
+ tableName: "ledger_account";
241
+ dataType: "string";
242
+ columnType: "PgNumeric";
243
+ data: string;
244
+ driverParam: string;
245
+ notNull: true;
246
+ hasDefault: true;
247
+ isPrimaryKey: false;
248
+ isAutoincrement: false;
249
+ hasRuntimeDefault: false;
250
+ enumValues: undefined;
251
+ baseColumn: never;
252
+ identity: undefined;
253
+ generated: undefined;
254
+ }, {}, {}>;
255
+ locked: import("drizzle-orm/pg-core").PgColumn<{
256
+ name: "locked";
257
+ tableName: "ledger_account";
258
+ dataType: "string";
259
+ columnType: "PgNumeric";
260
+ data: string;
261
+ driverParam: string;
262
+ notNull: true;
263
+ hasDefault: true;
264
+ isPrimaryKey: false;
265
+ isAutoincrement: false;
266
+ hasRuntimeDefault: false;
267
+ enumValues: undefined;
268
+ baseColumn: never;
269
+ identity: undefined;
270
+ generated: undefined;
271
+ }, {}, {}>;
272
+ version: import("drizzle-orm/pg-core").PgColumn<{
273
+ name: "version";
274
+ tableName: "ledger_account";
275
+ dataType: "number";
276
+ columnType: "PgInteger";
277
+ data: number;
278
+ driverParam: string | number;
279
+ notNull: true;
280
+ hasDefault: true;
281
+ isPrimaryKey: false;
282
+ isAutoincrement: false;
283
+ hasRuntimeDefault: false;
284
+ enumValues: undefined;
285
+ baseColumn: never;
286
+ identity: undefined;
287
+ generated: undefined;
288
+ }, {}, {}>;
289
+ status: import("drizzle-orm/pg-core").PgColumn<{
290
+ name: "status";
291
+ tableName: "ledger_account";
292
+ dataType: "string";
293
+ columnType: "PgEnumColumn";
294
+ data: "active" | "frozen" | "disabled";
295
+ driverParam: string;
296
+ notNull: true;
297
+ hasDefault: true;
298
+ isPrimaryKey: false;
299
+ isAutoincrement: false;
300
+ hasRuntimeDefault: false;
301
+ enumValues: ["active", "frozen", "disabled"];
302
+ baseColumn: never;
303
+ identity: undefined;
304
+ generated: undefined;
305
+ }, {}, {}>;
306
+ }, undefined>;
307
+ ledgerAccountType: import("@sinclair/typebox").TObject<{
308
+ key: import("@sinclair/typebox").TString;
309
+ id: import("@sinclair/typebox").TString;
310
+ name: import("@sinclair/typebox").TString;
311
+ description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
312
+ }>;
313
+ }>;
314
+ export type PortfolioLedgerAccountOverviewResponseType = typeof portfolioLedgerAccountOverviewResponseSchema.static;
315
+ export declare const portfolioAccountTypeOverviewResponseSchema: import("@sinclair/typebox").TObject<{
316
+ quoteAsset: import("@sinclair/typebox").TString;
317
+ overview: import("@sinclair/typebox").TObject<{
318
+ totalValuation: import("@sinclair/typebox").TString;
319
+ }>;
320
+ accountType: import("@sinclair/typebox").TObject<{
321
+ id: import("@sinclair/typebox").TString;
322
+ name: import("@sinclair/typebox").TString;
323
+ key: import("@sinclair/typebox").TString;
324
+ }>;
325
+ accounts: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
326
+ id: import("@sinclair/typebox").TString;
327
+ userId: import("@sinclair/typebox").TString;
328
+ status: import("@sinclair/typebox").TEnum<{
329
+ active: "active";
330
+ frozen: "frozen";
331
+ disabled: "disabled";
332
+ }>;
333
+ assetId: import("@sinclair/typebox").TString;
334
+ ledgerAccountTypeId: import("@sinclair/typebox").TString;
335
+ available: import("@sinclair/typebox").TString;
336
+ locked: import("@sinclair/typebox").TString;
337
+ asset: import("@sinclair/typebox").TObject<{
338
+ id: import("@sinclair/typebox").TString;
339
+ name: import("@sinclair/typebox").TString;
340
+ code: import("@sinclair/typebox").TString;
341
+ iconUrl: import("@sinclair/typebox").TString;
342
+ }>;
343
+ totalValuation: import("@sinclair/typebox").TString;
344
+ quantity: import("@sinclair/typebox").TString;
345
+ accountType: import("@sinclair/typebox").TObject<{
346
+ id: import("@sinclair/typebox").TString;
347
+ name: import("@sinclair/typebox").TString;
348
+ key: import("@sinclair/typebox").TString;
349
+ }>;
350
+ }>>;
351
+ }>;
352
+ export type PortfolioAccountTypeOverviewResponseType = typeof portfolioAccountTypeOverviewResponseSchema.static;
@@ -0,0 +1,3 @@
1
+ export * from "./dto.schemas";
2
+ export { portfolioRouter } from "./router";
3
+ export * from "./service";