@r2wa-org/eden 0.0.52 → 0.0.56
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/router.d.ts +9 -12
- package/dist/src/admin/index.d.ts +1772 -848
- package/dist/src/asset/admin/router.d.ts +9 -12
- package/dist/src/asset/user/router.d.ts +6 -6
- package/dist/src/asset-convert-product/admin/router.d.ts +17 -20
- package/dist/src/asset-convert-product/user/router.d.ts +12 -12
- package/dist/src/asset-price/admin/router.d.ts +7 -10
- package/dist/src/asset-price/user/router.d.ts +5 -5
- package/dist/src/asset-type/admin/router.d.ts +7 -10
- package/dist/src/asset-type/user/router.d.ts +2 -2
- package/dist/src/auth/better-auth.d.ts +43 -1
- package/dist/src/auth/permissions.d.ts +31 -1
- package/dist/src/auth/roles.d.ts +90 -0
- package/dist/src/bank-account/admin/router.d.ts +0 -3
- package/dist/src/bank-account/user/router.d.ts +2 -2
- package/dist/src/check-in/admin/router.d.ts +2 -5
- package/dist/src/check-in/user/router.d.ts +10 -10
- package/dist/src/cron/index.d.ts +8 -74
- package/dist/src/db/schemas.d.ts +3 -0
- package/dist/src/deposit/admin/router.d.ts +6 -9
- 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 +8 -0
- package/dist/src/deposit/user/router.d.ts +60 -10
- package/dist/src/deposit/user/service.d.ts +22 -1
- package/dist/src/dynamic-env/admin.router.d.ts +17 -20
- package/dist/src/file-storage/admin/router.d.ts +7 -10
- package/dist/src/file-storage/share/router.d.ts +8 -8
- package/dist/src/file-storage/user/router.d.ts +8 -8
- package/dist/src/index.d.ts +2284 -922
- package/dist/src/ledger/admin/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/admin/router.d.ts +4 -7
- package/dist/src/ledger/admin/service.d.ts +2 -2
- package/dist/src/ledger/db.schemas.d.ts +8 -8
- package/dist/src/ledger/internal/service.d.ts +2 -2
- package/dist/src/ledger/schema.d.ts +6 -6
- package/dist/src/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/user/router.d.ts +4 -4
- package/dist/src/ledger/user/service.d.ts +2 -2
- package/dist/src/ledger-account/admin/router.d.ts +11 -14
- package/dist/src/ledger-account/user/router.d.ts +2 -2
- package/dist/src/ledger-account-import/admin/router.d.ts +12 -15
- package/dist/src/ledger-account-transfer/user/router.d.ts +2 -2
- package/dist/src/ledger-account-type/admin/router.d.ts +9 -12
- package/dist/src/ledger-account-type/user/router.d.ts +2 -2
- package/dist/src/market-data/admin/dto.schemas.d.ts +291 -0
- package/dist/src/market-data/admin/router.d.ts +606 -0
- package/dist/src/market-data/admin/service.d.ts +52 -0
- package/dist/src/market-data/cron.d.ts +6 -0
- package/dist/src/market-data/db.schemas.d.ts +516 -0
- package/dist/src/market-data/errors/index.d.ts +12 -0
- package/dist/src/market-data/errors/locales/zh.d.ts +11 -0
- package/dist/src/market-data/index.d.ts +8 -0
- package/dist/src/market-data/internal/service.d.ts +77 -0
- package/dist/src/market-data/permissions.d.ts +6 -0
- package/dist/src/market-data/schema.d.ts +270 -0
- package/dist/src/market-data/user/dto.schemas.d.ts +289 -0
- package/dist/src/market-data/user/router.d.ts +521 -0
- package/dist/src/market-data/user/service.d.ts +30 -0
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +322 -0
- package/dist/src/market-pricing/admin/router.d.ts +832 -0
- package/dist/src/market-pricing/admin/service.d.ts +129 -0
- package/dist/src/market-pricing/cron.d.ts +6 -0
- package/dist/src/market-pricing/db.schemas.d.ts +828 -0
- package/dist/src/market-pricing/errors/index.d.ts +14 -0
- package/dist/src/market-pricing/errors/locales/zh.d.ts +13 -0
- package/dist/src/market-pricing/internal/service.d.ts +35 -0
- package/dist/src/market-pricing/permissions.d.ts +4 -0
- package/dist/src/market-pricing/schema.d.ts +434 -0
- package/dist/src/news/admin/router.d.ts +19 -22
- package/dist/src/news/user/router.d.ts +11 -11
- package/dist/src/news-category/user/router.d.ts +6 -6
- package/dist/src/notification/admin/router.d.ts +7 -10
- package/dist/src/notification/user/router.d.ts +13 -13
- package/dist/src/receipt-method/admin/router.d.ts +0 -3
- package/dist/src/referral/admin/router.d.ts +4 -7
- package/dist/src/referral/user/router.d.ts +9 -9
- package/dist/src/referral-depth-config/admin/router.d.ts +12 -15
- package/dist/src/server-test/index.d.ts +9 -9
- package/dist/src/shipping-address/admin/router.d.ts +0 -3
- package/dist/src/team/admin/router.d.ts +4 -7
- package/dist/src/team/user/router.d.ts +13 -13
- package/dist/src/trade-market/admin/dto.schemas.d.ts +762 -0
- package/dist/src/trade-market/admin/router.d.ts +848 -0
- package/dist/src/trade-market/admin/service.d.ts +158 -0
- package/dist/src/trade-market/db.schemas.d.ts +1338 -0
- package/dist/src/trade-market/errors/index.d.ts +22 -0
- package/dist/src/trade-market/errors/locales/zh.d.ts +21 -0
- package/dist/src/trade-market/index.d.ts +8 -0
- package/dist/src/trade-market/internal/service.d.ts +239 -0
- package/dist/src/trade-market/permissions.d.ts +5 -0
- package/dist/src/trade-market/schema.d.ts +708 -0
- package/dist/src/trade-market/user/dto.schemas.d.ts +1394 -0
- package/dist/src/trade-market/user/router.d.ts +754 -0
- package/dist/src/trade-market/user/service.d.ts +147 -0
- package/dist/src/transfer/admin/router.d.ts +2 -5
- package/dist/src/transfer/user/router.d.ts +4 -4
- package/dist/src/user/admin/router.d.ts +14 -17
- package/dist/src/user-kyc/admin/router.d.ts +9 -12
- package/dist/src/user-kyc/user/router.d.ts +10 -10
- package/dist/src/user-security/admin/router.d.ts +3 -6
- package/dist/src/user-security/user/router.d.ts +9 -9
- package/dist/src/wallet/admin/router.d.ts +2 -5
- package/dist/src/wallet/user/router.d.ts +6 -6
- package/dist/src/wallet-type/admin/router.d.ts +6 -9
- package/dist/src/wallet-type/user/router.d.ts +2 -2
- package/dist/src/welfare-cycle/admin/router.d.ts +25 -28
- package/dist/src/welfare-cycle/cron.d.ts +2 -53
- package/dist/src/welfare-cycle/user/router.d.ts +17 -17
- package/dist/src/withdraw/admin/router.d.ts +9 -12
- package/dist/src/withdraw/user/router.d.ts +4 -4
- package/package.json +1 -1
package/dist/src/cron/index.d.ts
CHANGED
|
@@ -1,76 +1,10 @@
|
|
|
1
|
-
import { Elysia } from "elysia";
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* 使用 @elysiajs/cron 插件,基于 croner 实现
|
|
6
|
-
* Cron 表达式:秒 分 时 日 月 周
|
|
7
|
-
*
|
|
8
|
-
* NOTE: @elysiajs/cron 只是 croner 的 Elysia 适配层。
|
|
9
|
-
* 当前使用 croner@6.x 以兼容 @elysiajs/cron@1.4.x。
|
|
10
|
-
* 如果未来有安全漏洞或需要新功能,可以直接升级 croner 到最新版本,
|
|
11
|
-
* 并在此处直接使用 croner API(无需 @elysiajs/cron)。
|
|
2
|
+
* Bun in-process cron 使用 5 段表达式(分 时 日 月 周)且按 UTC 解释。
|
|
3
|
+
* 统一在这里做注册、日志和异常兜底,避免每个模块重复样板代码。
|
|
12
4
|
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
resolve: {};
|
|
20
|
-
}, {
|
|
21
|
-
typebox: {};
|
|
22
|
-
error: {};
|
|
23
|
-
} & {
|
|
24
|
-
typebox: {};
|
|
25
|
-
error: {};
|
|
26
|
-
}, {
|
|
27
|
-
schema: {};
|
|
28
|
-
standaloneSchema: {};
|
|
29
|
-
macro: {};
|
|
30
|
-
macroFn: {};
|
|
31
|
-
parser: {};
|
|
32
|
-
response: {};
|
|
33
|
-
} & {
|
|
34
|
-
schema: {};
|
|
35
|
-
standaloneSchema: {};
|
|
36
|
-
macro: {};
|
|
37
|
-
macroFn: {};
|
|
38
|
-
parser: {};
|
|
39
|
-
response: {};
|
|
40
|
-
}, {}, {
|
|
41
|
-
derive: {};
|
|
42
|
-
resolve: {};
|
|
43
|
-
schema: {};
|
|
44
|
-
standaloneSchema: {};
|
|
45
|
-
response: {};
|
|
46
|
-
} & {
|
|
47
|
-
derive: {};
|
|
48
|
-
resolve: {};
|
|
49
|
-
schema: {};
|
|
50
|
-
standaloneSchema: {};
|
|
51
|
-
response: {};
|
|
52
|
-
}, {
|
|
53
|
-
derive: {};
|
|
54
|
-
resolve: {};
|
|
55
|
-
schema: {};
|
|
56
|
-
standaloneSchema: {};
|
|
57
|
-
response: {};
|
|
58
|
-
} & {
|
|
59
|
-
derive: {};
|
|
60
|
-
resolve: {};
|
|
61
|
-
schema: {};
|
|
62
|
-
standaloneSchema: {};
|
|
63
|
-
response: {};
|
|
64
|
-
} & {
|
|
65
|
-
derive: {};
|
|
66
|
-
resolve: {};
|
|
67
|
-
schema: {};
|
|
68
|
-
standaloneSchema: {};
|
|
69
|
-
response: {};
|
|
70
|
-
} & {
|
|
71
|
-
derive: {};
|
|
72
|
-
resolve: {};
|
|
73
|
-
schema: {};
|
|
74
|
-
standaloneSchema: {};
|
|
75
|
-
response: {};
|
|
76
|
-
}>;
|
|
5
|
+
export interface CronTaskDefinition {
|
|
6
|
+
name: string;
|
|
7
|
+
schedule: string;
|
|
8
|
+
run: () => Promise<void> | void;
|
|
9
|
+
}
|
|
10
|
+
export declare function startCronJobs(): void;
|
package/dist/src/db/schemas.d.ts
CHANGED
|
@@ -27,4 +27,7 @@ export * from "../referral-depth-config/schema";
|
|
|
27
27
|
export * from "../news-category/schema";
|
|
28
28
|
export * from "../news/schema";
|
|
29
29
|
export * from "../dynamic-env/schema";
|
|
30
|
+
export * from "../market-pricing/schema";
|
|
31
|
+
export * from "../market-data/schema";
|
|
32
|
+
export * from "../trade-market/schema";
|
|
30
33
|
export * from "../welfare-cycle/schema";
|
|
@@ -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: {
|
|
@@ -470,8 +470,8 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
470
470
|
params: {
|
|
471
471
|
orderId: string;
|
|
472
472
|
};
|
|
473
|
-
query:
|
|
474
|
-
headers:
|
|
473
|
+
query: {};
|
|
474
|
+
headers: {};
|
|
475
475
|
response: {
|
|
476
476
|
200: {
|
|
477
477
|
createdAt: Date;
|
|
@@ -521,8 +521,8 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
521
521
|
params: {
|
|
522
522
|
orderId: string;
|
|
523
523
|
};
|
|
524
|
-
query:
|
|
525
|
-
headers:
|
|
524
|
+
query: {};
|
|
525
|
+
headers: {};
|
|
526
526
|
response: {
|
|
527
527
|
200: {
|
|
528
528
|
createdAt: Date;
|
|
@@ -634,9 +634,6 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
|
|
|
634
634
|
standaloneSchema: {};
|
|
635
635
|
response: {
|
|
636
636
|
401: "Unauthorized";
|
|
637
|
-
} & {
|
|
638
|
-
401: "Unauthorized";
|
|
639
|
-
} & {
|
|
640
637
|
403: "Forbidden: Admins only";
|
|
641
638
|
};
|
|
642
639
|
}>;
|
|
@@ -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" {
|
|
@@ -333,6 +333,14 @@ export declare const createLedgerAccountDepositBodyModel: import("@sinclair/type
|
|
|
333
333
|
paymentProof: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
334
334
|
}>;
|
|
335
335
|
export type LedgerAccountDepositCreateInputType = typeof createLedgerAccountDepositBodyModel.static;
|
|
336
|
+
export declare const createDirectCnyBalanceDepositBodyModel: import("@sinclair/typebox").TObject<{
|
|
337
|
+
amount: import("@sinclair/typebox").TString;
|
|
338
|
+
idempotencyKey: import("@sinclair/typebox").TString;
|
|
339
|
+
paymentChannel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
340
|
+
paymentOrderNo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
341
|
+
paymentProof: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
342
|
+
}>;
|
|
343
|
+
export type DirectCnyBalanceDepositCreateInputType = typeof createDirectCnyBalanceDepositBodyModel.static;
|
|
336
344
|
export declare const depositOrderIdParamsSchema: import("@sinclair/typebox").TObject<{
|
|
337
345
|
orderId: import("@sinclair/typebox").TString;
|
|
338
346
|
}>;
|
|
@@ -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: {
|
|
@@ -513,12 +563,12 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
513
563
|
orders: {
|
|
514
564
|
":orderId": {
|
|
515
565
|
get: {
|
|
516
|
-
body:
|
|
566
|
+
body: {};
|
|
517
567
|
params: {
|
|
518
568
|
orderId: string;
|
|
519
569
|
};
|
|
520
|
-
query:
|
|
521
|
-
headers:
|
|
570
|
+
query: {};
|
|
571
|
+
headers: {};
|
|
522
572
|
response: {
|
|
523
573
|
422: {
|
|
524
574
|
type: "validation";
|
|
@@ -541,12 +591,12 @@ export declare const depositRouter: Elysia<"/deposit", {
|
|
|
541
591
|
":orderId": {
|
|
542
592
|
cancel: {
|
|
543
593
|
post: {
|
|
544
|
-
body:
|
|
594
|
+
body: {};
|
|
545
595
|
params: {
|
|
546
596
|
orderId: string;
|
|
547
597
|
};
|
|
548
|
-
query:
|
|
549
|
-
headers:
|
|
598
|
+
query: {};
|
|
599
|
+
headers: {};
|
|
550
600
|
response: {
|
|
551
601
|
200: {
|
|
552
602
|
createdAt: Date;
|
|
@@ -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;
|
|
@@ -385,10 +385,10 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
385
385
|
} & {
|
|
386
386
|
"dynamic-env": {
|
|
387
387
|
get: {
|
|
388
|
-
body:
|
|
388
|
+
body: {};
|
|
389
389
|
params: {};
|
|
390
|
-
query:
|
|
391
|
-
headers:
|
|
390
|
+
query: {};
|
|
391
|
+
headers: {};
|
|
392
392
|
response: {
|
|
393
393
|
200: {
|
|
394
394
|
createdAt: Date;
|
|
@@ -415,12 +415,12 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
415
415
|
"dynamic-env": {
|
|
416
416
|
":key": {
|
|
417
417
|
get: {
|
|
418
|
-
body:
|
|
418
|
+
body: {};
|
|
419
419
|
params: {
|
|
420
420
|
key: string;
|
|
421
421
|
};
|
|
422
|
-
query:
|
|
423
|
-
headers:
|
|
422
|
+
query: {};
|
|
423
|
+
headers: {};
|
|
424
424
|
response: {
|
|
425
425
|
200: {
|
|
426
426
|
key: "FIXED_OTP_CODE" | "MAINTENANCE_MODE";
|
|
@@ -451,8 +451,8 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
451
451
|
params: {
|
|
452
452
|
key: string;
|
|
453
453
|
};
|
|
454
|
-
query:
|
|
455
|
-
headers:
|
|
454
|
+
query: {};
|
|
455
|
+
headers: {};
|
|
456
456
|
response: {
|
|
457
457
|
200: {
|
|
458
458
|
success: boolean;
|
|
@@ -478,12 +478,12 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
478
478
|
"dynamic-env": {
|
|
479
479
|
":key": {
|
|
480
480
|
delete: {
|
|
481
|
-
body:
|
|
481
|
+
body: {};
|
|
482
482
|
params: {
|
|
483
483
|
key: string;
|
|
484
484
|
};
|
|
485
|
-
query:
|
|
486
|
-
headers:
|
|
485
|
+
query: {};
|
|
486
|
+
headers: {};
|
|
487
487
|
response: {
|
|
488
488
|
200: {
|
|
489
489
|
success: boolean;
|
|
@@ -508,10 +508,10 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
508
508
|
"dynamic-env": {
|
|
509
509
|
"regenerate-otp": {
|
|
510
510
|
post: {
|
|
511
|
-
body:
|
|
511
|
+
body: {};
|
|
512
512
|
params: {};
|
|
513
|
-
query:
|
|
514
|
-
headers:
|
|
513
|
+
query: {};
|
|
514
|
+
headers: {};
|
|
515
515
|
response: {
|
|
516
516
|
200: {
|
|
517
517
|
success: boolean;
|
|
@@ -527,10 +527,10 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
527
527
|
"dynamic-env": {
|
|
528
528
|
reload: {
|
|
529
529
|
post: {
|
|
530
|
-
body:
|
|
530
|
+
body: {};
|
|
531
531
|
params: {};
|
|
532
|
-
query:
|
|
533
|
-
headers:
|
|
532
|
+
query: {};
|
|
533
|
+
headers: {};
|
|
534
534
|
response: {
|
|
535
535
|
200: {
|
|
536
536
|
success: boolean;
|
|
@@ -615,9 +615,6 @@ export declare const dynamicEnvAdminRouter: Elysia<"/dynamic-env", {
|
|
|
615
615
|
standaloneSchema: {};
|
|
616
616
|
response: {
|
|
617
617
|
401: "Unauthorized";
|
|
618
|
-
} & {
|
|
619
|
-
401: "Unauthorized";
|
|
620
|
-
} & {
|
|
621
618
|
403: "Forbidden: Admins only";
|
|
622
619
|
};
|
|
623
620
|
}>;
|
|
@@ -389,8 +389,8 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
389
389
|
fileId: string;
|
|
390
390
|
};
|
|
391
391
|
params: {};
|
|
392
|
-
query:
|
|
393
|
-
headers:
|
|
392
|
+
query: {};
|
|
393
|
+
headers: {};
|
|
394
394
|
response: {
|
|
395
395
|
422: {
|
|
396
396
|
type: "validation";
|
|
@@ -410,7 +410,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
410
410
|
} & {
|
|
411
411
|
file_storage: {
|
|
412
412
|
get: {
|
|
413
|
-
body:
|
|
413
|
+
body: {};
|
|
414
414
|
params: {};
|
|
415
415
|
query: {
|
|
416
416
|
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment" | undefined;
|
|
@@ -423,7 +423,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
423
423
|
pageSize?: number | undefined;
|
|
424
424
|
pageIndex?: number | undefined;
|
|
425
425
|
};
|
|
426
|
-
headers:
|
|
426
|
+
headers: {};
|
|
427
427
|
response: {
|
|
428
428
|
200: {
|
|
429
429
|
data: {
|
|
@@ -494,12 +494,12 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
494
494
|
":id": {
|
|
495
495
|
permanent: {
|
|
496
496
|
delete: {
|
|
497
|
-
body:
|
|
497
|
+
body: {};
|
|
498
498
|
params: {
|
|
499
499
|
id: string;
|
|
500
500
|
};
|
|
501
|
-
query:
|
|
502
|
-
headers:
|
|
501
|
+
query: {};
|
|
502
|
+
headers: {};
|
|
503
503
|
response: {
|
|
504
504
|
200: {
|
|
505
505
|
success: boolean;
|
|
@@ -593,9 +593,6 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
593
593
|
standaloneSchema: {};
|
|
594
594
|
response: {
|
|
595
595
|
401: "Unauthorized";
|
|
596
|
-
} & {
|
|
597
|
-
401: "Unauthorized";
|
|
598
|
-
} & {
|
|
599
596
|
403: "Forbidden: Admins only";
|
|
600
597
|
};
|
|
601
598
|
}>;
|
|
@@ -395,8 +395,8 @@ export declare const fileStorageShareRouter: Elysia<"/file_storage", {
|
|
|
395
395
|
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
396
396
|
};
|
|
397
397
|
params: {};
|
|
398
|
-
query:
|
|
399
|
-
headers:
|
|
398
|
+
query: {};
|
|
399
|
+
headers: {};
|
|
400
400
|
response: {
|
|
401
401
|
200: {
|
|
402
402
|
publicUrl?: string | undefined;
|
|
@@ -433,8 +433,8 @@ export declare const fileStorageShareRouter: Elysia<"/file_storage", {
|
|
|
433
433
|
fileId: string;
|
|
434
434
|
};
|
|
435
435
|
params: {};
|
|
436
|
-
query:
|
|
437
|
-
headers:
|
|
436
|
+
query: {};
|
|
437
|
+
headers: {};
|
|
438
438
|
response: {
|
|
439
439
|
422: {
|
|
440
440
|
type: "validation";
|
|
@@ -459,8 +459,8 @@ export declare const fileStorageShareRouter: Elysia<"/file_storage", {
|
|
|
459
459
|
fileId: string;
|
|
460
460
|
};
|
|
461
461
|
params: {};
|
|
462
|
-
query:
|
|
463
|
-
headers:
|
|
462
|
+
query: {};
|
|
463
|
+
headers: {};
|
|
464
464
|
response: {
|
|
465
465
|
200: {
|
|
466
466
|
expiresAt?: number | undefined;
|
|
@@ -491,8 +491,8 @@ export declare const fileStorageShareRouter: Elysia<"/file_storage", {
|
|
|
491
491
|
fileIds: string[];
|
|
492
492
|
};
|
|
493
493
|
params: {};
|
|
494
|
-
query:
|
|
495
|
-
headers:
|
|
494
|
+
query: {};
|
|
495
|
+
headers: {};
|
|
496
496
|
response: {
|
|
497
497
|
200: {
|
|
498
498
|
expiresAt?: number | undefined;
|
|
@@ -383,7 +383,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
383
383
|
file_storage: {
|
|
384
384
|
list: {
|
|
385
385
|
get: {
|
|
386
|
-
body:
|
|
386
|
+
body: {};
|
|
387
387
|
params: {};
|
|
388
388
|
query: {
|
|
389
389
|
businessType?: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment" | undefined;
|
|
@@ -396,7 +396,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
396
396
|
pageSize?: number | undefined;
|
|
397
397
|
pageIndex?: number | undefined;
|
|
398
398
|
};
|
|
399
|
-
headers:
|
|
399
|
+
headers: {};
|
|
400
400
|
response: {
|
|
401
401
|
200: {
|
|
402
402
|
data: {
|
|
@@ -457,12 +457,12 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
457
457
|
file_storage: {
|
|
458
458
|
":id": {
|
|
459
459
|
get: {
|
|
460
|
-
body:
|
|
460
|
+
body: {};
|
|
461
461
|
params: {
|
|
462
462
|
id: string;
|
|
463
463
|
};
|
|
464
|
-
query:
|
|
465
|
-
headers:
|
|
464
|
+
query: {};
|
|
465
|
+
headers: {};
|
|
466
466
|
response: {
|
|
467
467
|
200: {
|
|
468
468
|
id: string;
|
|
@@ -514,12 +514,12 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
514
514
|
file_storage: {
|
|
515
515
|
":id": {
|
|
516
516
|
delete: {
|
|
517
|
-
body:
|
|
517
|
+
body: {};
|
|
518
518
|
params: {
|
|
519
519
|
id: string;
|
|
520
520
|
};
|
|
521
|
-
query:
|
|
522
|
-
headers:
|
|
521
|
+
query: {};
|
|
522
|
+
headers: {};
|
|
523
523
|
response: {
|
|
524
524
|
200: {
|
|
525
525
|
success: boolean;
|