@globalscoutme/api-client 1.1.23 → 1.1.24

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.
@@ -606,6 +606,105 @@ export type ImprovementAreaDto = {
606
606
  */
607
607
  observation: string;
608
608
  };
609
+ export type AiReportGsiSubcomponentDto = {
610
+ key: 'body_fit' | 'jump';
611
+ label: string;
612
+ score: number | null;
613
+ baseWeight: number;
614
+ effectiveWeight: number;
615
+ weight: number;
616
+ included: boolean;
617
+ status: 'included' | 'missing';
618
+ missingReason?: 'no_body_measurements' | 'not_enough_body_fields' | 'no_cmj' | 'no_speed' | 'invalid_source';
619
+ summary: string;
620
+ };
621
+ export type AiReportGsiComponentDto = {
622
+ key: 'video' | 'measurements' | 'speed';
623
+ label: string;
624
+ score: number | null;
625
+ baseWeight: number;
626
+ effectiveWeight: number;
627
+ weight: number;
628
+ included: boolean;
629
+ status: 'included' | 'missing';
630
+ missingReason?: 'no_body_measurements' | 'not_enough_body_fields' | 'no_cmj' | 'no_speed' | 'invalid_source';
631
+ summary: string;
632
+ subcomponents?: Array<AiReportGsiSubcomponentDto>;
633
+ };
634
+ export type AiReportVideoAttributeScoresDto = {
635
+ technical: number;
636
+ tactical: number;
637
+ physical: number;
638
+ mental: number;
639
+ creative: number;
640
+ };
641
+ export type AiReportGsiVideoSourceInputDto = {
642
+ analysisId: string;
643
+ createdAt: string;
644
+ };
645
+ export type AiReportGsiBodySourceInputDto = {
646
+ bodyMeasurementId: string;
647
+ sessionId: string | null;
648
+ sessionCreatedAt: string | null;
649
+ createdAt: string;
650
+ validFieldCount: number;
651
+ measurementCompletenessScore: number;
652
+ positionFitScore: number | null;
653
+ positionFitContributionScore: number;
654
+ positionFitStatus: 'available' | 'missing' | 'suppressed';
655
+ bodyFitScore: number;
656
+ };
657
+ export type AiReportGsiJumpSourceInputDto = {
658
+ jumpMeasurementId: string;
659
+ cmjSessionId: string;
660
+ cmjCreatedAt: string;
661
+ verticalJumpCm: number;
662
+ jumpScore: number;
663
+ };
664
+ export type AiReportGsiMeasurementsSourceInputsDto = {
665
+ body: AiReportGsiBodySourceInputDto | null;
666
+ jump: AiReportGsiJumpSourceInputDto | null;
667
+ };
668
+ export type AiReportGsiSpeedSourceInputDto = {
669
+ sprintResultId: string;
670
+ sprintCreatedAt: string;
671
+ maxSpeedKmh: number;
672
+ speedScore: number;
673
+ };
674
+ export type AiReportGsiSourceInputsDto = {
675
+ video: AiReportGsiVideoSourceInputDto;
676
+ measurements: AiReportGsiMeasurementsSourceInputsDto;
677
+ speed: AiReportGsiSpeedSourceInputDto | null;
678
+ };
679
+ export type AiReportGsiReasonDto = {
680
+ title: string;
681
+ detail: string;
682
+ source: 'video' | 'measurements' | 'body_fit' | 'jump' | 'speed' | 'report';
683
+ };
684
+ export type AiReportGsiRepairMetadataDto = {
685
+ version: string | null;
686
+ scoringRevision: string | null;
687
+ score: number | null;
688
+ computedAt: string | null;
689
+ repairedAt: string;
690
+ reason: 'missing_revision' | 'old_revision' | 'malformed_snapshot';
691
+ };
692
+ export type AiReportGsiSnapshotDto = {
693
+ version: 'gsi-v1';
694
+ scoringRevision: 'gsi-v1.1-flow-components';
695
+ score: number;
696
+ computedAt: string;
697
+ reportReferenceId: string;
698
+ reportCutoffAt: string;
699
+ dataCompleteness: number;
700
+ dataCompletenessTotal: number;
701
+ inputCoverage: number;
702
+ components: Array<AiReportGsiComponentDto>;
703
+ videoAttributes: AiReportVideoAttributeScoresDto | null;
704
+ sourceInputs: AiReportGsiSourceInputsDto;
705
+ improvementReasons: Array<AiReportGsiReasonDto>;
706
+ repairedFrom?: AiReportGsiRepairMetadataDto;
707
+ };
609
708
  export type PlayerReportResponseDto = {
610
709
  reportReferenceId: string;
611
710
  generatedAt?: string | null;
@@ -616,6 +715,10 @@ export type PlayerReportResponseDto = {
616
715
  */
617
716
  gsiScore?: number | null;
618
717
  improvementAreas?: Array<ImprovementAreaDto>;
718
+ /**
719
+ * GSI score breakdown by component (video, measurements, speed) with reasons
720
+ */
721
+ gsi?: AiReportGsiSnapshotDto | null;
619
722
  };
620
723
  export type PlayerClubDto = {
621
724
  clubName: string;
@@ -842,105 +945,6 @@ export type ReportPurchaseStatusResponseDto = {
842
945
  latestFulfilledPurchase?: ReportPurchaseDto | null;
843
946
  prerequisites: Array<ReportPrerequisiteDto>;
844
947
  };
845
- export type AiReportGsiSubcomponentDto = {
846
- key: 'body_fit' | 'jump';
847
- label: string;
848
- score: number | null;
849
- baseWeight: number;
850
- effectiveWeight: number;
851
- weight: number;
852
- included: boolean;
853
- status: 'included' | 'missing';
854
- missingReason?: 'no_body_measurements' | 'not_enough_body_fields' | 'no_cmj' | 'no_speed' | 'invalid_source';
855
- summary: string;
856
- };
857
- export type AiReportGsiComponentDto = {
858
- key: 'video' | 'measurements' | 'speed';
859
- label: string;
860
- score: number | null;
861
- baseWeight: number;
862
- effectiveWeight: number;
863
- weight: number;
864
- included: boolean;
865
- status: 'included' | 'missing';
866
- missingReason?: 'no_body_measurements' | 'not_enough_body_fields' | 'no_cmj' | 'no_speed' | 'invalid_source';
867
- summary: string;
868
- subcomponents?: Array<AiReportGsiSubcomponentDto>;
869
- };
870
- export type AiReportVideoAttributeScoresDto = {
871
- technical: number;
872
- tactical: number;
873
- physical: number;
874
- mental: number;
875
- creative: number;
876
- };
877
- export type AiReportGsiVideoSourceInputDto = {
878
- analysisId: string;
879
- createdAt: string;
880
- };
881
- export type AiReportGsiBodySourceInputDto = {
882
- bodyMeasurementId: string;
883
- sessionId: string | null;
884
- sessionCreatedAt: string | null;
885
- createdAt: string;
886
- validFieldCount: number;
887
- measurementCompletenessScore: number;
888
- positionFitScore: number | null;
889
- positionFitContributionScore: number;
890
- positionFitStatus: 'available' | 'missing' | 'suppressed';
891
- bodyFitScore: number;
892
- };
893
- export type AiReportGsiJumpSourceInputDto = {
894
- jumpMeasurementId: string;
895
- cmjSessionId: string;
896
- cmjCreatedAt: string;
897
- verticalJumpCm: number;
898
- jumpScore: number;
899
- };
900
- export type AiReportGsiMeasurementsSourceInputsDto = {
901
- body: AiReportGsiBodySourceInputDto | null;
902
- jump: AiReportGsiJumpSourceInputDto | null;
903
- };
904
- export type AiReportGsiSpeedSourceInputDto = {
905
- sprintResultId: string;
906
- sprintCreatedAt: string;
907
- maxSpeedKmh: number;
908
- speedScore: number;
909
- };
910
- export type AiReportGsiSourceInputsDto = {
911
- video: AiReportGsiVideoSourceInputDto;
912
- measurements: AiReportGsiMeasurementsSourceInputsDto;
913
- speed: AiReportGsiSpeedSourceInputDto | null;
914
- };
915
- export type AiReportGsiReasonDto = {
916
- title: string;
917
- detail: string;
918
- source: 'video' | 'measurements' | 'body_fit' | 'jump' | 'speed' | 'report';
919
- };
920
- export type AiReportGsiRepairMetadataDto = {
921
- version: string | null;
922
- scoringRevision: string | null;
923
- score: number | null;
924
- computedAt: string | null;
925
- repairedAt: string;
926
- reason: 'missing_revision' | 'old_revision' | 'malformed_snapshot';
927
- };
928
- export type AiReportGsiSnapshotDto = {
929
- version: 'gsi-v1';
930
- scoringRevision: 'gsi-v1.1-flow-components';
931
- score: number;
932
- computedAt: string;
933
- reportReferenceId: string;
934
- reportCutoffAt: string;
935
- dataCompleteness: number;
936
- dataCompletenessTotal: number;
937
- inputCoverage: number;
938
- components: Array<AiReportGsiComponentDto>;
939
- videoAttributes: AiReportVideoAttributeScoresDto | null;
940
- sourceInputs: AiReportGsiSourceInputsDto;
941
- improvementReasons: Array<AiReportGsiReasonDto>;
942
- repairedFrom?: AiReportGsiRepairMetadataDto;
943
- };
944
948
  export type ReportPurchaseHistoryItemDto = {
945
949
  id: string;
946
950
  paymentStatus: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalscoutme/api-client",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "GlobalScoutMe API client (generated)",
5
5
  "author": "GlobalScoutMe",
6
6
  "license": "UNLICENSED",
package/types.gen.ts CHANGED
@@ -652,6 +652,127 @@ export type ImprovementAreaDto = {
652
652
  observation: string;
653
653
  };
654
654
 
655
+ export type AiReportGsiSubcomponentDto = {
656
+ key: 'body_fit' | 'jump';
657
+ label: string;
658
+ score: number | null;
659
+ baseWeight: number;
660
+ effectiveWeight: number;
661
+ weight: number;
662
+ included: boolean;
663
+ status: 'included' | 'missing';
664
+ missingReason?:
665
+ | 'no_body_measurements'
666
+ | 'not_enough_body_fields'
667
+ | 'no_cmj'
668
+ | 'no_speed'
669
+ | 'invalid_source';
670
+ summary: string;
671
+ };
672
+
673
+ export type AiReportGsiComponentDto = {
674
+ key: 'video' | 'measurements' | 'speed';
675
+ label: string;
676
+ score: number | null;
677
+ baseWeight: number;
678
+ effectiveWeight: number;
679
+ weight: number;
680
+ included: boolean;
681
+ status: 'included' | 'missing';
682
+ missingReason?:
683
+ | 'no_body_measurements'
684
+ | 'not_enough_body_fields'
685
+ | 'no_cmj'
686
+ | 'no_speed'
687
+ | 'invalid_source';
688
+ summary: string;
689
+ subcomponents?: Array<AiReportGsiSubcomponentDto>;
690
+ };
691
+
692
+ export type AiReportVideoAttributeScoresDto = {
693
+ technical: number;
694
+ tactical: number;
695
+ physical: number;
696
+ mental: number;
697
+ creative: number;
698
+ };
699
+
700
+ export type AiReportGsiVideoSourceInputDto = {
701
+ analysisId: string;
702
+ createdAt: string;
703
+ };
704
+
705
+ export type AiReportGsiBodySourceInputDto = {
706
+ bodyMeasurementId: string;
707
+ sessionId: string | null;
708
+ sessionCreatedAt: string | null;
709
+ createdAt: string;
710
+ validFieldCount: number;
711
+ measurementCompletenessScore: number;
712
+ positionFitScore: number | null;
713
+ positionFitContributionScore: number;
714
+ positionFitStatus: 'available' | 'missing' | 'suppressed';
715
+ bodyFitScore: number;
716
+ };
717
+
718
+ export type AiReportGsiJumpSourceInputDto = {
719
+ jumpMeasurementId: string;
720
+ cmjSessionId: string;
721
+ cmjCreatedAt: string;
722
+ verticalJumpCm: number;
723
+ jumpScore: number;
724
+ };
725
+
726
+ export type AiReportGsiMeasurementsSourceInputsDto = {
727
+ body: AiReportGsiBodySourceInputDto | null;
728
+ jump: AiReportGsiJumpSourceInputDto | null;
729
+ };
730
+
731
+ export type AiReportGsiSpeedSourceInputDto = {
732
+ sprintResultId: string;
733
+ sprintCreatedAt: string;
734
+ maxSpeedKmh: number;
735
+ speedScore: number;
736
+ };
737
+
738
+ export type AiReportGsiSourceInputsDto = {
739
+ video: AiReportGsiVideoSourceInputDto;
740
+ measurements: AiReportGsiMeasurementsSourceInputsDto;
741
+ speed: AiReportGsiSpeedSourceInputDto | null;
742
+ };
743
+
744
+ export type AiReportGsiReasonDto = {
745
+ title: string;
746
+ detail: string;
747
+ source: 'video' | 'measurements' | 'body_fit' | 'jump' | 'speed' | 'report';
748
+ };
749
+
750
+ export type AiReportGsiRepairMetadataDto = {
751
+ version: string | null;
752
+ scoringRevision: string | null;
753
+ score: number | null;
754
+ computedAt: string | null;
755
+ repairedAt: string;
756
+ reason: 'missing_revision' | 'old_revision' | 'malformed_snapshot';
757
+ };
758
+
759
+ export type AiReportGsiSnapshotDto = {
760
+ version: 'gsi-v1';
761
+ scoringRevision: 'gsi-v1.1-flow-components';
762
+ score: number;
763
+ computedAt: string;
764
+ reportReferenceId: string;
765
+ reportCutoffAt: string;
766
+ dataCompleteness: number;
767
+ dataCompletenessTotal: number;
768
+ inputCoverage: number;
769
+ components: Array<AiReportGsiComponentDto>;
770
+ videoAttributes: AiReportVideoAttributeScoresDto | null;
771
+ sourceInputs: AiReportGsiSourceInputsDto;
772
+ improvementReasons: Array<AiReportGsiReasonDto>;
773
+ repairedFrom?: AiReportGsiRepairMetadataDto;
774
+ };
775
+
655
776
  export type PlayerReportResponseDto = {
656
777
  reportReferenceId: string;
657
778
  generatedAt?: string | null;
@@ -662,6 +783,10 @@ export type PlayerReportResponseDto = {
662
783
  */
663
784
  gsiScore?: number | null;
664
785
  improvementAreas?: Array<ImprovementAreaDto>;
786
+ /**
787
+ * GSI score breakdown by component (video, measurements, speed) with reasons
788
+ */
789
+ gsi?: AiReportGsiSnapshotDto | null;
665
790
  };
666
791
 
667
792
  export type PlayerClubDto = {
@@ -906,127 +1031,6 @@ export type ReportPurchaseStatusResponseDto = {
906
1031
  prerequisites: Array<ReportPrerequisiteDto>;
907
1032
  };
908
1033
 
909
- export type AiReportGsiSubcomponentDto = {
910
- key: 'body_fit' | 'jump';
911
- label: string;
912
- score: number | null;
913
- baseWeight: number;
914
- effectiveWeight: number;
915
- weight: number;
916
- included: boolean;
917
- status: 'included' | 'missing';
918
- missingReason?:
919
- | 'no_body_measurements'
920
- | 'not_enough_body_fields'
921
- | 'no_cmj'
922
- | 'no_speed'
923
- | 'invalid_source';
924
- summary: string;
925
- };
926
-
927
- export type AiReportGsiComponentDto = {
928
- key: 'video' | 'measurements' | 'speed';
929
- label: string;
930
- score: number | null;
931
- baseWeight: number;
932
- effectiveWeight: number;
933
- weight: number;
934
- included: boolean;
935
- status: 'included' | 'missing';
936
- missingReason?:
937
- | 'no_body_measurements'
938
- | 'not_enough_body_fields'
939
- | 'no_cmj'
940
- | 'no_speed'
941
- | 'invalid_source';
942
- summary: string;
943
- subcomponents?: Array<AiReportGsiSubcomponentDto>;
944
- };
945
-
946
- export type AiReportVideoAttributeScoresDto = {
947
- technical: number;
948
- tactical: number;
949
- physical: number;
950
- mental: number;
951
- creative: number;
952
- };
953
-
954
- export type AiReportGsiVideoSourceInputDto = {
955
- analysisId: string;
956
- createdAt: string;
957
- };
958
-
959
- export type AiReportGsiBodySourceInputDto = {
960
- bodyMeasurementId: string;
961
- sessionId: string | null;
962
- sessionCreatedAt: string | null;
963
- createdAt: string;
964
- validFieldCount: number;
965
- measurementCompletenessScore: number;
966
- positionFitScore: number | null;
967
- positionFitContributionScore: number;
968
- positionFitStatus: 'available' | 'missing' | 'suppressed';
969
- bodyFitScore: number;
970
- };
971
-
972
- export type AiReportGsiJumpSourceInputDto = {
973
- jumpMeasurementId: string;
974
- cmjSessionId: string;
975
- cmjCreatedAt: string;
976
- verticalJumpCm: number;
977
- jumpScore: number;
978
- };
979
-
980
- export type AiReportGsiMeasurementsSourceInputsDto = {
981
- body: AiReportGsiBodySourceInputDto | null;
982
- jump: AiReportGsiJumpSourceInputDto | null;
983
- };
984
-
985
- export type AiReportGsiSpeedSourceInputDto = {
986
- sprintResultId: string;
987
- sprintCreatedAt: string;
988
- maxSpeedKmh: number;
989
- speedScore: number;
990
- };
991
-
992
- export type AiReportGsiSourceInputsDto = {
993
- video: AiReportGsiVideoSourceInputDto;
994
- measurements: AiReportGsiMeasurementsSourceInputsDto;
995
- speed: AiReportGsiSpeedSourceInputDto | null;
996
- };
997
-
998
- export type AiReportGsiReasonDto = {
999
- title: string;
1000
- detail: string;
1001
- source: 'video' | 'measurements' | 'body_fit' | 'jump' | 'speed' | 'report';
1002
- };
1003
-
1004
- export type AiReportGsiRepairMetadataDto = {
1005
- version: string | null;
1006
- scoringRevision: string | null;
1007
- score: number | null;
1008
- computedAt: string | null;
1009
- repairedAt: string;
1010
- reason: 'missing_revision' | 'old_revision' | 'malformed_snapshot';
1011
- };
1012
-
1013
- export type AiReportGsiSnapshotDto = {
1014
- version: 'gsi-v1';
1015
- scoringRevision: 'gsi-v1.1-flow-components';
1016
- score: number;
1017
- computedAt: string;
1018
- reportReferenceId: string;
1019
- reportCutoffAt: string;
1020
- dataCompleteness: number;
1021
- dataCompletenessTotal: number;
1022
- inputCoverage: number;
1023
- components: Array<AiReportGsiComponentDto>;
1024
- videoAttributes: AiReportVideoAttributeScoresDto | null;
1025
- sourceInputs: AiReportGsiSourceInputsDto;
1026
- improvementReasons: Array<AiReportGsiReasonDto>;
1027
- repairedFrom?: AiReportGsiRepairMetadataDto;
1028
- };
1029
-
1030
1034
  export type ReportPurchaseHistoryItemDto = {
1031
1035
  id: string;
1032
1036
  paymentStatus: string;