@globalscoutme/api-client 1.0.14 → 1.0.15
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/dist/index.d.ts +1 -1
- package/dist/sdk.gen.d.ts +45 -45
- package/dist/sdk.gen.js +44 -44
- package/dist/types.gen.d.ts +216 -216
- package/index.ts +172 -172
- package/package.json +1 -1
- package/sdk.gen.ts +302 -302
- package/types.gen.ts +259 -256
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Achievements, Auth, Body, Challenges, Clubs, Documents, GlobalScoutMeClient, Index, Invitations, Offers, type Options, Organizations, Players, Profile, Storage, Training, Videos, } from './sdk.gen.js';
|
|
2
|
-
export type { AchievementCatalogDto, AuthMeResponseDto, BodyMeasurementResponseDto, CareerAchievementDto, ChallengeCatalogDto, ClientOptions, ClubResponseDto, ConversationDetailDto, ConversationItemDto, ConversationListResultDto, ConversationOrganizationDto, ConversationParticipantDto, CreateBodyMeasurementDto, CreateClubDto, CreateConversationDto, CreateDocumentDto, CreateUploadUrlDto, CreateVideoDto, DashboardResponseDto,
|
|
2
|
+
export type { AchievementCatalogDto, AuthMeResponseDto, BodyMeasurementResponseDto, CareerAchievementDto, ChallengeCatalogDto, ClientOptions, ClubResponseDto, ConversationDetailDto, ConversationItemDto, ConversationListResultDto, ConversationOrganizationDto, ConversationParticipantDto, CreateBodyMeasurementDto, CreateClubDto, CreateConversationDto, CreateDocumentDto, CreateUploadUrlDto, CreateVideoDto, DashboardResponseDto, DeleteApiClubsMeByIdData, DeleteApiClubsMeByIdErrors, DeleteApiClubsMeByIdResponse, DeleteApiClubsMeByIdResponses, DeleteApiInvitationsByIdData, DeleteApiInvitationsByIdErrors, DeleteApiInvitationsByIdResponse, DeleteApiInvitationsByIdResponses, DeleteApiPlayersMeData, DeleteApiPlayersMeErrors, DeleteApiPlayersMeResponse, DeleteApiPlayersMeResponses, DeleteApiVideosByIdData, DeleteApiVideosByIdErrors, DeleteApiVideosByIdResponse, DeleteApiVideosByIdResponses, DivisionDto, DocumentResponseDto, GetApiAchievementsData, GetApiAchievementsMeData, GetApiAchievementsMeErrors, GetApiAchievementsMeResponse, GetApiAchievementsMeResponses, GetApiAchievementsResponse, GetApiAchievementsResponses, GetApiAuthMeData, GetApiAuthMeErrors, GetApiAuthMeResponse, GetApiAuthMeResponses, GetApiBodyMeasurementsMeData, GetApiBodyMeasurementsMeErrors, GetApiBodyMeasurementsMeResponse, GetApiBodyMeasurementsMeResponses, GetApiChallengesData, GetApiChallengesErrors, GetApiChallengesMeData, GetApiChallengesMeErrors, GetApiChallengesMeResponse, GetApiChallengesMeResponses, GetApiChallengesResponse, GetApiChallengesResponses, GetApiClubsMeData, GetApiClubsMeErrors, GetApiClubsMeResponse, GetApiClubsMeResponses, GetApiDocumentsMeData, GetApiDocumentsMeErrors, GetApiDocumentsMeResponse, GetApiDocumentsMeResponses, GetApiIndexByTableNameData, GetApiIndexByTableNameErrors, GetApiIndexByTableNameResponse, GetApiIndexByTableNameResponses, GetApiInvitationsData, GetApiInvitationsResponse, GetApiInvitationsResponses, GetApiOffersConversationsByIdMessagesData, GetApiOffersConversationsByIdMessagesErrors, GetApiOffersConversationsByIdMessagesResponse, GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsData, GetApiOffersConversationsErrors, GetApiOffersConversationsResponse, GetApiOffersConversationsResponses, GetApiOrganizationsMeData, GetApiOrganizationsMeErrors, GetApiOrganizationsMeResponse, GetApiOrganizationsMeResponses, GetApiPlayersByIdData, GetApiPlayersByIdErrors, GetApiPlayersByIdResponse, GetApiPlayersByIdResponses, GetApiPlayersMeDashboardData, GetApiPlayersMeDashboardErrors, GetApiPlayersMeDashboardResponse, GetApiPlayersMeDashboardResponses, GetApiPlayersMeData, GetApiPlayersMeErrors, GetApiPlayersMeResponse, GetApiPlayersMeResponses, GetApiProfileMeData, GetApiProfileMeErrors, GetApiProfileMeResponse, GetApiProfileMeResponses, GetApiTrainingByIdData, GetApiTrainingByIdErrors, GetApiTrainingByIdResponse, GetApiTrainingByIdResponses, GetApiTrainingData, GetApiTrainingErrors, GetApiTrainingGroupedData, GetApiTrainingGroupedErrors, GetApiTrainingGroupedResponse, GetApiTrainingGroupedResponses, GetApiTrainingResponse, GetApiTrainingResponses, GetApiVideosByIdPlayUrlData, GetApiVideosByIdPlayUrlErrors, GetApiVideosByIdPlayUrlResponse, GetApiVideosByIdPlayUrlResponses, GetApiVideosMeData, GetApiVideosMeErrors, GetApiVideosMeResponse, GetApiVideosMeResponses, HeartbeatDto, HeartbeatResponseDto, IndexItemDto, InvitationResponseDto, MessageItemDto, MessageListResultDto, MessageSenderDto, MyChallengeDto, OrganizationResponseDto, PaginatedTrainingContentDto, PatchApiClubsMeByIdData, PatchApiClubsMeByIdErrors, PatchApiClubsMeByIdResponse, PatchApiClubsMeByIdResponses, PatchApiOffersConversationsByIdReadData, PatchApiOffersConversationsByIdReadErrors, PatchApiOffersConversationsByIdReadResponses, PatchApiPlayersMeData, PatchApiPlayersMeErrors, PatchApiPlayersMeResponse, PatchApiPlayersMeResponses, PlayerAchievementDto, PlayerByIdDto, PlayerClubDto, PlayerResponseDto, PlayerSearchItemDto, PlayerSearchRequestDto, PlayerSearchResultDto, PlayerVideoDto, PlayUrlResponseDto, PostApiBodyMeasurementsData, PostApiBodyMeasurementsErrors, PostApiBodyMeasurementsResponse, PostApiBodyMeasurementsResponses, PostApiClubsMeData, PostApiClubsMeErrors, PostApiClubsMeResponse, PostApiClubsMeResponses, PostApiDocumentsData, PostApiDocumentsErrors, PostApiDocumentsResponse, PostApiDocumentsResponses, PostApiInvitationsAcceptData, PostApiInvitationsAcceptResponse, PostApiInvitationsAcceptResponses, PostApiInvitationsByIdResendData, PostApiInvitationsByIdResendErrors, PostApiInvitationsByIdResendResponse, PostApiInvitationsByIdResendResponses, PostApiInvitationsData, PostApiInvitationsErrors, PostApiInvitationsResponse, PostApiInvitationsResponses, PostApiOffersConversationsByIdMessagesData, PostApiOffersConversationsByIdMessagesErrors, PostApiOffersConversationsByIdMessagesResponse, PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsData, PostApiOffersConversationsErrors, PostApiOffersConversationsResponse, PostApiOffersConversationsResponses, PostApiOrganizationsRegisterClubData, PostApiOrganizationsRegisterClubErrors, PostApiOrganizationsRegisterClubResponse, PostApiOrganizationsRegisterClubResponses, PostApiPlayersMeHeartbeatData, PostApiPlayersMeHeartbeatErrors, PostApiPlayersMeHeartbeatResponse, PostApiPlayersMeHeartbeatResponses, PostApiPlayersSearchData, PostApiPlayersSearchErrors, PostApiPlayersSearchResponse, PostApiPlayersSearchResponses, PostApiStorageUploadUrlData, PostApiStorageUploadUrlErrors, PostApiStorageUploadUrlResponse, PostApiStorageUploadUrlResponses, PostApiVideosData, PostApiVideosErrors, PostApiVideosResponse, PostApiVideosResponses, PreviousClubDto, ProfileResponseDto, PutApiOrganizationsMeData, PutApiOrganizationsMeErrors, PutApiOrganizationsMeResponse, PutApiOrganizationsMeResponses, PutApiProfileMeData, PutApiProfileMeErrors, PutApiProfileMeResponse, PutApiProfileMeResponses, RegisterClubDto, RegisterClubResponseDto, SendInvitationRequestDto, SendMessageDto, TrainingCategoryGroupDto, TrainingContentDetailDto, TrainingContentListItemDto, UpdateClubDto, UpdateOrganizationDto, UpdatePlayerDto, UpdateProfileDto, UploadUrlResponseDto, UserAchievementResponseDto, VideoResponseDto, WatchingOrgDto, } from './types.gen.js';
|
|
3
3
|
export { client, type CreateClientConfig } from './client.gen.js';
|
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client/index.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DeleteApiClubsMeByIdData, DeleteApiClubsMeByIdErrors, DeleteApiClubsMeByIdResponses, DeleteApiInvitationsByIdData, DeleteApiInvitationsByIdErrors, DeleteApiInvitationsByIdResponses, DeleteApiPlayersMeData, DeleteApiPlayersMeErrors, DeleteApiPlayersMeResponses, DeleteApiVideosByIdData, DeleteApiVideosByIdErrors, DeleteApiVideosByIdResponses, GetApiAchievementsData, GetApiAchievementsMeData, GetApiAchievementsMeErrors, GetApiAchievementsMeResponses, GetApiAchievementsResponses, GetApiAuthMeData, GetApiAuthMeErrors, GetApiAuthMeResponses, GetApiBodyMeasurementsMeData, GetApiBodyMeasurementsMeErrors, GetApiBodyMeasurementsMeResponses, GetApiChallengesData, GetApiChallengesErrors, GetApiChallengesMeData, GetApiChallengesMeErrors, GetApiChallengesMeResponses, GetApiChallengesResponses, GetApiClubsMeData, GetApiClubsMeErrors, GetApiClubsMeResponses, GetApiDocumentsMeData, GetApiDocumentsMeErrors, GetApiDocumentsMeResponses, GetApiIndexByTableNameData, GetApiIndexByTableNameErrors, GetApiIndexByTableNameResponses, GetApiInvitationsData, GetApiInvitationsResponses, GetApiOffersConversationsByIdMessagesData, GetApiOffersConversationsByIdMessagesErrors, GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsData, GetApiOffersConversationsErrors, GetApiOffersConversationsResponses, GetApiOrganizationsMeData, GetApiOrganizationsMeErrors, GetApiOrganizationsMeResponses, GetApiPlayersByIdData, GetApiPlayersByIdErrors, GetApiPlayersByIdResponses, GetApiPlayersMeDashboardData, GetApiPlayersMeDashboardErrors, GetApiPlayersMeDashboardResponses, GetApiPlayersMeData, GetApiPlayersMeErrors, GetApiPlayersMeResponses, GetApiProfileMeData, GetApiProfileMeErrors, GetApiProfileMeResponses, GetApiTrainingByIdData, GetApiTrainingByIdErrors, GetApiTrainingByIdResponses, GetApiTrainingData, GetApiTrainingErrors, GetApiTrainingGroupedData, GetApiTrainingGroupedErrors, GetApiTrainingGroupedResponses, GetApiTrainingResponses, GetApiVideosByIdPlayUrlData, GetApiVideosByIdPlayUrlErrors, GetApiVideosByIdPlayUrlResponses, GetApiVideosMeData, GetApiVideosMeErrors, GetApiVideosMeResponses, PatchApiClubsMeByIdData, PatchApiClubsMeByIdErrors, PatchApiClubsMeByIdResponses, PatchApiOffersConversationsByIdReadData, PatchApiOffersConversationsByIdReadErrors, PatchApiOffersConversationsByIdReadResponses, PatchApiPlayersMeData, PatchApiPlayersMeErrors, PatchApiPlayersMeResponses, PostApiBodyMeasurementsData, PostApiBodyMeasurementsErrors, PostApiBodyMeasurementsResponses, PostApiClubsMeData, PostApiClubsMeErrors, PostApiClubsMeResponses, PostApiDocumentsData, PostApiDocumentsErrors, PostApiDocumentsResponses, PostApiInvitationsAcceptData, PostApiInvitationsAcceptResponses, PostApiInvitationsByIdResendData, PostApiInvitationsByIdResendErrors, PostApiInvitationsByIdResendResponses, PostApiInvitationsData, PostApiInvitationsErrors, PostApiInvitationsResponses, PostApiOffersConversationsByIdMessagesData, PostApiOffersConversationsByIdMessagesErrors, PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsData, PostApiOffersConversationsErrors, PostApiOffersConversationsResponses, PostApiOrganizationsRegisterClubData, PostApiOrganizationsRegisterClubErrors, PostApiOrganizationsRegisterClubResponses, PostApiPlayersMeHeartbeatData, PostApiPlayersMeHeartbeatErrors, PostApiPlayersMeHeartbeatResponses, PostApiPlayersSearchData, PostApiPlayersSearchErrors, PostApiPlayersSearchResponses, PostApiStorageUploadUrlData, PostApiStorageUploadUrlErrors, PostApiStorageUploadUrlResponses, PostApiVideosData, PostApiVideosErrors, PostApiVideosResponses, PutApiOrganizationsMeData, PutApiOrganizationsMeErrors, PutApiOrganizationsMeResponses, PutApiProfileMeData, PutApiProfileMeErrors, PutApiProfileMeResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -26,99 +26,99 @@ declare class HeyApiRegistry<T> {
|
|
|
26
26
|
set(value: T, key?: string): void;
|
|
27
27
|
}
|
|
28
28
|
export declare class Auth extends HeyApiClient {
|
|
29
|
-
getAuthMe<ThrowOnError extends boolean = false>(options?: Options<
|
|
29
|
+
getAuthMe<ThrowOnError extends boolean = false>(options?: Options<GetApiAuthMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiAuthMeResponses, GetApiAuthMeErrors, ThrowOnError, "fields">;
|
|
30
30
|
}
|
|
31
31
|
export declare class Players extends HeyApiClient {
|
|
32
|
-
deleteMe<ThrowOnError extends boolean = false>(options?: Options<
|
|
33
|
-
getMe<ThrowOnError extends boolean = false>(options?: Options<
|
|
34
|
-
patchMe<ThrowOnError extends boolean = false>(options: Options<
|
|
35
|
-
getMyDashboard<ThrowOnError extends boolean = false>(options?: Options<
|
|
32
|
+
deleteMe<ThrowOnError extends boolean = false>(options?: Options<DeleteApiPlayersMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiPlayersMeResponses, DeleteApiPlayersMeErrors, ThrowOnError, "fields">;
|
|
33
|
+
getMe<ThrowOnError extends boolean = false>(options?: Options<GetApiPlayersMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiPlayersMeResponses, GetApiPlayersMeErrors, ThrowOnError, "fields">;
|
|
34
|
+
patchMe<ThrowOnError extends boolean = false>(options: Options<PatchApiPlayersMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PatchApiPlayersMeResponses, PatchApiPlayersMeErrors, ThrowOnError, "fields">;
|
|
35
|
+
getMyDashboard<ThrowOnError extends boolean = false>(options?: Options<GetApiPlayersMeDashboardData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiPlayersMeDashboardResponses, GetApiPlayersMeDashboardErrors, ThrowOnError, "fields">;
|
|
36
36
|
/**
|
|
37
37
|
* Ping presence; records login day and updates user timezone
|
|
38
38
|
*/
|
|
39
|
-
heartbeat<ThrowOnError extends boolean = false>(options: Options<
|
|
40
|
-
searchPlayers<ThrowOnError extends boolean = false>(options: Options<
|
|
41
|
-
getPlayerById<ThrowOnError extends boolean = false>(options: Options<
|
|
39
|
+
heartbeat<ThrowOnError extends boolean = false>(options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiPlayersMeHeartbeatResponses, PostApiPlayersMeHeartbeatErrors, ThrowOnError, "fields">;
|
|
40
|
+
searchPlayers<ThrowOnError extends boolean = false>(options: Options<PostApiPlayersSearchData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiPlayersSearchResponses, PostApiPlayersSearchErrors, ThrowOnError, "fields">;
|
|
41
|
+
getPlayerById<ThrowOnError extends boolean = false>(options: Options<GetApiPlayersByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiPlayersByIdResponses, GetApiPlayersByIdErrors, ThrowOnError, "fields">;
|
|
42
42
|
}
|
|
43
43
|
export declare class Profile extends HeyApiClient {
|
|
44
|
-
getProfileMe<ThrowOnError extends boolean = false>(options?: Options<
|
|
45
|
-
updateProfileMe<ThrowOnError extends boolean = false>(options: Options<
|
|
44
|
+
getProfileMe<ThrowOnError extends boolean = false>(options?: Options<GetApiProfileMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiProfileMeResponses, GetApiProfileMeErrors, ThrowOnError, "fields">;
|
|
45
|
+
updateProfileMe<ThrowOnError extends boolean = false>(options: Options<PutApiProfileMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PutApiProfileMeResponses, PutApiProfileMeErrors, ThrowOnError, "fields">;
|
|
46
46
|
}
|
|
47
47
|
export declare class Achievements extends HeyApiClient {
|
|
48
|
-
getAchievementsCatalog<ThrowOnError extends boolean = false>(options?: Options<
|
|
49
|
-
getMyAchievements<ThrowOnError extends boolean = false>(options?: Options<
|
|
48
|
+
getAchievementsCatalog<ThrowOnError extends boolean = false>(options?: Options<GetApiAchievementsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiAchievementsResponses, unknown, ThrowOnError, "fields">;
|
|
49
|
+
getMyAchievements<ThrowOnError extends boolean = false>(options?: Options<GetApiAchievementsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiAchievementsMeResponses, GetApiAchievementsMeErrors, ThrowOnError, "fields">;
|
|
50
50
|
}
|
|
51
51
|
export declare class Body extends HeyApiClient {
|
|
52
|
-
getMyMeasurements<ThrowOnError extends boolean = false>(options?: Options<
|
|
53
|
-
createMeasurement<ThrowOnError extends boolean = false>(options: Options<
|
|
52
|
+
getMyMeasurements<ThrowOnError extends boolean = false>(options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiBodyMeasurementsMeResponses, GetApiBodyMeasurementsMeErrors, ThrowOnError, "fields">;
|
|
53
|
+
createMeasurement<ThrowOnError extends boolean = false>(options: Options<PostApiBodyMeasurementsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiBodyMeasurementsResponses, PostApiBodyMeasurementsErrors, ThrowOnError, "fields">;
|
|
54
54
|
}
|
|
55
55
|
export declare class Challenges extends HeyApiClient {
|
|
56
56
|
/**
|
|
57
57
|
* List all active challenges
|
|
58
58
|
*/
|
|
59
|
-
getChallengesCatalog<ThrowOnError extends boolean = false>(options?: Options<
|
|
59
|
+
getChallengesCatalog<ThrowOnError extends boolean = false>(options?: Options<GetApiChallengesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiChallengesResponses, GetApiChallengesErrors, ThrowOnError, "fields">;
|
|
60
60
|
/**
|
|
61
61
|
* Get the current user's active + recently-expired challenges
|
|
62
62
|
*/
|
|
63
|
-
getMyChallenges<ThrowOnError extends boolean = false>(options?: Options<
|
|
63
|
+
getMyChallenges<ThrowOnError extends boolean = false>(options?: Options<GetApiChallengesMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiChallengesMeResponses, GetApiChallengesMeErrors, ThrowOnError, "fields">;
|
|
64
64
|
}
|
|
65
65
|
export declare class Clubs extends HeyApiClient {
|
|
66
|
-
getMyClubs<ThrowOnError extends boolean = false>(options?: Options<
|
|
67
|
-
createMyClub<ThrowOnError extends boolean = false>(options: Options<
|
|
68
|
-
deleteMyClub<ThrowOnError extends boolean = false>(options: Options<
|
|
69
|
-
updateMyClub<ThrowOnError extends boolean = false>(options: Options<
|
|
66
|
+
getMyClubs<ThrowOnError extends boolean = false>(options?: Options<GetApiClubsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiClubsMeResponses, GetApiClubsMeErrors, ThrowOnError, "fields">;
|
|
67
|
+
createMyClub<ThrowOnError extends boolean = false>(options: Options<PostApiClubsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiClubsMeResponses, PostApiClubsMeErrors, ThrowOnError, "fields">;
|
|
68
|
+
deleteMyClub<ThrowOnError extends boolean = false>(options: Options<DeleteApiClubsMeByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiClubsMeByIdResponses, DeleteApiClubsMeByIdErrors, ThrowOnError, "fields">;
|
|
69
|
+
updateMyClub<ThrowOnError extends boolean = false>(options: Options<PatchApiClubsMeByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PatchApiClubsMeByIdResponses, PatchApiClubsMeByIdErrors, ThrowOnError, "fields">;
|
|
70
70
|
}
|
|
71
71
|
export declare class Documents extends HeyApiClient {
|
|
72
|
-
getMyDocuments<ThrowOnError extends boolean = false>(options?: Options<
|
|
73
|
-
createDocument<ThrowOnError extends boolean = false>(options: Options<
|
|
72
|
+
getMyDocuments<ThrowOnError extends boolean = false>(options?: Options<GetApiDocumentsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiDocumentsMeResponses, GetApiDocumentsMeErrors, ThrowOnError, "fields">;
|
|
73
|
+
createDocument<ThrowOnError extends boolean = false>(options: Options<PostApiDocumentsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiDocumentsResponses, PostApiDocumentsErrors, ThrowOnError, "fields">;
|
|
74
74
|
}
|
|
75
75
|
export declare class Index extends HeyApiClient {
|
|
76
|
-
getIndexItems<ThrowOnError extends boolean = false>(options: Options<
|
|
76
|
+
getIndexItems<ThrowOnError extends boolean = false>(options: Options<GetApiIndexByTableNameData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiIndexByTableNameResponses, GetApiIndexByTableNameErrors, ThrowOnError, "fields">;
|
|
77
77
|
}
|
|
78
78
|
export declare class Offers extends HeyApiClient {
|
|
79
|
-
listConversations<ThrowOnError extends boolean = false>(options?: Options<
|
|
80
|
-
createConversation<ThrowOnError extends boolean = false>(options: Options<
|
|
81
|
-
listMessages<ThrowOnError extends boolean = false>(options: Options<
|
|
82
|
-
sendMessage<ThrowOnError extends boolean = false>(options: Options<
|
|
83
|
-
markConversationRead<ThrowOnError extends boolean = false>(options: Options<
|
|
79
|
+
listConversations<ThrowOnError extends boolean = false>(options?: Options<GetApiOffersConversationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiOffersConversationsResponses, GetApiOffersConversationsErrors, ThrowOnError, "fields">;
|
|
80
|
+
createConversation<ThrowOnError extends boolean = false>(options: Options<PostApiOffersConversationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiOffersConversationsResponses, PostApiOffersConversationsErrors, ThrowOnError, "fields">;
|
|
81
|
+
listMessages<ThrowOnError extends boolean = false>(options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsByIdMessagesErrors, ThrowOnError, "fields">;
|
|
82
|
+
sendMessage<ThrowOnError extends boolean = false>(options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsByIdMessagesErrors, ThrowOnError, "fields">;
|
|
83
|
+
markConversationRead<ThrowOnError extends boolean = false>(options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PatchApiOffersConversationsByIdReadResponses, PatchApiOffersConversationsByIdReadErrors, ThrowOnError, "fields">;
|
|
84
84
|
}
|
|
85
85
|
export declare class Organizations extends HeyApiClient {
|
|
86
|
-
registerClub<ThrowOnError extends boolean = false>(options: Options<
|
|
87
|
-
getMyOrganization<ThrowOnError extends boolean = false>(options?: Options<
|
|
88
|
-
updateMyOrganization<ThrowOnError extends boolean = false>(options: Options<
|
|
86
|
+
registerClub<ThrowOnError extends boolean = false>(options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiOrganizationsRegisterClubResponses, PostApiOrganizationsRegisterClubErrors, ThrowOnError, "fields">;
|
|
87
|
+
getMyOrganization<ThrowOnError extends boolean = false>(options?: Options<GetApiOrganizationsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiOrganizationsMeResponses, GetApiOrganizationsMeErrors, ThrowOnError, "fields">;
|
|
88
|
+
updateMyOrganization<ThrowOnError extends boolean = false>(options: Options<PutApiOrganizationsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PutApiOrganizationsMeResponses, PutApiOrganizationsMeErrors, ThrowOnError, "fields">;
|
|
89
89
|
}
|
|
90
90
|
export declare class Storage extends HeyApiClient {
|
|
91
|
-
createUploadUrl<ThrowOnError extends boolean = false>(options: Options<
|
|
91
|
+
createUploadUrl<ThrowOnError extends boolean = false>(options: Options<PostApiStorageUploadUrlData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiStorageUploadUrlResponses, PostApiStorageUploadUrlErrors, ThrowOnError, "fields">;
|
|
92
92
|
}
|
|
93
93
|
export declare class Invitations extends HeyApiClient {
|
|
94
|
-
listInvitations<ThrowOnError extends boolean = false>(options?: Options<
|
|
95
|
-
sendInvitation<ThrowOnError extends boolean = false>(options: Options<
|
|
96
|
-
resendInvitation<ThrowOnError extends boolean = false>(options: Options<
|
|
97
|
-
deleteInvitation<ThrowOnError extends boolean = false>(options: Options<
|
|
94
|
+
listInvitations<ThrowOnError extends boolean = false>(options?: Options<GetApiInvitationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiInvitationsResponses, unknown, ThrowOnError, "fields">;
|
|
95
|
+
sendInvitation<ThrowOnError extends boolean = false>(options: Options<PostApiInvitationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiInvitationsResponses, PostApiInvitationsErrors, ThrowOnError, "fields">;
|
|
96
|
+
resendInvitation<ThrowOnError extends boolean = false>(options: Options<PostApiInvitationsByIdResendData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiInvitationsByIdResendResponses, PostApiInvitationsByIdResendErrors, ThrowOnError, "fields">;
|
|
97
|
+
deleteInvitation<ThrowOnError extends boolean = false>(options: Options<DeleteApiInvitationsByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiInvitationsByIdResponses, DeleteApiInvitationsByIdErrors, ThrowOnError, "fields">;
|
|
98
98
|
/**
|
|
99
99
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
100
100
|
*/
|
|
101
|
-
acceptInvitation<ThrowOnError extends boolean = false>(options?: Options<
|
|
101
|
+
acceptInvitation<ThrowOnError extends boolean = false>(options?: Options<PostApiInvitationsAcceptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiInvitationsAcceptResponses, unknown, ThrowOnError, "fields">;
|
|
102
102
|
}
|
|
103
103
|
export declare class Training extends HeyApiClient {
|
|
104
104
|
/**
|
|
105
105
|
* Get training content grouped by category, top 3 per category
|
|
106
106
|
*/
|
|
107
|
-
getTrainingGrouped<ThrowOnError extends boolean = false>(options?: Options<
|
|
107
|
+
getTrainingGrouped<ThrowOnError extends boolean = false>(options?: Options<GetApiTrainingGroupedData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiTrainingGroupedResponses, GetApiTrainingGroupedErrors, ThrowOnError, "fields">;
|
|
108
108
|
/**
|
|
109
109
|
* List training content, optionally filtered by category
|
|
110
110
|
*/
|
|
111
|
-
getTrainingList<ThrowOnError extends boolean = false>(options?: Options<
|
|
111
|
+
getTrainingList<ThrowOnError extends boolean = false>(options?: Options<GetApiTrainingData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiTrainingResponses, GetApiTrainingErrors, ThrowOnError, "fields">;
|
|
112
112
|
/**
|
|
113
113
|
* Get full detail of a training content item
|
|
114
114
|
*/
|
|
115
|
-
getTrainingById<ThrowOnError extends boolean = false>(options: Options<
|
|
115
|
+
getTrainingById<ThrowOnError extends boolean = false>(options: Options<GetApiTrainingByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiTrainingByIdResponses, GetApiTrainingByIdErrors, ThrowOnError, "fields">;
|
|
116
116
|
}
|
|
117
117
|
export declare class Videos extends HeyApiClient {
|
|
118
|
-
getMyVideos<ThrowOnError extends boolean = false>(options: Options<
|
|
119
|
-
createVideo<ThrowOnError extends boolean = false>(options: Options<
|
|
120
|
-
getVideoPlayUrl<ThrowOnError extends boolean = false>(options: Options<
|
|
121
|
-
deleteVideo<ThrowOnError extends boolean = false>(options: Options<
|
|
118
|
+
getMyVideos<ThrowOnError extends boolean = false>(options: Options<GetApiVideosMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiVideosMeResponses, GetApiVideosMeErrors, ThrowOnError, "fields">;
|
|
119
|
+
createVideo<ThrowOnError extends boolean = false>(options: Options<PostApiVideosData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiVideosResponses, PostApiVideosErrors, ThrowOnError, "fields">;
|
|
120
|
+
getVideoPlayUrl<ThrowOnError extends boolean = false>(options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiVideosByIdPlayUrlResponses, GetApiVideosByIdPlayUrlErrors, ThrowOnError, "fields">;
|
|
121
|
+
deleteVideo<ThrowOnError extends boolean = false>(options: Options<DeleteApiVideosByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiVideosByIdResponses, DeleteApiVideosByIdErrors, ThrowOnError, "fields">;
|
|
122
122
|
}
|
|
123
123
|
export declare class GlobalScoutMeClient extends HeyApiClient {
|
|
124
124
|
static readonly __registry: HeyApiRegistry<GlobalScoutMeClient>;
|
package/dist/sdk.gen.js
CHANGED
|
@@ -23,19 +23,19 @@ class HeyApiRegistry {
|
|
|
23
23
|
}
|
|
24
24
|
export class Auth extends HeyApiClient {
|
|
25
25
|
getAuthMe(options) {
|
|
26
|
-
return (options?.client ?? this.client).get({ url: '/auth/me', ...options });
|
|
26
|
+
return (options?.client ?? this.client).get({ url: '/api/auth/me', ...options });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export class Players extends HeyApiClient {
|
|
30
30
|
deleteMe(options) {
|
|
31
|
-
return (options?.client ?? this.client).delete({ url: '/players/me', ...options });
|
|
31
|
+
return (options?.client ?? this.client).delete({ url: '/api/players/me', ...options });
|
|
32
32
|
}
|
|
33
33
|
getMe(options) {
|
|
34
|
-
return (options?.client ?? this.client).get({ url: '/players/me', ...options });
|
|
34
|
+
return (options?.client ?? this.client).get({ url: '/api/players/me', ...options });
|
|
35
35
|
}
|
|
36
36
|
patchMe(options) {
|
|
37
37
|
return (options.client ?? this.client).patch({
|
|
38
|
-
url: '/players/me',
|
|
38
|
+
url: '/api/players/me',
|
|
39
39
|
...options,
|
|
40
40
|
headers: {
|
|
41
41
|
'Content-Type': 'application/json',
|
|
@@ -44,14 +44,14 @@ export class Players extends HeyApiClient {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
getMyDashboard(options) {
|
|
47
|
-
return (options?.client ?? this.client).get({ url: '/players/me/dashboard', ...options });
|
|
47
|
+
return (options?.client ?? this.client).get({ url: '/api/players/me/dashboard', ...options });
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Ping presence; records login day and updates user timezone
|
|
51
51
|
*/
|
|
52
52
|
heartbeat(options) {
|
|
53
53
|
return (options.client ?? this.client).post({
|
|
54
|
-
url: '/players/me/heartbeat',
|
|
54
|
+
url: '/api/players/me/heartbeat',
|
|
55
55
|
...options,
|
|
56
56
|
headers: {
|
|
57
57
|
'Content-Type': 'application/json',
|
|
@@ -61,7 +61,7 @@ export class Players extends HeyApiClient {
|
|
|
61
61
|
}
|
|
62
62
|
searchPlayers(options) {
|
|
63
63
|
return (options.client ?? this.client).post({
|
|
64
|
-
url: '/players/search',
|
|
64
|
+
url: '/api/players/search',
|
|
65
65
|
...options,
|
|
66
66
|
headers: {
|
|
67
67
|
'Content-Type': 'application/json',
|
|
@@ -70,16 +70,16 @@ export class Players extends HeyApiClient {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
getPlayerById(options) {
|
|
73
|
-
return (options.client ?? this.client).get({ url: '/players/{id}', ...options });
|
|
73
|
+
return (options.client ?? this.client).get({ url: '/api/players/{id}', ...options });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
export class Profile extends HeyApiClient {
|
|
77
77
|
getProfileMe(options) {
|
|
78
|
-
return (options?.client ?? this.client).get({ url: '/profile/me', ...options });
|
|
78
|
+
return (options?.client ?? this.client).get({ url: '/api/profile/me', ...options });
|
|
79
79
|
}
|
|
80
80
|
updateProfileMe(options) {
|
|
81
81
|
return (options.client ?? this.client).put({
|
|
82
|
-
url: '/profile/me',
|
|
82
|
+
url: '/api/profile/me',
|
|
83
83
|
...options,
|
|
84
84
|
headers: {
|
|
85
85
|
'Content-Type': 'application/json',
|
|
@@ -90,19 +90,19 @@ export class Profile extends HeyApiClient {
|
|
|
90
90
|
}
|
|
91
91
|
export class Achievements extends HeyApiClient {
|
|
92
92
|
getAchievementsCatalog(options) {
|
|
93
|
-
return (options?.client ?? this.client).get({ url: '/achievements', ...options });
|
|
93
|
+
return (options?.client ?? this.client).get({ url: '/api/achievements', ...options });
|
|
94
94
|
}
|
|
95
95
|
getMyAchievements(options) {
|
|
96
|
-
return (options?.client ?? this.client).get({ url: '/achievements/me', ...options });
|
|
96
|
+
return (options?.client ?? this.client).get({ url: '/api/achievements/me', ...options });
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
export class Body extends HeyApiClient {
|
|
100
100
|
getMyMeasurements(options) {
|
|
101
|
-
return (options?.client ?? this.client).get({ url: '/body/measurements/me', ...options });
|
|
101
|
+
return (options?.client ?? this.client).get({ url: '/api/body/measurements/me', ...options });
|
|
102
102
|
}
|
|
103
103
|
createMeasurement(options) {
|
|
104
104
|
return (options.client ?? this.client).post({
|
|
105
|
-
url: '/body/measurements',
|
|
105
|
+
url: '/api/body/measurements',
|
|
106
106
|
...options,
|
|
107
107
|
headers: {
|
|
108
108
|
'Content-Type': 'application/json',
|
|
@@ -116,22 +116,22 @@ export class Challenges extends HeyApiClient {
|
|
|
116
116
|
* List all active challenges
|
|
117
117
|
*/
|
|
118
118
|
getChallengesCatalog(options) {
|
|
119
|
-
return (options?.client ?? this.client).get({ url: '/challenges', ...options });
|
|
119
|
+
return (options?.client ?? this.client).get({ url: '/api/challenges', ...options });
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* Get the current user's active + recently-expired challenges
|
|
123
123
|
*/
|
|
124
124
|
getMyChallenges(options) {
|
|
125
|
-
return (options?.client ?? this.client).get({ url: '/challenges/me', ...options });
|
|
125
|
+
return (options?.client ?? this.client).get({ url: '/api/challenges/me', ...options });
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
export class Clubs extends HeyApiClient {
|
|
129
129
|
getMyClubs(options) {
|
|
130
|
-
return (options?.client ?? this.client).get({ url: '/clubs/me', ...options });
|
|
130
|
+
return (options?.client ?? this.client).get({ url: '/api/clubs/me', ...options });
|
|
131
131
|
}
|
|
132
132
|
createMyClub(options) {
|
|
133
133
|
return (options.client ?? this.client).post({
|
|
134
|
-
url: '/clubs/me',
|
|
134
|
+
url: '/api/clubs/me',
|
|
135
135
|
...options,
|
|
136
136
|
headers: {
|
|
137
137
|
'Content-Type': 'application/json',
|
|
@@ -140,11 +140,11 @@ export class Clubs extends HeyApiClient {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
deleteMyClub(options) {
|
|
143
|
-
return (options.client ?? this.client).delete({ url: '/clubs/me/{id}', ...options });
|
|
143
|
+
return (options.client ?? this.client).delete({ url: '/api/clubs/me/{id}', ...options });
|
|
144
144
|
}
|
|
145
145
|
updateMyClub(options) {
|
|
146
146
|
return (options.client ?? this.client).patch({
|
|
147
|
-
url: '/clubs/me/{id}',
|
|
147
|
+
url: '/api/clubs/me/{id}',
|
|
148
148
|
...options,
|
|
149
149
|
headers: {
|
|
150
150
|
'Content-Type': 'application/json',
|
|
@@ -155,11 +155,11 @@ export class Clubs extends HeyApiClient {
|
|
|
155
155
|
}
|
|
156
156
|
export class Documents extends HeyApiClient {
|
|
157
157
|
getMyDocuments(options) {
|
|
158
|
-
return (options?.client ?? this.client).get({ url: '/documents/me', ...options });
|
|
158
|
+
return (options?.client ?? this.client).get({ url: '/api/documents/me', ...options });
|
|
159
159
|
}
|
|
160
160
|
createDocument(options) {
|
|
161
161
|
return (options.client ?? this.client).post({
|
|
162
|
-
url: '/documents',
|
|
162
|
+
url: '/api/documents',
|
|
163
163
|
...options,
|
|
164
164
|
headers: {
|
|
165
165
|
'Content-Type': 'application/json',
|
|
@@ -170,16 +170,16 @@ export class Documents extends HeyApiClient {
|
|
|
170
170
|
}
|
|
171
171
|
export class Index extends HeyApiClient {
|
|
172
172
|
getIndexItems(options) {
|
|
173
|
-
return (options.client ?? this.client).get({ url: '/index/{tableName}', ...options });
|
|
173
|
+
return (options.client ?? this.client).get({ url: '/api/index/{tableName}', ...options });
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
export class Offers extends HeyApiClient {
|
|
177
177
|
listConversations(options) {
|
|
178
|
-
return (options?.client ?? this.client).get({ url: '/offers/conversations', ...options });
|
|
178
|
+
return (options?.client ?? this.client).get({ url: '/api/offers/conversations', ...options });
|
|
179
179
|
}
|
|
180
180
|
createConversation(options) {
|
|
181
181
|
return (options.client ?? this.client).post({
|
|
182
|
-
url: '/offers/conversations',
|
|
182
|
+
url: '/api/offers/conversations',
|
|
183
183
|
...options,
|
|
184
184
|
headers: {
|
|
185
185
|
'Content-Type': 'application/json',
|
|
@@ -188,11 +188,11 @@ export class Offers extends HeyApiClient {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
listMessages(options) {
|
|
191
|
-
return (options.client ?? this.client).get({ url: '/offers/conversations/{id}/messages', ...options });
|
|
191
|
+
return (options.client ?? this.client).get({ url: '/api/offers/conversations/{id}/messages', ...options });
|
|
192
192
|
}
|
|
193
193
|
sendMessage(options) {
|
|
194
194
|
return (options.client ?? this.client).post({
|
|
195
|
-
url: '/offers/conversations/{id}/messages',
|
|
195
|
+
url: '/api/offers/conversations/{id}/messages',
|
|
196
196
|
...options,
|
|
197
197
|
headers: {
|
|
198
198
|
'Content-Type': 'application/json',
|
|
@@ -201,13 +201,13 @@ export class Offers extends HeyApiClient {
|
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
markConversationRead(options) {
|
|
204
|
-
return (options.client ?? this.client).patch({ url: '/offers/conversations/{id}/read', ...options });
|
|
204
|
+
return (options.client ?? this.client).patch({ url: '/api/offers/conversations/{id}/read', ...options });
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
export class Organizations extends HeyApiClient {
|
|
208
208
|
registerClub(options) {
|
|
209
209
|
return (options.client ?? this.client).post({
|
|
210
|
-
url: '/organizations/register-club',
|
|
210
|
+
url: '/api/organizations/register-club',
|
|
211
211
|
...options,
|
|
212
212
|
headers: {
|
|
213
213
|
'Content-Type': 'application/json',
|
|
@@ -216,11 +216,11 @@ export class Organizations extends HeyApiClient {
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
getMyOrganization(options) {
|
|
219
|
-
return (options?.client ?? this.client).get({ url: '/organizations/me', ...options });
|
|
219
|
+
return (options?.client ?? this.client).get({ url: '/api/organizations/me', ...options });
|
|
220
220
|
}
|
|
221
221
|
updateMyOrganization(options) {
|
|
222
222
|
return (options.client ?? this.client).put({
|
|
223
|
-
url: '/organizations/me',
|
|
223
|
+
url: '/api/organizations/me',
|
|
224
224
|
...options,
|
|
225
225
|
headers: {
|
|
226
226
|
'Content-Type': 'application/json',
|
|
@@ -232,7 +232,7 @@ export class Organizations extends HeyApiClient {
|
|
|
232
232
|
export class Storage extends HeyApiClient {
|
|
233
233
|
createUploadUrl(options) {
|
|
234
234
|
return (options.client ?? this.client).post({
|
|
235
|
-
url: '/storage/upload-url',
|
|
235
|
+
url: '/api/storage/upload-url',
|
|
236
236
|
...options,
|
|
237
237
|
headers: {
|
|
238
238
|
'Content-Type': 'application/json',
|
|
@@ -243,11 +243,11 @@ export class Storage extends HeyApiClient {
|
|
|
243
243
|
}
|
|
244
244
|
export class Invitations extends HeyApiClient {
|
|
245
245
|
listInvitations(options) {
|
|
246
|
-
return (options?.client ?? this.client).get({ url: '/invitations', ...options });
|
|
246
|
+
return (options?.client ?? this.client).get({ url: '/api/invitations', ...options });
|
|
247
247
|
}
|
|
248
248
|
sendInvitation(options) {
|
|
249
249
|
return (options.client ?? this.client).post({
|
|
250
|
-
url: '/invitations',
|
|
250
|
+
url: '/api/invitations',
|
|
251
251
|
...options,
|
|
252
252
|
headers: {
|
|
253
253
|
'Content-Type': 'application/json',
|
|
@@ -256,16 +256,16 @@ export class Invitations extends HeyApiClient {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
resendInvitation(options) {
|
|
259
|
-
return (options.client ?? this.client).post({ url: '/invitations/{id}/resend', ...options });
|
|
259
|
+
return (options.client ?? this.client).post({ url: '/api/invitations/{id}/resend', ...options });
|
|
260
260
|
}
|
|
261
261
|
deleteInvitation(options) {
|
|
262
|
-
return (options.client ?? this.client).delete({ url: '/invitations/{id}', ...options });
|
|
262
|
+
return (options.client ?? this.client).delete({ url: '/api/invitations/{id}', ...options });
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
265
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
266
266
|
*/
|
|
267
267
|
acceptInvitation(options) {
|
|
268
|
-
return (options?.client ?? this.client).post({ url: '/invitations/accept', ...options });
|
|
268
|
+
return (options?.client ?? this.client).post({ url: '/api/invitations/accept', ...options });
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
export class Training extends HeyApiClient {
|
|
@@ -273,28 +273,28 @@ export class Training extends HeyApiClient {
|
|
|
273
273
|
* Get training content grouped by category, top 3 per category
|
|
274
274
|
*/
|
|
275
275
|
getTrainingGrouped(options) {
|
|
276
|
-
return (options?.client ?? this.client).get({ url: '/training/grouped', ...options });
|
|
276
|
+
return (options?.client ?? this.client).get({ url: '/api/training/grouped', ...options });
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
279
|
* List training content, optionally filtered by category
|
|
280
280
|
*/
|
|
281
281
|
getTrainingList(options) {
|
|
282
|
-
return (options?.client ?? this.client).get({ url: '/training', ...options });
|
|
282
|
+
return (options?.client ?? this.client).get({ url: '/api/training', ...options });
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
285
|
* Get full detail of a training content item
|
|
286
286
|
*/
|
|
287
287
|
getTrainingById(options) {
|
|
288
|
-
return (options.client ?? this.client).get({ url: '/training/{id}', ...options });
|
|
288
|
+
return (options.client ?? this.client).get({ url: '/api/training/{id}', ...options });
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
export class Videos extends HeyApiClient {
|
|
292
292
|
getMyVideos(options) {
|
|
293
|
-
return (options.client ?? this.client).get({ url: '/videos/me', ...options });
|
|
293
|
+
return (options.client ?? this.client).get({ url: '/api/videos/me', ...options });
|
|
294
294
|
}
|
|
295
295
|
createVideo(options) {
|
|
296
296
|
return (options.client ?? this.client).post({
|
|
297
|
-
url: '/videos',
|
|
297
|
+
url: '/api/videos',
|
|
298
298
|
...options,
|
|
299
299
|
headers: {
|
|
300
300
|
'Content-Type': 'application/json',
|
|
@@ -303,10 +303,10 @@ export class Videos extends HeyApiClient {
|
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
getVideoPlayUrl(options) {
|
|
306
|
-
return (options.client ?? this.client).get({ url: '/videos/{id}/play-url', ...options });
|
|
306
|
+
return (options.client ?? this.client).get({ url: '/api/videos/{id}/play-url', ...options });
|
|
307
307
|
}
|
|
308
308
|
deleteVideo(options) {
|
|
309
|
-
return (options.client ?? this.client).delete({ url: '/videos/{id}', ...options });
|
|
309
|
+
return (options.client ?? this.client).delete({ url: '/api/videos/{id}', ...options });
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
export class GlobalScoutMeClient extends HeyApiClient {
|