@globalscoutme/api-client 1.1.2 → 1.1.4

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/sdk.gen.ts CHANGED
@@ -90,6 +90,12 @@ import type {
90
90
  GetApiOrganizationsMeResponses,
91
91
  GetApiPlayersByIdData,
92
92
  GetApiPlayersByIdErrors,
93
+ GetApiPlayersByIdMeasurementsData,
94
+ GetApiPlayersByIdMeasurementsErrors,
95
+ GetApiPlayersByIdMeasurementsResponses,
96
+ GetApiPlayersByIdReportData,
97
+ GetApiPlayersByIdReportErrors,
98
+ GetApiPlayersByIdReportResponses,
93
99
  GetApiPlayersByIdResponses,
94
100
  GetApiPlayersMeDashboardData,
95
101
  GetApiPlayersMeDashboardErrors,
@@ -361,6 +367,26 @@ export class Players extends HeyApiClient {
361
367
  });
362
368
  }
363
369
 
370
+ public getPlayerMeasurementProfile<ThrowOnError extends boolean = false>(
371
+ options: Options<GetApiPlayersByIdMeasurementsData, ThrowOnError>,
372
+ ) {
373
+ return (options.client ?? this.client).get<
374
+ GetApiPlayersByIdMeasurementsResponses,
375
+ GetApiPlayersByIdMeasurementsErrors,
376
+ ThrowOnError
377
+ >({ url: '/api/players/{id}/measurements', ...options });
378
+ }
379
+
380
+ public getPlayerReport<ThrowOnError extends boolean = false>(
381
+ options: Options<GetApiPlayersByIdReportData, ThrowOnError>,
382
+ ) {
383
+ return (options.client ?? this.client).get<
384
+ GetApiPlayersByIdReportResponses,
385
+ GetApiPlayersByIdReportErrors,
386
+ ThrowOnError
387
+ >({ url: '/api/players/{id}/report', ...options });
388
+ }
389
+
364
390
  public getPlayerById<ThrowOnError extends boolean = false>(
365
391
  options: Options<GetApiPlayersByIdData, ThrowOnError>,
366
392
  ) {
@@ -607,6 +633,54 @@ export class Notifications extends HeyApiClient {
607
633
  }
608
634
  }
609
635
 
636
+ export class Storage extends HeyApiClient {
637
+ public createUploadUrl<ThrowOnError extends boolean = false>(
638
+ options: Options<PostApiStorageUploadUrlData, ThrowOnError>,
639
+ ) {
640
+ return (options.client ?? this.client).post<
641
+ PostApiStorageUploadUrlResponses,
642
+ PostApiStorageUploadUrlErrors,
643
+ ThrowOnError
644
+ >({
645
+ url: '/api/storage/upload-url',
646
+ ...options,
647
+ headers: {
648
+ 'Content-Type': 'application/json',
649
+ ...options.headers,
650
+ },
651
+ });
652
+ }
653
+ }
654
+
655
+ export class Measurements extends HeyApiClient {
656
+ public getMyMeasurementProfile<ThrowOnError extends boolean = false>(
657
+ options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError>,
658
+ ) {
659
+ return (options?.client ?? this.client).get<
660
+ GetApiMeasurementsProfileMeResponses,
661
+ GetApiMeasurementsProfileMeErrors,
662
+ ThrowOnError
663
+ >({ url: '/api/measurements/profile/me', ...options });
664
+ }
665
+
666
+ public createMyMeasurementPlayerSession<ThrowOnError extends boolean = false>(
667
+ options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError>,
668
+ ) {
669
+ return (options.client ?? this.client).post<
670
+ PostApiMeasurementsPlayerSessionMeResponses,
671
+ PostApiMeasurementsPlayerSessionMeErrors,
672
+ ThrowOnError
673
+ >({
674
+ url: '/api/measurements/player-session/me',
675
+ ...options,
676
+ headers: {
677
+ 'Content-Type': 'application/json',
678
+ ...options.headers,
679
+ },
680
+ });
681
+ }
682
+ }
683
+
610
684
  export class Profile extends HeyApiClient {
611
685
  public getProfileMe<ThrowOnError extends boolean = false>(
612
686
  options?: Options<GetApiProfileMeData, ThrowOnError>,
@@ -963,25 +1037,6 @@ export class Organizations extends HeyApiClient {
963
1037
  }
964
1038
  }
965
1039
 
966
- export class Storage extends HeyApiClient {
967
- public createUploadUrl<ThrowOnError extends boolean = false>(
968
- options: Options<PostApiStorageUploadUrlData, ThrowOnError>,
969
- ) {
970
- return (options.client ?? this.client).post<
971
- PostApiStorageUploadUrlResponses,
972
- PostApiStorageUploadUrlErrors,
973
- ThrowOnError
974
- >({
975
- url: '/api/storage/upload-url',
976
- ...options,
977
- headers: {
978
- 'Content-Type': 'application/json',
979
- ...options.headers,
980
- },
981
- });
982
- }
983
- }
984
-
985
1040
  export class Invitations extends HeyApiClient {
986
1041
  public listInvitations<ThrowOnError extends boolean = false>(
987
1042
  options?: Options<GetApiInvitationsData, ThrowOnError>,
@@ -1139,35 +1194,6 @@ export class Kyc extends HeyApiClient {
1139
1194
  }
1140
1195
  }
1141
1196
 
1142
- export class Measurements extends HeyApiClient {
1143
- public getMyMeasurementProfile<ThrowOnError extends boolean = false>(
1144
- options?: Options<GetApiMeasurementsProfileMeData, ThrowOnError>,
1145
- ) {
1146
- return (options?.client ?? this.client).get<
1147
- GetApiMeasurementsProfileMeResponses,
1148
- GetApiMeasurementsProfileMeErrors,
1149
- ThrowOnError
1150
- >({ url: '/api/measurements/profile/me', ...options });
1151
- }
1152
-
1153
- public createMyMeasurementPlayerSession<ThrowOnError extends boolean = false>(
1154
- options: Options<PostApiMeasurementsPlayerSessionMeData, ThrowOnError>,
1155
- ) {
1156
- return (options.client ?? this.client).post<
1157
- PostApiMeasurementsPlayerSessionMeResponses,
1158
- PostApiMeasurementsPlayerSessionMeErrors,
1159
- ThrowOnError
1160
- >({
1161
- url: '/api/measurements/player-session/me',
1162
- ...options,
1163
- headers: {
1164
- 'Content-Type': 'application/json',
1165
- ...options.headers,
1166
- },
1167
- });
1168
- }
1169
- }
1170
-
1171
1197
  export class Training extends HeyApiClient {
1172
1198
  /**
1173
1199
  * Get training content grouped by category, top 3 per category
@@ -1392,6 +1418,16 @@ export class GlobalScoutMeClient extends HeyApiClient {
1392
1418
  return (this._notifications ??= new Notifications({ client: this.client }));
1393
1419
  }
1394
1420
 
1421
+ private _storage?: Storage;
1422
+ get storage(): Storage {
1423
+ return (this._storage ??= new Storage({ client: this.client }));
1424
+ }
1425
+
1426
+ private _measurements?: Measurements;
1427
+ get measurements(): Measurements {
1428
+ return (this._measurements ??= new Measurements({ client: this.client }));
1429
+ }
1430
+
1395
1431
  private _profile?: Profile;
1396
1432
  get profile(): Profile {
1397
1433
  return (this._profile ??= new Profile({ client: this.client }));
@@ -1442,11 +1478,6 @@ export class GlobalScoutMeClient extends HeyApiClient {
1442
1478
  return (this._organizations ??= new Organizations({ client: this.client }));
1443
1479
  }
1444
1480
 
1445
- private _storage?: Storage;
1446
- get storage(): Storage {
1447
- return (this._storage ??= new Storage({ client: this.client }));
1448
- }
1449
-
1450
1481
  private _invitations?: Invitations;
1451
1482
  get invitations(): Invitations {
1452
1483
  return (this._invitations ??= new Invitations({ client: this.client }));
@@ -1457,11 +1488,6 @@ export class GlobalScoutMeClient extends HeyApiClient {
1457
1488
  return (this._kyc ??= new Kyc({ client: this.client }));
1458
1489
  }
1459
1490
 
1460
- private _measurements?: Measurements;
1461
- get measurements(): Measurements {
1462
- return (this._measurements ??= new Measurements({ client: this.client }));
1463
- }
1464
-
1465
1491
  private _training?: Training;
1466
1492
  get training(): Training {
1467
1493
  return (this._training ??= new Training({ client: this.client }));