@r2wa-org/eden 0.0.99 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/index.d.ts +807 -12
- package/dist/auth/better-auth.d.ts +13 -1
- package/dist/auth/permissions.d.ts +11 -1
- package/dist/auth/roles.d.ts +30 -0
- package/dist/bank-account/admin/router.d.ts +1 -13
- package/dist/check-in/admin/reward.dto.schemas.d.ts +294 -0
- package/dist/check-in/admin/reward.router.d.ts +1192 -0
- package/dist/check-in/admin/reward.service.d.ts +479 -0
- package/dist/check-in/admin/router.d.ts +745 -0
- package/dist/check-in/errors/index.d.ts +9 -0
- package/dist/check-in/errors/locales/zh.d.ts +9 -0
- package/dist/check-in/index.d.ts +5 -0
- package/dist/check-in/internal/reward-config.service.d.ts +66 -0
- package/dist/check-in/permissions.d.ts +2 -0
- package/dist/check-in/reward.db.schemas.d.ts +896 -0
- package/dist/check-in/reward.schema.d.ts +477 -0
- package/dist/content-video/admin/dto.schemas.d.ts +14 -14
- package/dist/content-video/admin/router.d.ts +12 -12
- package/dist/content-video/admin/service.d.ts +1 -0
- package/dist/content-video/user/router.d.ts +13 -1
- package/dist/db/schemas.d.ts +1 -0
- package/dist/index.d.ts +823 -12
- package/dist/lock-activity/admin/dto.schemas.d.ts +16 -0
- package/dist/lock-activity/admin/router.d.ts +56 -0
- package/dist/lock-activity/admin/service.d.ts +134 -8
- package/dist/lock-activity/db.schemas.d.ts +34 -0
- package/dist/lock-activity/internal/service.d.ts +41 -0
- package/dist/lock-activity/schema.d.ts +18 -0
- package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
- package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
- package/dist/lock-activity/user/router.d.ts +17 -13
- package/dist/lock-activity/user/service.d.ts +39 -3
- package/dist/referral/admin/router.d.ts +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4369,6 +4369,745 @@ declare const app: Elysia<"/api", {
|
|
|
4369
4369
|
} & {
|
|
4370
4370
|
admin: {
|
|
4371
4371
|
checkIns: {};
|
|
4372
|
+
} & {
|
|
4373
|
+
checkIns: {
|
|
4374
|
+
"reward-plans": {};
|
|
4375
|
+
} & {
|
|
4376
|
+
"reward-plans": {
|
|
4377
|
+
post: {
|
|
4378
|
+
body: {
|
|
4379
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4380
|
+
dailyPayoutAccountTypeId: string;
|
|
4381
|
+
dailyRewardAmount: string;
|
|
4382
|
+
dailyRewardCategory?: string | undefined;
|
|
4383
|
+
isEnabled?: boolean | undefined;
|
|
4384
|
+
name: string;
|
|
4385
|
+
rewardAssetId: string;
|
|
4386
|
+
rules?: {
|
|
4387
|
+
ruleType: "consecutive" | "cumulative";
|
|
4388
|
+
thresholdDays: number;
|
|
4389
|
+
rewardAmount: string;
|
|
4390
|
+
rewardCategory?: string | undefined;
|
|
4391
|
+
payoutAccountTypeId: string;
|
|
4392
|
+
isEnabled?: boolean | undefined;
|
|
4393
|
+
sortOrder?: number | undefined;
|
|
4394
|
+
}[] | undefined;
|
|
4395
|
+
sortOrder?: number | undefined;
|
|
4396
|
+
};
|
|
4397
|
+
params: {};
|
|
4398
|
+
query: {};
|
|
4399
|
+
headers: {};
|
|
4400
|
+
response: {
|
|
4401
|
+
200: {
|
|
4402
|
+
checkInType: "app" | "meeting";
|
|
4403
|
+
createdAt: Date;
|
|
4404
|
+
createdBy: string;
|
|
4405
|
+
creator: {
|
|
4406
|
+
id: string;
|
|
4407
|
+
name: string;
|
|
4408
|
+
email: string;
|
|
4409
|
+
} | null;
|
|
4410
|
+
dailyPayoutAccountType: {
|
|
4411
|
+
id: string;
|
|
4412
|
+
key: string;
|
|
4413
|
+
name: string;
|
|
4414
|
+
isActive: boolean;
|
|
4415
|
+
};
|
|
4416
|
+
dailyPayoutAccountTypeId: string;
|
|
4417
|
+
dailyRewardAmount: string;
|
|
4418
|
+
dailyRewardCategory: string;
|
|
4419
|
+
id: string;
|
|
4420
|
+
isEnabled: boolean;
|
|
4421
|
+
name: string;
|
|
4422
|
+
rewardAsset: {
|
|
4423
|
+
id: string;
|
|
4424
|
+
code: string;
|
|
4425
|
+
name: string;
|
|
4426
|
+
symbol: string | null;
|
|
4427
|
+
precision: number;
|
|
4428
|
+
isActive: boolean;
|
|
4429
|
+
};
|
|
4430
|
+
rewardAssetId: string;
|
|
4431
|
+
rules: {
|
|
4432
|
+
createdAt: Date;
|
|
4433
|
+
createdBy: string;
|
|
4434
|
+
creator: {
|
|
4435
|
+
id: string;
|
|
4436
|
+
name: string;
|
|
4437
|
+
email: string;
|
|
4438
|
+
} | null;
|
|
4439
|
+
id: string;
|
|
4440
|
+
isEnabled: boolean;
|
|
4441
|
+
payoutAccountType: {
|
|
4442
|
+
id: string;
|
|
4443
|
+
key: string;
|
|
4444
|
+
name: string;
|
|
4445
|
+
isActive: boolean;
|
|
4446
|
+
};
|
|
4447
|
+
payoutAccountTypeId: string;
|
|
4448
|
+
planId: string;
|
|
4449
|
+
rewardAmount: string;
|
|
4450
|
+
rewardCategory: string;
|
|
4451
|
+
ruleType: "consecutive" | "cumulative";
|
|
4452
|
+
sortOrder: number;
|
|
4453
|
+
thresholdDays: number;
|
|
4454
|
+
updatedAt: Date;
|
|
4455
|
+
updatedBy: string | null;
|
|
4456
|
+
updater: {
|
|
4457
|
+
id: string;
|
|
4458
|
+
name: string;
|
|
4459
|
+
email: string;
|
|
4460
|
+
} | null;
|
|
4461
|
+
}[];
|
|
4462
|
+
sortOrder: number;
|
|
4463
|
+
updatedAt: Date;
|
|
4464
|
+
updatedBy: string | null;
|
|
4465
|
+
updater: {
|
|
4466
|
+
id: string;
|
|
4467
|
+
name: string;
|
|
4468
|
+
email: string;
|
|
4469
|
+
} | null;
|
|
4470
|
+
};
|
|
4471
|
+
401: "Unauthorized";
|
|
4472
|
+
403: "Forbidden: Admins only";
|
|
4473
|
+
422: {
|
|
4474
|
+
type: 'validation';
|
|
4475
|
+
on: string;
|
|
4476
|
+
summary?: string;
|
|
4477
|
+
message?: string;
|
|
4478
|
+
found?: unknown;
|
|
4479
|
+
property?: string;
|
|
4480
|
+
expected?: string;
|
|
4481
|
+
};
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4484
|
+
};
|
|
4485
|
+
} & {
|
|
4486
|
+
"reward-plans": {
|
|
4487
|
+
get: {
|
|
4488
|
+
body: {};
|
|
4489
|
+
params: {};
|
|
4490
|
+
query: {
|
|
4491
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4492
|
+
isEnabled?: boolean | undefined;
|
|
4493
|
+
keyword?: string | undefined;
|
|
4494
|
+
limit?: number | undefined;
|
|
4495
|
+
offset?: number | undefined;
|
|
4496
|
+
pageIndex?: number | undefined;
|
|
4497
|
+
pageSize?: number | undefined;
|
|
4498
|
+
};
|
|
4499
|
+
headers: {};
|
|
4500
|
+
response: {
|
|
4501
|
+
200: {
|
|
4502
|
+
data: {
|
|
4503
|
+
checkInType: "app" | "meeting";
|
|
4504
|
+
createdAt: Date;
|
|
4505
|
+
createdBy: string;
|
|
4506
|
+
creator: {
|
|
4507
|
+
id: string;
|
|
4508
|
+
name: string;
|
|
4509
|
+
email: string;
|
|
4510
|
+
} | null;
|
|
4511
|
+
dailyPayoutAccountType: {
|
|
4512
|
+
id: string;
|
|
4513
|
+
key: string;
|
|
4514
|
+
name: string;
|
|
4515
|
+
isActive: boolean;
|
|
4516
|
+
};
|
|
4517
|
+
dailyPayoutAccountTypeId: string;
|
|
4518
|
+
dailyRewardAmount: string;
|
|
4519
|
+
dailyRewardCategory: string;
|
|
4520
|
+
id: string;
|
|
4521
|
+
isEnabled: boolean;
|
|
4522
|
+
name: string;
|
|
4523
|
+
rewardAsset: {
|
|
4524
|
+
id: string;
|
|
4525
|
+
code: string;
|
|
4526
|
+
name: string;
|
|
4527
|
+
symbol: string | null;
|
|
4528
|
+
precision: number;
|
|
4529
|
+
isActive: boolean;
|
|
4530
|
+
};
|
|
4531
|
+
rewardAssetId: string;
|
|
4532
|
+
ruleCount: number;
|
|
4533
|
+
sortOrder: number;
|
|
4534
|
+
updatedAt: Date;
|
|
4535
|
+
updatedBy: string | null;
|
|
4536
|
+
updater: {
|
|
4537
|
+
id: string;
|
|
4538
|
+
name: string;
|
|
4539
|
+
email: string;
|
|
4540
|
+
} | null;
|
|
4541
|
+
}[];
|
|
4542
|
+
pagination: {
|
|
4543
|
+
pageSize: number;
|
|
4544
|
+
pageIndex: number;
|
|
4545
|
+
total: number;
|
|
4546
|
+
totalPages: number;
|
|
4547
|
+
hasNextPage: boolean;
|
|
4548
|
+
};
|
|
4549
|
+
};
|
|
4550
|
+
401: "Unauthorized";
|
|
4551
|
+
403: "Forbidden: Admins only";
|
|
4552
|
+
422: {
|
|
4553
|
+
type: 'validation';
|
|
4554
|
+
on: string;
|
|
4555
|
+
summary?: string;
|
|
4556
|
+
message?: string;
|
|
4557
|
+
found?: unknown;
|
|
4558
|
+
property?: string;
|
|
4559
|
+
expected?: string;
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
} & {
|
|
4565
|
+
"reward-plans": {
|
|
4566
|
+
":id": {
|
|
4567
|
+
get: {
|
|
4568
|
+
body: {};
|
|
4569
|
+
params: {
|
|
4570
|
+
id: string;
|
|
4571
|
+
};
|
|
4572
|
+
query: {};
|
|
4573
|
+
headers: {};
|
|
4574
|
+
response: {
|
|
4575
|
+
200: {
|
|
4576
|
+
checkInType: "app" | "meeting";
|
|
4577
|
+
createdAt: Date;
|
|
4578
|
+
createdBy: string;
|
|
4579
|
+
creator: {
|
|
4580
|
+
id: string;
|
|
4581
|
+
name: string;
|
|
4582
|
+
email: string;
|
|
4583
|
+
} | null;
|
|
4584
|
+
dailyPayoutAccountType: {
|
|
4585
|
+
id: string;
|
|
4586
|
+
key: string;
|
|
4587
|
+
name: string;
|
|
4588
|
+
isActive: boolean;
|
|
4589
|
+
};
|
|
4590
|
+
dailyPayoutAccountTypeId: string;
|
|
4591
|
+
dailyRewardAmount: string;
|
|
4592
|
+
dailyRewardCategory: string;
|
|
4593
|
+
id: string;
|
|
4594
|
+
isEnabled: boolean;
|
|
4595
|
+
name: string;
|
|
4596
|
+
rewardAsset: {
|
|
4597
|
+
id: string;
|
|
4598
|
+
code: string;
|
|
4599
|
+
name: string;
|
|
4600
|
+
symbol: string | null;
|
|
4601
|
+
precision: number;
|
|
4602
|
+
isActive: boolean;
|
|
4603
|
+
};
|
|
4604
|
+
rewardAssetId: string;
|
|
4605
|
+
rules: {
|
|
4606
|
+
createdAt: Date;
|
|
4607
|
+
createdBy: string;
|
|
4608
|
+
creator: {
|
|
4609
|
+
id: string;
|
|
4610
|
+
name: string;
|
|
4611
|
+
email: string;
|
|
4612
|
+
} | null;
|
|
4613
|
+
id: string;
|
|
4614
|
+
isEnabled: boolean;
|
|
4615
|
+
payoutAccountType: {
|
|
4616
|
+
id: string;
|
|
4617
|
+
key: string;
|
|
4618
|
+
name: string;
|
|
4619
|
+
isActive: boolean;
|
|
4620
|
+
};
|
|
4621
|
+
payoutAccountTypeId: string;
|
|
4622
|
+
planId: string;
|
|
4623
|
+
rewardAmount: string;
|
|
4624
|
+
rewardCategory: string;
|
|
4625
|
+
ruleType: "consecutive" | "cumulative";
|
|
4626
|
+
sortOrder: number;
|
|
4627
|
+
thresholdDays: number;
|
|
4628
|
+
updatedAt: Date;
|
|
4629
|
+
updatedBy: string | null;
|
|
4630
|
+
updater: {
|
|
4631
|
+
id: string;
|
|
4632
|
+
name: string;
|
|
4633
|
+
email: string;
|
|
4634
|
+
} | null;
|
|
4635
|
+
}[];
|
|
4636
|
+
sortOrder: number;
|
|
4637
|
+
updatedAt: Date;
|
|
4638
|
+
updatedBy: string | null;
|
|
4639
|
+
updater: {
|
|
4640
|
+
id: string;
|
|
4641
|
+
name: string;
|
|
4642
|
+
email: string;
|
|
4643
|
+
} | null;
|
|
4644
|
+
};
|
|
4645
|
+
401: "Unauthorized";
|
|
4646
|
+
403: "Forbidden: Admins only";
|
|
4647
|
+
422: {
|
|
4648
|
+
type: 'validation';
|
|
4649
|
+
on: string;
|
|
4650
|
+
summary?: string;
|
|
4651
|
+
message?: string;
|
|
4652
|
+
found?: unknown;
|
|
4653
|
+
property?: string;
|
|
4654
|
+
expected?: string;
|
|
4655
|
+
};
|
|
4656
|
+
};
|
|
4657
|
+
};
|
|
4658
|
+
};
|
|
4659
|
+
};
|
|
4660
|
+
} & {
|
|
4661
|
+
"reward-plans": {
|
|
4662
|
+
":id": {
|
|
4663
|
+
patch: {
|
|
4664
|
+
body: {
|
|
4665
|
+
name?: string | undefined;
|
|
4666
|
+
rewardAssetId?: string | undefined;
|
|
4667
|
+
dailyRewardAmount?: string | undefined;
|
|
4668
|
+
dailyRewardCategory?: string | undefined;
|
|
4669
|
+
dailyPayoutAccountTypeId?: string | undefined;
|
|
4670
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
4671
|
+
isEnabled?: boolean | undefined;
|
|
4672
|
+
sortOrder?: number | undefined;
|
|
4673
|
+
};
|
|
4674
|
+
params: {
|
|
4675
|
+
id: string;
|
|
4676
|
+
};
|
|
4677
|
+
query: {};
|
|
4678
|
+
headers: {};
|
|
4679
|
+
response: {
|
|
4680
|
+
200: {
|
|
4681
|
+
checkInType: "app" | "meeting";
|
|
4682
|
+
createdAt: Date;
|
|
4683
|
+
createdBy: string;
|
|
4684
|
+
creator: {
|
|
4685
|
+
id: string;
|
|
4686
|
+
name: string;
|
|
4687
|
+
email: string;
|
|
4688
|
+
} | null;
|
|
4689
|
+
dailyPayoutAccountType: {
|
|
4690
|
+
id: string;
|
|
4691
|
+
key: string;
|
|
4692
|
+
name: string;
|
|
4693
|
+
isActive: boolean;
|
|
4694
|
+
};
|
|
4695
|
+
dailyPayoutAccountTypeId: string;
|
|
4696
|
+
dailyRewardAmount: string;
|
|
4697
|
+
dailyRewardCategory: string;
|
|
4698
|
+
id: string;
|
|
4699
|
+
isEnabled: boolean;
|
|
4700
|
+
name: string;
|
|
4701
|
+
rewardAsset: {
|
|
4702
|
+
id: string;
|
|
4703
|
+
code: string;
|
|
4704
|
+
name: string;
|
|
4705
|
+
symbol: string | null;
|
|
4706
|
+
precision: number;
|
|
4707
|
+
isActive: boolean;
|
|
4708
|
+
};
|
|
4709
|
+
rewardAssetId: string;
|
|
4710
|
+
rules: {
|
|
4711
|
+
createdAt: Date;
|
|
4712
|
+
createdBy: string;
|
|
4713
|
+
creator: {
|
|
4714
|
+
id: string;
|
|
4715
|
+
name: string;
|
|
4716
|
+
email: string;
|
|
4717
|
+
} | null;
|
|
4718
|
+
id: string;
|
|
4719
|
+
isEnabled: boolean;
|
|
4720
|
+
payoutAccountType: {
|
|
4721
|
+
id: string;
|
|
4722
|
+
key: string;
|
|
4723
|
+
name: string;
|
|
4724
|
+
isActive: boolean;
|
|
4725
|
+
};
|
|
4726
|
+
payoutAccountTypeId: string;
|
|
4727
|
+
planId: string;
|
|
4728
|
+
rewardAmount: string;
|
|
4729
|
+
rewardCategory: string;
|
|
4730
|
+
ruleType: "consecutive" | "cumulative";
|
|
4731
|
+
sortOrder: number;
|
|
4732
|
+
thresholdDays: number;
|
|
4733
|
+
updatedAt: Date;
|
|
4734
|
+
updatedBy: string | null;
|
|
4735
|
+
updater: {
|
|
4736
|
+
id: string;
|
|
4737
|
+
name: string;
|
|
4738
|
+
email: string;
|
|
4739
|
+
} | null;
|
|
4740
|
+
}[];
|
|
4741
|
+
sortOrder: number;
|
|
4742
|
+
updatedAt: Date;
|
|
4743
|
+
updatedBy: string | null;
|
|
4744
|
+
updater: {
|
|
4745
|
+
id: string;
|
|
4746
|
+
name: string;
|
|
4747
|
+
email: string;
|
|
4748
|
+
} | null;
|
|
4749
|
+
};
|
|
4750
|
+
401: "Unauthorized";
|
|
4751
|
+
403: "Forbidden: Admins only";
|
|
4752
|
+
422: {
|
|
4753
|
+
type: 'validation';
|
|
4754
|
+
on: string;
|
|
4755
|
+
summary?: string;
|
|
4756
|
+
message?: string;
|
|
4757
|
+
found?: unknown;
|
|
4758
|
+
property?: string;
|
|
4759
|
+
expected?: string;
|
|
4760
|
+
};
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4764
|
+
};
|
|
4765
|
+
} & {
|
|
4766
|
+
"reward-plans": {
|
|
4767
|
+
":id": {
|
|
4768
|
+
delete: {
|
|
4769
|
+
body: {};
|
|
4770
|
+
params: {
|
|
4771
|
+
id: string;
|
|
4772
|
+
};
|
|
4773
|
+
query: {};
|
|
4774
|
+
headers: {};
|
|
4775
|
+
response: {
|
|
4776
|
+
200: {
|
|
4777
|
+
success: boolean;
|
|
4778
|
+
};
|
|
4779
|
+
401: "Unauthorized";
|
|
4780
|
+
403: "Forbidden: Admins only";
|
|
4781
|
+
422: {
|
|
4782
|
+
type: 'validation';
|
|
4783
|
+
on: string;
|
|
4784
|
+
summary?: string;
|
|
4785
|
+
message?: string;
|
|
4786
|
+
found?: unknown;
|
|
4787
|
+
property?: string;
|
|
4788
|
+
expected?: string;
|
|
4789
|
+
};
|
|
4790
|
+
};
|
|
4791
|
+
};
|
|
4792
|
+
};
|
|
4793
|
+
};
|
|
4794
|
+
} & {
|
|
4795
|
+
"reward-plans": {
|
|
4796
|
+
":id": {
|
|
4797
|
+
rules: {
|
|
4798
|
+
post: {
|
|
4799
|
+
body: {
|
|
4800
|
+
ruleType: "consecutive" | "cumulative";
|
|
4801
|
+
thresholdDays: number;
|
|
4802
|
+
rewardAmount: string;
|
|
4803
|
+
rewardCategory?: string | undefined;
|
|
4804
|
+
payoutAccountTypeId: string;
|
|
4805
|
+
isEnabled?: boolean | undefined;
|
|
4806
|
+
sortOrder?: number | undefined;
|
|
4807
|
+
};
|
|
4808
|
+
params: {
|
|
4809
|
+
id: string;
|
|
4810
|
+
};
|
|
4811
|
+
query: {};
|
|
4812
|
+
headers: {};
|
|
4813
|
+
response: {
|
|
4814
|
+
200: {
|
|
4815
|
+
checkInType: "app" | "meeting";
|
|
4816
|
+
createdAt: Date;
|
|
4817
|
+
createdBy: string;
|
|
4818
|
+
creator: {
|
|
4819
|
+
id: string;
|
|
4820
|
+
name: string;
|
|
4821
|
+
email: string;
|
|
4822
|
+
} | null;
|
|
4823
|
+
dailyPayoutAccountType: {
|
|
4824
|
+
id: string;
|
|
4825
|
+
key: string;
|
|
4826
|
+
name: string;
|
|
4827
|
+
isActive: boolean;
|
|
4828
|
+
};
|
|
4829
|
+
dailyPayoutAccountTypeId: string;
|
|
4830
|
+
dailyRewardAmount: string;
|
|
4831
|
+
dailyRewardCategory: string;
|
|
4832
|
+
id: string;
|
|
4833
|
+
isEnabled: boolean;
|
|
4834
|
+
name: string;
|
|
4835
|
+
rewardAsset: {
|
|
4836
|
+
id: string;
|
|
4837
|
+
code: string;
|
|
4838
|
+
name: string;
|
|
4839
|
+
symbol: string | null;
|
|
4840
|
+
precision: number;
|
|
4841
|
+
isActive: boolean;
|
|
4842
|
+
};
|
|
4843
|
+
rewardAssetId: string;
|
|
4844
|
+
rules: {
|
|
4845
|
+
createdAt: Date;
|
|
4846
|
+
createdBy: string;
|
|
4847
|
+
creator: {
|
|
4848
|
+
id: string;
|
|
4849
|
+
name: string;
|
|
4850
|
+
email: string;
|
|
4851
|
+
} | null;
|
|
4852
|
+
id: string;
|
|
4853
|
+
isEnabled: boolean;
|
|
4854
|
+
payoutAccountType: {
|
|
4855
|
+
id: string;
|
|
4856
|
+
key: string;
|
|
4857
|
+
name: string;
|
|
4858
|
+
isActive: boolean;
|
|
4859
|
+
};
|
|
4860
|
+
payoutAccountTypeId: string;
|
|
4861
|
+
planId: string;
|
|
4862
|
+
rewardAmount: string;
|
|
4863
|
+
rewardCategory: string;
|
|
4864
|
+
ruleType: "consecutive" | "cumulative";
|
|
4865
|
+
sortOrder: number;
|
|
4866
|
+
thresholdDays: number;
|
|
4867
|
+
updatedAt: Date;
|
|
4868
|
+
updatedBy: string | null;
|
|
4869
|
+
updater: {
|
|
4870
|
+
id: string;
|
|
4871
|
+
name: string;
|
|
4872
|
+
email: string;
|
|
4873
|
+
} | null;
|
|
4874
|
+
}[];
|
|
4875
|
+
sortOrder: number;
|
|
4876
|
+
updatedAt: Date;
|
|
4877
|
+
updatedBy: string | null;
|
|
4878
|
+
updater: {
|
|
4879
|
+
id: string;
|
|
4880
|
+
name: string;
|
|
4881
|
+
email: string;
|
|
4882
|
+
} | null;
|
|
4883
|
+
};
|
|
4884
|
+
401: "Unauthorized";
|
|
4885
|
+
403: "Forbidden: Admins only";
|
|
4886
|
+
422: {
|
|
4887
|
+
type: 'validation';
|
|
4888
|
+
on: string;
|
|
4889
|
+
summary?: string;
|
|
4890
|
+
message?: string;
|
|
4891
|
+
found?: unknown;
|
|
4892
|
+
property?: string;
|
|
4893
|
+
expected?: string;
|
|
4894
|
+
};
|
|
4895
|
+
};
|
|
4896
|
+
};
|
|
4897
|
+
};
|
|
4898
|
+
};
|
|
4899
|
+
};
|
|
4900
|
+
} & {
|
|
4901
|
+
"reward-plans": {
|
|
4902
|
+
":id": {
|
|
4903
|
+
rules: {
|
|
4904
|
+
":ruleId": {
|
|
4905
|
+
patch: {
|
|
4906
|
+
body: {
|
|
4907
|
+
ruleType?: "consecutive" | "cumulative" | undefined;
|
|
4908
|
+
thresholdDays?: number | undefined;
|
|
4909
|
+
rewardAmount?: string | undefined;
|
|
4910
|
+
rewardCategory?: string | undefined;
|
|
4911
|
+
payoutAccountTypeId?: string | undefined;
|
|
4912
|
+
isEnabled?: boolean | undefined;
|
|
4913
|
+
sortOrder?: number | undefined;
|
|
4914
|
+
};
|
|
4915
|
+
params: {
|
|
4916
|
+
id: string;
|
|
4917
|
+
ruleId: string;
|
|
4918
|
+
};
|
|
4919
|
+
query: {};
|
|
4920
|
+
headers: {};
|
|
4921
|
+
response: {
|
|
4922
|
+
200: {
|
|
4923
|
+
checkInType: "app" | "meeting";
|
|
4924
|
+
createdAt: Date;
|
|
4925
|
+
createdBy: string;
|
|
4926
|
+
creator: {
|
|
4927
|
+
id: string;
|
|
4928
|
+
name: string;
|
|
4929
|
+
email: string;
|
|
4930
|
+
} | null;
|
|
4931
|
+
dailyPayoutAccountType: {
|
|
4932
|
+
id: string;
|
|
4933
|
+
key: string;
|
|
4934
|
+
name: string;
|
|
4935
|
+
isActive: boolean;
|
|
4936
|
+
};
|
|
4937
|
+
dailyPayoutAccountTypeId: string;
|
|
4938
|
+
dailyRewardAmount: string;
|
|
4939
|
+
dailyRewardCategory: string;
|
|
4940
|
+
id: string;
|
|
4941
|
+
isEnabled: boolean;
|
|
4942
|
+
name: string;
|
|
4943
|
+
rewardAsset: {
|
|
4944
|
+
id: string;
|
|
4945
|
+
code: string;
|
|
4946
|
+
name: string;
|
|
4947
|
+
symbol: string | null;
|
|
4948
|
+
precision: number;
|
|
4949
|
+
isActive: boolean;
|
|
4950
|
+
};
|
|
4951
|
+
rewardAssetId: string;
|
|
4952
|
+
rules: {
|
|
4953
|
+
createdAt: Date;
|
|
4954
|
+
createdBy: string;
|
|
4955
|
+
creator: {
|
|
4956
|
+
id: string;
|
|
4957
|
+
name: string;
|
|
4958
|
+
email: string;
|
|
4959
|
+
} | null;
|
|
4960
|
+
id: string;
|
|
4961
|
+
isEnabled: boolean;
|
|
4962
|
+
payoutAccountType: {
|
|
4963
|
+
id: string;
|
|
4964
|
+
key: string;
|
|
4965
|
+
name: string;
|
|
4966
|
+
isActive: boolean;
|
|
4967
|
+
};
|
|
4968
|
+
payoutAccountTypeId: string;
|
|
4969
|
+
planId: string;
|
|
4970
|
+
rewardAmount: string;
|
|
4971
|
+
rewardCategory: string;
|
|
4972
|
+
ruleType: "consecutive" | "cumulative";
|
|
4973
|
+
sortOrder: number;
|
|
4974
|
+
thresholdDays: number;
|
|
4975
|
+
updatedAt: Date;
|
|
4976
|
+
updatedBy: string | null;
|
|
4977
|
+
updater: {
|
|
4978
|
+
id: string;
|
|
4979
|
+
name: string;
|
|
4980
|
+
email: string;
|
|
4981
|
+
} | null;
|
|
4982
|
+
}[];
|
|
4983
|
+
sortOrder: number;
|
|
4984
|
+
updatedAt: Date;
|
|
4985
|
+
updatedBy: string | null;
|
|
4986
|
+
updater: {
|
|
4987
|
+
id: string;
|
|
4988
|
+
name: string;
|
|
4989
|
+
email: string;
|
|
4990
|
+
} | null;
|
|
4991
|
+
};
|
|
4992
|
+
401: "Unauthorized";
|
|
4993
|
+
403: "Forbidden: Admins only";
|
|
4994
|
+
422: {
|
|
4995
|
+
type: 'validation';
|
|
4996
|
+
on: string;
|
|
4997
|
+
summary?: string;
|
|
4998
|
+
message?: string;
|
|
4999
|
+
found?: unknown;
|
|
5000
|
+
property?: string;
|
|
5001
|
+
expected?: string;
|
|
5002
|
+
};
|
|
5003
|
+
};
|
|
5004
|
+
};
|
|
5005
|
+
};
|
|
5006
|
+
};
|
|
5007
|
+
};
|
|
5008
|
+
};
|
|
5009
|
+
} & {
|
|
5010
|
+
"reward-plans": {
|
|
5011
|
+
":id": {
|
|
5012
|
+
rules: {
|
|
5013
|
+
":ruleId": {
|
|
5014
|
+
delete: {
|
|
5015
|
+
body: {};
|
|
5016
|
+
params: {
|
|
5017
|
+
id: string;
|
|
5018
|
+
ruleId: string;
|
|
5019
|
+
};
|
|
5020
|
+
query: {};
|
|
5021
|
+
headers: {};
|
|
5022
|
+
response: {
|
|
5023
|
+
200: {
|
|
5024
|
+
checkInType: "app" | "meeting";
|
|
5025
|
+
createdAt: Date;
|
|
5026
|
+
createdBy: string;
|
|
5027
|
+
creator: {
|
|
5028
|
+
id: string;
|
|
5029
|
+
name: string;
|
|
5030
|
+
email: string;
|
|
5031
|
+
} | null;
|
|
5032
|
+
dailyPayoutAccountType: {
|
|
5033
|
+
id: string;
|
|
5034
|
+
key: string;
|
|
5035
|
+
name: string;
|
|
5036
|
+
isActive: boolean;
|
|
5037
|
+
};
|
|
5038
|
+
dailyPayoutAccountTypeId: string;
|
|
5039
|
+
dailyRewardAmount: string;
|
|
5040
|
+
dailyRewardCategory: string;
|
|
5041
|
+
id: string;
|
|
5042
|
+
isEnabled: boolean;
|
|
5043
|
+
name: string;
|
|
5044
|
+
rewardAsset: {
|
|
5045
|
+
id: string;
|
|
5046
|
+
code: string;
|
|
5047
|
+
name: string;
|
|
5048
|
+
symbol: string | null;
|
|
5049
|
+
precision: number;
|
|
5050
|
+
isActive: boolean;
|
|
5051
|
+
};
|
|
5052
|
+
rewardAssetId: string;
|
|
5053
|
+
rules: {
|
|
5054
|
+
createdAt: Date;
|
|
5055
|
+
createdBy: string;
|
|
5056
|
+
creator: {
|
|
5057
|
+
id: string;
|
|
5058
|
+
name: string;
|
|
5059
|
+
email: string;
|
|
5060
|
+
} | null;
|
|
5061
|
+
id: string;
|
|
5062
|
+
isEnabled: boolean;
|
|
5063
|
+
payoutAccountType: {
|
|
5064
|
+
id: string;
|
|
5065
|
+
key: string;
|
|
5066
|
+
name: string;
|
|
5067
|
+
isActive: boolean;
|
|
5068
|
+
};
|
|
5069
|
+
payoutAccountTypeId: string;
|
|
5070
|
+
planId: string;
|
|
5071
|
+
rewardAmount: string;
|
|
5072
|
+
rewardCategory: string;
|
|
5073
|
+
ruleType: "consecutive" | "cumulative";
|
|
5074
|
+
sortOrder: number;
|
|
5075
|
+
thresholdDays: number;
|
|
5076
|
+
updatedAt: Date;
|
|
5077
|
+
updatedBy: string | null;
|
|
5078
|
+
updater: {
|
|
5079
|
+
id: string;
|
|
5080
|
+
name: string;
|
|
5081
|
+
email: string;
|
|
5082
|
+
} | null;
|
|
5083
|
+
}[];
|
|
5084
|
+
sortOrder: number;
|
|
5085
|
+
updatedAt: Date;
|
|
5086
|
+
updatedBy: string | null;
|
|
5087
|
+
updater: {
|
|
5088
|
+
id: string;
|
|
5089
|
+
name: string;
|
|
5090
|
+
email: string;
|
|
5091
|
+
} | null;
|
|
5092
|
+
};
|
|
5093
|
+
401: "Unauthorized";
|
|
5094
|
+
403: "Forbidden: Admins only";
|
|
5095
|
+
422: {
|
|
5096
|
+
type: 'validation';
|
|
5097
|
+
on: string;
|
|
5098
|
+
summary?: string;
|
|
5099
|
+
message?: string;
|
|
5100
|
+
found?: unknown;
|
|
5101
|
+
property?: string;
|
|
5102
|
+
expected?: string;
|
|
5103
|
+
};
|
|
5104
|
+
};
|
|
5105
|
+
};
|
|
5106
|
+
};
|
|
5107
|
+
};
|
|
5108
|
+
};
|
|
5109
|
+
};
|
|
5110
|
+
};
|
|
4372
5111
|
} & {
|
|
4373
5112
|
checkIns: {
|
|
4374
5113
|
get: {
|
|
@@ -7873,15 +8612,15 @@ declare const app: Elysia<"/api", {
|
|
|
7873
8612
|
content_videos: {
|
|
7874
8613
|
post: {
|
|
7875
8614
|
body: {
|
|
7876
|
-
title: string;
|
|
7877
|
-
description?: string | null | undefined;
|
|
7878
|
-
videoFileId: string;
|
|
7879
8615
|
coverFileId?: string | undefined;
|
|
7880
|
-
|
|
8616
|
+
description?: string | null | undefined;
|
|
8617
|
+
durationSeconds?: number | null | undefined;
|
|
7881
8618
|
isEnabled?: boolean | undefined;
|
|
8619
|
+
publishedAt?: string | Date | null | undefined;
|
|
7882
8620
|
sortOrder?: number | undefined;
|
|
7883
|
-
|
|
7884
|
-
|
|
8621
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8622
|
+
title: string;
|
|
8623
|
+
videoFileId: string;
|
|
7885
8624
|
};
|
|
7886
8625
|
params: {};
|
|
7887
8626
|
query: {};
|
|
@@ -8064,15 +8803,15 @@ declare const app: Elysia<"/api", {
|
|
|
8064
8803
|
":id": {
|
|
8065
8804
|
patch: {
|
|
8066
8805
|
body: {
|
|
8067
|
-
title?: string | undefined;
|
|
8068
|
-
description?: string | null | undefined;
|
|
8069
|
-
videoFileId?: string | undefined;
|
|
8070
8806
|
coverFileId?: string | undefined;
|
|
8071
|
-
|
|
8807
|
+
description?: string | null | undefined;
|
|
8808
|
+
durationSeconds?: number | null | undefined;
|
|
8072
8809
|
isEnabled?: boolean | undefined;
|
|
8810
|
+
publishedAt?: string | Date | null | undefined;
|
|
8073
8811
|
sortOrder?: number | undefined;
|
|
8074
|
-
|
|
8075
|
-
|
|
8812
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
8813
|
+
title?: string | undefined;
|
|
8814
|
+
videoFileId?: string | undefined;
|
|
8076
8815
|
};
|
|
8077
8816
|
params: {
|
|
8078
8817
|
id: string;
|
|
@@ -10162,6 +10901,14 @@ declare const app: Elysia<"/api", {
|
|
|
10162
10901
|
headers: {};
|
|
10163
10902
|
response: {
|
|
10164
10903
|
200: {
|
|
10904
|
+
coverImageFile?: {
|
|
10905
|
+
id: string;
|
|
10906
|
+
fileName: string | null;
|
|
10907
|
+
mimeType: string | null;
|
|
10908
|
+
fileSize: number | null;
|
|
10909
|
+
publicUrl: string | null;
|
|
10910
|
+
} | undefined;
|
|
10911
|
+
coverImageFileId: string | null;
|
|
10165
10912
|
coverImageUrl: string;
|
|
10166
10913
|
createdAt: Date;
|
|
10167
10914
|
description: string | null;
|
|
@@ -10230,6 +10977,14 @@ declare const app: Elysia<"/api", {
|
|
|
10230
10977
|
headers: {};
|
|
10231
10978
|
response: {
|
|
10232
10979
|
200: {
|
|
10980
|
+
coverImageFile?: {
|
|
10981
|
+
id: string;
|
|
10982
|
+
fileName: string | null;
|
|
10983
|
+
mimeType: string | null;
|
|
10984
|
+
fileSize: number | null;
|
|
10985
|
+
publicUrl: string | null;
|
|
10986
|
+
} | undefined;
|
|
10987
|
+
coverImageFileId: string | null;
|
|
10233
10988
|
coverImageUrl: string;
|
|
10234
10989
|
createdAt: Date;
|
|
10235
10990
|
description: string | null;
|
|
@@ -10288,6 +11043,14 @@ declare const app: Elysia<"/api", {
|
|
|
10288
11043
|
headers: {};
|
|
10289
11044
|
response: {
|
|
10290
11045
|
200: {
|
|
11046
|
+
coverImageFile?: {
|
|
11047
|
+
id: string;
|
|
11048
|
+
fileName: string | null;
|
|
11049
|
+
mimeType: string | null;
|
|
11050
|
+
fileSize: number | null;
|
|
11051
|
+
publicUrl: string | null;
|
|
11052
|
+
} | undefined;
|
|
11053
|
+
coverImageFileId: string | null;
|
|
10291
11054
|
coverImageUrl: string;
|
|
10292
11055
|
createdAt: Date;
|
|
10293
11056
|
description: string | null;
|
|
@@ -10352,6 +11115,14 @@ declare const app: Elysia<"/api", {
|
|
|
10352
11115
|
response: {
|
|
10353
11116
|
200: {
|
|
10354
11117
|
data: {
|
|
11118
|
+
coverImageFile?: {
|
|
11119
|
+
id: string;
|
|
11120
|
+
fileName: string | null;
|
|
11121
|
+
mimeType: string | null;
|
|
11122
|
+
fileSize: number | null;
|
|
11123
|
+
publicUrl: string | null;
|
|
11124
|
+
} | undefined;
|
|
11125
|
+
coverImageFileId: string | null;
|
|
10355
11126
|
coverImageUrl: string;
|
|
10356
11127
|
createdAt: Date;
|
|
10357
11128
|
description: string | null;
|
|
@@ -10418,6 +11189,14 @@ declare const app: Elysia<"/api", {
|
|
|
10418
11189
|
headers: {};
|
|
10419
11190
|
response: {
|
|
10420
11191
|
200: {
|
|
11192
|
+
coverImageFile?: {
|
|
11193
|
+
id: string;
|
|
11194
|
+
fileName: string | null;
|
|
11195
|
+
mimeType: string | null;
|
|
11196
|
+
fileSize: number | null;
|
|
11197
|
+
publicUrl: string | null;
|
|
11198
|
+
} | undefined;
|
|
11199
|
+
coverImageFileId: string | null;
|
|
10421
11200
|
coverImageUrl: string;
|
|
10422
11201
|
createdAt: Date;
|
|
10423
11202
|
description: string | null;
|
|
@@ -10478,6 +11257,14 @@ declare const app: Elysia<"/api", {
|
|
|
10478
11257
|
headers: {};
|
|
10479
11258
|
response: {
|
|
10480
11259
|
200: {
|
|
11260
|
+
coverImageFile?: {
|
|
11261
|
+
id: string;
|
|
11262
|
+
fileName: string | null;
|
|
11263
|
+
mimeType: string | null;
|
|
11264
|
+
fileSize: number | null;
|
|
11265
|
+
publicUrl: string | null;
|
|
11266
|
+
} | undefined;
|
|
11267
|
+
coverImageFileId: string | null;
|
|
10481
11268
|
coverImageUrl: string;
|
|
10482
11269
|
createdAt: Date;
|
|
10483
11270
|
description: string | null;
|
|
@@ -10538,6 +11325,14 @@ declare const app: Elysia<"/api", {
|
|
|
10538
11325
|
headers: {};
|
|
10539
11326
|
response: {
|
|
10540
11327
|
200: {
|
|
11328
|
+
coverImageFile?: {
|
|
11329
|
+
id: string;
|
|
11330
|
+
fileName: string | null;
|
|
11331
|
+
mimeType: string | null;
|
|
11332
|
+
fileSize: number | null;
|
|
11333
|
+
publicUrl: string | null;
|
|
11334
|
+
} | undefined;
|
|
11335
|
+
coverImageFileId: string | null;
|
|
10541
11336
|
coverImageUrl: string;
|
|
10542
11337
|
createdAt: Date;
|
|
10543
11338
|
description: string | null;
|
|
@@ -17391,6 +18186,14 @@ declare const app: Elysia<"/api", {
|
|
|
17391
18186
|
response: {
|
|
17392
18187
|
200: {
|
|
17393
18188
|
data: {
|
|
18189
|
+
coverImageFile?: {
|
|
18190
|
+
id: string;
|
|
18191
|
+
fileName: string | null;
|
|
18192
|
+
mimeType: string | null;
|
|
18193
|
+
fileSize: number | null;
|
|
18194
|
+
publicUrl: string | null;
|
|
18195
|
+
} | undefined;
|
|
18196
|
+
coverImageFileId: string | null;
|
|
17394
18197
|
coverImageUrl: string;
|
|
17395
18198
|
description: string | null;
|
|
17396
18199
|
endAt: Date;
|
|
@@ -17444,6 +18247,14 @@ declare const app: Elysia<"/api", {
|
|
|
17444
18247
|
headers: {};
|
|
17445
18248
|
response: {
|
|
17446
18249
|
200: {
|
|
18250
|
+
coverImageFile?: {
|
|
18251
|
+
id: string;
|
|
18252
|
+
fileName: string | null;
|
|
18253
|
+
mimeType: string | null;
|
|
18254
|
+
fileSize: number | null;
|
|
18255
|
+
publicUrl: string | null;
|
|
18256
|
+
} | undefined;
|
|
18257
|
+
coverImageFileId: string | null;
|
|
17447
18258
|
coverImageUrl: string;
|
|
17448
18259
|
description: string | null;
|
|
17449
18260
|
endAt: Date;
|