@r2wa-org/eden 0.0.100 → 0.0.101

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.
@@ -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: {};
@@ -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,52 @@ 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
+ name?: string | undefined;
4259
+ rewardAssetId?: string | undefined;
4260
+ dailyRewardAmount?: string | undefined;
4261
+ dailyRewardCategory?: string | undefined;
4262
+ dailyPayoutAccountTypeId?: string | undefined;
4263
+ checkInType?: "app" | "meeting" | undefined;
4264
+ isEnabled?: boolean | undefined;
4265
+ sortOrder?: number | undefined;
4266
+ };
4267
+ params: {};
4268
+ query: {};
4269
+ headers: {};
4270
+ response: {
4271
+ 200: {
4272
+ checkInType: "app" | "meeting";
4273
+ createdAt: Date;
4274
+ createdBy: string;
4275
+ creator: {
4276
+ id: string;
4277
+ name: string;
4278
+ email: string;
4279
+ } | null;
4280
+ dailyPayoutAccountType: {
4281
+ id: string;
4282
+ key: string;
4283
+ name: string;
4284
+ isActive: boolean;
4285
+ };
4286
+ dailyPayoutAccountTypeId: string;
4287
+ dailyRewardAmount: string;
4288
+ dailyRewardCategory: string;
4247
4289
  id: string;
4248
- };
4249
- query: {};
4250
- headers: {};
4251
- response: {
4252
- 200: {
4253
- checkInType: "app" | "meeting";
4290
+ isEnabled: boolean;
4291
+ name: string;
4292
+ rewardAsset: {
4293
+ id: string;
4294
+ code: string;
4295
+ name: string;
4296
+ symbol: string | null;
4297
+ precision: number;
4298
+ isActive: boolean;
4299
+ };
4300
+ rewardAssetId: string;
4301
+ rules: {
4254
4302
  createdAt: Date;
4255
4303
  createdBy: string;
4256
4304
  creator: {
@@ -4258,59 +4306,21 @@ export declare const adminRouter: Elysia<"/admin", {
4258
4306
  name: string;
4259
4307
  email: string;
4260
4308
  } | 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
4309
  id: string;
4271
4310
  isEnabled: boolean;
4272
- name: string;
4273
- rewardAsset: {
4311
+ payoutAccountType: {
4274
4312
  id: string;
4275
- code: string;
4313
+ key: string;
4276
4314
  name: string;
4277
- symbol: string | null;
4278
- precision: number;
4279
4315
  isActive: boolean;
4280
4316
  };
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
- }[];
4317
+ payoutAccountTypeId: string;
4318
+ planId: string;
4319
+ rewardAmount: string;
4320
+ rewardCategory: string;
4321
+ ruleType: "consecutive" | "cumulative";
4313
4322
  sortOrder: number;
4323
+ thresholdDays: number;
4314
4324
  updatedAt: Date;
4315
4325
  updatedBy: string | null;
4316
4326
  updater: {
@@ -4318,39 +4328,69 @@ export declare const adminRouter: Elysia<"/admin", {
4318
4328
  name: string;
4319
4329
  email: string;
4320
4330
  } | 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
- };
4331
+ }[];
4332
+ sortOrder: number;
4333
+ updatedAt: Date;
4334
+ updatedBy: string | null;
4335
+ updater: {
4336
+ id: string;
4337
+ name: string;
4338
+ email: string;
4339
+ } | null;
4340
+ };
4341
+ 401: "Unauthorized";
4342
+ 403: "Forbidden: Admins only";
4343
+ 422: {
4344
+ type: 'validation';
4345
+ on: string;
4346
+ summary?: string;
4347
+ message?: string;
4348
+ found?: unknown;
4349
+ property?: string;
4350
+ expected?: string;
4333
4351
  };
4334
4352
  };
4335
4353
  };
4336
4354
  };
4337
4355
  } & {
4338
4356
  "reward-plans": {
4339
- ":id": {
4340
- patch: {
4357
+ delete: {
4358
+ body: {};
4359
+ params: {};
4360
+ query: {};
4361
+ headers: {};
4362
+ response: {
4363
+ 200: {
4364
+ success: boolean;
4365
+ };
4366
+ 401: "Unauthorized";
4367
+ 403: "Forbidden: Admins only";
4368
+ 422: {
4369
+ type: 'validation';
4370
+ on: string;
4371
+ summary?: string;
4372
+ message?: string;
4373
+ found?: unknown;
4374
+ property?: string;
4375
+ expected?: string;
4376
+ };
4377
+ };
4378
+ };
4379
+ };
4380
+ } & {
4381
+ "reward-plans": {
4382
+ rules: {
4383
+ post: {
4341
4384
  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
4385
  isEnabled?: boolean | undefined;
4386
+ payoutAccountTypeId: string;
4387
+ rewardAmount: string;
4388
+ rewardCategory?: string | undefined;
4389
+ ruleType: "consecutive" | "cumulative";
4349
4390
  sortOrder?: number | undefined;
4391
+ thresholdDays: number;
4350
4392
  };
4351
- params: {
4352
- id: string;
4353
- };
4393
+ params: {};
4354
4394
  query: {};
4355
4395
  headers: {};
4356
4396
  response: {
@@ -4441,49 +4481,20 @@ export declare const adminRouter: Elysia<"/admin", {
4441
4481
  };
4442
4482
  } & {
4443
4483
  "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: {
4484
+ rules: {
4485
+ ":ruleId": {
4486
+ patch: {
4476
4487
  body: {
4477
- ruleType: "consecutive" | "cumulative";
4478
- thresholdDays: number;
4479
- rewardAmount: string;
4480
- rewardCategory?: string | undefined;
4481
- payoutAccountTypeId: string;
4482
4488
  isEnabled?: boolean | undefined;
4489
+ payoutAccountTypeId?: string | undefined;
4490
+ rewardAmount?: string | undefined;
4491
+ rewardCategory?: string | undefined;
4492
+ ruleType?: "consecutive" | "cumulative" | undefined;
4483
4493
  sortOrder?: number | undefined;
4494
+ thresholdDays?: number | undefined;
4484
4495
  };
4485
4496
  params: {
4486
- id: string;
4497
+ ruleId: string;
4487
4498
  };
4488
4499
  query: {};
4489
4500
  headers: {};
@@ -4576,129 +4587,47 @@ export declare const adminRouter: Elysia<"/admin", {
4576
4587
  };
4577
4588
  } & {
4578
4589
  "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;
4590
+ rules: {
4591
+ ":ruleId": {
4592
+ delete: {
4593
+ body: {};
4594
+ params: {
4595
+ ruleId: string;
4596
+ };
4597
+ query: {};
4598
+ headers: {};
4599
+ response: {
4600
+ 200: {
4601
+ checkInType: "app" | "meeting";
4602
+ createdAt: Date;
4603
+ createdBy: string;
4604
+ creator: {
4617
4605
  id: string;
4618
- isEnabled: boolean;
4619
4606
  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;
4607
+ email: string;
4608
+ } | null;
4609
+ dailyPayoutAccountType: {
4610
+ id: string;
4611
+ key: string;
4612
+ name: string;
4613
+ isActive: boolean;
4668
4614
  };
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;
4615
+ dailyPayoutAccountTypeId: string;
4616
+ dailyRewardAmount: string;
4617
+ dailyRewardCategory: string;
4618
+ id: string;
4619
+ isEnabled: boolean;
4620
+ name: string;
4621
+ rewardAsset: {
4622
+ id: string;
4623
+ code: string;
4624
+ name: string;
4625
+ symbol: string | null;
4626
+ precision: number;
4627
+ isActive: boolean;
4679
4628
  };
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";
4629
+ rewardAssetId: string;
4630
+ rules: {
4702
4631
  createdAt: Date;
4703
4632
  createdBy: string;
4704
4633
  creator: {
@@ -4706,59 +4635,21 @@ export declare const adminRouter: Elysia<"/admin", {
4706
4635
  name: string;
4707
4636
  email: string;
4708
4637
  } | 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
4638
  id: string;
4719
4639
  isEnabled: boolean;
4720
- name: string;
4721
- rewardAsset: {
4640
+ payoutAccountType: {
4722
4641
  id: string;
4723
- code: string;
4642
+ key: string;
4724
4643
  name: string;
4725
- symbol: string | null;
4726
- precision: number;
4727
4644
  isActive: boolean;
4728
4645
  };
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
- }[];
4646
+ payoutAccountTypeId: string;
4647
+ planId: string;
4648
+ rewardAmount: string;
4649
+ rewardCategory: string;
4650
+ ruleType: "consecutive" | "cumulative";
4761
4651
  sortOrder: number;
4652
+ thresholdDays: number;
4762
4653
  updatedAt: Date;
4763
4654
  updatedBy: string | null;
4764
4655
  updater: {
@@ -4766,18 +4657,26 @@ export declare const adminRouter: Elysia<"/admin", {
4766
4657
  name: string;
4767
4658
  email: string;
4768
4659
  } | 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
- };
4660
+ }[];
4661
+ sortOrder: number;
4662
+ updatedAt: Date;
4663
+ updatedBy: string | null;
4664
+ updater: {
4665
+ id: string;
4666
+ name: string;
4667
+ email: string;
4668
+ } | null;
4669
+ };
4670
+ 401: "Unauthorized";
4671
+ 403: "Forbidden: Admins only";
4672
+ 422: {
4673
+ type: 'validation';
4674
+ on: string;
4675
+ summary?: string;
4676
+ message?: string;
4677
+ found?: unknown;
4678
+ property?: string;
4679
+ expected?: string;
4781
4680
  };
4782
4681
  };
4783
4682
  };