@r2wa-org/eden 0.0.97 → 0.0.100
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 +1460 -86
- 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 +19 -1
- package/dist/auth/i18n/zh.d.ts +100 -0
- package/dist/auth/permissions.d.ts +16 -1
- package/dist/auth/roles.d.ts +45 -0
- package/dist/check-in/admin/reward.dto.schemas.d.ts +294 -0
- package/dist/check-in/admin/reward.router.d.ts +1192 -0
- package/dist/check-in/admin/reward.service.d.ts +479 -0
- package/dist/check-in/admin/router.d.ts +745 -0
- package/dist/check-in/errors/index.d.ts +9 -0
- package/dist/check-in/errors/locales/zh.d.ts +9 -0
- package/dist/check-in/index.d.ts +5 -0
- package/dist/check-in/internal/reward-config.service.d.ts +66 -0
- package/dist/check-in/permissions.d.ts +2 -0
- package/dist/check-in/reward.db.schemas.d.ts +896 -0
- package/dist/check-in/reward.schema.d.ts +477 -0
- 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 +211 -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 +494 -0
- package/dist/content-video/user/service.d.ts +36 -0
- package/dist/db/schemas.d.ts +2 -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 +1875 -215
- 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/dto.schemas.d.ts +16 -0
- 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 +127 -0
- package/dist/lock-activity/admin/service.d.ts +134 -8
- package/dist/lock-activity/constants.d.ts +2 -0
- package/dist/lock-activity/cron.d.ts +6 -0
- package/dist/lock-activity/db.schemas.d.ts +34 -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/internal/service.d.ts +41 -0
- package/dist/lock-activity/schema.d.ts +18 -0
- package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
- package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
- package/dist/lock-activity/user/router.d.ts +16 -0
- package/dist/lock-activity/user/service.d.ts +39 -3
- 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 +565 -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/index.d.ts
CHANGED
|
@@ -570,7 +570,7 @@ declare const app: Elysia<"/api", {
|
|
|
570
570
|
body: {
|
|
571
571
|
fileName: string;
|
|
572
572
|
fileSize: number;
|
|
573
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
573
|
+
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";
|
|
574
574
|
fileExtension?: string | undefined;
|
|
575
575
|
mimeType?: string | undefined;
|
|
576
576
|
businessId?: string | undefined;
|
|
@@ -2199,19 +2199,19 @@ declare const app: Elysia<"/api", {
|
|
|
2199
2199
|
createdAt: Date;
|
|
2200
2200
|
creditLedgerEntry?: {
|
|
2201
2201
|
id: string;
|
|
2202
|
-
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";
|
|
2202
|
+
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";
|
|
2203
2203
|
amount: string;
|
|
2204
2204
|
referenceId: string;
|
|
2205
|
-
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";
|
|
2205
|
+
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";
|
|
2206
2206
|
createdAt: Date;
|
|
2207
2207
|
} | undefined;
|
|
2208
2208
|
creditLedgerEntryId: string | null;
|
|
2209
2209
|
debitLedgerEntry?: {
|
|
2210
2210
|
id: string;
|
|
2211
|
-
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";
|
|
2211
|
+
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";
|
|
2212
2212
|
amount: string;
|
|
2213
2213
|
referenceId: string;
|
|
2214
|
-
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";
|
|
2214
|
+
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";
|
|
2215
2215
|
createdAt: Date;
|
|
2216
2216
|
} | undefined;
|
|
2217
2217
|
debitLedgerEntryId: string | null;
|
|
@@ -2370,19 +2370,19 @@ declare const app: Elysia<"/api", {
|
|
|
2370
2370
|
createdAt: Date;
|
|
2371
2371
|
creditLedgerEntry?: {
|
|
2372
2372
|
id: string;
|
|
2373
|
-
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";
|
|
2373
|
+
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";
|
|
2374
2374
|
amount: string;
|
|
2375
2375
|
referenceId: string;
|
|
2376
|
-
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";
|
|
2376
|
+
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";
|
|
2377
2377
|
createdAt: Date;
|
|
2378
2378
|
} | undefined;
|
|
2379
2379
|
creditLedgerEntryId: string | null;
|
|
2380
2380
|
debitLedgerEntry?: {
|
|
2381
2381
|
id: string;
|
|
2382
|
-
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";
|
|
2382
|
+
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";
|
|
2383
2383
|
amount: string;
|
|
2384
2384
|
referenceId: string;
|
|
2385
|
-
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";
|
|
2385
|
+
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";
|
|
2386
2386
|
createdAt: Date;
|
|
2387
2387
|
} | undefined;
|
|
2388
2388
|
debitLedgerEntryId: string | null;
|
|
@@ -2535,19 +2535,19 @@ declare const app: Elysia<"/api", {
|
|
|
2535
2535
|
createdAt: Date;
|
|
2536
2536
|
creditLedgerEntry?: {
|
|
2537
2537
|
id: string;
|
|
2538
|
-
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";
|
|
2538
|
+
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";
|
|
2539
2539
|
amount: string;
|
|
2540
2540
|
referenceId: string;
|
|
2541
|
-
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";
|
|
2541
|
+
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";
|
|
2542
2542
|
createdAt: Date;
|
|
2543
2543
|
} | undefined;
|
|
2544
2544
|
creditLedgerEntryId: string | null;
|
|
2545
2545
|
debitLedgerEntry?: {
|
|
2546
2546
|
id: string;
|
|
2547
|
-
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";
|
|
2547
|
+
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";
|
|
2548
2548
|
amount: string;
|
|
2549
2549
|
referenceId: string;
|
|
2550
|
-
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";
|
|
2550
|
+
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";
|
|
2551
2551
|
createdAt: Date;
|
|
2552
2552
|
} | undefined;
|
|
2553
2553
|
debitLedgerEntryId: string | null;
|
|
@@ -4369,6 +4369,745 @@ declare const app: Elysia<"/api", {
|
|
|
4369
4369
|
} & {
|
|
4370
4370
|
admin: {
|
|
4371
4371
|
checkIns: {};
|
|
4372
|
+
} & {
|
|
4373
|
+
checkIns: {
|
|
4374
|
+
"reward-plans": {};
|
|
4375
|
+
} & {
|
|
4376
|
+
"reward-plans": {
|
|
4377
|
+
post: {
|
|
4378
|
+
body: {
|
|
4379
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4380
|
+
dailyPayoutAccountTypeId: string;
|
|
4381
|
+
dailyRewardAmount: string;
|
|
4382
|
+
dailyRewardCategory?: string | undefined;
|
|
4383
|
+
isEnabled?: boolean | undefined;
|
|
4384
|
+
name: string;
|
|
4385
|
+
rewardAssetId: string;
|
|
4386
|
+
rules?: {
|
|
4387
|
+
ruleType: "consecutive" | "cumulative";
|
|
4388
|
+
thresholdDays: number;
|
|
4389
|
+
rewardAmount: string;
|
|
4390
|
+
rewardCategory?: string | undefined;
|
|
4391
|
+
payoutAccountTypeId: string;
|
|
4392
|
+
isEnabled?: boolean | undefined;
|
|
4393
|
+
sortOrder?: number | undefined;
|
|
4394
|
+
}[] | undefined;
|
|
4395
|
+
sortOrder?: number | undefined;
|
|
4396
|
+
};
|
|
4397
|
+
params: {};
|
|
4398
|
+
query: {};
|
|
4399
|
+
headers: {};
|
|
4400
|
+
response: {
|
|
4401
|
+
200: {
|
|
4402
|
+
checkInType: "app" | "meeting";
|
|
4403
|
+
createdAt: Date;
|
|
4404
|
+
createdBy: string;
|
|
4405
|
+
creator: {
|
|
4406
|
+
id: string;
|
|
4407
|
+
name: string;
|
|
4408
|
+
email: string;
|
|
4409
|
+
} | null;
|
|
4410
|
+
dailyPayoutAccountType: {
|
|
4411
|
+
id: string;
|
|
4412
|
+
key: string;
|
|
4413
|
+
name: string;
|
|
4414
|
+
isActive: boolean;
|
|
4415
|
+
};
|
|
4416
|
+
dailyPayoutAccountTypeId: string;
|
|
4417
|
+
dailyRewardAmount: string;
|
|
4418
|
+
dailyRewardCategory: string;
|
|
4419
|
+
id: string;
|
|
4420
|
+
isEnabled: boolean;
|
|
4421
|
+
name: string;
|
|
4422
|
+
rewardAsset: {
|
|
4423
|
+
id: string;
|
|
4424
|
+
code: string;
|
|
4425
|
+
name: string;
|
|
4426
|
+
symbol: string | null;
|
|
4427
|
+
precision: number;
|
|
4428
|
+
isActive: boolean;
|
|
4429
|
+
};
|
|
4430
|
+
rewardAssetId: string;
|
|
4431
|
+
rules: {
|
|
4432
|
+
createdAt: Date;
|
|
4433
|
+
createdBy: string;
|
|
4434
|
+
creator: {
|
|
4435
|
+
id: string;
|
|
4436
|
+
name: string;
|
|
4437
|
+
email: string;
|
|
4438
|
+
} | null;
|
|
4439
|
+
id: string;
|
|
4440
|
+
isEnabled: boolean;
|
|
4441
|
+
payoutAccountType: {
|
|
4442
|
+
id: string;
|
|
4443
|
+
key: string;
|
|
4444
|
+
name: string;
|
|
4445
|
+
isActive: boolean;
|
|
4446
|
+
};
|
|
4447
|
+
payoutAccountTypeId: string;
|
|
4448
|
+
planId: string;
|
|
4449
|
+
rewardAmount: string;
|
|
4450
|
+
rewardCategory: string;
|
|
4451
|
+
ruleType: "consecutive" | "cumulative";
|
|
4452
|
+
sortOrder: number;
|
|
4453
|
+
thresholdDays: number;
|
|
4454
|
+
updatedAt: Date;
|
|
4455
|
+
updatedBy: string | null;
|
|
4456
|
+
updater: {
|
|
4457
|
+
id: string;
|
|
4458
|
+
name: string;
|
|
4459
|
+
email: string;
|
|
4460
|
+
} | null;
|
|
4461
|
+
}[];
|
|
4462
|
+
sortOrder: number;
|
|
4463
|
+
updatedAt: Date;
|
|
4464
|
+
updatedBy: string | null;
|
|
4465
|
+
updater: {
|
|
4466
|
+
id: string;
|
|
4467
|
+
name: string;
|
|
4468
|
+
email: string;
|
|
4469
|
+
} | null;
|
|
4470
|
+
};
|
|
4471
|
+
401: "Unauthorized";
|
|
4472
|
+
403: "Forbidden: Admins only";
|
|
4473
|
+
422: {
|
|
4474
|
+
type: 'validation';
|
|
4475
|
+
on: string;
|
|
4476
|
+
summary?: string;
|
|
4477
|
+
message?: string;
|
|
4478
|
+
found?: unknown;
|
|
4479
|
+
property?: string;
|
|
4480
|
+
expected?: string;
|
|
4481
|
+
};
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4484
|
+
};
|
|
4485
|
+
} & {
|
|
4486
|
+
"reward-plans": {
|
|
4487
|
+
get: {
|
|
4488
|
+
body: {};
|
|
4489
|
+
params: {};
|
|
4490
|
+
query: {
|
|
4491
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4492
|
+
isEnabled?: boolean | undefined;
|
|
4493
|
+
keyword?: string | undefined;
|
|
4494
|
+
limit?: number | undefined;
|
|
4495
|
+
offset?: number | undefined;
|
|
4496
|
+
pageIndex?: number | undefined;
|
|
4497
|
+
pageSize?: number | undefined;
|
|
4498
|
+
};
|
|
4499
|
+
headers: {};
|
|
4500
|
+
response: {
|
|
4501
|
+
200: {
|
|
4502
|
+
data: {
|
|
4503
|
+
checkInType: "app" | "meeting";
|
|
4504
|
+
createdAt: Date;
|
|
4505
|
+
createdBy: string;
|
|
4506
|
+
creator: {
|
|
4507
|
+
id: string;
|
|
4508
|
+
name: string;
|
|
4509
|
+
email: string;
|
|
4510
|
+
} | null;
|
|
4511
|
+
dailyPayoutAccountType: {
|
|
4512
|
+
id: string;
|
|
4513
|
+
key: string;
|
|
4514
|
+
name: string;
|
|
4515
|
+
isActive: boolean;
|
|
4516
|
+
};
|
|
4517
|
+
dailyPayoutAccountTypeId: string;
|
|
4518
|
+
dailyRewardAmount: string;
|
|
4519
|
+
dailyRewardCategory: string;
|
|
4520
|
+
id: string;
|
|
4521
|
+
isEnabled: boolean;
|
|
4522
|
+
name: string;
|
|
4523
|
+
rewardAsset: {
|
|
4524
|
+
id: string;
|
|
4525
|
+
code: string;
|
|
4526
|
+
name: string;
|
|
4527
|
+
symbol: string | null;
|
|
4528
|
+
precision: number;
|
|
4529
|
+
isActive: boolean;
|
|
4530
|
+
};
|
|
4531
|
+
rewardAssetId: string;
|
|
4532
|
+
ruleCount: number;
|
|
4533
|
+
sortOrder: number;
|
|
4534
|
+
updatedAt: Date;
|
|
4535
|
+
updatedBy: string | null;
|
|
4536
|
+
updater: {
|
|
4537
|
+
id: string;
|
|
4538
|
+
name: string;
|
|
4539
|
+
email: string;
|
|
4540
|
+
} | null;
|
|
4541
|
+
}[];
|
|
4542
|
+
pagination: {
|
|
4543
|
+
pageSize: number;
|
|
4544
|
+
pageIndex: number;
|
|
4545
|
+
total: number;
|
|
4546
|
+
totalPages: number;
|
|
4547
|
+
hasNextPage: boolean;
|
|
4548
|
+
};
|
|
4549
|
+
};
|
|
4550
|
+
401: "Unauthorized";
|
|
4551
|
+
403: "Forbidden: Admins only";
|
|
4552
|
+
422: {
|
|
4553
|
+
type: 'validation';
|
|
4554
|
+
on: string;
|
|
4555
|
+
summary?: string;
|
|
4556
|
+
message?: string;
|
|
4557
|
+
found?: unknown;
|
|
4558
|
+
property?: string;
|
|
4559
|
+
expected?: string;
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
} & {
|
|
4565
|
+
"reward-plans": {
|
|
4566
|
+
":id": {
|
|
4567
|
+
get: {
|
|
4568
|
+
body: {};
|
|
4569
|
+
params: {
|
|
4570
|
+
id: string;
|
|
4571
|
+
};
|
|
4572
|
+
query: {};
|
|
4573
|
+
headers: {};
|
|
4574
|
+
response: {
|
|
4575
|
+
200: {
|
|
4576
|
+
checkInType: "app" | "meeting";
|
|
4577
|
+
createdAt: Date;
|
|
4578
|
+
createdBy: string;
|
|
4579
|
+
creator: {
|
|
4580
|
+
id: string;
|
|
4581
|
+
name: string;
|
|
4582
|
+
email: string;
|
|
4583
|
+
} | null;
|
|
4584
|
+
dailyPayoutAccountType: {
|
|
4585
|
+
id: string;
|
|
4586
|
+
key: string;
|
|
4587
|
+
name: string;
|
|
4588
|
+
isActive: boolean;
|
|
4589
|
+
};
|
|
4590
|
+
dailyPayoutAccountTypeId: string;
|
|
4591
|
+
dailyRewardAmount: string;
|
|
4592
|
+
dailyRewardCategory: string;
|
|
4593
|
+
id: string;
|
|
4594
|
+
isEnabled: boolean;
|
|
4595
|
+
name: string;
|
|
4596
|
+
rewardAsset: {
|
|
4597
|
+
id: string;
|
|
4598
|
+
code: string;
|
|
4599
|
+
name: string;
|
|
4600
|
+
symbol: string | null;
|
|
4601
|
+
precision: number;
|
|
4602
|
+
isActive: boolean;
|
|
4603
|
+
};
|
|
4604
|
+
rewardAssetId: string;
|
|
4605
|
+
rules: {
|
|
4606
|
+
createdAt: Date;
|
|
4607
|
+
createdBy: string;
|
|
4608
|
+
creator: {
|
|
4609
|
+
id: string;
|
|
4610
|
+
name: string;
|
|
4611
|
+
email: string;
|
|
4612
|
+
} | null;
|
|
4613
|
+
id: string;
|
|
4614
|
+
isEnabled: boolean;
|
|
4615
|
+
payoutAccountType: {
|
|
4616
|
+
id: string;
|
|
4617
|
+
key: string;
|
|
4618
|
+
name: string;
|
|
4619
|
+
isActive: boolean;
|
|
4620
|
+
};
|
|
4621
|
+
payoutAccountTypeId: string;
|
|
4622
|
+
planId: string;
|
|
4623
|
+
rewardAmount: string;
|
|
4624
|
+
rewardCategory: string;
|
|
4625
|
+
ruleType: "consecutive" | "cumulative";
|
|
4626
|
+
sortOrder: number;
|
|
4627
|
+
thresholdDays: number;
|
|
4628
|
+
updatedAt: Date;
|
|
4629
|
+
updatedBy: string | null;
|
|
4630
|
+
updater: {
|
|
4631
|
+
id: string;
|
|
4632
|
+
name: string;
|
|
4633
|
+
email: string;
|
|
4634
|
+
} | null;
|
|
4635
|
+
}[];
|
|
4636
|
+
sortOrder: number;
|
|
4637
|
+
updatedAt: Date;
|
|
4638
|
+
updatedBy: string | null;
|
|
4639
|
+
updater: {
|
|
4640
|
+
id: string;
|
|
4641
|
+
name: string;
|
|
4642
|
+
email: string;
|
|
4643
|
+
} | null;
|
|
4644
|
+
};
|
|
4645
|
+
401: "Unauthorized";
|
|
4646
|
+
403: "Forbidden: Admins only";
|
|
4647
|
+
422: {
|
|
4648
|
+
type: 'validation';
|
|
4649
|
+
on: string;
|
|
4650
|
+
summary?: string;
|
|
4651
|
+
message?: string;
|
|
4652
|
+
found?: unknown;
|
|
4653
|
+
property?: string;
|
|
4654
|
+
expected?: string;
|
|
4655
|
+
};
|
|
4656
|
+
};
|
|
4657
|
+
};
|
|
4658
|
+
};
|
|
4659
|
+
};
|
|
4660
|
+
} & {
|
|
4661
|
+
"reward-plans": {
|
|
4662
|
+
":id": {
|
|
4663
|
+
patch: {
|
|
4664
|
+
body: {
|
|
4665
|
+
name?: string | undefined;
|
|
4666
|
+
rewardAssetId?: string | undefined;
|
|
4667
|
+
dailyRewardAmount?: string | undefined;
|
|
4668
|
+
dailyRewardCategory?: string | undefined;
|
|
4669
|
+
dailyPayoutAccountTypeId?: string | undefined;
|
|
4670
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4671
|
+
isEnabled?: boolean | undefined;
|
|
4672
|
+
sortOrder?: number | undefined;
|
|
4673
|
+
};
|
|
4674
|
+
params: {
|
|
4675
|
+
id: string;
|
|
4676
|
+
};
|
|
4677
|
+
query: {};
|
|
4678
|
+
headers: {};
|
|
4679
|
+
response: {
|
|
4680
|
+
200: {
|
|
4681
|
+
checkInType: "app" | "meeting";
|
|
4682
|
+
createdAt: Date;
|
|
4683
|
+
createdBy: string;
|
|
4684
|
+
creator: {
|
|
4685
|
+
id: string;
|
|
4686
|
+
name: string;
|
|
4687
|
+
email: string;
|
|
4688
|
+
} | null;
|
|
4689
|
+
dailyPayoutAccountType: {
|
|
4690
|
+
id: string;
|
|
4691
|
+
key: string;
|
|
4692
|
+
name: string;
|
|
4693
|
+
isActive: boolean;
|
|
4694
|
+
};
|
|
4695
|
+
dailyPayoutAccountTypeId: string;
|
|
4696
|
+
dailyRewardAmount: string;
|
|
4697
|
+
dailyRewardCategory: string;
|
|
4698
|
+
id: string;
|
|
4699
|
+
isEnabled: boolean;
|
|
4700
|
+
name: string;
|
|
4701
|
+
rewardAsset: {
|
|
4702
|
+
id: string;
|
|
4703
|
+
code: string;
|
|
4704
|
+
name: string;
|
|
4705
|
+
symbol: string | null;
|
|
4706
|
+
precision: number;
|
|
4707
|
+
isActive: boolean;
|
|
4708
|
+
};
|
|
4709
|
+
rewardAssetId: string;
|
|
4710
|
+
rules: {
|
|
4711
|
+
createdAt: Date;
|
|
4712
|
+
createdBy: string;
|
|
4713
|
+
creator: {
|
|
4714
|
+
id: string;
|
|
4715
|
+
name: string;
|
|
4716
|
+
email: string;
|
|
4717
|
+
} | null;
|
|
4718
|
+
id: string;
|
|
4719
|
+
isEnabled: boolean;
|
|
4720
|
+
payoutAccountType: {
|
|
4721
|
+
id: string;
|
|
4722
|
+
key: string;
|
|
4723
|
+
name: string;
|
|
4724
|
+
isActive: boolean;
|
|
4725
|
+
};
|
|
4726
|
+
payoutAccountTypeId: string;
|
|
4727
|
+
planId: string;
|
|
4728
|
+
rewardAmount: string;
|
|
4729
|
+
rewardCategory: string;
|
|
4730
|
+
ruleType: "consecutive" | "cumulative";
|
|
4731
|
+
sortOrder: number;
|
|
4732
|
+
thresholdDays: number;
|
|
4733
|
+
updatedAt: Date;
|
|
4734
|
+
updatedBy: string | null;
|
|
4735
|
+
updater: {
|
|
4736
|
+
id: string;
|
|
4737
|
+
name: string;
|
|
4738
|
+
email: string;
|
|
4739
|
+
} | null;
|
|
4740
|
+
}[];
|
|
4741
|
+
sortOrder: number;
|
|
4742
|
+
updatedAt: Date;
|
|
4743
|
+
updatedBy: string | null;
|
|
4744
|
+
updater: {
|
|
4745
|
+
id: string;
|
|
4746
|
+
name: string;
|
|
4747
|
+
email: string;
|
|
4748
|
+
} | null;
|
|
4749
|
+
};
|
|
4750
|
+
401: "Unauthorized";
|
|
4751
|
+
403: "Forbidden: Admins only";
|
|
4752
|
+
422: {
|
|
4753
|
+
type: 'validation';
|
|
4754
|
+
on: string;
|
|
4755
|
+
summary?: string;
|
|
4756
|
+
message?: string;
|
|
4757
|
+
found?: unknown;
|
|
4758
|
+
property?: string;
|
|
4759
|
+
expected?: string;
|
|
4760
|
+
};
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4764
|
+
};
|
|
4765
|
+
} & {
|
|
4766
|
+
"reward-plans": {
|
|
4767
|
+
":id": {
|
|
4768
|
+
delete: {
|
|
4769
|
+
body: {};
|
|
4770
|
+
params: {
|
|
4771
|
+
id: string;
|
|
4772
|
+
};
|
|
4773
|
+
query: {};
|
|
4774
|
+
headers: {};
|
|
4775
|
+
response: {
|
|
4776
|
+
200: {
|
|
4777
|
+
success: boolean;
|
|
4778
|
+
};
|
|
4779
|
+
401: "Unauthorized";
|
|
4780
|
+
403: "Forbidden: Admins only";
|
|
4781
|
+
422: {
|
|
4782
|
+
type: 'validation';
|
|
4783
|
+
on: string;
|
|
4784
|
+
summary?: string;
|
|
4785
|
+
message?: string;
|
|
4786
|
+
found?: unknown;
|
|
4787
|
+
property?: string;
|
|
4788
|
+
expected?: string;
|
|
4789
|
+
};
|
|
4790
|
+
};
|
|
4791
|
+
};
|
|
4792
|
+
};
|
|
4793
|
+
};
|
|
4794
|
+
} & {
|
|
4795
|
+
"reward-plans": {
|
|
4796
|
+
":id": {
|
|
4797
|
+
rules: {
|
|
4798
|
+
post: {
|
|
4799
|
+
body: {
|
|
4800
|
+
ruleType: "consecutive" | "cumulative";
|
|
4801
|
+
thresholdDays: number;
|
|
4802
|
+
rewardAmount: string;
|
|
4803
|
+
rewardCategory?: string | undefined;
|
|
4804
|
+
payoutAccountTypeId: string;
|
|
4805
|
+
isEnabled?: boolean | undefined;
|
|
4806
|
+
sortOrder?: number | undefined;
|
|
4807
|
+
};
|
|
4808
|
+
params: {
|
|
4809
|
+
id: string;
|
|
4810
|
+
};
|
|
4811
|
+
query: {};
|
|
4812
|
+
headers: {};
|
|
4813
|
+
response: {
|
|
4814
|
+
200: {
|
|
4815
|
+
checkInType: "app" | "meeting";
|
|
4816
|
+
createdAt: Date;
|
|
4817
|
+
createdBy: string;
|
|
4818
|
+
creator: {
|
|
4819
|
+
id: string;
|
|
4820
|
+
name: string;
|
|
4821
|
+
email: string;
|
|
4822
|
+
} | null;
|
|
4823
|
+
dailyPayoutAccountType: {
|
|
4824
|
+
id: string;
|
|
4825
|
+
key: string;
|
|
4826
|
+
name: string;
|
|
4827
|
+
isActive: boolean;
|
|
4828
|
+
};
|
|
4829
|
+
dailyPayoutAccountTypeId: string;
|
|
4830
|
+
dailyRewardAmount: string;
|
|
4831
|
+
dailyRewardCategory: string;
|
|
4832
|
+
id: string;
|
|
4833
|
+
isEnabled: boolean;
|
|
4834
|
+
name: string;
|
|
4835
|
+
rewardAsset: {
|
|
4836
|
+
id: string;
|
|
4837
|
+
code: string;
|
|
4838
|
+
name: string;
|
|
4839
|
+
symbol: string | null;
|
|
4840
|
+
precision: number;
|
|
4841
|
+
isActive: boolean;
|
|
4842
|
+
};
|
|
4843
|
+
rewardAssetId: string;
|
|
4844
|
+
rules: {
|
|
4845
|
+
createdAt: Date;
|
|
4846
|
+
createdBy: string;
|
|
4847
|
+
creator: {
|
|
4848
|
+
id: string;
|
|
4849
|
+
name: string;
|
|
4850
|
+
email: string;
|
|
4851
|
+
} | null;
|
|
4852
|
+
id: string;
|
|
4853
|
+
isEnabled: boolean;
|
|
4854
|
+
payoutAccountType: {
|
|
4855
|
+
id: string;
|
|
4856
|
+
key: string;
|
|
4857
|
+
name: string;
|
|
4858
|
+
isActive: boolean;
|
|
4859
|
+
};
|
|
4860
|
+
payoutAccountTypeId: string;
|
|
4861
|
+
planId: string;
|
|
4862
|
+
rewardAmount: string;
|
|
4863
|
+
rewardCategory: string;
|
|
4864
|
+
ruleType: "consecutive" | "cumulative";
|
|
4865
|
+
sortOrder: number;
|
|
4866
|
+
thresholdDays: number;
|
|
4867
|
+
updatedAt: Date;
|
|
4868
|
+
updatedBy: string | null;
|
|
4869
|
+
updater: {
|
|
4870
|
+
id: string;
|
|
4871
|
+
name: string;
|
|
4872
|
+
email: string;
|
|
4873
|
+
} | null;
|
|
4874
|
+
}[];
|
|
4875
|
+
sortOrder: number;
|
|
4876
|
+
updatedAt: Date;
|
|
4877
|
+
updatedBy: string | null;
|
|
4878
|
+
updater: {
|
|
4879
|
+
id: string;
|
|
4880
|
+
name: string;
|
|
4881
|
+
email: string;
|
|
4882
|
+
} | null;
|
|
4883
|
+
};
|
|
4884
|
+
401: "Unauthorized";
|
|
4885
|
+
403: "Forbidden: Admins only";
|
|
4886
|
+
422: {
|
|
4887
|
+
type: 'validation';
|
|
4888
|
+
on: string;
|
|
4889
|
+
summary?: string;
|
|
4890
|
+
message?: string;
|
|
4891
|
+
found?: unknown;
|
|
4892
|
+
property?: string;
|
|
4893
|
+
expected?: string;
|
|
4894
|
+
};
|
|
4895
|
+
};
|
|
4896
|
+
};
|
|
4897
|
+
};
|
|
4898
|
+
};
|
|
4899
|
+
};
|
|
4900
|
+
} & {
|
|
4901
|
+
"reward-plans": {
|
|
4902
|
+
":id": {
|
|
4903
|
+
rules: {
|
|
4904
|
+
":ruleId": {
|
|
4905
|
+
patch: {
|
|
4906
|
+
body: {
|
|
4907
|
+
ruleType?: "consecutive" | "cumulative" | undefined;
|
|
4908
|
+
thresholdDays?: number | undefined;
|
|
4909
|
+
rewardAmount?: string | undefined;
|
|
4910
|
+
rewardCategory?: string | undefined;
|
|
4911
|
+
payoutAccountTypeId?: string | undefined;
|
|
4912
|
+
isEnabled?: boolean | undefined;
|
|
4913
|
+
sortOrder?: number | undefined;
|
|
4914
|
+
};
|
|
4915
|
+
params: {
|
|
4916
|
+
id: string;
|
|
4917
|
+
ruleId: string;
|
|
4918
|
+
};
|
|
4919
|
+
query: {};
|
|
4920
|
+
headers: {};
|
|
4921
|
+
response: {
|
|
4922
|
+
200: {
|
|
4923
|
+
checkInType: "app" | "meeting";
|
|
4924
|
+
createdAt: Date;
|
|
4925
|
+
createdBy: string;
|
|
4926
|
+
creator: {
|
|
4927
|
+
id: string;
|
|
4928
|
+
name: string;
|
|
4929
|
+
email: string;
|
|
4930
|
+
} | null;
|
|
4931
|
+
dailyPayoutAccountType: {
|
|
4932
|
+
id: string;
|
|
4933
|
+
key: string;
|
|
4934
|
+
name: string;
|
|
4935
|
+
isActive: boolean;
|
|
4936
|
+
};
|
|
4937
|
+
dailyPayoutAccountTypeId: string;
|
|
4938
|
+
dailyRewardAmount: string;
|
|
4939
|
+
dailyRewardCategory: string;
|
|
4940
|
+
id: string;
|
|
4941
|
+
isEnabled: boolean;
|
|
4942
|
+
name: string;
|
|
4943
|
+
rewardAsset: {
|
|
4944
|
+
id: string;
|
|
4945
|
+
code: string;
|
|
4946
|
+
name: string;
|
|
4947
|
+
symbol: string | null;
|
|
4948
|
+
precision: number;
|
|
4949
|
+
isActive: boolean;
|
|
4950
|
+
};
|
|
4951
|
+
rewardAssetId: string;
|
|
4952
|
+
rules: {
|
|
4953
|
+
createdAt: Date;
|
|
4954
|
+
createdBy: string;
|
|
4955
|
+
creator: {
|
|
4956
|
+
id: string;
|
|
4957
|
+
name: string;
|
|
4958
|
+
email: string;
|
|
4959
|
+
} | null;
|
|
4960
|
+
id: string;
|
|
4961
|
+
isEnabled: boolean;
|
|
4962
|
+
payoutAccountType: {
|
|
4963
|
+
id: string;
|
|
4964
|
+
key: string;
|
|
4965
|
+
name: string;
|
|
4966
|
+
isActive: boolean;
|
|
4967
|
+
};
|
|
4968
|
+
payoutAccountTypeId: string;
|
|
4969
|
+
planId: string;
|
|
4970
|
+
rewardAmount: string;
|
|
4971
|
+
rewardCategory: string;
|
|
4972
|
+
ruleType: "consecutive" | "cumulative";
|
|
4973
|
+
sortOrder: number;
|
|
4974
|
+
thresholdDays: number;
|
|
4975
|
+
updatedAt: Date;
|
|
4976
|
+
updatedBy: string | null;
|
|
4977
|
+
updater: {
|
|
4978
|
+
id: string;
|
|
4979
|
+
name: string;
|
|
4980
|
+
email: string;
|
|
4981
|
+
} | null;
|
|
4982
|
+
}[];
|
|
4983
|
+
sortOrder: number;
|
|
4984
|
+
updatedAt: Date;
|
|
4985
|
+
updatedBy: string | null;
|
|
4986
|
+
updater: {
|
|
4987
|
+
id: string;
|
|
4988
|
+
name: string;
|
|
4989
|
+
email: string;
|
|
4990
|
+
} | null;
|
|
4991
|
+
};
|
|
4992
|
+
401: "Unauthorized";
|
|
4993
|
+
403: "Forbidden: Admins only";
|
|
4994
|
+
422: {
|
|
4995
|
+
type: 'validation';
|
|
4996
|
+
on: string;
|
|
4997
|
+
summary?: string;
|
|
4998
|
+
message?: string;
|
|
4999
|
+
found?: unknown;
|
|
5000
|
+
property?: string;
|
|
5001
|
+
expected?: string;
|
|
5002
|
+
};
|
|
5003
|
+
};
|
|
5004
|
+
};
|
|
5005
|
+
};
|
|
5006
|
+
};
|
|
5007
|
+
};
|
|
5008
|
+
};
|
|
5009
|
+
} & {
|
|
5010
|
+
"reward-plans": {
|
|
5011
|
+
":id": {
|
|
5012
|
+
rules: {
|
|
5013
|
+
":ruleId": {
|
|
5014
|
+
delete: {
|
|
5015
|
+
body: {};
|
|
5016
|
+
params: {
|
|
5017
|
+
id: string;
|
|
5018
|
+
ruleId: string;
|
|
5019
|
+
};
|
|
5020
|
+
query: {};
|
|
5021
|
+
headers: {};
|
|
5022
|
+
response: {
|
|
5023
|
+
200: {
|
|
5024
|
+
checkInType: "app" | "meeting";
|
|
5025
|
+
createdAt: Date;
|
|
5026
|
+
createdBy: string;
|
|
5027
|
+
creator: {
|
|
5028
|
+
id: string;
|
|
5029
|
+
name: string;
|
|
5030
|
+
email: string;
|
|
5031
|
+
} | null;
|
|
5032
|
+
dailyPayoutAccountType: {
|
|
5033
|
+
id: string;
|
|
5034
|
+
key: string;
|
|
5035
|
+
name: string;
|
|
5036
|
+
isActive: boolean;
|
|
5037
|
+
};
|
|
5038
|
+
dailyPayoutAccountTypeId: string;
|
|
5039
|
+
dailyRewardAmount: string;
|
|
5040
|
+
dailyRewardCategory: string;
|
|
5041
|
+
id: string;
|
|
5042
|
+
isEnabled: boolean;
|
|
5043
|
+
name: string;
|
|
5044
|
+
rewardAsset: {
|
|
5045
|
+
id: string;
|
|
5046
|
+
code: string;
|
|
5047
|
+
name: string;
|
|
5048
|
+
symbol: string | null;
|
|
5049
|
+
precision: number;
|
|
5050
|
+
isActive: boolean;
|
|
5051
|
+
};
|
|
5052
|
+
rewardAssetId: string;
|
|
5053
|
+
rules: {
|
|
5054
|
+
createdAt: Date;
|
|
5055
|
+
createdBy: string;
|
|
5056
|
+
creator: {
|
|
5057
|
+
id: string;
|
|
5058
|
+
name: string;
|
|
5059
|
+
email: string;
|
|
5060
|
+
} | null;
|
|
5061
|
+
id: string;
|
|
5062
|
+
isEnabled: boolean;
|
|
5063
|
+
payoutAccountType: {
|
|
5064
|
+
id: string;
|
|
5065
|
+
key: string;
|
|
5066
|
+
name: string;
|
|
5067
|
+
isActive: boolean;
|
|
5068
|
+
};
|
|
5069
|
+
payoutAccountTypeId: string;
|
|
5070
|
+
planId: string;
|
|
5071
|
+
rewardAmount: string;
|
|
5072
|
+
rewardCategory: string;
|
|
5073
|
+
ruleType: "consecutive" | "cumulative";
|
|
5074
|
+
sortOrder: number;
|
|
5075
|
+
thresholdDays: number;
|
|
5076
|
+
updatedAt: Date;
|
|
5077
|
+
updatedBy: string | null;
|
|
5078
|
+
updater: {
|
|
5079
|
+
id: string;
|
|
5080
|
+
name: string;
|
|
5081
|
+
email: string;
|
|
5082
|
+
} | null;
|
|
5083
|
+
}[];
|
|
5084
|
+
sortOrder: number;
|
|
5085
|
+
updatedAt: Date;
|
|
5086
|
+
updatedBy: string | null;
|
|
5087
|
+
updater: {
|
|
5088
|
+
id: string;
|
|
5089
|
+
name: string;
|
|
5090
|
+
email: string;
|
|
5091
|
+
} | null;
|
|
5092
|
+
};
|
|
5093
|
+
401: "Unauthorized";
|
|
5094
|
+
403: "Forbidden: Admins only";
|
|
5095
|
+
422: {
|
|
5096
|
+
type: 'validation';
|
|
5097
|
+
on: string;
|
|
5098
|
+
summary?: string;
|
|
5099
|
+
message?: string;
|
|
5100
|
+
found?: unknown;
|
|
5101
|
+
property?: string;
|
|
5102
|
+
expected?: string;
|
|
5103
|
+
};
|
|
5104
|
+
};
|
|
5105
|
+
};
|
|
5106
|
+
};
|
|
5107
|
+
};
|
|
5108
|
+
};
|
|
5109
|
+
};
|
|
5110
|
+
};
|
|
4372
5111
|
} & {
|
|
4373
5112
|
checkIns: {
|
|
4374
5113
|
get: {
|
|
@@ -4689,7 +5428,7 @@ declare const app: Elysia<"/api", {
|
|
|
4689
5428
|
query: {
|
|
4690
5429
|
accountId?: string | undefined;
|
|
4691
5430
|
assetId?: string | undefined;
|
|
4692
|
-
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;
|
|
5431
|
+
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;
|
|
4693
5432
|
changeDirection?: "decrease" | "increase" | undefined;
|
|
4694
5433
|
endDate?: Date | undefined;
|
|
4695
5434
|
limit?: number | undefined;
|
|
@@ -4698,7 +5437,7 @@ declare const app: Elysia<"/api", {
|
|
|
4698
5437
|
pageIndex?: number | undefined;
|
|
4699
5438
|
pageSize?: number | undefined;
|
|
4700
5439
|
referenceId?: string | undefined;
|
|
4701
|
-
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;
|
|
5440
|
+
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;
|
|
4702
5441
|
startDate?: Date | undefined;
|
|
4703
5442
|
userId?: string | undefined;
|
|
4704
5443
|
};
|
|
@@ -4717,7 +5456,7 @@ declare const app: Elysia<"/api", {
|
|
|
4717
5456
|
isActive: boolean;
|
|
4718
5457
|
};
|
|
4719
5458
|
assetId: string;
|
|
4720
|
-
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";
|
|
5459
|
+
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";
|
|
4721
5460
|
createdAt: Date;
|
|
4722
5461
|
fromAccount?: {
|
|
4723
5462
|
asset: {
|
|
@@ -4769,7 +5508,7 @@ declare const app: Elysia<"/api", {
|
|
|
4769
5508
|
} | undefined;
|
|
4770
5509
|
operatorId: string | null;
|
|
4771
5510
|
referenceId: string;
|
|
4772
|
-
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";
|
|
5511
|
+
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";
|
|
4773
5512
|
toAccount?: {
|
|
4774
5513
|
asset: {
|
|
4775
5514
|
id: string;
|
|
@@ -6289,17 +7028,117 @@ declare const app: Elysia<"/api", {
|
|
|
6289
7028
|
totalPages: number;
|
|
6290
7029
|
hasNextPage: boolean;
|
|
6291
7030
|
};
|
|
6292
|
-
};
|
|
6293
|
-
401: "Unauthorized";
|
|
6294
|
-
403: "Forbidden: Admins only";
|
|
6295
|
-
422: {
|
|
6296
|
-
type: 'validation';
|
|
6297
|
-
on: string;
|
|
6298
|
-
summary?: string;
|
|
6299
|
-
message?: string;
|
|
6300
|
-
found?: unknown;
|
|
6301
|
-
property?: string;
|
|
6302
|
-
expected?: string;
|
|
7031
|
+
};
|
|
7032
|
+
401: "Unauthorized";
|
|
7033
|
+
403: "Forbidden: Admins only";
|
|
7034
|
+
422: {
|
|
7035
|
+
type: 'validation';
|
|
7036
|
+
on: string;
|
|
7037
|
+
summary?: string;
|
|
7038
|
+
message?: string;
|
|
7039
|
+
found?: unknown;
|
|
7040
|
+
property?: string;
|
|
7041
|
+
expected?: string;
|
|
7042
|
+
};
|
|
7043
|
+
};
|
|
7044
|
+
};
|
|
7045
|
+
};
|
|
7046
|
+
};
|
|
7047
|
+
} & {
|
|
7048
|
+
admin: {
|
|
7049
|
+
referrals: {};
|
|
7050
|
+
} & {
|
|
7051
|
+
referrals: {
|
|
7052
|
+
summary: {
|
|
7053
|
+
get: {
|
|
7054
|
+
body: {};
|
|
7055
|
+
params: {};
|
|
7056
|
+
query: {
|
|
7057
|
+
referralCode?: string | undefined;
|
|
7058
|
+
};
|
|
7059
|
+
headers: {};
|
|
7060
|
+
response: {
|
|
7061
|
+
200: {
|
|
7062
|
+
level1Count: number;
|
|
7063
|
+
level2Count: number;
|
|
7064
|
+
level3Count: number;
|
|
7065
|
+
referralCode: string;
|
|
7066
|
+
referredBy?: string | undefined;
|
|
7067
|
+
totalCount: number;
|
|
7068
|
+
userId: string;
|
|
7069
|
+
};
|
|
7070
|
+
401: "Unauthorized";
|
|
7071
|
+
403: "Forbidden: Admins only";
|
|
7072
|
+
422: {
|
|
7073
|
+
type: 'validation';
|
|
7074
|
+
on: string;
|
|
7075
|
+
summary?: string;
|
|
7076
|
+
message?: string;
|
|
7077
|
+
found?: unknown;
|
|
7078
|
+
property?: string;
|
|
7079
|
+
expected?: string;
|
|
7080
|
+
};
|
|
7081
|
+
};
|
|
7082
|
+
};
|
|
7083
|
+
};
|
|
7084
|
+
};
|
|
7085
|
+
} & {
|
|
7086
|
+
referrals: {
|
|
7087
|
+
members: {
|
|
7088
|
+
get: {
|
|
7089
|
+
body: {};
|
|
7090
|
+
params: {};
|
|
7091
|
+
query: {
|
|
7092
|
+
limit?: number | undefined;
|
|
7093
|
+
maxDepth?: number | undefined;
|
|
7094
|
+
offset?: number | undefined;
|
|
7095
|
+
pageIndex?: number | undefined;
|
|
7096
|
+
pageSize?: number | undefined;
|
|
7097
|
+
referralCode: string;
|
|
7098
|
+
};
|
|
7099
|
+
headers: {};
|
|
7100
|
+
response: {
|
|
7101
|
+
200: {
|
|
7102
|
+
data: {
|
|
7103
|
+
depth: number;
|
|
7104
|
+
user: {
|
|
7105
|
+
id: string;
|
|
7106
|
+
name: string;
|
|
7107
|
+
email: string;
|
|
7108
|
+
emailVerified: boolean;
|
|
7109
|
+
image: string | null;
|
|
7110
|
+
createdAt: Date;
|
|
7111
|
+
updatedAt: Date;
|
|
7112
|
+
twoFactorEnabled: boolean | null;
|
|
7113
|
+
username: string | null;
|
|
7114
|
+
displayUsername: string | null;
|
|
7115
|
+
phoneNumber: string | null;
|
|
7116
|
+
phoneNumberVerified: boolean | null;
|
|
7117
|
+
role: string | null;
|
|
7118
|
+
banned: boolean | null;
|
|
7119
|
+
banReason: string | null;
|
|
7120
|
+
banExpires: Date | null;
|
|
7121
|
+
};
|
|
7122
|
+
}[];
|
|
7123
|
+
pagination: {
|
|
7124
|
+
pageSize: number;
|
|
7125
|
+
pageIndex: number;
|
|
7126
|
+
total: number;
|
|
7127
|
+
totalPages: number;
|
|
7128
|
+
hasNextPage: boolean;
|
|
7129
|
+
};
|
|
7130
|
+
};
|
|
7131
|
+
401: "Unauthorized";
|
|
7132
|
+
403: "Forbidden: Admins only";
|
|
7133
|
+
422: {
|
|
7134
|
+
type: 'validation';
|
|
7135
|
+
on: string;
|
|
7136
|
+
summary?: string;
|
|
7137
|
+
message?: string;
|
|
7138
|
+
found?: unknown;
|
|
7139
|
+
property?: string;
|
|
7140
|
+
expected?: string;
|
|
7141
|
+
};
|
|
6303
7142
|
};
|
|
6304
7143
|
};
|
|
6305
7144
|
};
|
|
@@ -7320,15 +8159,284 @@ declare const app: Elysia<"/api", {
|
|
|
7320
8159
|
response: {
|
|
7321
8160
|
200: {
|
|
7322
8161
|
createdAt: Date;
|
|
7323
|
-
description: string | null;
|
|
7324
|
-
icon: string | null;
|
|
8162
|
+
description: string | null;
|
|
8163
|
+
icon: string | null;
|
|
8164
|
+
id: string;
|
|
8165
|
+
isActive: boolean;
|
|
8166
|
+
name: string;
|
|
8167
|
+
slug: string | null;
|
|
8168
|
+
sortOrder: number;
|
|
8169
|
+
updatedAt: Date;
|
|
8170
|
+
};
|
|
8171
|
+
422: {
|
|
8172
|
+
type: 'validation';
|
|
8173
|
+
on: string;
|
|
8174
|
+
summary?: string;
|
|
8175
|
+
message?: string;
|
|
8176
|
+
found?: unknown;
|
|
8177
|
+
property?: string;
|
|
8178
|
+
expected?: string;
|
|
8179
|
+
};
|
|
8180
|
+
};
|
|
8181
|
+
};
|
|
8182
|
+
};
|
|
8183
|
+
};
|
|
8184
|
+
} & {
|
|
8185
|
+
news_categories: {
|
|
8186
|
+
":id": {
|
|
8187
|
+
patch: {
|
|
8188
|
+
body: {
|
|
8189
|
+
description?: string | null | undefined;
|
|
8190
|
+
iconFileId?: string | undefined;
|
|
8191
|
+
isActive?: boolean | undefined;
|
|
8192
|
+
name?: string | undefined;
|
|
8193
|
+
slug?: string | null | undefined;
|
|
8194
|
+
sortOrder?: number | undefined;
|
|
8195
|
+
};
|
|
8196
|
+
params: {
|
|
8197
|
+
id: string;
|
|
8198
|
+
};
|
|
8199
|
+
query: unknown;
|
|
8200
|
+
headers: unknown;
|
|
8201
|
+
response: {
|
|
8202
|
+
422: {
|
|
8203
|
+
type: 'validation';
|
|
8204
|
+
on: string;
|
|
8205
|
+
summary?: string;
|
|
8206
|
+
message?: string;
|
|
8207
|
+
found?: unknown;
|
|
8208
|
+
property?: string;
|
|
8209
|
+
expected?: string;
|
|
8210
|
+
};
|
|
8211
|
+
};
|
|
8212
|
+
};
|
|
8213
|
+
};
|
|
8214
|
+
};
|
|
8215
|
+
} & {
|
|
8216
|
+
news_categories: {
|
|
8217
|
+
":id": {
|
|
8218
|
+
delete: {
|
|
8219
|
+
body: unknown;
|
|
8220
|
+
params: {
|
|
8221
|
+
id: string;
|
|
8222
|
+
};
|
|
8223
|
+
query: unknown;
|
|
8224
|
+
headers: unknown;
|
|
8225
|
+
response: {
|
|
8226
|
+
200: {
|
|
8227
|
+
success: boolean;
|
|
8228
|
+
};
|
|
8229
|
+
422: {
|
|
8230
|
+
type: 'validation';
|
|
8231
|
+
on: string;
|
|
8232
|
+
summary?: string;
|
|
8233
|
+
message?: string;
|
|
8234
|
+
found?: unknown;
|
|
8235
|
+
property?: string;
|
|
8236
|
+
expected?: string;
|
|
8237
|
+
};
|
|
8238
|
+
};
|
|
8239
|
+
};
|
|
8240
|
+
};
|
|
8241
|
+
};
|
|
8242
|
+
};
|
|
8243
|
+
} & {
|
|
8244
|
+
admin: {
|
|
8245
|
+
news: {};
|
|
8246
|
+
} & {
|
|
8247
|
+
news: {
|
|
8248
|
+
post: {
|
|
8249
|
+
body: {
|
|
8250
|
+
attachmentIds?: string[] | null | undefined;
|
|
8251
|
+
categoryId?: string | undefined;
|
|
8252
|
+
content: string;
|
|
8253
|
+
expiresAt?: string | Date | null | undefined;
|
|
8254
|
+
externalUrl?: string | null | undefined;
|
|
8255
|
+
hasVideo?: boolean | undefined;
|
|
8256
|
+
isHot?: boolean | undefined;
|
|
8257
|
+
isPinned?: boolean | undefined;
|
|
8258
|
+
publishedAt?: string | Date | null | undefined;
|
|
8259
|
+
requireReadConfirmation?: boolean | undefined;
|
|
8260
|
+
scope?: string[] | undefined;
|
|
8261
|
+
sortOrder?: number | undefined;
|
|
8262
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8263
|
+
summary?: string | null | undefined;
|
|
8264
|
+
thumbnailId?: string | null | undefined;
|
|
8265
|
+
title: string;
|
|
8266
|
+
};
|
|
8267
|
+
params: {};
|
|
8268
|
+
query: {};
|
|
8269
|
+
headers: {};
|
|
8270
|
+
response: {
|
|
8271
|
+
401: "Unauthorized";
|
|
8272
|
+
403: "Forbidden: Admins only";
|
|
8273
|
+
422: {
|
|
8274
|
+
type: 'validation';
|
|
8275
|
+
on: string;
|
|
8276
|
+
summary?: string;
|
|
8277
|
+
message?: string;
|
|
8278
|
+
found?: unknown;
|
|
8279
|
+
property?: string;
|
|
8280
|
+
expected?: string;
|
|
8281
|
+
};
|
|
8282
|
+
};
|
|
8283
|
+
};
|
|
8284
|
+
};
|
|
8285
|
+
} & {
|
|
8286
|
+
news: {
|
|
8287
|
+
get: {
|
|
8288
|
+
body: {};
|
|
8289
|
+
params: {};
|
|
8290
|
+
query: {
|
|
8291
|
+
categoryId?: string | undefined;
|
|
8292
|
+
isPinned?: boolean | undefined;
|
|
8293
|
+
limit?: number | undefined;
|
|
8294
|
+
offset?: number | undefined;
|
|
8295
|
+
pageIndex?: number | undefined;
|
|
8296
|
+
pageSize?: number | undefined;
|
|
8297
|
+
requireReadConfirmation?: boolean | undefined;
|
|
8298
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8299
|
+
};
|
|
8300
|
+
headers: {};
|
|
8301
|
+
response: {
|
|
8302
|
+
200: {
|
|
8303
|
+
data: {
|
|
8304
|
+
attachmentIds: string[] | null;
|
|
8305
|
+
category: {
|
|
8306
|
+
createdAt: Date;
|
|
8307
|
+
description: string | null;
|
|
8308
|
+
icon: string | null;
|
|
8309
|
+
id: string;
|
|
8310
|
+
isActive: boolean;
|
|
8311
|
+
name: string;
|
|
8312
|
+
slug: string | null;
|
|
8313
|
+
sortOrder: number;
|
|
8314
|
+
updatedAt: Date;
|
|
8315
|
+
};
|
|
8316
|
+
categoryId: string;
|
|
8317
|
+
content: string;
|
|
8318
|
+
createdAt: Date;
|
|
8319
|
+
createdBy: string;
|
|
8320
|
+
deletedAt: Date | null;
|
|
8321
|
+
expiresAt: Date | null;
|
|
8322
|
+
externalUrl: string | null;
|
|
8323
|
+
hasVideo: boolean;
|
|
8324
|
+
id: string;
|
|
8325
|
+
isHot: boolean;
|
|
8326
|
+
isPinned: boolean;
|
|
8327
|
+
publishedAt: Date | null;
|
|
8328
|
+
requireReadConfirmation: boolean;
|
|
8329
|
+
scope: string[];
|
|
8330
|
+
sortOrder: number;
|
|
8331
|
+
status: "archived" | "draft" | "published";
|
|
8332
|
+
summary: string | null;
|
|
8333
|
+
thumbnailId: string | null;
|
|
8334
|
+
title: string;
|
|
8335
|
+
updatedAt: Date;
|
|
8336
|
+
viewCount: number;
|
|
8337
|
+
}[];
|
|
8338
|
+
pagination: {
|
|
8339
|
+
pageSize: number;
|
|
8340
|
+
pageIndex: number;
|
|
8341
|
+
total: number;
|
|
8342
|
+
totalPages: number;
|
|
8343
|
+
hasNextPage: boolean;
|
|
8344
|
+
};
|
|
8345
|
+
};
|
|
8346
|
+
401: "Unauthorized";
|
|
8347
|
+
403: "Forbidden: Admins only";
|
|
8348
|
+
422: {
|
|
8349
|
+
type: 'validation';
|
|
8350
|
+
on: string;
|
|
8351
|
+
summary?: string;
|
|
8352
|
+
message?: string;
|
|
8353
|
+
found?: unknown;
|
|
8354
|
+
property?: string;
|
|
8355
|
+
expected?: string;
|
|
8356
|
+
};
|
|
8357
|
+
};
|
|
8358
|
+
};
|
|
8359
|
+
};
|
|
8360
|
+
} & {
|
|
8361
|
+
news: {
|
|
8362
|
+
":id": {
|
|
8363
|
+
get: {
|
|
8364
|
+
body: {};
|
|
8365
|
+
params: {
|
|
8366
|
+
id: string;
|
|
8367
|
+
};
|
|
8368
|
+
query: {};
|
|
8369
|
+
headers: {};
|
|
8370
|
+
response: {
|
|
8371
|
+
200: {
|
|
8372
|
+
attachmentIds: string[] | null;
|
|
8373
|
+
category: {
|
|
8374
|
+
createdAt: Date;
|
|
8375
|
+
description: string | null;
|
|
8376
|
+
icon: string | null;
|
|
8377
|
+
id: string;
|
|
8378
|
+
isActive: boolean;
|
|
8379
|
+
name: string;
|
|
8380
|
+
slug: string | null;
|
|
8381
|
+
sortOrder: number;
|
|
8382
|
+
updatedAt: Date;
|
|
8383
|
+
};
|
|
8384
|
+
categoryId: string;
|
|
8385
|
+
content: string;
|
|
8386
|
+
createdAt: Date;
|
|
8387
|
+
createdBy: string;
|
|
8388
|
+
deletedAt: Date | null;
|
|
8389
|
+
expiresAt: Date | null;
|
|
8390
|
+
externalUrl: string | null;
|
|
8391
|
+
hasVideo: boolean;
|
|
7325
8392
|
id: string;
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
8393
|
+
isHot: boolean;
|
|
8394
|
+
isPinned: boolean;
|
|
8395
|
+
publishedAt: Date | null;
|
|
8396
|
+
requireReadConfirmation: boolean;
|
|
8397
|
+
scope: string[];
|
|
7329
8398
|
sortOrder: number;
|
|
8399
|
+
status: "archived" | "draft" | "published";
|
|
8400
|
+
summary: string | null;
|
|
8401
|
+
thumbnail: {
|
|
8402
|
+
accessControl: "private" | "public" | "restricted" | null;
|
|
8403
|
+
archivedAt: Date | null;
|
|
8404
|
+
businessId: string | null;
|
|
8405
|
+
businessMetadata: string | null;
|
|
8406
|
+
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";
|
|
8407
|
+
createdAt: Date;
|
|
8408
|
+
deletedAt: Date | null;
|
|
8409
|
+
downloadCount: number | null;
|
|
8410
|
+
fileExtension: string | null;
|
|
8411
|
+
fileHash: string | null;
|
|
8412
|
+
fileName: string | null;
|
|
8413
|
+
fileSize: number | null;
|
|
8414
|
+
id: string;
|
|
8415
|
+
isVerified: boolean | null;
|
|
8416
|
+
lastDownloadedAt: Date | null;
|
|
8417
|
+
mimeType: string | null;
|
|
8418
|
+
ownerId: string;
|
|
8419
|
+
publicUrl: string | null;
|
|
8420
|
+
s3Bucket: string;
|
|
8421
|
+
s3ETag: string | null;
|
|
8422
|
+
s3Key: string;
|
|
8423
|
+
s3Region: string;
|
|
8424
|
+
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
8425
|
+
thumbnailUrl: string | null;
|
|
8426
|
+
updatedAt: Date;
|
|
8427
|
+
uploadCompletedAt: Date | null;
|
|
8428
|
+
uploadIpAddress: string | null;
|
|
8429
|
+
verificationNote: string | null;
|
|
8430
|
+
verifiedAt: Date | null;
|
|
8431
|
+
verifiedBy: string | null;
|
|
8432
|
+
} | null;
|
|
8433
|
+
thumbnailId: string | null;
|
|
8434
|
+
title: string;
|
|
7330
8435
|
updatedAt: Date;
|
|
8436
|
+
viewCount: number;
|
|
7331
8437
|
};
|
|
8438
|
+
401: "Unauthorized";
|
|
8439
|
+
403: "Forbidden: Admins only";
|
|
7332
8440
|
422: {
|
|
7333
8441
|
type: 'validation';
|
|
7334
8442
|
on: string;
|
|
@@ -7343,23 +8451,35 @@ declare const app: Elysia<"/api", {
|
|
|
7343
8451
|
};
|
|
7344
8452
|
};
|
|
7345
8453
|
} & {
|
|
7346
|
-
|
|
8454
|
+
news: {
|
|
7347
8455
|
":id": {
|
|
7348
8456
|
patch: {
|
|
7349
8457
|
body: {
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
8458
|
+
attachmentIds?: string[] | null | undefined;
|
|
8459
|
+
categoryId?: string | undefined;
|
|
8460
|
+
content?: string | undefined;
|
|
8461
|
+
expiresAt?: string | Date | null | undefined;
|
|
8462
|
+
externalUrl?: string | null | undefined;
|
|
8463
|
+
hasVideo?: boolean | undefined;
|
|
8464
|
+
isHot?: boolean | undefined;
|
|
8465
|
+
isPinned?: boolean | undefined;
|
|
8466
|
+
publishedAt?: string | Date | null | undefined;
|
|
8467
|
+
requireReadConfirmation?: boolean | undefined;
|
|
8468
|
+
scope?: string[] | undefined;
|
|
7355
8469
|
sortOrder?: number | undefined;
|
|
8470
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8471
|
+
summary?: string | null | undefined;
|
|
8472
|
+
thumbnailId?: string | null | undefined;
|
|
8473
|
+
title?: string | undefined;
|
|
7356
8474
|
};
|
|
7357
8475
|
params: {
|
|
7358
8476
|
id: string;
|
|
7359
8477
|
};
|
|
7360
|
-
query:
|
|
7361
|
-
headers:
|
|
8478
|
+
query: {};
|
|
8479
|
+
headers: {};
|
|
7362
8480
|
response: {
|
|
8481
|
+
401: "Unauthorized";
|
|
8482
|
+
403: "Forbidden: Admins only";
|
|
7363
8483
|
422: {
|
|
7364
8484
|
type: 'validation';
|
|
7365
8485
|
on: string;
|
|
@@ -7374,19 +8494,21 @@ declare const app: Elysia<"/api", {
|
|
|
7374
8494
|
};
|
|
7375
8495
|
};
|
|
7376
8496
|
} & {
|
|
7377
|
-
|
|
8497
|
+
news: {
|
|
7378
8498
|
":id": {
|
|
7379
8499
|
delete: {
|
|
7380
|
-
body:
|
|
8500
|
+
body: {};
|
|
7381
8501
|
params: {
|
|
7382
8502
|
id: string;
|
|
7383
8503
|
};
|
|
7384
|
-
query:
|
|
7385
|
-
headers:
|
|
8504
|
+
query: {};
|
|
8505
|
+
headers: {};
|
|
7386
8506
|
response: {
|
|
7387
8507
|
200: {
|
|
7388
8508
|
success: boolean;
|
|
7389
8509
|
};
|
|
8510
|
+
401: "Unauthorized";
|
|
8511
|
+
403: "Forbidden: Admins only";
|
|
7390
8512
|
422: {
|
|
7391
8513
|
type: 'validation';
|
|
7392
8514
|
on: string;
|
|
@@ -7400,35 +8522,141 @@ declare const app: Elysia<"/api", {
|
|
|
7400
8522
|
};
|
|
7401
8523
|
};
|
|
7402
8524
|
};
|
|
8525
|
+
} & {
|
|
8526
|
+
news: {
|
|
8527
|
+
":id": {
|
|
8528
|
+
pin: {
|
|
8529
|
+
post: {
|
|
8530
|
+
body: {
|
|
8531
|
+
isPinned: boolean;
|
|
8532
|
+
sortOrder?: number | undefined;
|
|
8533
|
+
};
|
|
8534
|
+
params: {
|
|
8535
|
+
id: string;
|
|
8536
|
+
};
|
|
8537
|
+
query: {};
|
|
8538
|
+
headers: {};
|
|
8539
|
+
response: {
|
|
8540
|
+
401: "Unauthorized";
|
|
8541
|
+
403: "Forbidden: Admins only";
|
|
8542
|
+
422: {
|
|
8543
|
+
type: 'validation';
|
|
8544
|
+
on: string;
|
|
8545
|
+
summary?: string;
|
|
8546
|
+
message?: string;
|
|
8547
|
+
found?: unknown;
|
|
8548
|
+
property?: string;
|
|
8549
|
+
expected?: string;
|
|
8550
|
+
};
|
|
8551
|
+
};
|
|
8552
|
+
};
|
|
8553
|
+
};
|
|
8554
|
+
};
|
|
8555
|
+
};
|
|
8556
|
+
} & {
|
|
8557
|
+
news: {
|
|
8558
|
+
":id": {
|
|
8559
|
+
hot: {
|
|
8560
|
+
post: {
|
|
8561
|
+
body: {
|
|
8562
|
+
isHot: boolean;
|
|
8563
|
+
};
|
|
8564
|
+
params: {
|
|
8565
|
+
id: string;
|
|
8566
|
+
};
|
|
8567
|
+
query: {};
|
|
8568
|
+
headers: {};
|
|
8569
|
+
response: {
|
|
8570
|
+
401: "Unauthorized";
|
|
8571
|
+
403: "Forbidden: Admins only";
|
|
8572
|
+
422: {
|
|
8573
|
+
type: 'validation';
|
|
8574
|
+
on: string;
|
|
8575
|
+
summary?: string;
|
|
8576
|
+
message?: string;
|
|
8577
|
+
found?: unknown;
|
|
8578
|
+
property?: string;
|
|
8579
|
+
expected?: string;
|
|
8580
|
+
};
|
|
8581
|
+
};
|
|
8582
|
+
};
|
|
8583
|
+
};
|
|
8584
|
+
};
|
|
8585
|
+
};
|
|
8586
|
+
} & {
|
|
8587
|
+
news: {
|
|
8588
|
+
stats: {
|
|
8589
|
+
get: {
|
|
8590
|
+
body: {};
|
|
8591
|
+
params: {};
|
|
8592
|
+
query: {};
|
|
8593
|
+
headers: {};
|
|
8594
|
+
response: {
|
|
8595
|
+
200: {
|
|
8596
|
+
total: number;
|
|
8597
|
+
published: number;
|
|
8598
|
+
pinned: number;
|
|
8599
|
+
requireConfirmation: number;
|
|
8600
|
+
};
|
|
8601
|
+
401: "Unauthorized";
|
|
8602
|
+
403: "Forbidden: Admins only";
|
|
8603
|
+
};
|
|
8604
|
+
};
|
|
8605
|
+
};
|
|
8606
|
+
};
|
|
7403
8607
|
};
|
|
7404
8608
|
} & {
|
|
7405
8609
|
admin: {
|
|
7406
|
-
|
|
8610
|
+
content_videos: {};
|
|
7407
8611
|
} & {
|
|
7408
|
-
|
|
8612
|
+
content_videos: {
|
|
7409
8613
|
post: {
|
|
7410
8614
|
body: {
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
scope?: string[] | undefined;
|
|
7417
|
-
isPinned?: boolean | undefined;
|
|
7418
|
-
isHot?: boolean | undefined;
|
|
7419
|
-
hasVideo?: boolean | undefined;
|
|
8615
|
+
coverFileId?: string | undefined;
|
|
8616
|
+
description?: string | null | undefined;
|
|
8617
|
+
durationSeconds?: number | null | undefined;
|
|
8618
|
+
isEnabled?: boolean | undefined;
|
|
8619
|
+
publishedAt?: string | Date | null | undefined;
|
|
7420
8620
|
sortOrder?: number | undefined;
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
expiresAt?: Date | null | undefined;
|
|
7425
|
-
thumbnailId?: string | null | undefined;
|
|
7426
|
-
attachmentIds?: string[] | null | undefined;
|
|
8621
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8622
|
+
title: string;
|
|
8623
|
+
videoFileId: string;
|
|
7427
8624
|
};
|
|
7428
8625
|
params: {};
|
|
7429
8626
|
query: {};
|
|
7430
8627
|
headers: {};
|
|
7431
8628
|
response: {
|
|
8629
|
+
200: {
|
|
8630
|
+
coverFile?: {
|
|
8631
|
+
id: string;
|
|
8632
|
+
fileName: string | null;
|
|
8633
|
+
mimeType: string | null;
|
|
8634
|
+
fileSize: number | null;
|
|
8635
|
+
publicUrl: string | null;
|
|
8636
|
+
} | undefined;
|
|
8637
|
+
coverFileId: string | null;
|
|
8638
|
+
coverUrl?: string | undefined;
|
|
8639
|
+
createdAt: Date;
|
|
8640
|
+
createdBy: string;
|
|
8641
|
+
description: string | null;
|
|
8642
|
+
durationSeconds: number | null;
|
|
8643
|
+
id: string;
|
|
8644
|
+
isEnabled: boolean;
|
|
8645
|
+
publishedAt: Date | null;
|
|
8646
|
+
sortOrder: number;
|
|
8647
|
+
status: "archived" | "draft" | "published";
|
|
8648
|
+
title: string;
|
|
8649
|
+
updatedAt: Date;
|
|
8650
|
+
videoFile?: {
|
|
8651
|
+
id: string;
|
|
8652
|
+
fileName: string | null;
|
|
8653
|
+
mimeType: string | null;
|
|
8654
|
+
fileSize: number | null;
|
|
8655
|
+
publicUrl: string | null;
|
|
8656
|
+
} | undefined;
|
|
8657
|
+
videoFileId: string;
|
|
8658
|
+
videoUrl?: string | undefined;
|
|
8659
|
+
};
|
|
7432
8660
|
401: "Unauthorized";
|
|
7433
8661
|
403: "Forbidden: Admins only";
|
|
7434
8662
|
422: {
|
|
@@ -7444,57 +8672,52 @@ declare const app: Elysia<"/api", {
|
|
|
7444
8672
|
};
|
|
7445
8673
|
};
|
|
7446
8674
|
} & {
|
|
7447
|
-
|
|
8675
|
+
content_videos: {
|
|
7448
8676
|
get: {
|
|
7449
8677
|
body: {};
|
|
7450
8678
|
params: {};
|
|
7451
8679
|
query: {
|
|
7452
|
-
|
|
7453
|
-
|
|
8680
|
+
isEnabled?: boolean | undefined;
|
|
8681
|
+
keyword?: string | undefined;
|
|
7454
8682
|
limit?: number | undefined;
|
|
7455
8683
|
offset?: number | undefined;
|
|
7456
8684
|
pageIndex?: number | undefined;
|
|
7457
8685
|
pageSize?: number | undefined;
|
|
7458
|
-
requireReadConfirmation?: boolean | undefined;
|
|
7459
8686
|
status?: "archived" | "draft" | "published" | undefined;
|
|
7460
8687
|
};
|
|
7461
8688
|
headers: {};
|
|
7462
8689
|
response: {
|
|
7463
8690
|
200: {
|
|
7464
8691
|
data: {
|
|
7465
|
-
|
|
7466
|
-
category: {
|
|
7467
|
-
createdAt: Date;
|
|
7468
|
-
description: string | null;
|
|
7469
|
-
icon: string | null;
|
|
8692
|
+
coverFile?: {
|
|
7470
8693
|
id: string;
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
content: string;
|
|
8694
|
+
fileName: string | null;
|
|
8695
|
+
mimeType: string | null;
|
|
8696
|
+
fileSize: number | null;
|
|
8697
|
+
publicUrl: string | null;
|
|
8698
|
+
} | undefined;
|
|
8699
|
+
coverFileId: string | null;
|
|
8700
|
+
coverUrl?: string | undefined;
|
|
7479
8701
|
createdAt: Date;
|
|
7480
8702
|
createdBy: string;
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
externalUrl: string | null;
|
|
7484
|
-
hasVideo: boolean;
|
|
8703
|
+
description: string | null;
|
|
8704
|
+
durationSeconds: number | null;
|
|
7485
8705
|
id: string;
|
|
7486
|
-
|
|
7487
|
-
isPinned: boolean;
|
|
8706
|
+
isEnabled: boolean;
|
|
7488
8707
|
publishedAt: Date | null;
|
|
7489
|
-
requireReadConfirmation: boolean;
|
|
7490
|
-
scope: string[];
|
|
7491
8708
|
sortOrder: number;
|
|
7492
8709
|
status: "archived" | "draft" | "published";
|
|
7493
|
-
summary: string | null;
|
|
7494
|
-
thumbnailId: string | null;
|
|
7495
8710
|
title: string;
|
|
7496
8711
|
updatedAt: Date;
|
|
7497
|
-
|
|
8712
|
+
videoFile?: {
|
|
8713
|
+
id: string;
|
|
8714
|
+
fileName: string | null;
|
|
8715
|
+
mimeType: string | null;
|
|
8716
|
+
fileSize: number | null;
|
|
8717
|
+
publicUrl: string | null;
|
|
8718
|
+
} | undefined;
|
|
8719
|
+
videoFileId: string;
|
|
8720
|
+
videoUrl?: string | undefined;
|
|
7498
8721
|
}[];
|
|
7499
8722
|
pagination: {
|
|
7500
8723
|
pageSize: number;
|
|
@@ -7519,7 +8742,7 @@ declare const app: Elysia<"/api", {
|
|
|
7519
8742
|
};
|
|
7520
8743
|
};
|
|
7521
8744
|
} & {
|
|
7522
|
-
|
|
8745
|
+
content_videos: {
|
|
7523
8746
|
":id": {
|
|
7524
8747
|
get: {
|
|
7525
8748
|
body: {};
|
|
@@ -7530,71 +8753,35 @@ declare const app: Elysia<"/api", {
|
|
|
7530
8753
|
headers: {};
|
|
7531
8754
|
response: {
|
|
7532
8755
|
200: {
|
|
7533
|
-
|
|
7534
|
-
category: {
|
|
7535
|
-
createdAt: Date;
|
|
7536
|
-
description: string | null;
|
|
7537
|
-
icon: string | null;
|
|
8756
|
+
coverFile?: {
|
|
7538
8757
|
id: string;
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
content: string;
|
|
8758
|
+
fileName: string | null;
|
|
8759
|
+
mimeType: string | null;
|
|
8760
|
+
fileSize: number | null;
|
|
8761
|
+
publicUrl: string | null;
|
|
8762
|
+
} | undefined;
|
|
8763
|
+
coverFileId: string | null;
|
|
8764
|
+
coverUrl?: string | undefined;
|
|
7547
8765
|
createdAt: Date;
|
|
7548
8766
|
createdBy: string;
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
externalUrl: string | null;
|
|
7552
|
-
hasVideo: boolean;
|
|
8767
|
+
description: string | null;
|
|
8768
|
+
durationSeconds: number | null;
|
|
7553
8769
|
id: string;
|
|
7554
|
-
|
|
7555
|
-
isPinned: boolean;
|
|
8770
|
+
isEnabled: boolean;
|
|
7556
8771
|
publishedAt: Date | null;
|
|
7557
|
-
requireReadConfirmation: boolean;
|
|
7558
|
-
scope: string[];
|
|
7559
8772
|
sortOrder: number;
|
|
7560
8773
|
status: "archived" | "draft" | "published";
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
archivedAt: Date | null;
|
|
7565
|
-
businessId: string | null;
|
|
7566
|
-
businessMetadata: string | null;
|
|
7567
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
7568
|
-
createdAt: Date;
|
|
7569
|
-
deletedAt: Date | null;
|
|
7570
|
-
downloadCount: number | null;
|
|
7571
|
-
fileExtension: string | null;
|
|
7572
|
-
fileHash: string | null;
|
|
7573
|
-
fileName: string | null;
|
|
7574
|
-
fileSize: number | null;
|
|
8774
|
+
title: string;
|
|
8775
|
+
updatedAt: Date;
|
|
8776
|
+
videoFile?: {
|
|
7575
8777
|
id: string;
|
|
7576
|
-
|
|
7577
|
-
lastDownloadedAt: Date | null;
|
|
8778
|
+
fileName: string | null;
|
|
7578
8779
|
mimeType: string | null;
|
|
7579
|
-
|
|
8780
|
+
fileSize: number | null;
|
|
7580
8781
|
publicUrl: string | null;
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
s3Region: string;
|
|
7585
|
-
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
7586
|
-
thumbnailUrl: string | null;
|
|
7587
|
-
updatedAt: Date;
|
|
7588
|
-
uploadCompletedAt: Date | null;
|
|
7589
|
-
uploadIpAddress: string | null;
|
|
7590
|
-
verificationNote: string | null;
|
|
7591
|
-
verifiedAt: Date | null;
|
|
7592
|
-
verifiedBy: string | null;
|
|
7593
|
-
} | null;
|
|
7594
|
-
thumbnailId: string | null;
|
|
7595
|
-
title: string;
|
|
7596
|
-
updatedAt: Date;
|
|
7597
|
-
viewCount: number;
|
|
8782
|
+
} | undefined;
|
|
8783
|
+
videoFileId: string;
|
|
8784
|
+
videoUrl?: string | undefined;
|
|
7598
8785
|
};
|
|
7599
8786
|
401: "Unauthorized";
|
|
7600
8787
|
403: "Forbidden: Admins only";
|
|
@@ -7612,53 +8799,20 @@ declare const app: Elysia<"/api", {
|
|
|
7612
8799
|
};
|
|
7613
8800
|
};
|
|
7614
8801
|
} & {
|
|
7615
|
-
|
|
8802
|
+
content_videos: {
|
|
7616
8803
|
":id": {
|
|
7617
8804
|
patch: {
|
|
7618
8805
|
body: {
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
scope?: string[] | undefined;
|
|
7625
|
-
isPinned?: boolean | undefined;
|
|
7626
|
-
isHot?: boolean | undefined;
|
|
7627
|
-
hasVideo?: boolean | undefined;
|
|
8806
|
+
coverFileId?: string | undefined;
|
|
8807
|
+
description?: string | null | undefined;
|
|
8808
|
+
durationSeconds?: number | null | undefined;
|
|
8809
|
+
isEnabled?: boolean | undefined;
|
|
8810
|
+
publishedAt?: string | Date | null | undefined;
|
|
7628
8811
|
sortOrder?: number | undefined;
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
expiresAt?: Date | null | undefined;
|
|
7633
|
-
thumbnailId?: string | null | undefined;
|
|
7634
|
-
attachmentIds?: string[] | null | undefined;
|
|
7635
|
-
};
|
|
7636
|
-
params: {
|
|
7637
|
-
id: string;
|
|
7638
|
-
};
|
|
7639
|
-
query: {};
|
|
7640
|
-
headers: {};
|
|
7641
|
-
response: {
|
|
7642
|
-
401: "Unauthorized";
|
|
7643
|
-
403: "Forbidden: Admins only";
|
|
7644
|
-
422: {
|
|
7645
|
-
type: 'validation';
|
|
7646
|
-
on: string;
|
|
7647
|
-
summary?: string;
|
|
7648
|
-
message?: string;
|
|
7649
|
-
found?: unknown;
|
|
7650
|
-
property?: string;
|
|
7651
|
-
expected?: string;
|
|
7652
|
-
};
|
|
8812
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8813
|
+
title?: string | undefined;
|
|
8814
|
+
videoFileId?: string | undefined;
|
|
7653
8815
|
};
|
|
7654
|
-
};
|
|
7655
|
-
};
|
|
7656
|
-
};
|
|
7657
|
-
} & {
|
|
7658
|
-
news: {
|
|
7659
|
-
":id": {
|
|
7660
|
-
delete: {
|
|
7661
|
-
body: {};
|
|
7662
8816
|
params: {
|
|
7663
8817
|
id: string;
|
|
7664
8818
|
};
|
|
@@ -7666,7 +8820,35 @@ declare const app: Elysia<"/api", {
|
|
|
7666
8820
|
headers: {};
|
|
7667
8821
|
response: {
|
|
7668
8822
|
200: {
|
|
7669
|
-
|
|
8823
|
+
coverFile?: {
|
|
8824
|
+
id: string;
|
|
8825
|
+
fileName: string | null;
|
|
8826
|
+
mimeType: string | null;
|
|
8827
|
+
fileSize: number | null;
|
|
8828
|
+
publicUrl: string | null;
|
|
8829
|
+
} | undefined;
|
|
8830
|
+
coverFileId: string | null;
|
|
8831
|
+
coverUrl?: string | undefined;
|
|
8832
|
+
createdAt: Date;
|
|
8833
|
+
createdBy: string;
|
|
8834
|
+
description: string | null;
|
|
8835
|
+
durationSeconds: number | null;
|
|
8836
|
+
id: string;
|
|
8837
|
+
isEnabled: boolean;
|
|
8838
|
+
publishedAt: Date | null;
|
|
8839
|
+
sortOrder: number;
|
|
8840
|
+
status: "archived" | "draft" | "published";
|
|
8841
|
+
title: string;
|
|
8842
|
+
updatedAt: Date;
|
|
8843
|
+
videoFile?: {
|
|
8844
|
+
id: string;
|
|
8845
|
+
fileName: string | null;
|
|
8846
|
+
mimeType: string | null;
|
|
8847
|
+
fileSize: number | null;
|
|
8848
|
+
publicUrl: string | null;
|
|
8849
|
+
} | undefined;
|
|
8850
|
+
videoFileId: string;
|
|
8851
|
+
videoUrl?: string | undefined;
|
|
7670
8852
|
};
|
|
7671
8853
|
401: "Unauthorized";
|
|
7672
8854
|
403: "Forbidden: Admins only";
|
|
@@ -7684,20 +8866,48 @@ declare const app: Elysia<"/api", {
|
|
|
7684
8866
|
};
|
|
7685
8867
|
};
|
|
7686
8868
|
} & {
|
|
7687
|
-
|
|
8869
|
+
content_videos: {
|
|
7688
8870
|
":id": {
|
|
7689
|
-
|
|
8871
|
+
publish: {
|
|
7690
8872
|
post: {
|
|
7691
|
-
body: {
|
|
7692
|
-
isPinned: boolean;
|
|
7693
|
-
sortOrder?: number | undefined;
|
|
7694
|
-
};
|
|
8873
|
+
body: {};
|
|
7695
8874
|
params: {
|
|
7696
8875
|
id: string;
|
|
7697
8876
|
};
|
|
7698
8877
|
query: {};
|
|
7699
8878
|
headers: {};
|
|
7700
8879
|
response: {
|
|
8880
|
+
200: {
|
|
8881
|
+
coverFile?: {
|
|
8882
|
+
id: string;
|
|
8883
|
+
fileName: string | null;
|
|
8884
|
+
mimeType: string | null;
|
|
8885
|
+
fileSize: number | null;
|
|
8886
|
+
publicUrl: string | null;
|
|
8887
|
+
} | undefined;
|
|
8888
|
+
coverFileId: string | null;
|
|
8889
|
+
coverUrl?: string | undefined;
|
|
8890
|
+
createdAt: Date;
|
|
8891
|
+
createdBy: string;
|
|
8892
|
+
description: string | null;
|
|
8893
|
+
durationSeconds: number | null;
|
|
8894
|
+
id: string;
|
|
8895
|
+
isEnabled: boolean;
|
|
8896
|
+
publishedAt: Date | null;
|
|
8897
|
+
sortOrder: number;
|
|
8898
|
+
status: "archived" | "draft" | "published";
|
|
8899
|
+
title: string;
|
|
8900
|
+
updatedAt: Date;
|
|
8901
|
+
videoFile?: {
|
|
8902
|
+
id: string;
|
|
8903
|
+
fileName: string | null;
|
|
8904
|
+
mimeType: string | null;
|
|
8905
|
+
fileSize: number | null;
|
|
8906
|
+
publicUrl: string | null;
|
|
8907
|
+
} | undefined;
|
|
8908
|
+
videoFileId: string;
|
|
8909
|
+
videoUrl?: string | undefined;
|
|
8910
|
+
};
|
|
7701
8911
|
401: "Unauthorized";
|
|
7702
8912
|
403: "Forbidden: Admins only";
|
|
7703
8913
|
422: {
|
|
@@ -7715,19 +8925,48 @@ declare const app: Elysia<"/api", {
|
|
|
7715
8925
|
};
|
|
7716
8926
|
};
|
|
7717
8927
|
} & {
|
|
7718
|
-
|
|
8928
|
+
content_videos: {
|
|
7719
8929
|
":id": {
|
|
7720
|
-
|
|
8930
|
+
archive: {
|
|
7721
8931
|
post: {
|
|
7722
|
-
body: {
|
|
7723
|
-
isHot: boolean;
|
|
7724
|
-
};
|
|
8932
|
+
body: {};
|
|
7725
8933
|
params: {
|
|
7726
8934
|
id: string;
|
|
7727
8935
|
};
|
|
7728
8936
|
query: {};
|
|
7729
8937
|
headers: {};
|
|
7730
8938
|
response: {
|
|
8939
|
+
200: {
|
|
8940
|
+
coverFile?: {
|
|
8941
|
+
id: string;
|
|
8942
|
+
fileName: string | null;
|
|
8943
|
+
mimeType: string | null;
|
|
8944
|
+
fileSize: number | null;
|
|
8945
|
+
publicUrl: string | null;
|
|
8946
|
+
} | undefined;
|
|
8947
|
+
coverFileId: string | null;
|
|
8948
|
+
coverUrl?: string | undefined;
|
|
8949
|
+
createdAt: Date;
|
|
8950
|
+
createdBy: string;
|
|
8951
|
+
description: string | null;
|
|
8952
|
+
durationSeconds: number | null;
|
|
8953
|
+
id: string;
|
|
8954
|
+
isEnabled: boolean;
|
|
8955
|
+
publishedAt: Date | null;
|
|
8956
|
+
sortOrder: number;
|
|
8957
|
+
status: "archived" | "draft" | "published";
|
|
8958
|
+
title: string;
|
|
8959
|
+
updatedAt: Date;
|
|
8960
|
+
videoFile?: {
|
|
8961
|
+
id: string;
|
|
8962
|
+
fileName: string | null;
|
|
8963
|
+
mimeType: string | null;
|
|
8964
|
+
fileSize: number | null;
|
|
8965
|
+
publicUrl: string | null;
|
|
8966
|
+
} | undefined;
|
|
8967
|
+
videoFileId: string;
|
|
8968
|
+
videoUrl?: string | undefined;
|
|
8969
|
+
};
|
|
7731
8970
|
401: "Unauthorized";
|
|
7732
8971
|
403: "Forbidden: Admins only";
|
|
7733
8972
|
422: {
|
|
@@ -7745,22 +8984,30 @@ declare const app: Elysia<"/api", {
|
|
|
7745
8984
|
};
|
|
7746
8985
|
};
|
|
7747
8986
|
} & {
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
8987
|
+
content_videos: {
|
|
8988
|
+
":id": {
|
|
8989
|
+
delete: {
|
|
7751
8990
|
body: {};
|
|
7752
|
-
params: {
|
|
8991
|
+
params: {
|
|
8992
|
+
id: string;
|
|
8993
|
+
};
|
|
7753
8994
|
query: {};
|
|
7754
8995
|
headers: {};
|
|
7755
8996
|
response: {
|
|
7756
8997
|
200: {
|
|
7757
|
-
|
|
7758
|
-
published: number;
|
|
7759
|
-
pinned: number;
|
|
7760
|
-
requireConfirmation: number;
|
|
8998
|
+
success: boolean;
|
|
7761
8999
|
};
|
|
7762
9000
|
401: "Unauthorized";
|
|
7763
9001
|
403: "Forbidden: Admins only";
|
|
9002
|
+
422: {
|
|
9003
|
+
type: 'validation';
|
|
9004
|
+
on: string;
|
|
9005
|
+
summary?: string;
|
|
9006
|
+
message?: string;
|
|
9007
|
+
found?: unknown;
|
|
9008
|
+
property?: string;
|
|
9009
|
+
expected?: string;
|
|
9010
|
+
};
|
|
7764
9011
|
};
|
|
7765
9012
|
};
|
|
7766
9013
|
};
|
|
@@ -8174,7 +9421,7 @@ declare const app: Elysia<"/api", {
|
|
|
8174
9421
|
offset?: number | undefined;
|
|
8175
9422
|
pageSize?: number | undefined;
|
|
8176
9423
|
pageIndex?: number | undefined;
|
|
8177
|
-
businessType?: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
|
|
9424
|
+
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;
|
|
8178
9425
|
businessId?: string | undefined;
|
|
8179
9426
|
status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
|
|
8180
9427
|
accessControl?: "private" | "public" | "restricted" | null | undefined;
|
|
@@ -8188,7 +9435,7 @@ declare const app: Elysia<"/api", {
|
|
|
8188
9435
|
archivedAt: Date | null;
|
|
8189
9436
|
businessId: string | null;
|
|
8190
9437
|
businessMetadata: string | null;
|
|
8191
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
9438
|
+
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";
|
|
8192
9439
|
createdAt: Date;
|
|
8193
9440
|
deletedAt: Date | null;
|
|
8194
9441
|
downloadCount: number | null;
|
|
@@ -9654,6 +10901,14 @@ declare const app: Elysia<"/api", {
|
|
|
9654
10901
|
headers: {};
|
|
9655
10902
|
response: {
|
|
9656
10903
|
200: {
|
|
10904
|
+
coverImageFile?: {
|
|
10905
|
+
id: string;
|
|
10906
|
+
fileName: string | null;
|
|
10907
|
+
mimeType: string | null;
|
|
10908
|
+
fileSize: number | null;
|
|
10909
|
+
publicUrl: string | null;
|
|
10910
|
+
} | undefined;
|
|
10911
|
+
coverImageFileId: string | null;
|
|
9657
10912
|
coverImageUrl: string;
|
|
9658
10913
|
createdAt: Date;
|
|
9659
10914
|
description: string | null;
|
|
@@ -9722,6 +10977,14 @@ declare const app: Elysia<"/api", {
|
|
|
9722
10977
|
headers: {};
|
|
9723
10978
|
response: {
|
|
9724
10979
|
200: {
|
|
10980
|
+
coverImageFile?: {
|
|
10981
|
+
id: string;
|
|
10982
|
+
fileName: string | null;
|
|
10983
|
+
mimeType: string | null;
|
|
10984
|
+
fileSize: number | null;
|
|
10985
|
+
publicUrl: string | null;
|
|
10986
|
+
} | undefined;
|
|
10987
|
+
coverImageFileId: string | null;
|
|
9725
10988
|
coverImageUrl: string;
|
|
9726
10989
|
createdAt: Date;
|
|
9727
10990
|
description: string | null;
|
|
@@ -9780,6 +11043,14 @@ declare const app: Elysia<"/api", {
|
|
|
9780
11043
|
headers: {};
|
|
9781
11044
|
response: {
|
|
9782
11045
|
200: {
|
|
11046
|
+
coverImageFile?: {
|
|
11047
|
+
id: string;
|
|
11048
|
+
fileName: string | null;
|
|
11049
|
+
mimeType: string | null;
|
|
11050
|
+
fileSize: number | null;
|
|
11051
|
+
publicUrl: string | null;
|
|
11052
|
+
} | undefined;
|
|
11053
|
+
coverImageFileId: string | null;
|
|
9783
11054
|
coverImageUrl: string;
|
|
9784
11055
|
createdAt: Date;
|
|
9785
11056
|
description: string | null;
|
|
@@ -9844,6 +11115,14 @@ declare const app: Elysia<"/api", {
|
|
|
9844
11115
|
response: {
|
|
9845
11116
|
200: {
|
|
9846
11117
|
data: {
|
|
11118
|
+
coverImageFile?: {
|
|
11119
|
+
id: string;
|
|
11120
|
+
fileName: string | null;
|
|
11121
|
+
mimeType: string | null;
|
|
11122
|
+
fileSize: number | null;
|
|
11123
|
+
publicUrl: string | null;
|
|
11124
|
+
} | undefined;
|
|
11125
|
+
coverImageFileId: string | null;
|
|
9847
11126
|
coverImageUrl: string;
|
|
9848
11127
|
createdAt: Date;
|
|
9849
11128
|
description: string | null;
|
|
@@ -9910,6 +11189,14 @@ declare const app: Elysia<"/api", {
|
|
|
9910
11189
|
headers: {};
|
|
9911
11190
|
response: {
|
|
9912
11191
|
200: {
|
|
11192
|
+
coverImageFile?: {
|
|
11193
|
+
id: string;
|
|
11194
|
+
fileName: string | null;
|
|
11195
|
+
mimeType: string | null;
|
|
11196
|
+
fileSize: number | null;
|
|
11197
|
+
publicUrl: string | null;
|
|
11198
|
+
} | undefined;
|
|
11199
|
+
coverImageFileId: string | null;
|
|
9913
11200
|
coverImageUrl: string;
|
|
9914
11201
|
createdAt: Date;
|
|
9915
11202
|
description: string | null;
|
|
@@ -9970,6 +11257,14 @@ declare const app: Elysia<"/api", {
|
|
|
9970
11257
|
headers: {};
|
|
9971
11258
|
response: {
|
|
9972
11259
|
200: {
|
|
11260
|
+
coverImageFile?: {
|
|
11261
|
+
id: string;
|
|
11262
|
+
fileName: string | null;
|
|
11263
|
+
mimeType: string | null;
|
|
11264
|
+
fileSize: number | null;
|
|
11265
|
+
publicUrl: string | null;
|
|
11266
|
+
} | undefined;
|
|
11267
|
+
coverImageFileId: string | null;
|
|
9973
11268
|
coverImageUrl: string;
|
|
9974
11269
|
createdAt: Date;
|
|
9975
11270
|
description: string | null;
|
|
@@ -10030,6 +11325,14 @@ declare const app: Elysia<"/api", {
|
|
|
10030
11325
|
headers: {};
|
|
10031
11326
|
response: {
|
|
10032
11327
|
200: {
|
|
11328
|
+
coverImageFile?: {
|
|
11329
|
+
id: string;
|
|
11330
|
+
fileName: string | null;
|
|
11331
|
+
mimeType: string | null;
|
|
11332
|
+
fileSize: number | null;
|
|
11333
|
+
publicUrl: string | null;
|
|
11334
|
+
} | undefined;
|
|
11335
|
+
coverImageFileId: string | null;
|
|
10033
11336
|
coverImageUrl: string;
|
|
10034
11337
|
createdAt: Date;
|
|
10035
11338
|
description: string | null;
|
|
@@ -10448,6 +11751,77 @@ declare const app: Elysia<"/api", {
|
|
|
10448
11751
|
};
|
|
10449
11752
|
};
|
|
10450
11753
|
};
|
|
11754
|
+
} & {
|
|
11755
|
+
lock_activity: {
|
|
11756
|
+
participations: {
|
|
11757
|
+
":id": {
|
|
11758
|
+
"issue-reward": {
|
|
11759
|
+
post: {
|
|
11760
|
+
body: {};
|
|
11761
|
+
params: {
|
|
11762
|
+
id: string;
|
|
11763
|
+
};
|
|
11764
|
+
query: {};
|
|
11765
|
+
headers: {};
|
|
11766
|
+
response: {
|
|
11767
|
+
200: {
|
|
11768
|
+
activity: {
|
|
11769
|
+
id: string;
|
|
11770
|
+
title: string;
|
|
11771
|
+
startAt: Date;
|
|
11772
|
+
endAt: Date;
|
|
11773
|
+
status: "active" | "cancelled" | "draft" | "ended";
|
|
11774
|
+
};
|
|
11775
|
+
activityId: string;
|
|
11776
|
+
adminRemark: string | null;
|
|
11777
|
+
createdAt: Date;
|
|
11778
|
+
id: string;
|
|
11779
|
+
inviteCode: string;
|
|
11780
|
+
inviter?: {
|
|
11781
|
+
id: string;
|
|
11782
|
+
email: string;
|
|
11783
|
+
username: string | null;
|
|
11784
|
+
} | undefined;
|
|
11785
|
+
inviterMatched: boolean;
|
|
11786
|
+
inviterUserId: string | null;
|
|
11787
|
+
isIdempotent: boolean;
|
|
11788
|
+
ledgerEntryId: string;
|
|
11789
|
+
rejectReason: string | null;
|
|
11790
|
+
reviewedAt: Date | null;
|
|
11791
|
+
rewardAmount: string;
|
|
11792
|
+
rewardIssuedAt: Date | null;
|
|
11793
|
+
status: "rejected" | "reward_issued" | "submitted" | "under_review";
|
|
11794
|
+
submittedAt: Date;
|
|
11795
|
+
updatedAt: Date;
|
|
11796
|
+
user: {
|
|
11797
|
+
id: string;
|
|
11798
|
+
email: string;
|
|
11799
|
+
username: string | null;
|
|
11800
|
+
profile?: {
|
|
11801
|
+
uid: string;
|
|
11802
|
+
country: string | null;
|
|
11803
|
+
referralCode: string | null;
|
|
11804
|
+
} | undefined;
|
|
11805
|
+
};
|
|
11806
|
+
userId: string;
|
|
11807
|
+
};
|
|
11808
|
+
401: "Unauthorized";
|
|
11809
|
+
403: "Forbidden: Admins only";
|
|
11810
|
+
422: {
|
|
11811
|
+
type: 'validation';
|
|
11812
|
+
on: string;
|
|
11813
|
+
summary?: string;
|
|
11814
|
+
message?: string;
|
|
11815
|
+
found?: unknown;
|
|
11816
|
+
property?: string;
|
|
11817
|
+
expected?: string;
|
|
11818
|
+
};
|
|
11819
|
+
};
|
|
11820
|
+
};
|
|
11821
|
+
};
|
|
11822
|
+
};
|
|
11823
|
+
};
|
|
11824
|
+
};
|
|
10451
11825
|
};
|
|
10452
11826
|
} & {
|
|
10453
11827
|
admin: {
|
|
@@ -14052,7 +15426,7 @@ declare const app: Elysia<"/api", {
|
|
|
14052
15426
|
assetId: string;
|
|
14053
15427
|
fromAccountId: string | null;
|
|
14054
15428
|
toAccountId: string | null;
|
|
14055
|
-
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";
|
|
15429
|
+
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";
|
|
14056
15430
|
amount: string;
|
|
14057
15431
|
fromAvailableBefore: string | null;
|
|
14058
15432
|
fromAvailableAfter: string | null;
|
|
@@ -14063,7 +15437,7 @@ declare const app: Elysia<"/api", {
|
|
|
14063
15437
|
toLockedBefore: string | null;
|
|
14064
15438
|
toLockedAfter: string | null;
|
|
14065
15439
|
referenceId: string;
|
|
14066
|
-
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";
|
|
15440
|
+
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";
|
|
14067
15441
|
idempotencyKey: string;
|
|
14068
15442
|
operatorId: string | null;
|
|
14069
15443
|
memo: string | null;
|
|
@@ -15219,6 +16593,190 @@ declare const app: Elysia<"/api", {
|
|
|
15219
16593
|
};
|
|
15220
16594
|
};
|
|
15221
16595
|
};
|
|
16596
|
+
} & {
|
|
16597
|
+
api: {
|
|
16598
|
+
referrals: {};
|
|
16599
|
+
} & {
|
|
16600
|
+
referrals: {
|
|
16601
|
+
code: {
|
|
16602
|
+
check: {
|
|
16603
|
+
get: {
|
|
16604
|
+
body: {};
|
|
16605
|
+
params: {};
|
|
16606
|
+
query: {
|
|
16607
|
+
referralCode: string;
|
|
16608
|
+
};
|
|
16609
|
+
headers: {};
|
|
16610
|
+
response: {
|
|
16611
|
+
200: {
|
|
16612
|
+
exists: boolean;
|
|
16613
|
+
};
|
|
16614
|
+
422: {
|
|
16615
|
+
type: 'validation';
|
|
16616
|
+
on: string;
|
|
16617
|
+
summary?: string;
|
|
16618
|
+
message?: string;
|
|
16619
|
+
found?: unknown;
|
|
16620
|
+
property?: string;
|
|
16621
|
+
expected?: string;
|
|
16622
|
+
};
|
|
16623
|
+
};
|
|
16624
|
+
};
|
|
16625
|
+
};
|
|
16626
|
+
};
|
|
16627
|
+
};
|
|
16628
|
+
} & {
|
|
16629
|
+
referrals: {
|
|
16630
|
+
code: {
|
|
16631
|
+
check: {
|
|
16632
|
+
post: {
|
|
16633
|
+
body: {
|
|
16634
|
+
referralCode: string;
|
|
16635
|
+
};
|
|
16636
|
+
params: {};
|
|
16637
|
+
query: {};
|
|
16638
|
+
headers: {};
|
|
16639
|
+
response: {
|
|
16640
|
+
200: {
|
|
16641
|
+
exists: boolean;
|
|
16642
|
+
};
|
|
16643
|
+
422: {
|
|
16644
|
+
type: 'validation';
|
|
16645
|
+
on: string;
|
|
16646
|
+
summary?: string;
|
|
16647
|
+
message?: string;
|
|
16648
|
+
found?: unknown;
|
|
16649
|
+
property?: string;
|
|
16650
|
+
expected?: string;
|
|
16651
|
+
};
|
|
16652
|
+
};
|
|
16653
|
+
};
|
|
16654
|
+
};
|
|
16655
|
+
};
|
|
16656
|
+
};
|
|
16657
|
+
} & {
|
|
16658
|
+
referrals: {
|
|
16659
|
+
bind: {
|
|
16660
|
+
post: {
|
|
16661
|
+
body: {
|
|
16662
|
+
referralCode: string;
|
|
16663
|
+
};
|
|
16664
|
+
params: {};
|
|
16665
|
+
query: {};
|
|
16666
|
+
headers: {};
|
|
16667
|
+
response: {
|
|
16668
|
+
200: {
|
|
16669
|
+
userId: string;
|
|
16670
|
+
inviterId: string;
|
|
16671
|
+
depth: number;
|
|
16672
|
+
boundAt: Date;
|
|
16673
|
+
referralCode: string;
|
|
16674
|
+
};
|
|
16675
|
+
401: "Unauthorized";
|
|
16676
|
+
422: {
|
|
16677
|
+
type: 'validation';
|
|
16678
|
+
on: string;
|
|
16679
|
+
summary?: string;
|
|
16680
|
+
message?: string;
|
|
16681
|
+
found?: unknown;
|
|
16682
|
+
property?: string;
|
|
16683
|
+
expected?: string;
|
|
16684
|
+
};
|
|
16685
|
+
};
|
|
16686
|
+
};
|
|
16687
|
+
};
|
|
16688
|
+
};
|
|
16689
|
+
} & {
|
|
16690
|
+
referrals: {
|
|
16691
|
+
summary: {
|
|
16692
|
+
get: {
|
|
16693
|
+
body: {};
|
|
16694
|
+
params: {};
|
|
16695
|
+
query: {};
|
|
16696
|
+
headers: {};
|
|
16697
|
+
response: {
|
|
16698
|
+
200: {
|
|
16699
|
+
referralCode: string;
|
|
16700
|
+
referredBy?: string | undefined;
|
|
16701
|
+
level1Count: number;
|
|
16702
|
+
level2Count: number;
|
|
16703
|
+
level3Count: number;
|
|
16704
|
+
totalCount: number;
|
|
16705
|
+
};
|
|
16706
|
+
401: "Unauthorized";
|
|
16707
|
+
422: {
|
|
16708
|
+
type: 'validation';
|
|
16709
|
+
on: string;
|
|
16710
|
+
summary?: string;
|
|
16711
|
+
message?: string;
|
|
16712
|
+
found?: unknown;
|
|
16713
|
+
property?: string;
|
|
16714
|
+
expected?: string;
|
|
16715
|
+
};
|
|
16716
|
+
};
|
|
16717
|
+
};
|
|
16718
|
+
};
|
|
16719
|
+
};
|
|
16720
|
+
} & {
|
|
16721
|
+
referrals: {
|
|
16722
|
+
members: {
|
|
16723
|
+
get: {
|
|
16724
|
+
body: {};
|
|
16725
|
+
params: {};
|
|
16726
|
+
query: {
|
|
16727
|
+
limit?: number | undefined;
|
|
16728
|
+
maxDepth?: number | undefined;
|
|
16729
|
+
offset?: number | undefined;
|
|
16730
|
+
pageIndex?: number | undefined;
|
|
16731
|
+
pageSize?: number | undefined;
|
|
16732
|
+
};
|
|
16733
|
+
headers: {};
|
|
16734
|
+
response: {
|
|
16735
|
+
200: {
|
|
16736
|
+
data: {
|
|
16737
|
+
depth: number;
|
|
16738
|
+
user: {
|
|
16739
|
+
id: string;
|
|
16740
|
+
name: string;
|
|
16741
|
+
email: string;
|
|
16742
|
+
emailVerified: boolean;
|
|
16743
|
+
image: string | null;
|
|
16744
|
+
createdAt: Date;
|
|
16745
|
+
updatedAt: Date;
|
|
16746
|
+
twoFactorEnabled: boolean | null;
|
|
16747
|
+
username: string | null;
|
|
16748
|
+
displayUsername: string | null;
|
|
16749
|
+
phoneNumber: string | null;
|
|
16750
|
+
phoneNumberVerified: boolean | null;
|
|
16751
|
+
role: string | null;
|
|
16752
|
+
banned: boolean | null;
|
|
16753
|
+
banReason: string | null;
|
|
16754
|
+
banExpires: Date | null;
|
|
16755
|
+
};
|
|
16756
|
+
}[];
|
|
16757
|
+
pagination: {
|
|
16758
|
+
pageSize: number;
|
|
16759
|
+
pageIndex: number;
|
|
16760
|
+
total: number;
|
|
16761
|
+
totalPages: number;
|
|
16762
|
+
hasNextPage: boolean;
|
|
16763
|
+
};
|
|
16764
|
+
};
|
|
16765
|
+
401: "Unauthorized";
|
|
16766
|
+
422: {
|
|
16767
|
+
type: 'validation';
|
|
16768
|
+
on: string;
|
|
16769
|
+
summary?: string;
|
|
16770
|
+
message?: string;
|
|
16771
|
+
found?: unknown;
|
|
16772
|
+
property?: string;
|
|
16773
|
+
expected?: string;
|
|
16774
|
+
};
|
|
16775
|
+
};
|
|
16776
|
+
};
|
|
16777
|
+
};
|
|
16778
|
+
};
|
|
16779
|
+
};
|
|
15222
16780
|
} & {
|
|
15223
16781
|
api: {
|
|
15224
16782
|
team: {};
|
|
@@ -15974,6 +17532,92 @@ declare const app: Elysia<"/api", {
|
|
|
15974
17532
|
};
|
|
15975
17533
|
};
|
|
15976
17534
|
};
|
|
17535
|
+
} & {
|
|
17536
|
+
api: {
|
|
17537
|
+
content_videos: {};
|
|
17538
|
+
} & {
|
|
17539
|
+
content_videos: {
|
|
17540
|
+
get: {
|
|
17541
|
+
body: {};
|
|
17542
|
+
params: {};
|
|
17543
|
+
query: {
|
|
17544
|
+
limit?: number | undefined;
|
|
17545
|
+
offset?: number | undefined;
|
|
17546
|
+
pageSize?: number | undefined;
|
|
17547
|
+
pageIndex?: number | undefined;
|
|
17548
|
+
};
|
|
17549
|
+
headers: {};
|
|
17550
|
+
response: {
|
|
17551
|
+
200: {
|
|
17552
|
+
data: {
|
|
17553
|
+
id: string;
|
|
17554
|
+
title: string;
|
|
17555
|
+
description?: string | undefined;
|
|
17556
|
+
videoUrl: string;
|
|
17557
|
+
coverUrl?: string | undefined;
|
|
17558
|
+
mimeType?: string | undefined;
|
|
17559
|
+
fileSize?: number | undefined;
|
|
17560
|
+
durationSeconds?: number | undefined;
|
|
17561
|
+
sortOrder: number;
|
|
17562
|
+
publishedAt?: Date | undefined;
|
|
17563
|
+
}[];
|
|
17564
|
+
pagination: {
|
|
17565
|
+
pageSize: number;
|
|
17566
|
+
pageIndex: number;
|
|
17567
|
+
total: number;
|
|
17568
|
+
totalPages: number;
|
|
17569
|
+
hasNextPage: boolean;
|
|
17570
|
+
};
|
|
17571
|
+
};
|
|
17572
|
+
422: {
|
|
17573
|
+
type: 'validation';
|
|
17574
|
+
on: string;
|
|
17575
|
+
summary?: string;
|
|
17576
|
+
message?: string;
|
|
17577
|
+
found?: unknown;
|
|
17578
|
+
property?: string;
|
|
17579
|
+
expected?: string;
|
|
17580
|
+
};
|
|
17581
|
+
};
|
|
17582
|
+
};
|
|
17583
|
+
};
|
|
17584
|
+
} & {
|
|
17585
|
+
content_videos: {
|
|
17586
|
+
":id": {
|
|
17587
|
+
get: {
|
|
17588
|
+
body: {};
|
|
17589
|
+
params: {
|
|
17590
|
+
id: string;
|
|
17591
|
+
};
|
|
17592
|
+
query: {};
|
|
17593
|
+
headers: {};
|
|
17594
|
+
response: {
|
|
17595
|
+
200: {
|
|
17596
|
+
id: string;
|
|
17597
|
+
title: string;
|
|
17598
|
+
description?: string | undefined;
|
|
17599
|
+
videoUrl: string;
|
|
17600
|
+
coverUrl?: string | undefined;
|
|
17601
|
+
mimeType?: string | undefined;
|
|
17602
|
+
fileSize?: number | undefined;
|
|
17603
|
+
durationSeconds?: number | undefined;
|
|
17604
|
+
sortOrder: number;
|
|
17605
|
+
publishedAt?: Date | undefined;
|
|
17606
|
+
};
|
|
17607
|
+
422: {
|
|
17608
|
+
type: 'validation';
|
|
17609
|
+
on: string;
|
|
17610
|
+
summary?: string;
|
|
17611
|
+
message?: string;
|
|
17612
|
+
found?: unknown;
|
|
17613
|
+
property?: string;
|
|
17614
|
+
expected?: string;
|
|
17615
|
+
};
|
|
17616
|
+
};
|
|
17617
|
+
};
|
|
17618
|
+
};
|
|
17619
|
+
};
|
|
17620
|
+
};
|
|
15977
17621
|
} & {
|
|
15978
17622
|
api: {
|
|
15979
17623
|
file_storage: {};
|
|
@@ -15988,7 +17632,7 @@ declare const app: Elysia<"/api", {
|
|
|
15988
17632
|
offset?: number | undefined;
|
|
15989
17633
|
pageSize?: number | undefined;
|
|
15990
17634
|
pageIndex?: number | undefined;
|
|
15991
|
-
businessType?: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
|
|
17635
|
+
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;
|
|
15992
17636
|
businessId?: string | undefined;
|
|
15993
17637
|
status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
|
|
15994
17638
|
accessControl?: "private" | "public" | "restricted" | null | undefined;
|
|
@@ -16011,7 +17655,7 @@ declare const app: Elysia<"/api", {
|
|
|
16011
17655
|
s3Key: string;
|
|
16012
17656
|
s3Region: string;
|
|
16013
17657
|
s3ETag: string | null;
|
|
16014
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
17658
|
+
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";
|
|
16015
17659
|
businessId: string | null;
|
|
16016
17660
|
businessMetadata: string | null;
|
|
16017
17661
|
ownerId: string;
|
|
@@ -16076,7 +17720,7 @@ declare const app: Elysia<"/api", {
|
|
|
16076
17720
|
s3Key: string;
|
|
16077
17721
|
s3Region: string;
|
|
16078
17722
|
s3ETag: string | null;
|
|
16079
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
17723
|
+
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";
|
|
16080
17724
|
businessId: string | null;
|
|
16081
17725
|
businessMetadata: string | null;
|
|
16082
17726
|
ownerId: string;
|
|
@@ -16542,6 +18186,14 @@ declare const app: Elysia<"/api", {
|
|
|
16542
18186
|
response: {
|
|
16543
18187
|
200: {
|
|
16544
18188
|
data: {
|
|
18189
|
+
coverImageFile?: {
|
|
18190
|
+
id: string;
|
|
18191
|
+
fileName: string | null;
|
|
18192
|
+
mimeType: string | null;
|
|
18193
|
+
fileSize: number | null;
|
|
18194
|
+
publicUrl: string | null;
|
|
18195
|
+
} | undefined;
|
|
18196
|
+
coverImageFileId: string | null;
|
|
16545
18197
|
coverImageUrl: string;
|
|
16546
18198
|
description: string | null;
|
|
16547
18199
|
endAt: Date;
|
|
@@ -16595,6 +18247,14 @@ declare const app: Elysia<"/api", {
|
|
|
16595
18247
|
headers: {};
|
|
16596
18248
|
response: {
|
|
16597
18249
|
200: {
|
|
18250
|
+
coverImageFile?: {
|
|
18251
|
+
id: string;
|
|
18252
|
+
fileName: string | null;
|
|
18253
|
+
mimeType: string | null;
|
|
18254
|
+
fileSize: number | null;
|
|
18255
|
+
publicUrl: string | null;
|
|
18256
|
+
} | undefined;
|
|
18257
|
+
coverImageFileId: string | null;
|
|
16598
18258
|
coverImageUrl: string;
|
|
16599
18259
|
description: string | null;
|
|
16600
18260
|
endAt: Date;
|