@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
|
@@ -41,7 +41,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
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 marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
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 marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
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 marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
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;
|
|
@@ -398,8 +398,8 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
398
398
|
quoteAssetId: string;
|
|
399
399
|
};
|
|
400
400
|
params: {};
|
|
401
|
-
query:
|
|
402
|
-
headers:
|
|
401
|
+
query: {};
|
|
402
|
+
headers: {};
|
|
403
403
|
response: {
|
|
404
404
|
200: {
|
|
405
405
|
id: string;
|
|
@@ -455,8 +455,8 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
455
455
|
params: {
|
|
456
456
|
id: string;
|
|
457
457
|
};
|
|
458
|
-
query:
|
|
459
|
-
headers:
|
|
458
|
+
query: {};
|
|
459
|
+
headers: {};
|
|
460
460
|
response: {
|
|
461
461
|
200: {
|
|
462
462
|
createdAt: Date;
|
|
@@ -497,12 +497,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
497
497
|
":id": {
|
|
498
498
|
enable: {
|
|
499
499
|
post: {
|
|
500
|
-
body:
|
|
500
|
+
body: {};
|
|
501
501
|
params: {
|
|
502
502
|
id: string;
|
|
503
503
|
};
|
|
504
|
-
query:
|
|
505
|
-
headers:
|
|
504
|
+
query: {};
|
|
505
|
+
headers: {};
|
|
506
506
|
response: {
|
|
507
507
|
200: {
|
|
508
508
|
createdAt: Date;
|
|
@@ -544,12 +544,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
544
544
|
":id": {
|
|
545
545
|
disable: {
|
|
546
546
|
post: {
|
|
547
|
-
body:
|
|
547
|
+
body: {};
|
|
548
548
|
params: {
|
|
549
549
|
id: string;
|
|
550
550
|
};
|
|
551
|
-
query:
|
|
552
|
-
headers:
|
|
551
|
+
query: {};
|
|
552
|
+
headers: {};
|
|
553
553
|
response: {
|
|
554
554
|
200: {
|
|
555
555
|
createdAt: Date;
|
|
@@ -589,7 +589,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
589
589
|
market_pricing: {
|
|
590
590
|
strategies: {
|
|
591
591
|
get: {
|
|
592
|
-
body:
|
|
592
|
+
body: {};
|
|
593
593
|
params: {};
|
|
594
594
|
query: {
|
|
595
595
|
baseAssetId?: string | undefined;
|
|
@@ -600,7 +600,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
600
600
|
pageSize?: number | undefined;
|
|
601
601
|
pageIndex?: number | undefined;
|
|
602
602
|
};
|
|
603
|
-
headers:
|
|
603
|
+
headers: {};
|
|
604
604
|
response: {
|
|
605
605
|
200: {
|
|
606
606
|
data: {
|
|
@@ -648,12 +648,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
648
648
|
strategies: {
|
|
649
649
|
":id": {
|
|
650
650
|
get: {
|
|
651
|
-
body:
|
|
651
|
+
body: {};
|
|
652
652
|
params: {
|
|
653
653
|
id: string;
|
|
654
654
|
};
|
|
655
|
-
query:
|
|
656
|
-
headers:
|
|
655
|
+
query: {};
|
|
656
|
+
headers: {};
|
|
657
657
|
response: {
|
|
658
658
|
200: {
|
|
659
659
|
id: string;
|
|
@@ -694,12 +694,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
694
694
|
":id": {
|
|
695
695
|
"run-now": {
|
|
696
696
|
post: {
|
|
697
|
-
body:
|
|
697
|
+
body: {};
|
|
698
698
|
params: {
|
|
699
699
|
id: string;
|
|
700
700
|
};
|
|
701
|
-
query:
|
|
702
|
-
headers:
|
|
701
|
+
query: {};
|
|
702
|
+
headers: {};
|
|
703
703
|
response: {
|
|
704
704
|
200: {
|
|
705
705
|
price: string;
|
|
@@ -729,10 +729,10 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
729
729
|
jobs: {
|
|
730
730
|
"run-enabled": {
|
|
731
731
|
post: {
|
|
732
|
-
body:
|
|
732
|
+
body: {};
|
|
733
733
|
params: {};
|
|
734
|
-
query:
|
|
735
|
-
headers:
|
|
734
|
+
query: {};
|
|
735
|
+
headers: {};
|
|
736
736
|
response: {
|
|
737
737
|
200: {
|
|
738
738
|
successCount: number;
|
|
@@ -771,11 +771,11 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
771
771
|
emailVerified: boolean;
|
|
772
772
|
name: string;
|
|
773
773
|
image?: string | null | undefined | undefined;
|
|
774
|
-
phoneNumber?: string | null | undefined;
|
|
775
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
776
774
|
twoFactorEnabled: boolean | null | undefined;
|
|
777
775
|
username?: string | null | undefined;
|
|
778
776
|
displayUsername?: string | null | undefined;
|
|
777
|
+
phoneNumber?: string | null | undefined;
|
|
778
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
779
779
|
banned: boolean | null | undefined;
|
|
780
780
|
role?: string | null | undefined;
|
|
781
781
|
banReason?: string | null | undefined;
|
|
@@ -801,11 +801,11 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
801
801
|
emailVerified: boolean;
|
|
802
802
|
name: string;
|
|
803
803
|
image?: string | null | undefined | undefined;
|
|
804
|
-
phoneNumber?: string | null | undefined;
|
|
805
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
806
804
|
twoFactorEnabled: boolean | null | undefined;
|
|
807
805
|
username?: string | null | undefined;
|
|
808
806
|
displayUsername?: string | null | undefined;
|
|
807
|
+
phoneNumber?: string | null | undefined;
|
|
808
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
809
809
|
banned: boolean | null | undefined;
|
|
810
810
|
role?: string | null | undefined;
|
|
811
811
|
banReason?: string | null | undefined;
|
|
@@ -827,9 +827,6 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
827
827
|
standaloneSchema: {};
|
|
828
828
|
response: {
|
|
829
829
|
401: "Unauthorized";
|
|
830
|
-
} & {
|
|
831
|
-
401: "Unauthorized";
|
|
832
|
-
} & {
|
|
833
830
|
403: "Forbidden: Admins only";
|
|
834
831
|
};
|
|
835
832
|
}>;
|
|
@@ -1,57 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CronTaskDefinition } from "../cron";
|
|
2
2
|
/**
|
|
3
3
|
* 自动报价任务
|
|
4
4
|
* 每分钟执行启用策略产价
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
7
|
-
decorator: {};
|
|
8
|
-
store: {
|
|
9
|
-
cron: Record<`${string}-market-pricing-run-enabled`, import("croner").Cron>;
|
|
10
|
-
};
|
|
11
|
-
derive: {};
|
|
12
|
-
resolve: {};
|
|
13
|
-
}, {
|
|
14
|
-
typebox: {};
|
|
15
|
-
error: {};
|
|
16
|
-
} & {
|
|
17
|
-
typebox: {};
|
|
18
|
-
error: {};
|
|
19
|
-
}, {
|
|
20
|
-
schema: {};
|
|
21
|
-
standaloneSchema: {};
|
|
22
|
-
macro: {};
|
|
23
|
-
macroFn: {};
|
|
24
|
-
parser: {};
|
|
25
|
-
response: {};
|
|
26
|
-
} & {
|
|
27
|
-
schema: {};
|
|
28
|
-
standaloneSchema: {};
|
|
29
|
-
macro: {};
|
|
30
|
-
macroFn: {};
|
|
31
|
-
parser: {};
|
|
32
|
-
response: {};
|
|
33
|
-
}, {}, {
|
|
34
|
-
derive: {};
|
|
35
|
-
resolve: {};
|
|
36
|
-
schema: {};
|
|
37
|
-
standaloneSchema: {};
|
|
38
|
-
response: {};
|
|
39
|
-
} & {
|
|
40
|
-
derive: {};
|
|
41
|
-
resolve: {};
|
|
42
|
-
schema: {};
|
|
43
|
-
standaloneSchema: {};
|
|
44
|
-
response: {};
|
|
45
|
-
}, {
|
|
46
|
-
derive: {};
|
|
47
|
-
resolve: {};
|
|
48
|
-
schema: {};
|
|
49
|
-
standaloneSchema: {};
|
|
50
|
-
response: {};
|
|
51
|
-
} & {
|
|
52
|
-
derive: {};
|
|
53
|
-
resolve: {};
|
|
54
|
-
schema: {};
|
|
55
|
-
standaloneSchema: {};
|
|
56
|
-
response: {};
|
|
57
|
-
}>;
|
|
6
|
+
export declare const marketPricingCronTasks: CronTaskDefinition[];
|
|
@@ -30,14 +30,14 @@ export declare const newsListItemModel: import("@sinclair/typebox").TObject<{
|
|
|
30
30
|
createdAt: import("@sinclair/typebox").TDate;
|
|
31
31
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
32
32
|
id: import("@sinclair/typebox").TString;
|
|
33
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
34
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
35
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
33
36
|
status: import("@sinclair/typebox").TEnum<{
|
|
34
37
|
archived: "archived";
|
|
35
38
|
draft: "draft";
|
|
36
39
|
published: "published";
|
|
37
40
|
}>;
|
|
38
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
39
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
40
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
41
41
|
createdBy: import("@sinclair/typebox").TString;
|
|
42
42
|
title: import("@sinclair/typebox").TString;
|
|
43
43
|
content: import("@sinclair/typebox").TString;
|
|
@@ -62,14 +62,14 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
|
|
|
62
62
|
createdAt: import("@sinclair/typebox").TDate;
|
|
63
63
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
64
64
|
id: import("@sinclair/typebox").TString;
|
|
65
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
66
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
67
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
65
68
|
status: import("@sinclair/typebox").TEnum<{
|
|
66
69
|
archived: "archived";
|
|
67
70
|
draft: "draft";
|
|
68
71
|
published: "published";
|
|
69
72
|
}>;
|
|
70
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
71
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
72
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
73
73
|
createdBy: import("@sinclair/typebox").TString;
|
|
74
74
|
title: import("@sinclair/typebox").TString;
|
|
75
75
|
content: import("@sinclair/typebox").TString;
|
|
@@ -41,7 +41,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
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 newsAdminRouter: Elysia<"/news", {
|
|
|
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 newsAdminRouter: Elysia<"/news", {
|
|
|
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 newsAdminRouter: Elysia<"/news", {
|
|
|
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;
|
|
@@ -401,8 +401,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
401
401
|
content: string;
|
|
402
402
|
};
|
|
403
403
|
params: {};
|
|
404
|
-
query:
|
|
405
|
-
headers:
|
|
404
|
+
query: {};
|
|
405
|
+
headers: {};
|
|
406
406
|
response: {
|
|
407
407
|
422: {
|
|
408
408
|
type: "validation";
|
|
@@ -421,7 +421,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
421
421
|
} & {
|
|
422
422
|
news: {
|
|
423
423
|
get: {
|
|
424
|
-
body:
|
|
424
|
+
body: {};
|
|
425
425
|
params: {};
|
|
426
426
|
query: {
|
|
427
427
|
status?: "archived" | "draft" | "published" | undefined;
|
|
@@ -433,7 +433,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
433
433
|
pageSize?: number | undefined;
|
|
434
434
|
pageIndex?: number | undefined;
|
|
435
435
|
};
|
|
436
|
-
headers:
|
|
436
|
+
headers: {};
|
|
437
437
|
response: {
|
|
438
438
|
200: {
|
|
439
439
|
data: {
|
|
@@ -497,12 +497,12 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
497
497
|
news: {
|
|
498
498
|
":id": {
|
|
499
499
|
get: {
|
|
500
|
-
body:
|
|
500
|
+
body: {};
|
|
501
501
|
params: {
|
|
502
502
|
id: string;
|
|
503
503
|
};
|
|
504
|
-
query:
|
|
505
|
-
headers:
|
|
504
|
+
query: {};
|
|
505
|
+
headers: {};
|
|
506
506
|
response: {
|
|
507
507
|
200: {
|
|
508
508
|
id: string;
|
|
@@ -611,8 +611,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
611
611
|
params: {
|
|
612
612
|
id: string;
|
|
613
613
|
};
|
|
614
|
-
query:
|
|
615
|
-
headers:
|
|
614
|
+
query: {};
|
|
615
|
+
headers: {};
|
|
616
616
|
response: {
|
|
617
617
|
422: {
|
|
618
618
|
type: "validation";
|
|
@@ -633,12 +633,12 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
633
633
|
news: {
|
|
634
634
|
":id": {
|
|
635
635
|
delete: {
|
|
636
|
-
body:
|
|
636
|
+
body: {};
|
|
637
637
|
params: {
|
|
638
638
|
id: string;
|
|
639
639
|
};
|
|
640
|
-
query:
|
|
641
|
-
headers:
|
|
640
|
+
query: {};
|
|
641
|
+
headers: {};
|
|
642
642
|
response: {
|
|
643
643
|
200: {
|
|
644
644
|
success: boolean;
|
|
@@ -670,8 +670,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
670
670
|
params: {
|
|
671
671
|
id: string;
|
|
672
672
|
};
|
|
673
|
-
query:
|
|
674
|
-
headers:
|
|
673
|
+
query: {};
|
|
674
|
+
headers: {};
|
|
675
675
|
response: {
|
|
676
676
|
422: {
|
|
677
677
|
type: "validation";
|
|
@@ -700,8 +700,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
700
700
|
params: {
|
|
701
701
|
id: string;
|
|
702
702
|
};
|
|
703
|
-
query:
|
|
704
|
-
headers:
|
|
703
|
+
query: {};
|
|
704
|
+
headers: {};
|
|
705
705
|
response: {
|
|
706
706
|
422: {
|
|
707
707
|
type: "validation";
|
|
@@ -723,10 +723,10 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
723
723
|
news: {
|
|
724
724
|
stats: {
|
|
725
725
|
get: {
|
|
726
|
-
body:
|
|
726
|
+
body: {};
|
|
727
727
|
params: {};
|
|
728
|
-
query:
|
|
729
|
-
headers:
|
|
728
|
+
query: {};
|
|
729
|
+
headers: {};
|
|
730
730
|
response: {
|
|
731
731
|
200: {
|
|
732
732
|
total: number;
|
|
@@ -757,11 +757,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
757
757
|
emailVerified: boolean;
|
|
758
758
|
name: string;
|
|
759
759
|
image?: string | null | undefined | undefined;
|
|
760
|
-
phoneNumber?: string | null | undefined;
|
|
761
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
762
760
|
twoFactorEnabled: boolean | null | undefined;
|
|
763
761
|
username?: string | null | undefined;
|
|
764
762
|
displayUsername?: string | null | undefined;
|
|
763
|
+
phoneNumber?: string | null | undefined;
|
|
764
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
765
765
|
banned: boolean | null | undefined;
|
|
766
766
|
role?: string | null | undefined;
|
|
767
767
|
banReason?: string | null | undefined;
|
|
@@ -787,11 +787,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
787
787
|
emailVerified: boolean;
|
|
788
788
|
name: string;
|
|
789
789
|
image?: string | null | undefined | undefined;
|
|
790
|
-
phoneNumber?: string | null | undefined;
|
|
791
|
-
phoneNumberVerified?: boolean | null | undefined;
|
|
792
790
|
twoFactorEnabled: boolean | null | undefined;
|
|
793
791
|
username?: string | null | undefined;
|
|
794
792
|
displayUsername?: string | null | undefined;
|
|
793
|
+
phoneNumber?: string | null | undefined;
|
|
794
|
+
phoneNumberVerified?: boolean | null | undefined;
|
|
795
795
|
banned: boolean | null | undefined;
|
|
796
796
|
role?: string | null | undefined;
|
|
797
797
|
banReason?: string | null | undefined;
|
|
@@ -813,9 +813,6 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
813
813
|
standaloneSchema: {};
|
|
814
814
|
response: {
|
|
815
815
|
401: "Unauthorized";
|
|
816
|
-
} & {
|
|
817
|
-
401: "Unauthorized";
|
|
818
|
-
} & {
|
|
819
816
|
403: "Forbidden: Admins only";
|
|
820
817
|
};
|
|
821
818
|
}>;
|
|
@@ -30,14 +30,14 @@ export declare const newsListItemModel: import("@sinclair/typebox").TObject<{
|
|
|
30
30
|
createdAt: import("@sinclair/typebox").TDate;
|
|
31
31
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
32
32
|
id: import("@sinclair/typebox").TString;
|
|
33
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
34
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
35
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
33
36
|
status: import("@sinclair/typebox").TEnum<{
|
|
34
37
|
archived: "archived";
|
|
35
38
|
draft: "draft";
|
|
36
39
|
published: "published";
|
|
37
40
|
}>;
|
|
38
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
39
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
40
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
41
41
|
createdBy: import("@sinclair/typebox").TString;
|
|
42
42
|
title: import("@sinclair/typebox").TString;
|
|
43
43
|
content: import("@sinclair/typebox").TString;
|
|
@@ -62,14 +62,14 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
|
|
|
62
62
|
createdAt: import("@sinclair/typebox").TDate;
|
|
63
63
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
64
64
|
id: import("@sinclair/typebox").TString;
|
|
65
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
66
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
67
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
65
68
|
status: import("@sinclair/typebox").TEnum<{
|
|
66
69
|
archived: "archived";
|
|
67
70
|
draft: "draft";
|
|
68
71
|
published: "published";
|
|
69
72
|
}>;
|
|
70
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
71
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
72
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
73
73
|
createdBy: import("@sinclair/typebox").TString;
|
|
74
74
|
title: import("@sinclair/typebox").TString;
|
|
75
75
|
content: import("@sinclair/typebox").TString;
|
|
@@ -115,14 +115,14 @@ export declare const newsDetailResponse: import("@sinclair/typebox").TObject<{
|
|
|
115
115
|
createdAt: import("@sinclair/typebox").TDate;
|
|
116
116
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
117
117
|
id: import("@sinclair/typebox").TString;
|
|
118
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
119
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
120
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
118
121
|
status: import("@sinclair/typebox").TEnum<{
|
|
119
122
|
archived: "archived";
|
|
120
123
|
draft: "draft";
|
|
121
124
|
published: "published";
|
|
122
125
|
}>;
|
|
123
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
124
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
125
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
126
126
|
createdBy: import("@sinclair/typebox").TString;
|
|
127
127
|
title: import("@sinclair/typebox").TString;
|
|
128
128
|
content: import("@sinclair/typebox").TString;
|
|
@@ -151,14 +151,14 @@ export declare const pendingConfirmationsResponse: import("@sinclair/typebox").T
|
|
|
151
151
|
createdAt: import("@sinclair/typebox").TDate;
|
|
152
152
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
153
153
|
id: import("@sinclair/typebox").TString;
|
|
154
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
155
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
156
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
154
157
|
status: import("@sinclair/typebox").TEnum<{
|
|
155
158
|
archived: "archived";
|
|
156
159
|
draft: "draft";
|
|
157
160
|
published: "published";
|
|
158
161
|
}>;
|
|
159
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
160
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
161
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
162
162
|
createdBy: import("@sinclair/typebox").TString;
|
|
163
163
|
title: import("@sinclair/typebox").TString;
|
|
164
164
|
content: import("@sinclair/typebox").TString;
|