@footballbingo/client 1.0.0
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 +420 -0
- package/dist/FootballBingoClient.d.ts +88 -0
- package/dist/FootballBingoClient.js +100 -0
- package/dist/core/ApiError.d.ts +10 -0
- package/dist/core/ApiError.js +15 -0
- package/dist/core/ApiRequestOptions.d.ts +13 -0
- package/dist/core/ApiRequestOptions.js +2 -0
- package/dist/core/ApiResult.d.ts +7 -0
- package/dist/core/ApiResult.js +2 -0
- package/dist/core/BaseHttpRequest.d.ts +8 -0
- package/dist/core/BaseHttpRequest.js +9 -0
- package/dist/core/CancelablePromise.d.ts +20 -0
- package/dist/core/CancelablePromise.js +116 -0
- package/dist/core/FetchHttpRequest.d.ts +14 -0
- package/dist/core/FetchHttpRequest.js +20 -0
- package/dist/core/OpenAPI.d.ts +16 -0
- package/dist/core/OpenAPI.js +14 -0
- package/dist/core/request.d.ts +30 -0
- package/dist/core/request.js +294 -0
- package/dist/index.d.ts +104 -0
- package/dist/index.js +139 -0
- package/dist/models/Achievement.d.ts +12 -0
- package/dist/models/Achievement.js +2 -0
- package/dist/models/ApiError.d.ts +2 -0
- package/dist/models/ApiError.js +2 -0
- package/dist/models/ApiErrorDTO.d.ts +9 -0
- package/dist/models/ApiErrorDTO.js +2 -0
- package/dist/models/ApiResponse.d.ts +2 -0
- package/dist/models/ApiResponse.js +2 -0
- package/dist/models/ApiResponseDTO.d.ts +10 -0
- package/dist/models/ApiResponseDTO.js +2 -0
- package/dist/models/BingoBoard.d.ts +8 -0
- package/dist/models/BingoBoard.js +2 -0
- package/dist/models/BingoGame.d.ts +19 -0
- package/dist/models/BingoGame.js +13 -0
- package/dist/models/BingoTile.d.ts +8 -0
- package/dist/models/BingoTile.js +2 -0
- package/dist/models/Challenge.d.ts +24 -0
- package/dist/models/Challenge.js +18 -0
- package/dist/models/ChatMessage.d.ts +17 -0
- package/dist/models/ChatMessage.js +12 -0
- package/dist/models/ChatSession.d.ts +13 -0
- package/dist/models/ChatSession.js +2 -0
- package/dist/models/CommunityChallengeDTO.d.ts +32 -0
- package/dist/models/CommunityChallengeDTO.js +19 -0
- package/dist/models/CompletedLine.d.ts +12 -0
- package/dist/models/CompletedLine.js +12 -0
- package/dist/models/CountryDTO.d.ts +5 -0
- package/dist/models/CountryDTO.js +2 -0
- package/dist/models/CreateChallengeRequestDTO.d.ts +22 -0
- package/dist/models/CreateChallengeRequestDTO.js +19 -0
- package/dist/models/CreatePredictionRequestDTO.d.ts +24 -0
- package/dist/models/CreatePredictionRequestDTO.js +12 -0
- package/dist/models/CurrencyTransaction.d.ts +27 -0
- package/dist/models/CurrencyTransaction.js +21 -0
- package/dist/models/DailyLoginRewardDTO.d.ts +13 -0
- package/dist/models/DailyLoginRewardDTO.js +2 -0
- package/dist/models/ErrorResponse.d.ts +5 -0
- package/dist/models/ErrorResponse.js +2 -0
- package/dist/models/FixtureDTO.d.ts +36 -0
- package/dist/models/FixtureDTO.js +16 -0
- package/dist/models/FixtureDetailDTO.d.ts +13 -0
- package/dist/models/FixtureDetailDTO.js +2 -0
- package/dist/models/GameChatMessageDTO.d.ts +20 -0
- package/dist/models/GameChatMessageDTO.js +13 -0
- package/dist/models/GetLeaderboardResponseDTO.d.ts +29 -0
- package/dist/models/GetLeaderboardResponseDTO.js +22 -0
- package/dist/models/GetUserInventoryResponseDTO.d.ts +28 -0
- package/dist/models/GetUserInventoryResponseDTO.js +2 -0
- package/dist/models/LeaderboardEntry.d.ts +10 -0
- package/dist/models/LeaderboardEntry.js +2 -0
- package/dist/models/LeaderboardResponseDTO.d.ts +26 -0
- package/dist/models/LeaderboardResponseDTO.js +13 -0
- package/dist/models/League.d.ts +7 -0
- package/dist/models/League.js +2 -0
- package/dist/models/LeagueDetailDTO.d.ts +17 -0
- package/dist/models/LeagueDetailDTO.js +2 -0
- package/dist/models/LineupDTO.d.ts +25 -0
- package/dist/models/LineupDTO.js +2 -0
- package/dist/models/LineupPrediction.d.ts +9 -0
- package/dist/models/LineupPrediction.js +2 -0
- package/dist/models/MatchEvent.d.ts +27 -0
- package/dist/models/MatchEvent.js +13 -0
- package/dist/models/NewsArticleDTO.d.ts +13 -0
- package/dist/models/NewsArticleDTO.js +2 -0
- package/dist/models/PaginationMeta.d.ts +2 -0
- package/dist/models/PaginationMeta.js +2 -0
- package/dist/models/PaginationMetaDTO.d.ts +7 -0
- package/dist/models/PaginationMetaDTO.js +2 -0
- package/dist/models/PlayerDTO.d.ts +18 -0
- package/dist/models/PlayerDTO.js +2 -0
- package/dist/models/PlayerStatisticsDTO.d.ts +25 -0
- package/dist/models/PlayerStatisticsDTO.js +2 -0
- package/dist/models/PredictionDTO.d.ts +31 -0
- package/dist/models/PredictionDTO.js +18 -0
- package/dist/models/PredictionWithLineupDTO.d.ts +8 -0
- package/dist/models/PredictionWithLineupDTO.js +2 -0
- package/dist/models/Pundit.d.ts +8 -0
- package/dist/models/Pundit.js +2 -0
- package/dist/models/Purchase.d.ts +16 -0
- package/dist/models/Purchase.js +12 -0
- package/dist/models/PurchaseResponseDTO.d.ts +25 -0
- package/dist/models/PurchaseResponseDTO.js +12 -0
- package/dist/models/Score.d.ts +4 -0
- package/dist/models/Score.js +2 -0
- package/dist/models/SendChatMessageRequestDTO.d.ts +12 -0
- package/dist/models/SendChatMessageRequestDTO.js +12 -0
- package/dist/models/ShareGameRequestDTO.d.ts +6 -0
- package/dist/models/ShareGameRequestDTO.js +2 -0
- package/dist/models/SharedGameDTO.d.ts +17 -0
- package/dist/models/SharedGameDTO.js +2 -0
- package/dist/models/StandingsDTO.d.ts +19 -0
- package/dist/models/StandingsDTO.js +2 -0
- package/dist/models/StoreItemDTO.d.ts +47 -0
- package/dist/models/StoreItemDTO.js +29 -0
- package/dist/models/TacticsBoardDTO.d.ts +32 -0
- package/dist/models/TacticsBoardDTO.js +2 -0
- package/dist/models/Team.d.ts +6 -0
- package/dist/models/Team.js +2 -0
- package/dist/models/TeamDetailDTO.d.ts +16 -0
- package/dist/models/TeamDetailDTO.js +2 -0
- package/dist/models/TeamStatisticsDTO.d.ts +12 -0
- package/dist/models/TeamStatisticsDTO.js +2 -0
- package/dist/models/TransactionHistoryDTO.d.ts +9 -0
- package/dist/models/TransactionHistoryDTO.js +2 -0
- package/dist/models/TransferDTO.d.ts +14 -0
- package/dist/models/TransferDTO.js +2 -0
- package/dist/models/TransferPlanDTO.d.ts +45 -0
- package/dist/models/TransferPlanDTO.js +12 -0
- package/dist/models/TrophyDTO.d.ts +6 -0
- package/dist/models/TrophyDTO.js +2 -0
- package/dist/models/UserDTO.d.ts +11 -0
- package/dist/models/UserDTO.js +2 -0
- package/dist/models/UserProfileDTO.d.ts +13 -0
- package/dist/models/UserProfileDTO.js +2 -0
- package/dist/models/UserPurchaseDTO.d.ts +26 -0
- package/dist/models/UserPurchaseDTO.js +19 -0
- package/dist/models/WalletBalance.d.ts +5 -0
- package/dist/models/WalletBalance.js +2 -0
- package/dist/models/WalletSummaryDTO.d.ts +16 -0
- package/dist/models/WalletSummaryDTO.js +2 -0
- package/dist/services/AchievementsDeprecatedService.d.ts +148 -0
- package/dist/services/AchievementsDeprecatedService.js +183 -0
- package/dist/services/AchievementsService.d.ts +204 -0
- package/dist/services/AchievementsService.js +197 -0
- package/dist/services/ActivitiesService.d.ts +27 -0
- package/dist/services/ActivitiesService.js +29 -0
- package/dist/services/AdminPurchasesService.d.ts +64 -0
- package/dist/services/AdminPurchasesService.js +109 -0
- package/dist/services/AdminService.d.ts +349 -0
- package/dist/services/AdminService.js +232 -0
- package/dist/services/AdminUsersService.d.ts +64 -0
- package/dist/services/AdminUsersService.js +103 -0
- package/dist/services/AiChatService.d.ts +70 -0
- package/dist/services/AiChatService.js +52 -0
- package/dist/services/ChallengesService.d.ts +215 -0
- package/dist/services/ChallengesService.js +215 -0
- package/dist/services/CommunityChallengesService.d.ts +111 -0
- package/dist/services/CommunityChallengesService.js +150 -0
- package/dist/services/CommunityGameChatService.d.ts +105 -0
- package/dist/services/CommunityGameChatService.js +150 -0
- package/dist/services/CommunityLineupsService.d.ts +197 -0
- package/dist/services/CommunityLineupsService.js +264 -0
- package/dist/services/CommunitySharedGamesService.d.ts +124 -0
- package/dist/services/CommunitySharedGamesService.js +172 -0
- package/dist/services/CommunityTacticsBoardsService.d.ts +230 -0
- package/dist/services/CommunityTacticsBoardsService.js +272 -0
- package/dist/services/CommunityTransferPlansService.d.ts +231 -0
- package/dist/services/CommunityTransferPlansService.js +291 -0
- package/dist/services/ContentCountriesService.d.ts +30 -0
- package/dist/services/ContentCountriesService.js +53 -0
- package/dist/services/ContentFixturesService.d.ts +51 -0
- package/dist/services/ContentFixturesService.js +88 -0
- package/dist/services/ContentLeaguesService.d.ts +32 -0
- package/dist/services/ContentLeaguesService.js +57 -0
- package/dist/services/ContentNewsService.d.ts +158 -0
- package/dist/services/ContentNewsService.js +255 -0
- package/dist/services/ContentOddsService.d.ts +81 -0
- package/dist/services/ContentOddsService.js +137 -0
- package/dist/services/ContentPlayersService.d.ts +64 -0
- package/dist/services/ContentPlayersService.js +104 -0
- package/dist/services/ContentStandingsService.d.ts +20 -0
- package/dist/services/ContentStandingsService.js +33 -0
- package/dist/services/ContentStatisticsService.d.ts +51 -0
- package/dist/services/ContentStatisticsService.js +83 -0
- package/dist/services/ContentTeamsService.d.ts +67 -0
- package/dist/services/ContentTeamsService.js +106 -0
- package/dist/services/ContentTransfersService.d.ts +23 -0
- package/dist/services/ContentTransfersService.js +38 -0
- package/dist/services/ContentTrophiesService.d.ts +23 -0
- package/dist/services/ContentTrophiesService.js +38 -0
- package/dist/services/DailyChallengeCompletionsDeprecatedService.d.ts +78 -0
- package/dist/services/DailyChallengeCompletionsDeprecatedService.js +130 -0
- package/dist/services/DailyChallengesDeprecatedService.d.ts +117 -0
- package/dist/services/DailyChallengesDeprecatedService.js +179 -0
- package/dist/services/DailyLoginService.d.ts +109 -0
- package/dist/services/DailyLoginService.js +111 -0
- package/dist/services/DailyStreaksDeprecatedService.d.ts +80 -0
- package/dist/services/DailyStreaksDeprecatedService.js +130 -0
- package/dist/services/EventPoolsService.d.ts +104 -0
- package/dist/services/EventPoolsService.js +118 -0
- package/dist/services/LeaderboardService.d.ts +18 -0
- package/dist/services/LeaderboardService.js +35 -0
- package/dist/services/NotificationsService.d.ts +143 -0
- package/dist/services/NotificationsService.js +159 -0
- package/dist/services/PredictionsService.d.ts +223 -0
- package/dist/services/PredictionsService.js +204 -0
- package/dist/services/ProgressionService.d.ts +163 -0
- package/dist/services/ProgressionService.js +149 -0
- package/dist/services/SponsorsService.d.ts +105 -0
- package/dist/services/SponsorsService.js +118 -0
- package/dist/services/StoreService.d.ts +92 -0
- package/dist/services/StoreService.js +147 -0
- package/dist/services/UserAchievementsDeprecatedService.d.ts +146 -0
- package/dist/services/UserAchievementsDeprecatedService.js +209 -0
- package/dist/services/UserActivitiesService.d.ts +48 -0
- package/dist/services/UserActivitiesService.js +65 -0
- package/dist/services/UsersService.d.ts +156 -0
- package/dist/services/UsersService.js +244 -0
- package/dist/services/WalletService.d.ts +31 -0
- package/dist/services/WalletService.js +53 -0
- package/package.json +37 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { GameChatMessageDTO } from '../models/GameChatMessageDTO';
|
|
3
|
+
import type { SendChatMessageRequestDTO } from '../models/SendChatMessageRequestDTO';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
|
+
export declare class CommunityGameChatService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Create a chat message
|
|
11
|
+
* Creates a new game chat message (admin/internal use)
|
|
12
|
+
* @param requestBody
|
|
13
|
+
* @returns any Chat message created successfully
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
postApiV1CommunityGameChat(requestBody: {
|
|
17
|
+
gameId: string;
|
|
18
|
+
message: string;
|
|
19
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
20
|
+
data?: GameChatMessageDTO;
|
|
21
|
+
})>;
|
|
22
|
+
/**
|
|
23
|
+
* List all chat messages
|
|
24
|
+
* Retrieves all game chat messages (admin/internal use)
|
|
25
|
+
* @returns any Chat messages retrieved successfully
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
getApiV1CommunityGameChat(): CancelablePromise<{
|
|
29
|
+
success?: boolean;
|
|
30
|
+
data?: Array<GameChatMessageDTO>;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Get chat message by ID
|
|
34
|
+
* Retrieves a specific chat message by ID
|
|
35
|
+
* @param id Chat message ID
|
|
36
|
+
* @returns any Chat message retrieved successfully
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
getApiV1CommunityGameChat1(id: string): CancelablePromise<(ApiResponseDTO & {
|
|
40
|
+
data?: GameChatMessageDTO;
|
|
41
|
+
})>;
|
|
42
|
+
/**
|
|
43
|
+
* Update a chat message
|
|
44
|
+
* Updates an existing chat message
|
|
45
|
+
* @param id Chat message ID
|
|
46
|
+
* @param requestBody
|
|
47
|
+
* @returns any Chat message updated successfully
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
putApiV1CommunityGameChat(id: string, requestBody: {
|
|
51
|
+
message?: string;
|
|
52
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
53
|
+
data?: GameChatMessageDTO;
|
|
54
|
+
})>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete a chat message
|
|
57
|
+
* Deletes a chat message
|
|
58
|
+
* @param id Chat message ID
|
|
59
|
+
* @returns any Chat message deleted successfully
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
deleteApiV1CommunityGameChat(id: string): CancelablePromise<{
|
|
63
|
+
success?: boolean;
|
|
64
|
+
data?: {
|
|
65
|
+
message?: string;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Send a chat message
|
|
70
|
+
* Sends a chat message in a specific game and broadcasts it to all participants
|
|
71
|
+
* @param gameId Game ID
|
|
72
|
+
* @param requestBody
|
|
73
|
+
* @returns any Chat message sent successfully
|
|
74
|
+
* @throws ApiError
|
|
75
|
+
*/
|
|
76
|
+
postApiV1CommunityGamesChat(gameId: string, requestBody: SendChatMessageRequestDTO): CancelablePromise<{
|
|
77
|
+
success?: boolean;
|
|
78
|
+
data?: {
|
|
79
|
+
message?: string;
|
|
80
|
+
chat?: GameChatMessageDTO;
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
/**
|
|
84
|
+
* Get chat history for a game
|
|
85
|
+
* Retrieves the chat message history for a specific game
|
|
86
|
+
* @param gameId Game ID
|
|
87
|
+
* @returns any Chat history retrieved successfully
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
getApiV1CommunityGamesChat(gameId: string): CancelablePromise<{
|
|
91
|
+
success?: boolean;
|
|
92
|
+
data?: {
|
|
93
|
+
messages?: Array<{
|
|
94
|
+
id?: string;
|
|
95
|
+
message?: string;
|
|
96
|
+
isSystem?: boolean;
|
|
97
|
+
sentAt?: string;
|
|
98
|
+
user?: {
|
|
99
|
+
id?: string;
|
|
100
|
+
username?: string;
|
|
101
|
+
} | null;
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
}>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunityGameChatService = void 0;
|
|
4
|
+
class CommunityGameChatService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Create a chat message
|
|
10
|
+
* Creates a new game chat message (admin/internal use)
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns any Chat message created successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
postApiV1CommunityGameChat(requestBody) {
|
|
16
|
+
return this.httpRequest.request({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
url: '/api/v1/community/game-chat',
|
|
19
|
+
body: requestBody,
|
|
20
|
+
mediaType: 'application/json',
|
|
21
|
+
errors: {
|
|
22
|
+
500: `Internal server error`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* List all chat messages
|
|
28
|
+
* Retrieves all game chat messages (admin/internal use)
|
|
29
|
+
* @returns any Chat messages retrieved successfully
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
getApiV1CommunityGameChat() {
|
|
33
|
+
return this.httpRequest.request({
|
|
34
|
+
method: 'GET',
|
|
35
|
+
url: '/api/v1/community/game-chat',
|
|
36
|
+
errors: {
|
|
37
|
+
500: `Internal server error`,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get chat message by ID
|
|
43
|
+
* Retrieves a specific chat message by ID
|
|
44
|
+
* @param id Chat message ID
|
|
45
|
+
* @returns any Chat message retrieved successfully
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
getApiV1CommunityGameChat1(id) {
|
|
49
|
+
return this.httpRequest.request({
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: '/api/v1/community/game-chat/{id}',
|
|
52
|
+
path: {
|
|
53
|
+
'id': id,
|
|
54
|
+
},
|
|
55
|
+
errors: {
|
|
56
|
+
404: `Chat message not found`,
|
|
57
|
+
500: `Internal server error`,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Update a chat message
|
|
63
|
+
* Updates an existing chat message
|
|
64
|
+
* @param id Chat message ID
|
|
65
|
+
* @param requestBody
|
|
66
|
+
* @returns any Chat message updated successfully
|
|
67
|
+
* @throws ApiError
|
|
68
|
+
*/
|
|
69
|
+
putApiV1CommunityGameChat(id, requestBody) {
|
|
70
|
+
return this.httpRequest.request({
|
|
71
|
+
method: 'PUT',
|
|
72
|
+
url: '/api/v1/community/game-chat/{id}',
|
|
73
|
+
path: {
|
|
74
|
+
'id': id,
|
|
75
|
+
},
|
|
76
|
+
body: requestBody,
|
|
77
|
+
mediaType: 'application/json',
|
|
78
|
+
errors: {
|
|
79
|
+
404: `Chat message not found`,
|
|
80
|
+
500: `Internal server error`,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Delete a chat message
|
|
86
|
+
* Deletes a chat message
|
|
87
|
+
* @param id Chat message ID
|
|
88
|
+
* @returns any Chat message deleted successfully
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
deleteApiV1CommunityGameChat(id) {
|
|
92
|
+
return this.httpRequest.request({
|
|
93
|
+
method: 'DELETE',
|
|
94
|
+
url: '/api/v1/community/game-chat/{id}',
|
|
95
|
+
path: {
|
|
96
|
+
'id': id,
|
|
97
|
+
},
|
|
98
|
+
errors: {
|
|
99
|
+
404: `Chat message not found`,
|
|
100
|
+
500: `Internal server error`,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Send a chat message
|
|
106
|
+
* Sends a chat message in a specific game and broadcasts it to all participants
|
|
107
|
+
* @param gameId Game ID
|
|
108
|
+
* @param requestBody
|
|
109
|
+
* @returns any Chat message sent successfully
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
postApiV1CommunityGamesChat(gameId, requestBody) {
|
|
113
|
+
return this.httpRequest.request({
|
|
114
|
+
method: 'POST',
|
|
115
|
+
url: '/api/v1/community/games/{gameId}/chat',
|
|
116
|
+
path: {
|
|
117
|
+
'gameId': gameId,
|
|
118
|
+
},
|
|
119
|
+
body: requestBody,
|
|
120
|
+
mediaType: 'application/json',
|
|
121
|
+
errors: {
|
|
122
|
+
400: `Bad request - invalid message`,
|
|
123
|
+
401: `Unauthorized - authentication required`,
|
|
124
|
+
500: `Internal server error`,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get chat history for a game
|
|
130
|
+
* Retrieves the chat message history for a specific game
|
|
131
|
+
* @param gameId Game ID
|
|
132
|
+
* @returns any Chat history retrieved successfully
|
|
133
|
+
* @throws ApiError
|
|
134
|
+
*/
|
|
135
|
+
getApiV1CommunityGamesChat(gameId) {
|
|
136
|
+
return this.httpRequest.request({
|
|
137
|
+
method: 'GET',
|
|
138
|
+
url: '/api/v1/community/games/{gameId}/chat',
|
|
139
|
+
path: {
|
|
140
|
+
'gameId': gameId,
|
|
141
|
+
},
|
|
142
|
+
errors: {
|
|
143
|
+
400: `Bad request - game ID required`,
|
|
144
|
+
401: `Unauthorized - authentication required`,
|
|
145
|
+
500: `Internal server error`,
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.CommunityGameChatService = CommunityGameChatService;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { LineupDTO } from '../models/LineupDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class CommunityLineupsService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Create a new lineup
|
|
10
|
+
* Create a lineup with custom formation and players. Works for both authenticated and anonymous users. Anonymous lineups can later be claimed by authenticated users.
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns any Lineup created successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
postApiV1CommunityLineups(requestBody: {
|
|
16
|
+
/**
|
|
17
|
+
* Title of the lineup
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional description of the lineup
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Formation identifier (e.g., 4-3-3, 4-4-2)
|
|
26
|
+
*/
|
|
27
|
+
formationId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Lineup mode
|
|
30
|
+
*/
|
|
31
|
+
mode: 'professional' | 'amateur';
|
|
32
|
+
/**
|
|
33
|
+
* Map of player positions to player data
|
|
34
|
+
*/
|
|
35
|
+
playerMap: Record<string, any>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the lineup is publicly visible
|
|
38
|
+
*/
|
|
39
|
+
isPublic?: boolean;
|
|
40
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
41
|
+
data?: LineupDTO;
|
|
42
|
+
})>;
|
|
43
|
+
/**
|
|
44
|
+
* Get user's lineups
|
|
45
|
+
* Retrieve all lineups created by the authenticated user with pagination and sorting options
|
|
46
|
+
* @param limit Number of lineups to return
|
|
47
|
+
* @param offset Number of lineups to skip
|
|
48
|
+
* @param sortBy Field to sort by
|
|
49
|
+
* @param sortOrder Sort order
|
|
50
|
+
* @returns any User's lineups retrieved successfully
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
getApiV1CommunityLineups(limit?: number, offset?: number, sortBy?: 'createdAt' | 'updatedAt' | 'viewCount', sortOrder?: 'asc' | 'desc'): CancelablePromise<(ApiResponseDTO & {
|
|
54
|
+
data?: {
|
|
55
|
+
lineups?: Array<LineupDTO>;
|
|
56
|
+
total?: number;
|
|
57
|
+
limit?: number;
|
|
58
|
+
offset?: number;
|
|
59
|
+
};
|
|
60
|
+
})>;
|
|
61
|
+
/**
|
|
62
|
+
* Get lineup by ID
|
|
63
|
+
* Retrieve a specific lineup by its ID. Returns public lineups or lineups owned by the authenticated user.
|
|
64
|
+
* @param id Lineup ID
|
|
65
|
+
* @returns any Lineup retrieved successfully
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
getApiV1CommunityLineups1(id: string): CancelablePromise<(ApiResponseDTO & {
|
|
69
|
+
data?: LineupDTO;
|
|
70
|
+
})>;
|
|
71
|
+
/**
|
|
72
|
+
* Update lineup
|
|
73
|
+
* Update an existing lineup. Only the owner can update their lineup.
|
|
74
|
+
* @param id Lineup ID
|
|
75
|
+
* @param requestBody
|
|
76
|
+
* @returns any Lineup updated successfully
|
|
77
|
+
* @throws ApiError
|
|
78
|
+
*/
|
|
79
|
+
putApiV1CommunityLineups(id: string, requestBody: {
|
|
80
|
+
/**
|
|
81
|
+
* Updated title
|
|
82
|
+
*/
|
|
83
|
+
title?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Updated description
|
|
86
|
+
*/
|
|
87
|
+
description?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Updated formation
|
|
90
|
+
*/
|
|
91
|
+
formationId?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Updated player map
|
|
94
|
+
*/
|
|
95
|
+
playerMap?: Record<string, any>;
|
|
96
|
+
/**
|
|
97
|
+
* Updated visibility
|
|
98
|
+
*/
|
|
99
|
+
isPublic?: boolean;
|
|
100
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
101
|
+
data?: LineupDTO;
|
|
102
|
+
})>;
|
|
103
|
+
/**
|
|
104
|
+
* Delete lineup
|
|
105
|
+
* Delete a lineup. Only the owner can delete their lineup.
|
|
106
|
+
* @param id Lineup ID
|
|
107
|
+
* @returns void
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
deleteApiV1CommunityLineups(id: string): CancelablePromise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Get lineup by share token
|
|
113
|
+
* Retrieve a public lineup using its unique share token. This endpoint is accessible without authentication for public lineups.
|
|
114
|
+
* @param shareToken Unique share token for the lineup
|
|
115
|
+
* @returns any Lineup retrieved successfully
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
getApiV1CommunityLineupsShare(shareToken: string): CancelablePromise<(ApiResponseDTO & {
|
|
119
|
+
data?: LineupDTO;
|
|
120
|
+
})>;
|
|
121
|
+
/**
|
|
122
|
+
* Claim anonymous lineup
|
|
123
|
+
* Claim ownership of an anonymous lineup. Allows authenticated users to take ownership of lineups they created while not logged in.
|
|
124
|
+
* @param id Lineup ID
|
|
125
|
+
* @returns any Lineup claimed successfully
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
postApiV1CommunityLineupsClaim(id: string): CancelablePromise<(ApiResponseDTO & {
|
|
129
|
+
data?: {
|
|
130
|
+
id?: string;
|
|
131
|
+
userId?: string;
|
|
132
|
+
message?: string;
|
|
133
|
+
};
|
|
134
|
+
})>;
|
|
135
|
+
/**
|
|
136
|
+
* Browse public lineups
|
|
137
|
+
* Search and filter public lineups with pagination and sorting. Supports filtering by formation, mode, and search text.
|
|
138
|
+
* @param search Search text for lineup title or description
|
|
139
|
+
* @param formation Filter by formation ID
|
|
140
|
+
* @param mode Filter by lineup mode
|
|
141
|
+
* @param sortBy Field to sort by
|
|
142
|
+
* @param sortOrder Sort order
|
|
143
|
+
* @param limit Number of lineups per page
|
|
144
|
+
* @param offset Number of lineups to skip
|
|
145
|
+
* @returns any Lineups retrieved successfully
|
|
146
|
+
* @throws ApiError
|
|
147
|
+
*/
|
|
148
|
+
getApiV1CommunityLineupsBrowse(search?: string, formation?: string, mode?: 'professional' | 'amateur', sortBy?: 'createdAt' | 'updatedAt' | 'viewCount', sortOrder?: 'asc' | 'desc', limit?: number, offset?: number): CancelablePromise<(ApiResponseDTO & {
|
|
149
|
+
data?: {
|
|
150
|
+
lineups?: Array<LineupDTO>;
|
|
151
|
+
total?: number;
|
|
152
|
+
limit?: number;
|
|
153
|
+
offset?: number;
|
|
154
|
+
hasMore?: boolean;
|
|
155
|
+
};
|
|
156
|
+
})>;
|
|
157
|
+
/**
|
|
158
|
+
* Get trending lineups
|
|
159
|
+
* Retrieve the most viewed lineups in the last 7 days
|
|
160
|
+
* @param limit Number of trending lineups to return
|
|
161
|
+
* @returns any Trending lineups retrieved successfully
|
|
162
|
+
* @throws ApiError
|
|
163
|
+
*/
|
|
164
|
+
getApiV1CommunityLineupsTrending(limit?: number): CancelablePromise<(ApiResponseDTO & {
|
|
165
|
+
data?: {
|
|
166
|
+
lineups?: Array<LineupDTO>;
|
|
167
|
+
};
|
|
168
|
+
})>;
|
|
169
|
+
/**
|
|
170
|
+
* Get popular lineups
|
|
171
|
+
* Retrieve the most viewed lineups of all time
|
|
172
|
+
* @param limit Number of popular lineups to return
|
|
173
|
+
* @returns any Popular lineups retrieved successfully
|
|
174
|
+
* @throws ApiError
|
|
175
|
+
*/
|
|
176
|
+
getApiV1CommunityLineupsPopular(limit?: number): CancelablePromise<(ApiResponseDTO & {
|
|
177
|
+
data?: {
|
|
178
|
+
lineups?: Array<LineupDTO>;
|
|
179
|
+
};
|
|
180
|
+
})>;
|
|
181
|
+
/**
|
|
182
|
+
* Export lineup as image
|
|
183
|
+
* Export a lineup as an SVG image or data URL. Optional authentication to access private lineups.
|
|
184
|
+
* @param id Lineup ID
|
|
185
|
+
* @param format Export format
|
|
186
|
+
* @returns any Lineup exported successfully
|
|
187
|
+
* @throws ApiError
|
|
188
|
+
*/
|
|
189
|
+
getApiV1CommunityLineupsExport(id: string, format?: 'svg' | 'data-url'): CancelablePromise<(ApiResponseDTO & {
|
|
190
|
+
data?: {
|
|
191
|
+
/**
|
|
192
|
+
* Base64 encoded data URL (when format=data-url)
|
|
193
|
+
*/
|
|
194
|
+
dataUrl?: string;
|
|
195
|
+
};
|
|
196
|
+
})>;
|
|
197
|
+
}
|