@globalscoutme/api-client 1.0.13 → 1.0.14
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 +197 -119
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +53 -1
- package/dist/sdk.gen.js +114 -0
- package/dist/types.gen.d.ts +460 -1
- package/index.ts +77 -0
- package/package.json +1 -1
- package/sdk.gen.ts +270 -0
- package/types.gen.ts +547 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -57,6 +57,24 @@ export type PlayerResponseDto = {
|
|
|
57
57
|
*/
|
|
58
58
|
updatedAt?: string | null;
|
|
59
59
|
};
|
|
60
|
+
export type DivisionDto = {
|
|
61
|
+
/**
|
|
62
|
+
* Division tier 1 (highest) to 5 (lowest)
|
|
63
|
+
*/
|
|
64
|
+
number: 1 | 2 | 3 | 4 | 5;
|
|
65
|
+
/**
|
|
66
|
+
* Minimum XP of the current tier
|
|
67
|
+
*/
|
|
68
|
+
currentTierMin: number;
|
|
69
|
+
/**
|
|
70
|
+
* Minimum XP of the next tier; null at top tier
|
|
71
|
+
*/
|
|
72
|
+
nextTierMin: number | null;
|
|
73
|
+
/**
|
|
74
|
+
* Progress through current tier, range [0, 1]
|
|
75
|
+
*/
|
|
76
|
+
progressInTier: number;
|
|
77
|
+
};
|
|
60
78
|
export type DashboardResponseDto = {
|
|
61
79
|
/**
|
|
62
80
|
* First name
|
|
@@ -102,6 +120,20 @@ export type DashboardResponseDto = {
|
|
|
102
120
|
* Has at least one language set
|
|
103
121
|
*/
|
|
104
122
|
hasLanguages: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Cumulative XP from completed challenges
|
|
125
|
+
*/
|
|
126
|
+
totalXp: number;
|
|
127
|
+
division: DivisionDto;
|
|
128
|
+
};
|
|
129
|
+
export type HeartbeatDto = {
|
|
130
|
+
/**
|
|
131
|
+
* IANA timezone from the client device
|
|
132
|
+
*/
|
|
133
|
+
timezone: string;
|
|
134
|
+
};
|
|
135
|
+
export type HeartbeatResponseDto = {
|
|
136
|
+
ok: boolean;
|
|
105
137
|
};
|
|
106
138
|
export type UpdatePlayerDto = {
|
|
107
139
|
/**
|
|
@@ -666,6 +698,97 @@ export type CreateBodyMeasurementDto = {
|
|
|
666
698
|
*/
|
|
667
699
|
imageUrl?: string;
|
|
668
700
|
};
|
|
701
|
+
export type ChallengeCatalogDto = {
|
|
702
|
+
id: string;
|
|
703
|
+
code: string;
|
|
704
|
+
name: string;
|
|
705
|
+
description?: string | null;
|
|
706
|
+
categoryCode: string;
|
|
707
|
+
xpReward: number;
|
|
708
|
+
deadlineDays: number;
|
|
709
|
+
resetPeriod?: string | null;
|
|
710
|
+
iconUrl?: string | null;
|
|
711
|
+
displayOrder?: number | null;
|
|
712
|
+
};
|
|
713
|
+
export type MyChallengeDto = {
|
|
714
|
+
/**
|
|
715
|
+
* user_challenges.id — stable per (user, challenge, period)
|
|
716
|
+
*/
|
|
717
|
+
id: string;
|
|
718
|
+
code: string;
|
|
719
|
+
name: string;
|
|
720
|
+
description?: string | null;
|
|
721
|
+
categoryCode: string;
|
|
722
|
+
xpReward: number;
|
|
723
|
+
deadlineDays: number;
|
|
724
|
+
resetPeriod?: string | null;
|
|
725
|
+
iconUrl?: string | null;
|
|
726
|
+
status: 'active' | 'completed' | 'expired';
|
|
727
|
+
/**
|
|
728
|
+
* Current progress, 0..target
|
|
729
|
+
*/
|
|
730
|
+
progress: number;
|
|
731
|
+
/**
|
|
732
|
+
* Completion threshold
|
|
733
|
+
*/
|
|
734
|
+
target: number;
|
|
735
|
+
/**
|
|
736
|
+
* ISO timestamp when this instance expires
|
|
737
|
+
*/
|
|
738
|
+
expiresAt: string;
|
|
739
|
+
/**
|
|
740
|
+
* ISO timestamp — when the user first saw this challenge instance
|
|
741
|
+
*/
|
|
742
|
+
startedAt: string;
|
|
743
|
+
/**
|
|
744
|
+
* ISO timestamp; null if not yet completed
|
|
745
|
+
*/
|
|
746
|
+
completedAt?: string | null;
|
|
747
|
+
/**
|
|
748
|
+
* ISO date for period start (0001-01-01 sentinel for non-resetting)
|
|
749
|
+
*/
|
|
750
|
+
periodStart: string;
|
|
751
|
+
};
|
|
752
|
+
export type ClubResponseDto = {
|
|
753
|
+
id: string;
|
|
754
|
+
userId: string;
|
|
755
|
+
clubName: string;
|
|
756
|
+
userTypeCode?: string | null;
|
|
757
|
+
isCurrent: boolean;
|
|
758
|
+
joinedAt?: string | null;
|
|
759
|
+
leftAt?: string | null;
|
|
760
|
+
createdAt: string;
|
|
761
|
+
updatedAt: string;
|
|
762
|
+
};
|
|
763
|
+
export type CreateClubDto = {
|
|
764
|
+
/**
|
|
765
|
+
* Display name of the club (free text).
|
|
766
|
+
*/
|
|
767
|
+
clubName: string;
|
|
768
|
+
/**
|
|
769
|
+
* ISO date string — when the player joined.
|
|
770
|
+
*/
|
|
771
|
+
joinedAt?: string;
|
|
772
|
+
/**
|
|
773
|
+
* ISO date string — when the player left.
|
|
774
|
+
*/
|
|
775
|
+
leftAt?: string;
|
|
776
|
+
/**
|
|
777
|
+
* Whether this is the currently active club.
|
|
778
|
+
*/
|
|
779
|
+
isCurrent?: boolean;
|
|
780
|
+
/**
|
|
781
|
+
* Role at the club (e.g. player, coach). Matches index.user_types.code.
|
|
782
|
+
*/
|
|
783
|
+
userTypeCode?: string;
|
|
784
|
+
};
|
|
785
|
+
export type UpdateClubDto = {
|
|
786
|
+
clubName?: string;
|
|
787
|
+
joinedAt?: string;
|
|
788
|
+
leftAt?: string;
|
|
789
|
+
isCurrent?: boolean;
|
|
790
|
+
userTypeCode?: string;
|
|
791
|
+
};
|
|
669
792
|
export type DocumentResponseDto = {
|
|
670
793
|
id: string;
|
|
671
794
|
userId: string;
|
|
@@ -707,6 +830,11 @@ export type IndexItemDto = {
|
|
|
707
830
|
*/
|
|
708
831
|
displayOrder: number | null;
|
|
709
832
|
};
|
|
833
|
+
export type ConversationOrganizationDto = {
|
|
834
|
+
id: string;
|
|
835
|
+
name: string;
|
|
836
|
+
logoUrl: string | null;
|
|
837
|
+
};
|
|
710
838
|
export type ConversationParticipantDto = {
|
|
711
839
|
/**
|
|
712
840
|
* user_data id
|
|
@@ -723,6 +851,11 @@ export type ConversationParticipantDto = {
|
|
|
723
851
|
* Primary position code
|
|
724
852
|
*/
|
|
725
853
|
primaryPosition?: string | null;
|
|
854
|
+
/**
|
|
855
|
+
* user_data.user_type code (e.g. club_admin, scouter)
|
|
856
|
+
*/
|
|
857
|
+
userType: string | null;
|
|
858
|
+
organization?: ConversationOrganizationDto | null;
|
|
726
859
|
};
|
|
727
860
|
export type ConversationItemDto = {
|
|
728
861
|
/**
|
|
@@ -987,6 +1120,57 @@ export type UploadUrlResponseDto = {
|
|
|
987
1120
|
*/
|
|
988
1121
|
expiresIn: number;
|
|
989
1122
|
};
|
|
1123
|
+
export type SendInvitationRequestDto = {
|
|
1124
|
+
email: string;
|
|
1125
|
+
};
|
|
1126
|
+
export type InvitationResponseDto = {
|
|
1127
|
+
id: string;
|
|
1128
|
+
email: string;
|
|
1129
|
+
firstName?: string | null;
|
|
1130
|
+
lastName?: string | null;
|
|
1131
|
+
status: 'confirmed' | 'pending' | 'expired';
|
|
1132
|
+
invitedAt: string;
|
|
1133
|
+
expiresAt: string;
|
|
1134
|
+
acceptedAt?: string | null;
|
|
1135
|
+
};
|
|
1136
|
+
export type TrainingContentListItemDto = {
|
|
1137
|
+
id: string;
|
|
1138
|
+
title: string;
|
|
1139
|
+
summary?: string | null;
|
|
1140
|
+
thumbnailUrl?: string | null;
|
|
1141
|
+
durationSeconds?: number | null;
|
|
1142
|
+
categoryCode: string;
|
|
1143
|
+
difficultyLevel: string;
|
|
1144
|
+
xpReward: number;
|
|
1145
|
+
displayOrder?: number | null;
|
|
1146
|
+
};
|
|
1147
|
+
export type TrainingCategoryGroupDto = {
|
|
1148
|
+
categoryCode: string;
|
|
1149
|
+
categoryName: string;
|
|
1150
|
+
items: Array<TrainingContentListItemDto>;
|
|
1151
|
+
};
|
|
1152
|
+
export type PaginatedTrainingContentDto = {
|
|
1153
|
+
items: Array<TrainingContentListItemDto>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Total matching records
|
|
1156
|
+
*/
|
|
1157
|
+
total: number;
|
|
1158
|
+
page: number;
|
|
1159
|
+
pageSize: number;
|
|
1160
|
+
};
|
|
1161
|
+
export type TrainingContentDetailDto = {
|
|
1162
|
+
id: string;
|
|
1163
|
+
title: string;
|
|
1164
|
+
subtitle?: string | null;
|
|
1165
|
+
description?: string | null;
|
|
1166
|
+
thumbnailUrl?: string | null;
|
|
1167
|
+
videoUrl?: string | null;
|
|
1168
|
+
durationSeconds?: number | null;
|
|
1169
|
+
categoryCode: string;
|
|
1170
|
+
difficultyLevel: string;
|
|
1171
|
+
xpReward: number;
|
|
1172
|
+
displayOrder?: number | null;
|
|
1173
|
+
};
|
|
990
1174
|
export type VideoResponseDto = {
|
|
991
1175
|
id: string;
|
|
992
1176
|
userId: string;
|
|
@@ -1122,6 +1306,22 @@ export type GetPlayersMeDashboardResponses = {
|
|
|
1122
1306
|
200: DashboardResponseDto;
|
|
1123
1307
|
};
|
|
1124
1308
|
export type GetPlayersMeDashboardResponse = GetPlayersMeDashboardResponses[keyof GetPlayersMeDashboardResponses];
|
|
1309
|
+
export type PostPlayersMeHeartbeatData = {
|
|
1310
|
+
body: HeartbeatDto;
|
|
1311
|
+
path?: never;
|
|
1312
|
+
query?: never;
|
|
1313
|
+
url: '/players/me/heartbeat';
|
|
1314
|
+
};
|
|
1315
|
+
export type PostPlayersMeHeartbeatErrors = {
|
|
1316
|
+
/**
|
|
1317
|
+
* Unauthorized
|
|
1318
|
+
*/
|
|
1319
|
+
401: unknown;
|
|
1320
|
+
};
|
|
1321
|
+
export type PostPlayersMeHeartbeatResponses = {
|
|
1322
|
+
200: HeartbeatResponseDto;
|
|
1323
|
+
};
|
|
1324
|
+
export type PostPlayersMeHeartbeatResponse = PostPlayersMeHeartbeatResponses[keyof PostPlayersMeHeartbeatResponses];
|
|
1125
1325
|
export type PostPlayersSearchData = {
|
|
1126
1326
|
body: PlayerSearchRequestDto;
|
|
1127
1327
|
path?: never;
|
|
@@ -1274,6 +1474,121 @@ export type PostBodyMeasurementsResponses = {
|
|
|
1274
1474
|
201: BodyMeasurementResponseDto;
|
|
1275
1475
|
};
|
|
1276
1476
|
export type PostBodyMeasurementsResponse = PostBodyMeasurementsResponses[keyof PostBodyMeasurementsResponses];
|
|
1477
|
+
export type GetChallengesData = {
|
|
1478
|
+
body?: never;
|
|
1479
|
+
path?: never;
|
|
1480
|
+
query?: never;
|
|
1481
|
+
url: '/challenges';
|
|
1482
|
+
};
|
|
1483
|
+
export type GetChallengesErrors = {
|
|
1484
|
+
/**
|
|
1485
|
+
* Unauthorized
|
|
1486
|
+
*/
|
|
1487
|
+
401: unknown;
|
|
1488
|
+
};
|
|
1489
|
+
export type GetChallengesResponses = {
|
|
1490
|
+
200: Array<ChallengeCatalogDto>;
|
|
1491
|
+
};
|
|
1492
|
+
export type GetChallengesResponse = GetChallengesResponses[keyof GetChallengesResponses];
|
|
1493
|
+
export type GetChallengesMeData = {
|
|
1494
|
+
body?: never;
|
|
1495
|
+
path?: never;
|
|
1496
|
+
query?: never;
|
|
1497
|
+
url: '/challenges/me';
|
|
1498
|
+
};
|
|
1499
|
+
export type GetChallengesMeErrors = {
|
|
1500
|
+
/**
|
|
1501
|
+
* Unauthorized
|
|
1502
|
+
*/
|
|
1503
|
+
401: unknown;
|
|
1504
|
+
/**
|
|
1505
|
+
* Player-only endpoint
|
|
1506
|
+
*/
|
|
1507
|
+
403: unknown;
|
|
1508
|
+
};
|
|
1509
|
+
export type GetChallengesMeResponses = {
|
|
1510
|
+
200: Array<MyChallengeDto>;
|
|
1511
|
+
};
|
|
1512
|
+
export type GetChallengesMeResponse = GetChallengesMeResponses[keyof GetChallengesMeResponses];
|
|
1513
|
+
export type GetClubsMeData = {
|
|
1514
|
+
body?: never;
|
|
1515
|
+
path?: never;
|
|
1516
|
+
query?: never;
|
|
1517
|
+
url: '/clubs/me';
|
|
1518
|
+
};
|
|
1519
|
+
export type GetClubsMeErrors = {
|
|
1520
|
+
/**
|
|
1521
|
+
* Unauthorized
|
|
1522
|
+
*/
|
|
1523
|
+
401: unknown;
|
|
1524
|
+
};
|
|
1525
|
+
export type GetClubsMeResponses = {
|
|
1526
|
+
200: Array<ClubResponseDto>;
|
|
1527
|
+
};
|
|
1528
|
+
export type GetClubsMeResponse = GetClubsMeResponses[keyof GetClubsMeResponses];
|
|
1529
|
+
export type PostClubsMeData = {
|
|
1530
|
+
body: CreateClubDto;
|
|
1531
|
+
path?: never;
|
|
1532
|
+
query?: never;
|
|
1533
|
+
url: '/clubs/me';
|
|
1534
|
+
};
|
|
1535
|
+
export type PostClubsMeErrors = {
|
|
1536
|
+
/**
|
|
1537
|
+
* Unauthorized
|
|
1538
|
+
*/
|
|
1539
|
+
401: unknown;
|
|
1540
|
+
};
|
|
1541
|
+
export type PostClubsMeResponses = {
|
|
1542
|
+
201: ClubResponseDto;
|
|
1543
|
+
};
|
|
1544
|
+
export type PostClubsMeResponse = PostClubsMeResponses[keyof PostClubsMeResponses];
|
|
1545
|
+
export type DeleteClubsMeByIdData = {
|
|
1546
|
+
body?: never;
|
|
1547
|
+
path: {
|
|
1548
|
+
id: string;
|
|
1549
|
+
};
|
|
1550
|
+
query?: never;
|
|
1551
|
+
url: '/clubs/me/{id}';
|
|
1552
|
+
};
|
|
1553
|
+
export type DeleteClubsMeByIdErrors = {
|
|
1554
|
+
/**
|
|
1555
|
+
* Unauthorized
|
|
1556
|
+
*/
|
|
1557
|
+
401: unknown;
|
|
1558
|
+
/**
|
|
1559
|
+
* Club not found
|
|
1560
|
+
*/
|
|
1561
|
+
404: unknown;
|
|
1562
|
+
};
|
|
1563
|
+
export type DeleteClubsMeByIdResponses = {
|
|
1564
|
+
/**
|
|
1565
|
+
* Club deleted
|
|
1566
|
+
*/
|
|
1567
|
+
204: void;
|
|
1568
|
+
};
|
|
1569
|
+
export type DeleteClubsMeByIdResponse = DeleteClubsMeByIdResponses[keyof DeleteClubsMeByIdResponses];
|
|
1570
|
+
export type PatchClubsMeByIdData = {
|
|
1571
|
+
body: UpdateClubDto;
|
|
1572
|
+
path: {
|
|
1573
|
+
id: string;
|
|
1574
|
+
};
|
|
1575
|
+
query?: never;
|
|
1576
|
+
url: '/clubs/me/{id}';
|
|
1577
|
+
};
|
|
1578
|
+
export type PatchClubsMeByIdErrors = {
|
|
1579
|
+
/**
|
|
1580
|
+
* Unauthorized
|
|
1581
|
+
*/
|
|
1582
|
+
401: unknown;
|
|
1583
|
+
/**
|
|
1584
|
+
* Club not found
|
|
1585
|
+
*/
|
|
1586
|
+
404: unknown;
|
|
1587
|
+
};
|
|
1588
|
+
export type PatchClubsMeByIdResponses = {
|
|
1589
|
+
200: ClubResponseDto;
|
|
1590
|
+
};
|
|
1591
|
+
export type PatchClubsMeByIdResponse = PatchClubsMeByIdResponses[keyof PatchClubsMeByIdResponses];
|
|
1277
1592
|
export type GetDocumentsMeData = {
|
|
1278
1593
|
body?: never;
|
|
1279
1594
|
path?: never;
|
|
@@ -1341,7 +1656,7 @@ export type GetOffersConversationsData = {
|
|
|
1341
1656
|
body?: never;
|
|
1342
1657
|
path?: never;
|
|
1343
1658
|
query?: {
|
|
1344
|
-
filter?: 'all' | 'unread' | 'read';
|
|
1659
|
+
filter?: 'all' | 'unread' | 'read' | 'clubs' | 'agents';
|
|
1345
1660
|
page?: number;
|
|
1346
1661
|
pageSize?: number;
|
|
1347
1662
|
};
|
|
@@ -1540,6 +1855,150 @@ export type PostStorageUploadUrlResponses = {
|
|
|
1540
1855
|
201: UploadUrlResponseDto;
|
|
1541
1856
|
};
|
|
1542
1857
|
export type PostStorageUploadUrlResponse = PostStorageUploadUrlResponses[keyof PostStorageUploadUrlResponses];
|
|
1858
|
+
export type GetInvitationsData = {
|
|
1859
|
+
body?: never;
|
|
1860
|
+
path?: never;
|
|
1861
|
+
query?: never;
|
|
1862
|
+
url: '/invitations';
|
|
1863
|
+
};
|
|
1864
|
+
export type GetInvitationsResponses = {
|
|
1865
|
+
200: Array<InvitationResponseDto>;
|
|
1866
|
+
};
|
|
1867
|
+
export type GetInvitationsResponse = GetInvitationsResponses[keyof GetInvitationsResponses];
|
|
1868
|
+
export type PostInvitationsData = {
|
|
1869
|
+
body: SendInvitationRequestDto;
|
|
1870
|
+
path?: never;
|
|
1871
|
+
query?: never;
|
|
1872
|
+
url: '/invitations';
|
|
1873
|
+
};
|
|
1874
|
+
export type PostInvitationsErrors = {
|
|
1875
|
+
/**
|
|
1876
|
+
* Limit reached or duplicate email
|
|
1877
|
+
*/
|
|
1878
|
+
400: unknown;
|
|
1879
|
+
};
|
|
1880
|
+
export type PostInvitationsResponses = {
|
|
1881
|
+
201: InvitationResponseDto;
|
|
1882
|
+
};
|
|
1883
|
+
export type PostInvitationsResponse = PostInvitationsResponses[keyof PostInvitationsResponses];
|
|
1884
|
+
export type PostInvitationsByIdResendData = {
|
|
1885
|
+
body?: never;
|
|
1886
|
+
path: {
|
|
1887
|
+
id: string;
|
|
1888
|
+
};
|
|
1889
|
+
query?: never;
|
|
1890
|
+
url: '/invitations/{id}/resend';
|
|
1891
|
+
};
|
|
1892
|
+
export type PostInvitationsByIdResendErrors = {
|
|
1893
|
+
/**
|
|
1894
|
+
* Cannot resend a confirmed invitation
|
|
1895
|
+
*/
|
|
1896
|
+
400: unknown;
|
|
1897
|
+
/**
|
|
1898
|
+
* Invitation not found
|
|
1899
|
+
*/
|
|
1900
|
+
404: unknown;
|
|
1901
|
+
};
|
|
1902
|
+
export type PostInvitationsByIdResendResponses = {
|
|
1903
|
+
200: InvitationResponseDto;
|
|
1904
|
+
};
|
|
1905
|
+
export type PostInvitationsByIdResendResponse = PostInvitationsByIdResendResponses[keyof PostInvitationsByIdResendResponses];
|
|
1906
|
+
export type DeleteInvitationsByIdData = {
|
|
1907
|
+
body?: never;
|
|
1908
|
+
path: {
|
|
1909
|
+
id: string;
|
|
1910
|
+
};
|
|
1911
|
+
query?: never;
|
|
1912
|
+
url: '/invitations/{id}';
|
|
1913
|
+
};
|
|
1914
|
+
export type DeleteInvitationsByIdErrors = {
|
|
1915
|
+
/**
|
|
1916
|
+
* Cannot delete a confirmed invitation
|
|
1917
|
+
*/
|
|
1918
|
+
400: unknown;
|
|
1919
|
+
/**
|
|
1920
|
+
* Invitation not found
|
|
1921
|
+
*/
|
|
1922
|
+
404: unknown;
|
|
1923
|
+
};
|
|
1924
|
+
export type DeleteInvitationsByIdResponses = {
|
|
1925
|
+
/**
|
|
1926
|
+
* Deleted
|
|
1927
|
+
*/
|
|
1928
|
+
204: void;
|
|
1929
|
+
};
|
|
1930
|
+
export type DeleteInvitationsByIdResponse = DeleteInvitationsByIdResponses[keyof DeleteInvitationsByIdResponses];
|
|
1931
|
+
export type PostInvitationsAcceptData = {
|
|
1932
|
+
body?: never;
|
|
1933
|
+
path?: never;
|
|
1934
|
+
query?: never;
|
|
1935
|
+
url: '/invitations/accept';
|
|
1936
|
+
};
|
|
1937
|
+
export type PostInvitationsAcceptResponses = {
|
|
1938
|
+
/**
|
|
1939
|
+
* Accepted (or no pending invitation — idempotent)
|
|
1940
|
+
*/
|
|
1941
|
+
204: void;
|
|
1942
|
+
};
|
|
1943
|
+
export type PostInvitationsAcceptResponse = PostInvitationsAcceptResponses[keyof PostInvitationsAcceptResponses];
|
|
1944
|
+
export type GetTrainingGroupedData = {
|
|
1945
|
+
body?: never;
|
|
1946
|
+
path?: never;
|
|
1947
|
+
query?: never;
|
|
1948
|
+
url: '/training/grouped';
|
|
1949
|
+
};
|
|
1950
|
+
export type GetTrainingGroupedErrors = {
|
|
1951
|
+
/**
|
|
1952
|
+
* Unauthorized
|
|
1953
|
+
*/
|
|
1954
|
+
401: unknown;
|
|
1955
|
+
};
|
|
1956
|
+
export type GetTrainingGroupedResponses = {
|
|
1957
|
+
200: Array<TrainingCategoryGroupDto>;
|
|
1958
|
+
};
|
|
1959
|
+
export type GetTrainingGroupedResponse = GetTrainingGroupedResponses[keyof GetTrainingGroupedResponses];
|
|
1960
|
+
export type GetTrainingData = {
|
|
1961
|
+
body?: never;
|
|
1962
|
+
path?: never;
|
|
1963
|
+
query?: {
|
|
1964
|
+
categoryCode?: string;
|
|
1965
|
+
page?: number;
|
|
1966
|
+
pageSize?: number;
|
|
1967
|
+
};
|
|
1968
|
+
url: '/training';
|
|
1969
|
+
};
|
|
1970
|
+
export type GetTrainingErrors = {
|
|
1971
|
+
/**
|
|
1972
|
+
* Unauthorized
|
|
1973
|
+
*/
|
|
1974
|
+
401: unknown;
|
|
1975
|
+
};
|
|
1976
|
+
export type GetTrainingResponses = {
|
|
1977
|
+
200: PaginatedTrainingContentDto;
|
|
1978
|
+
};
|
|
1979
|
+
export type GetTrainingResponse = GetTrainingResponses[keyof GetTrainingResponses];
|
|
1980
|
+
export type GetTrainingByIdData = {
|
|
1981
|
+
body?: never;
|
|
1982
|
+
path: {
|
|
1983
|
+
id: string;
|
|
1984
|
+
};
|
|
1985
|
+
query?: never;
|
|
1986
|
+
url: '/training/{id}';
|
|
1987
|
+
};
|
|
1988
|
+
export type GetTrainingByIdErrors = {
|
|
1989
|
+
/**
|
|
1990
|
+
* Unauthorized
|
|
1991
|
+
*/
|
|
1992
|
+
401: unknown;
|
|
1993
|
+
/**
|
|
1994
|
+
* Not found
|
|
1995
|
+
*/
|
|
1996
|
+
404: unknown;
|
|
1997
|
+
};
|
|
1998
|
+
export type GetTrainingByIdResponses = {
|
|
1999
|
+
200: TrainingContentDetailDto;
|
|
2000
|
+
};
|
|
2001
|
+
export type GetTrainingByIdResponse = GetTrainingByIdResponses[keyof GetTrainingByIdResponses];
|
|
1543
2002
|
export type GetVideosMeData = {
|
|
1544
2003
|
body?: never;
|
|
1545
2004
|
path?: never;
|
package/index.ts
CHANGED
|
@@ -4,15 +4,19 @@ export {
|
|
|
4
4
|
Achievements,
|
|
5
5
|
Auth,
|
|
6
6
|
Body,
|
|
7
|
+
Challenges,
|
|
8
|
+
Clubs,
|
|
7
9
|
Documents,
|
|
8
10
|
GlobalScoutMeClient,
|
|
9
11
|
Index,
|
|
12
|
+
Invitations,
|
|
10
13
|
Offers,
|
|
11
14
|
type Options,
|
|
12
15
|
Organizations,
|
|
13
16
|
Players,
|
|
14
17
|
Profile,
|
|
15
18
|
Storage,
|
|
19
|
+
Training,
|
|
16
20
|
Videos,
|
|
17
21
|
} from './sdk.gen.js';
|
|
18
22
|
export type {
|
|
@@ -20,17 +24,29 @@ export type {
|
|
|
20
24
|
AuthMeResponseDto,
|
|
21
25
|
BodyMeasurementResponseDto,
|
|
22
26
|
CareerAchievementDto,
|
|
27
|
+
ChallengeCatalogDto,
|
|
23
28
|
ClientOptions,
|
|
29
|
+
ClubResponseDto,
|
|
24
30
|
ConversationDetailDto,
|
|
25
31
|
ConversationItemDto,
|
|
26
32
|
ConversationListResultDto,
|
|
33
|
+
ConversationOrganizationDto,
|
|
27
34
|
ConversationParticipantDto,
|
|
28
35
|
CreateBodyMeasurementDto,
|
|
36
|
+
CreateClubDto,
|
|
29
37
|
CreateConversationDto,
|
|
30
38
|
CreateDocumentDto,
|
|
31
39
|
CreateUploadUrlDto,
|
|
32
40
|
CreateVideoDto,
|
|
33
41
|
DashboardResponseDto,
|
|
42
|
+
DeleteClubsMeByIdData,
|
|
43
|
+
DeleteClubsMeByIdErrors,
|
|
44
|
+
DeleteClubsMeByIdResponse,
|
|
45
|
+
DeleteClubsMeByIdResponses,
|
|
46
|
+
DeleteInvitationsByIdData,
|
|
47
|
+
DeleteInvitationsByIdErrors,
|
|
48
|
+
DeleteInvitationsByIdResponse,
|
|
49
|
+
DeleteInvitationsByIdResponses,
|
|
34
50
|
DeletePlayersMeData,
|
|
35
51
|
DeletePlayersMeErrors,
|
|
36
52
|
DeletePlayersMeResponse,
|
|
@@ -39,6 +55,7 @@ export type {
|
|
|
39
55
|
DeleteVideosByIdErrors,
|
|
40
56
|
DeleteVideosByIdResponse,
|
|
41
57
|
DeleteVideosByIdResponses,
|
|
58
|
+
DivisionDto,
|
|
42
59
|
DocumentResponseDto,
|
|
43
60
|
GetAchievementsData,
|
|
44
61
|
GetAchievementsMeData,
|
|
@@ -55,6 +72,18 @@ export type {
|
|
|
55
72
|
GetBodyMeasurementsMeErrors,
|
|
56
73
|
GetBodyMeasurementsMeResponse,
|
|
57
74
|
GetBodyMeasurementsMeResponses,
|
|
75
|
+
GetChallengesData,
|
|
76
|
+
GetChallengesErrors,
|
|
77
|
+
GetChallengesMeData,
|
|
78
|
+
GetChallengesMeErrors,
|
|
79
|
+
GetChallengesMeResponse,
|
|
80
|
+
GetChallengesMeResponses,
|
|
81
|
+
GetChallengesResponse,
|
|
82
|
+
GetChallengesResponses,
|
|
83
|
+
GetClubsMeData,
|
|
84
|
+
GetClubsMeErrors,
|
|
85
|
+
GetClubsMeResponse,
|
|
86
|
+
GetClubsMeResponses,
|
|
58
87
|
GetDocumentsMeData,
|
|
59
88
|
GetDocumentsMeErrors,
|
|
60
89
|
GetDocumentsMeResponse,
|
|
@@ -63,6 +92,9 @@ export type {
|
|
|
63
92
|
GetIndexByTableNameErrors,
|
|
64
93
|
GetIndexByTableNameResponse,
|
|
65
94
|
GetIndexByTableNameResponses,
|
|
95
|
+
GetInvitationsData,
|
|
96
|
+
GetInvitationsResponse,
|
|
97
|
+
GetInvitationsResponses,
|
|
66
98
|
GetOffersConversationsByIdMessagesData,
|
|
67
99
|
GetOffersConversationsByIdMessagesErrors,
|
|
68
100
|
GetOffersConversationsByIdMessagesResponse,
|
|
@@ -91,6 +123,18 @@ export type {
|
|
|
91
123
|
GetProfileMeErrors,
|
|
92
124
|
GetProfileMeResponse,
|
|
93
125
|
GetProfileMeResponses,
|
|
126
|
+
GetTrainingByIdData,
|
|
127
|
+
GetTrainingByIdErrors,
|
|
128
|
+
GetTrainingByIdResponse,
|
|
129
|
+
GetTrainingByIdResponses,
|
|
130
|
+
GetTrainingData,
|
|
131
|
+
GetTrainingErrors,
|
|
132
|
+
GetTrainingGroupedData,
|
|
133
|
+
GetTrainingGroupedErrors,
|
|
134
|
+
GetTrainingGroupedResponse,
|
|
135
|
+
GetTrainingGroupedResponses,
|
|
136
|
+
GetTrainingResponse,
|
|
137
|
+
GetTrainingResponses,
|
|
94
138
|
GetVideosByIdPlayUrlData,
|
|
95
139
|
GetVideosByIdPlayUrlErrors,
|
|
96
140
|
GetVideosByIdPlayUrlResponse,
|
|
@@ -99,11 +143,20 @@ export type {
|
|
|
99
143
|
GetVideosMeErrors,
|
|
100
144
|
GetVideosMeResponse,
|
|
101
145
|
GetVideosMeResponses,
|
|
146
|
+
HeartbeatDto,
|
|
147
|
+
HeartbeatResponseDto,
|
|
102
148
|
IndexItemDto,
|
|
149
|
+
InvitationResponseDto,
|
|
103
150
|
MessageItemDto,
|
|
104
151
|
MessageListResultDto,
|
|
105
152
|
MessageSenderDto,
|
|
153
|
+
MyChallengeDto,
|
|
106
154
|
OrganizationResponseDto,
|
|
155
|
+
PaginatedTrainingContentDto,
|
|
156
|
+
PatchClubsMeByIdData,
|
|
157
|
+
PatchClubsMeByIdErrors,
|
|
158
|
+
PatchClubsMeByIdResponse,
|
|
159
|
+
PatchClubsMeByIdResponses,
|
|
107
160
|
PatchOffersConversationsByIdReadData,
|
|
108
161
|
PatchOffersConversationsByIdReadErrors,
|
|
109
162
|
PatchOffersConversationsByIdReadResponses,
|
|
@@ -124,10 +177,25 @@ export type {
|
|
|
124
177
|
PostBodyMeasurementsErrors,
|
|
125
178
|
PostBodyMeasurementsResponse,
|
|
126
179
|
PostBodyMeasurementsResponses,
|
|
180
|
+
PostClubsMeData,
|
|
181
|
+
PostClubsMeErrors,
|
|
182
|
+
PostClubsMeResponse,
|
|
183
|
+
PostClubsMeResponses,
|
|
127
184
|
PostDocumentsData,
|
|
128
185
|
PostDocumentsErrors,
|
|
129
186
|
PostDocumentsResponse,
|
|
130
187
|
PostDocumentsResponses,
|
|
188
|
+
PostInvitationsAcceptData,
|
|
189
|
+
PostInvitationsAcceptResponse,
|
|
190
|
+
PostInvitationsAcceptResponses,
|
|
191
|
+
PostInvitationsByIdResendData,
|
|
192
|
+
PostInvitationsByIdResendErrors,
|
|
193
|
+
PostInvitationsByIdResendResponse,
|
|
194
|
+
PostInvitationsByIdResendResponses,
|
|
195
|
+
PostInvitationsData,
|
|
196
|
+
PostInvitationsErrors,
|
|
197
|
+
PostInvitationsResponse,
|
|
198
|
+
PostInvitationsResponses,
|
|
131
199
|
PostOffersConversationsByIdMessagesData,
|
|
132
200
|
PostOffersConversationsByIdMessagesErrors,
|
|
133
201
|
PostOffersConversationsByIdMessagesResponse,
|
|
@@ -140,6 +208,10 @@ export type {
|
|
|
140
208
|
PostOrganizationsRegisterClubErrors,
|
|
141
209
|
PostOrganizationsRegisterClubResponse,
|
|
142
210
|
PostOrganizationsRegisterClubResponses,
|
|
211
|
+
PostPlayersMeHeartbeatData,
|
|
212
|
+
PostPlayersMeHeartbeatErrors,
|
|
213
|
+
PostPlayersMeHeartbeatResponse,
|
|
214
|
+
PostPlayersMeHeartbeatResponses,
|
|
143
215
|
PostPlayersSearchData,
|
|
144
216
|
PostPlayersSearchErrors,
|
|
145
217
|
PostPlayersSearchResponse,
|
|
@@ -164,7 +236,12 @@ export type {
|
|
|
164
236
|
PutProfileMeResponses,
|
|
165
237
|
RegisterClubDto,
|
|
166
238
|
RegisterClubResponseDto,
|
|
239
|
+
SendInvitationRequestDto,
|
|
167
240
|
SendMessageDto,
|
|
241
|
+
TrainingCategoryGroupDto,
|
|
242
|
+
TrainingContentDetailDto,
|
|
243
|
+
TrainingContentListItemDto,
|
|
244
|
+
UpdateClubDto,
|
|
168
245
|
UpdateOrganizationDto,
|
|
169
246
|
UpdatePlayerDto,
|
|
170
247
|
UpdateProfileDto,
|