@r2wa-org/eden 0.0.101 → 0.0.103
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 +732 -21
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +12 -0
- package/dist/asset-convert-product/admin/router.d.ts +12 -12
- package/dist/asset-convert-product/admin/service.d.ts +12 -12
- package/dist/auth/better-auth.d.ts +13 -1
- package/dist/auth/permissions.d.ts +11 -1
- package/dist/auth/roles.d.ts +30 -0
- package/dist/check-in/admin/reward.dto.schemas.d.ts +156 -14
- package/dist/check-in/admin/reward.router.d.ts +23 -5
- package/dist/check-in/admin/reward.service.d.ts +4 -1
- package/dist/check-in/admin/router.d.ts +23 -5
- package/dist/check-in/constants.d.ts +2 -0
- package/dist/check-in/index.d.ts +2 -0
- package/dist/check-in/internal/reward.service.d.ts +31 -0
- package/dist/check-in/user/dto.schemas.d.ts +3 -22
- package/dist/check-in/user/router.d.ts +3 -10
- package/dist/check-in/user/service.d.ts +3 -4
- package/dist/db/schemas.d.ts +1 -0
- package/dist/deposit/user/router.d.ts +13 -1
- package/dist/index.d.ts +798 -94
- package/dist/ledger/admin/dto.schemas.d.ts +12 -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/lock-activity/admin/router.d.ts +1 -13
- package/dist/lock-activity/user/router.d.ts +1 -13
- package/dist/news/admin/router.d.ts +1 -13
- package/dist/team/admin/router.d.ts +699 -0
- package/dist/team/index.d.ts +7 -0
- package/dist/team/milestone-reward/admin/reward.dto.schemas.d.ts +285 -0
- package/dist/team/milestone-reward/admin/reward.router.d.ts +1146 -0
- package/dist/team/milestone-reward/admin/reward.service.d.ts +477 -0
- package/dist/team/milestone-reward/constants.d.ts +2 -0
- package/dist/team/milestone-reward/errors/index.d.ts +20 -0
- package/dist/team/milestone-reward/errors/locales/zh.d.ts +19 -0
- package/dist/team/milestone-reward/internal/reward-config.service.d.ts +96 -0
- package/dist/team/milestone-reward/reward.db.schemas.d.ts +862 -0
- package/dist/team/milestone-reward/schema.d.ts +459 -0
- package/dist/team/permissions.d.ts +2 -0
- package/dist/user-security/user/router.d.ts +13 -1
- package/dist/wallet-type/user/router.d.ts +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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" | "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";
|
|
2202
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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" | "lock_activity_participation" | "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" | "user_check_in" | "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" | "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";
|
|
2211
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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" | "lock_activity_participation" | "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" | "user_check_in" | "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" | "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";
|
|
2373
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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" | "lock_activity_participation" | "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" | "user_check_in" | "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" | "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";
|
|
2382
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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" | "lock_activity_participation" | "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" | "user_check_in" | "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" | "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";
|
|
2538
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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" | "lock_activity_participation" | "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" | "user_check_in" | "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" | "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";
|
|
2547
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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" | "lock_activity_participation" | "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" | "user_check_in" | "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;
|
|
@@ -4449,7 +4449,7 @@ declare const app: Elysia<"/api", {
|
|
|
4449
4449
|
name: string;
|
|
4450
4450
|
email: string;
|
|
4451
4451
|
} | null;
|
|
4452
|
-
};
|
|
4452
|
+
} | null;
|
|
4453
4453
|
401: "Unauthorized";
|
|
4454
4454
|
403: "Forbidden: Admins only";
|
|
4455
4455
|
422: {
|
|
@@ -4578,13 +4578,31 @@ declare const app: Elysia<"/api", {
|
|
|
4578
4578
|
"reward-plans": {
|
|
4579
4579
|
patch: {
|
|
4580
4580
|
body: {
|
|
4581
|
-
|
|
4582
|
-
|
|
4581
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4582
|
+
dailyPayoutAccountTypeId?: string | undefined;
|
|
4583
4583
|
dailyRewardAmount?: string | undefined;
|
|
4584
4584
|
dailyRewardCategory?: string | undefined;
|
|
4585
|
-
dailyPayoutAccountTypeId?: string | undefined;
|
|
4586
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
4587
4585
|
isEnabled?: boolean | undefined;
|
|
4586
|
+
name?: string | undefined;
|
|
4587
|
+
rewardAssetId?: string | undefined;
|
|
4588
|
+
rules?: ({
|
|
4589
|
+
id: string;
|
|
4590
|
+
isEnabled?: boolean | undefined;
|
|
4591
|
+
payoutAccountTypeId?: string | undefined;
|
|
4592
|
+
rewardAmount?: string | undefined;
|
|
4593
|
+
rewardCategory?: string | undefined;
|
|
4594
|
+
ruleType?: "consecutive" | "cumulative" | undefined;
|
|
4595
|
+
sortOrder?: number | undefined;
|
|
4596
|
+
thresholdDays?: number | undefined;
|
|
4597
|
+
} | {
|
|
4598
|
+
isEnabled?: boolean | undefined;
|
|
4599
|
+
payoutAccountTypeId: string;
|
|
4600
|
+
rewardAmount: string;
|
|
4601
|
+
rewardCategory?: string | undefined;
|
|
4602
|
+
ruleType: "consecutive" | "cumulative";
|
|
4603
|
+
sortOrder?: number | undefined;
|
|
4604
|
+
thresholdDays: number;
|
|
4605
|
+
})[] | undefined;
|
|
4588
4606
|
sortOrder?: number | undefined;
|
|
4589
4607
|
};
|
|
4590
4608
|
params: {};
|
|
@@ -5327,7 +5345,7 @@ declare const app: Elysia<"/api", {
|
|
|
5327
5345
|
query: {
|
|
5328
5346
|
accountId?: string | undefined;
|
|
5329
5347
|
assetId?: string | undefined;
|
|
5330
|
-
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;
|
|
5348
|
+
bizType?: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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;
|
|
5331
5349
|
changeDirection?: "decrease" | "increase" | undefined;
|
|
5332
5350
|
endDate?: Date | undefined;
|
|
5333
5351
|
limit?: number | undefined;
|
|
@@ -5336,7 +5354,7 @@ declare const app: Elysia<"/api", {
|
|
|
5336
5354
|
pageIndex?: number | undefined;
|
|
5337
5355
|
pageSize?: number | undefined;
|
|
5338
5356
|
referenceId?: string | undefined;
|
|
5339
|
-
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;
|
|
5357
|
+
referenceType?: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "user_check_in" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order" | undefined;
|
|
5340
5358
|
startDate?: Date | undefined;
|
|
5341
5359
|
userId?: string | undefined;
|
|
5342
5360
|
};
|
|
@@ -5355,7 +5373,7 @@ declare const app: Elysia<"/api", {
|
|
|
5355
5373
|
isActive: boolean;
|
|
5356
5374
|
};
|
|
5357
5375
|
assetId: string;
|
|
5358
|
-
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";
|
|
5376
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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";
|
|
5359
5377
|
createdAt: Date;
|
|
5360
5378
|
fromAccount?: {
|
|
5361
5379
|
asset: {
|
|
@@ -5407,7 +5425,7 @@ declare const app: Elysia<"/api", {
|
|
|
5407
5425
|
} | undefined;
|
|
5408
5426
|
operatorId: string | null;
|
|
5409
5427
|
referenceId: string;
|
|
5410
|
-
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";
|
|
5428
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "user_check_in" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
5411
5429
|
toAccount?: {
|
|
5412
5430
|
asset: {
|
|
5413
5431
|
id: string;
|
|
@@ -7162,80 +7180,773 @@ declare const app: Elysia<"/api", {
|
|
|
7162
7180
|
};
|
|
7163
7181
|
};
|
|
7164
7182
|
};
|
|
7165
|
-
};
|
|
7166
|
-
} & {
|
|
7167
|
-
referrals: {
|
|
7168
|
-
"depth-configs": {
|
|
7169
|
-
":id": {
|
|
7170
|
-
patch: {
|
|
7171
|
-
body: {
|
|
7172
|
-
depth?: number | undefined;
|
|
7173
|
-
commissionRate?: string | undefined;
|
|
7174
|
-
};
|
|
7175
|
-
params: {
|
|
7176
|
-
id: string;
|
|
7177
|
-
};
|
|
7178
|
-
query: {};
|
|
7179
|
-
headers: {};
|
|
7180
|
-
response: {
|
|
7181
|
-
200: {
|
|
7182
|
-
createdAt: Date;
|
|
7183
|
-
updatedAt: Date;
|
|
7184
|
-
id: string;
|
|
7185
|
-
depth: number;
|
|
7186
|
-
commissionRate: string;
|
|
7183
|
+
};
|
|
7184
|
+
} & {
|
|
7185
|
+
referrals: {
|
|
7186
|
+
"depth-configs": {
|
|
7187
|
+
":id": {
|
|
7188
|
+
patch: {
|
|
7189
|
+
body: {
|
|
7190
|
+
depth?: number | undefined;
|
|
7191
|
+
commissionRate?: string | undefined;
|
|
7192
|
+
};
|
|
7193
|
+
params: {
|
|
7194
|
+
id: string;
|
|
7195
|
+
};
|
|
7196
|
+
query: {};
|
|
7197
|
+
headers: {};
|
|
7198
|
+
response: {
|
|
7199
|
+
200: {
|
|
7200
|
+
createdAt: Date;
|
|
7201
|
+
updatedAt: Date;
|
|
7202
|
+
id: string;
|
|
7203
|
+
depth: number;
|
|
7204
|
+
commissionRate: string;
|
|
7205
|
+
};
|
|
7206
|
+
401: "Unauthorized";
|
|
7207
|
+
403: "Forbidden: Admins only";
|
|
7208
|
+
422: {
|
|
7209
|
+
type: 'validation';
|
|
7210
|
+
on: string;
|
|
7211
|
+
summary?: string;
|
|
7212
|
+
message?: string;
|
|
7213
|
+
found?: unknown;
|
|
7214
|
+
property?: string;
|
|
7215
|
+
expected?: string;
|
|
7216
|
+
};
|
|
7217
|
+
};
|
|
7218
|
+
};
|
|
7219
|
+
};
|
|
7220
|
+
};
|
|
7221
|
+
};
|
|
7222
|
+
} & {
|
|
7223
|
+
referrals: {
|
|
7224
|
+
"depth-configs": {
|
|
7225
|
+
":id": {
|
|
7226
|
+
delete: {
|
|
7227
|
+
body: {};
|
|
7228
|
+
params: {
|
|
7229
|
+
id: string;
|
|
7230
|
+
};
|
|
7231
|
+
query: {};
|
|
7232
|
+
headers: {};
|
|
7233
|
+
response: {
|
|
7234
|
+
200: {
|
|
7235
|
+
success: boolean;
|
|
7236
|
+
};
|
|
7237
|
+
401: "Unauthorized";
|
|
7238
|
+
403: "Forbidden: Admins only";
|
|
7239
|
+
422: {
|
|
7240
|
+
type: 'validation';
|
|
7241
|
+
on: string;
|
|
7242
|
+
summary?: string;
|
|
7243
|
+
message?: string;
|
|
7244
|
+
found?: unknown;
|
|
7245
|
+
property?: string;
|
|
7246
|
+
expected?: string;
|
|
7247
|
+
};
|
|
7248
|
+
};
|
|
7249
|
+
};
|
|
7250
|
+
};
|
|
7251
|
+
};
|
|
7252
|
+
};
|
|
7253
|
+
};
|
|
7254
|
+
} & {
|
|
7255
|
+
admin: {
|
|
7256
|
+
team: {};
|
|
7257
|
+
} & {
|
|
7258
|
+
team: {
|
|
7259
|
+
"milestone-reward-plans": {};
|
|
7260
|
+
} & {
|
|
7261
|
+
"milestone-reward-plans": {
|
|
7262
|
+
get: {
|
|
7263
|
+
body: {};
|
|
7264
|
+
params: {};
|
|
7265
|
+
query: {};
|
|
7266
|
+
headers: {};
|
|
7267
|
+
response: {
|
|
7268
|
+
200: {
|
|
7269
|
+
createdAt: Date;
|
|
7270
|
+
createdBy: string;
|
|
7271
|
+
creator: {
|
|
7272
|
+
id: string;
|
|
7273
|
+
name: string;
|
|
7274
|
+
email: string;
|
|
7275
|
+
} | null;
|
|
7276
|
+
id: string;
|
|
7277
|
+
isEnabled: boolean;
|
|
7278
|
+
maxDepth: number;
|
|
7279
|
+
name: string;
|
|
7280
|
+
platformAsset: {
|
|
7281
|
+
id: string;
|
|
7282
|
+
code: string;
|
|
7283
|
+
name: string;
|
|
7284
|
+
symbol: string | null;
|
|
7285
|
+
precision: number;
|
|
7286
|
+
isActive: boolean;
|
|
7287
|
+
};
|
|
7288
|
+
platformAssetId: string;
|
|
7289
|
+
platformPayoutAccountType: {
|
|
7290
|
+
id: string;
|
|
7291
|
+
key: string;
|
|
7292
|
+
name: string;
|
|
7293
|
+
isActive: boolean;
|
|
7294
|
+
};
|
|
7295
|
+
platformPayoutAccountTypeId: string;
|
|
7296
|
+
rules: {
|
|
7297
|
+
createdAt: Date;
|
|
7298
|
+
createdBy: string;
|
|
7299
|
+
creator: {
|
|
7300
|
+
id: string;
|
|
7301
|
+
name: string;
|
|
7302
|
+
email: string;
|
|
7303
|
+
} | null;
|
|
7304
|
+
id: string;
|
|
7305
|
+
isEnabled: boolean;
|
|
7306
|
+
planId: string;
|
|
7307
|
+
platformRewardAmount: string;
|
|
7308
|
+
rewardDescription: string | null;
|
|
7309
|
+
sortOrder: number;
|
|
7310
|
+
thresholdMemberCount: number;
|
|
7311
|
+
updatedAt: Date;
|
|
7312
|
+
updatedBy: string | null;
|
|
7313
|
+
updater: {
|
|
7314
|
+
id: string;
|
|
7315
|
+
name: string;
|
|
7316
|
+
email: string;
|
|
7317
|
+
} | null;
|
|
7318
|
+
valueAddedRewardAmount: string;
|
|
7319
|
+
}[];
|
|
7320
|
+
sortOrder: number;
|
|
7321
|
+
updatedAt: Date;
|
|
7322
|
+
updatedBy: string | null;
|
|
7323
|
+
updater: {
|
|
7324
|
+
id: string;
|
|
7325
|
+
name: string;
|
|
7326
|
+
email: string;
|
|
7327
|
+
} | null;
|
|
7328
|
+
valueAddedAsset: {
|
|
7329
|
+
id: string;
|
|
7330
|
+
code: string;
|
|
7331
|
+
name: string;
|
|
7332
|
+
symbol: string | null;
|
|
7333
|
+
precision: number;
|
|
7334
|
+
isActive: boolean;
|
|
7335
|
+
};
|
|
7336
|
+
valueAddedAssetId: string;
|
|
7337
|
+
valueAddedPayoutAccountType: {
|
|
7338
|
+
id: string;
|
|
7339
|
+
key: string;
|
|
7340
|
+
name: string;
|
|
7341
|
+
isActive: boolean;
|
|
7342
|
+
};
|
|
7343
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7344
|
+
} | null;
|
|
7345
|
+
401: "Unauthorized";
|
|
7346
|
+
403: "Forbidden: Admins only";
|
|
7347
|
+
422: {
|
|
7348
|
+
type: 'validation';
|
|
7349
|
+
on: string;
|
|
7350
|
+
summary?: string;
|
|
7351
|
+
message?: string;
|
|
7352
|
+
found?: unknown;
|
|
7353
|
+
property?: string;
|
|
7354
|
+
expected?: string;
|
|
7355
|
+
};
|
|
7356
|
+
};
|
|
7357
|
+
};
|
|
7358
|
+
};
|
|
7359
|
+
} & {
|
|
7360
|
+
"milestone-reward-plans": {
|
|
7361
|
+
post: {
|
|
7362
|
+
body: {
|
|
7363
|
+
name: string;
|
|
7364
|
+
platformAssetId: string;
|
|
7365
|
+
platformPayoutAccountTypeId: string;
|
|
7366
|
+
valueAddedAssetId: string;
|
|
7367
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7368
|
+
maxDepth?: number | undefined;
|
|
7369
|
+
isEnabled?: boolean | undefined;
|
|
7370
|
+
sortOrder?: number | undefined;
|
|
7371
|
+
rules?: {
|
|
7372
|
+
thresholdMemberCount: number;
|
|
7373
|
+
platformRewardAmount: string;
|
|
7374
|
+
valueAddedRewardAmount: string;
|
|
7375
|
+
rewardDescription?: string | null | undefined;
|
|
7376
|
+
isEnabled?: boolean | undefined;
|
|
7377
|
+
sortOrder?: number | undefined;
|
|
7378
|
+
}[] | undefined;
|
|
7379
|
+
};
|
|
7380
|
+
params: {};
|
|
7381
|
+
query: {};
|
|
7382
|
+
headers: {};
|
|
7383
|
+
response: {
|
|
7384
|
+
200: {
|
|
7385
|
+
createdAt: Date;
|
|
7386
|
+
createdBy: string;
|
|
7387
|
+
creator: {
|
|
7388
|
+
id: string;
|
|
7389
|
+
name: string;
|
|
7390
|
+
email: string;
|
|
7391
|
+
} | null;
|
|
7392
|
+
id: string;
|
|
7393
|
+
isEnabled: boolean;
|
|
7394
|
+
maxDepth: number;
|
|
7395
|
+
name: string;
|
|
7396
|
+
platformAsset: {
|
|
7397
|
+
id: string;
|
|
7398
|
+
code: string;
|
|
7399
|
+
name: string;
|
|
7400
|
+
symbol: string | null;
|
|
7401
|
+
precision: number;
|
|
7402
|
+
isActive: boolean;
|
|
7403
|
+
};
|
|
7404
|
+
platformAssetId: string;
|
|
7405
|
+
platformPayoutAccountType: {
|
|
7406
|
+
id: string;
|
|
7407
|
+
key: string;
|
|
7408
|
+
name: string;
|
|
7409
|
+
isActive: boolean;
|
|
7410
|
+
};
|
|
7411
|
+
platformPayoutAccountTypeId: string;
|
|
7412
|
+
rules: {
|
|
7413
|
+
createdAt: Date;
|
|
7414
|
+
createdBy: string;
|
|
7415
|
+
creator: {
|
|
7416
|
+
id: string;
|
|
7417
|
+
name: string;
|
|
7418
|
+
email: string;
|
|
7419
|
+
} | null;
|
|
7420
|
+
id: string;
|
|
7421
|
+
isEnabled: boolean;
|
|
7422
|
+
planId: string;
|
|
7423
|
+
platformRewardAmount: string;
|
|
7424
|
+
rewardDescription: string | null;
|
|
7425
|
+
sortOrder: number;
|
|
7426
|
+
thresholdMemberCount: number;
|
|
7427
|
+
updatedAt: Date;
|
|
7428
|
+
updatedBy: string | null;
|
|
7429
|
+
updater: {
|
|
7430
|
+
id: string;
|
|
7431
|
+
name: string;
|
|
7432
|
+
email: string;
|
|
7433
|
+
} | null;
|
|
7434
|
+
valueAddedRewardAmount: string;
|
|
7435
|
+
}[];
|
|
7436
|
+
sortOrder: number;
|
|
7437
|
+
updatedAt: Date;
|
|
7438
|
+
updatedBy: string | null;
|
|
7439
|
+
updater: {
|
|
7440
|
+
id: string;
|
|
7441
|
+
name: string;
|
|
7442
|
+
email: string;
|
|
7443
|
+
} | null;
|
|
7444
|
+
valueAddedAsset: {
|
|
7445
|
+
id: string;
|
|
7446
|
+
code: string;
|
|
7447
|
+
name: string;
|
|
7448
|
+
symbol: string | null;
|
|
7449
|
+
precision: number;
|
|
7450
|
+
isActive: boolean;
|
|
7451
|
+
};
|
|
7452
|
+
valueAddedAssetId: string;
|
|
7453
|
+
valueAddedPayoutAccountType: {
|
|
7454
|
+
id: string;
|
|
7455
|
+
key: string;
|
|
7456
|
+
name: string;
|
|
7457
|
+
isActive: boolean;
|
|
7458
|
+
};
|
|
7459
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7460
|
+
};
|
|
7461
|
+
401: "Unauthorized";
|
|
7462
|
+
403: "Forbidden: Admins only";
|
|
7463
|
+
422: {
|
|
7464
|
+
type: 'validation';
|
|
7465
|
+
on: string;
|
|
7466
|
+
summary?: string;
|
|
7467
|
+
message?: string;
|
|
7468
|
+
found?: unknown;
|
|
7469
|
+
property?: string;
|
|
7470
|
+
expected?: string;
|
|
7471
|
+
};
|
|
7472
|
+
};
|
|
7473
|
+
};
|
|
7474
|
+
};
|
|
7475
|
+
} & {
|
|
7476
|
+
"milestone-reward-plans": {
|
|
7477
|
+
patch: {
|
|
7478
|
+
body: {
|
|
7479
|
+
name?: string | undefined;
|
|
7480
|
+
platformAssetId?: string | undefined;
|
|
7481
|
+
platformPayoutAccountTypeId?: string | undefined;
|
|
7482
|
+
valueAddedAssetId?: string | undefined;
|
|
7483
|
+
valueAddedPayoutAccountTypeId?: string | undefined;
|
|
7484
|
+
maxDepth?: number | undefined;
|
|
7485
|
+
isEnabled?: boolean | undefined;
|
|
7486
|
+
sortOrder?: number | undefined;
|
|
7487
|
+
rules?: ({
|
|
7488
|
+
id: string;
|
|
7489
|
+
isEnabled?: boolean | undefined;
|
|
7490
|
+
platformRewardAmount?: string | undefined;
|
|
7491
|
+
rewardDescription?: string | null | undefined;
|
|
7492
|
+
sortOrder?: number | undefined;
|
|
7493
|
+
thresholdMemberCount?: number | undefined;
|
|
7494
|
+
valueAddedRewardAmount?: string | undefined;
|
|
7495
|
+
} | {
|
|
7496
|
+
thresholdMemberCount: number;
|
|
7497
|
+
platformRewardAmount: string;
|
|
7498
|
+
valueAddedRewardAmount: string;
|
|
7499
|
+
rewardDescription?: string | null | undefined;
|
|
7500
|
+
isEnabled?: boolean | undefined;
|
|
7501
|
+
sortOrder?: number | undefined;
|
|
7502
|
+
})[] | undefined;
|
|
7503
|
+
};
|
|
7504
|
+
params: {};
|
|
7505
|
+
query: {};
|
|
7506
|
+
headers: {};
|
|
7507
|
+
response: {
|
|
7508
|
+
200: {
|
|
7509
|
+
createdAt: Date;
|
|
7510
|
+
createdBy: string;
|
|
7511
|
+
creator: {
|
|
7512
|
+
id: string;
|
|
7513
|
+
name: string;
|
|
7514
|
+
email: string;
|
|
7515
|
+
} | null;
|
|
7516
|
+
id: string;
|
|
7517
|
+
isEnabled: boolean;
|
|
7518
|
+
maxDepth: number;
|
|
7519
|
+
name: string;
|
|
7520
|
+
platformAsset: {
|
|
7521
|
+
id: string;
|
|
7522
|
+
code: string;
|
|
7523
|
+
name: string;
|
|
7524
|
+
symbol: string | null;
|
|
7525
|
+
precision: number;
|
|
7526
|
+
isActive: boolean;
|
|
7527
|
+
};
|
|
7528
|
+
platformAssetId: string;
|
|
7529
|
+
platformPayoutAccountType: {
|
|
7530
|
+
id: string;
|
|
7531
|
+
key: string;
|
|
7532
|
+
name: string;
|
|
7533
|
+
isActive: boolean;
|
|
7534
|
+
};
|
|
7535
|
+
platformPayoutAccountTypeId: string;
|
|
7536
|
+
rules: {
|
|
7537
|
+
createdAt: Date;
|
|
7538
|
+
createdBy: string;
|
|
7539
|
+
creator: {
|
|
7540
|
+
id: string;
|
|
7541
|
+
name: string;
|
|
7542
|
+
email: string;
|
|
7543
|
+
} | null;
|
|
7544
|
+
id: string;
|
|
7545
|
+
isEnabled: boolean;
|
|
7546
|
+
planId: string;
|
|
7547
|
+
platformRewardAmount: string;
|
|
7548
|
+
rewardDescription: string | null;
|
|
7549
|
+
sortOrder: number;
|
|
7550
|
+
thresholdMemberCount: number;
|
|
7551
|
+
updatedAt: Date;
|
|
7552
|
+
updatedBy: string | null;
|
|
7553
|
+
updater: {
|
|
7554
|
+
id: string;
|
|
7555
|
+
name: string;
|
|
7556
|
+
email: string;
|
|
7557
|
+
} | null;
|
|
7558
|
+
valueAddedRewardAmount: string;
|
|
7559
|
+
}[];
|
|
7560
|
+
sortOrder: number;
|
|
7561
|
+
updatedAt: Date;
|
|
7562
|
+
updatedBy: string | null;
|
|
7563
|
+
updater: {
|
|
7564
|
+
id: string;
|
|
7565
|
+
name: string;
|
|
7566
|
+
email: string;
|
|
7567
|
+
} | null;
|
|
7568
|
+
valueAddedAsset: {
|
|
7569
|
+
id: string;
|
|
7570
|
+
code: string;
|
|
7571
|
+
name: string;
|
|
7572
|
+
symbol: string | null;
|
|
7573
|
+
precision: number;
|
|
7574
|
+
isActive: boolean;
|
|
7575
|
+
};
|
|
7576
|
+
valueAddedAssetId: string;
|
|
7577
|
+
valueAddedPayoutAccountType: {
|
|
7578
|
+
id: string;
|
|
7579
|
+
key: string;
|
|
7580
|
+
name: string;
|
|
7581
|
+
isActive: boolean;
|
|
7582
|
+
};
|
|
7583
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7584
|
+
};
|
|
7585
|
+
401: "Unauthorized";
|
|
7586
|
+
403: "Forbidden: Admins only";
|
|
7587
|
+
422: {
|
|
7588
|
+
type: 'validation';
|
|
7589
|
+
on: string;
|
|
7590
|
+
summary?: string;
|
|
7591
|
+
message?: string;
|
|
7592
|
+
found?: unknown;
|
|
7593
|
+
property?: string;
|
|
7594
|
+
expected?: string;
|
|
7595
|
+
};
|
|
7596
|
+
};
|
|
7597
|
+
};
|
|
7598
|
+
};
|
|
7599
|
+
} & {
|
|
7600
|
+
"milestone-reward-plans": {
|
|
7601
|
+
delete: {
|
|
7602
|
+
body: {};
|
|
7603
|
+
params: {};
|
|
7604
|
+
query: {};
|
|
7605
|
+
headers: {};
|
|
7606
|
+
response: {
|
|
7607
|
+
200: {
|
|
7608
|
+
success: boolean;
|
|
7609
|
+
};
|
|
7610
|
+
401: "Unauthorized";
|
|
7611
|
+
403: "Forbidden: Admins only";
|
|
7612
|
+
422: {
|
|
7613
|
+
type: 'validation';
|
|
7614
|
+
on: string;
|
|
7615
|
+
summary?: string;
|
|
7616
|
+
message?: string;
|
|
7617
|
+
found?: unknown;
|
|
7618
|
+
property?: string;
|
|
7619
|
+
expected?: string;
|
|
7620
|
+
};
|
|
7621
|
+
};
|
|
7622
|
+
};
|
|
7623
|
+
};
|
|
7624
|
+
} & {
|
|
7625
|
+
"milestone-reward-plans": {
|
|
7626
|
+
rules: {
|
|
7627
|
+
post: {
|
|
7628
|
+
body: {
|
|
7629
|
+
thresholdMemberCount: number;
|
|
7630
|
+
platformRewardAmount: string;
|
|
7631
|
+
valueAddedRewardAmount: string;
|
|
7632
|
+
rewardDescription?: string | null | undefined;
|
|
7633
|
+
isEnabled?: boolean | undefined;
|
|
7634
|
+
sortOrder?: number | undefined;
|
|
7635
|
+
};
|
|
7636
|
+
params: {};
|
|
7637
|
+
query: {};
|
|
7638
|
+
headers: {};
|
|
7639
|
+
response: {
|
|
7640
|
+
200: {
|
|
7641
|
+
createdAt: Date;
|
|
7642
|
+
createdBy: string;
|
|
7643
|
+
creator: {
|
|
7644
|
+
id: string;
|
|
7645
|
+
name: string;
|
|
7646
|
+
email: string;
|
|
7647
|
+
} | null;
|
|
7648
|
+
id: string;
|
|
7649
|
+
isEnabled: boolean;
|
|
7650
|
+
maxDepth: number;
|
|
7651
|
+
name: string;
|
|
7652
|
+
platformAsset: {
|
|
7653
|
+
id: string;
|
|
7654
|
+
code: string;
|
|
7655
|
+
name: string;
|
|
7656
|
+
symbol: string | null;
|
|
7657
|
+
precision: number;
|
|
7658
|
+
isActive: boolean;
|
|
7659
|
+
};
|
|
7660
|
+
platformAssetId: string;
|
|
7661
|
+
platformPayoutAccountType: {
|
|
7662
|
+
id: string;
|
|
7663
|
+
key: string;
|
|
7664
|
+
name: string;
|
|
7665
|
+
isActive: boolean;
|
|
7666
|
+
};
|
|
7667
|
+
platformPayoutAccountTypeId: string;
|
|
7668
|
+
rules: {
|
|
7669
|
+
createdAt: Date;
|
|
7670
|
+
createdBy: string;
|
|
7671
|
+
creator: {
|
|
7672
|
+
id: string;
|
|
7673
|
+
name: string;
|
|
7674
|
+
email: string;
|
|
7675
|
+
} | null;
|
|
7676
|
+
id: string;
|
|
7677
|
+
isEnabled: boolean;
|
|
7678
|
+
planId: string;
|
|
7679
|
+
platformRewardAmount: string;
|
|
7680
|
+
rewardDescription: string | null;
|
|
7681
|
+
sortOrder: number;
|
|
7682
|
+
thresholdMemberCount: number;
|
|
7683
|
+
updatedAt: Date;
|
|
7684
|
+
updatedBy: string | null;
|
|
7685
|
+
updater: {
|
|
7686
|
+
id: string;
|
|
7687
|
+
name: string;
|
|
7688
|
+
email: string;
|
|
7689
|
+
} | null;
|
|
7690
|
+
valueAddedRewardAmount: string;
|
|
7691
|
+
}[];
|
|
7692
|
+
sortOrder: number;
|
|
7693
|
+
updatedAt: Date;
|
|
7694
|
+
updatedBy: string | null;
|
|
7695
|
+
updater: {
|
|
7696
|
+
id: string;
|
|
7697
|
+
name: string;
|
|
7698
|
+
email: string;
|
|
7699
|
+
} | null;
|
|
7700
|
+
valueAddedAsset: {
|
|
7701
|
+
id: string;
|
|
7702
|
+
code: string;
|
|
7703
|
+
name: string;
|
|
7704
|
+
symbol: string | null;
|
|
7705
|
+
precision: number;
|
|
7706
|
+
isActive: boolean;
|
|
7707
|
+
};
|
|
7708
|
+
valueAddedAssetId: string;
|
|
7709
|
+
valueAddedPayoutAccountType: {
|
|
7710
|
+
id: string;
|
|
7711
|
+
key: string;
|
|
7712
|
+
name: string;
|
|
7713
|
+
isActive: boolean;
|
|
7714
|
+
};
|
|
7715
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7716
|
+
};
|
|
7717
|
+
401: "Unauthorized";
|
|
7718
|
+
403: "Forbidden: Admins only";
|
|
7719
|
+
422: {
|
|
7720
|
+
type: 'validation';
|
|
7721
|
+
on: string;
|
|
7722
|
+
summary?: string;
|
|
7723
|
+
message?: string;
|
|
7724
|
+
found?: unknown;
|
|
7725
|
+
property?: string;
|
|
7726
|
+
expected?: string;
|
|
7727
|
+
};
|
|
7728
|
+
};
|
|
7729
|
+
};
|
|
7730
|
+
};
|
|
7731
|
+
};
|
|
7732
|
+
} & {
|
|
7733
|
+
"milestone-reward-plans": {
|
|
7734
|
+
rules: {
|
|
7735
|
+
":ruleId": {
|
|
7736
|
+
patch: {
|
|
7737
|
+
body: {
|
|
7738
|
+
thresholdMemberCount?: number | undefined;
|
|
7739
|
+
platformRewardAmount?: string | undefined;
|
|
7740
|
+
valueAddedRewardAmount?: string | undefined;
|
|
7741
|
+
rewardDescription?: string | null | undefined;
|
|
7742
|
+
isEnabled?: boolean | undefined;
|
|
7743
|
+
sortOrder?: number | undefined;
|
|
7187
7744
|
};
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7745
|
+
params: {
|
|
7746
|
+
ruleId: string;
|
|
7747
|
+
};
|
|
7748
|
+
query: {};
|
|
7749
|
+
headers: {};
|
|
7750
|
+
response: {
|
|
7751
|
+
200: {
|
|
7752
|
+
createdAt: Date;
|
|
7753
|
+
createdBy: string;
|
|
7754
|
+
creator: {
|
|
7755
|
+
id: string;
|
|
7756
|
+
name: string;
|
|
7757
|
+
email: string;
|
|
7758
|
+
} | null;
|
|
7759
|
+
id: string;
|
|
7760
|
+
isEnabled: boolean;
|
|
7761
|
+
maxDepth: number;
|
|
7762
|
+
name: string;
|
|
7763
|
+
platformAsset: {
|
|
7764
|
+
id: string;
|
|
7765
|
+
code: string;
|
|
7766
|
+
name: string;
|
|
7767
|
+
symbol: string | null;
|
|
7768
|
+
precision: number;
|
|
7769
|
+
isActive: boolean;
|
|
7770
|
+
};
|
|
7771
|
+
platformAssetId: string;
|
|
7772
|
+
platformPayoutAccountType: {
|
|
7773
|
+
id: string;
|
|
7774
|
+
key: string;
|
|
7775
|
+
name: string;
|
|
7776
|
+
isActive: boolean;
|
|
7777
|
+
};
|
|
7778
|
+
platformPayoutAccountTypeId: string;
|
|
7779
|
+
rules: {
|
|
7780
|
+
createdAt: Date;
|
|
7781
|
+
createdBy: string;
|
|
7782
|
+
creator: {
|
|
7783
|
+
id: string;
|
|
7784
|
+
name: string;
|
|
7785
|
+
email: string;
|
|
7786
|
+
} | null;
|
|
7787
|
+
id: string;
|
|
7788
|
+
isEnabled: boolean;
|
|
7789
|
+
planId: string;
|
|
7790
|
+
platformRewardAmount: string;
|
|
7791
|
+
rewardDescription: string | null;
|
|
7792
|
+
sortOrder: number;
|
|
7793
|
+
thresholdMemberCount: number;
|
|
7794
|
+
updatedAt: Date;
|
|
7795
|
+
updatedBy: string | null;
|
|
7796
|
+
updater: {
|
|
7797
|
+
id: string;
|
|
7798
|
+
name: string;
|
|
7799
|
+
email: string;
|
|
7800
|
+
} | null;
|
|
7801
|
+
valueAddedRewardAmount: string;
|
|
7802
|
+
}[];
|
|
7803
|
+
sortOrder: number;
|
|
7804
|
+
updatedAt: Date;
|
|
7805
|
+
updatedBy: string | null;
|
|
7806
|
+
updater: {
|
|
7807
|
+
id: string;
|
|
7808
|
+
name: string;
|
|
7809
|
+
email: string;
|
|
7810
|
+
} | null;
|
|
7811
|
+
valueAddedAsset: {
|
|
7812
|
+
id: string;
|
|
7813
|
+
code: string;
|
|
7814
|
+
name: string;
|
|
7815
|
+
symbol: string | null;
|
|
7816
|
+
precision: number;
|
|
7817
|
+
isActive: boolean;
|
|
7818
|
+
};
|
|
7819
|
+
valueAddedAssetId: string;
|
|
7820
|
+
valueAddedPayoutAccountType: {
|
|
7821
|
+
id: string;
|
|
7822
|
+
key: string;
|
|
7823
|
+
name: string;
|
|
7824
|
+
isActive: boolean;
|
|
7825
|
+
};
|
|
7826
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7827
|
+
};
|
|
7828
|
+
401: "Unauthorized";
|
|
7829
|
+
403: "Forbidden: Admins only";
|
|
7830
|
+
422: {
|
|
7831
|
+
type: 'validation';
|
|
7832
|
+
on: string;
|
|
7833
|
+
summary?: string;
|
|
7834
|
+
message?: string;
|
|
7835
|
+
found?: unknown;
|
|
7836
|
+
property?: string;
|
|
7837
|
+
expected?: string;
|
|
7838
|
+
};
|
|
7198
7839
|
};
|
|
7199
7840
|
};
|
|
7200
7841
|
};
|
|
7201
7842
|
};
|
|
7202
7843
|
};
|
|
7203
|
-
}
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
id: string;
|
|
7212
|
-
};
|
|
7213
|
-
query: {};
|
|
7214
|
-
headers: {};
|
|
7215
|
-
response: {
|
|
7216
|
-
200: {
|
|
7217
|
-
success: boolean;
|
|
7844
|
+
} & {
|
|
7845
|
+
"milestone-reward-plans": {
|
|
7846
|
+
rules: {
|
|
7847
|
+
":ruleId": {
|
|
7848
|
+
delete: {
|
|
7849
|
+
body: {};
|
|
7850
|
+
params: {
|
|
7851
|
+
ruleId: string;
|
|
7218
7852
|
};
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7853
|
+
query: {};
|
|
7854
|
+
headers: {};
|
|
7855
|
+
response: {
|
|
7856
|
+
200: {
|
|
7857
|
+
createdAt: Date;
|
|
7858
|
+
createdBy: string;
|
|
7859
|
+
creator: {
|
|
7860
|
+
id: string;
|
|
7861
|
+
name: string;
|
|
7862
|
+
email: string;
|
|
7863
|
+
} | null;
|
|
7864
|
+
id: string;
|
|
7865
|
+
isEnabled: boolean;
|
|
7866
|
+
maxDepth: number;
|
|
7867
|
+
name: string;
|
|
7868
|
+
platformAsset: {
|
|
7869
|
+
id: string;
|
|
7870
|
+
code: string;
|
|
7871
|
+
name: string;
|
|
7872
|
+
symbol: string | null;
|
|
7873
|
+
precision: number;
|
|
7874
|
+
isActive: boolean;
|
|
7875
|
+
};
|
|
7876
|
+
platformAssetId: string;
|
|
7877
|
+
platformPayoutAccountType: {
|
|
7878
|
+
id: string;
|
|
7879
|
+
key: string;
|
|
7880
|
+
name: string;
|
|
7881
|
+
isActive: boolean;
|
|
7882
|
+
};
|
|
7883
|
+
platformPayoutAccountTypeId: string;
|
|
7884
|
+
rules: {
|
|
7885
|
+
createdAt: Date;
|
|
7886
|
+
createdBy: string;
|
|
7887
|
+
creator: {
|
|
7888
|
+
id: string;
|
|
7889
|
+
name: string;
|
|
7890
|
+
email: string;
|
|
7891
|
+
} | null;
|
|
7892
|
+
id: string;
|
|
7893
|
+
isEnabled: boolean;
|
|
7894
|
+
planId: string;
|
|
7895
|
+
platformRewardAmount: string;
|
|
7896
|
+
rewardDescription: string | null;
|
|
7897
|
+
sortOrder: number;
|
|
7898
|
+
thresholdMemberCount: number;
|
|
7899
|
+
updatedAt: Date;
|
|
7900
|
+
updatedBy: string | null;
|
|
7901
|
+
updater: {
|
|
7902
|
+
id: string;
|
|
7903
|
+
name: string;
|
|
7904
|
+
email: string;
|
|
7905
|
+
} | null;
|
|
7906
|
+
valueAddedRewardAmount: string;
|
|
7907
|
+
}[];
|
|
7908
|
+
sortOrder: number;
|
|
7909
|
+
updatedAt: Date;
|
|
7910
|
+
updatedBy: string | null;
|
|
7911
|
+
updater: {
|
|
7912
|
+
id: string;
|
|
7913
|
+
name: string;
|
|
7914
|
+
email: string;
|
|
7915
|
+
} | null;
|
|
7916
|
+
valueAddedAsset: {
|
|
7917
|
+
id: string;
|
|
7918
|
+
code: string;
|
|
7919
|
+
name: string;
|
|
7920
|
+
symbol: string | null;
|
|
7921
|
+
precision: number;
|
|
7922
|
+
isActive: boolean;
|
|
7923
|
+
};
|
|
7924
|
+
valueAddedAssetId: string;
|
|
7925
|
+
valueAddedPayoutAccountType: {
|
|
7926
|
+
id: string;
|
|
7927
|
+
key: string;
|
|
7928
|
+
name: string;
|
|
7929
|
+
isActive: boolean;
|
|
7930
|
+
};
|
|
7931
|
+
valueAddedPayoutAccountTypeId: string;
|
|
7932
|
+
};
|
|
7933
|
+
401: "Unauthorized";
|
|
7934
|
+
403: "Forbidden: Admins only";
|
|
7935
|
+
422: {
|
|
7936
|
+
type: 'validation';
|
|
7937
|
+
on: string;
|
|
7938
|
+
summary?: string;
|
|
7939
|
+
message?: string;
|
|
7940
|
+
found?: unknown;
|
|
7941
|
+
property?: string;
|
|
7942
|
+
expected?: string;
|
|
7943
|
+
};
|
|
7229
7944
|
};
|
|
7230
7945
|
};
|
|
7231
7946
|
};
|
|
7232
7947
|
};
|
|
7233
7948
|
};
|
|
7234
7949
|
};
|
|
7235
|
-
};
|
|
7236
|
-
} & {
|
|
7237
|
-
admin: {
|
|
7238
|
-
team: {};
|
|
7239
7950
|
} & {
|
|
7240
7951
|
team: {
|
|
7241
7952
|
summary: {
|
|
@@ -14598,9 +15309,7 @@ declare const app: Elysia<"/api", {
|
|
|
14598
15309
|
} & {
|
|
14599
15310
|
checkIns: {
|
|
14600
15311
|
post: {
|
|
14601
|
-
body: {
|
|
14602
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
14603
|
-
};
|
|
15312
|
+
body: {};
|
|
14604
15313
|
params: {};
|
|
14605
15314
|
query: {};
|
|
14606
15315
|
headers: {};
|
|
@@ -14635,7 +15344,6 @@ declare const app: Elysia<"/api", {
|
|
|
14635
15344
|
body: {};
|
|
14636
15345
|
params: {};
|
|
14637
15346
|
query: {
|
|
14638
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
14639
15347
|
endDate?: Date | undefined;
|
|
14640
15348
|
limit?: number | undefined;
|
|
14641
15349
|
offset?: number | undefined;
|
|
@@ -14702,9 +15410,7 @@ declare const app: Elysia<"/api", {
|
|
|
14702
15410
|
get: {
|
|
14703
15411
|
body: {};
|
|
14704
15412
|
params: {};
|
|
14705
|
-
query: {
|
|
14706
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
14707
|
-
};
|
|
15413
|
+
query: {};
|
|
14708
15414
|
headers: {};
|
|
14709
15415
|
response: {
|
|
14710
15416
|
200: {
|
|
@@ -14766,9 +15472,7 @@ declare const app: Elysia<"/api", {
|
|
|
14766
15472
|
get: {
|
|
14767
15473
|
body: {};
|
|
14768
15474
|
params: {};
|
|
14769
|
-
query: {
|
|
14770
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
14771
|
-
};
|
|
15475
|
+
query: {};
|
|
14772
15476
|
headers: {};
|
|
14773
15477
|
response: {
|
|
14774
15478
|
200: {
|
|
@@ -15325,7 +16029,7 @@ declare const app: Elysia<"/api", {
|
|
|
15325
16029
|
assetId: string;
|
|
15326
16030
|
fromAccountId: string | null;
|
|
15327
16031
|
toAccountId: string | null;
|
|
15328
|
-
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";
|
|
16032
|
+
bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "check_in_daily_reward_payout" | "check_in_milestone_reward_payout" | "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";
|
|
15329
16033
|
amount: string;
|
|
15330
16034
|
fromAvailableBefore: string | null;
|
|
15331
16035
|
fromAvailableAfter: string | null;
|
|
@@ -15336,7 +16040,7 @@ declare const app: Elysia<"/api", {
|
|
|
15336
16040
|
toLockedBefore: string | null;
|
|
15337
16041
|
toLockedAfter: string | null;
|
|
15338
16042
|
referenceId: string;
|
|
15339
|
-
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";
|
|
16043
|
+
referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "user_check_in" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
|
|
15340
16044
|
idempotencyKey: string;
|
|
15341
16045
|
operatorId: string | null;
|
|
15342
16046
|
memo: string | null;
|