@globalscoutme/api-client 1.1.9 → 1.1.11

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/tsconfig.json CHANGED
@@ -8,8 +8,7 @@
8
8
  "strict": false,
9
9
  "skipLibCheck": true,
10
10
  "esModuleInterop": true,
11
- "allowSyntheticDefaultImports": true,
12
- "noEmitOnError": false
11
+ "allowSyntheticDefaultImports": true
13
12
  },
14
13
  "include": ["./**/*.ts"],
15
14
  "exclude": ["dist", "node_modules"]
package/types.gen.ts CHANGED
@@ -139,17 +139,21 @@ export type DashboardResponseDto = {
139
139
  */
140
140
  gsiVideoScore?: number | null;
141
141
  /**
142
- * GSI athletic subscore, 0-10
142
+ * GSI measurements subscore, 0-10
143
143
  */
144
- gsiAthleticScore?: number | null;
144
+ gsiMeasurementsScore?: number | null;
145
145
  /**
146
- * GSI body-fit subscore, 0-10
146
+ * GSI speed subscore, 0-10
147
147
  */
148
- gsiBodyScore?: number | null;
148
+ gsiSpeedScore?: number | null;
149
149
  /**
150
150
  * Number of score components included in the current GSI
151
151
  */
152
152
  gsiDataCompleteness?: number | null;
153
+ /**
154
+ * Current GSI scoring revision
155
+ */
156
+ gsiScoringRevision?: string | null;
153
157
  /**
154
158
  * When the GSI profile score was last computed
155
159
  */
@@ -737,13 +741,41 @@ export type ReportPurchaseStatusResponseDto = {
737
741
  prerequisites: Array<ReportPrerequisiteDto>;
738
742
  };
739
743
 
744
+ export type AiReportGsiSubcomponentDto = {
745
+ key: 'body_fit' | 'jump';
746
+ label: string;
747
+ score: number | null;
748
+ baseWeight: number;
749
+ effectiveWeight: number;
750
+ weight: number;
751
+ included: boolean;
752
+ status: 'included' | 'missing';
753
+ missingReason?:
754
+ | 'no_body_measurements'
755
+ | 'not_enough_body_fields'
756
+ | 'no_cmj'
757
+ | 'no_speed'
758
+ | 'invalid_source';
759
+ summary: string;
760
+ };
761
+
740
762
  export type AiReportGsiComponentDto = {
741
- key: 'video' | 'athletic' | 'body';
763
+ key: 'video' | 'measurements' | 'speed';
742
764
  label: string;
743
765
  score: number | null;
766
+ baseWeight: number;
767
+ effectiveWeight: number;
744
768
  weight: number;
745
769
  included: boolean;
770
+ status: 'included' | 'missing';
771
+ missingReason?:
772
+ | 'no_body_measurements'
773
+ | 'not_enough_body_fields'
774
+ | 'no_cmj'
775
+ | 'no_speed'
776
+ | 'invalid_source';
746
777
  summary: string;
778
+ subcomponents?: Array<AiReportGsiSubcomponentDto>;
747
779
  };
748
780
 
749
781
  export type AiReportVideoAttributeScoresDto = {
@@ -759,43 +791,75 @@ export type AiReportGsiVideoSourceInputDto = {
759
791
  createdAt: string;
760
792
  };
761
793
 
762
- export type AiReportGsiAthleticSourceInputDto = {
763
- cmjSessionId: string | null;
764
- cmjCreatedAt: string | null;
765
- sprintResultId: string | null;
766
- sprintCreatedAt: string | null;
767
- verticalJumpCm: number | null;
768
- maxSpeedKmh: number | null;
769
- };
770
-
771
794
  export type AiReportGsiBodySourceInputDto = {
772
- sessionId: string;
795
+ bodyMeasurementId: string;
796
+ sessionId: string | null;
797
+ sessionCreatedAt: string | null;
773
798
  createdAt: string;
774
- fitScore: number;
799
+ validFieldCount: number;
800
+ measurementCompletenessScore: number;
801
+ positionFitScore: number | null;
802
+ positionFitContributionScore: number;
803
+ positionFitStatus: 'available' | 'missing' | 'suppressed';
804
+ bodyFitScore: number;
805
+ };
806
+
807
+ export type AiReportGsiJumpSourceInputDto = {
808
+ jumpMeasurementId: string;
809
+ cmjSessionId: string;
810
+ cmjCreatedAt: string;
811
+ verticalJumpCm: number;
812
+ jumpScore: number;
813
+ };
814
+
815
+ export type AiReportGsiMeasurementsSourceInputsDto = {
816
+ body: AiReportGsiBodySourceInputDto | null;
817
+ jump: AiReportGsiJumpSourceInputDto | null;
818
+ };
819
+
820
+ export type AiReportGsiSpeedSourceInputDto = {
821
+ sprintResultId: string;
822
+ sprintCreatedAt: string;
823
+ maxSpeedKmh: number;
824
+ speedScore: number;
775
825
  };
776
826
 
777
827
  export type AiReportGsiSourceInputsDto = {
778
828
  video: AiReportGsiVideoSourceInputDto;
779
- athletic: AiReportGsiAthleticSourceInputDto | null;
780
- body: AiReportGsiBodySourceInputDto | null;
829
+ measurements: AiReportGsiMeasurementsSourceInputsDto;
830
+ speed: AiReportGsiSpeedSourceInputDto | null;
781
831
  };
782
832
 
783
833
  export type AiReportGsiReasonDto = {
784
834
  title: string;
785
835
  detail: string;
786
- source: 'video' | 'athletic' | 'body' | 'report';
836
+ source: 'video' | 'measurements' | 'body_fit' | 'jump' | 'speed' | 'report';
837
+ };
838
+
839
+ export type AiReportGsiRepairMetadataDto = {
840
+ version: string | null;
841
+ scoringRevision: string | null;
842
+ score: number | null;
843
+ computedAt: string | null;
844
+ repairedAt: string;
845
+ reason: 'missing_revision' | 'old_revision' | 'malformed_snapshot';
787
846
  };
788
847
 
789
848
  export type AiReportGsiSnapshotDto = {
790
849
  version: 'gsi-v1';
850
+ scoringRevision: 'gsi-v1.1-flow-components';
791
851
  score: number;
792
852
  computedAt: string;
793
853
  reportReferenceId: string;
854
+ reportCutoffAt: string;
794
855
  dataCompleteness: number;
856
+ dataCompletenessTotal: number;
857
+ inputCoverage: number;
795
858
  components: Array<AiReportGsiComponentDto>;
796
859
  videoAttributes: AiReportVideoAttributeScoresDto | null;
797
860
  sourceInputs: AiReportGsiSourceInputsDto;
798
861
  improvementReasons: Array<AiReportGsiReasonDto>;
862
+ repairedFrom?: AiReportGsiRepairMetadataDto;
799
863
  };
800
864
 
801
865
  export type ReportPurchaseHistoryItemDto = {
@@ -1988,13 +2052,7 @@ export type StartKycResponseDto = {
1988
2052
  * SmileID job identifier
1989
2053
  */
1990
2054
  jobId?: string | null;
1991
- status:
1992
- | 'pending'
1993
- | 'capture_started'
1994
- | 'processing'
1995
- | 'approved'
1996
- | 'rejected'
1997
- | 'blocked';
2055
+ status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
1998
2056
  /**
1999
2057
  * Number of retries left before the account is blocked
2000
2058
  */
@@ -2029,13 +2087,7 @@ export type SmileLinkResponseDto = {
2029
2087
  * SmileID job identifier
2030
2088
  */
2031
2089
  jobId?: string | null;
2032
- status:
2033
- | 'pending'
2034
- | 'capture_started'
2035
- | 'processing'
2036
- | 'approved'
2037
- | 'rejected'
2038
- | 'blocked';
2090
+ status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
2039
2091
  /**
2040
2092
  * Number of retries left before the account is blocked
2041
2093
  */
@@ -2080,13 +2132,7 @@ export type MarkSubmittedKycRequestDto = {
2080
2132
  };
2081
2133
 
2082
2134
  export type KycStatusDto = {
2083
- status:
2084
- | 'pending'
2085
- | 'capture_started'
2086
- | 'processing'
2087
- | 'approved'
2088
- | 'rejected'
2089
- | 'blocked';
2135
+ status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
2090
2136
  retryCount: number;
2091
2137
  retriesRemaining: number;
2092
2138
  /**
@@ -2106,11 +2152,14 @@ export type CancelKycRequestDto = {
2106
2152
  jobId: string;
2107
2153
  };
2108
2154
 
2155
+ export type TrainingMediaTypeDto = 'video' | 'image' | 'text';
2156
+
2109
2157
  export type TrainingContentListItemDto = {
2110
2158
  id: string;
2111
2159
  title: string;
2112
2160
  summary?: string | null;
2113
2161
  thumbnailUrl?: string | null;
2162
+ mediaType: TrainingMediaTypeDto;
2114
2163
  durationSeconds?: number | null;
2115
2164
  categoryCode: string;
2116
2165
  difficultyLevel: string;
@@ -2141,6 +2190,7 @@ export type TrainingContentDetailDto = {
2141
2190
  description?: string | null;
2142
2191
  thumbnailUrl?: string | null;
2143
2192
  videoUrl?: string | null;
2193
+ mediaType: TrainingMediaTypeDto;
2144
2194
  durationSeconds?: number | null;
2145
2195
  categoryCode: string;
2146
2196
  difficultyLevel: string;
@@ -2377,8 +2427,7 @@ export type GetApiAuthMeResponses = {
2377
2427
  200: AuthMeResponseDto;
2378
2428
  };
2379
2429
 
2380
- export type GetApiAuthMeResponse =
2381
- GetApiAuthMeResponses[keyof GetApiAuthMeResponses];
2430
+ export type GetApiAuthMeResponse = GetApiAuthMeResponses[keyof GetApiAuthMeResponses];
2382
2431
 
2383
2432
  export type DeleteApiPlayersMeData = {
2384
2433
  body?: never;
@@ -2419,8 +2468,7 @@ export type GetApiPlayersMeResponses = {
2419
2468
  200: PlayerResponseDto;
2420
2469
  };
2421
2470
 
2422
- export type GetApiPlayersMeResponse =
2423
- GetApiPlayersMeResponses[keyof GetApiPlayersMeResponses];
2471
+ export type GetApiPlayersMeResponse = GetApiPlayersMeResponses[keyof GetApiPlayersMeResponses];
2424
2472
 
2425
2473
  export type PatchApiPlayersMeData = {
2426
2474
  body: UpdatePlayerDto;
@@ -2670,8 +2718,7 @@ export type GetApiBillingMeResponses = {
2670
2718
  200: BillingEntitlementResponseDto;
2671
2719
  };
2672
2720
 
2673
- export type GetApiBillingMeResponse =
2674
- GetApiBillingMeResponses[keyof GetApiBillingMeResponses];
2721
+ export type GetApiBillingMeResponse = GetApiBillingMeResponses[keyof GetApiBillingMeResponses];
2675
2722
 
2676
2723
  export type PostApiBillingAccessCodesRedeemData = {
2677
2724
  body: RedeemAccessCodeDto;
@@ -3032,8 +3079,7 @@ export type GetApiProfileMeResponses = {
3032
3079
  200: ProfileResponseDto;
3033
3080
  };
3034
3081
 
3035
- export type GetApiProfileMeResponse =
3036
- GetApiProfileMeResponses[keyof GetApiProfileMeResponses];
3082
+ export type GetApiProfileMeResponse = GetApiProfileMeResponses[keyof GetApiProfileMeResponses];
3037
3083
 
3038
3084
  export type PutApiProfileMeData = {
3039
3085
  body: UpdateProfileDto;
@@ -3061,8 +3107,7 @@ export type PutApiProfileMeResponses = {
3061
3107
  200: ProfileResponseDto;
3062
3108
  };
3063
3109
 
3064
- export type PutApiProfileMeResponse =
3065
- PutApiProfileMeResponses[keyof PutApiProfileMeResponses];
3110
+ export type PutApiProfileMeResponse = PutApiProfileMeResponses[keyof PutApiProfileMeResponses];
3066
3111
 
3067
3112
  export type GetApiAchievementsData = {
3068
3113
  body?: never;
@@ -3197,8 +3242,7 @@ export type GetApiChallengesResponses = {
3197
3242
  200: Array<ChallengeCatalogDto>;
3198
3243
  };
3199
3244
 
3200
- export type GetApiChallengesResponse =
3201
- GetApiChallengesResponses[keyof GetApiChallengesResponses];
3245
+ export type GetApiChallengesResponse = GetApiChallengesResponses[keyof GetApiChallengesResponses];
3202
3246
 
3203
3247
  export type GetApiChallengesMeData = {
3204
3248
  body?: never;
@@ -3243,8 +3287,7 @@ export type GetApiClubsMeResponses = {
3243
3287
  200: Array<ClubResponseDto>;
3244
3288
  };
3245
3289
 
3246
- export type GetApiClubsMeResponse =
3247
- GetApiClubsMeResponses[keyof GetApiClubsMeResponses];
3290
+ export type GetApiClubsMeResponse = GetApiClubsMeResponses[keyof GetApiClubsMeResponses];
3248
3291
 
3249
3292
  export type PostApiClubsMeData = {
3250
3293
  body: CreateClubDto;
@@ -3264,8 +3307,7 @@ export type PostApiClubsMeResponses = {
3264
3307
  201: ClubResponseDto;
3265
3308
  };
3266
3309
 
3267
- export type PostApiClubsMeResponse =
3268
- PostApiClubsMeResponses[keyof PostApiClubsMeResponses];
3310
+ export type PostApiClubsMeResponse = PostApiClubsMeResponses[keyof PostApiClubsMeResponses];
3269
3311
 
3270
3312
  export type DeleteApiClubsMeByIdData = {
3271
3313
  body?: never;
@@ -3369,8 +3411,7 @@ export type PostApiDocumentsResponses = {
3369
3411
  201: DocumentResponseDto;
3370
3412
  };
3371
3413
 
3372
- export type PostApiDocumentsResponse =
3373
- PostApiDocumentsResponses[keyof PostApiDocumentsResponses];
3414
+ export type PostApiDocumentsResponse = PostApiDocumentsResponses[keyof PostApiDocumentsResponses];
3374
3415
 
3375
3416
  export type DeleteApiDocumentsByIdData = {
3376
3417
  body?: never;
@@ -3831,8 +3872,7 @@ export type PostApiKycStartResponses = {
3831
3872
  200: StartKycResponseDto;
3832
3873
  };
3833
3874
 
3834
- export type PostApiKycStartResponse =
3835
- PostApiKycStartResponses[keyof PostApiKycStartResponses];
3875
+ export type PostApiKycStartResponse = PostApiKycStartResponses[keyof PostApiKycStartResponses];
3836
3876
 
3837
3877
  export type PostApiKycSmileLinkData = {
3838
3878
  body: SmileLinkRequestDto;
@@ -3931,8 +3971,7 @@ export type PostApiKycCancelResponses = {
3931
3971
  200: KycStatusDto;
3932
3972
  };
3933
3973
 
3934
- export type PostApiKycCancelResponse =
3935
- PostApiKycCancelResponses[keyof PostApiKycCancelResponses];
3974
+ export type PostApiKycCancelResponse = PostApiKycCancelResponses[keyof PostApiKycCancelResponses];
3936
3975
 
3937
3976
  export type GetApiKycStatusByUserIdData = {
3938
3977
  body?: never;
@@ -4004,8 +4043,7 @@ export type GetApiTrainingResponses = {
4004
4043
  200: PaginatedTrainingContentDto;
4005
4044
  };
4006
4045
 
4007
- export type GetApiTrainingResponse =
4008
- GetApiTrainingResponses[keyof GetApiTrainingResponses];
4046
+ export type GetApiTrainingResponse = GetApiTrainingResponses[keyof GetApiTrainingResponses];
4009
4047
 
4010
4048
  export type GetApiTrainingByIdData = {
4011
4049
  body?: never;
@@ -4057,8 +4095,7 @@ export type GetApiVideosMeResponses = {
4057
4095
  200: Array<VideoResponseDto>;
4058
4096
  };
4059
4097
 
4060
- export type GetApiVideosMeResponse =
4061
- GetApiVideosMeResponses[keyof GetApiVideosMeResponses];
4098
+ export type GetApiVideosMeResponse = GetApiVideosMeResponses[keyof GetApiVideosMeResponses];
4062
4099
 
4063
4100
  export type PostApiVideosData = {
4064
4101
  body: CreateVideoDto;
@@ -4085,8 +4122,7 @@ export type PostApiVideosResponses = {
4085
4122
  201: VideoResponseDto;
4086
4123
  };
4087
4124
 
4088
- export type PostApiVideosResponse =
4089
- PostApiVideosResponses[keyof PostApiVideosResponses];
4125
+ export type PostApiVideosResponse = PostApiVideosResponses[keyof PostApiVideosResponses];
4090
4126
 
4091
4127
  export type GetApiVideosByIdPlayUrlData = {
4092
4128
  body?: never;