@globalscoutme/api-client 1.0.14 → 1.0.17
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 +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/sdk.gen.d.ts +46 -45
- package/dist/sdk.gen.js +47 -44
- package/dist/types.gen.d.ts +253 -216
- package/index.ts +177 -172
- package/package.json +1 -1
- package/sdk.gen.ts +315 -302
- package/types.gen.ts +302 -256
package/README.md
CHANGED
|
@@ -103,6 +103,8 @@ await Body.createMeasurement({ body: { heightCm: 180 } });
|
|
|
103
103
|
const positions = await Index.getIndexItems({
|
|
104
104
|
path: { tableName: 'positions' },
|
|
105
105
|
});
|
|
106
|
+
const countries = await Index.getCountries();
|
|
107
|
+
// Returns [{ code: 'BR', name: 'Brazil', nationalityName: 'Brazilian', flagEmoji: '🇧🇷' }, ...]
|
|
106
108
|
|
|
107
109
|
// Offers (conversations between scouts and players)
|
|
108
110
|
const conversations = await Offers.listConversations({
|
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, CountryDto, 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, GetApiIndexCountriesData, GetApiIndexCountriesErrors, GetApiIndexCountriesResponse, GetApiIndexCountriesResponses, 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, GetApiIndexCountriesData, GetApiIndexCountriesErrors, GetApiIndexCountriesResponses, 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,100 @@ 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
|
-
|
|
76
|
+
getCountries<ThrowOnError extends boolean = false>(options?: Options<GetApiIndexCountriesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiIndexCountriesResponses, GetApiIndexCountriesErrors, ThrowOnError, "fields">;
|
|
77
|
+
getIndexItems<ThrowOnError extends boolean = false>(options: Options<GetApiIndexByTableNameData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiIndexByTableNameResponses, GetApiIndexByTableNameErrors, ThrowOnError, "fields">;
|
|
77
78
|
}
|
|
78
79
|
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<
|
|
80
|
+
listConversations<ThrowOnError extends boolean = false>(options?: Options<GetApiOffersConversationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiOffersConversationsResponses, GetApiOffersConversationsErrors, ThrowOnError, "fields">;
|
|
81
|
+
createConversation<ThrowOnError extends boolean = false>(options: Options<PostApiOffersConversationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiOffersConversationsResponses, PostApiOffersConversationsErrors, ThrowOnError, "fields">;
|
|
82
|
+
listMessages<ThrowOnError extends boolean = false>(options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsByIdMessagesErrors, ThrowOnError, "fields">;
|
|
83
|
+
sendMessage<ThrowOnError extends boolean = false>(options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsByIdMessagesErrors, ThrowOnError, "fields">;
|
|
84
|
+
markConversationRead<ThrowOnError extends boolean = false>(options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PatchApiOffersConversationsByIdReadResponses, PatchApiOffersConversationsByIdReadErrors, ThrowOnError, "fields">;
|
|
84
85
|
}
|
|
85
86
|
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<
|
|
87
|
+
registerClub<ThrowOnError extends boolean = false>(options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiOrganizationsRegisterClubResponses, PostApiOrganizationsRegisterClubErrors, ThrowOnError, "fields">;
|
|
88
|
+
getMyOrganization<ThrowOnError extends boolean = false>(options?: Options<GetApiOrganizationsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiOrganizationsMeResponses, GetApiOrganizationsMeErrors, ThrowOnError, "fields">;
|
|
89
|
+
updateMyOrganization<ThrowOnError extends boolean = false>(options: Options<PutApiOrganizationsMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PutApiOrganizationsMeResponses, PutApiOrganizationsMeErrors, ThrowOnError, "fields">;
|
|
89
90
|
}
|
|
90
91
|
export declare class Storage extends HeyApiClient {
|
|
91
|
-
createUploadUrl<ThrowOnError extends boolean = false>(options: Options<
|
|
92
|
+
createUploadUrl<ThrowOnError extends boolean = false>(options: Options<PostApiStorageUploadUrlData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiStorageUploadUrlResponses, PostApiStorageUploadUrlErrors, ThrowOnError, "fields">;
|
|
92
93
|
}
|
|
93
94
|
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<
|
|
95
|
+
listInvitations<ThrowOnError extends boolean = false>(options?: Options<GetApiInvitationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiInvitationsResponses, unknown, ThrowOnError, "fields">;
|
|
96
|
+
sendInvitation<ThrowOnError extends boolean = false>(options: Options<PostApiInvitationsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiInvitationsResponses, PostApiInvitationsErrors, ThrowOnError, "fields">;
|
|
97
|
+
resendInvitation<ThrowOnError extends boolean = false>(options: Options<PostApiInvitationsByIdResendData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiInvitationsByIdResendResponses, PostApiInvitationsByIdResendErrors, ThrowOnError, "fields">;
|
|
98
|
+
deleteInvitation<ThrowOnError extends boolean = false>(options: Options<DeleteApiInvitationsByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiInvitationsByIdResponses, DeleteApiInvitationsByIdErrors, ThrowOnError, "fields">;
|
|
98
99
|
/**
|
|
99
100
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
100
101
|
*/
|
|
101
|
-
acceptInvitation<ThrowOnError extends boolean = false>(options?: Options<
|
|
102
|
+
acceptInvitation<ThrowOnError extends boolean = false>(options?: Options<PostApiInvitationsAcceptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiInvitationsAcceptResponses, unknown, ThrowOnError, "fields">;
|
|
102
103
|
}
|
|
103
104
|
export declare class Training extends HeyApiClient {
|
|
104
105
|
/**
|
|
105
106
|
* Get training content grouped by category, top 3 per category
|
|
106
107
|
*/
|
|
107
|
-
getTrainingGrouped<ThrowOnError extends boolean = false>(options?: Options<
|
|
108
|
+
getTrainingGrouped<ThrowOnError extends boolean = false>(options?: Options<GetApiTrainingGroupedData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiTrainingGroupedResponses, GetApiTrainingGroupedErrors, ThrowOnError, "fields">;
|
|
108
109
|
/**
|
|
109
110
|
* List training content, optionally filtered by category
|
|
110
111
|
*/
|
|
111
|
-
getTrainingList<ThrowOnError extends boolean = false>(options?: Options<
|
|
112
|
+
getTrainingList<ThrowOnError extends boolean = false>(options?: Options<GetApiTrainingData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiTrainingResponses, GetApiTrainingErrors, ThrowOnError, "fields">;
|
|
112
113
|
/**
|
|
113
114
|
* Get full detail of a training content item
|
|
114
115
|
*/
|
|
115
|
-
getTrainingById<ThrowOnError extends boolean = false>(options: Options<
|
|
116
|
+
getTrainingById<ThrowOnError extends boolean = false>(options: Options<GetApiTrainingByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiTrainingByIdResponses, GetApiTrainingByIdErrors, ThrowOnError, "fields">;
|
|
116
117
|
}
|
|
117
118
|
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<
|
|
119
|
+
getMyVideos<ThrowOnError extends boolean = false>(options: Options<GetApiVideosMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiVideosMeResponses, GetApiVideosMeErrors, ThrowOnError, "fields">;
|
|
120
|
+
createVideo<ThrowOnError extends boolean = false>(options: Options<PostApiVideosData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiVideosResponses, PostApiVideosErrors, ThrowOnError, "fields">;
|
|
121
|
+
getVideoPlayUrl<ThrowOnError extends boolean = false>(options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiVideosByIdPlayUrlResponses, GetApiVideosByIdPlayUrlErrors, ThrowOnError, "fields">;
|
|
122
|
+
deleteVideo<ThrowOnError extends boolean = false>(options: Options<DeleteApiVideosByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiVideosByIdResponses, DeleteApiVideosByIdErrors, ThrowOnError, "fields">;
|
|
122
123
|
}
|
|
123
124
|
export declare class GlobalScoutMeClient extends HeyApiClient {
|
|
124
125
|
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',
|
|
@@ -169,17 +169,20 @@ export class Documents extends HeyApiClient {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
export class Index extends HeyApiClient {
|
|
172
|
+
getCountries(options) {
|
|
173
|
+
return (options?.client ?? this.client).get({ url: '/api/index/countries', ...options });
|
|
174
|
+
}
|
|
172
175
|
getIndexItems(options) {
|
|
173
|
-
return (options.client ?? this.client).get({ url: '/index/{tableName}', ...options });
|
|
176
|
+
return (options.client ?? this.client).get({ url: '/api/index/{tableName}', ...options });
|
|
174
177
|
}
|
|
175
178
|
}
|
|
176
179
|
export class Offers extends HeyApiClient {
|
|
177
180
|
listConversations(options) {
|
|
178
|
-
return (options?.client ?? this.client).get({ url: '/offers/conversations', ...options });
|
|
181
|
+
return (options?.client ?? this.client).get({ url: '/api/offers/conversations', ...options });
|
|
179
182
|
}
|
|
180
183
|
createConversation(options) {
|
|
181
184
|
return (options.client ?? this.client).post({
|
|
182
|
-
url: '/offers/conversations',
|
|
185
|
+
url: '/api/offers/conversations',
|
|
183
186
|
...options,
|
|
184
187
|
headers: {
|
|
185
188
|
'Content-Type': 'application/json',
|
|
@@ -188,11 +191,11 @@ export class Offers extends HeyApiClient {
|
|
|
188
191
|
});
|
|
189
192
|
}
|
|
190
193
|
listMessages(options) {
|
|
191
|
-
return (options.client ?? this.client).get({ url: '/offers/conversations/{id}/messages', ...options });
|
|
194
|
+
return (options.client ?? this.client).get({ url: '/api/offers/conversations/{id}/messages', ...options });
|
|
192
195
|
}
|
|
193
196
|
sendMessage(options) {
|
|
194
197
|
return (options.client ?? this.client).post({
|
|
195
|
-
url: '/offers/conversations/{id}/messages',
|
|
198
|
+
url: '/api/offers/conversations/{id}/messages',
|
|
196
199
|
...options,
|
|
197
200
|
headers: {
|
|
198
201
|
'Content-Type': 'application/json',
|
|
@@ -201,13 +204,13 @@ export class Offers extends HeyApiClient {
|
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
206
|
markConversationRead(options) {
|
|
204
|
-
return (options.client ?? this.client).patch({ url: '/offers/conversations/{id}/read', ...options });
|
|
207
|
+
return (options.client ?? this.client).patch({ url: '/api/offers/conversations/{id}/read', ...options });
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
210
|
export class Organizations extends HeyApiClient {
|
|
208
211
|
registerClub(options) {
|
|
209
212
|
return (options.client ?? this.client).post({
|
|
210
|
-
url: '/organizations/register-club',
|
|
213
|
+
url: '/api/organizations/register-club',
|
|
211
214
|
...options,
|
|
212
215
|
headers: {
|
|
213
216
|
'Content-Type': 'application/json',
|
|
@@ -216,11 +219,11 @@ export class Organizations extends HeyApiClient {
|
|
|
216
219
|
});
|
|
217
220
|
}
|
|
218
221
|
getMyOrganization(options) {
|
|
219
|
-
return (options?.client ?? this.client).get({ url: '/organizations/me', ...options });
|
|
222
|
+
return (options?.client ?? this.client).get({ url: '/api/organizations/me', ...options });
|
|
220
223
|
}
|
|
221
224
|
updateMyOrganization(options) {
|
|
222
225
|
return (options.client ?? this.client).put({
|
|
223
|
-
url: '/organizations/me',
|
|
226
|
+
url: '/api/organizations/me',
|
|
224
227
|
...options,
|
|
225
228
|
headers: {
|
|
226
229
|
'Content-Type': 'application/json',
|
|
@@ -232,7 +235,7 @@ export class Organizations extends HeyApiClient {
|
|
|
232
235
|
export class Storage extends HeyApiClient {
|
|
233
236
|
createUploadUrl(options) {
|
|
234
237
|
return (options.client ?? this.client).post({
|
|
235
|
-
url: '/storage/upload-url',
|
|
238
|
+
url: '/api/storage/upload-url',
|
|
236
239
|
...options,
|
|
237
240
|
headers: {
|
|
238
241
|
'Content-Type': 'application/json',
|
|
@@ -243,11 +246,11 @@ export class Storage extends HeyApiClient {
|
|
|
243
246
|
}
|
|
244
247
|
export class Invitations extends HeyApiClient {
|
|
245
248
|
listInvitations(options) {
|
|
246
|
-
return (options?.client ?? this.client).get({ url: '/invitations', ...options });
|
|
249
|
+
return (options?.client ?? this.client).get({ url: '/api/invitations', ...options });
|
|
247
250
|
}
|
|
248
251
|
sendInvitation(options) {
|
|
249
252
|
return (options.client ?? this.client).post({
|
|
250
|
-
url: '/invitations',
|
|
253
|
+
url: '/api/invitations',
|
|
251
254
|
...options,
|
|
252
255
|
headers: {
|
|
253
256
|
'Content-Type': 'application/json',
|
|
@@ -256,16 +259,16 @@ export class Invitations extends HeyApiClient {
|
|
|
256
259
|
});
|
|
257
260
|
}
|
|
258
261
|
resendInvitation(options) {
|
|
259
|
-
return (options.client ?? this.client).post({ url: '/invitations/{id}/resend', ...options });
|
|
262
|
+
return (options.client ?? this.client).post({ url: '/api/invitations/{id}/resend', ...options });
|
|
260
263
|
}
|
|
261
264
|
deleteInvitation(options) {
|
|
262
|
-
return (options.client ?? this.client).delete({ url: '/invitations/{id}', ...options });
|
|
265
|
+
return (options.client ?? this.client).delete({ url: '/api/invitations/{id}', ...options });
|
|
263
266
|
}
|
|
264
267
|
/**
|
|
265
268
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
266
269
|
*/
|
|
267
270
|
acceptInvitation(options) {
|
|
268
|
-
return (options?.client ?? this.client).post({ url: '/invitations/accept', ...options });
|
|
271
|
+
return (options?.client ?? this.client).post({ url: '/api/invitations/accept', ...options });
|
|
269
272
|
}
|
|
270
273
|
}
|
|
271
274
|
export class Training extends HeyApiClient {
|
|
@@ -273,28 +276,28 @@ export class Training extends HeyApiClient {
|
|
|
273
276
|
* Get training content grouped by category, top 3 per category
|
|
274
277
|
*/
|
|
275
278
|
getTrainingGrouped(options) {
|
|
276
|
-
return (options?.client ?? this.client).get({ url: '/training/grouped', ...options });
|
|
279
|
+
return (options?.client ?? this.client).get({ url: '/api/training/grouped', ...options });
|
|
277
280
|
}
|
|
278
281
|
/**
|
|
279
282
|
* List training content, optionally filtered by category
|
|
280
283
|
*/
|
|
281
284
|
getTrainingList(options) {
|
|
282
|
-
return (options?.client ?? this.client).get({ url: '/training', ...options });
|
|
285
|
+
return (options?.client ?? this.client).get({ url: '/api/training', ...options });
|
|
283
286
|
}
|
|
284
287
|
/**
|
|
285
288
|
* Get full detail of a training content item
|
|
286
289
|
*/
|
|
287
290
|
getTrainingById(options) {
|
|
288
|
-
return (options.client ?? this.client).get({ url: '/training/{id}', ...options });
|
|
291
|
+
return (options.client ?? this.client).get({ url: '/api/training/{id}', ...options });
|
|
289
292
|
}
|
|
290
293
|
}
|
|
291
294
|
export class Videos extends HeyApiClient {
|
|
292
295
|
getMyVideos(options) {
|
|
293
|
-
return (options.client ?? this.client).get({ url: '/videos/me', ...options });
|
|
296
|
+
return (options.client ?? this.client).get({ url: '/api/videos/me', ...options });
|
|
294
297
|
}
|
|
295
298
|
createVideo(options) {
|
|
296
299
|
return (options.client ?? this.client).post({
|
|
297
|
-
url: '/videos',
|
|
300
|
+
url: '/api/videos',
|
|
298
301
|
...options,
|
|
299
302
|
headers: {
|
|
300
303
|
'Content-Type': 'application/json',
|
|
@@ -303,10 +306,10 @@ export class Videos extends HeyApiClient {
|
|
|
303
306
|
});
|
|
304
307
|
}
|
|
305
308
|
getVideoPlayUrl(options) {
|
|
306
|
-
return (options.client ?? this.client).get({ url: '/videos/{id}/play-url', ...options });
|
|
309
|
+
return (options.client ?? this.client).get({ url: '/api/videos/{id}/play-url', ...options });
|
|
307
310
|
}
|
|
308
311
|
deleteVideo(options) {
|
|
309
|
-
return (options.client ?? this.client).delete({ url: '/videos/{id}', ...options });
|
|
312
|
+
return (options.client ?? this.client).delete({ url: '/api/videos/{id}', ...options });
|
|
310
313
|
}
|
|
311
314
|
}
|
|
312
315
|
export class GlobalScoutMeClient extends HeyApiClient {
|