@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
@@ -2,32 +2,284 @@ export declare const assetTypeAdminParamsSchema: import("@sinclair/typebox").TOb
2
2
  id: import("@sinclair/typebox").TString;
3
3
  }>;
4
4
  export type AssetTypeAdminParamsType = typeof assetTypeAdminParamsSchema.static;
5
- export declare const assetTypeAdminItemResponseSchema: import("@sinclair/typebox").TObject<{
6
- id: import("@sinclair/typebox").TString;
7
- name: import("@sinclair/typebox").TString;
8
- description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
9
- key: import("@sinclair/typebox").TEnum<{
10
- FIAT_CURRENCY: "FIAT_CURRENCY";
11
- STABLE_COIN: "STABLE_COIN";
12
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
13
- }>;
14
- isGasAsset: import("@sinclair/typebox").TBoolean;
15
- isActive: import("@sinclair/typebox").TBoolean;
16
- }>;
5
+ export declare const assetTypeAdminItemResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
6
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
7
+ name: "created_at";
8
+ tableName: "asset_type";
9
+ dataType: "date";
10
+ columnType: "PgTimestamp";
11
+ data: Date;
12
+ driverParam: string;
13
+ notNull: true;
14
+ hasDefault: true;
15
+ isPrimaryKey: false;
16
+ isAutoincrement: false;
17
+ hasRuntimeDefault: false;
18
+ enumValues: undefined;
19
+ baseColumn: never;
20
+ identity: undefined;
21
+ generated: undefined;
22
+ }, {}, {}>;
23
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
24
+ name: "updated_at";
25
+ tableName: "asset_type";
26
+ dataType: "date";
27
+ columnType: "PgTimestamp";
28
+ data: Date;
29
+ driverParam: string;
30
+ notNull: true;
31
+ hasDefault: true;
32
+ isPrimaryKey: false;
33
+ isAutoincrement: false;
34
+ hasRuntimeDefault: false;
35
+ enumValues: undefined;
36
+ baseColumn: never;
37
+ identity: undefined;
38
+ generated: undefined;
39
+ }, {}, {}>;
40
+ id: import("drizzle-orm/pg-core").PgColumn<{
41
+ name: "id";
42
+ tableName: "asset_type";
43
+ dataType: "string";
44
+ columnType: "PgUUID";
45
+ data: string;
46
+ driverParam: string;
47
+ notNull: true;
48
+ hasDefault: true;
49
+ isPrimaryKey: true;
50
+ isAutoincrement: false;
51
+ hasRuntimeDefault: false;
52
+ enumValues: undefined;
53
+ baseColumn: never;
54
+ identity: undefined;
55
+ generated: undefined;
56
+ }, {}, {}>;
57
+ key: import("drizzle-orm/pg-core").PgColumn<{
58
+ name: "key";
59
+ tableName: "asset_type";
60
+ dataType: "string";
61
+ columnType: "PgText";
62
+ data: string;
63
+ driverParam: string;
64
+ notNull: true;
65
+ hasDefault: false;
66
+ isPrimaryKey: false;
67
+ isAutoincrement: false;
68
+ hasRuntimeDefault: false;
69
+ enumValues: [string, ...string[]];
70
+ baseColumn: never;
71
+ identity: undefined;
72
+ generated: undefined;
73
+ }, {}, {}>;
74
+ name: import("drizzle-orm/pg-core").PgColumn<{
75
+ name: "name";
76
+ tableName: "asset_type";
77
+ dataType: "string";
78
+ columnType: "PgText";
79
+ data: string;
80
+ driverParam: string;
81
+ notNull: true;
82
+ hasDefault: false;
83
+ isPrimaryKey: false;
84
+ isAutoincrement: false;
85
+ hasRuntimeDefault: false;
86
+ enumValues: [string, ...string[]];
87
+ baseColumn: never;
88
+ identity: undefined;
89
+ generated: undefined;
90
+ }, {}, {}>;
91
+ description: import("drizzle-orm/pg-core").PgColumn<{
92
+ name: "description";
93
+ tableName: "asset_type";
94
+ dataType: "string";
95
+ columnType: "PgText";
96
+ data: string;
97
+ driverParam: string;
98
+ notNull: false;
99
+ hasDefault: false;
100
+ isPrimaryKey: false;
101
+ isAutoincrement: false;
102
+ hasRuntimeDefault: false;
103
+ enumValues: [string, ...string[]];
104
+ baseColumn: never;
105
+ identity: undefined;
106
+ generated: undefined;
107
+ }, {}, {}>;
108
+ isGasAsset: import("drizzle-orm/pg-core").PgColumn<{
109
+ name: "is_gas_asset";
110
+ tableName: "asset_type";
111
+ dataType: "boolean";
112
+ columnType: "PgBoolean";
113
+ data: boolean;
114
+ driverParam: boolean;
115
+ notNull: true;
116
+ hasDefault: true;
117
+ isPrimaryKey: false;
118
+ isAutoincrement: false;
119
+ hasRuntimeDefault: false;
120
+ enumValues: undefined;
121
+ baseColumn: never;
122
+ identity: undefined;
123
+ generated: undefined;
124
+ }, {}, {}>;
125
+ isActive: import("drizzle-orm/pg-core").PgColumn<{
126
+ name: "is_active";
127
+ tableName: "asset_type";
128
+ dataType: "boolean";
129
+ columnType: "PgBoolean";
130
+ data: boolean;
131
+ driverParam: boolean;
132
+ notNull: true;
133
+ hasDefault: true;
134
+ isPrimaryKey: false;
135
+ isAutoincrement: false;
136
+ hasRuntimeDefault: false;
137
+ enumValues: undefined;
138
+ baseColumn: never;
139
+ identity: undefined;
140
+ generated: undefined;
141
+ }, {}, {}>;
142
+ }, undefined>;
17
143
  export type AssetTypeAdminItemResponseType = typeof assetTypeAdminItemResponseSchema.static;
18
144
  export declare const assetTypeAdminListResponseSchema: import("@sinclair/typebox").TObject<{
19
- data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
20
- id: import("@sinclair/typebox").TString;
21
- name: import("@sinclair/typebox").TString;
22
- description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
23
- key: import("@sinclair/typebox").TEnum<{
24
- FIAT_CURRENCY: "FIAT_CURRENCY";
25
- STABLE_COIN: "STABLE_COIN";
26
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
27
- }>;
28
- isGasAsset: import("@sinclair/typebox").TBoolean;
29
- isActive: import("@sinclair/typebox").TBoolean;
30
- }>>;
145
+ data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
146
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
147
+ name: "created_at";
148
+ tableName: "asset_type";
149
+ dataType: "date";
150
+ columnType: "PgTimestamp";
151
+ data: Date;
152
+ driverParam: string;
153
+ notNull: true;
154
+ hasDefault: true;
155
+ isPrimaryKey: false;
156
+ isAutoincrement: false;
157
+ hasRuntimeDefault: false;
158
+ enumValues: undefined;
159
+ baseColumn: never;
160
+ identity: undefined;
161
+ generated: undefined;
162
+ }, {}, {}>;
163
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
164
+ name: "updated_at";
165
+ tableName: "asset_type";
166
+ dataType: "date";
167
+ columnType: "PgTimestamp";
168
+ data: Date;
169
+ driverParam: string;
170
+ notNull: true;
171
+ hasDefault: true;
172
+ isPrimaryKey: false;
173
+ isAutoincrement: false;
174
+ hasRuntimeDefault: false;
175
+ enumValues: undefined;
176
+ baseColumn: never;
177
+ identity: undefined;
178
+ generated: undefined;
179
+ }, {}, {}>;
180
+ id: import("drizzle-orm/pg-core").PgColumn<{
181
+ name: "id";
182
+ tableName: "asset_type";
183
+ dataType: "string";
184
+ columnType: "PgUUID";
185
+ data: string;
186
+ driverParam: string;
187
+ notNull: true;
188
+ hasDefault: true;
189
+ isPrimaryKey: true;
190
+ isAutoincrement: false;
191
+ hasRuntimeDefault: false;
192
+ enumValues: undefined;
193
+ baseColumn: never;
194
+ identity: undefined;
195
+ generated: undefined;
196
+ }, {}, {}>;
197
+ key: import("drizzle-orm/pg-core").PgColumn<{
198
+ name: "key";
199
+ tableName: "asset_type";
200
+ dataType: "string";
201
+ columnType: "PgText";
202
+ data: string;
203
+ driverParam: string;
204
+ notNull: true;
205
+ hasDefault: false;
206
+ isPrimaryKey: false;
207
+ isAutoincrement: false;
208
+ hasRuntimeDefault: false;
209
+ enumValues: [string, ...string[]];
210
+ baseColumn: never;
211
+ identity: undefined;
212
+ generated: undefined;
213
+ }, {}, {}>;
214
+ name: import("drizzle-orm/pg-core").PgColumn<{
215
+ name: "name";
216
+ tableName: "asset_type";
217
+ dataType: "string";
218
+ columnType: "PgText";
219
+ data: string;
220
+ driverParam: string;
221
+ notNull: true;
222
+ hasDefault: false;
223
+ isPrimaryKey: false;
224
+ isAutoincrement: false;
225
+ hasRuntimeDefault: false;
226
+ enumValues: [string, ...string[]];
227
+ baseColumn: never;
228
+ identity: undefined;
229
+ generated: undefined;
230
+ }, {}, {}>;
231
+ description: import("drizzle-orm/pg-core").PgColumn<{
232
+ name: "description";
233
+ tableName: "asset_type";
234
+ dataType: "string";
235
+ columnType: "PgText";
236
+ data: string;
237
+ driverParam: string;
238
+ notNull: false;
239
+ hasDefault: false;
240
+ isPrimaryKey: false;
241
+ isAutoincrement: false;
242
+ hasRuntimeDefault: false;
243
+ enumValues: [string, ...string[]];
244
+ baseColumn: never;
245
+ identity: undefined;
246
+ generated: undefined;
247
+ }, {}, {}>;
248
+ isGasAsset: import("drizzle-orm/pg-core").PgColumn<{
249
+ name: "is_gas_asset";
250
+ tableName: "asset_type";
251
+ dataType: "boolean";
252
+ columnType: "PgBoolean";
253
+ data: boolean;
254
+ driverParam: boolean;
255
+ notNull: true;
256
+ hasDefault: true;
257
+ isPrimaryKey: false;
258
+ isAutoincrement: false;
259
+ hasRuntimeDefault: false;
260
+ enumValues: undefined;
261
+ baseColumn: never;
262
+ identity: undefined;
263
+ generated: undefined;
264
+ }, {}, {}>;
265
+ isActive: import("drizzle-orm/pg-core").PgColumn<{
266
+ name: "is_active";
267
+ tableName: "asset_type";
268
+ dataType: "boolean";
269
+ columnType: "PgBoolean";
270
+ data: boolean;
271
+ driverParam: boolean;
272
+ notNull: true;
273
+ hasDefault: true;
274
+ isPrimaryKey: false;
275
+ isAutoincrement: false;
276
+ hasRuntimeDefault: false;
277
+ enumValues: undefined;
278
+ baseColumn: never;
279
+ identity: undefined;
280
+ generated: undefined;
281
+ }, {}, {}>;
282
+ }, undefined>>;
31
283
  pagination: import("@sinclair/typebox").TObject<{
32
284
  pageSize: import("@sinclair/typebox").TNumber;
33
285
  pageIndex: import("@sinclair/typebox").TNumber;
@@ -93,15 +345,15 @@ export declare const assetTypeAdminResponseSchema: import("drizzle-typebox").Bui
93
345
  name: "key";
94
346
  tableName: "asset_type";
95
347
  dataType: "string";
96
- columnType: "PgEnumColumn";
97
- data: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
348
+ columnType: "PgText";
349
+ data: string;
98
350
  driverParam: string;
99
351
  notNull: true;
100
352
  hasDefault: false;
101
353
  isPrimaryKey: false;
102
354
  isAutoincrement: false;
103
355
  hasRuntimeDefault: false;
104
- enumValues: ["FIAT_CURRENCY", "STABLE_COIN", "RWA_VIRTUAL_COIN"];
356
+ enumValues: [string, ...string[]];
105
357
  baseColumn: never;
106
358
  identity: undefined;
107
359
  generated: undefined;
@@ -177,22 +429,28 @@ export declare const assetTypeAdminResponseSchema: import("drizzle-typebox").Bui
177
429
  }, undefined>;
178
430
  export type AssetTypeAdminResponseType = typeof assetTypeAdminResponseSchema.static;
179
431
  export declare const assetTypeAdminListQuerySchema: import("@sinclair/typebox").TObject<{
180
- key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
181
- FIAT_CURRENCY: "FIAT_CURRENCY";
182
- STABLE_COIN: "STABLE_COIN";
183
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
184
- }>>;
432
+ key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
433
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
185
434
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
186
435
  isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
436
+ keyword: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
187
437
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
188
438
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
189
439
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
190
440
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
191
441
  }>;
192
442
  export type AssetTypeAdminListQueryType = typeof assetTypeAdminListQuerySchema.static;
193
- export declare const assetTypeAdminUpdateSchema: import("@sinclair/typebox").TObject<{
443
+ export declare const assetTypeAdminCreateSchema: import("@sinclair/typebox").TObject<{
194
444
  name: import("@sinclair/typebox").TString;
195
445
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
446
+ key: import("@sinclair/typebox").TString;
447
+ isGasAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
448
+ isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
449
+ }>;
450
+ export type AssetTypeAdminCreateInputType = typeof assetTypeAdminCreateSchema.static;
451
+ export declare const assetTypeAdminUpdateSchema: import("@sinclair/typebox").TObject<{
452
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
453
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
196
454
  isGasAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
197
455
  isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
198
456
  }>;
@@ -41,7 +41,7 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
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 assetTypeAdminRouter: Elysia<"/asset_types", {
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 assetTypeAdminRouter: Elysia<"/asset_types", {
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 assetTypeAdminRouter: Elysia<"/asset_types", {
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;
@@ -385,13 +385,15 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
385
385
  body: {};
386
386
  params: {};
387
387
  query: {
388
+ id?: string | undefined;
388
389
  name?: string | undefined;
389
- key?: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN" | undefined;
390
+ key?: string | undefined;
390
391
  isActive?: boolean | undefined;
391
392
  limit?: number | undefined;
392
393
  offset?: number | undefined;
393
394
  pageSize?: number | undefined;
394
395
  pageIndex?: number | undefined;
396
+ keyword?: string | undefined;
395
397
  };
396
398
  headers: {};
397
399
  response: {
@@ -399,8 +401,10 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
399
401
  data: {
400
402
  id: string;
401
403
  name: string;
404
+ createdAt: Date;
405
+ updatedAt: Date;
402
406
  description: string | null;
403
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
407
+ key: string;
404
408
  isGasAsset: boolean;
405
409
  isActive: boolean;
406
410
  }[];
@@ -443,7 +447,7 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
443
447
  createdAt: Date;
444
448
  updatedAt: Date;
445
449
  description: string | null;
446
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
450
+ key: string;
447
451
  isGasAsset: boolean;
448
452
  isActive: boolean;
449
453
  };
@@ -462,15 +466,53 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
462
466
  };
463
467
  };
464
468
  };
469
+ } & {
470
+ asset_types: {
471
+ post: {
472
+ body: {
473
+ description?: string | null | undefined;
474
+ isGasAsset?: boolean | undefined;
475
+ isActive?: boolean | undefined;
476
+ name: string;
477
+ key: string;
478
+ };
479
+ params: {};
480
+ query: {};
481
+ headers: {};
482
+ response: {
483
+ 200: {
484
+ id: string;
485
+ name: string;
486
+ createdAt: Date;
487
+ updatedAt: Date;
488
+ description: string | null;
489
+ key: string;
490
+ isGasAsset: boolean;
491
+ isActive: boolean;
492
+ };
493
+ 422: {
494
+ type: "validation";
495
+ on: string;
496
+ summary?: string;
497
+ message?: string;
498
+ found?: unknown;
499
+ property?: string;
500
+ expected?: string;
501
+ };
502
+ 401: "Unauthorized";
503
+ 403: "Forbidden: Admins only";
504
+ };
505
+ };
506
+ };
465
507
  } & {
466
508
  asset_types: {
467
509
  ":id": {
468
510
  patch: {
469
511
  body: {
512
+ name?: string | undefined;
470
513
  description?: string | null | undefined;
471
514
  isGasAsset?: boolean | undefined;
472
515
  isActive?: boolean | undefined;
473
- name: string;
474
516
  };
475
517
  params: {
476
518
  id: string;
@@ -479,15 +521,15 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
479
521
  headers: {};
480
522
  response: {
481
523
  200: {
482
- createdAt: Date;
483
- updatedAt: Date;
484
524
  id: string;
485
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
486
525
  name: string;
526
+ createdAt: Date;
527
+ updatedAt: Date;
487
528
  description: string | null;
529
+ key: string;
488
530
  isGasAsset: boolean;
489
531
  isActive: boolean;
490
- }[];
532
+ };
491
533
  422: {
492
534
  type: "validation";
493
535
  on: string;
@@ -520,11 +562,11 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
520
562
  emailVerified: boolean;
521
563
  name: string;
522
564
  image?: string | null | undefined | undefined;
523
- phoneNumber?: string | null | undefined;
524
- phoneNumberVerified?: boolean | null | undefined;
525
565
  twoFactorEnabled: boolean | null | undefined;
526
566
  username?: string | null | undefined;
527
567
  displayUsername?: string | null | undefined;
568
+ phoneNumber?: string | null | undefined;
569
+ phoneNumberVerified?: boolean | null | undefined;
528
570
  banned: boolean | null | undefined;
529
571
  role?: string | null | undefined;
530
572
  banReason?: string | null | undefined;
@@ -550,11 +592,11 @@ export declare const assetTypeAdminRouter: Elysia<"/asset_types", {
550
592
  emailVerified: boolean;
551
593
  name: string;
552
594
  image?: string | null | undefined | undefined;
553
- phoneNumber?: string | null | undefined;
554
- phoneNumberVerified?: boolean | null | undefined;
555
595
  twoFactorEnabled: boolean | null | undefined;
556
596
  username?: string | null | undefined;
557
597
  displayUsername?: string | null | undefined;
598
+ phoneNumber?: string | null | undefined;
599
+ phoneNumberVerified?: boolean | null | undefined;
558
600
  banned: boolean | null | undefined;
559
601
  role?: string | null | undefined;
560
602
  banReason?: string | null | undefined;
@@ -1,5 +1,5 @@
1
1
  import { BaseAssetTypeService } from "../internal/service";
2
- import type { AssetTypeAdminListQueryType, AssetTypeAdminUpdateInputType } from "./dto.schemas";
2
+ import type { AssetTypeAdminCreateInputType, AssetTypeAdminListQueryType, AssetTypeAdminUpdateInputType } from "./dto.schemas";
3
3
  export interface AssetTypeAdminListQueryOptions extends AssetTypeAdminListQueryType {
4
4
  }
5
5
  export declare abstract class AdminAssetTypeService extends BaseAssetTypeService {
@@ -10,7 +10,7 @@ export declare abstract class AdminAssetTypeService extends BaseAssetTypeService
10
10
  createdAt: Date;
11
11
  updatedAt: Date;
12
12
  description: string | null;
13
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
13
+ key: string;
14
14
  isGasAsset: boolean;
15
15
  isActive: boolean;
16
16
  }[];
@@ -22,18 +22,28 @@ export declare abstract class AdminAssetTypeService extends BaseAssetTypeService
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
- static updateAssetType(id: string, input: AssetTypeAdminUpdateInputType): Promise<{
29
+ static createAssetType(input: AssetTypeAdminCreateInputType): Promise<{
30
+ id: string;
31
+ name: string;
30
32
  createdAt: Date;
31
33
  updatedAt: Date;
34
+ description: string | null;
35
+ key: string;
36
+ isGasAsset: boolean;
37
+ isActive: boolean;
38
+ }>;
39
+ static updateAssetType(id: string, input: AssetTypeAdminUpdateInputType): Promise<{
32
40
  id: string;
33
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
34
41
  name: string;
42
+ createdAt: Date;
43
+ updatedAt: Date;
35
44
  description: string | null;
45
+ key: string;
36
46
  isGasAsset: boolean;
37
47
  isActive: boolean;
38
- }[]>;
48
+ }>;
39
49
  }
@@ -54,15 +54,15 @@ export declare const assetTypeSelectSchema: import("drizzle-typebox").BuildSchem
54
54
  name: "key";
55
55
  tableName: "asset_type";
56
56
  dataType: "string";
57
- columnType: "PgEnumColumn";
58
- data: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
57
+ columnType: "PgText";
58
+ data: string;
59
59
  driverParam: string;
60
60
  notNull: true;
61
61
  hasDefault: false;
62
62
  isPrimaryKey: false;
63
63
  isAutoincrement: false;
64
64
  hasRuntimeDefault: false;
65
- enumValues: ["FIAT_CURRENCY", "STABLE_COIN", "RWA_VIRTUAL_COIN"];
65
+ enumValues: [string, ...string[]];
66
66
  baseColumn: never;
67
67
  identity: undefined;
68
68
  generated: undefined;
@@ -193,15 +193,15 @@ export declare const assetTypeInsertSchema: import("drizzle-typebox").BuildSchem
193
193
  name: "key";
194
194
  tableName: "asset_type";
195
195
  dataType: "string";
196
- columnType: "PgEnumColumn";
197
- data: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
196
+ columnType: "PgText";
197
+ data: string;
198
198
  driverParam: string;
199
199
  notNull: true;
200
200
  hasDefault: false;
201
201
  isPrimaryKey: false;
202
202
  isAutoincrement: false;
203
203
  hasRuntimeDefault: false;
204
- enumValues: ["FIAT_CURRENCY", "STABLE_COIN", "RWA_VIRTUAL_COIN"];
204
+ enumValues: [string, ...string[]];
205
205
  baseColumn: never;
206
206
  identity: undefined;
207
207
  generated: undefined;
@@ -6,10 +6,16 @@ export declare const AssetTypeErrorCodes: {
6
6
  readonly ASSET_TYPE_KEY_REQUIRED: "ASSET_TYPE_KEY_REQUIRED";
7
7
  /** 资产类型 key 格式非法 */
8
8
  readonly ASSET_TYPE_KEY_FORMAT_INVALID: "ASSET_TYPE_KEY_FORMAT_INVALID";
9
+ /** 资产类型名称不能为空 */
10
+ readonly ASSET_TYPE_NAME_REQUIRED: "ASSET_TYPE_NAME_REQUIRED";
11
+ /** 资产类型 key 已存在 */
12
+ readonly ASSET_TYPE_KEY_ALREADY_EXISTS: "ASSET_TYPE_KEY_ALREADY_EXISTS";
9
13
  /** 资产类型 key 不允许修改 */
10
14
  readonly ASSET_TYPE_KEY_IMMUTABLE: "ASSET_TYPE_KEY_IMMUTABLE";
11
15
  /** 资产类型存在资产引用,禁止禁用 */
12
16
  readonly ASSET_TYPE_DISABLE_HAS_ASSETS: "ASSET_TYPE_DISABLE_HAS_ASSETS";
17
+ /** 创建资产类型失败 */
18
+ readonly ASSET_TYPE_CREATE_FAILED: "ASSET_TYPE_CREATE_FAILED";
13
19
  /** 更新资产类型失败 */
14
20
  readonly ASSET_TYPE_UPDATE_FAILED: "ASSET_TYPE_UPDATE_FAILED";
15
21
  };
@@ -2,8 +2,11 @@ export declare const zh: {
2
2
  ASSET_TYPE_NOT_FOUND: string;
3
3
  ASSET_TYPE_KEY_REQUIRED: string;
4
4
  ASSET_TYPE_KEY_FORMAT_INVALID: string;
5
+ ASSET_TYPE_NAME_REQUIRED: string;
6
+ ASSET_TYPE_KEY_ALREADY_EXISTS: string;
5
7
  ASSET_TYPE_KEY_IMMUTABLE: string;
6
8
  ASSET_TYPE_DISABLE_HAS_ASSETS: string;
9
+ ASSET_TYPE_CREATE_FAILED: string;
7
10
  ASSET_TYPE_UPDATE_FAILED: string;
8
11
  };
9
12
  type ZHType = typeof zh;