@globalscoutme/api-client 1.2.5 → 1.2.7

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/README.md CHANGED
@@ -126,7 +126,7 @@ await Body.createMeasurement({ body: { heightCm: 180 } });
126
126
  const positions = await Index.getIndexItems({
127
127
  path: { tableName: 'positions' },
128
128
  });
129
- const countries = await Index.getCountries();
129
+ const countries = await Index.getCountries({ query: { lang: currentLocale } });
130
130
  // Returns [{ code: 'BR', name: 'Brazil', nationalityName: 'Brazilian', flagEmoji: '🇧🇷' }, ...]
131
131
 
132
132
  // Dashboard (scout/club portal — single aggregated call)
@@ -545,6 +545,7 @@ export type MeasurementSessionDto = {
545
545
  id: string;
546
546
  bodyMeasurementId: string;
547
547
  jumpMeasurementId: string;
548
+ locale: 'en' | 'es' | 'fr' | 'de' | 'ro';
548
549
  contractVersion?: string | null;
549
550
  schemaVersion?: string | null;
550
551
  rulesetId?: string | null;
@@ -2757,6 +2758,9 @@ export type PostApiPlayersSearchResponses = {
2757
2758
  export type PostApiPlayersSearchResponse = PostApiPlayersSearchResponses[keyof PostApiPlayersSearchResponses];
2758
2759
  export type GetApiPlayersByIdMeasurementsData = {
2759
2760
  body?: never;
2761
+ headers?: {
2762
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
2763
+ };
2760
2764
  path: {
2761
2765
  id: string;
2762
2766
  };
@@ -2801,6 +2805,9 @@ export type GetApiPlayersByIdVideoMetricsResponses = {
2801
2805
  export type GetApiPlayersByIdVideoMetricsResponse = GetApiPlayersByIdVideoMetricsResponses[keyof GetApiPlayersByIdVideoMetricsResponses];
2802
2806
  export type GetApiPlayersByIdReportPdfData = {
2803
2807
  body?: never;
2808
+ headers?: {
2809
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
2810
+ };
2804
2811
  path: {
2805
2812
  id: string;
2806
2813
  };
@@ -2823,6 +2830,9 @@ export type GetApiPlayersByIdReportPdfResponses = {
2823
2830
  export type GetApiPlayersByIdReportPdfResponse = GetApiPlayersByIdReportPdfResponses[keyof GetApiPlayersByIdReportPdfResponses];
2824
2831
  export type GetApiPlayersByIdReportData = {
2825
2832
  body?: never;
2833
+ headers?: {
2834
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
2835
+ };
2826
2836
  path: {
2827
2837
  id: string;
2828
2838
  };
@@ -2885,6 +2895,9 @@ export type PostApiPlayersByIdWatchlistResponses = {
2885
2895
  export type PostApiPlayersByIdWatchlistResponse = PostApiPlayersByIdWatchlistResponses[keyof PostApiPlayersByIdWatchlistResponses];
2886
2896
  export type GetApiPlayersByIdData = {
2887
2897
  body?: never;
2898
+ headers?: {
2899
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
2900
+ };
2888
2901
  path: {
2889
2902
  id: string;
2890
2903
  };
@@ -3138,6 +3151,9 @@ export type PostApiStorageUploadUrlResponses = {
3138
3151
  export type PostApiStorageUploadUrlResponse = PostApiStorageUploadUrlResponses[keyof PostApiStorageUploadUrlResponses];
3139
3152
  export type GetApiMeasurementsProfileMeData = {
3140
3153
  body?: never;
3154
+ headers?: {
3155
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3156
+ };
3141
3157
  path?: never;
3142
3158
  query?: never;
3143
3159
  url: '/api/measurements/profile/me';
@@ -3157,6 +3173,9 @@ export type GetApiMeasurementsProfileMeResponses = {
3157
3173
  export type GetApiMeasurementsProfileMeResponse = GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
3158
3174
  export type PostApiMeasurementsPlayerSessionMeData = {
3159
3175
  body: CreateMeasurementPlayerSessionDto;
3176
+ headers?: {
3177
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3178
+ };
3160
3179
  path?: never;
3161
3180
  query?: never;
3162
3181
  url: '/api/measurements/player-session/me';
@@ -3533,7 +3552,12 @@ export type DeleteApiDocumentsByIdResponse = DeleteApiDocumentsByIdResponses[key
3533
3552
  export type GetApiIndexCountriesData = {
3534
3553
  body?: never;
3535
3554
  path?: never;
3536
- query?: never;
3555
+ query?: {
3556
+ /**
3557
+ * Optional language code.
3558
+ */
3559
+ lang?: string;
3560
+ };
3537
3561
  url: '/api/index/countries';
3538
3562
  };
3539
3563
  export type GetApiIndexCountriesErrors = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalscoutme/api-client",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "GlobalScoutMe API client (generated)",
5
5
  "author": "GlobalScoutMe",
6
6
  "license": "UNLICENSED",
package/types.gen.ts CHANGED
@@ -586,6 +586,7 @@ export type MeasurementSessionDto = {
586
586
  id: string;
587
587
  bodyMeasurementId: string;
588
588
  jumpMeasurementId: string;
589
+ locale: 'en' | 'es' | 'fr' | 'de' | 'ro';
589
590
  contractVersion?: string | null;
590
591
  schemaVersion?: string | null;
591
592
  rulesetId?: string | null;
@@ -3002,6 +3003,9 @@ export type PostApiPlayersSearchResponse =
3002
3003
 
3003
3004
  export type GetApiPlayersByIdMeasurementsData = {
3004
3005
  body?: never;
3006
+ headers?: {
3007
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3008
+ };
3005
3009
  path: {
3006
3010
  id: string;
3007
3011
  };
@@ -3056,6 +3060,9 @@ export type GetApiPlayersByIdVideoMetricsResponse =
3056
3060
 
3057
3061
  export type GetApiPlayersByIdReportPdfData = {
3058
3062
  body?: never;
3063
+ headers?: {
3064
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3065
+ };
3059
3066
  path: {
3060
3067
  id: string;
3061
3068
  };
@@ -3083,6 +3090,9 @@ export type GetApiPlayersByIdReportPdfResponse =
3083
3090
 
3084
3091
  export type GetApiPlayersByIdReportData = {
3085
3092
  body?: never;
3093
+ headers?: {
3094
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3095
+ };
3086
3096
  path: {
3087
3097
  id: string;
3088
3098
  };
@@ -3160,6 +3170,9 @@ export type PostApiPlayersByIdWatchlistResponse =
3160
3170
 
3161
3171
  export type GetApiPlayersByIdData = {
3162
3172
  body?: never;
3173
+ headers?: {
3174
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3175
+ };
3163
3176
  path: {
3164
3177
  id: string;
3165
3178
  };
@@ -3482,6 +3495,9 @@ export type PostApiStorageUploadUrlResponse =
3482
3495
 
3483
3496
  export type GetApiMeasurementsProfileMeData = {
3484
3497
  body?: never;
3498
+ headers?: {
3499
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3500
+ };
3485
3501
  path?: never;
3486
3502
  query?: never;
3487
3503
  url: '/api/measurements/profile/me';
@@ -3506,6 +3522,9 @@ export type GetApiMeasurementsProfileMeResponse =
3506
3522
 
3507
3523
  export type PostApiMeasurementsPlayerSessionMeData = {
3508
3524
  body: CreateMeasurementPlayerSessionDto;
3525
+ headers?: {
3526
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3527
+ };
3509
3528
  path?: never;
3510
3529
  query?: never;
3511
3530
  url: '/api/measurements/player-session/me';
@@ -3965,7 +3984,12 @@ export type DeleteApiDocumentsByIdResponse =
3965
3984
  export type GetApiIndexCountriesData = {
3966
3985
  body?: never;
3967
3986
  path?: never;
3968
- query?: never;
3987
+ query?: {
3988
+ /**
3989
+ * Optional language code.
3990
+ */
3991
+ lang?: string;
3992
+ };
3969
3993
  url: '/api/index/countries';
3970
3994
  };
3971
3995