@globalscoutme/api-client 1.2.4 → 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 +1 -1
- package/dist/types.gen.d.ts +18 -1
- package/package.json +1 -1
- package/types.gen.ts +18 -1
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)
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1913,6 +1914,7 @@ export type RegisterClubDto = {
|
|
|
1913
1914
|
* Representative phone number
|
|
1914
1915
|
*/
|
|
1915
1916
|
phone?: string;
|
|
1917
|
+
locale?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
1916
1918
|
};
|
|
1917
1919
|
export type RegisterClubResponseDto = {
|
|
1918
1920
|
/**
|
|
@@ -1957,6 +1959,7 @@ export type RegisterAgentDto = {
|
|
|
1957
1959
|
* Agent phone number
|
|
1958
1960
|
*/
|
|
1959
1961
|
phone?: string;
|
|
1962
|
+
locale?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
1960
1963
|
};
|
|
1961
1964
|
export type RegisterAgentResponseDto = {
|
|
1962
1965
|
/**
|
|
@@ -2755,6 +2758,9 @@ export type PostApiPlayersSearchResponses = {
|
|
|
2755
2758
|
export type PostApiPlayersSearchResponse = PostApiPlayersSearchResponses[keyof PostApiPlayersSearchResponses];
|
|
2756
2759
|
export type GetApiPlayersByIdMeasurementsData = {
|
|
2757
2760
|
body?: never;
|
|
2761
|
+
headers?: {
|
|
2762
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
2763
|
+
};
|
|
2758
2764
|
path: {
|
|
2759
2765
|
id: string;
|
|
2760
2766
|
};
|
|
@@ -3136,6 +3142,9 @@ export type PostApiStorageUploadUrlResponses = {
|
|
|
3136
3142
|
export type PostApiStorageUploadUrlResponse = PostApiStorageUploadUrlResponses[keyof PostApiStorageUploadUrlResponses];
|
|
3137
3143
|
export type GetApiMeasurementsProfileMeData = {
|
|
3138
3144
|
body?: never;
|
|
3145
|
+
headers?: {
|
|
3146
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3147
|
+
};
|
|
3139
3148
|
path?: never;
|
|
3140
3149
|
query?: never;
|
|
3141
3150
|
url: '/api/measurements/profile/me';
|
|
@@ -3155,6 +3164,9 @@ export type GetApiMeasurementsProfileMeResponses = {
|
|
|
3155
3164
|
export type GetApiMeasurementsProfileMeResponse = GetApiMeasurementsProfileMeResponses[keyof GetApiMeasurementsProfileMeResponses];
|
|
3156
3165
|
export type PostApiMeasurementsPlayerSessionMeData = {
|
|
3157
3166
|
body: CreateMeasurementPlayerSessionDto;
|
|
3167
|
+
headers?: {
|
|
3168
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3169
|
+
};
|
|
3158
3170
|
path?: never;
|
|
3159
3171
|
query?: never;
|
|
3160
3172
|
url: '/api/measurements/player-session/me';
|
|
@@ -3531,7 +3543,12 @@ export type DeleteApiDocumentsByIdResponse = DeleteApiDocumentsByIdResponses[key
|
|
|
3531
3543
|
export type GetApiIndexCountriesData = {
|
|
3532
3544
|
body?: never;
|
|
3533
3545
|
path?: never;
|
|
3534
|
-
query?:
|
|
3546
|
+
query?: {
|
|
3547
|
+
/**
|
|
3548
|
+
* Optional language code.
|
|
3549
|
+
*/
|
|
3550
|
+
lang?: string;
|
|
3551
|
+
};
|
|
3535
3552
|
url: '/api/index/countries';
|
|
3536
3553
|
};
|
|
3537
3554
|
export type GetApiIndexCountriesErrors = {
|
package/package.json
CHANGED
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;
|
|
@@ -2060,6 +2061,7 @@ export type RegisterClubDto = {
|
|
|
2060
2061
|
* Representative phone number
|
|
2061
2062
|
*/
|
|
2062
2063
|
phone?: string;
|
|
2064
|
+
locale?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
2063
2065
|
};
|
|
2064
2066
|
|
|
2065
2067
|
export type RegisterClubResponseDto = {
|
|
@@ -2106,6 +2108,7 @@ export type RegisterAgentDto = {
|
|
|
2106
2108
|
* Agent phone number
|
|
2107
2109
|
*/
|
|
2108
2110
|
phone?: string;
|
|
2111
|
+
locale?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
2109
2112
|
};
|
|
2110
2113
|
|
|
2111
2114
|
export type RegisterAgentResponseDto = {
|
|
@@ -3000,6 +3003,9 @@ export type PostApiPlayersSearchResponse =
|
|
|
3000
3003
|
|
|
3001
3004
|
export type GetApiPlayersByIdMeasurementsData = {
|
|
3002
3005
|
body?: never;
|
|
3006
|
+
headers?: {
|
|
3007
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3008
|
+
};
|
|
3003
3009
|
path: {
|
|
3004
3010
|
id: string;
|
|
3005
3011
|
};
|
|
@@ -3480,6 +3486,9 @@ export type PostApiStorageUploadUrlResponse =
|
|
|
3480
3486
|
|
|
3481
3487
|
export type GetApiMeasurementsProfileMeData = {
|
|
3482
3488
|
body?: never;
|
|
3489
|
+
headers?: {
|
|
3490
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3491
|
+
};
|
|
3483
3492
|
path?: never;
|
|
3484
3493
|
query?: never;
|
|
3485
3494
|
url: '/api/measurements/profile/me';
|
|
@@ -3504,6 +3513,9 @@ export type GetApiMeasurementsProfileMeResponse =
|
|
|
3504
3513
|
|
|
3505
3514
|
export type PostApiMeasurementsPlayerSessionMeData = {
|
|
3506
3515
|
body: CreateMeasurementPlayerSessionDto;
|
|
3516
|
+
headers?: {
|
|
3517
|
+
'Accept-Language'?: 'en' | 'es' | 'fr' | 'de' | 'ro';
|
|
3518
|
+
};
|
|
3507
3519
|
path?: never;
|
|
3508
3520
|
query?: never;
|
|
3509
3521
|
url: '/api/measurements/player-session/me';
|
|
@@ -3963,7 +3975,12 @@ export type DeleteApiDocumentsByIdResponse =
|
|
|
3963
3975
|
export type GetApiIndexCountriesData = {
|
|
3964
3976
|
body?: never;
|
|
3965
3977
|
path?: never;
|
|
3966
|
-
query?:
|
|
3978
|
+
query?: {
|
|
3979
|
+
/**
|
|
3980
|
+
* Optional language code.
|
|
3981
|
+
*/
|
|
3982
|
+
lang?: string;
|
|
3983
|
+
};
|
|
3967
3984
|
url: '/api/index/countries';
|
|
3968
3985
|
};
|
|
3969
3986
|
|