@r2wa-org/eden 0.0.100 → 0.0.102

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 (35) hide show
  1. package/dist/admin/index.d.ts +282 -365
  2. package/dist/asset-convert-product/admin/dto.schemas.d.ts +12 -0
  3. package/dist/asset-convert-product/admin/router.d.ts +13 -25
  4. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  5. package/dist/auth/better-auth.d.ts +6 -6
  6. package/dist/auth/permissions.d.ts +5 -5
  7. package/dist/auth/roles.d.ts +15 -15
  8. package/dist/check-in/admin/reward.dto.schemas.d.ts +113 -86
  9. package/dist/check-in/admin/reward.router.d.ts +266 -349
  10. package/dist/check-in/admin/reward.service.d.ts +11 -57
  11. package/dist/check-in/admin/router.d.ts +266 -349
  12. package/dist/check-in/constants.d.ts +2 -0
  13. package/dist/check-in/errors/index.d.ts +1 -0
  14. package/dist/check-in/errors/locales/zh.d.ts +1 -0
  15. package/dist/check-in/index.d.ts +2 -0
  16. package/dist/check-in/internal/reward-config.service.d.ts +31 -0
  17. package/dist/check-in/internal/reward.service.d.ts +31 -0
  18. package/dist/check-in/permissions.d.ts +1 -1
  19. package/dist/check-in/user/dto.schemas.d.ts +3 -22
  20. package/dist/check-in/user/router.d.ts +3 -10
  21. package/dist/check-in/user/service.d.ts +3 -4
  22. package/dist/content-video/user/router.d.ts +1 -13
  23. package/dist/file-storage/user/router.d.ts +13 -1
  24. package/dist/index.d.ts +287 -377
  25. package/dist/ledger/admin/dto.schemas.d.ts +12 -0
  26. package/dist/ledger/admin/router.d.ts +4 -4
  27. package/dist/ledger/db.schemas.d.ts +8 -8
  28. package/dist/ledger/schema.d.ts +6 -6
  29. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  30. package/dist/ledger/user/router.d.ts +2 -2
  31. package/dist/ledger/user/service.d.ts +2 -2
  32. package/dist/referral/admin/router.d.ts +1 -13
  33. package/dist/team/user/router.d.ts +13 -1
  34. package/dist/welfare-cycle/admin/router.d.ts +13 -1
  35. 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;
@@ -4051,26 +4051,8 @@ export declare const adminRouter: Elysia<"/admin", {
4051
4051
  "reward-plans": {};
4052
4052
  } & {
4053
4053
  "reward-plans": {
4054
- post: {
4055
- body: {
4056
- checkInType?: "app" | "meeting" | undefined;
4057
- dailyPayoutAccountTypeId: string;
4058
- dailyRewardAmount: string;
4059
- dailyRewardCategory?: string | undefined;
4060
- isEnabled?: boolean | undefined;
4061
- name: string;
4062
- rewardAssetId: string;
4063
- rules?: {
4064
- ruleType: "consecutive" | "cumulative";
4065
- thresholdDays: number;
4066
- rewardAmount: string;
4067
- rewardCategory?: string | undefined;
4068
- payoutAccountTypeId: string;
4069
- isEnabled?: boolean | undefined;
4070
- sortOrder?: number | undefined;
4071
- }[] | undefined;
4072
- sortOrder?: number | undefined;
4073
- };
4054
+ get: {
4055
+ body: {};
4074
4056
  params: {};
4075
4057
  query: {};
4076
4058
  headers: {};
@@ -4144,7 +4126,7 @@ export declare const adminRouter: Elysia<"/admin", {
4144
4126
  name: string;
4145
4127
  email: string;
4146
4128
  } | null;
4147
- };
4129
+ } | null;
4148
4130
  401: "Unauthorized";
4149
4131
  403: "Forbidden: Admins only";
4150
4132
  422: {
@@ -4161,23 +4143,61 @@ export declare const adminRouter: Elysia<"/admin", {
4161
4143
  };
4162
4144
  } & {
4163
4145
  "reward-plans": {
4164
- get: {
4165
- body: {};
4166
- params: {};
4167
- query: {
4146
+ post: {
4147
+ body: {
4168
4148
  checkInType?: "app" | "meeting" | undefined;
4149
+ dailyPayoutAccountTypeId: string;
4150
+ dailyRewardAmount: string;
4151
+ dailyRewardCategory?: string | undefined;
4169
4152
  isEnabled?: boolean | undefined;
4170
- keyword?: string | undefined;
4171
- limit?: number | undefined;
4172
- offset?: number | undefined;
4173
- pageIndex?: number | undefined;
4174
- pageSize?: number | undefined;
4153
+ name: string;
4154
+ rewardAssetId: string;
4155
+ rules?: {
4156
+ isEnabled?: boolean | undefined;
4157
+ payoutAccountTypeId: string;
4158
+ rewardAmount: string;
4159
+ rewardCategory?: string | undefined;
4160
+ ruleType: "consecutive" | "cumulative";
4161
+ sortOrder?: number | undefined;
4162
+ thresholdDays: number;
4163
+ }[] | undefined;
4164
+ sortOrder?: number | undefined;
4175
4165
  };
4166
+ params: {};
4167
+ query: {};
4176
4168
  headers: {};
4177
4169
  response: {
4178
4170
  200: {
4179
- data: {
4180
- checkInType: "app" | "meeting";
4171
+ checkInType: "app" | "meeting";
4172
+ createdAt: Date;
4173
+ createdBy: string;
4174
+ creator: {
4175
+ id: string;
4176
+ name: string;
4177
+ email: string;
4178
+ } | null;
4179
+ dailyPayoutAccountType: {
4180
+ id: string;
4181
+ key: string;
4182
+ name: string;
4183
+ isActive: boolean;
4184
+ };
4185
+ dailyPayoutAccountTypeId: string;
4186
+ dailyRewardAmount: string;
4187
+ dailyRewardCategory: string;
4188
+ id: string;
4189
+ isEnabled: boolean;
4190
+ name: string;
4191
+ rewardAsset: {
4192
+ id: string;
4193
+ code: string;
4194
+ name: string;
4195
+ symbol: string | null;
4196
+ precision: number;
4197
+ isActive: boolean;
4198
+ };
4199
+ rewardAssetId: string;
4200
+ rules: {
4181
4201
  createdAt: Date;
4182
4202
  createdBy: string;
4183
4203
  creator: {
@@ -4185,29 +4205,21 @@ export declare const adminRouter: Elysia<"/admin", {
4185
4205
  name: string;
4186
4206
  email: string;
4187
4207
  } | null;
4188
- dailyPayoutAccountType: {
4189
- id: string;
4190
- key: string;
4191
- name: string;
4192
- isActive: boolean;
4193
- };
4194
- dailyPayoutAccountTypeId: string;
4195
- dailyRewardAmount: string;
4196
- dailyRewardCategory: string;
4197
4208
  id: string;
4198
4209
  isEnabled: boolean;
4199
- name: string;
4200
- rewardAsset: {
4210
+ payoutAccountType: {
4201
4211
  id: string;
4202
- code: string;
4212
+ key: string;
4203
4213
  name: string;
4204
- symbol: string | null;
4205
- precision: number;
4206
4214
  isActive: boolean;
4207
4215
  };
4208
- rewardAssetId: string;
4209
- ruleCount: number;
4216
+ payoutAccountTypeId: string;
4217
+ planId: string;
4218
+ rewardAmount: string;
4219
+ rewardCategory: string;
4220
+ ruleType: "consecutive" | "cumulative";
4210
4221
  sortOrder: number;
4222
+ thresholdDays: number;
4211
4223
  updatedAt: Date;
4212
4224
  updatedBy: string | null;
4213
4225
  updater: {
@@ -4216,13 +4228,14 @@ export declare const adminRouter: Elysia<"/admin", {
4216
4228
  email: string;
4217
4229
  } | null;
4218
4230
  }[];
4219
- pagination: {
4220
- pageSize: number;
4221
- pageIndex: number;
4222
- total: number;
4223
- totalPages: number;
4224
- hasNextPage: boolean;
4225
- };
4231
+ sortOrder: number;
4232
+ updatedAt: Date;
4233
+ updatedBy: string | null;
4234
+ updater: {
4235
+ id: string;
4236
+ name: string;
4237
+ email: string;
4238
+ } | null;
4226
4239
  };
4227
4240
  401: "Unauthorized";
4228
4241
  403: "Forbidden: Admins only";
@@ -4240,17 +4253,70 @@ export declare const adminRouter: Elysia<"/admin", {
4240
4253
  };
4241
4254
  } & {
4242
4255
  "reward-plans": {
4243
- ":id": {
4244
- get: {
4245
- body: {};
4246
- params: {
4256
+ patch: {
4257
+ body: {
4258
+ checkInType?: "app" | "meeting" | undefined;
4259
+ dailyPayoutAccountTypeId?: string | undefined;
4260
+ dailyRewardAmount?: string | undefined;
4261
+ dailyRewardCategory?: string | undefined;
4262
+ isEnabled?: boolean | undefined;
4263
+ name?: string | undefined;
4264
+ rewardAssetId?: string | undefined;
4265
+ rules?: ({
4247
4266
  id: string;
4248
- };
4249
- query: {};
4250
- headers: {};
4251
- response: {
4252
- 200: {
4253
- checkInType: "app" | "meeting";
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;
4283
+ sortOrder?: number | undefined;
4284
+ };
4285
+ params: {};
4286
+ query: {};
4287
+ headers: {};
4288
+ response: {
4289
+ 200: {
4290
+ checkInType: "app" | "meeting";
4291
+ createdAt: Date;
4292
+ createdBy: string;
4293
+ creator: {
4294
+ id: string;
4295
+ name: string;
4296
+ email: string;
4297
+ } | null;
4298
+ dailyPayoutAccountType: {
4299
+ id: string;
4300
+ key: string;
4301
+ name: string;
4302
+ isActive: boolean;
4303
+ };
4304
+ dailyPayoutAccountTypeId: string;
4305
+ dailyRewardAmount: string;
4306
+ dailyRewardCategory: string;
4307
+ id: string;
4308
+ isEnabled: boolean;
4309
+ name: string;
4310
+ rewardAsset: {
4311
+ id: string;
4312
+ code: string;
4313
+ name: string;
4314
+ symbol: string | null;
4315
+ precision: number;
4316
+ isActive: boolean;
4317
+ };
4318
+ rewardAssetId: string;
4319
+ rules: {
4254
4320
  createdAt: Date;
4255
4321
  createdBy: string;
4256
4322
  creator: {
@@ -4258,59 +4324,21 @@ export declare const adminRouter: Elysia<"/admin", {
4258
4324
  name: string;
4259
4325
  email: string;
4260
4326
  } | null;
4261
- dailyPayoutAccountType: {
4262
- id: string;
4263
- key: string;
4264
- name: string;
4265
- isActive: boolean;
4266
- };
4267
- dailyPayoutAccountTypeId: string;
4268
- dailyRewardAmount: string;
4269
- dailyRewardCategory: string;
4270
4327
  id: string;
4271
4328
  isEnabled: boolean;
4272
- name: string;
4273
- rewardAsset: {
4329
+ payoutAccountType: {
4274
4330
  id: string;
4275
- code: string;
4331
+ key: string;
4276
4332
  name: string;
4277
- symbol: string | null;
4278
- precision: number;
4279
4333
  isActive: boolean;
4280
4334
  };
4281
- rewardAssetId: string;
4282
- rules: {
4283
- createdAt: Date;
4284
- createdBy: string;
4285
- creator: {
4286
- id: string;
4287
- name: string;
4288
- email: string;
4289
- } | null;
4290
- id: string;
4291
- isEnabled: boolean;
4292
- payoutAccountType: {
4293
- id: string;
4294
- key: string;
4295
- name: string;
4296
- isActive: boolean;
4297
- };
4298
- payoutAccountTypeId: string;
4299
- planId: string;
4300
- rewardAmount: string;
4301
- rewardCategory: string;
4302
- ruleType: "consecutive" | "cumulative";
4303
- sortOrder: number;
4304
- thresholdDays: number;
4305
- updatedAt: Date;
4306
- updatedBy: string | null;
4307
- updater: {
4308
- id: string;
4309
- name: string;
4310
- email: string;
4311
- } | null;
4312
- }[];
4335
+ payoutAccountTypeId: string;
4336
+ planId: string;
4337
+ rewardAmount: string;
4338
+ rewardCategory: string;
4339
+ ruleType: "consecutive" | "cumulative";
4313
4340
  sortOrder: number;
4341
+ thresholdDays: number;
4314
4342
  updatedAt: Date;
4315
4343
  updatedBy: string | null;
4316
4344
  updater: {
@@ -4318,39 +4346,69 @@ export declare const adminRouter: Elysia<"/admin", {
4318
4346
  name: string;
4319
4347
  email: string;
4320
4348
  } | null;
4321
- };
4322
- 401: "Unauthorized";
4323
- 403: "Forbidden: Admins only";
4324
- 422: {
4325
- type: 'validation';
4326
- on: string;
4327
- summary?: string;
4328
- message?: string;
4329
- found?: unknown;
4330
- property?: string;
4331
- expected?: string;
4332
- };
4349
+ }[];
4350
+ sortOrder: number;
4351
+ updatedAt: Date;
4352
+ updatedBy: string | null;
4353
+ updater: {
4354
+ id: string;
4355
+ name: string;
4356
+ email: string;
4357
+ } | null;
4358
+ };
4359
+ 401: "Unauthorized";
4360
+ 403: "Forbidden: Admins only";
4361
+ 422: {
4362
+ type: 'validation';
4363
+ on: string;
4364
+ summary?: string;
4365
+ message?: string;
4366
+ found?: unknown;
4367
+ property?: string;
4368
+ expected?: string;
4333
4369
  };
4334
4370
  };
4335
4371
  };
4336
4372
  };
4337
4373
  } & {
4338
4374
  "reward-plans": {
4339
- ":id": {
4340
- patch: {
4375
+ delete: {
4376
+ body: {};
4377
+ params: {};
4378
+ query: {};
4379
+ headers: {};
4380
+ response: {
4381
+ 200: {
4382
+ success: boolean;
4383
+ };
4384
+ 401: "Unauthorized";
4385
+ 403: "Forbidden: Admins only";
4386
+ 422: {
4387
+ type: 'validation';
4388
+ on: string;
4389
+ summary?: string;
4390
+ message?: string;
4391
+ found?: unknown;
4392
+ property?: string;
4393
+ expected?: string;
4394
+ };
4395
+ };
4396
+ };
4397
+ };
4398
+ } & {
4399
+ "reward-plans": {
4400
+ rules: {
4401
+ post: {
4341
4402
  body: {
4342
- name?: string | undefined;
4343
- rewardAssetId?: string | undefined;
4344
- dailyRewardAmount?: string | undefined;
4345
- dailyRewardCategory?: string | undefined;
4346
- dailyPayoutAccountTypeId?: string | undefined;
4347
- checkInType?: "app" | "meeting" | undefined;
4348
4403
  isEnabled?: boolean | undefined;
4404
+ payoutAccountTypeId: string;
4405
+ rewardAmount: string;
4406
+ rewardCategory?: string | undefined;
4407
+ ruleType: "consecutive" | "cumulative";
4349
4408
  sortOrder?: number | undefined;
4409
+ thresholdDays: number;
4350
4410
  };
4351
- params: {
4352
- id: string;
4353
- };
4411
+ params: {};
4354
4412
  query: {};
4355
4413
  headers: {};
4356
4414
  response: {
@@ -4441,49 +4499,20 @@ export declare const adminRouter: Elysia<"/admin", {
4441
4499
  };
4442
4500
  } & {
4443
4501
  "reward-plans": {
4444
- ":id": {
4445
- delete: {
4446
- body: {};
4447
- params: {
4448
- id: string;
4449
- };
4450
- query: {};
4451
- headers: {};
4452
- response: {
4453
- 200: {
4454
- success: boolean;
4455
- };
4456
- 401: "Unauthorized";
4457
- 403: "Forbidden: Admins only";
4458
- 422: {
4459
- type: 'validation';
4460
- on: string;
4461
- summary?: string;
4462
- message?: string;
4463
- found?: unknown;
4464
- property?: string;
4465
- expected?: string;
4466
- };
4467
- };
4468
- };
4469
- };
4470
- };
4471
- } & {
4472
- "reward-plans": {
4473
- ":id": {
4474
- rules: {
4475
- post: {
4502
+ rules: {
4503
+ ":ruleId": {
4504
+ patch: {
4476
4505
  body: {
4477
- ruleType: "consecutive" | "cumulative";
4478
- thresholdDays: number;
4479
- rewardAmount: string;
4480
- rewardCategory?: string | undefined;
4481
- payoutAccountTypeId: string;
4482
4506
  isEnabled?: boolean | undefined;
4507
+ payoutAccountTypeId?: string | undefined;
4508
+ rewardAmount?: string | undefined;
4509
+ rewardCategory?: string | undefined;
4510
+ ruleType?: "consecutive" | "cumulative" | undefined;
4483
4511
  sortOrder?: number | undefined;
4512
+ thresholdDays?: number | undefined;
4484
4513
  };
4485
4514
  params: {
4486
- id: string;
4515
+ ruleId: string;
4487
4516
  };
4488
4517
  query: {};
4489
4518
  headers: {};
@@ -4576,129 +4605,47 @@ export declare const adminRouter: Elysia<"/admin", {
4576
4605
  };
4577
4606
  } & {
4578
4607
  "reward-plans": {
4579
- ":id": {
4580
- rules: {
4581
- ":ruleId": {
4582
- patch: {
4583
- body: {
4584
- ruleType?: "consecutive" | "cumulative" | undefined;
4585
- thresholdDays?: number | undefined;
4586
- rewardAmount?: string | undefined;
4587
- rewardCategory?: string | undefined;
4588
- payoutAccountTypeId?: string | undefined;
4589
- isEnabled?: boolean | undefined;
4590
- sortOrder?: number | undefined;
4591
- };
4592
- params: {
4593
- id: string;
4594
- ruleId: string;
4595
- };
4596
- query: {};
4597
- headers: {};
4598
- response: {
4599
- 200: {
4600
- checkInType: "app" | "meeting";
4601
- createdAt: Date;
4602
- createdBy: string;
4603
- creator: {
4604
- id: string;
4605
- name: string;
4606
- email: string;
4607
- } | null;
4608
- dailyPayoutAccountType: {
4609
- id: string;
4610
- key: string;
4611
- name: string;
4612
- isActive: boolean;
4613
- };
4614
- dailyPayoutAccountTypeId: string;
4615
- dailyRewardAmount: string;
4616
- dailyRewardCategory: string;
4608
+ rules: {
4609
+ ":ruleId": {
4610
+ delete: {
4611
+ body: {};
4612
+ params: {
4613
+ ruleId: string;
4614
+ };
4615
+ query: {};
4616
+ headers: {};
4617
+ response: {
4618
+ 200: {
4619
+ checkInType: "app" | "meeting";
4620
+ createdAt: Date;
4621
+ createdBy: string;
4622
+ creator: {
4617
4623
  id: string;
4618
- isEnabled: boolean;
4619
4624
  name: string;
4620
- rewardAsset: {
4621
- id: string;
4622
- code: string;
4623
- name: string;
4624
- symbol: string | null;
4625
- precision: number;
4626
- isActive: boolean;
4627
- };
4628
- rewardAssetId: string;
4629
- rules: {
4630
- createdAt: Date;
4631
- createdBy: string;
4632
- creator: {
4633
- id: string;
4634
- name: string;
4635
- email: string;
4636
- } | null;
4637
- id: string;
4638
- isEnabled: boolean;
4639
- payoutAccountType: {
4640
- id: string;
4641
- key: string;
4642
- name: string;
4643
- isActive: boolean;
4644
- };
4645
- payoutAccountTypeId: string;
4646
- planId: string;
4647
- rewardAmount: string;
4648
- rewardCategory: string;
4649
- ruleType: "consecutive" | "cumulative";
4650
- sortOrder: number;
4651
- thresholdDays: number;
4652
- updatedAt: Date;
4653
- updatedBy: string | null;
4654
- updater: {
4655
- id: string;
4656
- name: string;
4657
- email: string;
4658
- } | null;
4659
- }[];
4660
- sortOrder: number;
4661
- updatedAt: Date;
4662
- updatedBy: string | null;
4663
- updater: {
4664
- id: string;
4665
- name: string;
4666
- email: string;
4667
- } | null;
4625
+ email: string;
4626
+ } | null;
4627
+ dailyPayoutAccountType: {
4628
+ id: string;
4629
+ key: string;
4630
+ name: string;
4631
+ isActive: boolean;
4668
4632
  };
4669
- 401: "Unauthorized";
4670
- 403: "Forbidden: Admins only";
4671
- 422: {
4672
- type: 'validation';
4673
- on: string;
4674
- summary?: string;
4675
- message?: string;
4676
- found?: unknown;
4677
- property?: string;
4678
- expected?: string;
4633
+ dailyPayoutAccountTypeId: string;
4634
+ dailyRewardAmount: string;
4635
+ dailyRewardCategory: string;
4636
+ id: string;
4637
+ isEnabled: boolean;
4638
+ name: string;
4639
+ rewardAsset: {
4640
+ id: string;
4641
+ code: string;
4642
+ name: string;
4643
+ symbol: string | null;
4644
+ precision: number;
4645
+ isActive: boolean;
4679
4646
  };
4680
- };
4681
- };
4682
- };
4683
- };
4684
- };
4685
- };
4686
- } & {
4687
- "reward-plans": {
4688
- ":id": {
4689
- rules: {
4690
- ":ruleId": {
4691
- delete: {
4692
- body: {};
4693
- params: {
4694
- id: string;
4695
- ruleId: string;
4696
- };
4697
- query: {};
4698
- headers: {};
4699
- response: {
4700
- 200: {
4701
- checkInType: "app" | "meeting";
4647
+ rewardAssetId: string;
4648
+ rules: {
4702
4649
  createdAt: Date;
4703
4650
  createdBy: string;
4704
4651
  creator: {
@@ -4706,59 +4653,21 @@ export declare const adminRouter: Elysia<"/admin", {
4706
4653
  name: string;
4707
4654
  email: string;
4708
4655
  } | null;
4709
- dailyPayoutAccountType: {
4710
- id: string;
4711
- key: string;
4712
- name: string;
4713
- isActive: boolean;
4714
- };
4715
- dailyPayoutAccountTypeId: string;
4716
- dailyRewardAmount: string;
4717
- dailyRewardCategory: string;
4718
4656
  id: string;
4719
4657
  isEnabled: boolean;
4720
- name: string;
4721
- rewardAsset: {
4658
+ payoutAccountType: {
4722
4659
  id: string;
4723
- code: string;
4660
+ key: string;
4724
4661
  name: string;
4725
- symbol: string | null;
4726
- precision: number;
4727
4662
  isActive: boolean;
4728
4663
  };
4729
- rewardAssetId: string;
4730
- rules: {
4731
- createdAt: Date;
4732
- createdBy: string;
4733
- creator: {
4734
- id: string;
4735
- name: string;
4736
- email: string;
4737
- } | null;
4738
- id: string;
4739
- isEnabled: boolean;
4740
- payoutAccountType: {
4741
- id: string;
4742
- key: string;
4743
- name: string;
4744
- isActive: boolean;
4745
- };
4746
- payoutAccountTypeId: string;
4747
- planId: string;
4748
- rewardAmount: string;
4749
- rewardCategory: string;
4750
- ruleType: "consecutive" | "cumulative";
4751
- sortOrder: number;
4752
- thresholdDays: number;
4753
- updatedAt: Date;
4754
- updatedBy: string | null;
4755
- updater: {
4756
- id: string;
4757
- name: string;
4758
- email: string;
4759
- } | null;
4760
- }[];
4664
+ payoutAccountTypeId: string;
4665
+ planId: string;
4666
+ rewardAmount: string;
4667
+ rewardCategory: string;
4668
+ ruleType: "consecutive" | "cumulative";
4761
4669
  sortOrder: number;
4670
+ thresholdDays: number;
4762
4671
  updatedAt: Date;
4763
4672
  updatedBy: string | null;
4764
4673
  updater: {
@@ -4766,18 +4675,26 @@ export declare const adminRouter: Elysia<"/admin", {
4766
4675
  name: string;
4767
4676
  email: string;
4768
4677
  } | null;
4769
- };
4770
- 401: "Unauthorized";
4771
- 403: "Forbidden: Admins only";
4772
- 422: {
4773
- type: 'validation';
4774
- on: string;
4775
- summary?: string;
4776
- message?: string;
4777
- found?: unknown;
4778
- property?: string;
4779
- expected?: string;
4780
- };
4678
+ }[];
4679
+ sortOrder: number;
4680
+ updatedAt: Date;
4681
+ updatedBy: string | null;
4682
+ updater: {
4683
+ id: string;
4684
+ name: string;
4685
+ email: string;
4686
+ } | null;
4687
+ };
4688
+ 401: "Unauthorized";
4689
+ 403: "Forbidden: Admins only";
4690
+ 422: {
4691
+ type: 'validation';
4692
+ on: string;
4693
+ summary?: string;
4694
+ message?: string;
4695
+ found?: unknown;
4696
+ property?: string;
4697
+ expected?: string;
4781
4698
  };
4782
4699
  };
4783
4700
  };
@@ -5105,7 +5022,7 @@ export declare const adminRouter: Elysia<"/admin", {
5105
5022
  query: {
5106
5023
  accountId?: string | undefined;
5107
5024
  assetId?: string | undefined;
5108
- 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;
5109
5026
  changeDirection?: "decrease" | "increase" | undefined;
5110
5027
  endDate?: Date | undefined;
5111
5028
  limit?: number | undefined;
@@ -5114,7 +5031,7 @@ export declare const adminRouter: Elysia<"/admin", {
5114
5031
  pageIndex?: number | undefined;
5115
5032
  pageSize?: number | undefined;
5116
5033
  referenceId?: string | undefined;
5117
- 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;
5118
5035
  startDate?: Date | undefined;
5119
5036
  userId?: string | undefined;
5120
5037
  };
@@ -5133,7 +5050,7 @@ export declare const adminRouter: Elysia<"/admin", {
5133
5050
  isActive: boolean;
5134
5051
  };
5135
5052
  assetId: string;
5136
- 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";
5137
5054
  createdAt: Date;
5138
5055
  fromAccount?: {
5139
5056
  asset: {
@@ -5185,7 +5102,7 @@ export declare const adminRouter: Elysia<"/admin", {
5185
5102
  } | undefined;
5186
5103
  operatorId: string | null;
5187
5104
  referenceId: string;
5188
- 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";
5189
5106
  toAccount?: {
5190
5107
  asset: {
5191
5108
  id: string;