@r2wa-org/eden 0.0.63 → 0.0.65
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 +99 -99
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +54 -54
- package/dist/src/asset-convert-product/admin/router.d.ts +91 -91
- package/dist/src/asset-convert-product/admin/service.d.ts +157 -109
- package/dist/src/asset-convert-product/internal/service.d.ts +1 -66
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +244 -447
- package/dist/src/asset-convert-product/user/router.d.ts +86 -0
- package/dist/src/asset-convert-product/user/service.d.ts +245 -2
- package/dist/src/asset-price/admin/dto.schemas.d.ts +4 -4
- package/dist/src/asset-price/admin/router.d.ts +8 -8
- package/dist/src/index.d.ts +185 -99
- package/dist/src/ledger-account/user/dto.schemas.d.ts +5 -0
- package/dist/src/ledger-account/user/router.d.ts +61 -0
- package/dist/src/ledger-account/user/service.d.ts +51 -1
- package/dist/src/wallet/admin/dto.schemas.d.ts +18 -18
- package/package.json +2 -2
|
@@ -189,6 +189,11 @@ export declare const ledgerAccountByTypeAndAssetParamsSchema: import("@sinclair/
|
|
|
189
189
|
assetCode: import("@sinclair/typebox").TString;
|
|
190
190
|
}>;
|
|
191
191
|
export type LedgerAccountByTypeAndAssetParamsType = typeof ledgerAccountByTypeAndAssetParamsSchema.static;
|
|
192
|
+
export declare const ledgerAccountByTypeIdAndAssetIdParamsSchema: import("@sinclair/typebox").TObject<{
|
|
193
|
+
ledgerAccountTypeId: import("@sinclair/typebox").TString;
|
|
194
|
+
assetId: import("@sinclair/typebox").TString;
|
|
195
|
+
}>;
|
|
196
|
+
export type LedgerAccountByTypeIdAndAssetIdParamsType = typeof ledgerAccountByTypeIdAndAssetIdParamsSchema.static;
|
|
192
197
|
export declare const ledgerAccountResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
193
198
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
194
199
|
name: "created_at";
|
|
@@ -440,6 +440,67 @@ export declare const ledgerAccountRouter: Elysia<"/ledger_accounts", {
|
|
|
440
440
|
};
|
|
441
441
|
};
|
|
442
442
|
};
|
|
443
|
+
} & {
|
|
444
|
+
ledger_accounts: {
|
|
445
|
+
"account-type-ids": {
|
|
446
|
+
":ledgerAccountTypeId": {
|
|
447
|
+
assets: {
|
|
448
|
+
":assetId": {
|
|
449
|
+
get: {
|
|
450
|
+
body: {};
|
|
451
|
+
params: {
|
|
452
|
+
assetId: string;
|
|
453
|
+
ledgerAccountTypeId: string;
|
|
454
|
+
};
|
|
455
|
+
query: {};
|
|
456
|
+
headers: {};
|
|
457
|
+
response: {
|
|
458
|
+
200: {
|
|
459
|
+
id: string;
|
|
460
|
+
createdAt: Date;
|
|
461
|
+
updatedAt: Date;
|
|
462
|
+
userId: string;
|
|
463
|
+
status: "active" | "frozen" | "disabled";
|
|
464
|
+
asset: {
|
|
465
|
+
symbol: string;
|
|
466
|
+
id: string;
|
|
467
|
+
name: string;
|
|
468
|
+
code: string;
|
|
469
|
+
iconUrl: string;
|
|
470
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
471
|
+
isActive: boolean;
|
|
472
|
+
precision: number;
|
|
473
|
+
};
|
|
474
|
+
assetId: string;
|
|
475
|
+
ledgerAccountTypeId: string;
|
|
476
|
+
available: string;
|
|
477
|
+
locked: string;
|
|
478
|
+
version: number;
|
|
479
|
+
ledgerAccountType: {
|
|
480
|
+
id: string;
|
|
481
|
+
name: string;
|
|
482
|
+
description: string | null;
|
|
483
|
+
key: string;
|
|
484
|
+
isActive: boolean;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
422: {
|
|
488
|
+
type: "validation";
|
|
489
|
+
on: string;
|
|
490
|
+
summary?: string;
|
|
491
|
+
message?: string;
|
|
492
|
+
found?: unknown;
|
|
493
|
+
property?: string;
|
|
494
|
+
expected?: string;
|
|
495
|
+
};
|
|
496
|
+
401: "Unauthorized";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
443
504
|
} & {
|
|
444
505
|
ledger_accounts: {
|
|
445
506
|
":id": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseLedgerAccountService } from "../internal/service";
|
|
2
|
-
import type { LedgerAccountByTypeAndAssetParamsType, LedgerAccountIdParamsType } from "./dto.schemas";
|
|
2
|
+
import type { LedgerAccountByTypeAndAssetParamsType, LedgerAccountByTypeIdAndAssetIdParamsType, LedgerAccountIdParamsType } from "./dto.schemas";
|
|
3
3
|
export declare abstract class UserLedgerAccountService extends BaseLedgerAccountService {
|
|
4
4
|
static getAccountByTypeAndAsset(userId: string, params: LedgerAccountByTypeAndAssetParamsType): Promise<{
|
|
5
5
|
id: string;
|
|
@@ -101,4 +101,54 @@ export declare abstract class UserLedgerAccountService extends BaseLedgerAccount
|
|
|
101
101
|
sortOrder: number;
|
|
102
102
|
};
|
|
103
103
|
}>;
|
|
104
|
+
static getAccountByTypeIdAndAssetId(userId: string, params: LedgerAccountByTypeIdAndAssetIdParamsType): Promise<{
|
|
105
|
+
id: string;
|
|
106
|
+
createdAt: Date;
|
|
107
|
+
updatedAt: Date;
|
|
108
|
+
userId: string;
|
|
109
|
+
status: "active" | "frozen" | "disabled";
|
|
110
|
+
assetId: string;
|
|
111
|
+
ledgerAccountTypeId: string;
|
|
112
|
+
available: string;
|
|
113
|
+
locked: string;
|
|
114
|
+
version: number;
|
|
115
|
+
asset: {
|
|
116
|
+
symbol: string;
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
createdAt: Date;
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
code: string;
|
|
122
|
+
iconUrl: string;
|
|
123
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
124
|
+
isActive: boolean;
|
|
125
|
+
typeId: string;
|
|
126
|
+
precision: number;
|
|
127
|
+
};
|
|
128
|
+
ledgerAccountType: {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
createdAt: Date;
|
|
132
|
+
updatedAt: Date;
|
|
133
|
+
description: string | null;
|
|
134
|
+
key: string;
|
|
135
|
+
isActive: boolean;
|
|
136
|
+
allowDeposit: boolean;
|
|
137
|
+
allowWithdraw: boolean;
|
|
138
|
+
minWithdrawAmount: string;
|
|
139
|
+
maxWithdrawAmount: string;
|
|
140
|
+
allowTransfer: boolean;
|
|
141
|
+
minTransferAmount: string;
|
|
142
|
+
maxTransferAmount: string;
|
|
143
|
+
allowInternalTransfer: boolean;
|
|
144
|
+
allowInternalReceiveTransfer: boolean;
|
|
145
|
+
minInternalTransferAmount: string;
|
|
146
|
+
maxInternalTransferAmount: string;
|
|
147
|
+
internalTransferRatio: string;
|
|
148
|
+
allowTransaction: boolean;
|
|
149
|
+
hasExpiry: boolean;
|
|
150
|
+
expiryDays: number | null;
|
|
151
|
+
sortOrder: number;
|
|
152
|
+
};
|
|
153
|
+
}>;
|
|
104
154
|
}
|
|
@@ -20,15 +20,6 @@ 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
|
-
userInfo: 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
|
-
}>;
|
|
32
23
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
33
24
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
34
25
|
name: "created_at";
|
|
@@ -167,6 +158,15 @@ export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObj
|
|
|
167
158
|
generated: undefined;
|
|
168
159
|
}, {}, {}>;
|
|
169
160
|
}, 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,15 +190,6 @@ 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
|
-
userInfo: 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
|
-
}>;
|
|
202
193
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
203
194
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
204
195
|
name: "created_at";
|
|
@@ -337,6 +328,15 @@ export declare const walletAdminListResponseSchema: import("@sinclair/typebox").
|
|
|
337
328
|
generated: undefined;
|
|
338
329
|
}, {}, {}>;
|
|
339
330
|
}, 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r2wa-org/eden",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "Elysia API type definitions for Eden Treaty",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"release": "npm version patch && npm publish --access public"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@elysiajs/eden": "^1.4.
|
|
13
|
+
"@elysiajs/eden": "^1.4.9"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public",
|