@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.
Files changed (45) hide show
  1. package/dist/admin/index.d.ts +732 -21
  2. package/dist/asset-convert-product/admin/dto.schemas.d.ts +12 -0
  3. package/dist/asset-convert-product/admin/router.d.ts +12 -12
  4. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  5. package/dist/auth/better-auth.d.ts +13 -1
  6. package/dist/auth/permissions.d.ts +11 -1
  7. package/dist/auth/roles.d.ts +30 -0
  8. package/dist/check-in/admin/reward.dto.schemas.d.ts +156 -14
  9. package/dist/check-in/admin/reward.router.d.ts +23 -5
  10. package/dist/check-in/admin/reward.service.d.ts +4 -1
  11. package/dist/check-in/admin/router.d.ts +23 -5
  12. package/dist/check-in/constants.d.ts +2 -0
  13. package/dist/check-in/index.d.ts +2 -0
  14. package/dist/check-in/internal/reward.service.d.ts +31 -0
  15. package/dist/check-in/user/dto.schemas.d.ts +3 -22
  16. package/dist/check-in/user/router.d.ts +3 -10
  17. package/dist/check-in/user/service.d.ts +3 -4
  18. package/dist/db/schemas.d.ts +1 -0
  19. package/dist/deposit/user/router.d.ts +13 -1
  20. package/dist/index.d.ts +798 -94
  21. package/dist/ledger/admin/dto.schemas.d.ts +12 -0
  22. package/dist/ledger/admin/router.d.ts +4 -4
  23. package/dist/ledger/db.schemas.d.ts +8 -8
  24. package/dist/ledger/schema.d.ts +6 -6
  25. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  26. package/dist/ledger/user/router.d.ts +2 -2
  27. package/dist/ledger/user/service.d.ts +2 -2
  28. package/dist/lock-activity/admin/router.d.ts +1 -13
  29. package/dist/lock-activity/user/router.d.ts +1 -13
  30. package/dist/news/admin/router.d.ts +1 -13
  31. package/dist/team/admin/router.d.ts +699 -0
  32. package/dist/team/index.d.ts +7 -0
  33. package/dist/team/milestone-reward/admin/reward.dto.schemas.d.ts +285 -0
  34. package/dist/team/milestone-reward/admin/reward.router.d.ts +1146 -0
  35. package/dist/team/milestone-reward/admin/reward.service.d.ts +477 -0
  36. package/dist/team/milestone-reward/constants.d.ts +2 -0
  37. package/dist/team/milestone-reward/errors/index.d.ts +20 -0
  38. package/dist/team/milestone-reward/errors/locales/zh.d.ts +19 -0
  39. package/dist/team/milestone-reward/internal/reward-config.service.d.ts +96 -0
  40. package/dist/team/milestone-reward/reward.db.schemas.d.ts +862 -0
  41. package/dist/team/milestone-reward/schema.d.ts +459 -0
  42. package/dist/team/permissions.d.ts +2 -0
  43. package/dist/user-security/user/router.d.ts +13 -1
  44. package/dist/wallet-type/user/router.d.ts +13 -1
  45. package/package.json +1 -1
@@ -1876,19 +1876,19 @@ export declare const adminRouter: Elysia<"/admin", {
1876
1876
  createdAt: Date;
1877
1877
  creditLedgerEntry?: {
1878
1878
  id: string;
1879
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "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";
1879
+ 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";
1880
1880
  amount: string;
1881
1881
  referenceId: string;
1882
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
1882
+ 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";
1883
1883
  createdAt: Date;
1884
1884
  } | undefined;
1885
1885
  creditLedgerEntryId: string | null;
1886
1886
  debitLedgerEntry?: {
1887
1887
  id: string;
1888
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "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";
1888
+ 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";
1889
1889
  amount: string;
1890
1890
  referenceId: string;
1891
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
1891
+ 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";
1892
1892
  createdAt: Date;
1893
1893
  } | undefined;
1894
1894
  debitLedgerEntryId: string | null;
@@ -2047,19 +2047,19 @@ export declare const adminRouter: Elysia<"/admin", {
2047
2047
  createdAt: Date;
2048
2048
  creditLedgerEntry?: {
2049
2049
  id: string;
2050
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "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";
2050
+ 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";
2051
2051
  amount: string;
2052
2052
  referenceId: string;
2053
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2053
+ 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";
2054
2054
  createdAt: Date;
2055
2055
  } | undefined;
2056
2056
  creditLedgerEntryId: string | null;
2057
2057
  debitLedgerEntry?: {
2058
2058
  id: string;
2059
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "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";
2059
+ 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";
2060
2060
  amount: string;
2061
2061
  referenceId: string;
2062
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2062
+ 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";
2063
2063
  createdAt: Date;
2064
2064
  } | undefined;
2065
2065
  debitLedgerEntryId: string | null;
@@ -2212,19 +2212,19 @@ export declare const adminRouter: Elysia<"/admin", {
2212
2212
  createdAt: Date;
2213
2213
  creditLedgerEntry?: {
2214
2214
  id: string;
2215
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "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";
2215
+ 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";
2216
2216
  amount: string;
2217
2217
  referenceId: string;
2218
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2218
+ 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";
2219
2219
  createdAt: Date;
2220
2220
  } | undefined;
2221
2221
  creditLedgerEntryId: string | null;
2222
2222
  debitLedgerEntry?: {
2223
2223
  id: string;
2224
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "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";
2224
+ 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";
2225
2225
  amount: string;
2226
2226
  referenceId: string;
2227
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2227
+ 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";
2228
2228
  createdAt: Date;
2229
2229
  } | undefined;
2230
2230
  debitLedgerEntryId: string | null;
@@ -4126,7 +4126,7 @@ export declare const adminRouter: Elysia<"/admin", {
4126
4126
  name: string;
4127
4127
  email: string;
4128
4128
  } | null;
4129
- };
4129
+ } | null;
4130
4130
  401: "Unauthorized";
4131
4131
  403: "Forbidden: Admins only";
4132
4132
  422: {
@@ -4255,13 +4255,31 @@ export declare const adminRouter: Elysia<"/admin", {
4255
4255
  "reward-plans": {
4256
4256
  patch: {
4257
4257
  body: {
4258
- name?: string | undefined;
4259
- rewardAssetId?: string | undefined;
4258
+ checkInType?: "app" | "meeting" | undefined;
4259
+ dailyPayoutAccountTypeId?: string | undefined;
4260
4260
  dailyRewardAmount?: string | undefined;
4261
4261
  dailyRewardCategory?: string | undefined;
4262
- dailyPayoutAccountTypeId?: string | undefined;
4263
- checkInType?: "app" | "meeting" | undefined;
4264
4262
  isEnabled?: boolean | undefined;
4263
+ name?: string | undefined;
4264
+ rewardAssetId?: string | undefined;
4265
+ rules?: ({
4266
+ id: string;
4267
+ isEnabled?: boolean | undefined;
4268
+ payoutAccountTypeId?: string | undefined;
4269
+ rewardAmount?: string | undefined;
4270
+ rewardCategory?: string | undefined;
4271
+ ruleType?: "consecutive" | "cumulative" | undefined;
4272
+ sortOrder?: number | undefined;
4273
+ thresholdDays?: number | undefined;
4274
+ } | {
4275
+ isEnabled?: boolean | undefined;
4276
+ payoutAccountTypeId: string;
4277
+ rewardAmount: string;
4278
+ rewardCategory?: string | undefined;
4279
+ ruleType: "consecutive" | "cumulative";
4280
+ sortOrder?: number | undefined;
4281
+ thresholdDays: number;
4282
+ })[] | undefined;
4265
4283
  sortOrder?: number | undefined;
4266
4284
  };
4267
4285
  params: {};
@@ -5004,7 +5022,7 @@ export declare const adminRouter: Elysia<"/admin", {
5004
5022
  query: {
5005
5023
  accountId?: string | undefined;
5006
5024
  assetId?: string | undefined;
5007
- 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;
5025
+ 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;
5008
5026
  changeDirection?: "decrease" | "increase" | undefined;
5009
5027
  endDate?: Date | undefined;
5010
5028
  limit?: number | undefined;
@@ -5013,7 +5031,7 @@ export declare const adminRouter: Elysia<"/admin", {
5013
5031
  pageIndex?: number | undefined;
5014
5032
  pageSize?: number | undefined;
5015
5033
  referenceId?: string | undefined;
5016
- 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;
5034
+ 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;
5017
5035
  startDate?: Date | undefined;
5018
5036
  userId?: string | undefined;
5019
5037
  };
@@ -5032,7 +5050,7 @@ export declare const adminRouter: Elysia<"/admin", {
5032
5050
  isActive: boolean;
5033
5051
  };
5034
5052
  assetId: string;
5035
- 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";
5053
+ 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";
5036
5054
  createdAt: Date;
5037
5055
  fromAccount?: {
5038
5056
  asset: {
@@ -5084,7 +5102,7 @@ export declare const adminRouter: Elysia<"/admin", {
5084
5102
  } | undefined;
5085
5103
  operatorId: string | null;
5086
5104
  referenceId: string;
5087
- 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";
5105
+ 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";
5088
5106
  toAccount?: {
5089
5107
  asset: {
5090
5108
  id: string;
@@ -6913,6 +6931,699 @@ export declare const adminRouter: Elysia<"/admin", {
6913
6931
  } & {
6914
6932
  admin: {
6915
6933
  team: {};
6934
+ } & {
6935
+ team: {
6936
+ "milestone-reward-plans": {};
6937
+ } & {
6938
+ "milestone-reward-plans": {
6939
+ get: {
6940
+ body: {};
6941
+ params: {};
6942
+ query: {};
6943
+ headers: {};
6944
+ response: {
6945
+ 200: {
6946
+ createdAt: Date;
6947
+ createdBy: string;
6948
+ creator: {
6949
+ id: string;
6950
+ name: string;
6951
+ email: string;
6952
+ } | null;
6953
+ id: string;
6954
+ isEnabled: boolean;
6955
+ maxDepth: number;
6956
+ name: string;
6957
+ platformAsset: {
6958
+ id: string;
6959
+ code: string;
6960
+ name: string;
6961
+ symbol: string | null;
6962
+ precision: number;
6963
+ isActive: boolean;
6964
+ };
6965
+ platformAssetId: string;
6966
+ platformPayoutAccountType: {
6967
+ id: string;
6968
+ key: string;
6969
+ name: string;
6970
+ isActive: boolean;
6971
+ };
6972
+ platformPayoutAccountTypeId: string;
6973
+ rules: {
6974
+ createdAt: Date;
6975
+ createdBy: string;
6976
+ creator: {
6977
+ id: string;
6978
+ name: string;
6979
+ email: string;
6980
+ } | null;
6981
+ id: string;
6982
+ isEnabled: boolean;
6983
+ planId: string;
6984
+ platformRewardAmount: string;
6985
+ rewardDescription: string | null;
6986
+ sortOrder: number;
6987
+ thresholdMemberCount: number;
6988
+ updatedAt: Date;
6989
+ updatedBy: string | null;
6990
+ updater: {
6991
+ id: string;
6992
+ name: string;
6993
+ email: string;
6994
+ } | null;
6995
+ valueAddedRewardAmount: string;
6996
+ }[];
6997
+ sortOrder: number;
6998
+ updatedAt: Date;
6999
+ updatedBy: string | null;
7000
+ updater: {
7001
+ id: string;
7002
+ name: string;
7003
+ email: string;
7004
+ } | null;
7005
+ valueAddedAsset: {
7006
+ id: string;
7007
+ code: string;
7008
+ name: string;
7009
+ symbol: string | null;
7010
+ precision: number;
7011
+ isActive: boolean;
7012
+ };
7013
+ valueAddedAssetId: string;
7014
+ valueAddedPayoutAccountType: {
7015
+ id: string;
7016
+ key: string;
7017
+ name: string;
7018
+ isActive: boolean;
7019
+ };
7020
+ valueAddedPayoutAccountTypeId: string;
7021
+ } | null;
7022
+ 401: "Unauthorized";
7023
+ 403: "Forbidden: Admins only";
7024
+ 422: {
7025
+ type: 'validation';
7026
+ on: string;
7027
+ summary?: string;
7028
+ message?: string;
7029
+ found?: unknown;
7030
+ property?: string;
7031
+ expected?: string;
7032
+ };
7033
+ };
7034
+ };
7035
+ };
7036
+ } & {
7037
+ "milestone-reward-plans": {
7038
+ post: {
7039
+ body: {
7040
+ name: string;
7041
+ platformAssetId: string;
7042
+ platformPayoutAccountTypeId: string;
7043
+ valueAddedAssetId: string;
7044
+ valueAddedPayoutAccountTypeId: string;
7045
+ maxDepth?: number | undefined;
7046
+ isEnabled?: boolean | undefined;
7047
+ sortOrder?: number | undefined;
7048
+ rules?: {
7049
+ thresholdMemberCount: number;
7050
+ platformRewardAmount: string;
7051
+ valueAddedRewardAmount: string;
7052
+ rewardDescription?: string | null | undefined;
7053
+ isEnabled?: boolean | undefined;
7054
+ sortOrder?: number | undefined;
7055
+ }[] | undefined;
7056
+ };
7057
+ params: {};
7058
+ query: {};
7059
+ headers: {};
7060
+ response: {
7061
+ 200: {
7062
+ createdAt: Date;
7063
+ createdBy: string;
7064
+ creator: {
7065
+ id: string;
7066
+ name: string;
7067
+ email: string;
7068
+ } | null;
7069
+ id: string;
7070
+ isEnabled: boolean;
7071
+ maxDepth: number;
7072
+ name: string;
7073
+ platformAsset: {
7074
+ id: string;
7075
+ code: string;
7076
+ name: string;
7077
+ symbol: string | null;
7078
+ precision: number;
7079
+ isActive: boolean;
7080
+ };
7081
+ platformAssetId: string;
7082
+ platformPayoutAccountType: {
7083
+ id: string;
7084
+ key: string;
7085
+ name: string;
7086
+ isActive: boolean;
7087
+ };
7088
+ platformPayoutAccountTypeId: string;
7089
+ rules: {
7090
+ createdAt: Date;
7091
+ createdBy: string;
7092
+ creator: {
7093
+ id: string;
7094
+ name: string;
7095
+ email: string;
7096
+ } | null;
7097
+ id: string;
7098
+ isEnabled: boolean;
7099
+ planId: string;
7100
+ platformRewardAmount: string;
7101
+ rewardDescription: string | null;
7102
+ sortOrder: number;
7103
+ thresholdMemberCount: number;
7104
+ updatedAt: Date;
7105
+ updatedBy: string | null;
7106
+ updater: {
7107
+ id: string;
7108
+ name: string;
7109
+ email: string;
7110
+ } | null;
7111
+ valueAddedRewardAmount: string;
7112
+ }[];
7113
+ sortOrder: number;
7114
+ updatedAt: Date;
7115
+ updatedBy: string | null;
7116
+ updater: {
7117
+ id: string;
7118
+ name: string;
7119
+ email: string;
7120
+ } | null;
7121
+ valueAddedAsset: {
7122
+ id: string;
7123
+ code: string;
7124
+ name: string;
7125
+ symbol: string | null;
7126
+ precision: number;
7127
+ isActive: boolean;
7128
+ };
7129
+ valueAddedAssetId: string;
7130
+ valueAddedPayoutAccountType: {
7131
+ id: string;
7132
+ key: string;
7133
+ name: string;
7134
+ isActive: boolean;
7135
+ };
7136
+ valueAddedPayoutAccountTypeId: string;
7137
+ };
7138
+ 401: "Unauthorized";
7139
+ 403: "Forbidden: Admins only";
7140
+ 422: {
7141
+ type: 'validation';
7142
+ on: string;
7143
+ summary?: string;
7144
+ message?: string;
7145
+ found?: unknown;
7146
+ property?: string;
7147
+ expected?: string;
7148
+ };
7149
+ };
7150
+ };
7151
+ };
7152
+ } & {
7153
+ "milestone-reward-plans": {
7154
+ patch: {
7155
+ body: {
7156
+ name?: string | undefined;
7157
+ platformAssetId?: string | undefined;
7158
+ platformPayoutAccountTypeId?: string | undefined;
7159
+ valueAddedAssetId?: string | undefined;
7160
+ valueAddedPayoutAccountTypeId?: string | undefined;
7161
+ maxDepth?: number | undefined;
7162
+ isEnabled?: boolean | undefined;
7163
+ sortOrder?: number | undefined;
7164
+ rules?: ({
7165
+ id: string;
7166
+ isEnabled?: boolean | undefined;
7167
+ platformRewardAmount?: string | undefined;
7168
+ rewardDescription?: string | null | undefined;
7169
+ sortOrder?: number | undefined;
7170
+ thresholdMemberCount?: number | undefined;
7171
+ valueAddedRewardAmount?: string | undefined;
7172
+ } | {
7173
+ thresholdMemberCount: number;
7174
+ platformRewardAmount: string;
7175
+ valueAddedRewardAmount: string;
7176
+ rewardDescription?: string | null | undefined;
7177
+ isEnabled?: boolean | undefined;
7178
+ sortOrder?: number | undefined;
7179
+ })[] | undefined;
7180
+ };
7181
+ params: {};
7182
+ query: {};
7183
+ headers: {};
7184
+ response: {
7185
+ 200: {
7186
+ createdAt: Date;
7187
+ createdBy: string;
7188
+ creator: {
7189
+ id: string;
7190
+ name: string;
7191
+ email: string;
7192
+ } | null;
7193
+ id: string;
7194
+ isEnabled: boolean;
7195
+ maxDepth: number;
7196
+ name: string;
7197
+ platformAsset: {
7198
+ id: string;
7199
+ code: string;
7200
+ name: string;
7201
+ symbol: string | null;
7202
+ precision: number;
7203
+ isActive: boolean;
7204
+ };
7205
+ platformAssetId: string;
7206
+ platformPayoutAccountType: {
7207
+ id: string;
7208
+ key: string;
7209
+ name: string;
7210
+ isActive: boolean;
7211
+ };
7212
+ platformPayoutAccountTypeId: string;
7213
+ rules: {
7214
+ createdAt: Date;
7215
+ createdBy: string;
7216
+ creator: {
7217
+ id: string;
7218
+ name: string;
7219
+ email: string;
7220
+ } | null;
7221
+ id: string;
7222
+ isEnabled: boolean;
7223
+ planId: string;
7224
+ platformRewardAmount: string;
7225
+ rewardDescription: string | null;
7226
+ sortOrder: number;
7227
+ thresholdMemberCount: number;
7228
+ updatedAt: Date;
7229
+ updatedBy: string | null;
7230
+ updater: {
7231
+ id: string;
7232
+ name: string;
7233
+ email: string;
7234
+ } | null;
7235
+ valueAddedRewardAmount: string;
7236
+ }[];
7237
+ sortOrder: number;
7238
+ updatedAt: Date;
7239
+ updatedBy: string | null;
7240
+ updater: {
7241
+ id: string;
7242
+ name: string;
7243
+ email: string;
7244
+ } | null;
7245
+ valueAddedAsset: {
7246
+ id: string;
7247
+ code: string;
7248
+ name: string;
7249
+ symbol: string | null;
7250
+ precision: number;
7251
+ isActive: boolean;
7252
+ };
7253
+ valueAddedAssetId: string;
7254
+ valueAddedPayoutAccountType: {
7255
+ id: string;
7256
+ key: string;
7257
+ name: string;
7258
+ isActive: boolean;
7259
+ };
7260
+ valueAddedPayoutAccountTypeId: string;
7261
+ };
7262
+ 401: "Unauthorized";
7263
+ 403: "Forbidden: Admins only";
7264
+ 422: {
7265
+ type: 'validation';
7266
+ on: string;
7267
+ summary?: string;
7268
+ message?: string;
7269
+ found?: unknown;
7270
+ property?: string;
7271
+ expected?: string;
7272
+ };
7273
+ };
7274
+ };
7275
+ };
7276
+ } & {
7277
+ "milestone-reward-plans": {
7278
+ delete: {
7279
+ body: {};
7280
+ params: {};
7281
+ query: {};
7282
+ headers: {};
7283
+ response: {
7284
+ 200: {
7285
+ success: boolean;
7286
+ };
7287
+ 401: "Unauthorized";
7288
+ 403: "Forbidden: Admins only";
7289
+ 422: {
7290
+ type: 'validation';
7291
+ on: string;
7292
+ summary?: string;
7293
+ message?: string;
7294
+ found?: unknown;
7295
+ property?: string;
7296
+ expected?: string;
7297
+ };
7298
+ };
7299
+ };
7300
+ };
7301
+ } & {
7302
+ "milestone-reward-plans": {
7303
+ rules: {
7304
+ post: {
7305
+ body: {
7306
+ thresholdMemberCount: number;
7307
+ platformRewardAmount: string;
7308
+ valueAddedRewardAmount: string;
7309
+ rewardDescription?: string | null | undefined;
7310
+ isEnabled?: boolean | undefined;
7311
+ sortOrder?: number | undefined;
7312
+ };
7313
+ params: {};
7314
+ query: {};
7315
+ headers: {};
7316
+ response: {
7317
+ 200: {
7318
+ createdAt: Date;
7319
+ createdBy: string;
7320
+ creator: {
7321
+ id: string;
7322
+ name: string;
7323
+ email: string;
7324
+ } | null;
7325
+ id: string;
7326
+ isEnabled: boolean;
7327
+ maxDepth: number;
7328
+ name: string;
7329
+ platformAsset: {
7330
+ id: string;
7331
+ code: string;
7332
+ name: string;
7333
+ symbol: string | null;
7334
+ precision: number;
7335
+ isActive: boolean;
7336
+ };
7337
+ platformAssetId: string;
7338
+ platformPayoutAccountType: {
7339
+ id: string;
7340
+ key: string;
7341
+ name: string;
7342
+ isActive: boolean;
7343
+ };
7344
+ platformPayoutAccountTypeId: string;
7345
+ rules: {
7346
+ createdAt: Date;
7347
+ createdBy: string;
7348
+ creator: {
7349
+ id: string;
7350
+ name: string;
7351
+ email: string;
7352
+ } | null;
7353
+ id: string;
7354
+ isEnabled: boolean;
7355
+ planId: string;
7356
+ platformRewardAmount: string;
7357
+ rewardDescription: string | null;
7358
+ sortOrder: number;
7359
+ thresholdMemberCount: number;
7360
+ updatedAt: Date;
7361
+ updatedBy: string | null;
7362
+ updater: {
7363
+ id: string;
7364
+ name: string;
7365
+ email: string;
7366
+ } | null;
7367
+ valueAddedRewardAmount: string;
7368
+ }[];
7369
+ sortOrder: number;
7370
+ updatedAt: Date;
7371
+ updatedBy: string | null;
7372
+ updater: {
7373
+ id: string;
7374
+ name: string;
7375
+ email: string;
7376
+ } | null;
7377
+ valueAddedAsset: {
7378
+ id: string;
7379
+ code: string;
7380
+ name: string;
7381
+ symbol: string | null;
7382
+ precision: number;
7383
+ isActive: boolean;
7384
+ };
7385
+ valueAddedAssetId: string;
7386
+ valueAddedPayoutAccountType: {
7387
+ id: string;
7388
+ key: string;
7389
+ name: string;
7390
+ isActive: boolean;
7391
+ };
7392
+ valueAddedPayoutAccountTypeId: string;
7393
+ };
7394
+ 401: "Unauthorized";
7395
+ 403: "Forbidden: Admins only";
7396
+ 422: {
7397
+ type: 'validation';
7398
+ on: string;
7399
+ summary?: string;
7400
+ message?: string;
7401
+ found?: unknown;
7402
+ property?: string;
7403
+ expected?: string;
7404
+ };
7405
+ };
7406
+ };
7407
+ };
7408
+ };
7409
+ } & {
7410
+ "milestone-reward-plans": {
7411
+ rules: {
7412
+ ":ruleId": {
7413
+ patch: {
7414
+ body: {
7415
+ thresholdMemberCount?: number | undefined;
7416
+ platformRewardAmount?: string | undefined;
7417
+ valueAddedRewardAmount?: string | undefined;
7418
+ rewardDescription?: string | null | undefined;
7419
+ isEnabled?: boolean | undefined;
7420
+ sortOrder?: number | undefined;
7421
+ };
7422
+ params: {
7423
+ ruleId: string;
7424
+ };
7425
+ query: {};
7426
+ headers: {};
7427
+ response: {
7428
+ 200: {
7429
+ createdAt: Date;
7430
+ createdBy: string;
7431
+ creator: {
7432
+ id: string;
7433
+ name: string;
7434
+ email: string;
7435
+ } | null;
7436
+ id: string;
7437
+ isEnabled: boolean;
7438
+ maxDepth: number;
7439
+ name: string;
7440
+ platformAsset: {
7441
+ id: string;
7442
+ code: string;
7443
+ name: string;
7444
+ symbol: string | null;
7445
+ precision: number;
7446
+ isActive: boolean;
7447
+ };
7448
+ platformAssetId: string;
7449
+ platformPayoutAccountType: {
7450
+ id: string;
7451
+ key: string;
7452
+ name: string;
7453
+ isActive: boolean;
7454
+ };
7455
+ platformPayoutAccountTypeId: string;
7456
+ rules: {
7457
+ createdAt: Date;
7458
+ createdBy: string;
7459
+ creator: {
7460
+ id: string;
7461
+ name: string;
7462
+ email: string;
7463
+ } | null;
7464
+ id: string;
7465
+ isEnabled: boolean;
7466
+ planId: string;
7467
+ platformRewardAmount: string;
7468
+ rewardDescription: string | null;
7469
+ sortOrder: number;
7470
+ thresholdMemberCount: number;
7471
+ updatedAt: Date;
7472
+ updatedBy: string | null;
7473
+ updater: {
7474
+ id: string;
7475
+ name: string;
7476
+ email: string;
7477
+ } | null;
7478
+ valueAddedRewardAmount: string;
7479
+ }[];
7480
+ sortOrder: number;
7481
+ updatedAt: Date;
7482
+ updatedBy: string | null;
7483
+ updater: {
7484
+ id: string;
7485
+ name: string;
7486
+ email: string;
7487
+ } | null;
7488
+ valueAddedAsset: {
7489
+ id: string;
7490
+ code: string;
7491
+ name: string;
7492
+ symbol: string | null;
7493
+ precision: number;
7494
+ isActive: boolean;
7495
+ };
7496
+ valueAddedAssetId: string;
7497
+ valueAddedPayoutAccountType: {
7498
+ id: string;
7499
+ key: string;
7500
+ name: string;
7501
+ isActive: boolean;
7502
+ };
7503
+ valueAddedPayoutAccountTypeId: string;
7504
+ };
7505
+ 401: "Unauthorized";
7506
+ 403: "Forbidden: Admins only";
7507
+ 422: {
7508
+ type: 'validation';
7509
+ on: string;
7510
+ summary?: string;
7511
+ message?: string;
7512
+ found?: unknown;
7513
+ property?: string;
7514
+ expected?: string;
7515
+ };
7516
+ };
7517
+ };
7518
+ };
7519
+ };
7520
+ };
7521
+ } & {
7522
+ "milestone-reward-plans": {
7523
+ rules: {
7524
+ ":ruleId": {
7525
+ delete: {
7526
+ body: {};
7527
+ params: {
7528
+ ruleId: string;
7529
+ };
7530
+ query: {};
7531
+ headers: {};
7532
+ response: {
7533
+ 200: {
7534
+ createdAt: Date;
7535
+ createdBy: string;
7536
+ creator: {
7537
+ id: string;
7538
+ name: string;
7539
+ email: string;
7540
+ } | null;
7541
+ id: string;
7542
+ isEnabled: boolean;
7543
+ maxDepth: number;
7544
+ name: string;
7545
+ platformAsset: {
7546
+ id: string;
7547
+ code: string;
7548
+ name: string;
7549
+ symbol: string | null;
7550
+ precision: number;
7551
+ isActive: boolean;
7552
+ };
7553
+ platformAssetId: string;
7554
+ platformPayoutAccountType: {
7555
+ id: string;
7556
+ key: string;
7557
+ name: string;
7558
+ isActive: boolean;
7559
+ };
7560
+ platformPayoutAccountTypeId: string;
7561
+ rules: {
7562
+ createdAt: Date;
7563
+ createdBy: string;
7564
+ creator: {
7565
+ id: string;
7566
+ name: string;
7567
+ email: string;
7568
+ } | null;
7569
+ id: string;
7570
+ isEnabled: boolean;
7571
+ planId: string;
7572
+ platformRewardAmount: string;
7573
+ rewardDescription: string | null;
7574
+ sortOrder: number;
7575
+ thresholdMemberCount: number;
7576
+ updatedAt: Date;
7577
+ updatedBy: string | null;
7578
+ updater: {
7579
+ id: string;
7580
+ name: string;
7581
+ email: string;
7582
+ } | null;
7583
+ valueAddedRewardAmount: string;
7584
+ }[];
7585
+ sortOrder: number;
7586
+ updatedAt: Date;
7587
+ updatedBy: string | null;
7588
+ updater: {
7589
+ id: string;
7590
+ name: string;
7591
+ email: string;
7592
+ } | null;
7593
+ valueAddedAsset: {
7594
+ id: string;
7595
+ code: string;
7596
+ name: string;
7597
+ symbol: string | null;
7598
+ precision: number;
7599
+ isActive: boolean;
7600
+ };
7601
+ valueAddedAssetId: string;
7602
+ valueAddedPayoutAccountType: {
7603
+ id: string;
7604
+ key: string;
7605
+ name: string;
7606
+ isActive: boolean;
7607
+ };
7608
+ valueAddedPayoutAccountTypeId: string;
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
+ };
7626
+ };
6916
7627
  } & {
6917
7628
  team: {
6918
7629
  summary: {