@r2wa-org/eden 0.0.56 → 0.0.59

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 (151) hide show
  1. package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
  2. package/dist/src/admin/admin/router.d.ts +10 -12
  3. package/dist/src/admin/admin/service.d.ts +0 -2
  4. package/dist/src/admin/index.d.ts +1043 -54
  5. package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
  6. package/dist/src/asset/admin/router.d.ts +123 -20
  7. package/dist/src/asset/admin/service.d.ts +52 -4
  8. package/dist/src/asset/user/dto.schemas.d.ts +16 -98
  9. package/dist/src/asset/user/router.d.ts +69 -75
  10. package/dist/src/asset/user/service.d.ts +42 -42
  11. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
  12. package/dist/src/asset-convert-product/admin/router.d.ts +564 -22
  13. package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
  14. package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
  15. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
  16. package/dist/src/asset-convert-product/permissions.d.ts +2 -2
  17. package/dist/src/asset-convert-product/user/router.d.ts +8 -8
  18. package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
  19. package/dist/src/asset-price/admin/router.d.ts +125 -10
  20. package/dist/src/asset-price/admin/service.d.ts +157 -0
  21. package/dist/src/asset-price/errors/index.d.ts +3 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +3 -0
  23. package/dist/src/asset-price/internal/service.d.ts +1 -0
  24. package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
  25. package/dist/src/asset-price/user/router.d.ts +51 -10
  26. package/dist/src/asset-price/user/service.d.ts +13 -1
  27. package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
  28. package/dist/src/asset-type/admin/router.d.ts +60 -18
  29. package/dist/src/asset-type/admin/service.d.ts +16 -6
  30. package/dist/src/asset-type/db.schemas.d.ts +6 -6
  31. package/dist/src/asset-type/errors/index.d.ts +6 -0
  32. package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
  33. package/dist/src/asset-type/internal/service.d.ts +4 -4
  34. package/dist/src/asset-type/permissions.d.ts +1 -1
  35. package/dist/src/asset-type/schema.d.ts +3 -5
  36. package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
  37. package/dist/src/asset-type/user/router.d.ts +10 -10
  38. package/dist/src/asset-type/user/service.d.ts +1 -1
  39. package/dist/src/auth/better-auth.d.ts +706 -451
  40. package/dist/src/auth/db.schemas.d.ts +27 -407
  41. package/dist/src/auth/permissions.d.ts +20 -20
  42. package/dist/src/auth/roles.d.ts +60 -60
  43. package/dist/src/auth/router.d.ts +6 -6
  44. package/dist/src/auth/schema.d.ts +8 -206
  45. package/dist/src/bank-account/admin/router.d.ts +10 -10
  46. package/dist/src/bank-account/user/router.d.ts +6 -6
  47. package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
  48. package/dist/src/check-in/admin/router.d.ts +10 -11
  49. package/dist/src/check-in/admin/service.d.ts +0 -1
  50. package/dist/src/check-in/internal/service.d.ts +0 -1
  51. package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
  52. package/dist/src/check-in/user/router.d.ts +8 -9
  53. package/dist/src/check-in/user/service.d.ts +0 -1
  54. package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
  55. package/dist/src/deposit/admin/router.d.ts +10 -11
  56. package/dist/src/deposit/admin/service.d.ts +0 -2
  57. package/dist/src/deposit/user/dto.schemas.d.ts +8 -42
  58. package/dist/src/deposit/user/router.d.ts +8 -9
  59. package/dist/src/deposit/user/service.d.ts +0 -2
  60. package/dist/src/dynamic-env/admin.router.d.ts +10 -10
  61. package/dist/src/env/server.d.ts +1 -1
  62. package/dist/src/file-storage/admin/router.d.ts +10 -10
  63. package/dist/src/file-storage/share/router.d.ts +8 -8
  64. package/dist/src/file-storage/user/router.d.ts +8 -8
  65. package/dist/src/index.d.ts +1578 -352
  66. package/dist/src/ledger/admin/router.d.ts +10 -10
  67. package/dist/src/ledger/user/router.d.ts +8 -8
  68. package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
  69. package/dist/src/ledger-account/admin/router.d.ts +11 -11
  70. package/dist/src/ledger-account/user/dto.schemas.d.ts +39 -193
  71. package/dist/src/ledger-account/user/router.d.ts +51 -50
  72. package/dist/src/ledger-account/user/service.d.ts +41 -41
  73. package/dist/src/ledger-account-import/admin/router.d.ts +10 -10
  74. package/dist/src/ledger-account-transfer/user/router.d.ts +8 -8
  75. package/dist/src/ledger-account-type/admin/router.d.ts +10 -10
  76. package/dist/src/ledger-account-type/user/router.d.ts +56 -8
  77. package/dist/src/ledger-account-type/user/service.d.ts +25 -0
  78. package/dist/src/market-data/admin/router.d.ts +10 -10
  79. package/dist/src/market-data/user/router.d.ts +8 -8
  80. package/dist/src/market-pricing/admin/router.d.ts +10 -10
  81. package/dist/src/news/admin/dto.schemas.d.ts +6 -6
  82. package/dist/src/news/admin/router.d.ts +10 -10
  83. package/dist/src/news/user/dto.schemas.d.ts +12 -12
  84. package/dist/src/news/user/router.d.ts +8 -8
  85. package/dist/src/news-category/user/router.d.ts +6 -6
  86. package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
  87. package/dist/src/notification/admin/router.d.ts +10 -10
  88. package/dist/src/notification/user/dto.schemas.d.ts +2 -2
  89. package/dist/src/notification/user/router.d.ts +8 -8
  90. package/dist/src/portfolio/index.d.ts +2 -0
  91. package/dist/src/portfolio/internal/index.d.ts +1 -0
  92. package/dist/src/portfolio/internal/service.d.ts +5 -0
  93. package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
  94. package/dist/src/portfolio/user/index.d.ts +3 -0
  95. package/dist/src/portfolio/user/router.d.ts +659 -0
  96. package/dist/src/portfolio/user/service.d.ts +143 -0
  97. package/dist/src/receipt-method/admin/router.d.ts +10 -10
  98. package/dist/src/receipt-method/user/router.d.ts +6 -6
  99. package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
  100. package/dist/src/referral/admin/router.d.ts +10 -11
  101. package/dist/src/referral/user/dto.schemas.d.ts +2 -36
  102. package/dist/src/referral/user/router.d.ts +8 -9
  103. package/dist/src/referral-depth-config/admin/router.d.ts +10 -10
  104. package/dist/src/server-test/index.d.ts +6 -6
  105. package/dist/src/shipping-address/admin/router.d.ts +10 -10
  106. package/dist/src/shipping-address/user/router.d.ts +6 -6
  107. package/dist/src/team/admin/dto.schemas.d.ts +2 -36
  108. package/dist/src/team/admin/router.d.ts +10 -11
  109. package/dist/src/team/user/dto.schemas.d.ts +5 -90
  110. package/dist/src/team/user/router.d.ts +8 -11
  111. package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
  112. package/dist/src/trade-market/admin/router.d.ts +10 -10
  113. package/dist/src/trade-market/user/router.d.ts +8 -8
  114. package/dist/src/transfer/admin/router.d.ts +10 -10
  115. package/dist/src/transfer/admin/service.d.ts +0 -2
  116. package/dist/src/transfer/user/router.d.ts +8 -8
  117. package/dist/src/transfer/user/service.d.ts +0 -2
  118. package/dist/src/user/admin/dto.schemas.d.ts +1 -21
  119. package/dist/src/user/admin/router.d.ts +10 -15
  120. package/dist/src/user/admin/service.d.ts +0 -4
  121. package/dist/src/user/user/router.d.ts +6 -8
  122. package/dist/src/user/user/service.d.ts +0 -2
  123. package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
  124. package/dist/src/user-kyc/admin/router.d.ts +10 -10
  125. package/dist/src/user-kyc/user/router.d.ts +8 -8
  126. package/dist/src/user-security/admin/router.d.ts +10 -10
  127. package/dist/src/user-security/user/router.d.ts +8 -8
  128. package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
  129. package/dist/src/wallet/admin/router.d.ts +75 -10
  130. package/dist/src/wallet/admin/service.d.ts +46 -8
  131. package/dist/src/wallet/internal/service.d.ts +118 -14
  132. package/dist/src/wallet/user/dto.schemas.d.ts +6 -66
  133. package/dist/src/wallet/user/router.d.ts +9 -69
  134. package/dist/src/wallet/user/service.d.ts +20 -46
  135. package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
  136. package/dist/src/wallet-type/admin/router.d.ts +143 -10
  137. package/dist/src/wallet-type/admin/service.d.ts +51 -0
  138. package/dist/src/wallet-type/errors/index.d.ts +4 -0
  139. package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
  140. package/dist/src/wallet-type/internal/service.d.ts +37 -0
  141. package/dist/src/wallet-type/user/router.d.ts +8 -8
  142. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
  143. package/dist/src/welfare-cycle/admin/router.d.ts +10 -10
  144. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
  145. package/dist/src/welfare-cycle/user/router.d.ts +51 -56
  146. package/dist/src/welfare-cycle/user/service.d.ts +1 -1
  147. package/dist/src/withdraw/admin/router.d.ts +10 -10
  148. package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
  149. package/dist/src/withdraw/user/router.d.ts +55 -8
  150. package/dist/src/withdraw/user/service.d.ts +20 -1
  151. package/package.json +1 -1
@@ -1,11 +1,12 @@
1
1
  export declare const assetUserListQuerySchema: import("@sinclair/typebox").TObject<{
2
- isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
3
2
  category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
4
3
  FIAT: "FIAT";
5
4
  CRYPTO: "CRYPTO";
6
5
  POINT: "POINT";
7
6
  RWA: "RWA";
8
7
  }>>;
8
+ isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
+ typeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
10
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
10
11
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
11
12
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -13,10 +14,9 @@ export declare const assetUserListQuerySchema: import("@sinclair/typebox").TObje
13
14
  }>;
14
15
  export type AssetUserListQueryType = typeof assetUserListQuerySchema.static;
15
16
  export declare const assetUserItemResponseSchema: import("@sinclair/typebox").TObject<{
17
+ symbol: import("@sinclair/typebox").TString;
16
18
  id: import("@sinclair/typebox").TString;
17
19
  name: import("@sinclair/typebox").TString;
18
- isActive: import("@sinclair/typebox").TBoolean;
19
- symbol: import("@sinclair/typebox").TString;
20
20
  code: import("@sinclair/typebox").TString;
21
21
  iconUrl: import("@sinclair/typebox").TString;
22
22
  category: import("@sinclair/typebox").TEnum<{
@@ -25,27 +25,31 @@ export declare const assetUserItemResponseSchema: import("@sinclair/typebox").TO
25
25
  POINT: "POINT";
26
26
  RWA: "RWA";
27
27
  }>;
28
+ isActive: import("@sinclair/typebox").TBoolean;
28
29
  typeId: import("@sinclair/typebox").TString;
29
30
  precision: import("@sinclair/typebox").TInteger;
30
31
  type: import("@sinclair/typebox").TObject<{
31
32
  id: import("@sinclair/typebox").TString;
32
33
  name: import("@sinclair/typebox").TString;
33
- key: import("@sinclair/typebox").TEnum<{
34
- FIAT_CURRENCY: "FIAT_CURRENCY";
35
- STABLE_COIN: "STABLE_COIN";
36
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
37
- }>;
34
+ key: import("@sinclair/typebox").TString;
38
35
  isGasAsset: import("@sinclair/typebox").TBoolean;
39
36
  isActive: import("@sinclair/typebox").TBoolean;
40
37
  }>;
41
38
  }>;
42
39
  export type AssetUserItemResponseType = typeof assetUserItemResponseSchema.static;
40
+ export declare const assetUserIdParamsSchema: import("@sinclair/typebox").TObject<{
41
+ id: import("@sinclair/typebox").TString;
42
+ }>;
43
+ export type AssetUserIdParamsType = typeof assetUserIdParamsSchema.static;
44
+ export declare const assetUserCodeParamsSchema: import("@sinclair/typebox").TObject<{
45
+ code: import("@sinclair/typebox").TString;
46
+ }>;
47
+ export type AssetUserCodeParamsType = typeof assetUserCodeParamsSchema.static;
43
48
  export declare const assetUserListResponseSchema: import("@sinclair/typebox").TObject<{
44
49
  data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
50
+ symbol: import("@sinclair/typebox").TString;
45
51
  id: import("@sinclair/typebox").TString;
46
52
  name: import("@sinclair/typebox").TString;
47
- isActive: import("@sinclair/typebox").TBoolean;
48
- symbol: import("@sinclair/typebox").TString;
49
53
  code: import("@sinclair/typebox").TString;
50
54
  iconUrl: import("@sinclair/typebox").TString;
51
55
  category: import("@sinclair/typebox").TEnum<{
@@ -54,16 +58,13 @@ export declare const assetUserListResponseSchema: import("@sinclair/typebox").TO
54
58
  POINT: "POINT";
55
59
  RWA: "RWA";
56
60
  }>;
61
+ isActive: import("@sinclair/typebox").TBoolean;
57
62
  typeId: import("@sinclair/typebox").TString;
58
63
  precision: import("@sinclair/typebox").TInteger;
59
64
  type: import("@sinclair/typebox").TObject<{
60
65
  id: import("@sinclair/typebox").TString;
61
66
  name: import("@sinclair/typebox").TString;
62
- key: import("@sinclair/typebox").TEnum<{
63
- FIAT_CURRENCY: "FIAT_CURRENCY";
64
- STABLE_COIN: "STABLE_COIN";
65
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
66
- }>;
67
+ key: import("@sinclair/typebox").TString;
67
68
  isGasAsset: import("@sinclair/typebox").TBoolean;
68
69
  isActive: import("@sinclair/typebox").TBoolean;
69
70
  }>;
@@ -77,86 +78,3 @@ export declare const assetUserListResponseSchema: import("@sinclair/typebox").TO
77
78
  }>;
78
79
  }>;
79
80
  export type AssetUserListResponseType = typeof assetUserListResponseSchema.static;
80
- export declare const assetHoldingListQuerySchema: import("@sinclair/typebox").TObject<{
81
- quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
82
- walletId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
83
- ledgerAccountId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
84
- }>;
85
- export type AssetHoldingListQueryType = typeof assetHoldingListQuerySchema.static;
86
- export declare const assetHoldingItemSchema: import("@sinclair/typebox").TObject<{
87
- assetId: import("@sinclair/typebox").TString;
88
- assetCode: import("@sinclair/typebox").TString;
89
- assetName: import("@sinclair/typebox").TString;
90
- quantity: import("@sinclair/typebox").TString;
91
- totalValuation: import("@sinclair/typebox").TString;
92
- }>;
93
- export type AssetHoldingItemType = typeof assetHoldingItemSchema.static;
94
- export declare const assetHoldingListResponseSchema: import("@sinclair/typebox").TObject<{
95
- quoteAsset: import("@sinclair/typebox").TString;
96
- items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
97
- assetId: import("@sinclair/typebox").TString;
98
- assetCode: import("@sinclair/typebox").TString;
99
- assetName: import("@sinclair/typebox").TString;
100
- quantity: import("@sinclair/typebox").TString;
101
- totalValuation: import("@sinclair/typebox").TString;
102
- }>>;
103
- }>;
104
- export type AssetHoldingListResponseType = typeof assetHoldingListResponseSchema.static;
105
- export declare const assetOverviewParamsSchema: import("@sinclair/typebox").TObject<{
106
- assetId: import("@sinclair/typebox").TString;
107
- }>;
108
- export type AssetOverviewParamsType = typeof assetOverviewParamsSchema.static;
109
- export declare const assetOverviewQuerySchema: import("@sinclair/typebox").TObject<{
110
- quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
111
- days: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
112
- }>;
113
- export type AssetOverviewQueryType = typeof assetOverviewQuerySchema.static;
114
- export declare const assetOverviewCurveItemSchema: import("@sinclair/typebox").TObject<{
115
- at: import("@sinclair/typebox").TDate;
116
- value: import("@sinclair/typebox").TString;
117
- }>;
118
- export type AssetOverviewCurveItemType = typeof assetOverviewCurveItemSchema.static;
119
- export declare const assetOverviewAccountDistributionItemSchema: import("@sinclair/typebox").TObject<{
120
- ledgerAccountId: import("@sinclair/typebox").TString;
121
- ledgerAccountTypeId: import("@sinclair/typebox").TString;
122
- ledgerAccountTypeKey: import("@sinclair/typebox").TString;
123
- ledgerAccountTypeName: import("@sinclair/typebox").TString;
124
- quantity: import("@sinclair/typebox").TString;
125
- valuation: import("@sinclair/typebox").TString;
126
- proportion: import("@sinclair/typebox").TString;
127
- }>;
128
- export type AssetOverviewAccountDistributionItemType = typeof assetOverviewAccountDistributionItemSchema.static;
129
- export declare const assetOverviewResponseSchema: import("@sinclair/typebox").TObject<{
130
- quoteAsset: import("@sinclair/typebox").TString;
131
- asset: import("@sinclair/typebox").TObject<{
132
- symbol: import("@sinclair/typebox").TString;
133
- id: import("@sinclair/typebox").TString;
134
- name: import("@sinclair/typebox").TString;
135
- code: import("@sinclair/typebox").TString;
136
- iconUrl: import("@sinclair/typebox").TString;
137
- category: import("@sinclair/typebox").TEnum<{
138
- FIAT: "FIAT";
139
- CRYPTO: "CRYPTO";
140
- POINT: "POINT";
141
- RWA: "RWA";
142
- }>;
143
- isActive: import("@sinclair/typebox").TBoolean;
144
- precision: import("@sinclair/typebox").TInteger;
145
- }>;
146
- quantity: import("@sinclair/typebox").TString;
147
- totalValuation: import("@sinclair/typebox").TString;
148
- curve: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
149
- at: import("@sinclair/typebox").TDate;
150
- value: import("@sinclair/typebox").TString;
151
- }>>;
152
- accountDistribution: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
153
- ledgerAccountId: import("@sinclair/typebox").TString;
154
- ledgerAccountTypeId: import("@sinclair/typebox").TString;
155
- ledgerAccountTypeKey: import("@sinclair/typebox").TString;
156
- ledgerAccountTypeName: import("@sinclair/typebox").TString;
157
- quantity: import("@sinclair/typebox").TString;
158
- valuation: import("@sinclair/typebox").TString;
159
- proportion: import("@sinclair/typebox").TString;
160
- }>>;
161
- }>;
162
- export type AssetOverviewResponseType = typeof assetOverviewResponseSchema.static;
@@ -41,7 +41,7 @@ export declare const assetRouter: Elysia<"/assets", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const assetRouter: Elysia<"/assets", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const assetRouter: Elysia<"/assets", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const assetRouter: Elysia<"/assets", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -387,6 +387,7 @@ export declare const assetRouter: Elysia<"/assets", {
387
387
  query: {
388
388
  category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
389
389
  isActive?: boolean | undefined;
390
+ typeId?: string | undefined;
390
391
  limit?: number | undefined;
391
392
  offset?: number | undefined;
392
393
  pageSize?: number | undefined;
@@ -400,7 +401,7 @@ export declare const assetRouter: Elysia<"/assets", {
400
401
  type: {
401
402
  id: string;
402
403
  name: string;
403
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
404
+ key: string;
404
405
  isGasAsset: boolean;
405
406
  isActive: boolean;
406
407
  };
@@ -436,83 +437,33 @@ export declare const assetRouter: Elysia<"/assets", {
436
437
  };
437
438
  } & {
438
439
  assets: {
439
- holdings: {
440
- get: {
441
- body: {};
442
- params: {};
443
- query: {
444
- quoteAsset?: string | undefined;
445
- ledgerAccountId?: string | undefined;
446
- walletId?: string | undefined;
447
- };
448
- headers: {};
449
- response: {
450
- 200: {
451
- items: {
452
- assetId: string;
453
- assetCode: string;
454
- totalValuation: string;
455
- assetName: string;
456
- quantity: string;
457
- }[];
458
- quoteAsset: string;
459
- };
460
- 422: {
461
- type: "validation";
462
- on: string;
463
- summary?: string;
464
- message?: string;
465
- found?: unknown;
466
- property?: string;
467
- expected?: string;
468
- };
469
- 401: "Unauthorized";
470
- };
471
- };
472
- };
473
- };
474
- } & {
475
- assets: {
476
- ":assetId": {
477
- overview: {
440
+ code: {
441
+ ":code": {
478
442
  get: {
479
443
  body: {};
480
444
  params: {
481
- assetId: string;
482
- };
483
- query: {
484
- quoteAsset?: string | undefined;
485
- days?: number | undefined;
445
+ code: string;
486
446
  };
447
+ query: {};
487
448
  headers: {};
488
449
  response: {
489
450
  200: {
490
- asset: {
491
- symbol: string;
451
+ symbol: string;
452
+ type: {
492
453
  id: string;
493
454
  name: string;
494
- code: string;
495
- iconUrl: string;
496
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
455
+ key: string;
456
+ isGasAsset: boolean;
497
457
  isActive: boolean;
498
- precision: number;
499
458
  };
500
- quoteAsset: string;
501
- totalValuation: string;
502
- quantity: string;
503
- curve: {
504
- at: Date;
505
- value: string;
506
- }[];
507
- accountDistribution: {
508
- ledgerAccountTypeId: string;
509
- ledgerAccountId: string;
510
- quantity: string;
511
- ledgerAccountTypeKey: string;
512
- ledgerAccountTypeName: string;
513
- valuation: string;
514
- proportion: string;
515
- }[];
459
+ id: string;
460
+ name: string;
461
+ code: string;
462
+ iconUrl: string;
463
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
464
+ isActive: boolean;
465
+ typeId: string;
466
+ precision: number;
516
467
  };
517
468
  422: {
518
469
  type: "validation";
@@ -529,6 +480,49 @@ export declare const assetRouter: Elysia<"/assets", {
529
480
  };
530
481
  };
531
482
  };
483
+ } & {
484
+ assets: {
485
+ ":id": {
486
+ get: {
487
+ body: {};
488
+ params: {
489
+ id: string;
490
+ };
491
+ query: {};
492
+ headers: {};
493
+ response: {
494
+ 200: {
495
+ symbol: string;
496
+ type: {
497
+ id: string;
498
+ name: string;
499
+ key: string;
500
+ isGasAsset: boolean;
501
+ isActive: boolean;
502
+ };
503
+ id: string;
504
+ name: string;
505
+ code: string;
506
+ iconUrl: string;
507
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
508
+ isActive: boolean;
509
+ typeId: string;
510
+ precision: number;
511
+ };
512
+ 422: {
513
+ type: "validation";
514
+ on: string;
515
+ summary?: string;
516
+ message?: string;
517
+ found?: unknown;
518
+ property?: string;
519
+ expected?: string;
520
+ };
521
+ 401: "Unauthorized";
522
+ };
523
+ };
524
+ };
525
+ };
532
526
  }, {
533
527
  derive: {};
534
528
  resolve: {};
@@ -546,11 +540,11 @@ export declare const assetRouter: Elysia<"/assets", {
546
540
  emailVerified: boolean;
547
541
  name: string;
548
542
  image?: string | null | undefined | undefined;
549
- phoneNumber?: string | null | undefined;
550
- phoneNumberVerified?: boolean | null | undefined;
551
543
  twoFactorEnabled: boolean | null | undefined;
552
544
  username?: string | null | undefined;
553
545
  displayUsername?: string | null | undefined;
546
+ phoneNumber?: string | null | undefined;
547
+ phoneNumberVerified?: boolean | null | undefined;
554
548
  banned: boolean | null | undefined;
555
549
  role?: string | null | undefined;
556
550
  banReason?: string | null | undefined;
@@ -1,5 +1,5 @@
1
1
  import { BaseAssetService } from "../internal/service";
2
- import type { AssetHoldingListQueryType, AssetOverviewParamsType, AssetOverviewQueryType, AssetUserListQueryType } from "./dto.schemas";
2
+ import type { AssetUserCodeParamsType, AssetUserIdParamsType, AssetUserListQueryType } from "./dto.schemas";
3
3
  export interface AssetUserListQueryOptions extends AssetUserListQueryType {
4
4
  }
5
5
  export declare abstract class UserAssetService extends BaseAssetService {
@@ -22,57 +22,57 @@ export declare abstract class UserAssetService extends BaseAssetService {
22
22
  createdAt: Date;
23
23
  updatedAt: Date;
24
24
  description: string | null;
25
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
25
+ key: string;
26
26
  isGasAsset: boolean;
27
27
  isActive: boolean;
28
28
  };
29
29
  }[];
30
30
  total: number;
31
31
  }>;
32
- private static normalizeQuoteAsset;
33
- private static toDecimal;
34
- private static createCurvePoints;
35
- private static getLatestPriceMapForAssets;
36
- private static getPriceRowsForAsset;
37
- private static pickLatestPriceAt;
38
- private static getQuoteAssetEntity;
39
- private static resolveFilteredAccountRows;
40
- static listAssetHoldings(userId: string, query?: AssetHoldingListQueryType): Promise<{
41
- quoteAsset: string;
42
- items: {
43
- assetId: string;
44
- assetCode: string;
45
- assetName: string;
46
- quantity: string;
47
- totalValuation: string;
48
- }[];
32
+ static getAssetById(params: AssetUserIdParamsType): Promise<{
33
+ symbol: string;
34
+ id: string;
35
+ name: string;
36
+ createdAt: Date;
37
+ updatedAt: Date;
38
+ code: string;
39
+ iconUrl: string;
40
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
41
+ isActive: boolean;
42
+ typeId: string;
43
+ precision: number;
44
+ type: {
45
+ id: string;
46
+ name: string;
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ description: string | null;
50
+ key: string;
51
+ isGasAsset: boolean;
52
+ isActive: boolean;
53
+ };
49
54
  }>;
50
- static getAssetOverview(userId: string, params: AssetOverviewParamsType, query?: AssetOverviewQueryType): Promise<{
51
- quoteAsset: string;
52
- asset: {
55
+ static getAssetByCode(params: AssetUserCodeParamsType): Promise<{
56
+ symbol: string;
57
+ id: string;
58
+ name: string;
59
+ createdAt: Date;
60
+ updatedAt: Date;
61
+ code: string;
62
+ iconUrl: string;
63
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
64
+ isActive: boolean;
65
+ typeId: string;
66
+ precision: number;
67
+ type: {
53
68
  id: string;
54
- code: string;
55
69
  name: string;
56
- iconUrl: string;
57
- symbol: string;
58
- precision: number;
59
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
70
+ createdAt: Date;
71
+ updatedAt: Date;
72
+ description: string | null;
73
+ key: string;
74
+ isGasAsset: boolean;
60
75
  isActive: boolean;
61
76
  };
62
- quantity: string;
63
- totalValuation: string;
64
- curve: {
65
- at: Date;
66
- value: string;
67
- }[];
68
- accountDistribution: {
69
- ledgerAccountId: string;
70
- ledgerAccountTypeId: string;
71
- ledgerAccountTypeKey: string;
72
- ledgerAccountTypeName: string;
73
- quantity: string;
74
- valuation: string;
75
- proportion: string;
76
- }[];
77
77
  }>;
78
78
  }