@r2wa-org/eden 0.0.57 → 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.
- package/dist/src/asset/user/dto.schemas.d.ts +9 -83
- package/dist/src/asset/user/router.d.ts +60 -66
- package/dist/src/asset/user/service.d.ts +41 -41
- package/dist/src/asset-price/errors/index.d.ts +1 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +1 -0
- package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
- package/dist/src/asset-price/user/router.d.ts +43 -2
- package/dist/src/asset-price/user/service.d.ts +13 -1
- package/dist/src/index.d.ts +381 -179
- package/dist/src/ledger-account/user/dto.schemas.d.ts +39 -193
- package/dist/src/ledger-account/user/router.d.ts +43 -42
- package/dist/src/ledger-account/user/service.d.ts +41 -41
- package/dist/src/ledger-account-type/user/router.d.ts +48 -0
- package/dist/src/ledger-account-type/user/service.d.ts +25 -0
- package/dist/src/portfolio/index.d.ts +2 -0
- package/dist/src/portfolio/internal/index.d.ts +1 -0
- package/dist/src/portfolio/internal/service.d.ts +5 -0
- package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
- package/dist/src/portfolio/user/index.d.ts +3 -0
- package/dist/src/portfolio/user/router.d.ts +659 -0
- package/dist/src/portfolio/user/service.d.ts +143 -0
- package/dist/src/wallet/user/dto.schemas.d.ts +4 -66
- package/dist/src/wallet/user/router.d.ts +1 -62
- package/dist/src/wallet/user/service.d.ts +3 -39
- package/package.json +1 -1
|
@@ -357,6 +357,45 @@ export declare const ledgerAccountResponseSchema: import("drizzle-typebox").Buil
|
|
|
357
357
|
}, {}, {}>;
|
|
358
358
|
}, undefined>;
|
|
359
359
|
export type LedgerAccountResponseType = typeof ledgerAccountResponseSchema.static;
|
|
360
|
+
export declare const ledgerAccountDetailResponseSchema: import("@sinclair/typebox").TObject<{
|
|
361
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
362
|
+
updatedAt: import("@sinclair/typebox").TDate;
|
|
363
|
+
id: import("@sinclair/typebox").TString;
|
|
364
|
+
userId: import("@sinclair/typebox").TString;
|
|
365
|
+
status: import("@sinclair/typebox").TEnum<{
|
|
366
|
+
active: "active";
|
|
367
|
+
frozen: "frozen";
|
|
368
|
+
disabled: "disabled";
|
|
369
|
+
}>;
|
|
370
|
+
assetId: import("@sinclair/typebox").TString;
|
|
371
|
+
ledgerAccountTypeId: import("@sinclair/typebox").TString;
|
|
372
|
+
available: import("@sinclair/typebox").TString;
|
|
373
|
+
locked: import("@sinclair/typebox").TString;
|
|
374
|
+
version: import("@sinclair/typebox").TInteger;
|
|
375
|
+
asset: import("@sinclair/typebox").TObject<{
|
|
376
|
+
symbol: import("@sinclair/typebox").TString;
|
|
377
|
+
id: import("@sinclair/typebox").TString;
|
|
378
|
+
name: import("@sinclair/typebox").TString;
|
|
379
|
+
code: import("@sinclair/typebox").TString;
|
|
380
|
+
iconUrl: import("@sinclair/typebox").TString;
|
|
381
|
+
category: import("@sinclair/typebox").TEnum<{
|
|
382
|
+
FIAT: "FIAT";
|
|
383
|
+
CRYPTO: "CRYPTO";
|
|
384
|
+
POINT: "POINT";
|
|
385
|
+
RWA: "RWA";
|
|
386
|
+
}>;
|
|
387
|
+
isActive: import("@sinclair/typebox").TBoolean;
|
|
388
|
+
precision: import("@sinclair/typebox").TInteger;
|
|
389
|
+
}>;
|
|
390
|
+
ledgerAccountType: import("@sinclair/typebox").TObject<{
|
|
391
|
+
id: import("@sinclair/typebox").TString;
|
|
392
|
+
name: import("@sinclair/typebox").TString;
|
|
393
|
+
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
394
|
+
key: import("@sinclair/typebox").TString;
|
|
395
|
+
isActive: import("@sinclair/typebox").TBoolean;
|
|
396
|
+
}>;
|
|
397
|
+
}>;
|
|
398
|
+
export type LedgerAccountDetailResponseType = typeof ledgerAccountDetailResponseSchema.static;
|
|
360
399
|
export declare const ledgerAccountListResponseSchema: import("@sinclair/typebox").TObject<{
|
|
361
400
|
data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
|
|
362
401
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -539,196 +578,3 @@ export declare const ledgerAccountListResponseSchema: import("@sinclair/typebox"
|
|
|
539
578
|
}>;
|
|
540
579
|
}>;
|
|
541
580
|
export type LedgerAccountListResponseType = typeof ledgerAccountListResponseSchema.static;
|
|
542
|
-
export declare const ledgerAccountOverviewParamsSchema: import("@sinclair/typebox").TObject<{
|
|
543
|
-
id: import("@sinclair/typebox").TString;
|
|
544
|
-
}>;
|
|
545
|
-
export type LedgerAccountOverviewParamsType = typeof ledgerAccountOverviewParamsSchema.static;
|
|
546
|
-
export declare const ledgerAccountOverviewQuerySchema: import("@sinclair/typebox").TObject<{
|
|
547
|
-
quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
548
|
-
}>;
|
|
549
|
-
export type LedgerAccountOverviewQueryType = typeof ledgerAccountOverviewQuerySchema.static;
|
|
550
|
-
export declare const ledgerAccountOverviewResponseSchema: import("@sinclair/typebox").TObject<{
|
|
551
|
-
quoteAsset: import("@sinclair/typebox").TString;
|
|
552
|
-
overview: import("@sinclair/typebox").TObject<{
|
|
553
|
-
totalValuation: import("@sinclair/typebox").TString;
|
|
554
|
-
}>;
|
|
555
|
-
ledgerAccount: import("drizzle-typebox").BuildSchema<"select", {
|
|
556
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
557
|
-
name: "created_at";
|
|
558
|
-
tableName: "ledger_account";
|
|
559
|
-
dataType: "date";
|
|
560
|
-
columnType: "PgTimestamp";
|
|
561
|
-
data: Date;
|
|
562
|
-
driverParam: string;
|
|
563
|
-
notNull: true;
|
|
564
|
-
hasDefault: true;
|
|
565
|
-
isPrimaryKey: false;
|
|
566
|
-
isAutoincrement: false;
|
|
567
|
-
hasRuntimeDefault: false;
|
|
568
|
-
enumValues: undefined;
|
|
569
|
-
baseColumn: never;
|
|
570
|
-
identity: undefined;
|
|
571
|
-
generated: undefined;
|
|
572
|
-
}, {}, {}>;
|
|
573
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
574
|
-
name: "updated_at";
|
|
575
|
-
tableName: "ledger_account";
|
|
576
|
-
dataType: "date";
|
|
577
|
-
columnType: "PgTimestamp";
|
|
578
|
-
data: Date;
|
|
579
|
-
driverParam: string;
|
|
580
|
-
notNull: true;
|
|
581
|
-
hasDefault: true;
|
|
582
|
-
isPrimaryKey: false;
|
|
583
|
-
isAutoincrement: false;
|
|
584
|
-
hasRuntimeDefault: false;
|
|
585
|
-
enumValues: undefined;
|
|
586
|
-
baseColumn: never;
|
|
587
|
-
identity: undefined;
|
|
588
|
-
generated: undefined;
|
|
589
|
-
}, {}, {}>;
|
|
590
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
591
|
-
name: "id";
|
|
592
|
-
tableName: "ledger_account";
|
|
593
|
-
dataType: "string";
|
|
594
|
-
columnType: "PgUUID";
|
|
595
|
-
data: string;
|
|
596
|
-
driverParam: string;
|
|
597
|
-
notNull: true;
|
|
598
|
-
hasDefault: true;
|
|
599
|
-
isPrimaryKey: true;
|
|
600
|
-
isAutoincrement: false;
|
|
601
|
-
hasRuntimeDefault: false;
|
|
602
|
-
enumValues: undefined;
|
|
603
|
-
baseColumn: never;
|
|
604
|
-
identity: undefined;
|
|
605
|
-
generated: undefined;
|
|
606
|
-
}, {}, {}>;
|
|
607
|
-
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
608
|
-
name: "user_id";
|
|
609
|
-
tableName: "ledger_account";
|
|
610
|
-
dataType: "string";
|
|
611
|
-
columnType: "PgText";
|
|
612
|
-
data: string;
|
|
613
|
-
driverParam: string;
|
|
614
|
-
notNull: true;
|
|
615
|
-
hasDefault: false;
|
|
616
|
-
isPrimaryKey: false;
|
|
617
|
-
isAutoincrement: false;
|
|
618
|
-
hasRuntimeDefault: false;
|
|
619
|
-
enumValues: [string, ...string[]];
|
|
620
|
-
baseColumn: never;
|
|
621
|
-
identity: undefined;
|
|
622
|
-
generated: undefined;
|
|
623
|
-
}, {}, {}>;
|
|
624
|
-
assetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
625
|
-
name: "asset_id";
|
|
626
|
-
tableName: "ledger_account";
|
|
627
|
-
dataType: "string";
|
|
628
|
-
columnType: "PgUUID";
|
|
629
|
-
data: string;
|
|
630
|
-
driverParam: string;
|
|
631
|
-
notNull: true;
|
|
632
|
-
hasDefault: false;
|
|
633
|
-
isPrimaryKey: false;
|
|
634
|
-
isAutoincrement: false;
|
|
635
|
-
hasRuntimeDefault: false;
|
|
636
|
-
enumValues: undefined;
|
|
637
|
-
baseColumn: never;
|
|
638
|
-
identity: undefined;
|
|
639
|
-
generated: undefined;
|
|
640
|
-
}, {}, {}>;
|
|
641
|
-
ledgerAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
642
|
-
name: "ledger_account_type_id";
|
|
643
|
-
tableName: "ledger_account";
|
|
644
|
-
dataType: "string";
|
|
645
|
-
columnType: "PgUUID";
|
|
646
|
-
data: string;
|
|
647
|
-
driverParam: string;
|
|
648
|
-
notNull: true;
|
|
649
|
-
hasDefault: false;
|
|
650
|
-
isPrimaryKey: false;
|
|
651
|
-
isAutoincrement: false;
|
|
652
|
-
hasRuntimeDefault: false;
|
|
653
|
-
enumValues: undefined;
|
|
654
|
-
baseColumn: never;
|
|
655
|
-
identity: undefined;
|
|
656
|
-
generated: undefined;
|
|
657
|
-
}, {}, {}>;
|
|
658
|
-
available: import("drizzle-orm/pg-core").PgColumn<{
|
|
659
|
-
name: "available";
|
|
660
|
-
tableName: "ledger_account";
|
|
661
|
-
dataType: "string";
|
|
662
|
-
columnType: "PgNumeric";
|
|
663
|
-
data: string;
|
|
664
|
-
driverParam: string;
|
|
665
|
-
notNull: true;
|
|
666
|
-
hasDefault: true;
|
|
667
|
-
isPrimaryKey: false;
|
|
668
|
-
isAutoincrement: false;
|
|
669
|
-
hasRuntimeDefault: false;
|
|
670
|
-
enumValues: undefined;
|
|
671
|
-
baseColumn: never;
|
|
672
|
-
identity: undefined;
|
|
673
|
-
generated: undefined;
|
|
674
|
-
}, {}, {}>;
|
|
675
|
-
locked: import("drizzle-orm/pg-core").PgColumn<{
|
|
676
|
-
name: "locked";
|
|
677
|
-
tableName: "ledger_account";
|
|
678
|
-
dataType: "string";
|
|
679
|
-
columnType: "PgNumeric";
|
|
680
|
-
data: string;
|
|
681
|
-
driverParam: string;
|
|
682
|
-
notNull: true;
|
|
683
|
-
hasDefault: true;
|
|
684
|
-
isPrimaryKey: false;
|
|
685
|
-
isAutoincrement: false;
|
|
686
|
-
hasRuntimeDefault: false;
|
|
687
|
-
enumValues: undefined;
|
|
688
|
-
baseColumn: never;
|
|
689
|
-
identity: undefined;
|
|
690
|
-
generated: undefined;
|
|
691
|
-
}, {}, {}>;
|
|
692
|
-
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
693
|
-
name: "version";
|
|
694
|
-
tableName: "ledger_account";
|
|
695
|
-
dataType: "number";
|
|
696
|
-
columnType: "PgInteger";
|
|
697
|
-
data: number;
|
|
698
|
-
driverParam: string | number;
|
|
699
|
-
notNull: true;
|
|
700
|
-
hasDefault: true;
|
|
701
|
-
isPrimaryKey: false;
|
|
702
|
-
isAutoincrement: false;
|
|
703
|
-
hasRuntimeDefault: false;
|
|
704
|
-
enumValues: undefined;
|
|
705
|
-
baseColumn: never;
|
|
706
|
-
identity: undefined;
|
|
707
|
-
generated: undefined;
|
|
708
|
-
}, {}, {}>;
|
|
709
|
-
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
710
|
-
name: "status";
|
|
711
|
-
tableName: "ledger_account";
|
|
712
|
-
dataType: "string";
|
|
713
|
-
columnType: "PgEnumColumn";
|
|
714
|
-
data: "active" | "frozen" | "disabled";
|
|
715
|
-
driverParam: string;
|
|
716
|
-
notNull: true;
|
|
717
|
-
hasDefault: true;
|
|
718
|
-
isPrimaryKey: false;
|
|
719
|
-
isAutoincrement: false;
|
|
720
|
-
hasRuntimeDefault: false;
|
|
721
|
-
enumValues: ["active", "frozen", "disabled"];
|
|
722
|
-
baseColumn: never;
|
|
723
|
-
identity: undefined;
|
|
724
|
-
generated: undefined;
|
|
725
|
-
}, {}, {}>;
|
|
726
|
-
}, undefined>;
|
|
727
|
-
ledgerAccountType: import("@sinclair/typebox").TObject<{
|
|
728
|
-
id: import("@sinclair/typebox").TString;
|
|
729
|
-
key: import("@sinclair/typebox").TString;
|
|
730
|
-
name: import("@sinclair/typebox").TString;
|
|
731
|
-
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
732
|
-
}>;
|
|
733
|
-
}>;
|
|
734
|
-
export type LedgerAccountOverviewResponseType = typeof ledgerAccountOverviewResponseSchema.static;
|
|
@@ -382,52 +382,53 @@ export declare const ledgerAccountRouter: Elysia<"/ledger_accounts", {
|
|
|
382
382
|
} & {
|
|
383
383
|
ledger_accounts: {
|
|
384
384
|
":id": {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
385
|
+
get: {
|
|
386
|
+
body: {};
|
|
387
|
+
params: {
|
|
388
|
+
id: string;
|
|
389
|
+
};
|
|
390
|
+
query: {};
|
|
391
|
+
headers: {};
|
|
392
|
+
response: {
|
|
393
|
+
200: {
|
|
389
394
|
id: string;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
};
|
|
404
|
-
ledgerAccount: {
|
|
405
|
-
id: string;
|
|
406
|
-
createdAt: Date;
|
|
407
|
-
updatedAt: Date;
|
|
408
|
-
userId: string;
|
|
409
|
-
status: "active" | "frozen" | "disabled";
|
|
410
|
-
assetId: string;
|
|
411
|
-
ledgerAccountTypeId: string;
|
|
412
|
-
available: string;
|
|
413
|
-
locked: string;
|
|
414
|
-
version: number;
|
|
415
|
-
};
|
|
416
|
-
overview: {
|
|
417
|
-
totalValuation: string;
|
|
418
|
-
};
|
|
395
|
+
createdAt: Date;
|
|
396
|
+
updatedAt: Date;
|
|
397
|
+
userId: string;
|
|
398
|
+
status: "active" | "frozen" | "disabled";
|
|
399
|
+
asset: {
|
|
400
|
+
symbol: string;
|
|
401
|
+
id: string;
|
|
402
|
+
name: string;
|
|
403
|
+
code: string;
|
|
404
|
+
iconUrl: string;
|
|
405
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
406
|
+
isActive: boolean;
|
|
407
|
+
precision: number;
|
|
419
408
|
};
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
409
|
+
assetId: string;
|
|
410
|
+
ledgerAccountTypeId: string;
|
|
411
|
+
available: string;
|
|
412
|
+
locked: string;
|
|
413
|
+
version: number;
|
|
414
|
+
ledgerAccountType: {
|
|
415
|
+
id: string;
|
|
416
|
+
name: string;
|
|
417
|
+
description: string | null;
|
|
418
|
+
key: string;
|
|
419
|
+
isActive: boolean;
|
|
428
420
|
};
|
|
429
|
-
401: "Unauthorized";
|
|
430
421
|
};
|
|
422
|
+
422: {
|
|
423
|
+
type: "validation";
|
|
424
|
+
on: string;
|
|
425
|
+
summary?: string;
|
|
426
|
+
message?: string;
|
|
427
|
+
found?: unknown;
|
|
428
|
+
property?: string;
|
|
429
|
+
expected?: string;
|
|
430
|
+
};
|
|
431
|
+
401: "Unauthorized";
|
|
431
432
|
};
|
|
432
433
|
};
|
|
433
434
|
};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { BaseLedgerAccountService } from "../internal/service";
|
|
2
|
-
import type {
|
|
2
|
+
import type { LedgerAccountIdParamsType } from "./dto.schemas";
|
|
3
3
|
export declare abstract class UserLedgerAccountService extends BaseLedgerAccountService {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
static getAccountById(userId: string, params: LedgerAccountIdParamsType): Promise<{
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
userId: string;
|
|
9
|
+
status: "active" | "frozen" | "disabled";
|
|
10
|
+
assetId: string;
|
|
11
|
+
ledgerAccountTypeId: string;
|
|
12
|
+
available: string;
|
|
13
|
+
locked: string;
|
|
14
|
+
version: number;
|
|
15
|
+
asset: {
|
|
16
|
+
symbol: string;
|
|
11
17
|
id: string;
|
|
18
|
+
name: string;
|
|
12
19
|
createdAt: Date;
|
|
13
20
|
updatedAt: Date;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
version: number;
|
|
21
|
-
ledgerAccountType: {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
createdAt: Date;
|
|
25
|
-
updatedAt: Date;
|
|
26
|
-
description: string | null;
|
|
27
|
-
key: string;
|
|
28
|
-
isActive: boolean;
|
|
29
|
-
allowDeposit: boolean;
|
|
30
|
-
allowWithdraw: boolean;
|
|
31
|
-
minWithdrawAmount: string;
|
|
32
|
-
maxWithdrawAmount: string;
|
|
33
|
-
allowTransfer: boolean;
|
|
34
|
-
minTransferAmount: string;
|
|
35
|
-
maxTransferAmount: string;
|
|
36
|
-
allowInternalTransfer: boolean;
|
|
37
|
-
allowInternalReceiveTransfer: boolean;
|
|
38
|
-
minInternalTransferAmount: string;
|
|
39
|
-
maxInternalTransferAmount: string;
|
|
40
|
-
internalTransferRatio: string;
|
|
41
|
-
allowTransaction: boolean;
|
|
42
|
-
hasExpiry: boolean;
|
|
43
|
-
expiryDays: number | null;
|
|
44
|
-
sortOrder: number;
|
|
45
|
-
};
|
|
21
|
+
code: string;
|
|
22
|
+
iconUrl: string;
|
|
23
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
typeId: string;
|
|
26
|
+
precision: number;
|
|
46
27
|
};
|
|
47
28
|
ledgerAccountType: {
|
|
48
29
|
id: string;
|
|
49
|
-
key: string;
|
|
50
30
|
name: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
51
33
|
description: string | null;
|
|
34
|
+
key: string;
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
allowDeposit: boolean;
|
|
37
|
+
allowWithdraw: boolean;
|
|
38
|
+
minWithdrawAmount: string;
|
|
39
|
+
maxWithdrawAmount: string;
|
|
40
|
+
allowTransfer: boolean;
|
|
41
|
+
minTransferAmount: string;
|
|
42
|
+
maxTransferAmount: string;
|
|
43
|
+
allowInternalTransfer: boolean;
|
|
44
|
+
allowInternalReceiveTransfer: boolean;
|
|
45
|
+
minInternalTransferAmount: string;
|
|
46
|
+
maxInternalTransferAmount: string;
|
|
47
|
+
internalTransferRatio: string;
|
|
48
|
+
allowTransaction: boolean;
|
|
49
|
+
hasExpiry: boolean;
|
|
50
|
+
expiryDays: number | null;
|
|
51
|
+
sortOrder: number;
|
|
52
52
|
};
|
|
53
53
|
}>;
|
|
54
54
|
}
|
|
@@ -439,6 +439,54 @@ export declare const ledgerAccountTypeRouter: Elysia<"/ledger_account_types", {
|
|
|
439
439
|
};
|
|
440
440
|
};
|
|
441
441
|
};
|
|
442
|
+
} & {
|
|
443
|
+
ledger_account_types: {
|
|
444
|
+
":key": {
|
|
445
|
+
get: {
|
|
446
|
+
body: {};
|
|
447
|
+
params: {
|
|
448
|
+
key: string;
|
|
449
|
+
};
|
|
450
|
+
query: {};
|
|
451
|
+
headers: {};
|
|
452
|
+
response: {
|
|
453
|
+
200: {
|
|
454
|
+
id: string;
|
|
455
|
+
name: string;
|
|
456
|
+
description: string | null;
|
|
457
|
+
key: string;
|
|
458
|
+
isActive: boolean;
|
|
459
|
+
allowDeposit: boolean;
|
|
460
|
+
allowWithdraw: boolean;
|
|
461
|
+
minWithdrawAmount: string;
|
|
462
|
+
maxWithdrawAmount: string;
|
|
463
|
+
allowTransfer: boolean;
|
|
464
|
+
minTransferAmount: string;
|
|
465
|
+
maxTransferAmount: string;
|
|
466
|
+
allowInternalTransfer: boolean;
|
|
467
|
+
allowInternalReceiveTransfer: boolean;
|
|
468
|
+
minInternalTransferAmount: string;
|
|
469
|
+
maxInternalTransferAmount: string;
|
|
470
|
+
internalTransferRatio: string;
|
|
471
|
+
allowTransaction: boolean;
|
|
472
|
+
hasExpiry: boolean;
|
|
473
|
+
expiryDays: number | null;
|
|
474
|
+
sortOrder: number;
|
|
475
|
+
};
|
|
476
|
+
422: {
|
|
477
|
+
type: "validation";
|
|
478
|
+
on: string;
|
|
479
|
+
summary?: string;
|
|
480
|
+
message?: string;
|
|
481
|
+
found?: unknown;
|
|
482
|
+
property?: string;
|
|
483
|
+
expected?: string;
|
|
484
|
+
};
|
|
485
|
+
401: "Unauthorized";
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
442
490
|
}, {
|
|
443
491
|
derive: {};
|
|
444
492
|
resolve: {};
|
|
@@ -31,4 +31,29 @@ export declare abstract class UserLedgerAccountTypeService extends BaseLedgerAcc
|
|
|
31
31
|
}[];
|
|
32
32
|
total: number;
|
|
33
33
|
}>;
|
|
34
|
+
static getLedgerAccountTypeByKey(key: string): Promise<{
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
updatedAt: Date;
|
|
39
|
+
description: string | null;
|
|
40
|
+
key: string;
|
|
41
|
+
isActive: boolean;
|
|
42
|
+
allowDeposit: boolean;
|
|
43
|
+
allowWithdraw: boolean;
|
|
44
|
+
minWithdrawAmount: string;
|
|
45
|
+
maxWithdrawAmount: string;
|
|
46
|
+
allowTransfer: boolean;
|
|
47
|
+
minTransferAmount: string;
|
|
48
|
+
maxTransferAmount: string;
|
|
49
|
+
allowInternalTransfer: boolean;
|
|
50
|
+
allowInternalReceiveTransfer: boolean;
|
|
51
|
+
minInternalTransferAmount: string;
|
|
52
|
+
maxInternalTransferAmount: string;
|
|
53
|
+
internalTransferRatio: string;
|
|
54
|
+
allowTransaction: boolean;
|
|
55
|
+
hasExpiry: boolean;
|
|
56
|
+
expiryDays: number | null;
|
|
57
|
+
sortOrder: number;
|
|
58
|
+
}>;
|
|
34
59
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./service";
|