@r2wa-org/eden 0.0.66 → 0.0.68

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.
@@ -1082,8 +1082,6 @@ declare const app: Elysia<"/api", {
1082
1082
  id?: string | undefined;
1083
1083
  baseAssetId?: string | undefined;
1084
1084
  baseAsset?: string | undefined;
1085
- quoteAssetId?: string | undefined;
1086
- quoteAsset?: string | undefined;
1087
1085
  source?: string | undefined;
1088
1086
  startDate?: Date | undefined;
1089
1087
  limit?: number | undefined;
@@ -1103,21 +1101,10 @@ declare const app: Elysia<"/api", {
1103
1101
  updatedAt: Date;
1104
1102
  baseAssetId: string;
1105
1103
  baseAsset: string;
1106
- quoteAssetId: string;
1107
- quoteAsset: string;
1108
1104
  price: string;
1109
1105
  source: string;
1110
1106
  effectiveAt: Date;
1111
- baseAssetInfo: {
1112
- symbol: string;
1113
- id: string;
1114
- name: string;
1115
- code: string;
1116
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1117
- isActive: boolean;
1118
- precision: number;
1119
- };
1120
- quoteAssetInfo: {
1107
+ baseAssetEntity: {
1121
1108
  symbol: string;
1122
1109
  id: string;
1123
1110
  name: string;
@@ -1153,58 +1140,44 @@ declare const app: Elysia<"/api", {
1153
1140
  asset_prices: {
1154
1141
  latest: {
1155
1142
  ":baseAsset": {
1156
- ":quoteAsset": {
1157
- get: {
1158
- body: {};
1159
- params: {
1143
+ get: {
1144
+ body: {};
1145
+ params: {
1146
+ baseAsset: string;
1147
+ };
1148
+ query: {};
1149
+ headers: {};
1150
+ response: {
1151
+ 200: {
1152
+ id: string;
1153
+ createdAt: Date;
1154
+ updatedAt: Date;
1155
+ baseAssetId: string;
1160
1156
  baseAsset: string;
1161
- quoteAsset: string;
1162
- };
1163
- query: {};
1164
- headers: {};
1165
- response: {
1166
- 200: {
1157
+ price: string;
1158
+ source: string;
1159
+ effectiveAt: Date;
1160
+ baseAssetEntity: {
1161
+ symbol: string;
1167
1162
  id: string;
1168
- createdAt: Date;
1169
- updatedAt: Date;
1170
- baseAssetId: string;
1171
- baseAsset: string;
1172
- quoteAssetId: string;
1173
- quoteAsset: string;
1174
- price: string;
1175
- source: string;
1176
- effectiveAt: Date;
1177
- baseAssetInfo: {
1178
- symbol: string;
1179
- id: string;
1180
- name: string;
1181
- code: string;
1182
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1183
- isActive: boolean;
1184
- precision: number;
1185
- };
1186
- quoteAssetInfo: {
1187
- symbol: string;
1188
- id: string;
1189
- name: string;
1190
- code: string;
1191
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1192
- isActive: boolean;
1193
- precision: number;
1194
- };
1195
- };
1196
- 422: {
1197
- type: "validation";
1198
- on: string;
1199
- summary?: string;
1200
- message?: string;
1201
- found?: unknown;
1202
- property?: string;
1203
- expected?: string;
1163
+ name: string;
1164
+ code: string;
1165
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1166
+ isActive: boolean;
1167
+ precision: number;
1204
1168
  };
1205
- 401: "Unauthorized";
1206
- 403: "Forbidden: Admins only";
1207
1169
  };
1170
+ 422: {
1171
+ type: "validation";
1172
+ on: string;
1173
+ summary?: string;
1174
+ message?: string;
1175
+ found?: unknown;
1176
+ property?: string;
1177
+ expected?: string;
1178
+ };
1179
+ 401: "Unauthorized";
1180
+ 403: "Forbidden: Admins only";
1208
1181
  };
1209
1182
  };
1210
1183
  };
@@ -1227,21 +1200,10 @@ declare const app: Elysia<"/api", {
1227
1200
  updatedAt: Date;
1228
1201
  baseAssetId: string;
1229
1202
  baseAsset: string;
1230
- quoteAssetId: string;
1231
- quoteAsset: string;
1232
1203
  price: string;
1233
1204
  source: string;
1234
1205
  effectiveAt: Date;
1235
- baseAssetInfo: {
1236
- symbol: string;
1237
- id: string;
1238
- name: string;
1239
- code: string;
1240
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1241
- isActive: boolean;
1242
- precision: number;
1243
- };
1244
- quoteAssetInfo: {
1206
+ baseAssetEntity: {
1245
1207
  symbol: string;
1246
1208
  id: string;
1247
1209
  name: string;
@@ -1270,10 +1232,9 @@ declare const app: Elysia<"/api", {
1270
1232
  asset_prices: {
1271
1233
  post: {
1272
1234
  body: {
1235
+ source?: string | undefined;
1273
1236
  baseAsset: string;
1274
- quoteAsset: string;
1275
1237
  price: string;
1276
- source: string;
1277
1238
  effectiveAt: Date;
1278
1239
  };
1279
1240
  params: {};
@@ -1286,21 +1247,10 @@ declare const app: Elysia<"/api", {
1286
1247
  updatedAt: Date;
1287
1248
  baseAssetId: string;
1288
1249
  baseAsset: string;
1289
- quoteAssetId: string;
1290
- quoteAsset: string;
1291
1250
  price: string;
1292
1251
  source: string;
1293
1252
  effectiveAt: Date;
1294
- baseAssetInfo: {
1295
- symbol: string;
1296
- id: string;
1297
- name: string;
1298
- code: string;
1299
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1300
- isActive: boolean;
1301
- precision: number;
1302
- };
1303
- quoteAssetInfo: {
1253
+ baseAssetEntity: {
1304
1254
  symbol: string;
1305
1255
  id: string;
1306
1256
  name: string;
@@ -3069,6 +3019,15 @@ declare const app: Elysia<"/api", {
3069
3019
  response: {
3070
3020
  200: {
3071
3021
  data: {
3022
+ user: {
3023
+ email: string;
3024
+ id: string;
3025
+ username: string | null;
3026
+ displayUsername: string | null;
3027
+ phoneNumber: string | null;
3028
+ role: string | null;
3029
+ banned: boolean | null;
3030
+ };
3072
3031
  id: string;
3073
3032
  name: string;
3074
3033
  createdAt: Date;
@@ -3087,15 +3046,6 @@ declare const app: Elysia<"/api", {
3087
3046
  sortOrder: number;
3088
3047
  isSingleton: boolean;
3089
3048
  };
3090
- userInfo: {
3091
- email: string;
3092
- id: string;
3093
- username: string | null;
3094
- displayUsername: string | null;
3095
- phoneNumber: string | null;
3096
- role: string | null;
3097
- banned: boolean | null;
3098
- };
3099
3049
  }[];
3100
3050
  pagination: {
3101
3051
  total: number;
@@ -3131,6 +3081,15 @@ declare const app: Elysia<"/api", {
3131
3081
  headers: {};
3132
3082
  response: {
3133
3083
  200: {
3084
+ user: {
3085
+ email: string;
3086
+ id: string;
3087
+ username: string | null;
3088
+ displayUsername: string | null;
3089
+ phoneNumber: string | null;
3090
+ role: string | null;
3091
+ banned: boolean | null;
3092
+ };
3134
3093
  id: string;
3135
3094
  name: string;
3136
3095
  createdAt: Date;
@@ -3149,15 +3108,6 @@ declare const app: Elysia<"/api", {
3149
3108
  sortOrder: number;
3150
3109
  isSingleton: boolean;
3151
3110
  };
3152
- userInfo: {
3153
- email: string;
3154
- id: string;
3155
- username: string | null;
3156
- displayUsername: string | null;
3157
- phoneNumber: string | null;
3158
- role: string | null;
3159
- banned: boolean | null;
3160
- };
3161
3111
  };
3162
3112
  422: {
3163
3113
  type: "validation";
@@ -9711,7 +9661,6 @@ declare const app: Elysia<"/api", {
9711
9661
  pageIndex?: number | undefined;
9712
9662
  endDate?: Date | undefined;
9713
9663
  baseAsset: string;
9714
- quoteAsset: string;
9715
9664
  };
9716
9665
  headers: {};
9717
9666
  response: {
@@ -9722,8 +9671,6 @@ declare const app: Elysia<"/api", {
9722
9671
  updatedAt: Date;
9723
9672
  baseAssetId: string;
9724
9673
  baseAsset: string;
9725
- quoteAssetId: string;
9726
- quoteAsset: string;
9727
9674
  price: string;
9728
9675
  source: string;
9729
9676
  effectiveAt: Date;
@@ -9749,84 +9696,38 @@ declare const app: Elysia<"/api", {
9749
9696
  };
9750
9697
  };
9751
9698
  };
9752
- } & {
9753
- asset_prices: {
9754
- latest: {
9755
- cny: {
9756
- ":baseAsset": {
9757
- get: {
9758
- body: {};
9759
- params: {
9760
- baseAsset: string;
9761
- };
9762
- query: {};
9763
- headers: {};
9764
- response: {
9765
- 200: {
9766
- id: string;
9767
- createdAt: Date;
9768
- updatedAt: Date;
9769
- baseAssetId: string;
9770
- baseAsset: string;
9771
- quoteAssetId: string;
9772
- quoteAsset: string;
9773
- price: string;
9774
- source: string;
9775
- effectiveAt: Date;
9776
- };
9777
- 422: {
9778
- type: "validation";
9779
- on: string;
9780
- summary?: string;
9781
- message?: string;
9782
- found?: unknown;
9783
- property?: string;
9784
- expected?: string;
9785
- };
9786
- 401: "Unauthorized";
9787
- };
9788
- };
9789
- };
9790
- };
9791
- };
9792
- };
9793
9699
  } & {
9794
9700
  asset_prices: {
9795
9701
  latest: {
9796
9702
  ":baseAsset": {
9797
- ":quoteAsset": {
9798
- get: {
9799
- body: {};
9800
- params: {
9703
+ get: {
9704
+ body: {};
9705
+ params: {
9706
+ baseAsset: string;
9707
+ };
9708
+ query: {};
9709
+ headers: {};
9710
+ response: {
9711
+ 200: {
9712
+ id: string;
9713
+ createdAt: Date;
9714
+ updatedAt: Date;
9715
+ baseAssetId: string;
9801
9716
  baseAsset: string;
9802
- quoteAsset: string;
9717
+ price: string;
9718
+ source: string;
9719
+ effectiveAt: Date;
9803
9720
  };
9804
- query: {};
9805
- headers: {};
9806
- response: {
9807
- 200: {
9808
- id: string;
9809
- createdAt: Date;
9810
- updatedAt: Date;
9811
- baseAssetId: string;
9812
- baseAsset: string;
9813
- quoteAssetId: string;
9814
- quoteAsset: string;
9815
- price: string;
9816
- source: string;
9817
- effectiveAt: Date;
9818
- };
9819
- 422: {
9820
- type: "validation";
9821
- on: string;
9822
- summary?: string;
9823
- message?: string;
9824
- found?: unknown;
9825
- property?: string;
9826
- expected?: string;
9827
- };
9828
- 401: "Unauthorized";
9721
+ 422: {
9722
+ type: "validation";
9723
+ on: string;
9724
+ summary?: string;
9725
+ message?: string;
9726
+ found?: unknown;
9727
+ property?: string;
9728
+ expected?: string;
9829
9729
  };
9730
+ 401: "Unauthorized";
9830
9731
  };
9831
9732
  };
9832
9733
  };
@@ -20,6 +20,15 @@ export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObj
20
20
  userId: import("@sinclair/typebox").TString;
21
21
  walletTypeId: import("@sinclair/typebox").TString;
22
22
  isPrimary: import("@sinclair/typebox").TBoolean;
23
+ user: import("@sinclair/typebox").TObject<{
24
+ email: import("@sinclair/typebox").TString;
25
+ id: import("@sinclair/typebox").TString;
26
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
27
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
28
+ phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
29
+ role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
30
+ banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
31
+ }>;
23
32
  walletType: import("drizzle-typebox").BuildSchema<"select", {
24
33
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
25
34
  name: "created_at";
@@ -158,15 +167,6 @@ export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObj
158
167
  generated: undefined;
159
168
  }, {}, {}>;
160
169
  }, undefined>;
161
- userInfo: import("@sinclair/typebox").TObject<{
162
- email: import("@sinclair/typebox").TString;
163
- id: import("@sinclair/typebox").TString;
164
- username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
165
- displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
166
- phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
167
- role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
168
- banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
169
- }>;
170
170
  }>;
171
171
  export type WalletAdminResponseType = typeof walletAdminResponseSchema.static;
172
172
  export declare const walletAdminListQuerySchema: import("@sinclair/typebox").TObject<{
@@ -190,6 +190,15 @@ export declare const walletAdminListResponseSchema: import("@sinclair/typebox").
190
190
  userId: import("@sinclair/typebox").TString;
191
191
  walletTypeId: import("@sinclair/typebox").TString;
192
192
  isPrimary: import("@sinclair/typebox").TBoolean;
193
+ user: import("@sinclair/typebox").TObject<{
194
+ email: import("@sinclair/typebox").TString;
195
+ id: import("@sinclair/typebox").TString;
196
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
197
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
198
+ phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
199
+ role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
200
+ banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
201
+ }>;
193
202
  walletType: import("drizzle-typebox").BuildSchema<"select", {
194
203
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
195
204
  name: "created_at";
@@ -328,15 +337,6 @@ export declare const walletAdminListResponseSchema: import("@sinclair/typebox").
328
337
  generated: undefined;
329
338
  }, {}, {}>;
330
339
  }, undefined>;
331
- userInfo: import("@sinclair/typebox").TObject<{
332
- email: import("@sinclair/typebox").TString;
333
- id: import("@sinclair/typebox").TString;
334
- username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
335
- displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
336
- phoneNumber: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
337
- role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
338
- banned: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
339
- }>;
340
340
  }>>;
341
341
  pagination: import("@sinclair/typebox").TObject<{
342
342
  pageSize: import("@sinclair/typebox").TNumber;
@@ -398,6 +398,15 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
398
398
  response: {
399
399
  200: {
400
400
  data: {
401
+ user: {
402
+ email: string;
403
+ id: string;
404
+ username: string | null;
405
+ displayUsername: string | null;
406
+ phoneNumber: string | null;
407
+ role: string | null;
408
+ banned: boolean | null;
409
+ };
401
410
  id: string;
402
411
  name: string;
403
412
  createdAt: Date;
@@ -416,15 +425,6 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
416
425
  sortOrder: number;
417
426
  isSingleton: boolean;
418
427
  };
419
- userInfo: {
420
- email: string;
421
- id: string;
422
- username: string | null;
423
- displayUsername: string | null;
424
- phoneNumber: string | null;
425
- role: string | null;
426
- banned: boolean | null;
427
- };
428
428
  }[];
429
429
  pagination: {
430
430
  total: number;
@@ -460,6 +460,15 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
460
460
  headers: {};
461
461
  response: {
462
462
  200: {
463
+ user: {
464
+ email: string;
465
+ id: string;
466
+ username: string | null;
467
+ displayUsername: string | null;
468
+ phoneNumber: string | null;
469
+ role: string | null;
470
+ banned: boolean | null;
471
+ };
463
472
  id: string;
464
473
  name: string;
465
474
  createdAt: Date;
@@ -478,15 +487,6 @@ export declare const walletAdminRouter: Elysia<"/wallets", {
478
487
  sortOrder: number;
479
488
  isSingleton: boolean;
480
489
  };
481
- userInfo: {
482
- email: string;
483
- id: string;
484
- username: string | null;
485
- displayUsername: string | null;
486
- phoneNumber: string | null;
487
- role: string | null;
488
- banned: boolean | null;
489
- };
490
490
  };
491
491
  422: {
492
492
  type: "validation";
@@ -3,7 +3,7 @@ import type { WalletAdminListQueryType } from "./dto.schemas";
3
3
  export declare abstract class AdminWalletService extends InternalWalletService {
4
4
  static listWallets(options?: WalletAdminListQueryType): Promise<{
5
5
  items: {
6
- userInfo: {
6
+ user: {
7
7
  id: string;
8
8
  username: string | null;
9
9
  displayUsername: string | null;
@@ -34,7 +34,7 @@ export declare abstract class AdminWalletService extends InternalWalletService {
34
34
  total: number;
35
35
  }>;
36
36
  static getWalletById(walletId: string): Promise<{
37
- userInfo: {
37
+ user: {
38
38
  id: string;
39
39
  username: string | null;
40
40
  displayUsername: string | null;
@@ -30,7 +30,7 @@ declare abstract class BaseWalletService {
30
30
  banned: boolean | null;
31
31
  };
32
32
  }): {
33
- userInfo: {
33
+ user: {
34
34
  id: string;
35
35
  username: string | null;
36
36
  displayUsername: string | null;
@@ -60,7 +60,7 @@ declare abstract class BaseWalletService {
60
60
  };
61
61
  protected static listWalletsInternal(options?: WalletAdminListQueryType, defaultToCurrentUserId?: string): Promise<{
62
62
  items: {
63
- userInfo: {
63
+ user: {
64
64
  id: string;
65
65
  username: string | null;
66
66
  displayUsername: string | null;
@@ -113,7 +113,7 @@ export declare abstract class InternalWalletService extends BaseWalletService {
113
113
  };
114
114
  }>;
115
115
  static getWalletByIdInternal(walletId: string): Promise<{
116
- userInfo: {
116
+ user: {
117
117
  id: string;
118
118
  username: string | null;
119
119
  displayUsername: string | null;
@@ -143,7 +143,7 @@ export declare abstract class InternalWalletService extends BaseWalletService {
143
143
  }>;
144
144
  static listWalletsForInternal(options?: WalletAdminListQueryType): Promise<{
145
145
  items: {
146
- userInfo: {
146
+ user: {
147
147
  id: string;
148
148
  username: string | null;
149
149
  displayUsername: string | null;
@@ -3,7 +3,7 @@ import type { WalletDetailParamsType, WalletListQueryType, WalletOverviewQueryTy
3
3
  export declare abstract class UserWalletService extends InternalWalletService {
4
4
  static listWallets(userId: string, options?: Omit<WalletListQueryType, "userId">): Promise<{
5
5
  items: {
6
- userInfo: {
6
+ user: {
7
7
  id: string;
8
8
  username: string | null;
9
9
  displayUsername: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2wa-org/eden",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "files": [