@globalscoutme/api-client 1.2.5 → 1.2.6

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
  };
@@ -3138,6 +3142,9 @@ export type PostApiStorageUploadUrlResponses = {
3138
3142
  export type PostApiStorageUploadUrlResponse = PostApiStorageUploadUrlResponses[keyof PostApiStorageUploadUrlResponses];
3139
3143
  export type GetApiMeasurementsProfileMeData = {
3140
3144
  body?: never;
3145
+ headers?: {
3146
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3147
+ };
3141
3148
  path?: never;
3142
3149
  query?: never;
3143
3150
  url: '/api/measurements/profile/me';
@@ -3157,6 +3164,9 @@ export type GetApiMeasurementsProfileMeResponses = {
3157
3164
  export type GetApiMeasurementsProfileMeResponse = GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
3158
3165
  export type PostApiMeasurementsPlayerSessionMeData = {
3159
3166
  body: CreateMeasurementPlayerSessionDto;
3167
+ headers?: {
3168
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3169
+ };
3160
3170
  path?: never;
3161
3171
  query?: never;
3162
3172
  url: '/api/measurements/player-session/me';
@@ -3533,7 +3543,12 @@ export type DeleteApiDocumentsByIdResponse = DeleteApiDocumentsByIdResponses[key
3533
3543
  export type GetApiIndexCountriesData = {
3534
3544
  body?: never;
3535
3545
  path?: never;
3536
- query?: never;
3546
+ query?: {
3547
+ /**
3548
+ * Optional language code.
3549
+ */
3550
+ lang?: string;
3551
+ };
3537
3552
  url: '/api/index/countries';
3538
3553
  };
3539
3554
  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.6",
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
  };
@@ -3482,6 +3486,9 @@ export type PostApiStorageUploadUrlResponse =
3482
3486
 
3483
3487
  export type GetApiMeasurementsProfileMeData = {
3484
3488
  body?: never;
3489
+ headers?: {
3490
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3491
+ };
3485
3492
  path?: never;
3486
3493
  query?: never;
3487
3494
  url: '/api/measurements/profile/me';
@@ -3506,6 +3513,9 @@ export type GetApiMeasurementsProfileMeResponse =
3506
3513
 
3507
3514
  export type PostApiMeasurementsPlayerSessionMeData = {
3508
3515
  body: CreateMeasurementPlayerSessionDto;
3516
+ headers?: {
3517
+ 'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
3518
+ };
3509
3519
  path?: never;
3510
3520
  query?: never;
3511
3521
  url: '/api/measurements/player-session/me';
@@ -3965,7 +3975,12 @@ export type DeleteApiDocumentsByIdResponse =
3965
3975
  export type GetApiIndexCountriesData = {
3966
3976
  body?: never;
3967
3977
  path?: never;
3968
- query?: never;
3978
+ query?: {
3979
+ /**
3980
+ * Optional language code.
3981
+ */
3982
+ lang?: string;
3983
+ };
3969
3984
  url: '/api/index/countries';
3970
3985
  };
3971
3986