@athos-sdk/api-types 2.0.0 → 2.0.1
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/index.d.mts +42 -211
- package/dist/index.d.ts +42 -211
- package/dist/index.js +121 -166
- package/dist/index.mjs +121 -166
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -537,246 +537,77 @@ type RouteMethod<R> = R extends RouteDef<infer M, unknown, unknown> ? M : never;
|
|
|
537
537
|
type RoutePath<R> = R extends RouteDef<HttpMethod, unknown, unknown> ? R['path'] : never;
|
|
538
538
|
declare const apiRoutes: {
|
|
539
539
|
readonly auth: {
|
|
540
|
-
readonly register:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
_req: RegisterDto;
|
|
544
|
-
_res: RegisterResponse;
|
|
545
|
-
};
|
|
546
|
-
readonly login: {
|
|
547
|
-
method: "POST";
|
|
548
|
-
path: string;
|
|
549
|
-
_req: LoginDto;
|
|
550
|
-
_res: AuthResponse;
|
|
551
|
-
};
|
|
552
|
-
readonly deleteMe: {
|
|
553
|
-
method: "DELETE";
|
|
554
|
-
path: string;
|
|
555
|
-
};
|
|
540
|
+
readonly register: RouteDef<"POST", RegisterDto, RegisterResponse>;
|
|
541
|
+
readonly login: RouteDef<"POST", LoginDto, AuthResponse>;
|
|
542
|
+
readonly deleteMe: RouteDef<"DELETE", void, SuccessResponse>;
|
|
556
543
|
};
|
|
557
544
|
readonly members: {
|
|
558
|
-
readonly join:
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
_res: MemberWithGym;
|
|
563
|
-
};
|
|
564
|
-
readonly me: {
|
|
565
|
-
method: "GET";
|
|
566
|
-
path: string;
|
|
567
|
-
};
|
|
568
|
-
readonly updateMe: {
|
|
569
|
-
method: "PATCH";
|
|
570
|
-
path: string;
|
|
571
|
-
_req: UpdateMemberProfileDto;
|
|
572
|
-
_res: GetMeResponse;
|
|
573
|
-
};
|
|
574
|
-
readonly meStats: {
|
|
575
|
-
method: "GET";
|
|
576
|
-
path: string;
|
|
577
|
-
};
|
|
545
|
+
readonly join: RouteDef<"POST", JoinGymDto, MemberWithGym>;
|
|
546
|
+
readonly me: RouteDef<"GET", void, GetMeResponse>;
|
|
547
|
+
readonly updateMe: RouteDef<"PATCH", UpdateMemberProfileDto, GetMeResponse>;
|
|
548
|
+
readonly meStats: RouteDef<"GET", void, MemberStatsResponse>;
|
|
578
549
|
};
|
|
579
550
|
readonly checkIns: {
|
|
580
|
-
readonly create:
|
|
581
|
-
method: "POST";
|
|
582
|
-
path: string;
|
|
583
|
-
_req: CreateCheckInDto;
|
|
584
|
-
_res: CheckIn;
|
|
585
|
-
};
|
|
551
|
+
readonly create: RouteDef<"POST", CreateCheckInDto, CheckIn>;
|
|
586
552
|
};
|
|
587
553
|
readonly leaderboards: {
|
|
588
|
-
readonly list:
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
readonly create: {
|
|
593
|
-
method: "POST";
|
|
594
|
-
path: string;
|
|
595
|
-
_req: CreateLeaderboardDto;
|
|
596
|
-
_res: Leaderboard;
|
|
597
|
-
};
|
|
598
|
-
readonly submitEntry: {
|
|
599
|
-
method: "POST";
|
|
600
|
-
path: string;
|
|
601
|
-
_req: SubmitEntryDto;
|
|
602
|
-
_res: unknown;
|
|
603
|
-
};
|
|
604
|
-
readonly reviewEntry: {
|
|
605
|
-
method: "POST";
|
|
606
|
-
path: string;
|
|
607
|
-
_req: ReviewEntryDto;
|
|
608
|
-
_res: SuccessResponse;
|
|
609
|
-
};
|
|
554
|
+
readonly list: RouteDef<"GET", void, LeaderboardWithEntries[]>;
|
|
555
|
+
readonly create: RouteDef<"POST", CreateLeaderboardDto, Leaderboard>;
|
|
556
|
+
readonly submitEntry: RouteDef<"POST", SubmitEntryDto, unknown>;
|
|
557
|
+
readonly reviewEntry: RouteDef<"POST", ReviewEntryDto, SuccessResponse>;
|
|
610
558
|
};
|
|
611
559
|
readonly challenges: {
|
|
612
|
-
readonly create:
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
};
|
|
618
|
-
readonly createOccurrence: {
|
|
619
|
-
method: "POST";
|
|
620
|
-
path: string;
|
|
621
|
-
_req: CreateOccurrenceDto;
|
|
622
|
-
_res: ChallengeOccurrence;
|
|
623
|
-
};
|
|
624
|
-
readonly meActive: {
|
|
625
|
-
method: "GET";
|
|
626
|
-
path: string;
|
|
627
|
-
};
|
|
628
|
-
readonly join: {
|
|
629
|
-
method: "POST";
|
|
630
|
-
path: string;
|
|
631
|
-
_req: JoinChallengeDto;
|
|
632
|
-
_res: unknown;
|
|
633
|
-
};
|
|
634
|
-
readonly complete: {
|
|
635
|
-
method: "POST";
|
|
636
|
-
path: string;
|
|
637
|
-
_req: CompleteChallengeDto;
|
|
638
|
-
_res: unknown;
|
|
639
|
-
};
|
|
560
|
+
readonly create: RouteDef<"POST", CreateChallengeDto, Challenge>;
|
|
561
|
+
readonly createOccurrence: RouteDef<"POST", CreateOccurrenceDto, ChallengeOccurrence>;
|
|
562
|
+
readonly meActive: RouteDef<"GET", void, ChallengeOccurrenceWithDetails[]>;
|
|
563
|
+
readonly join: RouteDef<"POST", JoinChallengeDto, unknown>;
|
|
564
|
+
readonly complete: RouteDef<"POST", CompleteChallengeDto, unknown>;
|
|
640
565
|
};
|
|
641
566
|
readonly bookings: {
|
|
642
|
-
readonly create:
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
_res: Booking;
|
|
647
|
-
};
|
|
648
|
-
readonly updateStatus: {
|
|
649
|
-
method: "POST";
|
|
650
|
-
path: string;
|
|
651
|
-
_req: UpdateBookingStatusDto;
|
|
652
|
-
_res: Booking;
|
|
653
|
-
};
|
|
654
|
-
readonly meMember: {
|
|
655
|
-
method: "GET";
|
|
656
|
-
path: string;
|
|
657
|
-
};
|
|
658
|
-
readonly meExpert: {
|
|
659
|
-
method: "GET";
|
|
660
|
-
path: string;
|
|
661
|
-
};
|
|
567
|
+
readonly create: RouteDef<"POST", CreateBookingDto, Booking>;
|
|
568
|
+
readonly updateStatus: RouteDef<"POST", UpdateBookingStatusDto, Booking>;
|
|
569
|
+
readonly meMember: RouteDef<"GET", void, Booking[]>;
|
|
570
|
+
readonly meExpert: RouteDef<"GET", void, Booking[]>;
|
|
662
571
|
};
|
|
663
572
|
readonly rewards: {
|
|
664
|
-
readonly list:
|
|
665
|
-
|
|
666
|
-
path: string;
|
|
667
|
-
};
|
|
668
|
-
readonly me: {
|
|
669
|
-
method: "GET";
|
|
670
|
-
path: string;
|
|
671
|
-
};
|
|
573
|
+
readonly list: RouteDef<"GET", void, Reward[]>;
|
|
574
|
+
readonly me: RouteDef<"GET", void, MemberReward[]>;
|
|
672
575
|
};
|
|
673
576
|
readonly experts: {
|
|
674
|
-
readonly list:
|
|
675
|
-
|
|
676
|
-
path: string;
|
|
677
|
-
};
|
|
678
|
-
readonly me: {
|
|
679
|
-
method: "GET";
|
|
680
|
-
path: string;
|
|
681
|
-
};
|
|
577
|
+
readonly list: RouteDef<"GET", void, Expert[]>;
|
|
578
|
+
readonly me: RouteDef<"GET", void, Expert>;
|
|
682
579
|
readonly availability: (id: string) => RouteDef<"GET", void, ExpertAvailabilityResponse>;
|
|
683
|
-
readonly meAvailability:
|
|
684
|
-
|
|
685
|
-
path: string;
|
|
686
|
-
_req: SetAvailabilityDto;
|
|
687
|
-
_res: ExpertAvailability[];
|
|
688
|
-
};
|
|
689
|
-
readonly meAvailabilityExceptions: {
|
|
690
|
-
method: "POST";
|
|
691
|
-
path: string;
|
|
692
|
-
_req: SetAvailabilityExceptionDto;
|
|
693
|
-
_res: unknown;
|
|
694
|
-
};
|
|
580
|
+
readonly meAvailability: RouteDef<"POST", SetAvailabilityDto, ExpertAvailability[]>;
|
|
581
|
+
readonly meAvailabilityExceptions: RouteDef<"POST", SetAvailabilityExceptionDto, unknown>;
|
|
695
582
|
};
|
|
696
583
|
readonly notifications: {
|
|
697
|
-
readonly me:
|
|
698
|
-
|
|
699
|
-
path: string;
|
|
700
|
-
};
|
|
701
|
-
readonly meReadAll: {
|
|
702
|
-
method: "POST";
|
|
703
|
-
path: string;
|
|
704
|
-
};
|
|
584
|
+
readonly me: RouteDef<"GET", void, Notification[]>;
|
|
585
|
+
readonly meReadAll: RouteDef<"POST", void, SuccessResponse>;
|
|
705
586
|
};
|
|
706
587
|
readonly activities: {
|
|
707
|
-
readonly me:
|
|
708
|
-
method: "GET";
|
|
709
|
-
path: string;
|
|
710
|
-
};
|
|
588
|
+
readonly me: RouteDef<"GET", void, Activity[]>;
|
|
711
589
|
};
|
|
712
590
|
readonly media: {
|
|
713
|
-
readonly upload:
|
|
714
|
-
method: "POST";
|
|
715
|
-
path: string;
|
|
716
|
-
_res: Media;
|
|
717
|
-
};
|
|
591
|
+
readonly upload: RouteDef<"POST", unknown, Media>;
|
|
718
592
|
readonly delete: (id: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
719
593
|
};
|
|
720
594
|
readonly admin: {
|
|
721
|
-
readonly summary:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
readonly
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
};
|
|
729
|
-
readonly updateGym: {
|
|
730
|
-
method: "PATCH";
|
|
731
|
-
path: string;
|
|
732
|
-
_req: UpdateGymDto;
|
|
733
|
-
_res: Gym;
|
|
734
|
-
};
|
|
735
|
-
readonly members: {
|
|
736
|
-
method: "GET";
|
|
737
|
-
path: string;
|
|
738
|
-
};
|
|
739
|
-
readonly createMember: {
|
|
740
|
-
method: "POST";
|
|
741
|
-
path: string;
|
|
742
|
-
_req: AddMemberDto;
|
|
743
|
-
_res: MemberWithUser;
|
|
744
|
-
};
|
|
745
|
-
readonly rewards: {
|
|
746
|
-
method: "GET";
|
|
747
|
-
path: string;
|
|
748
|
-
};
|
|
749
|
-
readonly createReward: {
|
|
750
|
-
method: "POST";
|
|
751
|
-
path: string;
|
|
752
|
-
_req: CreateRewardDto;
|
|
753
|
-
_res: Reward;
|
|
754
|
-
};
|
|
595
|
+
readonly summary: RouteDef<"GET", void, AdminSummaryResponse>;
|
|
596
|
+
readonly gym: RouteDef<"GET", void, Gym>;
|
|
597
|
+
readonly updateGym: RouteDef<"PATCH", UpdateGymDto, Gym>;
|
|
598
|
+
readonly members: RouteDef<"GET", void, MemberWithUser[]>;
|
|
599
|
+
readonly createMember: RouteDef<"POST", AddMemberDto, MemberWithUser>;
|
|
600
|
+
readonly rewards: RouteDef<"GET", void, Reward[]>;
|
|
601
|
+
readonly createReward: RouteDef<"POST", CreateRewardDto, Reward>;
|
|
755
602
|
readonly updateReward: (id: string) => RouteDef<"PATCH", UpdateRewardDto, Reward>;
|
|
756
603
|
readonly deleteReward: (id: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
757
|
-
readonly staff:
|
|
758
|
-
|
|
759
|
-
path: string;
|
|
760
|
-
};
|
|
761
|
-
readonly createStaff: {
|
|
762
|
-
method: "POST";
|
|
763
|
-
path: string;
|
|
764
|
-
_req: AddStaffDto;
|
|
765
|
-
_res: StaffWithUser;
|
|
766
|
-
};
|
|
604
|
+
readonly staff: RouteDef<"GET", void, StaffWithUser[]>;
|
|
605
|
+
readonly createStaff: RouteDef<"POST", AddStaffDto, StaffWithUser>;
|
|
767
606
|
readonly deleteStaff: (userId: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
768
607
|
readonly disableStaff: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
|
769
608
|
readonly enableStaff: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
|
770
|
-
readonly experts:
|
|
771
|
-
|
|
772
|
-
path: string;
|
|
773
|
-
};
|
|
774
|
-
readonly createExpert: {
|
|
775
|
-
method: "POST";
|
|
776
|
-
path: string;
|
|
777
|
-
_req: AddExpertDto;
|
|
778
|
-
_res: ExpertWithUser;
|
|
779
|
-
};
|
|
609
|
+
readonly experts: RouteDef<"GET", void, ExpertWithUser[]>;
|
|
610
|
+
readonly createExpert: RouteDef<"POST", AddExpertDto, ExpertWithUser>;
|
|
780
611
|
readonly deleteExpert: (userId: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
781
612
|
readonly disableExpert: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
|
782
613
|
readonly enableExpert: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -537,246 +537,77 @@ type RouteMethod<R> = R extends RouteDef<infer M, unknown, unknown> ? M : never;
|
|
|
537
537
|
type RoutePath<R> = R extends RouteDef<HttpMethod, unknown, unknown> ? R['path'] : never;
|
|
538
538
|
declare const apiRoutes: {
|
|
539
539
|
readonly auth: {
|
|
540
|
-
readonly register:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
_req: RegisterDto;
|
|
544
|
-
_res: RegisterResponse;
|
|
545
|
-
};
|
|
546
|
-
readonly login: {
|
|
547
|
-
method: "POST";
|
|
548
|
-
path: string;
|
|
549
|
-
_req: LoginDto;
|
|
550
|
-
_res: AuthResponse;
|
|
551
|
-
};
|
|
552
|
-
readonly deleteMe: {
|
|
553
|
-
method: "DELETE";
|
|
554
|
-
path: string;
|
|
555
|
-
};
|
|
540
|
+
readonly register: RouteDef<"POST", RegisterDto, RegisterResponse>;
|
|
541
|
+
readonly login: RouteDef<"POST", LoginDto, AuthResponse>;
|
|
542
|
+
readonly deleteMe: RouteDef<"DELETE", void, SuccessResponse>;
|
|
556
543
|
};
|
|
557
544
|
readonly members: {
|
|
558
|
-
readonly join:
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
_res: MemberWithGym;
|
|
563
|
-
};
|
|
564
|
-
readonly me: {
|
|
565
|
-
method: "GET";
|
|
566
|
-
path: string;
|
|
567
|
-
};
|
|
568
|
-
readonly updateMe: {
|
|
569
|
-
method: "PATCH";
|
|
570
|
-
path: string;
|
|
571
|
-
_req: UpdateMemberProfileDto;
|
|
572
|
-
_res: GetMeResponse;
|
|
573
|
-
};
|
|
574
|
-
readonly meStats: {
|
|
575
|
-
method: "GET";
|
|
576
|
-
path: string;
|
|
577
|
-
};
|
|
545
|
+
readonly join: RouteDef<"POST", JoinGymDto, MemberWithGym>;
|
|
546
|
+
readonly me: RouteDef<"GET", void, GetMeResponse>;
|
|
547
|
+
readonly updateMe: RouteDef<"PATCH", UpdateMemberProfileDto, GetMeResponse>;
|
|
548
|
+
readonly meStats: RouteDef<"GET", void, MemberStatsResponse>;
|
|
578
549
|
};
|
|
579
550
|
readonly checkIns: {
|
|
580
|
-
readonly create:
|
|
581
|
-
method: "POST";
|
|
582
|
-
path: string;
|
|
583
|
-
_req: CreateCheckInDto;
|
|
584
|
-
_res: CheckIn;
|
|
585
|
-
};
|
|
551
|
+
readonly create: RouteDef<"POST", CreateCheckInDto, CheckIn>;
|
|
586
552
|
};
|
|
587
553
|
readonly leaderboards: {
|
|
588
|
-
readonly list:
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
readonly create: {
|
|
593
|
-
method: "POST";
|
|
594
|
-
path: string;
|
|
595
|
-
_req: CreateLeaderboardDto;
|
|
596
|
-
_res: Leaderboard;
|
|
597
|
-
};
|
|
598
|
-
readonly submitEntry: {
|
|
599
|
-
method: "POST";
|
|
600
|
-
path: string;
|
|
601
|
-
_req: SubmitEntryDto;
|
|
602
|
-
_res: unknown;
|
|
603
|
-
};
|
|
604
|
-
readonly reviewEntry: {
|
|
605
|
-
method: "POST";
|
|
606
|
-
path: string;
|
|
607
|
-
_req: ReviewEntryDto;
|
|
608
|
-
_res: SuccessResponse;
|
|
609
|
-
};
|
|
554
|
+
readonly list: RouteDef<"GET", void, LeaderboardWithEntries[]>;
|
|
555
|
+
readonly create: RouteDef<"POST", CreateLeaderboardDto, Leaderboard>;
|
|
556
|
+
readonly submitEntry: RouteDef<"POST", SubmitEntryDto, unknown>;
|
|
557
|
+
readonly reviewEntry: RouteDef<"POST", ReviewEntryDto, SuccessResponse>;
|
|
610
558
|
};
|
|
611
559
|
readonly challenges: {
|
|
612
|
-
readonly create:
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
};
|
|
618
|
-
readonly createOccurrence: {
|
|
619
|
-
method: "POST";
|
|
620
|
-
path: string;
|
|
621
|
-
_req: CreateOccurrenceDto;
|
|
622
|
-
_res: ChallengeOccurrence;
|
|
623
|
-
};
|
|
624
|
-
readonly meActive: {
|
|
625
|
-
method: "GET";
|
|
626
|
-
path: string;
|
|
627
|
-
};
|
|
628
|
-
readonly join: {
|
|
629
|
-
method: "POST";
|
|
630
|
-
path: string;
|
|
631
|
-
_req: JoinChallengeDto;
|
|
632
|
-
_res: unknown;
|
|
633
|
-
};
|
|
634
|
-
readonly complete: {
|
|
635
|
-
method: "POST";
|
|
636
|
-
path: string;
|
|
637
|
-
_req: CompleteChallengeDto;
|
|
638
|
-
_res: unknown;
|
|
639
|
-
};
|
|
560
|
+
readonly create: RouteDef<"POST", CreateChallengeDto, Challenge>;
|
|
561
|
+
readonly createOccurrence: RouteDef<"POST", CreateOccurrenceDto, ChallengeOccurrence>;
|
|
562
|
+
readonly meActive: RouteDef<"GET", void, ChallengeOccurrenceWithDetails[]>;
|
|
563
|
+
readonly join: RouteDef<"POST", JoinChallengeDto, unknown>;
|
|
564
|
+
readonly complete: RouteDef<"POST", CompleteChallengeDto, unknown>;
|
|
640
565
|
};
|
|
641
566
|
readonly bookings: {
|
|
642
|
-
readonly create:
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
_res: Booking;
|
|
647
|
-
};
|
|
648
|
-
readonly updateStatus: {
|
|
649
|
-
method: "POST";
|
|
650
|
-
path: string;
|
|
651
|
-
_req: UpdateBookingStatusDto;
|
|
652
|
-
_res: Booking;
|
|
653
|
-
};
|
|
654
|
-
readonly meMember: {
|
|
655
|
-
method: "GET";
|
|
656
|
-
path: string;
|
|
657
|
-
};
|
|
658
|
-
readonly meExpert: {
|
|
659
|
-
method: "GET";
|
|
660
|
-
path: string;
|
|
661
|
-
};
|
|
567
|
+
readonly create: RouteDef<"POST", CreateBookingDto, Booking>;
|
|
568
|
+
readonly updateStatus: RouteDef<"POST", UpdateBookingStatusDto, Booking>;
|
|
569
|
+
readonly meMember: RouteDef<"GET", void, Booking[]>;
|
|
570
|
+
readonly meExpert: RouteDef<"GET", void, Booking[]>;
|
|
662
571
|
};
|
|
663
572
|
readonly rewards: {
|
|
664
|
-
readonly list:
|
|
665
|
-
|
|
666
|
-
path: string;
|
|
667
|
-
};
|
|
668
|
-
readonly me: {
|
|
669
|
-
method: "GET";
|
|
670
|
-
path: string;
|
|
671
|
-
};
|
|
573
|
+
readonly list: RouteDef<"GET", void, Reward[]>;
|
|
574
|
+
readonly me: RouteDef<"GET", void, MemberReward[]>;
|
|
672
575
|
};
|
|
673
576
|
readonly experts: {
|
|
674
|
-
readonly list:
|
|
675
|
-
|
|
676
|
-
path: string;
|
|
677
|
-
};
|
|
678
|
-
readonly me: {
|
|
679
|
-
method: "GET";
|
|
680
|
-
path: string;
|
|
681
|
-
};
|
|
577
|
+
readonly list: RouteDef<"GET", void, Expert[]>;
|
|
578
|
+
readonly me: RouteDef<"GET", void, Expert>;
|
|
682
579
|
readonly availability: (id: string) => RouteDef<"GET", void, ExpertAvailabilityResponse>;
|
|
683
|
-
readonly meAvailability:
|
|
684
|
-
|
|
685
|
-
path: string;
|
|
686
|
-
_req: SetAvailabilityDto;
|
|
687
|
-
_res: ExpertAvailability[];
|
|
688
|
-
};
|
|
689
|
-
readonly meAvailabilityExceptions: {
|
|
690
|
-
method: "POST";
|
|
691
|
-
path: string;
|
|
692
|
-
_req: SetAvailabilityExceptionDto;
|
|
693
|
-
_res: unknown;
|
|
694
|
-
};
|
|
580
|
+
readonly meAvailability: RouteDef<"POST", SetAvailabilityDto, ExpertAvailability[]>;
|
|
581
|
+
readonly meAvailabilityExceptions: RouteDef<"POST", SetAvailabilityExceptionDto, unknown>;
|
|
695
582
|
};
|
|
696
583
|
readonly notifications: {
|
|
697
|
-
readonly me:
|
|
698
|
-
|
|
699
|
-
path: string;
|
|
700
|
-
};
|
|
701
|
-
readonly meReadAll: {
|
|
702
|
-
method: "POST";
|
|
703
|
-
path: string;
|
|
704
|
-
};
|
|
584
|
+
readonly me: RouteDef<"GET", void, Notification[]>;
|
|
585
|
+
readonly meReadAll: RouteDef<"POST", void, SuccessResponse>;
|
|
705
586
|
};
|
|
706
587
|
readonly activities: {
|
|
707
|
-
readonly me:
|
|
708
|
-
method: "GET";
|
|
709
|
-
path: string;
|
|
710
|
-
};
|
|
588
|
+
readonly me: RouteDef<"GET", void, Activity[]>;
|
|
711
589
|
};
|
|
712
590
|
readonly media: {
|
|
713
|
-
readonly upload:
|
|
714
|
-
method: "POST";
|
|
715
|
-
path: string;
|
|
716
|
-
_res: Media;
|
|
717
|
-
};
|
|
591
|
+
readonly upload: RouteDef<"POST", unknown, Media>;
|
|
718
592
|
readonly delete: (id: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
719
593
|
};
|
|
720
594
|
readonly admin: {
|
|
721
|
-
readonly summary:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
readonly
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
};
|
|
729
|
-
readonly updateGym: {
|
|
730
|
-
method: "PATCH";
|
|
731
|
-
path: string;
|
|
732
|
-
_req: UpdateGymDto;
|
|
733
|
-
_res: Gym;
|
|
734
|
-
};
|
|
735
|
-
readonly members: {
|
|
736
|
-
method: "GET";
|
|
737
|
-
path: string;
|
|
738
|
-
};
|
|
739
|
-
readonly createMember: {
|
|
740
|
-
method: "POST";
|
|
741
|
-
path: string;
|
|
742
|
-
_req: AddMemberDto;
|
|
743
|
-
_res: MemberWithUser;
|
|
744
|
-
};
|
|
745
|
-
readonly rewards: {
|
|
746
|
-
method: "GET";
|
|
747
|
-
path: string;
|
|
748
|
-
};
|
|
749
|
-
readonly createReward: {
|
|
750
|
-
method: "POST";
|
|
751
|
-
path: string;
|
|
752
|
-
_req: CreateRewardDto;
|
|
753
|
-
_res: Reward;
|
|
754
|
-
};
|
|
595
|
+
readonly summary: RouteDef<"GET", void, AdminSummaryResponse>;
|
|
596
|
+
readonly gym: RouteDef<"GET", void, Gym>;
|
|
597
|
+
readonly updateGym: RouteDef<"PATCH", UpdateGymDto, Gym>;
|
|
598
|
+
readonly members: RouteDef<"GET", void, MemberWithUser[]>;
|
|
599
|
+
readonly createMember: RouteDef<"POST", AddMemberDto, MemberWithUser>;
|
|
600
|
+
readonly rewards: RouteDef<"GET", void, Reward[]>;
|
|
601
|
+
readonly createReward: RouteDef<"POST", CreateRewardDto, Reward>;
|
|
755
602
|
readonly updateReward: (id: string) => RouteDef<"PATCH", UpdateRewardDto, Reward>;
|
|
756
603
|
readonly deleteReward: (id: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
757
|
-
readonly staff:
|
|
758
|
-
|
|
759
|
-
path: string;
|
|
760
|
-
};
|
|
761
|
-
readonly createStaff: {
|
|
762
|
-
method: "POST";
|
|
763
|
-
path: string;
|
|
764
|
-
_req: AddStaffDto;
|
|
765
|
-
_res: StaffWithUser;
|
|
766
|
-
};
|
|
604
|
+
readonly staff: RouteDef<"GET", void, StaffWithUser[]>;
|
|
605
|
+
readonly createStaff: RouteDef<"POST", AddStaffDto, StaffWithUser>;
|
|
767
606
|
readonly deleteStaff: (userId: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
768
607
|
readonly disableStaff: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
|
769
608
|
readonly enableStaff: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
|
770
|
-
readonly experts:
|
|
771
|
-
|
|
772
|
-
path: string;
|
|
773
|
-
};
|
|
774
|
-
readonly createExpert: {
|
|
775
|
-
method: "POST";
|
|
776
|
-
path: string;
|
|
777
|
-
_req: AddExpertDto;
|
|
778
|
-
_res: ExpertWithUser;
|
|
779
|
-
};
|
|
609
|
+
readonly experts: RouteDef<"GET", void, ExpertWithUser[]>;
|
|
610
|
+
readonly createExpert: RouteDef<"POST", AddExpertDto, ExpertWithUser>;
|
|
780
611
|
readonly deleteExpert: (userId: string) => RouteDef<"DELETE", void, SuccessResponse>;
|
|
781
612
|
readonly disableExpert: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|
|
782
613
|
readonly enableExpert: (userId: string) => RouteDef<"PATCH", void, SuccessResponse>;
|