@r2wa-org/eden 0.0.67 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/admin/index.d.ts +32 -22
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +5 -0
- package/dist/src/asset-convert-product/admin/router.d.ts +10 -0
- package/dist/src/asset-convert-product/admin/service.d.ts +7 -0
- package/dist/src/asset-convert-product/db.schemas.d.ts +34 -0
- package/dist/src/asset-convert-product/errors/index.d.ts +1 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +1 -0
- package/dist/src/asset-convert-product/schema.d.ts +17 -0
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +3 -0
- package/dist/src/asset-convert-product/user/router.d.ts +2 -0
- package/dist/src/asset-convert-product/user/service.d.ts +4 -0
- package/dist/src/asset-price/admin/dto.schemas.d.ts +2 -2
- package/dist/src/asset-price/admin/router.d.ts +4 -4
- package/dist/src/asset-price/admin/service.d.ts +4 -4
- package/dist/src/index.d.ts +34 -22
- package/dist/src/wallet/admin/dto.schemas.d.ts +18 -18
- package/dist/src/wallet/admin/router.d.ts +18 -18
- package/dist/src/wallet/admin/service.d.ts +2 -2
- package/dist/src/wallet/internal/service.d.ts +4 -4
- package/dist/src/wallet/user/service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -781,7 +781,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
781
781
|
price: string;
|
|
782
782
|
source: string;
|
|
783
783
|
effectiveAt: Date;
|
|
784
|
-
|
|
784
|
+
baseAssetEntity: {
|
|
785
785
|
symbol: string;
|
|
786
786
|
id: string;
|
|
787
787
|
name: string;
|
|
@@ -834,7 +834,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
834
834
|
price: string;
|
|
835
835
|
source: string;
|
|
836
836
|
effectiveAt: Date;
|
|
837
|
-
|
|
837
|
+
baseAssetEntity: {
|
|
838
838
|
symbol: string;
|
|
839
839
|
id: string;
|
|
840
840
|
name: string;
|
|
@@ -880,7 +880,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
880
880
|
price: string;
|
|
881
881
|
source: string;
|
|
882
882
|
effectiveAt: Date;
|
|
883
|
-
|
|
883
|
+
baseAssetEntity: {
|
|
884
884
|
symbol: string;
|
|
885
885
|
id: string;
|
|
886
886
|
name: string;
|
|
@@ -927,7 +927,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
927
927
|
price: string;
|
|
928
928
|
source: string;
|
|
929
929
|
effectiveAt: Date;
|
|
930
|
-
|
|
930
|
+
baseAssetEntity: {
|
|
931
931
|
symbol: string;
|
|
932
932
|
id: string;
|
|
933
933
|
name: string;
|
|
@@ -1277,6 +1277,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1277
1277
|
body: {
|
|
1278
1278
|
description?: string | null | undefined;
|
|
1279
1279
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1280
|
+
allowPurchase?: boolean | undefined;
|
|
1280
1281
|
name: string;
|
|
1281
1282
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1282
1283
|
targetAssetId: string;
|
|
@@ -1304,6 +1305,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1304
1305
|
receiveAccountTypeId: string;
|
|
1305
1306
|
minPayAmount: string;
|
|
1306
1307
|
settlementMode: "available" | "locked";
|
|
1308
|
+
allowPurchase: boolean;
|
|
1307
1309
|
targetAsset: {
|
|
1308
1310
|
symbol: string;
|
|
1309
1311
|
id: string;
|
|
@@ -1364,6 +1366,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1364
1366
|
receiveAccountTypeId?: string | undefined;
|
|
1365
1367
|
minPayAmount?: string | undefined;
|
|
1366
1368
|
settlementMode?: "available" | "locked" | undefined;
|
|
1369
|
+
allowPurchase?: boolean | undefined;
|
|
1367
1370
|
};
|
|
1368
1371
|
params: {
|
|
1369
1372
|
id: string;
|
|
@@ -1385,6 +1388,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1385
1388
|
receiveAccountTypeId: string;
|
|
1386
1389
|
minPayAmount: string;
|
|
1387
1390
|
settlementMode: "available" | "locked";
|
|
1391
|
+
allowPurchase: boolean;
|
|
1388
1392
|
targetAsset: {
|
|
1389
1393
|
symbol: string;
|
|
1390
1394
|
id: string;
|
|
@@ -1457,6 +1461,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1457
1461
|
receiveAccountTypeId: string;
|
|
1458
1462
|
minPayAmount: string;
|
|
1459
1463
|
settlementMode: "available" | "locked";
|
|
1464
|
+
allowPurchase: boolean;
|
|
1460
1465
|
targetAsset: {
|
|
1461
1466
|
symbol: string;
|
|
1462
1467
|
id: string;
|
|
@@ -1530,6 +1535,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1530
1535
|
receiveAccountTypeId: string;
|
|
1531
1536
|
minPayAmount: string;
|
|
1532
1537
|
settlementMode: "available" | "locked";
|
|
1538
|
+
allowPurchase: boolean;
|
|
1533
1539
|
targetAsset: {
|
|
1534
1540
|
symbol: string;
|
|
1535
1541
|
id: string;
|
|
@@ -1603,6 +1609,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1603
1609
|
receiveAccountTypeId: string;
|
|
1604
1610
|
minPayAmount: string;
|
|
1605
1611
|
settlementMode: "available" | "locked";
|
|
1612
|
+
allowPurchase: boolean;
|
|
1606
1613
|
targetAsset: {
|
|
1607
1614
|
symbol: string;
|
|
1608
1615
|
id: string;
|
|
@@ -1675,6 +1682,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1675
1682
|
receiveAccountTypeId: string;
|
|
1676
1683
|
minPayAmount: string;
|
|
1677
1684
|
settlementMode: "available" | "locked";
|
|
1685
|
+
allowPurchase: boolean;
|
|
1678
1686
|
targetAsset: {
|
|
1679
1687
|
symbol: string;
|
|
1680
1688
|
id: string;
|
|
@@ -1736,6 +1744,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1736
1744
|
payAccountTypeId?: string | undefined;
|
|
1737
1745
|
receiveAccountTypeId?: string | undefined;
|
|
1738
1746
|
settlementMode?: "available" | "locked" | undefined;
|
|
1747
|
+
allowPurchase?: boolean | undefined;
|
|
1739
1748
|
limit?: number | undefined;
|
|
1740
1749
|
offset?: number | undefined;
|
|
1741
1750
|
pageSize?: number | undefined;
|
|
@@ -1762,6 +1771,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1762
1771
|
receiveAccountTypeId: string;
|
|
1763
1772
|
minPayAmount: string;
|
|
1764
1773
|
settlementMode: "available" | "locked";
|
|
1774
|
+
allowPurchase: boolean;
|
|
1765
1775
|
targetAsset: {
|
|
1766
1776
|
symbol: string;
|
|
1767
1777
|
id: string;
|
|
@@ -2696,6 +2706,15 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2696
2706
|
response: {
|
|
2697
2707
|
200: {
|
|
2698
2708
|
data: {
|
|
2709
|
+
user: {
|
|
2710
|
+
email: string;
|
|
2711
|
+
id: string;
|
|
2712
|
+
username: string | null;
|
|
2713
|
+
displayUsername: string | null;
|
|
2714
|
+
phoneNumber: string | null;
|
|
2715
|
+
role: string | null;
|
|
2716
|
+
banned: boolean | null;
|
|
2717
|
+
};
|
|
2699
2718
|
id: string;
|
|
2700
2719
|
name: string;
|
|
2701
2720
|
createdAt: Date;
|
|
@@ -2714,15 +2733,6 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2714
2733
|
sortOrder: number;
|
|
2715
2734
|
isSingleton: boolean;
|
|
2716
2735
|
};
|
|
2717
|
-
userInfo: {
|
|
2718
|
-
email: string;
|
|
2719
|
-
id: string;
|
|
2720
|
-
username: string | null;
|
|
2721
|
-
displayUsername: string | null;
|
|
2722
|
-
phoneNumber: string | null;
|
|
2723
|
-
role: string | null;
|
|
2724
|
-
banned: boolean | null;
|
|
2725
|
-
};
|
|
2726
2736
|
}[];
|
|
2727
2737
|
pagination: {
|
|
2728
2738
|
total: number;
|
|
@@ -2758,6 +2768,15 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2758
2768
|
headers: {};
|
|
2759
2769
|
response: {
|
|
2760
2770
|
200: {
|
|
2771
|
+
user: {
|
|
2772
|
+
email: string;
|
|
2773
|
+
id: string;
|
|
2774
|
+
username: string | null;
|
|
2775
|
+
displayUsername: string | null;
|
|
2776
|
+
phoneNumber: string | null;
|
|
2777
|
+
role: string | null;
|
|
2778
|
+
banned: boolean | null;
|
|
2779
|
+
};
|
|
2761
2780
|
id: string;
|
|
2762
2781
|
name: string;
|
|
2763
2782
|
createdAt: Date;
|
|
@@ -2776,15 +2795,6 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2776
2795
|
sortOrder: number;
|
|
2777
2796
|
isSingleton: boolean;
|
|
2778
2797
|
};
|
|
2779
|
-
userInfo: {
|
|
2780
|
-
email: string;
|
|
2781
|
-
id: string;
|
|
2782
|
-
username: string | null;
|
|
2783
|
-
displayUsername: string | null;
|
|
2784
|
-
phoneNumber: string | null;
|
|
2785
|
-
role: string | null;
|
|
2786
|
-
banned: boolean | null;
|
|
2787
|
-
};
|
|
2788
2798
|
};
|
|
2789
2799
|
422: {
|
|
2790
2800
|
type: "validation";
|
|
@@ -53,6 +53,7 @@ export declare const assetConvertProductAdminResponseSchema: import("@sinclair/t
|
|
|
53
53
|
available: "available";
|
|
54
54
|
locked: "locked";
|
|
55
55
|
}>;
|
|
56
|
+
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
56
57
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
57
58
|
symbol: import("@sinclair/typebox").TString;
|
|
58
59
|
id: import("@sinclair/typebox").TString;
|
|
@@ -260,6 +261,7 @@ export declare const assetConvertProductCreateSchema: import("@sinclair/typebox"
|
|
|
260
261
|
paused: "paused";
|
|
261
262
|
ended: "ended";
|
|
262
263
|
}>>;
|
|
264
|
+
allowPurchase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
263
265
|
}>;
|
|
264
266
|
export type AssetConvertProductCreateInputType = typeof assetConvertProductCreateSchema.static;
|
|
265
267
|
export declare const assetConvertProductUpdateSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -286,6 +288,7 @@ export declare const assetConvertProductUpdateSchema: import("@sinclair/typebox"
|
|
|
286
288
|
paused: "paused";
|
|
287
289
|
ended: "ended";
|
|
288
290
|
}>>;
|
|
291
|
+
allowPurchase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
289
292
|
}>;
|
|
290
293
|
export type AssetConvertProductUpdateInputType = typeof assetConvertProductUpdateSchema.static;
|
|
291
294
|
export declare const assetConvertProductListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
@@ -311,6 +314,7 @@ export declare const assetConvertProductListQuerySchema: import("@sinclair/typeb
|
|
|
311
314
|
available: "available";
|
|
312
315
|
locked: "locked";
|
|
313
316
|
}>>;
|
|
317
|
+
allowPurchase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
314
318
|
createdAtStart: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
|
|
315
319
|
createdAtEnd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
|
|
316
320
|
updatedAtStart: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
|
|
@@ -349,6 +353,7 @@ export declare const assetConvertProductListResponseSchema: import("@sinclair/ty
|
|
|
349
353
|
available: "available";
|
|
350
354
|
locked: "locked";
|
|
351
355
|
}>;
|
|
356
|
+
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
352
357
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
353
358
|
symbol: import("@sinclair/typebox").TString;
|
|
354
359
|
id: import("@sinclair/typebox").TString;
|
|
@@ -386,6 +386,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
386
386
|
body: {
|
|
387
387
|
description?: string | null | undefined;
|
|
388
388
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
389
|
+
allowPurchase?: boolean | undefined;
|
|
389
390
|
name: string;
|
|
390
391
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
391
392
|
targetAssetId: string;
|
|
@@ -413,6 +414,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
413
414
|
receiveAccountTypeId: string;
|
|
414
415
|
minPayAmount: string;
|
|
415
416
|
settlementMode: "available" | "locked";
|
|
417
|
+
allowPurchase: boolean;
|
|
416
418
|
targetAsset: {
|
|
417
419
|
symbol: string;
|
|
418
420
|
id: string;
|
|
@@ -473,6 +475,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
473
475
|
receiveAccountTypeId?: string | undefined;
|
|
474
476
|
minPayAmount?: string | undefined;
|
|
475
477
|
settlementMode?: "available" | "locked" | undefined;
|
|
478
|
+
allowPurchase?: boolean | undefined;
|
|
476
479
|
};
|
|
477
480
|
params: {
|
|
478
481
|
id: string;
|
|
@@ -494,6 +497,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
494
497
|
receiveAccountTypeId: string;
|
|
495
498
|
minPayAmount: string;
|
|
496
499
|
settlementMode: "available" | "locked";
|
|
500
|
+
allowPurchase: boolean;
|
|
497
501
|
targetAsset: {
|
|
498
502
|
symbol: string;
|
|
499
503
|
id: string;
|
|
@@ -566,6 +570,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
566
570
|
receiveAccountTypeId: string;
|
|
567
571
|
minPayAmount: string;
|
|
568
572
|
settlementMode: "available" | "locked";
|
|
573
|
+
allowPurchase: boolean;
|
|
569
574
|
targetAsset: {
|
|
570
575
|
symbol: string;
|
|
571
576
|
id: string;
|
|
@@ -639,6 +644,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
639
644
|
receiveAccountTypeId: string;
|
|
640
645
|
minPayAmount: string;
|
|
641
646
|
settlementMode: "available" | "locked";
|
|
647
|
+
allowPurchase: boolean;
|
|
642
648
|
targetAsset: {
|
|
643
649
|
symbol: string;
|
|
644
650
|
id: string;
|
|
@@ -712,6 +718,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
712
718
|
receiveAccountTypeId: string;
|
|
713
719
|
minPayAmount: string;
|
|
714
720
|
settlementMode: "available" | "locked";
|
|
721
|
+
allowPurchase: boolean;
|
|
715
722
|
targetAsset: {
|
|
716
723
|
symbol: string;
|
|
717
724
|
id: string;
|
|
@@ -784,6 +791,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
784
791
|
receiveAccountTypeId: string;
|
|
785
792
|
minPayAmount: string;
|
|
786
793
|
settlementMode: "available" | "locked";
|
|
794
|
+
allowPurchase: boolean;
|
|
787
795
|
targetAsset: {
|
|
788
796
|
symbol: string;
|
|
789
797
|
id: string;
|
|
@@ -845,6 +853,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
845
853
|
payAccountTypeId?: string | undefined;
|
|
846
854
|
receiveAccountTypeId?: string | undefined;
|
|
847
855
|
settlementMode?: "available" | "locked" | undefined;
|
|
856
|
+
allowPurchase?: boolean | undefined;
|
|
848
857
|
limit?: number | undefined;
|
|
849
858
|
offset?: number | undefined;
|
|
850
859
|
pageSize?: number | undefined;
|
|
@@ -871,6 +880,7 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
871
880
|
receiveAccountTypeId: string;
|
|
872
881
|
minPayAmount: string;
|
|
873
882
|
settlementMode: "available" | "locked";
|
|
883
|
+
allowPurchase: boolean;
|
|
874
884
|
targetAsset: {
|
|
875
885
|
symbol: string;
|
|
876
886
|
id: string;
|
|
@@ -97,6 +97,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
97
97
|
receiveAccountTypeId: string;
|
|
98
98
|
minPayAmount: string;
|
|
99
99
|
settlementMode: "available" | "locked";
|
|
100
|
+
allowPurchase: boolean;
|
|
100
101
|
}>;
|
|
101
102
|
static updateProduct(productId: string, input: AssetConvertProductUpdateInputType): Promise<{
|
|
102
103
|
id: string;
|
|
@@ -112,6 +113,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
112
113
|
receiveAccountTypeId: string;
|
|
113
114
|
minPayAmount: string;
|
|
114
115
|
settlementMode: "available" | "locked";
|
|
116
|
+
allowPurchase: boolean;
|
|
115
117
|
targetAsset: {
|
|
116
118
|
symbol: string;
|
|
117
119
|
id: string;
|
|
@@ -155,6 +157,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
155
157
|
receiveAccountTypeId: string;
|
|
156
158
|
minPayAmount: string;
|
|
157
159
|
settlementMode: "available" | "locked";
|
|
160
|
+
allowPurchase: boolean;
|
|
158
161
|
targetAsset: {
|
|
159
162
|
symbol: string;
|
|
160
163
|
id: string;
|
|
@@ -198,6 +201,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
198
201
|
receiveAccountTypeId: string;
|
|
199
202
|
minPayAmount: string;
|
|
200
203
|
settlementMode: "available" | "locked";
|
|
204
|
+
allowPurchase: boolean;
|
|
201
205
|
targetAsset: {
|
|
202
206
|
symbol: string;
|
|
203
207
|
id: string;
|
|
@@ -241,6 +245,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
241
245
|
receiveAccountTypeId: string;
|
|
242
246
|
minPayAmount: string;
|
|
243
247
|
settlementMode: "available" | "locked";
|
|
248
|
+
allowPurchase: boolean;
|
|
244
249
|
targetAsset: {
|
|
245
250
|
symbol: string;
|
|
246
251
|
id: string;
|
|
@@ -284,6 +289,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
284
289
|
receiveAccountTypeId: string;
|
|
285
290
|
minPayAmount: string;
|
|
286
291
|
settlementMode: "available" | "locked";
|
|
292
|
+
allowPurchase: boolean;
|
|
287
293
|
targetAsset: {
|
|
288
294
|
symbol: string;
|
|
289
295
|
id: string;
|
|
@@ -328,6 +334,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
328
334
|
receiveAccountTypeId: string;
|
|
329
335
|
minPayAmount: string;
|
|
330
336
|
settlementMode: "available" | "locked";
|
|
337
|
+
allowPurchase: boolean;
|
|
331
338
|
targetAsset: {
|
|
332
339
|
symbol: string;
|
|
333
340
|
id: string;
|
|
@@ -220,6 +220,23 @@ export declare const assetConvertProductSelectSchema: import("drizzle-typebox").
|
|
|
220
220
|
identity: undefined;
|
|
221
221
|
generated: undefined;
|
|
222
222
|
}, {}, {}>;
|
|
223
|
+
allowPurchase: import("drizzle-orm/pg-core").PgColumn<{
|
|
224
|
+
name: "allow_purchase";
|
|
225
|
+
tableName: "asset_convert_product";
|
|
226
|
+
dataType: "boolean";
|
|
227
|
+
columnType: "PgBoolean";
|
|
228
|
+
data: boolean;
|
|
229
|
+
driverParam: boolean;
|
|
230
|
+
notNull: true;
|
|
231
|
+
hasDefault: true;
|
|
232
|
+
isPrimaryKey: false;
|
|
233
|
+
isAutoincrement: false;
|
|
234
|
+
hasRuntimeDefault: false;
|
|
235
|
+
enumValues: undefined;
|
|
236
|
+
baseColumn: never;
|
|
237
|
+
identity: undefined;
|
|
238
|
+
generated: undefined;
|
|
239
|
+
}, {}, {}>;
|
|
223
240
|
}, undefined>;
|
|
224
241
|
export type AssetConvertProductSelectSchemaType = typeof assetConvertProductSelectSchema.static;
|
|
225
242
|
export declare const assetConvertProductInsertSchema: import("drizzle-typebox").BuildSchema<"insert", {
|
|
@@ -444,6 +461,23 @@ export declare const assetConvertProductInsertSchema: import("drizzle-typebox").
|
|
|
444
461
|
identity: undefined;
|
|
445
462
|
generated: undefined;
|
|
446
463
|
}, {}, {}>;
|
|
464
|
+
allowPurchase: import("drizzle-orm/pg-core").PgColumn<{
|
|
465
|
+
name: "allow_purchase";
|
|
466
|
+
tableName: "asset_convert_product";
|
|
467
|
+
dataType: "boolean";
|
|
468
|
+
columnType: "PgBoolean";
|
|
469
|
+
data: boolean;
|
|
470
|
+
driverParam: boolean;
|
|
471
|
+
notNull: true;
|
|
472
|
+
hasDefault: true;
|
|
473
|
+
isPrimaryKey: false;
|
|
474
|
+
isAutoincrement: false;
|
|
475
|
+
hasRuntimeDefault: false;
|
|
476
|
+
enumValues: undefined;
|
|
477
|
+
baseColumn: never;
|
|
478
|
+
identity: undefined;
|
|
479
|
+
generated: undefined;
|
|
480
|
+
}, {}, {}>;
|
|
447
481
|
}, undefined>;
|
|
448
482
|
export type AssetConvertProductInsertSchemaType = typeof assetConvertProductInsertSchema.static;
|
|
449
483
|
export declare const assetConvertOrderSelectSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
@@ -2,6 +2,7 @@ export * from "./locales/zh";
|
|
|
2
2
|
export declare const AssetConvertProductErrorCodes: {
|
|
3
3
|
readonly ASSET_CONVERT_PRODUCT_NOT_FOUND: "ASSET_CONVERT_PRODUCT_NOT_FOUND";
|
|
4
4
|
readonly ASSET_CONVERT_PRODUCT_STATUS_INVALID: "ASSET_CONVERT_PRODUCT_STATUS_INVALID";
|
|
5
|
+
readonly ASSET_CONVERT_PRODUCT_PURCHASE_NOT_ALLOWED: "ASSET_CONVERT_PRODUCT_PURCHASE_NOT_ALLOWED";
|
|
5
6
|
readonly ASSET_CONVERT_PRODUCT_STATUS_TRANSITION_INVALID: "ASSET_CONVERT_PRODUCT_STATUS_TRANSITION_INVALID";
|
|
6
7
|
readonly ASSET_CONVERT_PRODUCT_PRICE_NOT_FOUND: "ASSET_CONVERT_PRODUCT_PRICE_NOT_FOUND";
|
|
7
8
|
readonly ASSET_CONVERT_PRODUCT_ASSET_NOT_FOUND: "ASSET_CONVERT_PRODUCT_ASSET_NOT_FOUND";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const zh: {
|
|
2
2
|
ASSET_CONVERT_PRODUCT_NOT_FOUND: string;
|
|
3
3
|
ASSET_CONVERT_PRODUCT_STATUS_INVALID: string;
|
|
4
|
+
ASSET_CONVERT_PRODUCT_PURCHASE_NOT_ALLOWED: string;
|
|
4
5
|
ASSET_CONVERT_PRODUCT_STATUS_TRANSITION_INVALID: string;
|
|
5
6
|
ASSET_CONVERT_PRODUCT_PRICE_NOT_FOUND: string;
|
|
6
7
|
ASSET_CONVERT_PRODUCT_ASSET_NOT_FOUND: string;
|
|
@@ -246,6 +246,23 @@ export declare const assetConvertProduct: import("drizzle-orm/pg-core").PgTableW
|
|
|
246
246
|
identity: undefined;
|
|
247
247
|
generated: undefined;
|
|
248
248
|
}, {}, {}>;
|
|
249
|
+
allowPurchase: import("drizzle-orm/pg-core").PgColumn<{
|
|
250
|
+
name: "allow_purchase";
|
|
251
|
+
tableName: "asset_convert_product";
|
|
252
|
+
dataType: "boolean";
|
|
253
|
+
columnType: "PgBoolean";
|
|
254
|
+
data: boolean;
|
|
255
|
+
driverParam: boolean;
|
|
256
|
+
notNull: true;
|
|
257
|
+
hasDefault: true;
|
|
258
|
+
isPrimaryKey: false;
|
|
259
|
+
isAutoincrement: false;
|
|
260
|
+
hasRuntimeDefault: false;
|
|
261
|
+
enumValues: undefined;
|
|
262
|
+
baseColumn: never;
|
|
263
|
+
identity: undefined;
|
|
264
|
+
generated: undefined;
|
|
265
|
+
}, {}, {}>;
|
|
249
266
|
};
|
|
250
267
|
dialect: "pg";
|
|
251
268
|
}>;
|
|
@@ -38,6 +38,7 @@ export declare const assetConvertProductListItemResponseSchema: import("@sinclai
|
|
|
38
38
|
available: "available";
|
|
39
39
|
locked: "locked";
|
|
40
40
|
}>;
|
|
41
|
+
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
41
42
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
42
43
|
symbol: import("@sinclair/typebox").TString;
|
|
43
44
|
id: import("@sinclair/typebox").TString;
|
|
@@ -120,6 +121,7 @@ export declare const assetConvertProductListResponseSchema: import("@sinclair/ty
|
|
|
120
121
|
available: "available";
|
|
121
122
|
locked: "locked";
|
|
122
123
|
}>;
|
|
124
|
+
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
123
125
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
124
126
|
symbol: import("@sinclair/typebox").TString;
|
|
125
127
|
id: import("@sinclair/typebox").TString;
|
|
@@ -210,6 +212,7 @@ export declare const assetConvertProductResponseSchema: import("@sinclair/typebo
|
|
|
210
212
|
available: "available";
|
|
211
213
|
locked: "locked";
|
|
212
214
|
}>;
|
|
215
|
+
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
213
216
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
214
217
|
symbol: import("@sinclair/typebox").TString;
|
|
215
218
|
id: import("@sinclair/typebox").TString;
|
|
@@ -420,6 +420,7 @@ export declare const assetConvertProductRouter: Elysia<"/asset_convert_product",
|
|
|
420
420
|
receiveAccountTypeId: string;
|
|
421
421
|
minPayAmount: string;
|
|
422
422
|
settlementMode: "available" | "locked";
|
|
423
|
+
allowPurchase: boolean;
|
|
423
424
|
targetAsset: {
|
|
424
425
|
symbol: string;
|
|
425
426
|
id: string;
|
|
@@ -512,6 +513,7 @@ export declare const assetConvertProductRouter: Elysia<"/asset_convert_product",
|
|
|
512
513
|
receiveAccountTypeId: string;
|
|
513
514
|
minPayAmount: string;
|
|
514
515
|
settlementMode: "available" | "locked";
|
|
516
|
+
allowPurchase: boolean;
|
|
515
517
|
targetAsset: {
|
|
516
518
|
symbol: string;
|
|
517
519
|
id: string;
|
|
@@ -18,8 +18,10 @@ declare abstract class BaseUserAssetConvertProductService {
|
|
|
18
18
|
receiveAccountTypeId: string;
|
|
19
19
|
minPayAmount: string;
|
|
20
20
|
settlementMode: "available" | "locked";
|
|
21
|
+
allowPurchase: boolean;
|
|
21
22
|
}>;
|
|
22
23
|
protected static assertProductActive(product: typeof assetConvertProduct.$inferSelect): void;
|
|
24
|
+
protected static assertProductPurchaseAllowed(product: typeof assetConvertProduct.$inferSelect): void;
|
|
23
25
|
protected static ensureProductPayAmount(productMinPayAmount: string, payAmount: Decimal): void;
|
|
24
26
|
protected static calcTargetAmount(payAmount: Decimal, price: string): string;
|
|
25
27
|
protected static getLatestProductPrice(tx: TransactionTx, product: typeof assetConvertProduct.$inferSelect): Promise<{
|
|
@@ -167,6 +169,7 @@ export declare abstract class UserAssetConvertProductService extends BaseUserAss
|
|
|
167
169
|
receiveAccountTypeId: string;
|
|
168
170
|
minPayAmount: string;
|
|
169
171
|
settlementMode: "available" | "locked";
|
|
172
|
+
allowPurchase: boolean;
|
|
170
173
|
}[];
|
|
171
174
|
pagination: {
|
|
172
175
|
pageSize: number;
|
|
@@ -281,6 +284,7 @@ export declare abstract class UserAssetConvertProductService extends BaseUserAss
|
|
|
281
284
|
receiveAccountTypeId: string;
|
|
282
285
|
minPayAmount: string;
|
|
283
286
|
settlementMode: "available" | "locked";
|
|
287
|
+
allowPurchase: boolean;
|
|
284
288
|
}>;
|
|
285
289
|
static createOrder(userId: string, input: AssetConvertOrderCreateInputType): Promise<{
|
|
286
290
|
id: string;
|
|
@@ -21,7 +21,7 @@ export declare const assetPriceAdminResponseSchema: import("@sinclair/typebox").
|
|
|
21
21
|
price: import("@sinclair/typebox").TString;
|
|
22
22
|
source: import("@sinclair/typebox").TString;
|
|
23
23
|
effectiveAt: import("@sinclair/typebox").TDate;
|
|
24
|
-
|
|
24
|
+
baseAssetEntity: import("@sinclair/typebox").TObject<{
|
|
25
25
|
symbol: import("@sinclair/typebox").TString;
|
|
26
26
|
id: import("@sinclair/typebox").TString;
|
|
27
27
|
name: import("@sinclair/typebox").TString;
|
|
@@ -77,7 +77,7 @@ export declare const assetPriceAdminListResponseSchema: import("@sinclair/typebo
|
|
|
77
77
|
price: import("@sinclair/typebox").TString;
|
|
78
78
|
source: import("@sinclair/typebox").TString;
|
|
79
79
|
effectiveAt: import("@sinclair/typebox").TDate;
|
|
80
|
-
|
|
80
|
+
baseAssetEntity: import("@sinclair/typebox").TObject<{
|
|
81
81
|
symbol: import("@sinclair/typebox").TString;
|
|
82
82
|
id: import("@sinclair/typebox").TString;
|
|
83
83
|
name: import("@sinclair/typebox").TString;
|
|
@@ -410,7 +410,7 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
|
|
|
410
410
|
price: string;
|
|
411
411
|
source: string;
|
|
412
412
|
effectiveAt: Date;
|
|
413
|
-
|
|
413
|
+
baseAssetEntity: {
|
|
414
414
|
symbol: string;
|
|
415
415
|
id: string;
|
|
416
416
|
name: string;
|
|
@@ -463,7 +463,7 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
|
|
|
463
463
|
price: string;
|
|
464
464
|
source: string;
|
|
465
465
|
effectiveAt: Date;
|
|
466
|
-
|
|
466
|
+
baseAssetEntity: {
|
|
467
467
|
symbol: string;
|
|
468
468
|
id: string;
|
|
469
469
|
name: string;
|
|
@@ -509,7 +509,7 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
|
|
|
509
509
|
price: string;
|
|
510
510
|
source: string;
|
|
511
511
|
effectiveAt: Date;
|
|
512
|
-
|
|
512
|
+
baseAssetEntity: {
|
|
513
513
|
symbol: string;
|
|
514
514
|
id: string;
|
|
515
515
|
name: string;
|
|
@@ -556,7 +556,7 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
|
|
|
556
556
|
price: string;
|
|
557
557
|
source: string;
|
|
558
558
|
effectiveAt: Date;
|
|
559
|
-
|
|
559
|
+
baseAssetEntity: {
|
|
560
560
|
symbol: string;
|
|
561
561
|
id: string;
|
|
562
562
|
name: string;
|
|
@@ -10,7 +10,7 @@ export declare abstract class AdminAssetPriceService {
|
|
|
10
10
|
effectiveAt: Date;
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
|
-
|
|
13
|
+
baseAssetEntity: {
|
|
14
14
|
symbol: string;
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
@@ -31,7 +31,7 @@ export declare abstract class AdminAssetPriceService {
|
|
|
31
31
|
effectiveAt: Date;
|
|
32
32
|
createdAt: Date;
|
|
33
33
|
updatedAt: Date;
|
|
34
|
-
|
|
34
|
+
baseAssetEntity: {
|
|
35
35
|
symbol: string;
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
@@ -50,7 +50,7 @@ export declare abstract class AdminAssetPriceService {
|
|
|
50
50
|
effectiveAt: Date;
|
|
51
51
|
createdAt: Date;
|
|
52
52
|
updatedAt: Date;
|
|
53
|
-
|
|
53
|
+
baseAssetEntity: {
|
|
54
54
|
symbol: string;
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
@@ -69,7 +69,7 @@ export declare abstract class AdminAssetPriceService {
|
|
|
69
69
|
effectiveAt: Date;
|
|
70
70
|
createdAt: Date;
|
|
71
71
|
updatedAt: Date;
|
|
72
|
-
|
|
72
|
+
baseAssetEntity: {
|
|
73
73
|
symbol: string;
|
|
74
74
|
id: string;
|
|
75
75
|
name: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1104,7 +1104,7 @@ declare const app: Elysia<"/api", {
|
|
|
1104
1104
|
price: string;
|
|
1105
1105
|
source: string;
|
|
1106
1106
|
effectiveAt: Date;
|
|
1107
|
-
|
|
1107
|
+
baseAssetEntity: {
|
|
1108
1108
|
symbol: string;
|
|
1109
1109
|
id: string;
|
|
1110
1110
|
name: string;
|
|
@@ -1157,7 +1157,7 @@ declare const app: Elysia<"/api", {
|
|
|
1157
1157
|
price: string;
|
|
1158
1158
|
source: string;
|
|
1159
1159
|
effectiveAt: Date;
|
|
1160
|
-
|
|
1160
|
+
baseAssetEntity: {
|
|
1161
1161
|
symbol: string;
|
|
1162
1162
|
id: string;
|
|
1163
1163
|
name: string;
|
|
@@ -1203,7 +1203,7 @@ declare const app: Elysia<"/api", {
|
|
|
1203
1203
|
price: string;
|
|
1204
1204
|
source: string;
|
|
1205
1205
|
effectiveAt: Date;
|
|
1206
|
-
|
|
1206
|
+
baseAssetEntity: {
|
|
1207
1207
|
symbol: string;
|
|
1208
1208
|
id: string;
|
|
1209
1209
|
name: string;
|
|
@@ -1250,7 +1250,7 @@ declare const app: Elysia<"/api", {
|
|
|
1250
1250
|
price: string;
|
|
1251
1251
|
source: string;
|
|
1252
1252
|
effectiveAt: Date;
|
|
1253
|
-
|
|
1253
|
+
baseAssetEntity: {
|
|
1254
1254
|
symbol: string;
|
|
1255
1255
|
id: string;
|
|
1256
1256
|
name: string;
|
|
@@ -1600,6 +1600,7 @@ declare const app: Elysia<"/api", {
|
|
|
1600
1600
|
body: {
|
|
1601
1601
|
description?: string | null | undefined;
|
|
1602
1602
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1603
|
+
allowPurchase?: boolean | undefined;
|
|
1603
1604
|
name: string;
|
|
1604
1605
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1605
1606
|
targetAssetId: string;
|
|
@@ -1627,6 +1628,7 @@ declare const app: Elysia<"/api", {
|
|
|
1627
1628
|
receiveAccountTypeId: string;
|
|
1628
1629
|
minPayAmount: string;
|
|
1629
1630
|
settlementMode: "available" | "locked";
|
|
1631
|
+
allowPurchase: boolean;
|
|
1630
1632
|
targetAsset: {
|
|
1631
1633
|
symbol: string;
|
|
1632
1634
|
id: string;
|
|
@@ -1687,6 +1689,7 @@ declare const app: Elysia<"/api", {
|
|
|
1687
1689
|
receiveAccountTypeId?: string | undefined;
|
|
1688
1690
|
minPayAmount?: string | undefined;
|
|
1689
1691
|
settlementMode?: "available" | "locked" | undefined;
|
|
1692
|
+
allowPurchase?: boolean | undefined;
|
|
1690
1693
|
};
|
|
1691
1694
|
params: {
|
|
1692
1695
|
id: string;
|
|
@@ -1708,6 +1711,7 @@ declare const app: Elysia<"/api", {
|
|
|
1708
1711
|
receiveAccountTypeId: string;
|
|
1709
1712
|
minPayAmount: string;
|
|
1710
1713
|
settlementMode: "available" | "locked";
|
|
1714
|
+
allowPurchase: boolean;
|
|
1711
1715
|
targetAsset: {
|
|
1712
1716
|
symbol: string;
|
|
1713
1717
|
id: string;
|
|
@@ -1780,6 +1784,7 @@ declare const app: Elysia<"/api", {
|
|
|
1780
1784
|
receiveAccountTypeId: string;
|
|
1781
1785
|
minPayAmount: string;
|
|
1782
1786
|
settlementMode: "available" | "locked";
|
|
1787
|
+
allowPurchase: boolean;
|
|
1783
1788
|
targetAsset: {
|
|
1784
1789
|
symbol: string;
|
|
1785
1790
|
id: string;
|
|
@@ -1853,6 +1858,7 @@ declare const app: Elysia<"/api", {
|
|
|
1853
1858
|
receiveAccountTypeId: string;
|
|
1854
1859
|
minPayAmount: string;
|
|
1855
1860
|
settlementMode: "available" | "locked";
|
|
1861
|
+
allowPurchase: boolean;
|
|
1856
1862
|
targetAsset: {
|
|
1857
1863
|
symbol: string;
|
|
1858
1864
|
id: string;
|
|
@@ -1926,6 +1932,7 @@ declare const app: Elysia<"/api", {
|
|
|
1926
1932
|
receiveAccountTypeId: string;
|
|
1927
1933
|
minPayAmount: string;
|
|
1928
1934
|
settlementMode: "available" | "locked";
|
|
1935
|
+
allowPurchase: boolean;
|
|
1929
1936
|
targetAsset: {
|
|
1930
1937
|
symbol: string;
|
|
1931
1938
|
id: string;
|
|
@@ -1998,6 +2005,7 @@ declare const app: Elysia<"/api", {
|
|
|
1998
2005
|
receiveAccountTypeId: string;
|
|
1999
2006
|
minPayAmount: string;
|
|
2000
2007
|
settlementMode: "available" | "locked";
|
|
2008
|
+
allowPurchase: boolean;
|
|
2001
2009
|
targetAsset: {
|
|
2002
2010
|
symbol: string;
|
|
2003
2011
|
id: string;
|
|
@@ -2059,6 +2067,7 @@ declare const app: Elysia<"/api", {
|
|
|
2059
2067
|
payAccountTypeId?: string | undefined;
|
|
2060
2068
|
receiveAccountTypeId?: string | undefined;
|
|
2061
2069
|
settlementMode?: "available" | "locked" | undefined;
|
|
2070
|
+
allowPurchase?: boolean | undefined;
|
|
2062
2071
|
limit?: number | undefined;
|
|
2063
2072
|
offset?: number | undefined;
|
|
2064
2073
|
pageSize?: number | undefined;
|
|
@@ -2085,6 +2094,7 @@ declare const app: Elysia<"/api", {
|
|
|
2085
2094
|
receiveAccountTypeId: string;
|
|
2086
2095
|
minPayAmount: string;
|
|
2087
2096
|
settlementMode: "available" | "locked";
|
|
2097
|
+
allowPurchase: boolean;
|
|
2088
2098
|
targetAsset: {
|
|
2089
2099
|
symbol: string;
|
|
2090
2100
|
id: string;
|
|
@@ -3019,6 +3029,15 @@ declare const app: Elysia<"/api", {
|
|
|
3019
3029
|
response: {
|
|
3020
3030
|
200: {
|
|
3021
3031
|
data: {
|
|
3032
|
+
user: {
|
|
3033
|
+
email: string;
|
|
3034
|
+
id: string;
|
|
3035
|
+
username: string | null;
|
|
3036
|
+
displayUsername: string | null;
|
|
3037
|
+
phoneNumber: string | null;
|
|
3038
|
+
role: string | null;
|
|
3039
|
+
banned: boolean | null;
|
|
3040
|
+
};
|
|
3022
3041
|
id: string;
|
|
3023
3042
|
name: string;
|
|
3024
3043
|
createdAt: Date;
|
|
@@ -3037,15 +3056,6 @@ declare const app: Elysia<"/api", {
|
|
|
3037
3056
|
sortOrder: number;
|
|
3038
3057
|
isSingleton: boolean;
|
|
3039
3058
|
};
|
|
3040
|
-
userInfo: {
|
|
3041
|
-
email: string;
|
|
3042
|
-
id: string;
|
|
3043
|
-
username: string | null;
|
|
3044
|
-
displayUsername: string | null;
|
|
3045
|
-
phoneNumber: string | null;
|
|
3046
|
-
role: string | null;
|
|
3047
|
-
banned: boolean | null;
|
|
3048
|
-
};
|
|
3049
3059
|
}[];
|
|
3050
3060
|
pagination: {
|
|
3051
3061
|
total: number;
|
|
@@ -3081,6 +3091,15 @@ declare const app: Elysia<"/api", {
|
|
|
3081
3091
|
headers: {};
|
|
3082
3092
|
response: {
|
|
3083
3093
|
200: {
|
|
3094
|
+
user: {
|
|
3095
|
+
email: string;
|
|
3096
|
+
id: string;
|
|
3097
|
+
username: string | null;
|
|
3098
|
+
displayUsername: string | null;
|
|
3099
|
+
phoneNumber: string | null;
|
|
3100
|
+
role: string | null;
|
|
3101
|
+
banned: boolean | null;
|
|
3102
|
+
};
|
|
3084
3103
|
id: string;
|
|
3085
3104
|
name: string;
|
|
3086
3105
|
createdAt: Date;
|
|
@@ -3099,15 +3118,6 @@ declare const app: Elysia<"/api", {
|
|
|
3099
3118
|
sortOrder: number;
|
|
3100
3119
|
isSingleton: boolean;
|
|
3101
3120
|
};
|
|
3102
|
-
userInfo: {
|
|
3103
|
-
email: string;
|
|
3104
|
-
id: string;
|
|
3105
|
-
username: string | null;
|
|
3106
|
-
displayUsername: string | null;
|
|
3107
|
-
phoneNumber: string | null;
|
|
3108
|
-
role: string | null;
|
|
3109
|
-
banned: boolean | null;
|
|
3110
|
-
};
|
|
3111
3121
|
};
|
|
3112
3122
|
422: {
|
|
3113
3123
|
type: "validation";
|
|
@@ -9339,6 +9349,7 @@ declare const app: Elysia<"/api", {
|
|
|
9339
9349
|
receiveAccountTypeId: string;
|
|
9340
9350
|
minPayAmount: string;
|
|
9341
9351
|
settlementMode: "available" | "locked";
|
|
9352
|
+
allowPurchase: boolean;
|
|
9342
9353
|
targetAsset: {
|
|
9343
9354
|
symbol: string;
|
|
9344
9355
|
id: string;
|
|
@@ -9431,6 +9442,7 @@ declare const app: Elysia<"/api", {
|
|
|
9431
9442
|
receiveAccountTypeId: string;
|
|
9432
9443
|
minPayAmount: string;
|
|
9433
9444
|
settlementMode: "available" | "locked";
|
|
9445
|
+
allowPurchase: boolean;
|
|
9434
9446
|
targetAsset: {
|
|
9435
9447
|
symbol: string;
|
|
9436
9448
|
id: string;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6
|
+
user: {
|
|
7
7
|
id: string;
|
|
8
8
|
username: string | null;
|
|
9
9
|
displayUsername: string | null;
|