@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.
- package/dist/admin/index.d.ts +247 -348
- package/dist/asset-convert-product/admin/router.d.ts +1 -13
- package/dist/auth/better-auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +5 -5
- package/dist/auth/roles.d.ts +15 -15
- package/dist/check-in/admin/reward.dto.schemas.d.ts +15 -130
- package/dist/check-in/admin/reward.router.d.ts +247 -348
- package/dist/check-in/admin/reward.service.d.ts +7 -56
- package/dist/check-in/admin/router.d.ts +247 -348
- package/dist/check-in/errors/index.d.ts +1 -0
- package/dist/check-in/errors/locales/zh.d.ts +1 -0
- package/dist/check-in/internal/reward-config.service.d.ts +31 -0
- package/dist/check-in/permissions.d.ts +1 -1
- package/dist/content-video/user/router.d.ts +1 -13
- package/dist/index.d.ts +247 -348
- package/dist/lock-activity/admin/router.d.ts +13 -1
- package/dist/lock-activity/user/router.d.ts +13 -1
- package/dist/news/admin/router.d.ts +13 -1
- package/dist/referral/admin/router.d.ts +1 -13
- package/package.json +1 -1
|
@@ -381,26 +381,8 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
381
381
|
"reward-plans": {};
|
|
382
382
|
} & {
|
|
383
383
|
"reward-plans": {
|
|
384
|
-
|
|
385
|
-
body: {
|
|
386
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
387
|
-
dailyPayoutAccountTypeId: string;
|
|
388
|
-
dailyRewardAmount: string;
|
|
389
|
-
dailyRewardCategory?: string | undefined;
|
|
390
|
-
isEnabled?: boolean | undefined;
|
|
391
|
-
name: string;
|
|
392
|
-
rewardAssetId: string;
|
|
393
|
-
rules?: {
|
|
394
|
-
ruleType: "consecutive" | "cumulative";
|
|
395
|
-
thresholdDays: number;
|
|
396
|
-
rewardAmount: string;
|
|
397
|
-
rewardCategory?: string | undefined;
|
|
398
|
-
payoutAccountTypeId: string;
|
|
399
|
-
isEnabled?: boolean | undefined;
|
|
400
|
-
sortOrder?: number | undefined;
|
|
401
|
-
}[] | undefined;
|
|
402
|
-
sortOrder?: number | undefined;
|
|
403
|
-
};
|
|
384
|
+
get: {
|
|
385
|
+
body: {};
|
|
404
386
|
params: {};
|
|
405
387
|
query: {};
|
|
406
388
|
headers: {};
|
|
@@ -491,23 +473,61 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
491
473
|
};
|
|
492
474
|
} & {
|
|
493
475
|
"reward-plans": {
|
|
494
|
-
|
|
495
|
-
body: {
|
|
496
|
-
params: {};
|
|
497
|
-
query: {
|
|
476
|
+
post: {
|
|
477
|
+
body: {
|
|
498
478
|
checkInType?: "app" | "meeting" | undefined;
|
|
479
|
+
dailyPayoutAccountTypeId: string;
|
|
480
|
+
dailyRewardAmount: string;
|
|
481
|
+
dailyRewardCategory?: string | undefined;
|
|
499
482
|
isEnabled?: boolean | undefined;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
483
|
+
name: string;
|
|
484
|
+
rewardAssetId: string;
|
|
485
|
+
rules?: {
|
|
486
|
+
isEnabled?: boolean | undefined;
|
|
487
|
+
payoutAccountTypeId: string;
|
|
488
|
+
rewardAmount: string;
|
|
489
|
+
rewardCategory?: string | undefined;
|
|
490
|
+
ruleType: "consecutive" | "cumulative";
|
|
491
|
+
sortOrder?: number | undefined;
|
|
492
|
+
thresholdDays: number;
|
|
493
|
+
}[] | undefined;
|
|
494
|
+
sortOrder?: number | undefined;
|
|
505
495
|
};
|
|
496
|
+
params: {};
|
|
497
|
+
query: {};
|
|
506
498
|
headers: {};
|
|
507
499
|
response: {
|
|
508
500
|
200: {
|
|
509
|
-
|
|
510
|
-
|
|
501
|
+
checkInType: "app" | "meeting";
|
|
502
|
+
createdAt: Date;
|
|
503
|
+
createdBy: string;
|
|
504
|
+
creator: {
|
|
505
|
+
id: string;
|
|
506
|
+
name: string;
|
|
507
|
+
email: string;
|
|
508
|
+
} | null;
|
|
509
|
+
dailyPayoutAccountType: {
|
|
510
|
+
id: string;
|
|
511
|
+
key: string;
|
|
512
|
+
name: string;
|
|
513
|
+
isActive: boolean;
|
|
514
|
+
};
|
|
515
|
+
dailyPayoutAccountTypeId: string;
|
|
516
|
+
dailyRewardAmount: string;
|
|
517
|
+
dailyRewardCategory: string;
|
|
518
|
+
id: string;
|
|
519
|
+
isEnabled: boolean;
|
|
520
|
+
name: string;
|
|
521
|
+
rewardAsset: {
|
|
522
|
+
id: string;
|
|
523
|
+
code: string;
|
|
524
|
+
name: string;
|
|
525
|
+
symbol: string | null;
|
|
526
|
+
precision: number;
|
|
527
|
+
isActive: boolean;
|
|
528
|
+
};
|
|
529
|
+
rewardAssetId: string;
|
|
530
|
+
rules: {
|
|
511
531
|
createdAt: Date;
|
|
512
532
|
createdBy: string;
|
|
513
533
|
creator: {
|
|
@@ -515,29 +535,21 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
515
535
|
name: string;
|
|
516
536
|
email: string;
|
|
517
537
|
} | null;
|
|
518
|
-
dailyPayoutAccountType: {
|
|
519
|
-
id: string;
|
|
520
|
-
key: string;
|
|
521
|
-
name: string;
|
|
522
|
-
isActive: boolean;
|
|
523
|
-
};
|
|
524
|
-
dailyPayoutAccountTypeId: string;
|
|
525
|
-
dailyRewardAmount: string;
|
|
526
|
-
dailyRewardCategory: string;
|
|
527
538
|
id: string;
|
|
528
539
|
isEnabled: boolean;
|
|
529
|
-
|
|
530
|
-
rewardAsset: {
|
|
540
|
+
payoutAccountType: {
|
|
531
541
|
id: string;
|
|
532
|
-
|
|
542
|
+
key: string;
|
|
533
543
|
name: string;
|
|
534
|
-
symbol: string | null;
|
|
535
|
-
precision: number;
|
|
536
544
|
isActive: boolean;
|
|
537
545
|
};
|
|
538
|
-
|
|
539
|
-
|
|
546
|
+
payoutAccountTypeId: string;
|
|
547
|
+
planId: string;
|
|
548
|
+
rewardAmount: string;
|
|
549
|
+
rewardCategory: string;
|
|
550
|
+
ruleType: "consecutive" | "cumulative";
|
|
540
551
|
sortOrder: number;
|
|
552
|
+
thresholdDays: number;
|
|
541
553
|
updatedAt: Date;
|
|
542
554
|
updatedBy: string | null;
|
|
543
555
|
updater: {
|
|
@@ -546,13 +558,14 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
546
558
|
email: string;
|
|
547
559
|
} | null;
|
|
548
560
|
}[];
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
561
|
+
sortOrder: number;
|
|
562
|
+
updatedAt: Date;
|
|
563
|
+
updatedBy: string | null;
|
|
564
|
+
updater: {
|
|
565
|
+
id: string;
|
|
566
|
+
name: string;
|
|
567
|
+
email: string;
|
|
568
|
+
} | null;
|
|
556
569
|
};
|
|
557
570
|
401: "Unauthorized";
|
|
558
571
|
403: "Forbidden: Admins only";
|
|
@@ -570,17 +583,52 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
570
583
|
};
|
|
571
584
|
} & {
|
|
572
585
|
"reward-plans": {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
586
|
+
patch: {
|
|
587
|
+
body: {
|
|
588
|
+
name?: string | undefined;
|
|
589
|
+
rewardAssetId?: string | undefined;
|
|
590
|
+
dailyRewardAmount?: string | undefined;
|
|
591
|
+
dailyRewardCategory?: string | undefined;
|
|
592
|
+
dailyPayoutAccountTypeId?: string | undefined;
|
|
593
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
594
|
+
isEnabled?: boolean | undefined;
|
|
595
|
+
sortOrder?: number | undefined;
|
|
596
|
+
};
|
|
597
|
+
params: {};
|
|
598
|
+
query: {};
|
|
599
|
+
headers: {};
|
|
600
|
+
response: {
|
|
601
|
+
200: {
|
|
602
|
+
checkInType: "app" | "meeting";
|
|
603
|
+
createdAt: Date;
|
|
604
|
+
createdBy: string;
|
|
605
|
+
creator: {
|
|
606
|
+
id: string;
|
|
607
|
+
name: string;
|
|
608
|
+
email: string;
|
|
609
|
+
} | null;
|
|
610
|
+
dailyPayoutAccountType: {
|
|
611
|
+
id: string;
|
|
612
|
+
key: string;
|
|
613
|
+
name: string;
|
|
614
|
+
isActive: boolean;
|
|
615
|
+
};
|
|
616
|
+
dailyPayoutAccountTypeId: string;
|
|
617
|
+
dailyRewardAmount: string;
|
|
618
|
+
dailyRewardCategory: string;
|
|
577
619
|
id: string;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
620
|
+
isEnabled: boolean;
|
|
621
|
+
name: string;
|
|
622
|
+
rewardAsset: {
|
|
623
|
+
id: string;
|
|
624
|
+
code: string;
|
|
625
|
+
name: string;
|
|
626
|
+
symbol: string | null;
|
|
627
|
+
precision: number;
|
|
628
|
+
isActive: boolean;
|
|
629
|
+
};
|
|
630
|
+
rewardAssetId: string;
|
|
631
|
+
rules: {
|
|
584
632
|
createdAt: Date;
|
|
585
633
|
createdBy: string;
|
|
586
634
|
creator: {
|
|
@@ -588,59 +636,21 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
588
636
|
name: string;
|
|
589
637
|
email: string;
|
|
590
638
|
} | null;
|
|
591
|
-
dailyPayoutAccountType: {
|
|
592
|
-
id: string;
|
|
593
|
-
key: string;
|
|
594
|
-
name: string;
|
|
595
|
-
isActive: boolean;
|
|
596
|
-
};
|
|
597
|
-
dailyPayoutAccountTypeId: string;
|
|
598
|
-
dailyRewardAmount: string;
|
|
599
|
-
dailyRewardCategory: string;
|
|
600
639
|
id: string;
|
|
601
640
|
isEnabled: boolean;
|
|
602
|
-
|
|
603
|
-
rewardAsset: {
|
|
641
|
+
payoutAccountType: {
|
|
604
642
|
id: string;
|
|
605
|
-
|
|
643
|
+
key: string;
|
|
606
644
|
name: string;
|
|
607
|
-
symbol: string | null;
|
|
608
|
-
precision: number;
|
|
609
645
|
isActive: boolean;
|
|
610
646
|
};
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
id: string;
|
|
617
|
-
name: string;
|
|
618
|
-
email: string;
|
|
619
|
-
} | null;
|
|
620
|
-
id: string;
|
|
621
|
-
isEnabled: boolean;
|
|
622
|
-
payoutAccountType: {
|
|
623
|
-
id: string;
|
|
624
|
-
key: string;
|
|
625
|
-
name: string;
|
|
626
|
-
isActive: boolean;
|
|
627
|
-
};
|
|
628
|
-
payoutAccountTypeId: string;
|
|
629
|
-
planId: string;
|
|
630
|
-
rewardAmount: string;
|
|
631
|
-
rewardCategory: string;
|
|
632
|
-
ruleType: "consecutive" | "cumulative";
|
|
633
|
-
sortOrder: number;
|
|
634
|
-
thresholdDays: number;
|
|
635
|
-
updatedAt: Date;
|
|
636
|
-
updatedBy: string | null;
|
|
637
|
-
updater: {
|
|
638
|
-
id: string;
|
|
639
|
-
name: string;
|
|
640
|
-
email: string;
|
|
641
|
-
} | null;
|
|
642
|
-
}[];
|
|
647
|
+
payoutAccountTypeId: string;
|
|
648
|
+
planId: string;
|
|
649
|
+
rewardAmount: string;
|
|
650
|
+
rewardCategory: string;
|
|
651
|
+
ruleType: "consecutive" | "cumulative";
|
|
643
652
|
sortOrder: number;
|
|
653
|
+
thresholdDays: number;
|
|
644
654
|
updatedAt: Date;
|
|
645
655
|
updatedBy: string | null;
|
|
646
656
|
updater: {
|
|
@@ -648,39 +658,69 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
648
658
|
name: string;
|
|
649
659
|
email: string;
|
|
650
660
|
} | null;
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
}[];
|
|
662
|
+
sortOrder: number;
|
|
663
|
+
updatedAt: Date;
|
|
664
|
+
updatedBy: string | null;
|
|
665
|
+
updater: {
|
|
666
|
+
id: string;
|
|
667
|
+
name: string;
|
|
668
|
+
email: string;
|
|
669
|
+
} | null;
|
|
670
|
+
};
|
|
671
|
+
401: "Unauthorized";
|
|
672
|
+
403: "Forbidden: Admins only";
|
|
673
|
+
422: {
|
|
674
|
+
type: 'validation';
|
|
675
|
+
on: string;
|
|
676
|
+
summary?: string;
|
|
677
|
+
message?: string;
|
|
678
|
+
found?: unknown;
|
|
679
|
+
property?: string;
|
|
680
|
+
expected?: string;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
} & {
|
|
686
|
+
"reward-plans": {
|
|
687
|
+
delete: {
|
|
688
|
+
body: {};
|
|
689
|
+
params: {};
|
|
690
|
+
query: {};
|
|
691
|
+
headers: {};
|
|
692
|
+
response: {
|
|
693
|
+
200: {
|
|
694
|
+
success: boolean;
|
|
695
|
+
};
|
|
696
|
+
401: "Unauthorized";
|
|
697
|
+
403: "Forbidden: Admins only";
|
|
698
|
+
422: {
|
|
699
|
+
type: 'validation';
|
|
700
|
+
on: string;
|
|
701
|
+
summary?: string;
|
|
702
|
+
message?: string;
|
|
703
|
+
found?: unknown;
|
|
704
|
+
property?: string;
|
|
705
|
+
expected?: string;
|
|
663
706
|
};
|
|
664
707
|
};
|
|
665
708
|
};
|
|
666
709
|
};
|
|
667
710
|
} & {
|
|
668
711
|
"reward-plans": {
|
|
669
|
-
|
|
670
|
-
|
|
712
|
+
rules: {
|
|
713
|
+
post: {
|
|
671
714
|
body: {
|
|
672
|
-
name?: string | undefined;
|
|
673
|
-
rewardAssetId?: string | undefined;
|
|
674
|
-
dailyRewardAmount?: string | undefined;
|
|
675
|
-
dailyRewardCategory?: string | undefined;
|
|
676
|
-
dailyPayoutAccountTypeId?: string | undefined;
|
|
677
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
678
715
|
isEnabled?: boolean | undefined;
|
|
716
|
+
payoutAccountTypeId: string;
|
|
717
|
+
rewardAmount: string;
|
|
718
|
+
rewardCategory?: string | undefined;
|
|
719
|
+
ruleType: "consecutive" | "cumulative";
|
|
679
720
|
sortOrder?: number | undefined;
|
|
721
|
+
thresholdDays: number;
|
|
680
722
|
};
|
|
681
|
-
params: {
|
|
682
|
-
id: string;
|
|
683
|
-
};
|
|
723
|
+
params: {};
|
|
684
724
|
query: {};
|
|
685
725
|
headers: {};
|
|
686
726
|
response: {
|
|
@@ -771,49 +811,20 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
771
811
|
};
|
|
772
812
|
} & {
|
|
773
813
|
"reward-plans": {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
params: {
|
|
778
|
-
id: string;
|
|
779
|
-
};
|
|
780
|
-
query: {};
|
|
781
|
-
headers: {};
|
|
782
|
-
response: {
|
|
783
|
-
200: {
|
|
784
|
-
success: boolean;
|
|
785
|
-
};
|
|
786
|
-
401: "Unauthorized";
|
|
787
|
-
403: "Forbidden: Admins only";
|
|
788
|
-
422: {
|
|
789
|
-
type: 'validation';
|
|
790
|
-
on: string;
|
|
791
|
-
summary?: string;
|
|
792
|
-
message?: string;
|
|
793
|
-
found?: unknown;
|
|
794
|
-
property?: string;
|
|
795
|
-
expected?: string;
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
} & {
|
|
802
|
-
"reward-plans": {
|
|
803
|
-
":id": {
|
|
804
|
-
rules: {
|
|
805
|
-
post: {
|
|
814
|
+
rules: {
|
|
815
|
+
":ruleId": {
|
|
816
|
+
patch: {
|
|
806
817
|
body: {
|
|
807
|
-
ruleType: "consecutive" | "cumulative";
|
|
808
|
-
thresholdDays: number;
|
|
809
|
-
rewardAmount: string;
|
|
810
|
-
rewardCategory?: string | undefined;
|
|
811
|
-
payoutAccountTypeId: string;
|
|
812
818
|
isEnabled?: boolean | undefined;
|
|
819
|
+
payoutAccountTypeId?: string | undefined;
|
|
820
|
+
rewardAmount?: string | undefined;
|
|
821
|
+
rewardCategory?: string | undefined;
|
|
822
|
+
ruleType?: "consecutive" | "cumulative" | undefined;
|
|
813
823
|
sortOrder?: number | undefined;
|
|
824
|
+
thresholdDays?: number | undefined;
|
|
814
825
|
};
|
|
815
826
|
params: {
|
|
816
|
-
|
|
827
|
+
ruleId: string;
|
|
817
828
|
};
|
|
818
829
|
query: {};
|
|
819
830
|
headers: {};
|
|
@@ -906,129 +917,47 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
906
917
|
};
|
|
907
918
|
} & {
|
|
908
919
|
"reward-plans": {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
ruleId: string;
|
|
925
|
-
};
|
|
926
|
-
query: {};
|
|
927
|
-
headers: {};
|
|
928
|
-
response: {
|
|
929
|
-
200: {
|
|
930
|
-
checkInType: "app" | "meeting";
|
|
931
|
-
createdAt: Date;
|
|
932
|
-
createdBy: string;
|
|
933
|
-
creator: {
|
|
934
|
-
id: string;
|
|
935
|
-
name: string;
|
|
936
|
-
email: string;
|
|
937
|
-
} | null;
|
|
938
|
-
dailyPayoutAccountType: {
|
|
939
|
-
id: string;
|
|
940
|
-
key: string;
|
|
941
|
-
name: string;
|
|
942
|
-
isActive: boolean;
|
|
943
|
-
};
|
|
944
|
-
dailyPayoutAccountTypeId: string;
|
|
945
|
-
dailyRewardAmount: string;
|
|
946
|
-
dailyRewardCategory: string;
|
|
920
|
+
rules: {
|
|
921
|
+
":ruleId": {
|
|
922
|
+
delete: {
|
|
923
|
+
body: {};
|
|
924
|
+
params: {
|
|
925
|
+
ruleId: string;
|
|
926
|
+
};
|
|
927
|
+
query: {};
|
|
928
|
+
headers: {};
|
|
929
|
+
response: {
|
|
930
|
+
200: {
|
|
931
|
+
checkInType: "app" | "meeting";
|
|
932
|
+
createdAt: Date;
|
|
933
|
+
createdBy: string;
|
|
934
|
+
creator: {
|
|
947
935
|
id: string;
|
|
948
|
-
isEnabled: boolean;
|
|
949
936
|
name: string;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
};
|
|
958
|
-
rewardAssetId: string;
|
|
959
|
-
rules: {
|
|
960
|
-
createdAt: Date;
|
|
961
|
-
createdBy: string;
|
|
962
|
-
creator: {
|
|
963
|
-
id: string;
|
|
964
|
-
name: string;
|
|
965
|
-
email: string;
|
|
966
|
-
} | null;
|
|
967
|
-
id: string;
|
|
968
|
-
isEnabled: boolean;
|
|
969
|
-
payoutAccountType: {
|
|
970
|
-
id: string;
|
|
971
|
-
key: string;
|
|
972
|
-
name: string;
|
|
973
|
-
isActive: boolean;
|
|
974
|
-
};
|
|
975
|
-
payoutAccountTypeId: string;
|
|
976
|
-
planId: string;
|
|
977
|
-
rewardAmount: string;
|
|
978
|
-
rewardCategory: string;
|
|
979
|
-
ruleType: "consecutive" | "cumulative";
|
|
980
|
-
sortOrder: number;
|
|
981
|
-
thresholdDays: number;
|
|
982
|
-
updatedAt: Date;
|
|
983
|
-
updatedBy: string | null;
|
|
984
|
-
updater: {
|
|
985
|
-
id: string;
|
|
986
|
-
name: string;
|
|
987
|
-
email: string;
|
|
988
|
-
} | null;
|
|
989
|
-
}[];
|
|
990
|
-
sortOrder: number;
|
|
991
|
-
updatedAt: Date;
|
|
992
|
-
updatedBy: string | null;
|
|
993
|
-
updater: {
|
|
994
|
-
id: string;
|
|
995
|
-
name: string;
|
|
996
|
-
email: string;
|
|
997
|
-
} | null;
|
|
998
|
-
};
|
|
999
|
-
401: "Unauthorized";
|
|
1000
|
-
403: "Forbidden: Admins only";
|
|
1001
|
-
422: {
|
|
1002
|
-
type: 'validation';
|
|
1003
|
-
on: string;
|
|
1004
|
-
summary?: string;
|
|
1005
|
-
message?: string;
|
|
1006
|
-
found?: unknown;
|
|
1007
|
-
property?: string;
|
|
1008
|
-
expected?: string;
|
|
937
|
+
email: string;
|
|
938
|
+
} | null;
|
|
939
|
+
dailyPayoutAccountType: {
|
|
940
|
+
id: string;
|
|
941
|
+
key: string;
|
|
942
|
+
name: string;
|
|
943
|
+
isActive: boolean;
|
|
1009
944
|
};
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
-
};
|
|
1016
|
-
} & {
|
|
1017
|
-
"reward-plans": {
|
|
1018
|
-
":id": {
|
|
1019
|
-
rules: {
|
|
1020
|
-
":ruleId": {
|
|
1021
|
-
delete: {
|
|
1022
|
-
body: {};
|
|
1023
|
-
params: {
|
|
945
|
+
dailyPayoutAccountTypeId: string;
|
|
946
|
+
dailyRewardAmount: string;
|
|
947
|
+
dailyRewardCategory: string;
|
|
1024
948
|
id: string;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
949
|
+
isEnabled: boolean;
|
|
950
|
+
name: string;
|
|
951
|
+
rewardAsset: {
|
|
952
|
+
id: string;
|
|
953
|
+
code: string;
|
|
954
|
+
name: string;
|
|
955
|
+
symbol: string | null;
|
|
956
|
+
precision: number;
|
|
957
|
+
isActive: boolean;
|
|
958
|
+
};
|
|
959
|
+
rewardAssetId: string;
|
|
960
|
+
rules: {
|
|
1032
961
|
createdAt: Date;
|
|
1033
962
|
createdBy: string;
|
|
1034
963
|
creator: {
|
|
@@ -1036,59 +965,21 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
1036
965
|
name: string;
|
|
1037
966
|
email: string;
|
|
1038
967
|
} | null;
|
|
1039
|
-
dailyPayoutAccountType: {
|
|
1040
|
-
id: string;
|
|
1041
|
-
key: string;
|
|
1042
|
-
name: string;
|
|
1043
|
-
isActive: boolean;
|
|
1044
|
-
};
|
|
1045
|
-
dailyPayoutAccountTypeId: string;
|
|
1046
|
-
dailyRewardAmount: string;
|
|
1047
|
-
dailyRewardCategory: string;
|
|
1048
968
|
id: string;
|
|
1049
969
|
isEnabled: boolean;
|
|
1050
|
-
|
|
1051
|
-
rewardAsset: {
|
|
970
|
+
payoutAccountType: {
|
|
1052
971
|
id: string;
|
|
1053
|
-
|
|
972
|
+
key: string;
|
|
1054
973
|
name: string;
|
|
1055
|
-
symbol: string | null;
|
|
1056
|
-
precision: number;
|
|
1057
974
|
isActive: boolean;
|
|
1058
975
|
};
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
id: string;
|
|
1065
|
-
name: string;
|
|
1066
|
-
email: string;
|
|
1067
|
-
} | null;
|
|
1068
|
-
id: string;
|
|
1069
|
-
isEnabled: boolean;
|
|
1070
|
-
payoutAccountType: {
|
|
1071
|
-
id: string;
|
|
1072
|
-
key: string;
|
|
1073
|
-
name: string;
|
|
1074
|
-
isActive: boolean;
|
|
1075
|
-
};
|
|
1076
|
-
payoutAccountTypeId: string;
|
|
1077
|
-
planId: string;
|
|
1078
|
-
rewardAmount: string;
|
|
1079
|
-
rewardCategory: string;
|
|
1080
|
-
ruleType: "consecutive" | "cumulative";
|
|
1081
|
-
sortOrder: number;
|
|
1082
|
-
thresholdDays: number;
|
|
1083
|
-
updatedAt: Date;
|
|
1084
|
-
updatedBy: string | null;
|
|
1085
|
-
updater: {
|
|
1086
|
-
id: string;
|
|
1087
|
-
name: string;
|
|
1088
|
-
email: string;
|
|
1089
|
-
} | null;
|
|
1090
|
-
}[];
|
|
976
|
+
payoutAccountTypeId: string;
|
|
977
|
+
planId: string;
|
|
978
|
+
rewardAmount: string;
|
|
979
|
+
rewardCategory: string;
|
|
980
|
+
ruleType: "consecutive" | "cumulative";
|
|
1091
981
|
sortOrder: number;
|
|
982
|
+
thresholdDays: number;
|
|
1092
983
|
updatedAt: Date;
|
|
1093
984
|
updatedBy: string | null;
|
|
1094
985
|
updater: {
|
|
@@ -1096,18 +987,26 @@ export declare const checkInRewardPlanAdminRouter: Elysia<"/reward-plans", {
|
|
|
1096
987
|
name: string;
|
|
1097
988
|
email: string;
|
|
1098
989
|
} | null;
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
990
|
+
}[];
|
|
991
|
+
sortOrder: number;
|
|
992
|
+
updatedAt: Date;
|
|
993
|
+
updatedBy: string | null;
|
|
994
|
+
updater: {
|
|
995
|
+
id: string;
|
|
996
|
+
name: string;
|
|
997
|
+
email: string;
|
|
998
|
+
} | null;
|
|
999
|
+
};
|
|
1000
|
+
401: "Unauthorized";
|
|
1001
|
+
403: "Forbidden: Admins only";
|
|
1002
|
+
422: {
|
|
1003
|
+
type: 'validation';
|
|
1004
|
+
on: string;
|
|
1005
|
+
summary?: string;
|
|
1006
|
+
message?: string;
|
|
1007
|
+
found?: unknown;
|
|
1008
|
+
property?: string;
|
|
1009
|
+
expected?: string;
|
|
1111
1010
|
};
|
|
1112
1011
|
};
|
|
1113
1012
|
};
|