@r2wa-org/eden 0.0.97 → 0.0.99
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 +731 -152
- package/dist/asset/admin/router.d.ts +1 -13
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +8 -0
- package/dist/asset-convert-product/admin/router.d.ts +25 -13
- package/dist/asset-convert-product/admin/service.d.ts +12 -12
- package/dist/auth/better-auth.d.ts +7 -1
- package/dist/auth/i18n/zh.d.ts +100 -0
- package/dist/auth/permissions.d.ts +6 -1
- package/dist/auth/roles.d.ts +15 -0
- package/dist/bank-account/admin/router.d.ts +13 -1
- package/dist/content-video/admin/dto.schemas.d.ts +128 -0
- package/dist/content-video/admin/router.d.ts +861 -0
- package/dist/content-video/admin/service.d.ts +210 -0
- package/dist/content-video/db.schemas.d.ts +486 -0
- package/dist/content-video/errors/index.d.ts +17 -0
- package/dist/content-video/errors/locales/zh.d.ts +16 -0
- package/dist/content-video/index.d.ts +8 -0
- package/dist/content-video/internal/service.d.ts +106 -0
- package/dist/content-video/permissions.d.ts +4 -0
- package/dist/content-video/schema.d.ts +257 -0
- package/dist/content-video/user/dto.schemas.d.ts +52 -0
- package/dist/content-video/user/router.d.ts +482 -0
- package/dist/content-video/user/service.d.ts +36 -0
- package/dist/db/schemas.d.ts +1 -0
- package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
- package/dist/file-storage/admin/router.d.ts +2 -2
- package/dist/file-storage/admin/service.d.ts +2 -2
- package/dist/file-storage/db.schemas.d.ts +4 -4
- package/dist/file-storage/internal/service.d.ts +1 -1
- package/dist/file-storage/s3.client.d.ts +22 -0
- package/dist/file-storage/schema.d.ts +3 -3
- package/dist/file-storage/share/dto.schemas.d.ts +1 -0
- package/dist/file-storage/share/router.d.ts +1 -1
- package/dist/file-storage/user/dto.schemas.d.ts +6 -4
- package/dist/file-storage/user/router.d.ts +3 -3
- package/dist/file-storage/user/service.d.ts +2 -2
- package/dist/index.d.ts +1019 -170
- package/dist/ledger/admin/dto.schemas.d.ts +8 -0
- package/dist/ledger/admin/router.d.ts +4 -4
- package/dist/ledger/db.schemas.d.ts +8 -8
- package/dist/ledger/schema.d.ts +6 -6
- package/dist/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/ledger/user/router.d.ts +2 -2
- package/dist/ledger/user/service.d.ts +2 -2
- package/dist/ledger-account-type/admin/router.d.ts +1 -13
- package/dist/lock-activity/admin/participation.dto.schemas.d.ts +52 -0
- package/dist/lock-activity/admin/reward.service.d.ts +48 -0
- package/dist/lock-activity/admin/router.d.ts +71 -0
- package/dist/lock-activity/constants.d.ts +2 -0
- package/dist/lock-activity/cron.d.ts +6 -0
- package/dist/lock-activity/errors/index.d.ts +3 -0
- package/dist/lock-activity/errors/locales/zh.d.ts +3 -0
- package/dist/lock-activity/internal/reward.service.d.ts +15 -0
- package/dist/lock-activity/user/router.d.ts +13 -1
- package/dist/news/admin/dto.schemas.d.ts +26 -26
- package/dist/news/admin/router.d.ts +25 -25
- package/dist/news/admin/service.d.ts +4 -1
- package/dist/news/user/service.d.ts +2 -2
- package/dist/referral/admin/dto.schemas.d.ts +597 -0
- package/dist/referral/admin/router.d.ts +553 -0
- package/dist/referral/admin/service.d.ts +6 -0
- package/dist/referral/errors/index.d.ts +15 -0
- package/dist/referral/errors/locales/zh.d.ts +14 -0
- package/dist/referral/index.d.ts +10 -0
- package/dist/referral/internal/service.d.ts +23 -0
- package/dist/referral/user/dto.schemas.d.ts +602 -0
- package/dist/referral/user/router.d.ts +606 -0
- package/dist/referral/user/service.d.ts +21 -0
- package/dist/user/internal/avatar.service.d.ts +42 -0
- package/dist/withdraw/user/router.d.ts +1 -13
- package/package.json +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -1876,19 +1876,19 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1876
1876
|
createdAt: Date;
|
|
1877
1877
|
creditLedgerEntry?: {
|
|
1878
1878
|
id: string;
|
|
1879
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
1879
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
1880
1880
|
amount: string;
|
|
1881
1881
|
referenceId: string;
|
|
1882
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
1882
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
1883
1883
|
createdAt: Date;
|
|
1884
1884
|
} | undefined;
|
|
1885
1885
|
creditLedgerEntryId: string | null;
|
|
1886
1886
|
debitLedgerEntry?: {
|
|
1887
1887
|
id: string;
|
|
1888
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
1888
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
1889
1889
|
amount: string;
|
|
1890
1890
|
referenceId: string;
|
|
1891
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
1891
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
1892
1892
|
createdAt: Date;
|
|
1893
1893
|
} | undefined;
|
|
1894
1894
|
debitLedgerEntryId: string | null;
|
|
@@ -2047,19 +2047,19 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2047
2047
|
createdAt: Date;
|
|
2048
2048
|
creditLedgerEntry?: {
|
|
2049
2049
|
id: string;
|
|
2050
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2050
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2051
2051
|
amount: string;
|
|
2052
2052
|
referenceId: string;
|
|
2053
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2053
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2054
2054
|
createdAt: Date;
|
|
2055
2055
|
} | undefined;
|
|
2056
2056
|
creditLedgerEntryId: string | null;
|
|
2057
2057
|
debitLedgerEntry?: {
|
|
2058
2058
|
id: string;
|
|
2059
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2059
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2060
2060
|
amount: string;
|
|
2061
2061
|
referenceId: string;
|
|
2062
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2062
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2063
2063
|
createdAt: Date;
|
|
2064
2064
|
} | undefined;
|
|
2065
2065
|
debitLedgerEntryId: string | null;
|
|
@@ -2212,19 +2212,19 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
2212
2212
|
createdAt: Date;
|
|
2213
2213
|
creditLedgerEntry?: {
|
|
2214
2214
|
id: string;
|
|
2215
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2215
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2216
2216
|
amount: string;
|
|
2217
2217
|
referenceId: string;
|
|
2218
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2218
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2219
2219
|
createdAt: Date;
|
|
2220
2220
|
} | undefined;
|
|
2221
2221
|
creditLedgerEntryId: string | null;
|
|
2222
2222
|
debitLedgerEntry?: {
|
|
2223
2223
|
id: string;
|
|
2224
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2224
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
2225
2225
|
amount: string;
|
|
2226
2226
|
referenceId: string;
|
|
2227
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2227
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
2228
2228
|
createdAt: Date;
|
|
2229
2229
|
} | undefined;
|
|
2230
2230
|
debitLedgerEntryId: string | null;
|
|
@@ -4366,7 +4366,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4366
4366
|
query: {
|
|
4367
4367
|
accountId?: string | undefined;
|
|
4368
4368
|
assetId?: string | undefined;
|
|
4369
|
-
bizType?: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release" | undefined;
|
|
4369
|
+
bizType?: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release" | undefined;
|
|
4370
4370
|
changeDirection?: "decrease" | "increase" | undefined;
|
|
4371
4371
|
endDate?: Date | undefined;
|
|
4372
4372
|
limit?: number | undefined;
|
|
@@ -4375,7 +4375,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4375
4375
|
pageIndex?: number | undefined;
|
|
4376
4376
|
pageSize?: number | undefined;
|
|
4377
4377
|
referenceId?: string | undefined;
|
|
4378
|
-
referenceType?: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order" | undefined;
|
|
4378
|
+
referenceType?: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order" | undefined;
|
|
4379
4379
|
startDate?: Date | undefined;
|
|
4380
4380
|
userId?: string | undefined;
|
|
4381
4381
|
};
|
|
@@ -4394,7 +4394,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4394
4394
|
isActive: boolean;
|
|
4395
4395
|
};
|
|
4396
4396
|
assetId: string;
|
|
4397
|
-
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
4397
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
|
|
4398
4398
|
createdAt: Date;
|
|
4399
4399
|
fromAccount?: {
|
|
4400
4400
|
asset: {
|
|
@@ -4446,7 +4446,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
4446
4446
|
} | undefined;
|
|
4447
4447
|
operatorId: string | null;
|
|
4448
4448
|
referenceId: string;
|
|
4449
|
-
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
4449
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
4450
4450
|
toAccount?: {
|
|
4451
4451
|
asset: {
|
|
4452
4452
|
id: string;
|
|
@@ -5982,6 +5982,106 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
5982
5982
|
};
|
|
5983
5983
|
};
|
|
5984
5984
|
};
|
|
5985
|
+
} & {
|
|
5986
|
+
admin: {
|
|
5987
|
+
referrals: {};
|
|
5988
|
+
} & {
|
|
5989
|
+
referrals: {
|
|
5990
|
+
summary: {
|
|
5991
|
+
get: {
|
|
5992
|
+
body: {};
|
|
5993
|
+
params: {};
|
|
5994
|
+
query: {
|
|
5995
|
+
referralCode?: string | undefined;
|
|
5996
|
+
};
|
|
5997
|
+
headers: {};
|
|
5998
|
+
response: {
|
|
5999
|
+
200: {
|
|
6000
|
+
level1Count: number;
|
|
6001
|
+
level2Count: number;
|
|
6002
|
+
level3Count: number;
|
|
6003
|
+
referralCode: string;
|
|
6004
|
+
referredBy?: string | undefined;
|
|
6005
|
+
totalCount: number;
|
|
6006
|
+
userId: string;
|
|
6007
|
+
};
|
|
6008
|
+
401: "Unauthorized";
|
|
6009
|
+
403: "Forbidden: Admins only";
|
|
6010
|
+
422: {
|
|
6011
|
+
type: 'validation';
|
|
6012
|
+
on: string;
|
|
6013
|
+
summary?: string;
|
|
6014
|
+
message?: string;
|
|
6015
|
+
found?: unknown;
|
|
6016
|
+
property?: string;
|
|
6017
|
+
expected?: string;
|
|
6018
|
+
};
|
|
6019
|
+
};
|
|
6020
|
+
};
|
|
6021
|
+
};
|
|
6022
|
+
};
|
|
6023
|
+
} & {
|
|
6024
|
+
referrals: {
|
|
6025
|
+
members: {
|
|
6026
|
+
get: {
|
|
6027
|
+
body: {};
|
|
6028
|
+
params: {};
|
|
6029
|
+
query: {
|
|
6030
|
+
limit?: number | undefined;
|
|
6031
|
+
maxDepth?: number | undefined;
|
|
6032
|
+
offset?: number | undefined;
|
|
6033
|
+
pageIndex?: number | undefined;
|
|
6034
|
+
pageSize?: number | undefined;
|
|
6035
|
+
referralCode: string;
|
|
6036
|
+
};
|
|
6037
|
+
headers: {};
|
|
6038
|
+
response: {
|
|
6039
|
+
200: {
|
|
6040
|
+
data: {
|
|
6041
|
+
depth: number;
|
|
6042
|
+
user: {
|
|
6043
|
+
id: string;
|
|
6044
|
+
name: string;
|
|
6045
|
+
email: string;
|
|
6046
|
+
emailVerified: boolean;
|
|
6047
|
+
image: string | null;
|
|
6048
|
+
createdAt: Date;
|
|
6049
|
+
updatedAt: Date;
|
|
6050
|
+
twoFactorEnabled: boolean | null;
|
|
6051
|
+
username: string | null;
|
|
6052
|
+
displayUsername: string | null;
|
|
6053
|
+
phoneNumber: string | null;
|
|
6054
|
+
phoneNumberVerified: boolean | null;
|
|
6055
|
+
role: string | null;
|
|
6056
|
+
banned: boolean | null;
|
|
6057
|
+
banReason: string | null;
|
|
6058
|
+
banExpires: Date | null;
|
|
6059
|
+
};
|
|
6060
|
+
}[];
|
|
6061
|
+
pagination: {
|
|
6062
|
+
pageSize: number;
|
|
6063
|
+
pageIndex: number;
|
|
6064
|
+
total: number;
|
|
6065
|
+
totalPages: number;
|
|
6066
|
+
hasNextPage: boolean;
|
|
6067
|
+
};
|
|
6068
|
+
};
|
|
6069
|
+
401: "Unauthorized";
|
|
6070
|
+
403: "Forbidden: Admins only";
|
|
6071
|
+
422: {
|
|
6072
|
+
type: 'validation';
|
|
6073
|
+
on: string;
|
|
6074
|
+
summary?: string;
|
|
6075
|
+
message?: string;
|
|
6076
|
+
found?: unknown;
|
|
6077
|
+
property?: string;
|
|
6078
|
+
expected?: string;
|
|
6079
|
+
};
|
|
6080
|
+
};
|
|
6081
|
+
};
|
|
6082
|
+
};
|
|
6083
|
+
};
|
|
6084
|
+
};
|
|
5985
6085
|
} & {
|
|
5986
6086
|
admin: {
|
|
5987
6087
|
referrals: {
|
|
@@ -7085,22 +7185,22 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7085
7185
|
news: {
|
|
7086
7186
|
post: {
|
|
7087
7187
|
body: {
|
|
7088
|
-
|
|
7089
|
-
summary?: string | null | undefined;
|
|
7090
|
-
content: string;
|
|
7188
|
+
attachmentIds?: string[] | null | undefined;
|
|
7091
7189
|
categoryId?: string | undefined;
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
isHot?: boolean | undefined;
|
|
7190
|
+
content: string;
|
|
7191
|
+
expiresAt?: string | Date | null | undefined;
|
|
7192
|
+
externalUrl?: string | null | undefined;
|
|
7096
7193
|
hasVideo?: boolean | undefined;
|
|
7097
|
-
|
|
7194
|
+
isHot?: boolean | undefined;
|
|
7195
|
+
isPinned?: boolean | undefined;
|
|
7196
|
+
publishedAt?: string | Date | null | undefined;
|
|
7098
7197
|
requireReadConfirmation?: boolean | undefined;
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7198
|
+
scope?: string[] | undefined;
|
|
7199
|
+
sortOrder?: number | undefined;
|
|
7200
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
7201
|
+
summary?: string | null | undefined;
|
|
7102
7202
|
thumbnailId?: string | null | undefined;
|
|
7103
|
-
|
|
7203
|
+
title: string;
|
|
7104
7204
|
};
|
|
7105
7205
|
params: {};
|
|
7106
7206
|
query: {};
|
|
@@ -7160,18 +7260,402 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7160
7260
|
externalUrl: string | null;
|
|
7161
7261
|
hasVideo: boolean;
|
|
7162
7262
|
id: string;
|
|
7163
|
-
isHot: boolean;
|
|
7164
|
-
isPinned: boolean;
|
|
7263
|
+
isHot: boolean;
|
|
7264
|
+
isPinned: boolean;
|
|
7265
|
+
publishedAt: Date | null;
|
|
7266
|
+
requireReadConfirmation: boolean;
|
|
7267
|
+
scope: string[];
|
|
7268
|
+
sortOrder: number;
|
|
7269
|
+
status: "archived" | "draft" | "published";
|
|
7270
|
+
summary: string | null;
|
|
7271
|
+
thumbnailId: string | null;
|
|
7272
|
+
title: string;
|
|
7273
|
+
updatedAt: Date;
|
|
7274
|
+
viewCount: number;
|
|
7275
|
+
}[];
|
|
7276
|
+
pagination: {
|
|
7277
|
+
pageSize: number;
|
|
7278
|
+
pageIndex: number;
|
|
7279
|
+
total: number;
|
|
7280
|
+
totalPages: number;
|
|
7281
|
+
hasNextPage: boolean;
|
|
7282
|
+
};
|
|
7283
|
+
};
|
|
7284
|
+
401: "Unauthorized";
|
|
7285
|
+
403: "Forbidden: Admins only";
|
|
7286
|
+
422: {
|
|
7287
|
+
type: 'validation';
|
|
7288
|
+
on: string;
|
|
7289
|
+
summary?: string;
|
|
7290
|
+
message?: string;
|
|
7291
|
+
found?: unknown;
|
|
7292
|
+
property?: string;
|
|
7293
|
+
expected?: string;
|
|
7294
|
+
};
|
|
7295
|
+
};
|
|
7296
|
+
};
|
|
7297
|
+
};
|
|
7298
|
+
} & {
|
|
7299
|
+
news: {
|
|
7300
|
+
":id": {
|
|
7301
|
+
get: {
|
|
7302
|
+
body: {};
|
|
7303
|
+
params: {
|
|
7304
|
+
id: string;
|
|
7305
|
+
};
|
|
7306
|
+
query: {};
|
|
7307
|
+
headers: {};
|
|
7308
|
+
response: {
|
|
7309
|
+
200: {
|
|
7310
|
+
attachmentIds: string[] | null;
|
|
7311
|
+
category: {
|
|
7312
|
+
createdAt: Date;
|
|
7313
|
+
description: string | null;
|
|
7314
|
+
icon: string | null;
|
|
7315
|
+
id: string;
|
|
7316
|
+
isActive: boolean;
|
|
7317
|
+
name: string;
|
|
7318
|
+
slug: string | null;
|
|
7319
|
+
sortOrder: number;
|
|
7320
|
+
updatedAt: Date;
|
|
7321
|
+
};
|
|
7322
|
+
categoryId: string;
|
|
7323
|
+
content: string;
|
|
7324
|
+
createdAt: Date;
|
|
7325
|
+
createdBy: string;
|
|
7326
|
+
deletedAt: Date | null;
|
|
7327
|
+
expiresAt: Date | null;
|
|
7328
|
+
externalUrl: string | null;
|
|
7329
|
+
hasVideo: boolean;
|
|
7330
|
+
id: string;
|
|
7331
|
+
isHot: boolean;
|
|
7332
|
+
isPinned: boolean;
|
|
7333
|
+
publishedAt: Date | null;
|
|
7334
|
+
requireReadConfirmation: boolean;
|
|
7335
|
+
scope: string[];
|
|
7336
|
+
sortOrder: number;
|
|
7337
|
+
status: "archived" | "draft" | "published";
|
|
7338
|
+
summary: string | null;
|
|
7339
|
+
thumbnail: {
|
|
7340
|
+
accessControl: "private" | "public" | "restricted" | null;
|
|
7341
|
+
archivedAt: Date | null;
|
|
7342
|
+
businessId: string | null;
|
|
7343
|
+
businessMetadata: string | null;
|
|
7344
|
+
businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
7345
|
+
createdAt: Date;
|
|
7346
|
+
deletedAt: Date | null;
|
|
7347
|
+
downloadCount: number | null;
|
|
7348
|
+
fileExtension: string | null;
|
|
7349
|
+
fileHash: string | null;
|
|
7350
|
+
fileName: string | null;
|
|
7351
|
+
fileSize: number | null;
|
|
7352
|
+
id: string;
|
|
7353
|
+
isVerified: boolean | null;
|
|
7354
|
+
lastDownloadedAt: Date | null;
|
|
7355
|
+
mimeType: string | null;
|
|
7356
|
+
ownerId: string;
|
|
7357
|
+
publicUrl: string | null;
|
|
7358
|
+
s3Bucket: string;
|
|
7359
|
+
s3ETag: string | null;
|
|
7360
|
+
s3Key: string;
|
|
7361
|
+
s3Region: string;
|
|
7362
|
+
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
7363
|
+
thumbnailUrl: string | null;
|
|
7364
|
+
updatedAt: Date;
|
|
7365
|
+
uploadCompletedAt: Date | null;
|
|
7366
|
+
uploadIpAddress: string | null;
|
|
7367
|
+
verificationNote: string | null;
|
|
7368
|
+
verifiedAt: Date | null;
|
|
7369
|
+
verifiedBy: string | null;
|
|
7370
|
+
} | null;
|
|
7371
|
+
thumbnailId: string | null;
|
|
7372
|
+
title: string;
|
|
7373
|
+
updatedAt: Date;
|
|
7374
|
+
viewCount: number;
|
|
7375
|
+
};
|
|
7376
|
+
401: "Unauthorized";
|
|
7377
|
+
403: "Forbidden: Admins only";
|
|
7378
|
+
422: {
|
|
7379
|
+
type: 'validation';
|
|
7380
|
+
on: string;
|
|
7381
|
+
summary?: string;
|
|
7382
|
+
message?: string;
|
|
7383
|
+
found?: unknown;
|
|
7384
|
+
property?: string;
|
|
7385
|
+
expected?: string;
|
|
7386
|
+
};
|
|
7387
|
+
};
|
|
7388
|
+
};
|
|
7389
|
+
};
|
|
7390
|
+
};
|
|
7391
|
+
} & {
|
|
7392
|
+
news: {
|
|
7393
|
+
":id": {
|
|
7394
|
+
patch: {
|
|
7395
|
+
body: {
|
|
7396
|
+
attachmentIds?: string[] | null | undefined;
|
|
7397
|
+
categoryId?: string | undefined;
|
|
7398
|
+
content?: string | undefined;
|
|
7399
|
+
expiresAt?: string | Date | null | undefined;
|
|
7400
|
+
externalUrl?: string | null | undefined;
|
|
7401
|
+
hasVideo?: boolean | undefined;
|
|
7402
|
+
isHot?: boolean | undefined;
|
|
7403
|
+
isPinned?: boolean | undefined;
|
|
7404
|
+
publishedAt?: string | Date | null | undefined;
|
|
7405
|
+
requireReadConfirmation?: boolean | undefined;
|
|
7406
|
+
scope?: string[] | undefined;
|
|
7407
|
+
sortOrder?: number | undefined;
|
|
7408
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
7409
|
+
summary?: string | null | undefined;
|
|
7410
|
+
thumbnailId?: string | null | undefined;
|
|
7411
|
+
title?: string | undefined;
|
|
7412
|
+
};
|
|
7413
|
+
params: {
|
|
7414
|
+
id: string;
|
|
7415
|
+
};
|
|
7416
|
+
query: {};
|
|
7417
|
+
headers: {};
|
|
7418
|
+
response: {
|
|
7419
|
+
401: "Unauthorized";
|
|
7420
|
+
403: "Forbidden: Admins only";
|
|
7421
|
+
422: {
|
|
7422
|
+
type: 'validation';
|
|
7423
|
+
on: string;
|
|
7424
|
+
summary?: string;
|
|
7425
|
+
message?: string;
|
|
7426
|
+
found?: unknown;
|
|
7427
|
+
property?: string;
|
|
7428
|
+
expected?: string;
|
|
7429
|
+
};
|
|
7430
|
+
};
|
|
7431
|
+
};
|
|
7432
|
+
};
|
|
7433
|
+
};
|
|
7434
|
+
} & {
|
|
7435
|
+
news: {
|
|
7436
|
+
":id": {
|
|
7437
|
+
delete: {
|
|
7438
|
+
body: {};
|
|
7439
|
+
params: {
|
|
7440
|
+
id: string;
|
|
7441
|
+
};
|
|
7442
|
+
query: {};
|
|
7443
|
+
headers: {};
|
|
7444
|
+
response: {
|
|
7445
|
+
200: {
|
|
7446
|
+
success: boolean;
|
|
7447
|
+
};
|
|
7448
|
+
401: "Unauthorized";
|
|
7449
|
+
403: "Forbidden: Admins only";
|
|
7450
|
+
422: {
|
|
7451
|
+
type: 'validation';
|
|
7452
|
+
on: string;
|
|
7453
|
+
summary?: string;
|
|
7454
|
+
message?: string;
|
|
7455
|
+
found?: unknown;
|
|
7456
|
+
property?: string;
|
|
7457
|
+
expected?: string;
|
|
7458
|
+
};
|
|
7459
|
+
};
|
|
7460
|
+
};
|
|
7461
|
+
};
|
|
7462
|
+
};
|
|
7463
|
+
} & {
|
|
7464
|
+
news: {
|
|
7465
|
+
":id": {
|
|
7466
|
+
pin: {
|
|
7467
|
+
post: {
|
|
7468
|
+
body: {
|
|
7469
|
+
isPinned: boolean;
|
|
7470
|
+
sortOrder?: number | undefined;
|
|
7471
|
+
};
|
|
7472
|
+
params: {
|
|
7473
|
+
id: string;
|
|
7474
|
+
};
|
|
7475
|
+
query: {};
|
|
7476
|
+
headers: {};
|
|
7477
|
+
response: {
|
|
7478
|
+
401: "Unauthorized";
|
|
7479
|
+
403: "Forbidden: Admins only";
|
|
7480
|
+
422: {
|
|
7481
|
+
type: 'validation';
|
|
7482
|
+
on: string;
|
|
7483
|
+
summary?: string;
|
|
7484
|
+
message?: string;
|
|
7485
|
+
found?: unknown;
|
|
7486
|
+
property?: string;
|
|
7487
|
+
expected?: string;
|
|
7488
|
+
};
|
|
7489
|
+
};
|
|
7490
|
+
};
|
|
7491
|
+
};
|
|
7492
|
+
};
|
|
7493
|
+
};
|
|
7494
|
+
} & {
|
|
7495
|
+
news: {
|
|
7496
|
+
":id": {
|
|
7497
|
+
hot: {
|
|
7498
|
+
post: {
|
|
7499
|
+
body: {
|
|
7500
|
+
isHot: boolean;
|
|
7501
|
+
};
|
|
7502
|
+
params: {
|
|
7503
|
+
id: string;
|
|
7504
|
+
};
|
|
7505
|
+
query: {};
|
|
7506
|
+
headers: {};
|
|
7507
|
+
response: {
|
|
7508
|
+
401: "Unauthorized";
|
|
7509
|
+
403: "Forbidden: Admins only";
|
|
7510
|
+
422: {
|
|
7511
|
+
type: 'validation';
|
|
7512
|
+
on: string;
|
|
7513
|
+
summary?: string;
|
|
7514
|
+
message?: string;
|
|
7515
|
+
found?: unknown;
|
|
7516
|
+
property?: string;
|
|
7517
|
+
expected?: string;
|
|
7518
|
+
};
|
|
7519
|
+
};
|
|
7520
|
+
};
|
|
7521
|
+
};
|
|
7522
|
+
};
|
|
7523
|
+
};
|
|
7524
|
+
} & {
|
|
7525
|
+
news: {
|
|
7526
|
+
stats: {
|
|
7527
|
+
get: {
|
|
7528
|
+
body: {};
|
|
7529
|
+
params: {};
|
|
7530
|
+
query: {};
|
|
7531
|
+
headers: {};
|
|
7532
|
+
response: {
|
|
7533
|
+
200: {
|
|
7534
|
+
total: number;
|
|
7535
|
+
published: number;
|
|
7536
|
+
pinned: number;
|
|
7537
|
+
requireConfirmation: number;
|
|
7538
|
+
};
|
|
7539
|
+
401: "Unauthorized";
|
|
7540
|
+
403: "Forbidden: Admins only";
|
|
7541
|
+
};
|
|
7542
|
+
};
|
|
7543
|
+
};
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
7546
|
+
} & {
|
|
7547
|
+
admin: {
|
|
7548
|
+
content_videos: {};
|
|
7549
|
+
} & {
|
|
7550
|
+
content_videos: {
|
|
7551
|
+
post: {
|
|
7552
|
+
body: {
|
|
7553
|
+
title: string;
|
|
7554
|
+
description?: string | null | undefined;
|
|
7555
|
+
videoFileId: string;
|
|
7556
|
+
coverFileId?: string | undefined;
|
|
7557
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
7558
|
+
isEnabled?: boolean | undefined;
|
|
7559
|
+
sortOrder?: number | undefined;
|
|
7560
|
+
durationSeconds?: number | null | undefined;
|
|
7561
|
+
publishedAt?: Date | null | undefined;
|
|
7562
|
+
};
|
|
7563
|
+
params: {};
|
|
7564
|
+
query: {};
|
|
7565
|
+
headers: {};
|
|
7566
|
+
response: {
|
|
7567
|
+
200: {
|
|
7568
|
+
coverFile?: {
|
|
7569
|
+
id: string;
|
|
7570
|
+
fileName: string | null;
|
|
7571
|
+
mimeType: string | null;
|
|
7572
|
+
fileSize: number | null;
|
|
7573
|
+
publicUrl: string | null;
|
|
7574
|
+
} | undefined;
|
|
7575
|
+
coverFileId: string | null;
|
|
7576
|
+
coverUrl?: string | undefined;
|
|
7577
|
+
createdAt: Date;
|
|
7578
|
+
createdBy: string;
|
|
7579
|
+
description: string | null;
|
|
7580
|
+
durationSeconds: number | null;
|
|
7581
|
+
id: string;
|
|
7582
|
+
isEnabled: boolean;
|
|
7583
|
+
publishedAt: Date | null;
|
|
7584
|
+
sortOrder: number;
|
|
7585
|
+
status: "archived" | "draft" | "published";
|
|
7586
|
+
title: string;
|
|
7587
|
+
updatedAt: Date;
|
|
7588
|
+
videoFile?: {
|
|
7589
|
+
id: string;
|
|
7590
|
+
fileName: string | null;
|
|
7591
|
+
mimeType: string | null;
|
|
7592
|
+
fileSize: number | null;
|
|
7593
|
+
publicUrl: string | null;
|
|
7594
|
+
} | undefined;
|
|
7595
|
+
videoFileId: string;
|
|
7596
|
+
videoUrl?: string | undefined;
|
|
7597
|
+
};
|
|
7598
|
+
401: "Unauthorized";
|
|
7599
|
+
403: "Forbidden: Admins only";
|
|
7600
|
+
422: {
|
|
7601
|
+
type: 'validation';
|
|
7602
|
+
on: string;
|
|
7603
|
+
summary?: string;
|
|
7604
|
+
message?: string;
|
|
7605
|
+
found?: unknown;
|
|
7606
|
+
property?: string;
|
|
7607
|
+
expected?: string;
|
|
7608
|
+
};
|
|
7609
|
+
};
|
|
7610
|
+
};
|
|
7611
|
+
};
|
|
7612
|
+
} & {
|
|
7613
|
+
content_videos: {
|
|
7614
|
+
get: {
|
|
7615
|
+
body: {};
|
|
7616
|
+
params: {};
|
|
7617
|
+
query: {
|
|
7618
|
+
isEnabled?: boolean | undefined;
|
|
7619
|
+
keyword?: string | undefined;
|
|
7620
|
+
limit?: number | undefined;
|
|
7621
|
+
offset?: number | undefined;
|
|
7622
|
+
pageIndex?: number | undefined;
|
|
7623
|
+
pageSize?: number | undefined;
|
|
7624
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
7625
|
+
};
|
|
7626
|
+
headers: {};
|
|
7627
|
+
response: {
|
|
7628
|
+
200: {
|
|
7629
|
+
data: {
|
|
7630
|
+
coverFile?: {
|
|
7631
|
+
id: string;
|
|
7632
|
+
fileName: string | null;
|
|
7633
|
+
mimeType: string | null;
|
|
7634
|
+
fileSize: number | null;
|
|
7635
|
+
publicUrl: string | null;
|
|
7636
|
+
} | undefined;
|
|
7637
|
+
coverFileId: string | null;
|
|
7638
|
+
coverUrl?: string | undefined;
|
|
7639
|
+
createdAt: Date;
|
|
7640
|
+
createdBy: string;
|
|
7641
|
+
description: string | null;
|
|
7642
|
+
durationSeconds: number | null;
|
|
7643
|
+
id: string;
|
|
7644
|
+
isEnabled: boolean;
|
|
7165
7645
|
publishedAt: Date | null;
|
|
7166
|
-
requireReadConfirmation: boolean;
|
|
7167
|
-
scope: string[];
|
|
7168
7646
|
sortOrder: number;
|
|
7169
7647
|
status: "archived" | "draft" | "published";
|
|
7170
|
-
summary: string | null;
|
|
7171
|
-
thumbnailId: string | null;
|
|
7172
7648
|
title: string;
|
|
7173
7649
|
updatedAt: Date;
|
|
7174
|
-
|
|
7650
|
+
videoFile?: {
|
|
7651
|
+
id: string;
|
|
7652
|
+
fileName: string | null;
|
|
7653
|
+
mimeType: string | null;
|
|
7654
|
+
fileSize: number | null;
|
|
7655
|
+
publicUrl: string | null;
|
|
7656
|
+
} | undefined;
|
|
7657
|
+
videoFileId: string;
|
|
7658
|
+
videoUrl?: string | undefined;
|
|
7175
7659
|
}[];
|
|
7176
7660
|
pagination: {
|
|
7177
7661
|
pageSize: number;
|
|
@@ -7196,7 +7680,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7196
7680
|
};
|
|
7197
7681
|
};
|
|
7198
7682
|
} & {
|
|
7199
|
-
|
|
7683
|
+
content_videos: {
|
|
7200
7684
|
":id": {
|
|
7201
7685
|
get: {
|
|
7202
7686
|
body: {};
|
|
@@ -7207,71 +7691,35 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7207
7691
|
headers: {};
|
|
7208
7692
|
response: {
|
|
7209
7693
|
200: {
|
|
7210
|
-
|
|
7211
|
-
category: {
|
|
7212
|
-
createdAt: Date;
|
|
7213
|
-
description: string | null;
|
|
7214
|
-
icon: string | null;
|
|
7694
|
+
coverFile?: {
|
|
7215
7695
|
id: string;
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
content: string;
|
|
7696
|
+
fileName: string | null;
|
|
7697
|
+
mimeType: string | null;
|
|
7698
|
+
fileSize: number | null;
|
|
7699
|
+
publicUrl: string | null;
|
|
7700
|
+
} | undefined;
|
|
7701
|
+
coverFileId: string | null;
|
|
7702
|
+
coverUrl?: string | undefined;
|
|
7224
7703
|
createdAt: Date;
|
|
7225
7704
|
createdBy: string;
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
externalUrl: string | null;
|
|
7229
|
-
hasVideo: boolean;
|
|
7705
|
+
description: string | null;
|
|
7706
|
+
durationSeconds: number | null;
|
|
7230
7707
|
id: string;
|
|
7231
|
-
|
|
7232
|
-
isPinned: boolean;
|
|
7708
|
+
isEnabled: boolean;
|
|
7233
7709
|
publishedAt: Date | null;
|
|
7234
|
-
requireReadConfirmation: boolean;
|
|
7235
|
-
scope: string[];
|
|
7236
7710
|
sortOrder: number;
|
|
7237
7711
|
status: "archived" | "draft" | "published";
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
archivedAt: Date | null;
|
|
7242
|
-
businessId: string | null;
|
|
7243
|
-
businessMetadata: string | null;
|
|
7244
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
7245
|
-
createdAt: Date;
|
|
7246
|
-
deletedAt: Date | null;
|
|
7247
|
-
downloadCount: number | null;
|
|
7248
|
-
fileExtension: string | null;
|
|
7249
|
-
fileHash: string | null;
|
|
7250
|
-
fileName: string | null;
|
|
7251
|
-
fileSize: number | null;
|
|
7712
|
+
title: string;
|
|
7713
|
+
updatedAt: Date;
|
|
7714
|
+
videoFile?: {
|
|
7252
7715
|
id: string;
|
|
7253
|
-
|
|
7254
|
-
lastDownloadedAt: Date | null;
|
|
7716
|
+
fileName: string | null;
|
|
7255
7717
|
mimeType: string | null;
|
|
7256
|
-
|
|
7718
|
+
fileSize: number | null;
|
|
7257
7719
|
publicUrl: string | null;
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
s3Region: string;
|
|
7262
|
-
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
7263
|
-
thumbnailUrl: string | null;
|
|
7264
|
-
updatedAt: Date;
|
|
7265
|
-
uploadCompletedAt: Date | null;
|
|
7266
|
-
uploadIpAddress: string | null;
|
|
7267
|
-
verificationNote: string | null;
|
|
7268
|
-
verifiedAt: Date | null;
|
|
7269
|
-
verifiedBy: string | null;
|
|
7270
|
-
} | null;
|
|
7271
|
-
thumbnailId: string | null;
|
|
7272
|
-
title: string;
|
|
7273
|
-
updatedAt: Date;
|
|
7274
|
-
viewCount: number;
|
|
7720
|
+
} | undefined;
|
|
7721
|
+
videoFileId: string;
|
|
7722
|
+
videoUrl?: string | undefined;
|
|
7275
7723
|
};
|
|
7276
7724
|
401: "Unauthorized";
|
|
7277
7725
|
403: "Forbidden: Admins only";
|
|
@@ -7289,61 +7737,56 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7289
7737
|
};
|
|
7290
7738
|
};
|
|
7291
7739
|
} & {
|
|
7292
|
-
|
|
7740
|
+
content_videos: {
|
|
7293
7741
|
":id": {
|
|
7294
7742
|
patch: {
|
|
7295
7743
|
body: {
|
|
7296
7744
|
title?: string | undefined;
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7745
|
+
description?: string | null | undefined;
|
|
7746
|
+
videoFileId?: string | undefined;
|
|
7747
|
+
coverFileId?: string | undefined;
|
|
7300
7748
|
status?: "archived" | "draft" | "published" | undefined;
|
|
7301
|
-
|
|
7302
|
-
isPinned?: boolean | undefined;
|
|
7303
|
-
isHot?: boolean | undefined;
|
|
7304
|
-
hasVideo?: boolean | undefined;
|
|
7749
|
+
isEnabled?: boolean | undefined;
|
|
7305
7750
|
sortOrder?: number | undefined;
|
|
7306
|
-
|
|
7307
|
-
externalUrl?: string | null | undefined;
|
|
7751
|
+
durationSeconds?: number | null | undefined;
|
|
7308
7752
|
publishedAt?: Date | null | undefined;
|
|
7309
|
-
expiresAt?: Date | null | undefined;
|
|
7310
|
-
thumbnailId?: string | null | undefined;
|
|
7311
|
-
attachmentIds?: string[] | null | undefined;
|
|
7312
7753
|
};
|
|
7313
7754
|
params: {
|
|
7314
7755
|
id: string;
|
|
7315
7756
|
};
|
|
7316
7757
|
query: {};
|
|
7317
7758
|
headers: {};
|
|
7318
|
-
response: {
|
|
7319
|
-
401: "Unauthorized";
|
|
7320
|
-
403: "Forbidden: Admins only";
|
|
7321
|
-
422: {
|
|
7322
|
-
type: 'validation';
|
|
7323
|
-
on: string;
|
|
7324
|
-
summary?: string;
|
|
7325
|
-
message?: string;
|
|
7326
|
-
found?: unknown;
|
|
7327
|
-
property?: string;
|
|
7328
|
-
expected?: string;
|
|
7329
|
-
};
|
|
7330
|
-
};
|
|
7331
|
-
};
|
|
7332
|
-
};
|
|
7333
|
-
};
|
|
7334
|
-
} & {
|
|
7335
|
-
news: {
|
|
7336
|
-
":id": {
|
|
7337
|
-
delete: {
|
|
7338
|
-
body: {};
|
|
7339
|
-
params: {
|
|
7340
|
-
id: string;
|
|
7341
|
-
};
|
|
7342
|
-
query: {};
|
|
7343
|
-
headers: {};
|
|
7344
7759
|
response: {
|
|
7345
7760
|
200: {
|
|
7346
|
-
|
|
7761
|
+
coverFile?: {
|
|
7762
|
+
id: string;
|
|
7763
|
+
fileName: string | null;
|
|
7764
|
+
mimeType: string | null;
|
|
7765
|
+
fileSize: number | null;
|
|
7766
|
+
publicUrl: string | null;
|
|
7767
|
+
} | undefined;
|
|
7768
|
+
coverFileId: string | null;
|
|
7769
|
+
coverUrl?: string | undefined;
|
|
7770
|
+
createdAt: Date;
|
|
7771
|
+
createdBy: string;
|
|
7772
|
+
description: string | null;
|
|
7773
|
+
durationSeconds: number | null;
|
|
7774
|
+
id: string;
|
|
7775
|
+
isEnabled: boolean;
|
|
7776
|
+
publishedAt: Date | null;
|
|
7777
|
+
sortOrder: number;
|
|
7778
|
+
status: "archived" | "draft" | "published";
|
|
7779
|
+
title: string;
|
|
7780
|
+
updatedAt: Date;
|
|
7781
|
+
videoFile?: {
|
|
7782
|
+
id: string;
|
|
7783
|
+
fileName: string | null;
|
|
7784
|
+
mimeType: string | null;
|
|
7785
|
+
fileSize: number | null;
|
|
7786
|
+
publicUrl: string | null;
|
|
7787
|
+
} | undefined;
|
|
7788
|
+
videoFileId: string;
|
|
7789
|
+
videoUrl?: string | undefined;
|
|
7347
7790
|
};
|
|
7348
7791
|
401: "Unauthorized";
|
|
7349
7792
|
403: "Forbidden: Admins only";
|
|
@@ -7361,20 +7804,48 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7361
7804
|
};
|
|
7362
7805
|
};
|
|
7363
7806
|
} & {
|
|
7364
|
-
|
|
7807
|
+
content_videos: {
|
|
7365
7808
|
":id": {
|
|
7366
|
-
|
|
7809
|
+
publish: {
|
|
7367
7810
|
post: {
|
|
7368
|
-
body: {
|
|
7369
|
-
isPinned: boolean;
|
|
7370
|
-
sortOrder?: number | undefined;
|
|
7371
|
-
};
|
|
7811
|
+
body: {};
|
|
7372
7812
|
params: {
|
|
7373
7813
|
id: string;
|
|
7374
7814
|
};
|
|
7375
7815
|
query: {};
|
|
7376
7816
|
headers: {};
|
|
7377
7817
|
response: {
|
|
7818
|
+
200: {
|
|
7819
|
+
coverFile?: {
|
|
7820
|
+
id: string;
|
|
7821
|
+
fileName: string | null;
|
|
7822
|
+
mimeType: string | null;
|
|
7823
|
+
fileSize: number | null;
|
|
7824
|
+
publicUrl: string | null;
|
|
7825
|
+
} | undefined;
|
|
7826
|
+
coverFileId: string | null;
|
|
7827
|
+
coverUrl?: string | undefined;
|
|
7828
|
+
createdAt: Date;
|
|
7829
|
+
createdBy: string;
|
|
7830
|
+
description: string | null;
|
|
7831
|
+
durationSeconds: number | null;
|
|
7832
|
+
id: string;
|
|
7833
|
+
isEnabled: boolean;
|
|
7834
|
+
publishedAt: Date | null;
|
|
7835
|
+
sortOrder: number;
|
|
7836
|
+
status: "archived" | "draft" | "published";
|
|
7837
|
+
title: string;
|
|
7838
|
+
updatedAt: Date;
|
|
7839
|
+
videoFile?: {
|
|
7840
|
+
id: string;
|
|
7841
|
+
fileName: string | null;
|
|
7842
|
+
mimeType: string | null;
|
|
7843
|
+
fileSize: number | null;
|
|
7844
|
+
publicUrl: string | null;
|
|
7845
|
+
} | undefined;
|
|
7846
|
+
videoFileId: string;
|
|
7847
|
+
videoUrl?: string | undefined;
|
|
7848
|
+
};
|
|
7378
7849
|
401: "Unauthorized";
|
|
7379
7850
|
403: "Forbidden: Admins only";
|
|
7380
7851
|
422: {
|
|
@@ -7392,19 +7863,48 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7392
7863
|
};
|
|
7393
7864
|
};
|
|
7394
7865
|
} & {
|
|
7395
|
-
|
|
7866
|
+
content_videos: {
|
|
7396
7867
|
":id": {
|
|
7397
|
-
|
|
7868
|
+
archive: {
|
|
7398
7869
|
post: {
|
|
7399
|
-
body: {
|
|
7400
|
-
isHot: boolean;
|
|
7401
|
-
};
|
|
7870
|
+
body: {};
|
|
7402
7871
|
params: {
|
|
7403
7872
|
id: string;
|
|
7404
7873
|
};
|
|
7405
7874
|
query: {};
|
|
7406
7875
|
headers: {};
|
|
7407
7876
|
response: {
|
|
7877
|
+
200: {
|
|
7878
|
+
coverFile?: {
|
|
7879
|
+
id: string;
|
|
7880
|
+
fileName: string | null;
|
|
7881
|
+
mimeType: string | null;
|
|
7882
|
+
fileSize: number | null;
|
|
7883
|
+
publicUrl: string | null;
|
|
7884
|
+
} | undefined;
|
|
7885
|
+
coverFileId: string | null;
|
|
7886
|
+
coverUrl?: string | undefined;
|
|
7887
|
+
createdAt: Date;
|
|
7888
|
+
createdBy: string;
|
|
7889
|
+
description: string | null;
|
|
7890
|
+
durationSeconds: number | null;
|
|
7891
|
+
id: string;
|
|
7892
|
+
isEnabled: boolean;
|
|
7893
|
+
publishedAt: Date | null;
|
|
7894
|
+
sortOrder: number;
|
|
7895
|
+
status: "archived" | "draft" | "published";
|
|
7896
|
+
title: string;
|
|
7897
|
+
updatedAt: Date;
|
|
7898
|
+
videoFile?: {
|
|
7899
|
+
id: string;
|
|
7900
|
+
fileName: string | null;
|
|
7901
|
+
mimeType: string | null;
|
|
7902
|
+
fileSize: number | null;
|
|
7903
|
+
publicUrl: string | null;
|
|
7904
|
+
} | undefined;
|
|
7905
|
+
videoFileId: string;
|
|
7906
|
+
videoUrl?: string | undefined;
|
|
7907
|
+
};
|
|
7408
7908
|
401: "Unauthorized";
|
|
7409
7909
|
403: "Forbidden: Admins only";
|
|
7410
7910
|
422: {
|
|
@@ -7422,22 +7922,30 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7422
7922
|
};
|
|
7423
7923
|
};
|
|
7424
7924
|
} & {
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7925
|
+
content_videos: {
|
|
7926
|
+
":id": {
|
|
7927
|
+
delete: {
|
|
7428
7928
|
body: {};
|
|
7429
|
-
params: {
|
|
7929
|
+
params: {
|
|
7930
|
+
id: string;
|
|
7931
|
+
};
|
|
7430
7932
|
query: {};
|
|
7431
7933
|
headers: {};
|
|
7432
7934
|
response: {
|
|
7433
7935
|
200: {
|
|
7434
|
-
|
|
7435
|
-
published: number;
|
|
7436
|
-
pinned: number;
|
|
7437
|
-
requireConfirmation: number;
|
|
7936
|
+
success: boolean;
|
|
7438
7937
|
};
|
|
7439
7938
|
401: "Unauthorized";
|
|
7440
7939
|
403: "Forbidden: Admins only";
|
|
7940
|
+
422: {
|
|
7941
|
+
type: 'validation';
|
|
7942
|
+
on: string;
|
|
7943
|
+
summary?: string;
|
|
7944
|
+
message?: string;
|
|
7945
|
+
found?: unknown;
|
|
7946
|
+
property?: string;
|
|
7947
|
+
expected?: string;
|
|
7948
|
+
};
|
|
7441
7949
|
};
|
|
7442
7950
|
};
|
|
7443
7951
|
};
|
|
@@ -7851,7 +8359,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7851
8359
|
offset?: number | undefined;
|
|
7852
8360
|
pageSize?: number | undefined;
|
|
7853
8361
|
pageIndex?: number | undefined;
|
|
7854
|
-
businessType?: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
|
|
8362
|
+
businessType?: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
|
|
7855
8363
|
businessId?: string | undefined;
|
|
7856
8364
|
status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
|
|
7857
8365
|
accessControl?: "private" | "public" | "restricted" | null | undefined;
|
|
@@ -7865,7 +8373,7 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
7865
8373
|
archivedAt: Date | null;
|
|
7866
8374
|
businessId: string | null;
|
|
7867
8375
|
businessMetadata: string | null;
|
|
7868
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
8376
|
+
businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
7869
8377
|
createdAt: Date;
|
|
7870
8378
|
deletedAt: Date | null;
|
|
7871
8379
|
downloadCount: number | null;
|
|
@@ -10125,6 +10633,77 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
10125
10633
|
};
|
|
10126
10634
|
};
|
|
10127
10635
|
};
|
|
10636
|
+
} & {
|
|
10637
|
+
lock_activity: {
|
|
10638
|
+
participations: {
|
|
10639
|
+
":id": {
|
|
10640
|
+
"issue-reward": {
|
|
10641
|
+
post: {
|
|
10642
|
+
body: {};
|
|
10643
|
+
params: {
|
|
10644
|
+
id: string;
|
|
10645
|
+
};
|
|
10646
|
+
query: {};
|
|
10647
|
+
headers: {};
|
|
10648
|
+
response: {
|
|
10649
|
+
200: {
|
|
10650
|
+
activity: {
|
|
10651
|
+
id: string;
|
|
10652
|
+
title: string;
|
|
10653
|
+
startAt: Date;
|
|
10654
|
+
endAt: Date;
|
|
10655
|
+
status: "active" | "cancelled" | "draft" | "ended";
|
|
10656
|
+
};
|
|
10657
|
+
activityId: string;
|
|
10658
|
+
adminRemark: string | null;
|
|
10659
|
+
createdAt: Date;
|
|
10660
|
+
id: string;
|
|
10661
|
+
inviteCode: string;
|
|
10662
|
+
inviter?: {
|
|
10663
|
+
id: string;
|
|
10664
|
+
email: string;
|
|
10665
|
+
username: string | null;
|
|
10666
|
+
} | undefined;
|
|
10667
|
+
inviterMatched: boolean;
|
|
10668
|
+
inviterUserId: string | null;
|
|
10669
|
+
isIdempotent: boolean;
|
|
10670
|
+
ledgerEntryId: string;
|
|
10671
|
+
rejectReason: string | null;
|
|
10672
|
+
reviewedAt: Date | null;
|
|
10673
|
+
rewardAmount: string;
|
|
10674
|
+
rewardIssuedAt: Date | null;
|
|
10675
|
+
status: "rejected" | "reward_issued" | "submitted" | "under_review";
|
|
10676
|
+
submittedAt: Date;
|
|
10677
|
+
updatedAt: Date;
|
|
10678
|
+
user: {
|
|
10679
|
+
id: string;
|
|
10680
|
+
email: string;
|
|
10681
|
+
username: string | null;
|
|
10682
|
+
profile?: {
|
|
10683
|
+
uid: string;
|
|
10684
|
+
country: string | null;
|
|
10685
|
+
referralCode: string | null;
|
|
10686
|
+
} | undefined;
|
|
10687
|
+
};
|
|
10688
|
+
userId: string;
|
|
10689
|
+
};
|
|
10690
|
+
401: "Unauthorized";
|
|
10691
|
+
403: "Forbidden: Admins only";
|
|
10692
|
+
422: {
|
|
10693
|
+
type: 'validation';
|
|
10694
|
+
on: string;
|
|
10695
|
+
summary?: string;
|
|
10696
|
+
message?: string;
|
|
10697
|
+
found?: unknown;
|
|
10698
|
+
property?: string;
|
|
10699
|
+
expected?: string;
|
|
10700
|
+
};
|
|
10701
|
+
};
|
|
10702
|
+
};
|
|
10703
|
+
};
|
|
10704
|
+
};
|
|
10705
|
+
};
|
|
10706
|
+
};
|
|
10128
10707
|
};
|
|
10129
10708
|
} & {
|
|
10130
10709
|
admin: {
|