@r2wa-org/eden 0.0.89 → 0.0.90
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/admin/index.d.ts +2803 -2803
- package/dist/admin-user/admin/errors/index.d.ts +8 -8
- package/dist/admin-user/admin/router.d.ts +141 -141
- package/dist/admin-user/admin/service.d.ts +20 -20
- package/dist/app-version/admin/dto.schemas.d.ts +23 -23
- package/dist/app-version/admin/router.d.ts +160 -160
- package/dist/app-version/admin/service.d.ts +20 -20
- package/dist/app-version/db.schemas.d.ts +20 -20
- package/dist/app-version/index.d.ts +5 -0
- package/dist/app-version/schema.d.ts +11 -11
- package/dist/app-version/user/dto.schemas.d.ts +40 -0
- package/dist/app-version/user/router.d.ts +67 -0
- package/dist/app-version/user/service.d.ts +22 -0
- package/dist/asset/admin/dto.schemas.d.ts +70 -70
- package/dist/asset/admin/router.d.ts +215 -215
- package/dist/asset/admin/service.d.ts +66 -66
- package/dist/asset/db.schemas.d.ts +2 -2
- package/dist/asset/errors/index.d.ts +12 -12
- package/dist/asset/permissions.d.ts +1 -1
- package/dist/asset/schema.d.ts +2 -2
- package/dist/asset/user/dto.schemas.d.ts +31 -31
- package/dist/asset/user/router.d.ts +155 -155
- package/dist/asset/user/service.d.ts +33 -33
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +495 -495
- package/dist/asset-convert-product/admin/router.d.ts +598 -598
- package/dist/asset-convert-product/admin/service.d.ts +457 -457
- package/dist/asset-convert-product/db.schemas.d.ts +6 -6
- package/dist/asset-convert-product/errors/index.d.ts +23 -23
- package/dist/asset-convert-product/permissions.d.ts +2 -2
- package/dist/asset-convert-product/schema.d.ts +5 -5
- package/dist/asset-convert-product/user/dto.schemas.d.ts +127 -127
- package/dist/asset-convert-product/user/router.d.ts +209 -209
- package/dist/asset-convert-product/user/service.d.ts +186 -186
- package/dist/asset-price/admin/dto.schemas.d.ts +26 -26
- package/dist/asset-price/admin/router.d.ts +187 -187
- package/dist/asset-price/admin/service.d.ts +16 -16
- package/dist/asset-price/constants.d.ts +2 -2
- package/dist/asset-price/errors/index.d.ts +11 -11
- package/dist/asset-price/internal/service.d.ts +7 -7
- package/dist/asset-price/permissions.d.ts +2 -2
- package/dist/asset-price/schema.d.ts +1 -1
- package/dist/asset-price/user/dto.schemas.d.ts +4 -4
- package/dist/asset-price/user/router.d.ts +133 -133
- package/dist/asset-type/admin/dto.schemas.d.ts +4 -4
- package/dist/asset-type/admin/router.d.ts +155 -155
- package/dist/asset-type/admin/service.d.ts +16 -16
- package/dist/asset-type/errors/index.d.ts +9 -9
- package/dist/asset-type/permissions.d.ts +1 -1
- package/dist/asset-type/schema.d.ts +1 -1
- package/dist/asset-type/seed.d.ts +9 -9
- package/dist/asset-type/user/dto.schemas.d.ts +5 -5
- package/dist/asset-type/user/router.d.ts +130 -130
- package/dist/asset-type/user/service.d.ts +4 -4
- package/dist/auth/better-auth.d.ts +267 -300
- package/dist/auth/permissions.d.ts +216 -216
- package/dist/auth/roles.d.ts +665 -665
- package/dist/auth/router.d.ts +116 -116
- package/dist/auth/schema.d.ts +5 -5
- package/dist/bank-account/admin/dto.schemas.d.ts +75 -75
- package/dist/bank-account/admin/router.d.ts +241 -241
- package/dist/bank-account/admin/service.d.ts +112 -112
- package/dist/bank-account/db.schemas.d.ts +40 -40
- package/dist/bank-account/errors/index.d.ts +4 -4
- package/dist/bank-account/internal/service.d.ts +14 -14
- package/dist/bank-account/permissions.d.ts +3 -3
- package/dist/bank-account/schema.d.ts +22 -22
- package/dist/bank-account/user/dto.schemas.d.ts +38 -38
- package/dist/bank-account/user/router.d.ts +150 -150
- package/dist/bank-account/user/service.d.ts +36 -36
- package/dist/check-in/admin/dto.schemas.d.ts +11 -11
- package/dist/check-in/admin/router.d.ts +147 -147
- package/dist/check-in/admin/service.d.ts +20 -19
- package/dist/check-in/db.schemas.d.ts +248 -4
- package/dist/check-in/errors/index.d.ts +8 -2
- package/dist/check-in/errors/locales/zh.d.ts +3 -0
- package/dist/check-in/internal/service.d.ts +18 -18
- package/dist/check-in/permissions.d.ts +2 -2
- package/dist/check-in/schema.d.ts +135 -3
- package/dist/check-in/user/dto.schemas.d.ts +144 -15
- package/dist/check-in/user/router.d.ts +158 -182
- package/dist/check-in/user/service.d.ts +52 -28
- package/dist/db/columns.helpers.d.ts +1 -1
- package/dist/deposit/admin/dto.schemas.d.ts +40 -40
- package/dist/deposit/admin/router.d.ts +160 -160
- package/dist/deposit/admin/service.d.ts +46 -46
- package/dist/deposit/db.schemas.d.ts +2 -2
- package/dist/deposit/errors/index.d.ts +16 -16
- package/dist/deposit/permissions.d.ts +2 -2
- package/dist/deposit/schema.d.ts +2 -2
- package/dist/deposit/user/dto.schemas.d.ts +40 -40
- package/dist/deposit/user/router.d.ts +180 -180
- package/dist/deposit/user/service.d.ts +69 -69
- package/dist/dynamic-env/admin.router.d.ts +137 -137
- package/dist/dynamic-env/cache.d.ts +0 -6
- package/dist/dynamic-env/errors/index.d.ts +2 -2
- package/dist/dynamic-env/schema.d.ts +1 -1
- package/dist/env/server.d.ts +12 -12
- package/dist/error/index.d.ts +1 -1
- package/dist/external/dto.schemas.d.ts +2 -2
- package/dist/external/errors/index.d.ts +2 -2
- package/dist/external/router.d.ts +6 -6
- package/dist/external/service.d.ts +6 -6
- package/dist/file-storage/admin/dto.schemas.d.ts +106 -106
- package/dist/file-storage/admin/router.d.ts +183 -171
- package/dist/file-storage/admin/service.d.ts +27 -27
- package/dist/file-storage/db.schemas.d.ts +26 -26
- package/dist/file-storage/errors/index.d.ts +10 -10
- package/dist/file-storage/internal/service.d.ts +9 -9
- package/dist/file-storage/permissions.d.ts +2 -2
- package/dist/file-storage/s3.client.d.ts +48 -48
- package/dist/file-storage/schema.d.ts +14 -14
- package/dist/file-storage/share/dto.schemas.d.ts +8 -8
- package/dist/file-storage/share/router.d.ts +145 -145
- package/dist/file-storage/user/dto.schemas.d.ts +48 -48
- package/dist/file-storage/user/router.d.ts +141 -141
- package/dist/file-storage/user/service.d.ts +36 -36
- package/dist/index.d.ts +3807 -3791
- package/dist/ledger/admin/dto.schemas.d.ts +270 -270
- package/dist/ledger/admin/router.d.ts +207 -207
- package/dist/ledger/db.schemas.d.ts +4 -4
- package/dist/ledger/errors/index.d.ts +14 -14
- package/dist/ledger/permissions.d.ts +1 -1
- package/dist/ledger/schema.d.ts +3 -3
- package/dist/ledger/user/dto.schemas.d.ts +5 -5
- package/dist/ledger/user/router.d.ts +130 -130
- package/dist/ledger/user/service.d.ts +93 -93
- package/dist/ledger-account/admin/dto.schemas.d.ts +83 -83
- package/dist/ledger-account/admin/router.d.ts +222 -222
- package/dist/ledger-account/admin/service.d.ts +149 -149
- package/dist/ledger-account/db.schemas.d.ts +2 -2
- package/dist/ledger-account/errors/index.d.ts +9 -9
- package/dist/ledger-account/internal/service.d.ts +7 -7
- package/dist/ledger-account/permissions.d.ts +1 -1
- package/dist/ledger-account/schema.d.ts +2 -2
- package/dist/ledger-account/user/dto.schemas.d.ts +23 -23
- package/dist/ledger-account/user/router.d.ts +168 -168
- package/dist/ledger-account/user/service.d.ts +100 -100
- package/dist/ledger-account-import/admin/dto.schemas.d.ts +6 -6
- package/dist/ledger-account-import/admin/router.d.ts +169 -169
- package/dist/ledger-account-import/admin/service.d.ts +43 -43
- package/dist/ledger-account-import/db.schemas.d.ts +4 -4
- package/dist/ledger-account-import/errors/index.d.ts +9 -9
- package/dist/ledger-account-import/permissions.d.ts +1 -1
- package/dist/ledger-account-import/schema.d.ts +4 -4
- package/dist/ledger-account-transfer/errors/index.d.ts +7 -7
- package/dist/ledger-account-transfer/user/router.d.ts +132 -132
- package/dist/ledger-account-type/admin/dto.schemas.d.ts +9 -9
- package/dist/ledger-account-type/admin/router.d.ts +157 -157
- package/dist/ledger-account-type/admin/service.d.ts +68 -68
- package/dist/ledger-account-type/errors/index.d.ts +9 -9
- package/dist/ledger-account-type/permissions.d.ts +1 -1
- package/dist/ledger-account-type/schema.d.ts +1 -1
- package/dist/ledger-account-type/user/dto.schemas.d.ts +9 -9
- package/dist/ledger-account-type/user/router.d.ts +133 -133
- package/dist/ledger-account-type/user/service.d.ts +34 -34
- package/dist/market-data/admin/dto.schemas.d.ts +4 -4
- package/dist/market-data/admin/router.d.ts +150 -150
- package/dist/market-data/admin/service.d.ts +11 -11
- package/dist/market-data/errors/index.d.ts +4 -4
- package/dist/market-data/internal/service.d.ts +19 -19
- package/dist/market-data/permissions.d.ts +3 -3
- package/dist/market-data/resolutions.d.ts +2 -2
- package/dist/market-data/schema.d.ts +1 -1
- package/dist/market-pricing/admin/dto.schemas.d.ts +88 -88
- package/dist/market-pricing/admin/router.d.ts +332 -320
- package/dist/market-pricing/admin/service.d.ts +97 -97
- package/dist/market-pricing/db.schemas.d.ts +6 -6
- package/dist/market-pricing/defaults.d.ts +11 -11
- package/dist/market-pricing/errors/index.d.ts +26 -26
- package/dist/market-pricing/internal/service.d.ts +3 -3
- package/dist/market-pricing/permissions.d.ts +1 -1
- package/dist/market-pricing/schema.d.ts +5 -5
- package/dist/news/admin/dto.schemas.d.ts +67 -67
- package/dist/news/admin/router.d.ts +226 -226
- package/dist/news/admin/service.d.ts +89 -89
- package/dist/news/db.schemas.d.ts +28 -28
- package/dist/news/errors/index.d.ts +5 -5
- package/dist/news/permissions.d.ts +1 -1
- package/dist/news/schema.d.ts +17 -17
- package/dist/news/user/dto.schemas.d.ts +84 -84
- package/dist/news/user/router.d.ts +184 -184
- package/dist/news/user/service.d.ts +143 -143
- package/dist/news-category/admin/dto.schemas.d.ts +10 -10
- package/dist/news-category/admin/router.d.ts +24 -24
- package/dist/news-category/admin/service.d.ts +15 -15
- package/dist/news-category/errors/index.d.ts +6 -6
- package/dist/news-category/permissions.d.ts +1 -1
- package/dist/news-category/schema.d.ts +1 -1
- package/dist/news-category/seed.d.ts +3 -3
- package/dist/news-category/user/dto.schemas.d.ts +8 -8
- package/dist/news-category/user/router.d.ts +127 -127
- package/dist/news-category/user/service.d.ts +10 -10
- package/dist/notification/admin/dto.schemas.d.ts +45 -45
- package/dist/notification/admin/router.d.ts +155 -155
- package/dist/notification/admin/service.d.ts +13 -13
- package/dist/notification/db.schemas.d.ts +6 -6
- package/dist/notification/errors/index.d.ts +5 -5
- package/dist/notification/internal/service.d.ts +7 -7
- package/dist/notification/permissions.d.ts +2 -2
- package/dist/notification/schema.d.ts +5 -5
- package/dist/notification/user/dto.schemas.d.ts +34 -34
- package/dist/notification/user/router.d.ts +161 -161
- package/dist/notification/user/service.d.ts +38 -38
- package/dist/operations-overview/admin/router.d.ts +137 -137
- package/dist/portfolio/user/dto.schemas.d.ts +38 -38
- package/dist/portfolio/user/router.d.ts +173 -173
- package/dist/portfolio/user/service.d.ts +27 -27
- package/dist/receipt-method/admin/dto.schemas.d.ts +20 -20
- package/dist/receipt-method/admin/router.d.ts +160 -160
- package/dist/receipt-method/admin/service.d.ts +46 -46
- package/dist/receipt-method/db.schemas.d.ts +2 -2
- package/dist/receipt-method/errors/index.d.ts +8 -8
- package/dist/receipt-method/permissions.d.ts +1 -1
- package/dist/receipt-method/schema.d.ts +2 -2
- package/dist/receipt-method/user/dto.schemas.d.ts +6 -6
- package/dist/receipt-method/user/router.d.ts +138 -138
- package/dist/receipt-method/user/service.d.ts +33 -33
- package/dist/referral/admin/dto.schemas.d.ts +6 -6
- package/dist/referral/admin/router.d.ts +143 -143
- package/dist/referral/errors/index.d.ts +6 -6
- package/dist/referral/permissions.d.ts +1 -1
- package/dist/referral/schema.d.ts +2 -2
- package/dist/referral/user/dto.schemas.d.ts +2 -2
- package/dist/referral/user/router.d.ts +137 -137
- package/dist/referral-depth-config/admin/dto.schemas.d.ts +1 -1
- package/dist/referral-depth-config/admin/router.d.ts +156 -144
- package/dist/referral-depth-config/admin/service.d.ts +6 -6
- package/dist/referral-depth-config/errors/index.d.ts +2 -2
- package/dist/referral-depth-config/permissions.d.ts +1 -1
- package/dist/referral-depth-config/schema.d.ts +1 -1
- package/dist/server-test/errors/index.d.ts +1 -1
- package/dist/server-test/index.d.ts +117 -117
- package/dist/shipping-address/admin/router.d.ts +138 -138
- package/dist/shipping-address/admin/service.d.ts +5 -5
- package/dist/shipping-address/errors/index.d.ts +3 -3
- package/dist/shipping-address/permissions.d.ts +1 -1
- package/dist/shipping-address/schema.d.ts +1 -1
- package/dist/shipping-address/user/dto.schemas.d.ts +4 -4
- package/dist/shipping-address/user/router.d.ts +142 -142
- package/dist/shipping-address/user/service.d.ts +20 -20
- package/dist/team/admin/dto.schemas.d.ts +728 -728
- package/dist/team/admin/router.d.ts +187 -187
- package/dist/team/errors/index.d.ts +4 -4
- package/dist/team/permissions.d.ts +1 -1
- package/dist/team/user/dto.schemas.d.ts +206 -206
- package/dist/team/user/router.d.ts +170 -170
- package/dist/trade-market/admin/dto.schemas.d.ts +365 -365
- package/dist/trade-market/admin/router.d.ts +271 -271
- package/dist/trade-market/admin/service.d.ts +123 -123
- package/dist/trade-market/db.schemas.d.ts +4 -4
- package/dist/trade-market/errors/index.d.ts +15 -15
- package/dist/trade-market/internal/service.d.ts +141 -141
- package/dist/trade-market/permissions.d.ts +2 -2
- package/dist/trade-market/schema.d.ts +4 -4
- package/dist/trade-market/user/dto.schemas.d.ts +160 -160
- package/dist/trade-market/user/router.d.ts +232 -232
- package/dist/trade-market/user/service.d.ts +133 -133
- package/dist/transfer/admin/router.d.ts +140 -140
- package/dist/transfer/admin/service.d.ts +27 -27
- package/dist/transfer/errors/index.d.ts +11 -11
- package/dist/transfer/permissions.d.ts +1 -1
- package/dist/transfer/schema.d.ts +1 -1
- package/dist/transfer/user/router.d.ts +140 -140
- package/dist/transfer/user/service.d.ts +27 -27
- package/dist/udf/router.d.ts +136 -136
- package/dist/udf/service.d.ts +1 -1
- package/dist/user/admin/dto.schemas.d.ts +363 -363
- package/dist/user/admin/router.d.ts +256 -256
- package/dist/user/admin/service.d.ts +50 -50
- package/dist/user/db.schemas.d.ts +62 -62
- package/dist/user/errors/index.d.ts +15 -15
- package/dist/user/internal/service.d.ts +8 -8
- package/dist/user/permissions.d.ts +3 -3
- package/dist/user/schema.d.ts +34 -34
- package/dist/user/user/dto.schemas.d.ts +1 -1
- package/dist/user/user/router.d.ts +148 -148
- package/dist/user/user/service.d.ts +35 -35
- package/dist/user-kyc/admin/dto.schemas.d.ts +34 -34
- package/dist/user-kyc/admin/router.d.ts +157 -157
- package/dist/user-kyc/admin/service.d.ts +20 -20
- package/dist/user-kyc/db.schemas.d.ts +46 -46
- package/dist/user-kyc/errors/index.d.ts +6 -6
- package/dist/user-kyc/permissions.d.ts +2 -2
- package/dist/user-kyc/schema.d.ts +25 -25
- package/dist/user-kyc/user/dto.schemas.d.ts +13 -13
- package/dist/user-kyc/user/router.d.ts +146 -146
- package/dist/user-kyc/user/service.d.ts +14 -14
- package/dist/user-security/admin/router.d.ts +133 -133
- package/dist/user-security/db.schemas.d.ts +20 -20
- package/dist/user-security/schema.d.ts +11 -11
- package/dist/user-security/user/router.d.ts +129 -129
- package/dist/wallet/admin/dto.schemas.d.ts +15 -15
- package/dist/wallet/admin/router.d.ts +159 -159
- package/dist/wallet/admin/service.d.ts +18 -18
- package/dist/wallet/errors/index.d.ts +1 -1
- package/dist/wallet/internal/service.d.ts +45 -45
- package/dist/wallet/permissions.d.ts +1 -1
- package/dist/wallet/schema.d.ts +1 -1
- package/dist/wallet/user/dto.schemas.d.ts +10 -10
- package/dist/wallet/user/router.d.ts +147 -147
- package/dist/wallet/user/service.d.ts +10 -10
- package/dist/wallet-type/admin/dto.schemas.d.ts +27 -27
- package/dist/wallet-type/admin/router.d.ts +201 -201
- package/dist/wallet-type/admin/service.d.ts +22 -22
- package/dist/wallet-type/errors/index.d.ts +6 -6
- package/dist/wallet-type/internal/service.d.ts +111 -111
- package/dist/wallet-type/permissions.d.ts +1 -1
- package/dist/wallet-type/schema.d.ts +2 -2
- package/dist/wallet-type/user/dto.schemas.d.ts +21 -21
- package/dist/wallet-type/user/router.d.ts +137 -137
- package/dist/wallet-type/user/service.d.ts +7 -7
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +723 -723
- package/dist/welfare-cycle/admin/router.d.ts +788 -788
- package/dist/welfare-cycle/admin/service.d.ts +706 -706
- package/dist/welfare-cycle/db.schemas.d.ts +8 -8
- package/dist/welfare-cycle/errors/index.d.ts +18 -18
- package/dist/welfare-cycle/internal/service.d.ts +84 -84
- package/dist/welfare-cycle/permissions.d.ts +3 -3
- package/dist/welfare-cycle/schema.d.ts +8 -8
- package/dist/welfare-cycle/user/dto.schemas.d.ts +22 -22
- package/dist/welfare-cycle/user/router.d.ts +173 -173
- package/dist/welfare-cycle/user/service.d.ts +95 -95
- package/dist/withdraw/admin/dto.schemas.d.ts +3 -3
- package/dist/withdraw/admin/router.d.ts +171 -171
- package/dist/withdraw/admin/service.d.ts +15 -15
- package/dist/withdraw/db.schemas.d.ts +2 -2
- package/dist/withdraw/errors/index.d.ts +16 -16
- package/dist/withdraw/permissions.d.ts +2 -2
- package/dist/withdraw/schema.d.ts +2 -2
- package/dist/withdraw/user/dto.schemas.d.ts +18 -18
- package/dist/withdraw/user/router.d.ts +176 -176
- package/dist/withdraw/user/service.d.ts +36 -36
- package/package.json +7 -9
|
@@ -41,7 +41,7 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
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 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -105,66 +105,66 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
105
105
|
readonly 511: "Network Authentication Required";
|
|
106
106
|
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
107
107
|
readonly Continue: 100;
|
|
108
|
-
readonly
|
|
108
|
+
readonly 'Switching Protocols': 101;
|
|
109
109
|
readonly Processing: 102;
|
|
110
|
-
readonly
|
|
110
|
+
readonly 'Early Hints': 103;
|
|
111
111
|
readonly OK: 200;
|
|
112
112
|
readonly Created: 201;
|
|
113
113
|
readonly Accepted: 202;
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
114
|
+
readonly 'Non-Authoritative Information': 203;
|
|
115
|
+
readonly 'No Content': 204;
|
|
116
|
+
readonly 'Reset Content': 205;
|
|
117
|
+
readonly 'Partial Content': 206;
|
|
118
|
+
readonly 'Multi-Status': 207;
|
|
119
|
+
readonly 'Already Reported': 208;
|
|
120
|
+
readonly 'Multiple Choices': 300;
|
|
121
|
+
readonly 'Moved Permanently': 301;
|
|
122
122
|
readonly Found: 302;
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
123
|
+
readonly 'See Other': 303;
|
|
124
|
+
readonly 'Not Modified': 304;
|
|
125
|
+
readonly 'Temporary Redirect': 307;
|
|
126
|
+
readonly 'Permanent Redirect': 308;
|
|
127
|
+
readonly 'Bad Request': 400;
|
|
128
128
|
readonly Unauthorized: 401;
|
|
129
|
-
readonly
|
|
129
|
+
readonly 'Payment Required': 402;
|
|
130
130
|
readonly Forbidden: 403;
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
131
|
+
readonly 'Not Found': 404;
|
|
132
|
+
readonly 'Method Not Allowed': 405;
|
|
133
|
+
readonly 'Not Acceptable': 406;
|
|
134
|
+
readonly 'Proxy Authentication Required': 407;
|
|
135
|
+
readonly 'Request Timeout': 408;
|
|
136
136
|
readonly Conflict: 409;
|
|
137
137
|
readonly Gone: 410;
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
138
|
+
readonly 'Length Required': 411;
|
|
139
|
+
readonly 'Precondition Failed': 412;
|
|
140
|
+
readonly 'Payload Too Large': 413;
|
|
141
|
+
readonly 'URI Too Long': 414;
|
|
142
|
+
readonly 'Unsupported Media Type': 415;
|
|
143
|
+
readonly 'Range Not Satisfiable': 416;
|
|
144
|
+
readonly 'Expectation Failed': 417;
|
|
145
145
|
readonly "I'm a teapot": 418;
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
146
|
+
readonly 'Enhance Your Calm': 420;
|
|
147
|
+
readonly 'Misdirected Request': 421;
|
|
148
|
+
readonly 'Unprocessable Content': 422;
|
|
149
149
|
readonly Locked: 423;
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
150
|
+
readonly 'Failed Dependency': 424;
|
|
151
|
+
readonly 'Too Early': 425;
|
|
152
|
+
readonly 'Upgrade Required': 426;
|
|
153
|
+
readonly 'Precondition Required': 428;
|
|
154
|
+
readonly 'Too Many Requests': 429;
|
|
155
|
+
readonly 'Request Header Fields Too Large': 431;
|
|
156
|
+
readonly 'Unavailable For Legal Reasons': 451;
|
|
157
|
+
readonly 'Internal Server Error': 500;
|
|
158
|
+
readonly 'Not Implemented': 501;
|
|
159
|
+
readonly 'Bad Gateway': 502;
|
|
160
|
+
readonly 'Service Unavailable': 503;
|
|
161
|
+
readonly 'Gateway Timeout': 504;
|
|
162
|
+
readonly 'HTTP Version Not Supported': 505;
|
|
163
|
+
readonly 'Variant Also Negotiates': 506;
|
|
164
|
+
readonly 'Insufficient Storage': 507;
|
|
165
|
+
readonly 'Loop Detected': 508;
|
|
166
|
+
readonly 'Not Extended': 510;
|
|
167
|
+
readonly 'Network Authentication Required': 511;
|
|
168
168
|
}[Code] : Code>;
|
|
169
169
|
}) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
|
|
170
170
|
user: {
|
|
@@ -174,16 +174,16 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
174
174
|
email: string;
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
|
-
image?: string | null | undefined
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
image?: string | null | undefined;
|
|
178
|
+
banExpires?: Date | null | undefined;
|
|
179
|
+
banReason?: string | null | undefined;
|
|
180
|
+
banned: boolean | null | undefined;
|
|
180
181
|
displayUsername?: string | null | undefined;
|
|
181
182
|
phoneNumber?: string | null | undefined;
|
|
182
183
|
phoneNumberVerified?: boolean | null | undefined;
|
|
183
|
-
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
186
|
+
username?: string | null | undefined;
|
|
187
187
|
};
|
|
188
188
|
session: {
|
|
189
189
|
id: string;
|
|
@@ -192,8 +192,8 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
192
192
|
userId: string;
|
|
193
193
|
expiresAt: Date;
|
|
194
194
|
token: string;
|
|
195
|
-
ipAddress?: string | null | undefined
|
|
196
|
-
userAgent?: string | null | undefined
|
|
195
|
+
ipAddress?: string | null | undefined;
|
|
196
|
+
userAgent?: string | null | undefined;
|
|
197
197
|
impersonatedBy?: string | null | undefined;
|
|
198
198
|
};
|
|
199
199
|
}>;
|
|
@@ -217,7 +217,7 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
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 |
|
|
220
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -281,66 +281,66 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
281
281
|
readonly 511: "Network Authentication Required";
|
|
282
282
|
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
283
283
|
readonly Continue: 100;
|
|
284
|
-
readonly
|
|
284
|
+
readonly 'Switching Protocols': 101;
|
|
285
285
|
readonly Processing: 102;
|
|
286
|
-
readonly
|
|
286
|
+
readonly 'Early Hints': 103;
|
|
287
287
|
readonly OK: 200;
|
|
288
288
|
readonly Created: 201;
|
|
289
289
|
readonly Accepted: 202;
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
290
|
+
readonly 'Non-Authoritative Information': 203;
|
|
291
|
+
readonly 'No Content': 204;
|
|
292
|
+
readonly 'Reset Content': 205;
|
|
293
|
+
readonly 'Partial Content': 206;
|
|
294
|
+
readonly 'Multi-Status': 207;
|
|
295
|
+
readonly 'Already Reported': 208;
|
|
296
|
+
readonly 'Multiple Choices': 300;
|
|
297
|
+
readonly 'Moved Permanently': 301;
|
|
298
298
|
readonly Found: 302;
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
303
|
-
readonly
|
|
299
|
+
readonly 'See Other': 303;
|
|
300
|
+
readonly 'Not Modified': 304;
|
|
301
|
+
readonly 'Temporary Redirect': 307;
|
|
302
|
+
readonly 'Permanent Redirect': 308;
|
|
303
|
+
readonly 'Bad Request': 400;
|
|
304
304
|
readonly Unauthorized: 401;
|
|
305
|
-
readonly
|
|
305
|
+
readonly 'Payment Required': 402;
|
|
306
306
|
readonly Forbidden: 403;
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
readonly
|
|
311
|
-
readonly
|
|
307
|
+
readonly 'Not Found': 404;
|
|
308
|
+
readonly 'Method Not Allowed': 405;
|
|
309
|
+
readonly 'Not Acceptable': 406;
|
|
310
|
+
readonly 'Proxy Authentication Required': 407;
|
|
311
|
+
readonly 'Request Timeout': 408;
|
|
312
312
|
readonly Conflict: 409;
|
|
313
313
|
readonly Gone: 410;
|
|
314
|
-
readonly
|
|
315
|
-
readonly
|
|
316
|
-
readonly
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
320
|
-
readonly
|
|
314
|
+
readonly 'Length Required': 411;
|
|
315
|
+
readonly 'Precondition Failed': 412;
|
|
316
|
+
readonly 'Payload Too Large': 413;
|
|
317
|
+
readonly 'URI Too Long': 414;
|
|
318
|
+
readonly 'Unsupported Media Type': 415;
|
|
319
|
+
readonly 'Range Not Satisfiable': 416;
|
|
320
|
+
readonly 'Expectation Failed': 417;
|
|
321
321
|
readonly "I'm a teapot": 418;
|
|
322
|
-
readonly
|
|
323
|
-
readonly
|
|
324
|
-
readonly
|
|
322
|
+
readonly 'Enhance Your Calm': 420;
|
|
323
|
+
readonly 'Misdirected Request': 421;
|
|
324
|
+
readonly 'Unprocessable Content': 422;
|
|
325
325
|
readonly Locked: 423;
|
|
326
|
-
readonly
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
339
|
-
readonly
|
|
340
|
-
readonly
|
|
341
|
-
readonly
|
|
342
|
-
readonly
|
|
343
|
-
readonly
|
|
326
|
+
readonly 'Failed Dependency': 424;
|
|
327
|
+
readonly 'Too Early': 425;
|
|
328
|
+
readonly 'Upgrade Required': 426;
|
|
329
|
+
readonly 'Precondition Required': 428;
|
|
330
|
+
readonly 'Too Many Requests': 429;
|
|
331
|
+
readonly 'Request Header Fields Too Large': 431;
|
|
332
|
+
readonly 'Unavailable For Legal Reasons': 451;
|
|
333
|
+
readonly 'Internal Server Error': 500;
|
|
334
|
+
readonly 'Not Implemented': 501;
|
|
335
|
+
readonly 'Bad Gateway': 502;
|
|
336
|
+
readonly 'Service Unavailable': 503;
|
|
337
|
+
readonly 'Gateway Timeout': 504;
|
|
338
|
+
readonly 'HTTP Version Not Supported': 505;
|
|
339
|
+
readonly 'Variant Also Negotiates': 506;
|
|
340
|
+
readonly 'Insufficient Storage': 507;
|
|
341
|
+
readonly 'Loop Detected': 508;
|
|
342
|
+
readonly 'Not Extended': 510;
|
|
343
|
+
readonly 'Network Authentication Required': 511;
|
|
344
344
|
}[Code] : Code>;
|
|
345
345
|
}) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
|
|
346
346
|
user: {
|
|
@@ -350,16 +350,16 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
350
350
|
email: string;
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
|
-
image?: string | null | undefined
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
image?: string | null | undefined;
|
|
354
|
+
banExpires?: Date | null | undefined;
|
|
355
|
+
banReason?: string | null | undefined;
|
|
356
|
+
banned: boolean | null | undefined;
|
|
356
357
|
displayUsername?: string | null | undefined;
|
|
357
358
|
phoneNumber?: string | null | undefined;
|
|
358
359
|
phoneNumberVerified?: boolean | null | undefined;
|
|
359
|
-
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
362
|
+
username?: string | null | undefined;
|
|
363
363
|
};
|
|
364
364
|
session: {
|
|
365
365
|
id: string;
|
|
@@ -368,8 +368,8 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
368
368
|
userId: string;
|
|
369
369
|
expiresAt: Date;
|
|
370
370
|
token: string;
|
|
371
|
-
ipAddress?: string | null | undefined
|
|
372
|
-
userAgent?: string | null | undefined
|
|
371
|
+
ipAddress?: string | null | undefined;
|
|
372
|
+
userAgent?: string | null | undefined;
|
|
373
373
|
impersonatedBy?: string | null | undefined;
|
|
374
374
|
};
|
|
375
375
|
}>;
|
|
@@ -384,67 +384,67 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
384
384
|
markets: {
|
|
385
385
|
post: {
|
|
386
386
|
body: {
|
|
387
|
-
|
|
387
|
+
name: string;
|
|
388
|
+
baseAssetId: string;
|
|
388
389
|
isBuyEnabled?: boolean | undefined;
|
|
389
390
|
isSellEnabled?: boolean | undefined;
|
|
391
|
+
minBaseAmount: string;
|
|
390
392
|
maxBaseAmount?: string | null | undefined;
|
|
391
393
|
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
392
394
|
dailyUserSellBaseLimit?: string | null | undefined;
|
|
393
395
|
maxSlippageBps?: string | undefined;
|
|
394
|
-
|
|
395
|
-
baseAssetId: string;
|
|
396
|
-
minBaseAmount: string;
|
|
396
|
+
status?: "active" | "draft" | "ended" | "paused" | undefined;
|
|
397
397
|
};
|
|
398
398
|
params: {};
|
|
399
399
|
query: {};
|
|
400
400
|
headers: {};
|
|
401
401
|
response: {
|
|
402
402
|
200: {
|
|
403
|
-
id: string;
|
|
404
|
-
name: string;
|
|
405
|
-
createdAt: Date;
|
|
406
|
-
updatedAt: Date;
|
|
407
|
-
status: "active" | "draft" | "paused" | "ended";
|
|
408
|
-
baseAssetId: string;
|
|
409
|
-
quoteAssetId: string;
|
|
410
|
-
isBuyEnabled: boolean;
|
|
411
|
-
isSellEnabled: boolean;
|
|
412
|
-
minBaseAmount: string;
|
|
413
|
-
maxBaseAmount: string | null;
|
|
414
|
-
dailyUserBuyBaseLimit: string | null;
|
|
415
|
-
dailyUserSellBaseLimit: string | null;
|
|
416
|
-
maxSlippageBps: string;
|
|
417
403
|
baseAsset: {
|
|
418
|
-
|
|
419
|
-
id: string;
|
|
420
|
-
name: string;
|
|
421
|
-
createdAt: Date;
|
|
422
|
-
updatedAt: Date;
|
|
404
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
423
405
|
code: string;
|
|
406
|
+
createdAt: Date;
|
|
424
407
|
iconUrl: string;
|
|
425
|
-
|
|
408
|
+
id: string;
|
|
426
409
|
isActive: boolean;
|
|
427
|
-
|
|
410
|
+
name: string;
|
|
428
411
|
precision: number;
|
|
429
|
-
};
|
|
430
|
-
quoteAsset: {
|
|
431
412
|
symbol: string | null;
|
|
432
|
-
|
|
433
|
-
name: string;
|
|
434
|
-
createdAt: Date;
|
|
413
|
+
typeId: string | null;
|
|
435
414
|
updatedAt: Date;
|
|
415
|
+
};
|
|
416
|
+
baseAssetId: string;
|
|
417
|
+
createdAt: Date;
|
|
418
|
+
dailyUserBuyBaseLimit: string | null;
|
|
419
|
+
dailyUserSellBaseLimit: string | null;
|
|
420
|
+
id: string;
|
|
421
|
+
isBuyEnabled: boolean;
|
|
422
|
+
isSellEnabled: boolean;
|
|
423
|
+
maxBaseAmount: string | null;
|
|
424
|
+
maxSlippageBps: string;
|
|
425
|
+
minBaseAmount: string;
|
|
426
|
+
name: string;
|
|
427
|
+
quoteAsset: {
|
|
428
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
436
429
|
code: string;
|
|
430
|
+
createdAt: Date;
|
|
437
431
|
iconUrl: string;
|
|
438
|
-
|
|
432
|
+
id: string;
|
|
439
433
|
isActive: boolean;
|
|
440
|
-
|
|
434
|
+
name: string;
|
|
441
435
|
precision: number;
|
|
436
|
+
symbol: string | null;
|
|
437
|
+
typeId: string | null;
|
|
438
|
+
updatedAt: Date;
|
|
442
439
|
};
|
|
440
|
+
quoteAssetId: string;
|
|
441
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
442
|
+
updatedAt: Date;
|
|
443
443
|
};
|
|
444
444
|
401: "Unauthorized";
|
|
445
445
|
403: "Forbidden: Admins only";
|
|
446
446
|
422: {
|
|
447
|
-
type:
|
|
447
|
+
type: 'validation';
|
|
448
448
|
on: string;
|
|
449
449
|
summary?: string;
|
|
450
450
|
message?: string;
|
|
@@ -463,7 +463,6 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
463
463
|
patch: {
|
|
464
464
|
body: {
|
|
465
465
|
name?: string | undefined;
|
|
466
|
-
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
467
466
|
baseAssetId?: string | undefined;
|
|
468
467
|
isBuyEnabled?: boolean | undefined;
|
|
469
468
|
isSellEnabled?: boolean | undefined;
|
|
@@ -472,6 +471,7 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
472
471
|
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
473
472
|
dailyUserSellBaseLimit?: string | null | undefined;
|
|
474
473
|
maxSlippageBps?: string | undefined;
|
|
474
|
+
status?: "active" | "draft" | "ended" | "paused" | undefined;
|
|
475
475
|
};
|
|
476
476
|
params: {
|
|
477
477
|
id: string;
|
|
@@ -480,51 +480,51 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
480
480
|
headers: {};
|
|
481
481
|
response: {
|
|
482
482
|
200: {
|
|
483
|
-
id: string;
|
|
484
|
-
name: string;
|
|
485
|
-
createdAt: Date;
|
|
486
|
-
updatedAt: Date;
|
|
487
|
-
status: "active" | "draft" | "paused" | "ended";
|
|
488
|
-
baseAssetId: string;
|
|
489
|
-
quoteAssetId: string;
|
|
490
|
-
isBuyEnabled: boolean;
|
|
491
|
-
isSellEnabled: boolean;
|
|
492
|
-
minBaseAmount: string;
|
|
493
|
-
maxBaseAmount: string | null;
|
|
494
|
-
dailyUserBuyBaseLimit: string | null;
|
|
495
|
-
dailyUserSellBaseLimit: string | null;
|
|
496
|
-
maxSlippageBps: string;
|
|
497
483
|
baseAsset: {
|
|
498
|
-
|
|
499
|
-
id: string;
|
|
500
|
-
name: string;
|
|
501
|
-
createdAt: Date;
|
|
502
|
-
updatedAt: Date;
|
|
484
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
503
485
|
code: string;
|
|
486
|
+
createdAt: Date;
|
|
504
487
|
iconUrl: string;
|
|
505
|
-
|
|
488
|
+
id: string;
|
|
506
489
|
isActive: boolean;
|
|
507
|
-
|
|
490
|
+
name: string;
|
|
508
491
|
precision: number;
|
|
509
|
-
};
|
|
510
|
-
quoteAsset: {
|
|
511
492
|
symbol: string | null;
|
|
512
|
-
|
|
513
|
-
name: string;
|
|
514
|
-
createdAt: Date;
|
|
493
|
+
typeId: string | null;
|
|
515
494
|
updatedAt: Date;
|
|
495
|
+
};
|
|
496
|
+
baseAssetId: string;
|
|
497
|
+
createdAt: Date;
|
|
498
|
+
dailyUserBuyBaseLimit: string | null;
|
|
499
|
+
dailyUserSellBaseLimit: string | null;
|
|
500
|
+
id: string;
|
|
501
|
+
isBuyEnabled: boolean;
|
|
502
|
+
isSellEnabled: boolean;
|
|
503
|
+
maxBaseAmount: string | null;
|
|
504
|
+
maxSlippageBps: string;
|
|
505
|
+
minBaseAmount: string;
|
|
506
|
+
name: string;
|
|
507
|
+
quoteAsset: {
|
|
508
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
516
509
|
code: string;
|
|
510
|
+
createdAt: Date;
|
|
517
511
|
iconUrl: string;
|
|
518
|
-
|
|
512
|
+
id: string;
|
|
519
513
|
isActive: boolean;
|
|
520
|
-
|
|
514
|
+
name: string;
|
|
521
515
|
precision: number;
|
|
516
|
+
symbol: string | null;
|
|
517
|
+
typeId: string | null;
|
|
518
|
+
updatedAt: Date;
|
|
522
519
|
};
|
|
520
|
+
quoteAssetId: string;
|
|
521
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
522
|
+
updatedAt: Date;
|
|
523
523
|
};
|
|
524
524
|
401: "Unauthorized";
|
|
525
525
|
403: "Forbidden: Admins only";
|
|
526
526
|
422: {
|
|
527
|
-
type:
|
|
527
|
+
type: 'validation';
|
|
528
528
|
on: string;
|
|
529
529
|
summary?: string;
|
|
530
530
|
message?: string;
|
|
@@ -564,12 +564,12 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
564
564
|
dailyUserBuyBaseLimit: string | null;
|
|
565
565
|
dailyUserSellBaseLimit: string | null;
|
|
566
566
|
maxSlippageBps: string;
|
|
567
|
-
status: "active" | "draft" | "
|
|
567
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
568
568
|
};
|
|
569
569
|
401: "Unauthorized";
|
|
570
570
|
403: "Forbidden: Admins only";
|
|
571
571
|
422: {
|
|
572
|
-
type:
|
|
572
|
+
type: 'validation';
|
|
573
573
|
on: string;
|
|
574
574
|
summary?: string;
|
|
575
575
|
message?: string;
|
|
@@ -610,12 +610,12 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
610
610
|
dailyUserBuyBaseLimit: string | null;
|
|
611
611
|
dailyUserSellBaseLimit: string | null;
|
|
612
612
|
maxSlippageBps: string;
|
|
613
|
-
status: "active" | "draft" | "
|
|
613
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
614
614
|
};
|
|
615
615
|
401: "Unauthorized";
|
|
616
616
|
403: "Forbidden: Admins only";
|
|
617
617
|
422: {
|
|
618
|
-
type:
|
|
618
|
+
type: 'validation';
|
|
619
619
|
on: string;
|
|
620
620
|
summary?: string;
|
|
621
621
|
message?: string;
|
|
@@ -656,12 +656,12 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
656
656
|
dailyUserBuyBaseLimit: string | null;
|
|
657
657
|
dailyUserSellBaseLimit: string | null;
|
|
658
658
|
maxSlippageBps: string;
|
|
659
|
-
status: "active" | "draft" | "
|
|
659
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
660
660
|
};
|
|
661
661
|
401: "Unauthorized";
|
|
662
662
|
403: "Forbidden: Admins only";
|
|
663
663
|
422: {
|
|
664
|
-
type:
|
|
664
|
+
type: 'validation';
|
|
665
665
|
on: string;
|
|
666
666
|
summary?: string;
|
|
667
667
|
message?: string;
|
|
@@ -682,60 +682,40 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
682
682
|
body: {};
|
|
683
683
|
params: {};
|
|
684
684
|
query: {
|
|
685
|
-
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
686
685
|
limit?: number | undefined;
|
|
687
686
|
offset?: number | undefined;
|
|
688
|
-
pageSize?: number | undefined;
|
|
689
687
|
pageIndex?: number | undefined;
|
|
688
|
+
pageSize?: number | undefined;
|
|
689
|
+
status?: "active" | "draft" | "ended" | "paused" | undefined;
|
|
690
690
|
};
|
|
691
691
|
headers: {};
|
|
692
692
|
response: {
|
|
693
693
|
200: {
|
|
694
694
|
data: {
|
|
695
|
-
id: string;
|
|
696
|
-
name: string;
|
|
697
|
-
createdAt: Date;
|
|
698
|
-
updatedAt: Date;
|
|
699
|
-
status: "active" | "draft" | "paused" | "ended";
|
|
700
|
-
baseAssetId: string;
|
|
701
695
|
baseAsset: {
|
|
702
|
-
symbol: string | null;
|
|
703
|
-
id: string;
|
|
704
|
-
name: string;
|
|
705
696
|
createdAt: Date;
|
|
706
697
|
updatedAt: Date;
|
|
707
|
-
code: string;
|
|
708
|
-
iconUrl: string;
|
|
709
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
710
|
-
isActive: boolean;
|
|
711
|
-
typeId: string | null;
|
|
712
|
-
precision: number;
|
|
713
|
-
};
|
|
714
|
-
quoteAssetId: string;
|
|
715
|
-
quoteAsset: {
|
|
716
|
-
symbol: string | null;
|
|
717
698
|
id: string;
|
|
718
|
-
name: string;
|
|
719
|
-
createdAt: Date;
|
|
720
|
-
updatedAt: Date;
|
|
721
699
|
code: string;
|
|
700
|
+
name: string;
|
|
722
701
|
iconUrl: string;
|
|
723
|
-
category: "
|
|
724
|
-
isActive: boolean;
|
|
702
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
725
703
|
typeId: string | null;
|
|
704
|
+
symbol: string | null;
|
|
726
705
|
precision: number;
|
|
706
|
+
isActive: boolean;
|
|
727
707
|
};
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
minBaseAmount: string;
|
|
731
|
-
maxBaseAmount: string | null;
|
|
708
|
+
baseAssetId: string;
|
|
709
|
+
createdAt: Date;
|
|
732
710
|
dailyUserBuyBaseLimit: string | null;
|
|
733
711
|
dailyUserSellBaseLimit: string | null;
|
|
734
|
-
|
|
712
|
+
id: string;
|
|
713
|
+
isBuyEnabled: boolean;
|
|
714
|
+
isSellEnabled: boolean;
|
|
735
715
|
latestPrice: {
|
|
736
|
-
id: string;
|
|
737
716
|
createdAt: Date;
|
|
738
717
|
updatedAt: Date;
|
|
718
|
+
id: string;
|
|
739
719
|
baseAssetId: string;
|
|
740
720
|
baseAsset: string;
|
|
741
721
|
quoteAssetId: string;
|
|
@@ -744,11 +724,31 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
744
724
|
source: string;
|
|
745
725
|
effectiveAt: Date;
|
|
746
726
|
} | null;
|
|
727
|
+
maxBaseAmount: string | null;
|
|
728
|
+
maxSlippageBps: string;
|
|
729
|
+
minBaseAmount: string;
|
|
730
|
+
name: string;
|
|
731
|
+
quoteAsset: {
|
|
732
|
+
createdAt: Date;
|
|
733
|
+
updatedAt: Date;
|
|
734
|
+
id: string;
|
|
735
|
+
code: string;
|
|
736
|
+
name: string;
|
|
737
|
+
iconUrl: string;
|
|
738
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
739
|
+
typeId: string | null;
|
|
740
|
+
symbol: string | null;
|
|
741
|
+
precision: number;
|
|
742
|
+
isActive: boolean;
|
|
743
|
+
};
|
|
744
|
+
quoteAssetId: string;
|
|
745
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
746
|
+
updatedAt: Date;
|
|
747
747
|
}[];
|
|
748
748
|
pagination: {
|
|
749
|
-
total: number;
|
|
750
749
|
pageSize: number;
|
|
751
750
|
pageIndex: number;
|
|
751
|
+
total: number;
|
|
752
752
|
totalPages: number;
|
|
753
753
|
hasNextPage: boolean;
|
|
754
754
|
};
|
|
@@ -756,7 +756,7 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
756
756
|
401: "Unauthorized";
|
|
757
757
|
403: "Forbidden: Admins only";
|
|
758
758
|
422: {
|
|
759
|
-
type:
|
|
759
|
+
type: 'validation';
|
|
760
760
|
on: string;
|
|
761
761
|
summary?: string;
|
|
762
762
|
message?: string;
|
|
@@ -775,70 +775,70 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
775
775
|
body: {};
|
|
776
776
|
params: {};
|
|
777
777
|
query: {
|
|
778
|
-
userId?: string | undefined;
|
|
779
|
-
status?: "created" | "completed" | "failed" | undefined;
|
|
780
|
-
marketId?: string | undefined;
|
|
781
|
-
side?: "buy" | "sell" | undefined;
|
|
782
778
|
limit?: number | undefined;
|
|
779
|
+
marketId?: string | undefined;
|
|
783
780
|
offset?: number | undefined;
|
|
784
|
-
pageSize?: number | undefined;
|
|
785
781
|
pageIndex?: number | undefined;
|
|
782
|
+
pageSize?: number | undefined;
|
|
783
|
+
side?: "buy" | "sell" | undefined;
|
|
784
|
+
status?: "completed" | "created" | "failed" | undefined;
|
|
785
|
+
userId?: string | undefined;
|
|
786
786
|
};
|
|
787
787
|
headers: {};
|
|
788
788
|
response: {
|
|
789
789
|
200: {
|
|
790
790
|
data: {
|
|
791
|
-
|
|
792
|
-
email: string;
|
|
793
|
-
id: string;
|
|
794
|
-
name: string;
|
|
795
|
-
username: string | null;
|
|
796
|
-
displayUsername: string | null;
|
|
797
|
-
};
|
|
798
|
-
id: string;
|
|
791
|
+
baseAmount: string;
|
|
799
792
|
createdAt: Date;
|
|
800
|
-
updatedAt: Date;
|
|
801
|
-
userId: string;
|
|
802
|
-
status: "created" | "completed" | "failed";
|
|
803
|
-
idempotencyKey: string;
|
|
804
|
-
orderNo: string;
|
|
805
|
-
priceSnapshot: string;
|
|
806
|
-
priceEffectiveAtSnapshot: Date;
|
|
807
793
|
failureCode: string | null;
|
|
808
794
|
failureReason: string | null;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
baseAmount: string;
|
|
812
|
-
quoteAmount: string;
|
|
813
|
-
pricingSourceSnapshot: string;
|
|
814
|
-
userBaseAccountId: string;
|
|
815
|
-
userQuoteAccountId: string;
|
|
816
|
-
userDebitLedgerEntryId: string | null;
|
|
817
|
-
userCreditLedgerEntryId: string | null;
|
|
795
|
+
id: string;
|
|
796
|
+
idempotencyKey: string;
|
|
818
797
|
market: {
|
|
819
798
|
id: string;
|
|
820
799
|
name: string;
|
|
821
|
-
status: "active" | "draft" | "
|
|
800
|
+
status: "active" | "draft" | "ended" | "paused";
|
|
822
801
|
baseAsset: {
|
|
823
|
-
symbol: string | null;
|
|
824
802
|
id: string;
|
|
825
|
-
name: string;
|
|
826
803
|
code: string;
|
|
804
|
+
name: string;
|
|
805
|
+
symbol: string | null;
|
|
827
806
|
precision: number;
|
|
828
807
|
};
|
|
829
808
|
quoteAsset: {
|
|
830
|
-
symbol: string | null;
|
|
831
809
|
id: string;
|
|
832
|
-
name: string;
|
|
833
810
|
code: string;
|
|
811
|
+
name: string;
|
|
812
|
+
symbol: string | null;
|
|
834
813
|
precision: number;
|
|
835
814
|
};
|
|
836
815
|
};
|
|
816
|
+
marketId: string;
|
|
817
|
+
orderNo: string;
|
|
818
|
+
priceEffectiveAtSnapshot: Date;
|
|
819
|
+
priceSnapshot: string;
|
|
820
|
+
pricingSourceSnapshot: string;
|
|
821
|
+
quoteAmount: string;
|
|
822
|
+
side: "buy" | "sell";
|
|
823
|
+
status: "completed" | "created" | "failed";
|
|
824
|
+
updatedAt: Date;
|
|
825
|
+
user: {
|
|
826
|
+
id: string;
|
|
827
|
+
name: string;
|
|
828
|
+
email: string;
|
|
829
|
+
username: string | null;
|
|
830
|
+
displayUsername: string | null;
|
|
831
|
+
};
|
|
832
|
+
userBaseAccountId: string;
|
|
833
|
+
userCreditLedgerEntryId: string | null;
|
|
834
|
+
userDebitLedgerEntryId: string | null;
|
|
835
|
+
userId: string;
|
|
836
|
+
userQuoteAccountId: string;
|
|
837
837
|
}[];
|
|
838
838
|
pagination: {
|
|
839
|
-
total: number;
|
|
840
839
|
pageSize: number;
|
|
841
840
|
pageIndex: number;
|
|
841
|
+
total: number;
|
|
842
842
|
totalPages: number;
|
|
843
843
|
hasNextPage: boolean;
|
|
844
844
|
};
|
|
@@ -846,7 +846,7 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
846
846
|
401: "Unauthorized";
|
|
847
847
|
403: "Forbidden: Admins only";
|
|
848
848
|
422: {
|
|
849
|
-
type:
|
|
849
|
+
type: 'validation';
|
|
850
850
|
on: string;
|
|
851
851
|
summary?: string;
|
|
852
852
|
message?: string;
|
|
@@ -874,16 +874,16 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
874
874
|
email: string;
|
|
875
875
|
emailVerified: boolean;
|
|
876
876
|
name: string;
|
|
877
|
-
image?: string | null | undefined
|
|
878
|
-
|
|
879
|
-
|
|
877
|
+
image?: string | null | undefined;
|
|
878
|
+
banExpires?: Date | null | undefined;
|
|
879
|
+
banReason?: string | null | undefined;
|
|
880
|
+
banned: boolean | null | undefined;
|
|
880
881
|
displayUsername?: string | null | undefined;
|
|
881
882
|
phoneNumber?: string | null | undefined;
|
|
882
883
|
phoneNumberVerified?: boolean | null | undefined;
|
|
883
|
-
banned: boolean | null | undefined;
|
|
884
884
|
role?: string | null | undefined;
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
886
|
+
username?: string | null | undefined;
|
|
887
887
|
};
|
|
888
888
|
session: {
|
|
889
889
|
id: string;
|
|
@@ -892,8 +892,8 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
892
892
|
userId: string;
|
|
893
893
|
expiresAt: Date;
|
|
894
894
|
token: string;
|
|
895
|
-
ipAddress?: string | null | undefined
|
|
896
|
-
userAgent?: string | null | undefined
|
|
895
|
+
ipAddress?: string | null | undefined;
|
|
896
|
+
userAgent?: string | null | undefined;
|
|
897
897
|
impersonatedBy?: string | null | undefined;
|
|
898
898
|
};
|
|
899
899
|
} & {
|
|
@@ -904,16 +904,16 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
904
904
|
email: string;
|
|
905
905
|
emailVerified: boolean;
|
|
906
906
|
name: string;
|
|
907
|
-
image?: string | null | undefined
|
|
908
|
-
|
|
909
|
-
|
|
907
|
+
image?: string | null | undefined;
|
|
908
|
+
banExpires?: Date | null | undefined;
|
|
909
|
+
banReason?: string | null | undefined;
|
|
910
|
+
banned: boolean | null | undefined;
|
|
910
911
|
displayUsername?: string | null | undefined;
|
|
911
912
|
phoneNumber?: string | null | undefined;
|
|
912
913
|
phoneNumberVerified?: boolean | null | undefined;
|
|
913
|
-
banned: boolean | null | undefined;
|
|
914
914
|
role?: string | null | undefined;
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
916
|
+
username?: string | null | undefined;
|
|
917
917
|
};
|
|
918
918
|
session: {
|
|
919
919
|
id: string;
|
|
@@ -922,8 +922,8 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
|
|
|
922
922
|
userId: string;
|
|
923
923
|
expiresAt: Date;
|
|
924
924
|
token: string;
|
|
925
|
-
ipAddress?: string | null | undefined
|
|
926
|
-
userAgent?: string | null | undefined
|
|
925
|
+
ipAddress?: string | null | undefined;
|
|
926
|
+
userAgent?: string | null | undefined;
|
|
927
927
|
impersonatedBy?: string | null | undefined;
|
|
928
928
|
};
|
|
929
929
|
};
|