@r2wa-org/eden 0.0.54 → 0.0.57
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/admin/dto.schemas.d.ts +3 -54
- package/dist/src/admin/admin/router.d.ts +19 -24
- package/dist/src/admin/admin/service.d.ts +0 -2
- package/dist/src/admin/index.d.ts +1329 -343
- package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
- package/dist/src/asset/admin/router.d.ts +132 -32
- package/dist/src/asset/admin/service.d.ts +52 -4
- package/dist/src/asset/user/dto.schemas.d.ts +7 -15
- package/dist/src/asset/user/router.d.ts +15 -15
- package/dist/src/asset/user/service.d.ts +1 -1
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
- package/dist/src/asset-convert-product/admin/router.d.ts +581 -42
- package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
- package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
- package/dist/src/asset-convert-product/permissions.d.ts +2 -2
- package/dist/src/asset-convert-product/user/router.d.ts +20 -20
- package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
- package/dist/src/asset-price/admin/router.d.ts +132 -20
- package/dist/src/asset-price/admin/service.d.ts +157 -0
- package/dist/src/asset-price/errors/index.d.ts +2 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +2 -0
- package/dist/src/asset-price/internal/service.d.ts +1 -0
- package/dist/src/asset-price/user/router.d.ts +13 -13
- package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
- package/dist/src/asset-type/admin/router.d.ts +67 -28
- package/dist/src/asset-type/admin/service.d.ts +16 -6
- package/dist/src/asset-type/db.schemas.d.ts +6 -6
- package/dist/src/asset-type/errors/index.d.ts +6 -0
- package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
- package/dist/src/asset-type/internal/service.d.ts +4 -4
- package/dist/src/asset-type/permissions.d.ts +1 -1
- package/dist/src/asset-type/schema.d.ts +3 -5
- package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
- package/dist/src/asset-type/user/router.d.ts +12 -12
- package/dist/src/asset-type/user/service.d.ts +1 -1
- package/dist/src/auth/better-auth.d.ts +706 -451
- package/dist/src/auth/db.schemas.d.ts +27 -407
- package/dist/src/auth/permissions.d.ts +20 -20
- package/dist/src/auth/roles.d.ts +60 -60
- package/dist/src/auth/router.d.ts +6 -6
- package/dist/src/auth/schema.d.ts +8 -206
- package/dist/src/bank-account/admin/router.d.ts +10 -13
- package/dist/src/bank-account/user/router.d.ts +8 -8
- package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/admin/router.d.ts +12 -16
- package/dist/src/check-in/admin/service.d.ts +0 -1
- package/dist/src/check-in/internal/service.d.ts +0 -1
- package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
- package/dist/src/check-in/user/router.d.ts +18 -19
- package/dist/src/check-in/user/service.d.ts +0 -1
- package/dist/src/cron/index.d.ts +8 -74
- package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
- package/dist/src/deposit/admin/router.d.ts +16 -20
- package/dist/src/deposit/admin/service.d.ts +0 -2
- package/dist/src/deposit/errors/index.d.ts +4 -0
- package/dist/src/deposit/errors/locales/zh.d.ts +2 -0
- package/dist/src/deposit/user/dto.schemas.d.ts +16 -42
- package/dist/src/deposit/user/router.d.ts +68 -19
- package/dist/src/deposit/user/service.d.ts +22 -3
- package/dist/src/dynamic-env/admin.router.d.ts +27 -30
- package/dist/src/env/server.d.ts +1 -1
- package/dist/src/file-storage/admin/router.d.ts +17 -20
- package/dist/src/file-storage/share/router.d.ts +16 -16
- package/dist/src/file-storage/user/router.d.ts +16 -16
- package/dist/src/index.d.ts +1688 -660
- package/dist/src/ledger/admin/router.d.ts +12 -15
- package/dist/src/ledger/user/router.d.ts +10 -10
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +22 -25
- package/dist/src/ledger-account/user/router.d.ts +10 -10
- package/dist/src/ledger-account-import/admin/router.d.ts +22 -25
- package/dist/src/ledger-account-transfer/user/router.d.ts +10 -10
- package/dist/src/ledger-account-type/admin/router.d.ts +19 -22
- package/dist/src/ledger-account-type/user/router.d.ts +10 -10
- package/dist/src/market-data/admin/router.d.ts +17 -20
- package/dist/src/market-data/cron.d.ts +3 -54
- package/dist/src/market-data/user/router.d.ts +12 -12
- package/dist/src/market-pricing/admin/router.d.ts +31 -34
- package/dist/src/market-pricing/cron.d.ts +2 -53
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/admin/router.d.ts +29 -32
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/news/user/router.d.ts +19 -19
- package/dist/src/news-category/user/router.d.ts +12 -12
- package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
- package/dist/src/notification/admin/router.d.ts +17 -20
- package/dist/src/notification/user/dto.schemas.d.ts +2 -2
- package/dist/src/notification/user/router.d.ts +21 -21
- package/dist/src/receipt-method/admin/router.d.ts +10 -13
- package/dist/src/receipt-method/user/router.d.ts +6 -6
- package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
- package/dist/src/referral/admin/router.d.ts +14 -18
- package/dist/src/referral/user/dto.schemas.d.ts +2 -36
- package/dist/src/referral/user/router.d.ts +17 -18
- package/dist/src/referral-depth-config/admin/router.d.ts +22 -25
- package/dist/src/server-test/index.d.ts +15 -15
- package/dist/src/shipping-address/admin/router.d.ts +10 -13
- package/dist/src/shipping-address/user/router.d.ts +6 -6
- package/dist/src/team/admin/dto.schemas.d.ts +2 -36
- package/dist/src/team/admin/router.d.ts +14 -18
- package/dist/src/team/user/dto.schemas.d.ts +5 -90
- package/dist/src/team/user/router.d.ts +21 -24
- package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
- package/dist/src/trade-market/admin/router.d.ts +27 -30
- package/dist/src/trade-market/user/router.d.ts +22 -22
- package/dist/src/transfer/admin/router.d.ts +12 -15
- package/dist/src/transfer/admin/service.d.ts +0 -2
- package/dist/src/transfer/user/router.d.ts +12 -12
- package/dist/src/transfer/user/service.d.ts +0 -2
- package/dist/src/user/admin/dto.schemas.d.ts +1 -21
- package/dist/src/user/admin/router.d.ts +24 -32
- package/dist/src/user/admin/service.d.ts +0 -4
- package/dist/src/user/user/router.d.ts +6 -8
- package/dist/src/user/user/service.d.ts +0 -2
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/user-kyc/admin/router.d.ts +19 -22
- package/dist/src/user-kyc/user/router.d.ts +18 -18
- package/dist/src/user-security/admin/router.d.ts +13 -16
- package/dist/src/user-security/user/router.d.ts +17 -17
- package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
- package/dist/src/wallet/admin/router.d.ts +77 -15
- package/dist/src/wallet/admin/service.d.ts +46 -8
- package/dist/src/wallet/internal/service.d.ts +118 -14
- package/dist/src/wallet/user/dto.schemas.d.ts +4 -2
- package/dist/src/wallet/user/router.d.ts +16 -15
- package/dist/src/wallet/user/service.d.ts +18 -8
- package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
- package/dist/src/wallet-type/admin/router.d.ts +149 -19
- package/dist/src/wallet-type/admin/service.d.ts +51 -0
- package/dist/src/wallet-type/errors/index.d.ts +4 -0
- package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
- package/dist/src/wallet-type/internal/service.d.ts +37 -0
- package/dist/src/wallet-type/user/router.d.ts +10 -10
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/admin/router.d.ts +35 -38
- package/dist/src/welfare-cycle/cron.d.ts +2 -53
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
- package/dist/src/welfare-cycle/user/router.d.ts +66 -71
- package/dist/src/welfare-cycle/user/service.d.ts +1 -1
- package/dist/src/withdraw/admin/router.d.ts +19 -22
- package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
- package/dist/src/withdraw/user/router.d.ts +59 -12
- package/dist/src/withdraw/user/service.d.ts +20 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
2
2
|
createdAt: import("@sinclair/typebox").TDate;
|
|
3
3
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
|
+
userId: import("@sinclair/typebox").TString;
|
|
5
6
|
status: import("@sinclair/typebox").TEnum<{
|
|
6
7
|
pending: "pending";
|
|
7
8
|
approved: "approved";
|
|
@@ -9,13 +10,12 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
9
10
|
completed: "completed";
|
|
10
11
|
cancelled: "cancelled";
|
|
11
12
|
}>;
|
|
12
|
-
|
|
13
|
+
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
14
|
+
amount: import("@sinclair/typebox").TString;
|
|
13
15
|
idempotencyKey: import("@sinclair/typebox").TString;
|
|
14
16
|
orderNo: import("@sinclair/typebox").TString;
|
|
15
17
|
reviewedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
16
18
|
reviewedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
17
|
-
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
18
|
-
amount: import("@sinclair/typebox").TString;
|
|
19
19
|
targetAccountId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
20
20
|
actualAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
21
21
|
fee: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
@@ -118,7 +118,7 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
118
118
|
data: Date;
|
|
119
119
|
driverParam: string;
|
|
120
120
|
notNull: true;
|
|
121
|
-
hasDefault:
|
|
121
|
+
hasDefault: false;
|
|
122
122
|
isPrimaryKey: false;
|
|
123
123
|
isAutoincrement: false;
|
|
124
124
|
hasRuntimeDefault: false;
|
|
@@ -195,23 +195,6 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
195
195
|
identity: undefined;
|
|
196
196
|
generated: undefined;
|
|
197
197
|
}, {}, {}>;
|
|
198
|
-
isAnonymous: import("drizzle-orm/pg-core").PgColumn<{
|
|
199
|
-
name: "is_anonymous";
|
|
200
|
-
tableName: "user";
|
|
201
|
-
dataType: "boolean";
|
|
202
|
-
columnType: "PgBoolean";
|
|
203
|
-
data: boolean;
|
|
204
|
-
driverParam: boolean;
|
|
205
|
-
notNull: false;
|
|
206
|
-
hasDefault: true;
|
|
207
|
-
isPrimaryKey: false;
|
|
208
|
-
isAutoincrement: false;
|
|
209
|
-
hasRuntimeDefault: false;
|
|
210
|
-
enumValues: undefined;
|
|
211
|
-
baseColumn: never;
|
|
212
|
-
identity: undefined;
|
|
213
|
-
generated: undefined;
|
|
214
|
-
}, {}, {}>;
|
|
215
198
|
phoneNumber: import("drizzle-orm/pg-core").PgColumn<{
|
|
216
199
|
name: "phone_number";
|
|
217
200
|
tableName: "user";
|
|
@@ -358,6 +341,7 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
358
341
|
createdAt: import("@sinclair/typebox").TDate;
|
|
359
342
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
360
343
|
id: import("@sinclair/typebox").TString;
|
|
344
|
+
userId: import("@sinclair/typebox").TString;
|
|
361
345
|
status: import("@sinclair/typebox").TEnum<{
|
|
362
346
|
pending: "pending";
|
|
363
347
|
approved: "approved";
|
|
@@ -365,13 +349,12 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
365
349
|
completed: "completed";
|
|
366
350
|
cancelled: "cancelled";
|
|
367
351
|
}>;
|
|
368
|
-
|
|
352
|
+
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
353
|
+
amount: import("@sinclair/typebox").TString;
|
|
369
354
|
idempotencyKey: import("@sinclair/typebox").TString;
|
|
370
355
|
orderNo: import("@sinclair/typebox").TString;
|
|
371
356
|
reviewedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
372
357
|
reviewedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
373
|
-
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
374
|
-
amount: import("@sinclair/typebox").TString;
|
|
375
358
|
targetAccountId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
376
359
|
actualAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
377
360
|
fee: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
@@ -474,7 +457,7 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
474
457
|
data: Date;
|
|
475
458
|
driverParam: string;
|
|
476
459
|
notNull: true;
|
|
477
|
-
hasDefault:
|
|
460
|
+
hasDefault: false;
|
|
478
461
|
isPrimaryKey: false;
|
|
479
462
|
isAutoincrement: false;
|
|
480
463
|
hasRuntimeDefault: false;
|
|
@@ -551,23 +534,6 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
551
534
|
identity: undefined;
|
|
552
535
|
generated: undefined;
|
|
553
536
|
}, {}, {}>;
|
|
554
|
-
isAnonymous: import("drizzle-orm/pg-core").PgColumn<{
|
|
555
|
-
name: "is_anonymous";
|
|
556
|
-
tableName: "user";
|
|
557
|
-
dataType: "boolean";
|
|
558
|
-
columnType: "PgBoolean";
|
|
559
|
-
data: boolean;
|
|
560
|
-
driverParam: boolean;
|
|
561
|
-
notNull: false;
|
|
562
|
-
hasDefault: true;
|
|
563
|
-
isPrimaryKey: false;
|
|
564
|
-
isAutoincrement: false;
|
|
565
|
-
hasRuntimeDefault: false;
|
|
566
|
-
enumValues: undefined;
|
|
567
|
-
baseColumn: never;
|
|
568
|
-
identity: undefined;
|
|
569
|
-
generated: undefined;
|
|
570
|
-
}, {}, {}>;
|
|
571
537
|
phoneNumber: import("drizzle-orm/pg-core").PgColumn<{
|
|
572
538
|
name: "phone_number";
|
|
573
539
|
tableName: "user";
|
|
@@ -41,7 +41,7 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -175,11 +175,11 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
177
|
image?: string | null | undefined | undefined;
|
|
178
|
-
phoneNumber?: string | null | undefined;
|
|
179
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
180
178
|
twoFactorEnabled: boolean | null | undefined;
|
|
181
179
|
username?: string | null | undefined;
|
|
182
180
|
displayUsername?: string | null | undefined;
|
|
181
|
+
phoneNumber?: string | null | undefined;
|
|
182
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
183
183
|
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
185
|
banReason?: string | null | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -351,11 +351,11 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
353
|
image?: string | null | undefined | undefined;
|
|
354
|
-
phoneNumber?: string | null | undefined;
|
|
355
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
356
354
|
twoFactorEnabled: boolean | null | undefined;
|
|
357
355
|
username?: string | null | undefined;
|
|
358
356
|
displayUsername?: string | null | undefined;
|
|
357
|
+
phoneNumber?: string | null | undefined;
|
|
358
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
359
359
|
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
361
|
banReason?: string | null | undefined;
|
|
@@ -382,7 +382,7 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
382
382
|
} & {
|
|
383
383
|
deposit: {
|
|
384
384
|
get: {
|
|
385
|
-
body:
|
|
385
|
+
body: {};
|
|
386
386
|
params: {};
|
|
387
387
|
query: {
|
|
388
388
|
userId?: string | undefined;
|
|
@@ -393,7 +393,7 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
393
393
|
pageSize?: number | undefined;
|
|
394
394
|
pageIndex?: number | undefined;
|
|
395
395
|
};
|
|
396
|
-
headers:
|
|
396
|
+
headers: {};
|
|
397
397
|
response: {
|
|
398
398
|
200: {
|
|
399
399
|
data: {
|
|
@@ -408,7 +408,6 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
408
408
|
twoFactorEnabled: boolean | null;
|
|
409
409
|
username: string | null;
|
|
410
410
|
displayUsername: string | null;
|
|
411
|
-
isAnonymous: boolean | null;
|
|
412
411
|
phoneNumber: string | null;
|
|
413
412
|
phoneNumberVerified: boolean | null;
|
|
414
413
|
role: string | null;
|
|
@@ -470,8 +469,8 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
470
469
|
params: {
|
|
471
470
|
orderId: string;
|
|
472
471
|
};
|
|
473
|
-
query:
|
|
474
|
-
headers:
|
|
472
|
+
query: {};
|
|
473
|
+
headers: {};
|
|
475
474
|
response: {
|
|
476
475
|
200: {
|
|
477
476
|
createdAt: Date;
|
|
@@ -521,8 +520,8 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
521
520
|
params: {
|
|
522
521
|
orderId: string;
|
|
523
522
|
};
|
|
524
|
-
query:
|
|
525
|
-
headers:
|
|
523
|
+
query: {};
|
|
524
|
+
headers: {};
|
|
526
525
|
response: {
|
|
527
526
|
200: {
|
|
528
527
|
createdAt: Date;
|
|
@@ -578,11 +577,11 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
578
577
|
emailVerified: boolean;
|
|
579
578
|
name: string;
|
|
580
579
|
image?: string | null | undefined | undefined;
|
|
581
|
-
phoneNumber?: string | null | undefined;
|
|
582
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
583
580
|
twoFactorEnabled: boolean | null | undefined;
|
|
584
581
|
username?: string | null | undefined;
|
|
585
582
|
displayUsername?: string | null | undefined;
|
|
583
|
+
phoneNumber?: string | null | undefined;
|
|
584
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
586
585
|
banned: boolean | null | undefined;
|
|
587
586
|
role?: string | null | undefined;
|
|
588
587
|
banReason?: string | null | undefined;
|
|
@@ -608,11 +607,11 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
608
607
|
emailVerified: boolean;
|
|
609
608
|
name: string;
|
|
610
609
|
image?: string | null | undefined | undefined;
|
|
611
|
-
phoneNumber?: string | null | undefined;
|
|
612
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
613
610
|
twoFactorEnabled: boolean | null | undefined;
|
|
614
611
|
username?: string | null | undefined;
|
|
615
612
|
displayUsername?: string | null | undefined;
|
|
613
|
+
phoneNumber?: string | null | undefined;
|
|
614
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
616
615
|
banned: boolean | null | undefined;
|
|
617
616
|
role?: string | null | undefined;
|
|
618
617
|
banReason?: string | null | undefined;
|
|
@@ -634,9 +633,6 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
634
633
|
standaloneSchema: {};
|
|
635
634
|
response: {
|
|
636
635
|
401: "Unauthorized";
|
|
637
|
-
} & {
|
|
638
|
-
401: "Unauthorized";
|
|
639
|
-
} & {
|
|
640
636
|
403: "Forbidden: Admins only";
|
|
641
637
|
};
|
|
642
638
|
}>;
|
|
@@ -75,7 +75,6 @@ export declare abstract class AdminDepositService extends BaseDepositService {
|
|
|
75
75
|
twoFactorEnabled: boolean | null;
|
|
76
76
|
username: string | null;
|
|
77
77
|
displayUsername: string | null;
|
|
78
|
-
isAnonymous: boolean | null;
|
|
79
78
|
phoneNumber: string | null;
|
|
80
79
|
phoneNumberVerified: boolean | null;
|
|
81
80
|
role: string | null;
|
|
@@ -117,7 +116,6 @@ export declare abstract class AdminDepositService extends BaseDepositService {
|
|
|
117
116
|
twoFactorEnabled: boolean | null;
|
|
118
117
|
username: string | null;
|
|
119
118
|
displayUsername: string | null;
|
|
120
|
-
isAnonymous: boolean | null;
|
|
121
119
|
phoneNumber: string | null;
|
|
122
120
|
phoneNumberVerified: boolean | null;
|
|
123
121
|
role: string | null;
|
|
@@ -32,6 +32,10 @@ export declare const DepositErrorCodes: {
|
|
|
32
32
|
readonly DEPOSIT_ACCOUNT_NOT_ALLOWED: "DEPOSIT_ACCOUNT_NOT_ALLOWED";
|
|
33
33
|
/** 充值订单数据不完整 */
|
|
34
34
|
readonly DEPOSIT_LEDGER_ACCOUNT_ORDER_DATA_INVALID: "DEPOSIT_LEDGER_ACCOUNT_ORDER_DATA_INVALID";
|
|
35
|
+
/** CNY 资产不存在 */
|
|
36
|
+
readonly DEPOSIT_CNY_ASSET_NOT_FOUND: "DEPOSIT_CNY_ASSET_NOT_FOUND";
|
|
37
|
+
/** 幂等键冲突 */
|
|
38
|
+
readonly DEPOSIT_IDEMPOTENCY_CONFLICT: "DEPOSIT_IDEMPOTENCY_CONFLICT";
|
|
35
39
|
};
|
|
36
40
|
type DepositErrorCodesType = typeof DepositErrorCodes;
|
|
37
41
|
export type DepositErrorCode = keyof DepositErrorCodesType;
|
|
@@ -13,6 +13,8 @@ export declare const zh: {
|
|
|
13
13
|
DEPOSIT_ACCOUNT_NOT_FOUND: string;
|
|
14
14
|
DEPOSIT_ACCOUNT_NOT_ALLOWED: string;
|
|
15
15
|
DEPOSIT_LEDGER_ACCOUNT_ORDER_DATA_INVALID: string;
|
|
16
|
+
DEPOSIT_CNY_ASSET_NOT_FOUND: string;
|
|
17
|
+
DEPOSIT_IDEMPOTENCY_CONFLICT: string;
|
|
16
18
|
};
|
|
17
19
|
type ZHType = typeof zh;
|
|
18
20
|
declare module "../../../error/messages" {
|
|
@@ -2,6 +2,7 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
2
2
|
createdAt: import("@sinclair/typebox").TDate;
|
|
3
3
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
|
+
userId: import("@sinclair/typebox").TString;
|
|
5
6
|
status: import("@sinclair/typebox").TEnum<{
|
|
6
7
|
pending: "pending";
|
|
7
8
|
approved: "approved";
|
|
@@ -9,13 +10,12 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
9
10
|
completed: "completed";
|
|
10
11
|
cancelled: "cancelled";
|
|
11
12
|
}>;
|
|
12
|
-
|
|
13
|
+
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
14
|
+
amount: import("@sinclair/typebox").TString;
|
|
13
15
|
idempotencyKey: import("@sinclair/typebox").TString;
|
|
14
16
|
orderNo: import("@sinclair/typebox").TString;
|
|
15
17
|
reviewedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
16
18
|
reviewedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
17
|
-
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
18
|
-
amount: import("@sinclair/typebox").TString;
|
|
19
19
|
targetAccountId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
20
20
|
actualAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
21
21
|
fee: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
@@ -118,7 +118,7 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
118
118
|
data: Date;
|
|
119
119
|
driverParam: string;
|
|
120
120
|
notNull: true;
|
|
121
|
-
hasDefault:
|
|
121
|
+
hasDefault: false;
|
|
122
122
|
isPrimaryKey: false;
|
|
123
123
|
isAutoincrement: false;
|
|
124
124
|
hasRuntimeDefault: false;
|
|
@@ -195,23 +195,6 @@ export declare const depositOrderSelectModel: import("@sinclair/typebox").TObjec
|
|
|
195
195
|
identity: undefined;
|
|
196
196
|
generated: undefined;
|
|
197
197
|
}, {}, {}>;
|
|
198
|
-
isAnonymous: import("drizzle-orm/pg-core").PgColumn<{
|
|
199
|
-
name: "is_anonymous";
|
|
200
|
-
tableName: "user";
|
|
201
|
-
dataType: "boolean";
|
|
202
|
-
columnType: "PgBoolean";
|
|
203
|
-
data: boolean;
|
|
204
|
-
driverParam: boolean;
|
|
205
|
-
notNull: false;
|
|
206
|
-
hasDefault: true;
|
|
207
|
-
isPrimaryKey: false;
|
|
208
|
-
isAutoincrement: false;
|
|
209
|
-
hasRuntimeDefault: false;
|
|
210
|
-
enumValues: undefined;
|
|
211
|
-
baseColumn: never;
|
|
212
|
-
identity: undefined;
|
|
213
|
-
generated: undefined;
|
|
214
|
-
}, {}, {}>;
|
|
215
198
|
phoneNumber: import("drizzle-orm/pg-core").PgColumn<{
|
|
216
199
|
name: "phone_number";
|
|
217
200
|
tableName: "user";
|
|
@@ -333,6 +316,14 @@ export declare const createLedgerAccountDepositBodyModel: import("@sinclair/type
|
|
|
333
316
|
paymentProof: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
334
317
|
}>;
|
|
335
318
|
export type LedgerAccountDepositCreateInputType = typeof createLedgerAccountDepositBodyModel.static;
|
|
319
|
+
export declare const createDirectCnyBalanceDepositBodyModel: import("@sinclair/typebox").TObject<{
|
|
320
|
+
amount: import("@sinclair/typebox").TString;
|
|
321
|
+
idempotencyKey: import("@sinclair/typebox").TString;
|
|
322
|
+
paymentChannel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
323
|
+
paymentOrderNo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
324
|
+
paymentProof: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
325
|
+
}>;
|
|
326
|
+
export type DirectCnyBalanceDepositCreateInputType = typeof createDirectCnyBalanceDepositBodyModel.static;
|
|
336
327
|
export declare const depositOrderIdParamsSchema: import("@sinclair/typebox").TObject<{
|
|
337
328
|
orderId: import("@sinclair/typebox").TString;
|
|
338
329
|
}>;
|
|
@@ -356,6 +347,7 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
356
347
|
createdAt: import("@sinclair/typebox").TDate;
|
|
357
348
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
358
349
|
id: import("@sinclair/typebox").TString;
|
|
350
|
+
userId: import("@sinclair/typebox").TString;
|
|
359
351
|
status: import("@sinclair/typebox").TEnum<{
|
|
360
352
|
pending: "pending";
|
|
361
353
|
approved: "approved";
|
|
@@ -363,13 +355,12 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
363
355
|
completed: "completed";
|
|
364
356
|
cancelled: "cancelled";
|
|
365
357
|
}>;
|
|
366
|
-
|
|
358
|
+
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
359
|
+
amount: import("@sinclair/typebox").TString;
|
|
367
360
|
idempotencyKey: import("@sinclair/typebox").TString;
|
|
368
361
|
orderNo: import("@sinclair/typebox").TString;
|
|
369
362
|
reviewedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
370
363
|
reviewedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
371
|
-
assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
372
|
-
amount: import("@sinclair/typebox").TString;
|
|
373
364
|
targetAccountId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
374
365
|
actualAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
375
366
|
fee: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
@@ -472,7 +463,7 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
472
463
|
data: Date;
|
|
473
464
|
driverParam: string;
|
|
474
465
|
notNull: true;
|
|
475
|
-
hasDefault:
|
|
466
|
+
hasDefault: false;
|
|
476
467
|
isPrimaryKey: false;
|
|
477
468
|
isAutoincrement: false;
|
|
478
469
|
hasRuntimeDefault: false;
|
|
@@ -549,23 +540,6 @@ export declare const depositOrderListResponseModel: import("@sinclair/typebox").
|
|
|
549
540
|
identity: undefined;
|
|
550
541
|
generated: undefined;
|
|
551
542
|
}, {}, {}>;
|
|
552
|
-
isAnonymous: import("drizzle-orm/pg-core").PgColumn<{
|
|
553
|
-
name: "is_anonymous";
|
|
554
|
-
tableName: "user";
|
|
555
|
-
dataType: "boolean";
|
|
556
|
-
columnType: "PgBoolean";
|
|
557
|
-
data: boolean;
|
|
558
|
-
driverParam: boolean;
|
|
559
|
-
notNull: false;
|
|
560
|
-
hasDefault: true;
|
|
561
|
-
isPrimaryKey: false;
|
|
562
|
-
isAutoincrement: false;
|
|
563
|
-
hasRuntimeDefault: false;
|
|
564
|
-
enumValues: undefined;
|
|
565
|
-
baseColumn: never;
|
|
566
|
-
identity: undefined;
|
|
567
|
-
generated: undefined;
|
|
568
|
-
}, {}, {}>;
|
|
569
543
|
phoneNumber: import("drizzle-orm/pg-core").PgColumn<{
|
|
570
544
|
name: "phone_number";
|
|
571
545
|
tableName: "user";
|
|
@@ -41,7 +41,7 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -175,11 +175,11 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
177
|
image?: string | null | undefined | undefined;
|
|
178
|
-
phoneNumber?: string | null | undefined;
|
|
179
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
180
178
|
twoFactorEnabled: boolean | null | undefined;
|
|
181
179
|
username?: string | null | undefined;
|
|
182
180
|
displayUsername?: string | null | undefined;
|
|
181
|
+
phoneNumber?: string | null | undefined;
|
|
182
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
183
183
|
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
185
|
banReason?: string | null | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
217
217
|
route: string;
|
|
218
218
|
request: Request;
|
|
219
219
|
store: {};
|
|
220
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -351,11 +351,11 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
353
|
image?: string | null | undefined | undefined;
|
|
354
|
-
phoneNumber?: string | null | undefined;
|
|
355
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
356
354
|
twoFactorEnabled: boolean | null | undefined;
|
|
357
355
|
username?: string | null | undefined;
|
|
358
356
|
displayUsername?: string | null | undefined;
|
|
357
|
+
phoneNumber?: string | null | undefined;
|
|
358
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
359
359
|
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
361
|
banReason?: string | null | undefined;
|
|
@@ -392,8 +392,58 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
392
392
|
targetAccountId: string;
|
|
393
393
|
};
|
|
394
394
|
params: {};
|
|
395
|
-
query:
|
|
396
|
-
headers:
|
|
395
|
+
query: {};
|
|
396
|
+
headers: {};
|
|
397
|
+
response: {
|
|
398
|
+
200: {
|
|
399
|
+
id: string;
|
|
400
|
+
createdAt: Date;
|
|
401
|
+
updatedAt: Date;
|
|
402
|
+
userId: string;
|
|
403
|
+
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
404
|
+
reviewedAt: Date | null;
|
|
405
|
+
reviewedBy: string | null;
|
|
406
|
+
assetId: string | null;
|
|
407
|
+
amount: string;
|
|
408
|
+
idempotencyKey: string;
|
|
409
|
+
orderNo: string;
|
|
410
|
+
targetAccountId: string | null;
|
|
411
|
+
actualAmount: string | null;
|
|
412
|
+
fee: string | null;
|
|
413
|
+
paymentChannel: string | null;
|
|
414
|
+
paymentOrderNo: string | null;
|
|
415
|
+
paymentProof: string | null;
|
|
416
|
+
reviewNote: string | null;
|
|
417
|
+
completedAt: Date | null;
|
|
418
|
+
};
|
|
419
|
+
422: {
|
|
420
|
+
type: "validation";
|
|
421
|
+
on: string;
|
|
422
|
+
summary?: string;
|
|
423
|
+
message?: string;
|
|
424
|
+
found?: unknown;
|
|
425
|
+
property?: string;
|
|
426
|
+
expected?: string;
|
|
427
|
+
};
|
|
428
|
+
401: "Unauthorized";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
} & {
|
|
434
|
+
deposit: {
|
|
435
|
+
direct_cny_balance: {
|
|
436
|
+
post: {
|
|
437
|
+
body: {
|
|
438
|
+
paymentChannel?: string | undefined;
|
|
439
|
+
paymentOrderNo?: string | undefined;
|
|
440
|
+
paymentProof?: string | undefined;
|
|
441
|
+
amount: string;
|
|
442
|
+
idempotencyKey: string;
|
|
443
|
+
};
|
|
444
|
+
params: {};
|
|
445
|
+
query: {};
|
|
446
|
+
headers: {};
|
|
397
447
|
response: {
|
|
398
448
|
200: {
|
|
399
449
|
id: string;
|
|
@@ -434,7 +484,7 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
434
484
|
deposit: {
|
|
435
485
|
orders: {
|
|
436
486
|
get: {
|
|
437
|
-
body:
|
|
487
|
+
body: {};
|
|
438
488
|
params: {};
|
|
439
489
|
query: {
|
|
440
490
|
status?: "pending" | "approved" | "rejected" | "completed" | "cancelled" | undefined;
|
|
@@ -443,7 +493,7 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
443
493
|
pageSize?: number | undefined;
|
|
444
494
|
pageIndex?: number | undefined;
|
|
445
495
|
};
|
|
446
|
-
headers:
|
|
496
|
+
headers: {};
|
|
447
497
|
response: {
|
|
448
498
|
200: {
|
|
449
499
|
data: {
|
|
@@ -458,7 +508,6 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
458
508
|
twoFactorEnabled: boolean | null;
|
|
459
509
|
username: string | null;
|
|
460
510
|
displayUsername: string | null;
|
|
461
|
-
isAnonymous: boolean | null;
|
|
462
511
|
phoneNumber: string | null;
|
|
463
512
|
phoneNumberVerified: boolean | null;
|
|
464
513
|
role: string | null;
|
|
@@ -513,12 +562,12 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
513
562
|
orders: {
|
|
514
563
|
":orderId": {
|
|
515
564
|
get: {
|
|
516
|
-
body:
|
|
565
|
+
body: {};
|
|
517
566
|
params: {
|
|
518
567
|
orderId: string;
|
|
519
568
|
};
|
|
520
|
-
query:
|
|
521
|
-
headers:
|
|
569
|
+
query: {};
|
|
570
|
+
headers: {};
|
|
522
571
|
response: {
|
|
523
572
|
422: {
|
|
524
573
|
type: "validation";
|
|
@@ -541,12 +590,12 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
541
590
|
":orderId": {
|
|
542
591
|
cancel: {
|
|
543
592
|
post: {
|
|
544
|
-
body:
|
|
593
|
+
body: {};
|
|
545
594
|
params: {
|
|
546
595
|
orderId: string;
|
|
547
596
|
};
|
|
548
|
-
query:
|
|
549
|
-
headers:
|
|
597
|
+
query: {};
|
|
598
|
+
headers: {};
|
|
550
599
|
response: {
|
|
551
600
|
200: {
|
|
552
601
|
createdAt: Date;
|
|
@@ -602,11 +651,11 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
602
651
|
emailVerified: boolean;
|
|
603
652
|
name: string;
|
|
604
653
|
image?: string | null | undefined | undefined;
|
|
605
|
-
phoneNumber?: string | null | undefined;
|
|
606
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
607
654
|
twoFactorEnabled: boolean | null | undefined;
|
|
608
655
|
username?: string | null | undefined;
|
|
609
656
|
displayUsername?: string | null | undefined;
|
|
657
|
+
phoneNumber?: string | null | undefined;
|
|
658
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
610
659
|
banned: boolean | null | undefined;
|
|
611
660
|
role?: string | null | undefined;
|
|
612
661
|
banReason?: string | null | undefined;
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import { BaseDepositService } from "../internal/service";
|
|
2
|
-
import type { DepositListQueryType, LedgerAccountDepositCreateInputType } from "./dto.schemas";
|
|
2
|
+
import type { DepositListQueryType, DirectCnyBalanceDepositCreateInputType, LedgerAccountDepositCreateInputType } from "./dto.schemas";
|
|
3
3
|
export declare abstract class UserDepositService extends BaseDepositService {
|
|
4
|
+
static createDirectCnyBalanceDeposit(userId: string, input: DirectCnyBalanceDepositCreateInputType): Promise<{
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
userId: string;
|
|
9
|
+
status: "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
10
|
+
reviewedAt: Date | null;
|
|
11
|
+
reviewedBy: string | null;
|
|
12
|
+
assetId: string | null;
|
|
13
|
+
amount: string;
|
|
14
|
+
idempotencyKey: string;
|
|
15
|
+
orderNo: string;
|
|
16
|
+
targetAccountId: string | null;
|
|
17
|
+
actualAmount: string | null;
|
|
18
|
+
fee: string | null;
|
|
19
|
+
paymentChannel: string | null;
|
|
20
|
+
paymentOrderNo: string | null;
|
|
21
|
+
paymentProof: string | null;
|
|
22
|
+
reviewNote: string | null;
|
|
23
|
+
completedAt: Date | null;
|
|
24
|
+
}>;
|
|
4
25
|
static createLedgerAccountDeposit(userId: string, input: LedgerAccountDepositCreateInputType): Promise<{
|
|
5
26
|
id: string;
|
|
6
27
|
createdAt: Date;
|
|
@@ -75,7 +96,6 @@ export declare abstract class UserDepositService extends BaseDepositService {
|
|
|
75
96
|
twoFactorEnabled: boolean | null;
|
|
76
97
|
username: string | null;
|
|
77
98
|
displayUsername: string | null;
|
|
78
|
-
isAnonymous: boolean | null;
|
|
79
99
|
phoneNumber: string | null;
|
|
80
100
|
phoneNumberVerified: boolean | null;
|
|
81
101
|
role: string | null;
|
|
@@ -117,7 +137,6 @@ export declare abstract class UserDepositService extends BaseDepositService {
|
|
|
117
137
|
twoFactorEnabled: boolean | null;
|
|
118
138
|
username: string | null;
|
|
119
139
|
displayUsername: string | null;
|
|
120
|
-
isAnonymous: boolean | null;
|
|
121
140
|
phoneNumber: string | null;
|
|
122
141
|
phoneNumberVerified: boolean | null;
|
|
123
142
|
role: string | null;
|