@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,23 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { TransferDTO } from '../models/TransferDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentTransfersService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Get player transfers
|
|
10
|
+
* Retrieve player transfer information including past and current transfers
|
|
11
|
+
* @param player Filter by player ID
|
|
12
|
+
* @param team Filter by team ID (either from or to)
|
|
13
|
+
* @param league Filter by league ID
|
|
14
|
+
* @param season Filter by season year (e.g., '2024')
|
|
15
|
+
* @param from Filter transfers from this date (YYYY-MM-DD)
|
|
16
|
+
* @param to Filter transfers until this date (YYYY-MM-DD)
|
|
17
|
+
* @returns any Transfers retrieved successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getApiV1ContentTransfers(player?: string, team?: string, league?: string, season?: string, from?: string, to?: string): CancelablePromise<(ApiResponseDTO & {
|
|
21
|
+
data?: Array<TransferDTO>;
|
|
22
|
+
})>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentTransfersService = void 0;
|
|
4
|
+
class ContentTransfersService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get player transfers
|
|
10
|
+
* Retrieve player transfer information including past and current transfers
|
|
11
|
+
* @param player Filter by player ID
|
|
12
|
+
* @param team Filter by team ID (either from or to)
|
|
13
|
+
* @param league Filter by league ID
|
|
14
|
+
* @param season Filter by season year (e.g., '2024')
|
|
15
|
+
* @param from Filter transfers from this date (YYYY-MM-DD)
|
|
16
|
+
* @param to Filter transfers until this date (YYYY-MM-DD)
|
|
17
|
+
* @returns any Transfers retrieved successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getApiV1ContentTransfers(player, team, league, season, from, to) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/api/v1/content/transfers',
|
|
24
|
+
query: {
|
|
25
|
+
'player': player,
|
|
26
|
+
'team': team,
|
|
27
|
+
'league': league,
|
|
28
|
+
'season': season,
|
|
29
|
+
'from': from,
|
|
30
|
+
'to': to,
|
|
31
|
+
},
|
|
32
|
+
errors: {
|
|
33
|
+
500: `Internal server error`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.ContentTransfersService = ContentTransfersService;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { TrophyDTO } from '../models/TrophyDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentTrophiesService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Get trophies and achievements
|
|
10
|
+
* Retrieve trophy and competition win history for teams, players, or coaches
|
|
11
|
+
* @param team Filter by team ID
|
|
12
|
+
* @param player Filter by player ID
|
|
13
|
+
* @param coach Filter by coach ID
|
|
14
|
+
* @param league Filter by competition/league
|
|
15
|
+
* @param season Filter by season year (e.g., '2024')
|
|
16
|
+
* @param country Filter by country
|
|
17
|
+
* @returns any Trophies retrieved successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getApiV1ContentTrophies(team?: string, player?: string, coach?: string, league?: string, season?: string, country?: string): CancelablePromise<(ApiResponseDTO & {
|
|
21
|
+
data?: Array<TrophyDTO>;
|
|
22
|
+
})>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentTrophiesService = void 0;
|
|
4
|
+
class ContentTrophiesService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get trophies and achievements
|
|
10
|
+
* Retrieve trophy and competition win history for teams, players, or coaches
|
|
11
|
+
* @param team Filter by team ID
|
|
12
|
+
* @param player Filter by player ID
|
|
13
|
+
* @param coach Filter by coach ID
|
|
14
|
+
* @param league Filter by competition/league
|
|
15
|
+
* @param season Filter by season year (e.g., '2024')
|
|
16
|
+
* @param country Filter by country
|
|
17
|
+
* @returns any Trophies retrieved successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getApiV1ContentTrophies(team, player, coach, league, season, country) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/api/v1/content/trophies',
|
|
24
|
+
query: {
|
|
25
|
+
'team': team,
|
|
26
|
+
'player': player,
|
|
27
|
+
'coach': coach,
|
|
28
|
+
'league': league,
|
|
29
|
+
'season': season,
|
|
30
|
+
'country': country,
|
|
31
|
+
},
|
|
32
|
+
errors: {
|
|
33
|
+
500: `Internal server error`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.ContentTrophiesService = ContentTrophiesService;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
3
|
+
export declare class DailyChallengeCompletionsDeprecatedService {
|
|
4
|
+
readonly httpRequest: BaseHttpRequest;
|
|
5
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
* Create daily challenge completion
|
|
9
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
10
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
11
|
+
*
|
|
12
|
+
* Creates a new daily challenge completion record.
|
|
13
|
+
*
|
|
14
|
+
* @param requestBody
|
|
15
|
+
* @returns any Daily challenge completion created successfully
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
postApiDailyChallengeCompletions(requestBody: {
|
|
19
|
+
userId?: string;
|
|
20
|
+
dailyChallengeId?: string;
|
|
21
|
+
completedAt?: string;
|
|
22
|
+
isClaimed?: boolean;
|
|
23
|
+
}): CancelablePromise<Record<string, any>>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
* List all daily challenge completions
|
|
27
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
28
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
29
|
+
*
|
|
30
|
+
* Retrieves a list of all daily challenge completion records.
|
|
31
|
+
*
|
|
32
|
+
* @returns any List of completions retrieved successfully
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
getApiDailyChallengeCompletions(): CancelablePromise<Array<Record<string, any>>>;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
* Get daily challenge completion by ID
|
|
39
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
40
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
41
|
+
*
|
|
42
|
+
* Retrieves a specific daily challenge completion by its ID.
|
|
43
|
+
*
|
|
44
|
+
* @param id Daily challenge completion ID
|
|
45
|
+
* @returns any Completion retrieved successfully
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
getApiDailyChallengeCompletions1(id: string): CancelablePromise<Record<string, any>>;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated
|
|
51
|
+
* Update daily challenge completion
|
|
52
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
53
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
54
|
+
*
|
|
55
|
+
* Updates an existing daily challenge completion record.
|
|
56
|
+
*
|
|
57
|
+
* @param id Daily challenge completion ID
|
|
58
|
+
* @param requestBody
|
|
59
|
+
* @returns any Completion updated successfully
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
putApiDailyChallengeCompletions(id: string, requestBody: {
|
|
63
|
+
isClaimed?: boolean;
|
|
64
|
+
}): CancelablePromise<Record<string, any>>;
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated
|
|
67
|
+
* Delete daily challenge completion
|
|
68
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
69
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
70
|
+
*
|
|
71
|
+
* Deletes a daily challenge completion record.
|
|
72
|
+
*
|
|
73
|
+
* @param id Daily challenge completion ID
|
|
74
|
+
* @returns any Completion deleted successfully
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
deleteApiDailyChallengeCompletions(id: string): CancelablePromise<Record<string, any>>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DailyChallengeCompletionsDeprecatedService = void 0;
|
|
4
|
+
class DailyChallengeCompletionsDeprecatedService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
* Create daily challenge completion
|
|
11
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
12
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
13
|
+
*
|
|
14
|
+
* Creates a new daily challenge completion record.
|
|
15
|
+
*
|
|
16
|
+
* @param requestBody
|
|
17
|
+
* @returns any Daily challenge completion created successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
postApiDailyChallengeCompletions(requestBody) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
url: '/api/daily-challenge-completions',
|
|
24
|
+
body: requestBody,
|
|
25
|
+
mediaType: 'application/json',
|
|
26
|
+
errors: {
|
|
27
|
+
500: `Internal server error`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
* List all daily challenge completions
|
|
34
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
35
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
36
|
+
*
|
|
37
|
+
* Retrieves a list of all daily challenge completion records.
|
|
38
|
+
*
|
|
39
|
+
* @returns any List of completions retrieved successfully
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
getApiDailyChallengeCompletions() {
|
|
43
|
+
return this.httpRequest.request({
|
|
44
|
+
method: 'GET',
|
|
45
|
+
url: '/api/daily-challenge-completions',
|
|
46
|
+
errors: {
|
|
47
|
+
500: `Internal server error`,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
* Get daily challenge completion by ID
|
|
54
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
55
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
56
|
+
*
|
|
57
|
+
* Retrieves a specific daily challenge completion by its ID.
|
|
58
|
+
*
|
|
59
|
+
* @param id Daily challenge completion ID
|
|
60
|
+
* @returns any Completion retrieved successfully
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
getApiDailyChallengeCompletions1(id) {
|
|
64
|
+
return this.httpRequest.request({
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/api/daily-challenge-completions/{id}',
|
|
67
|
+
path: {
|
|
68
|
+
'id': id,
|
|
69
|
+
},
|
|
70
|
+
errors: {
|
|
71
|
+
404: `Completion not found`,
|
|
72
|
+
500: `Internal server error`,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated
|
|
78
|
+
* Update daily challenge completion
|
|
79
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
80
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
81
|
+
*
|
|
82
|
+
* Updates an existing daily challenge completion record.
|
|
83
|
+
*
|
|
84
|
+
* @param id Daily challenge completion ID
|
|
85
|
+
* @param requestBody
|
|
86
|
+
* @returns any Completion updated successfully
|
|
87
|
+
* @throws ApiError
|
|
88
|
+
*/
|
|
89
|
+
putApiDailyChallengeCompletions(id, requestBody) {
|
|
90
|
+
return this.httpRequest.request({
|
|
91
|
+
method: 'PUT',
|
|
92
|
+
url: '/api/daily-challenge-completions/{id}',
|
|
93
|
+
path: {
|
|
94
|
+
'id': id,
|
|
95
|
+
},
|
|
96
|
+
body: requestBody,
|
|
97
|
+
mediaType: 'application/json',
|
|
98
|
+
errors: {
|
|
99
|
+
404: `Completion not found`,
|
|
100
|
+
500: `Internal server error`,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated
|
|
106
|
+
* Delete daily challenge completion
|
|
107
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
108
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
109
|
+
*
|
|
110
|
+
* Deletes a daily challenge completion record.
|
|
111
|
+
*
|
|
112
|
+
* @param id Daily challenge completion ID
|
|
113
|
+
* @returns any Completion deleted successfully
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
deleteApiDailyChallengeCompletions(id) {
|
|
117
|
+
return this.httpRequest.request({
|
|
118
|
+
method: 'DELETE',
|
|
119
|
+
url: '/api/daily-challenge-completions/{id}',
|
|
120
|
+
path: {
|
|
121
|
+
'id': id,
|
|
122
|
+
},
|
|
123
|
+
errors: {
|
|
124
|
+
404: `Completion not found`,
|
|
125
|
+
500: `Internal server error`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.DailyChallengeCompletionsDeprecatedService = DailyChallengeCompletionsDeprecatedService;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
3
|
+
export declare class DailyChallengesDeprecatedService {
|
|
4
|
+
readonly httpRequest: BaseHttpRequest;
|
|
5
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
* Create daily challenge
|
|
9
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
10
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
11
|
+
*
|
|
12
|
+
* Creates a new daily challenge.
|
|
13
|
+
*
|
|
14
|
+
* @param requestBody
|
|
15
|
+
* @returns any Daily challenge created successfully
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
postApiDailyChallenges(requestBody: {
|
|
19
|
+
code?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
xpReward?: number;
|
|
22
|
+
coinsReward?: number;
|
|
23
|
+
date?: string;
|
|
24
|
+
}): CancelablePromise<Record<string, any>>;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* List all daily challenges
|
|
28
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
29
|
+
* Please use `/api/v1/challenges/daily` instead.
|
|
30
|
+
*
|
|
31
|
+
* Retrieves a list of all daily challenges.
|
|
32
|
+
*
|
|
33
|
+
* @returns any List of daily challenges retrieved successfully
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
getApiDailyChallenges(): CancelablePromise<Array<Record<string, any>>>;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
* Get daily challenge by ID
|
|
40
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
41
|
+
* Please use `/api/v1/challenges/daily` instead.
|
|
42
|
+
*
|
|
43
|
+
* Retrieves a specific daily challenge by its ID.
|
|
44
|
+
*
|
|
45
|
+
* @param id Daily challenge ID
|
|
46
|
+
* @returns any Daily challenge retrieved successfully
|
|
47
|
+
* @throws ApiError
|
|
48
|
+
*/
|
|
49
|
+
getApiDailyChallenges1(id: string): CancelablePromise<Record<string, any>>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated
|
|
52
|
+
* Update daily challenge
|
|
53
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
54
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
55
|
+
*
|
|
56
|
+
* Updates an existing daily challenge.
|
|
57
|
+
*
|
|
58
|
+
* @param id Daily challenge ID
|
|
59
|
+
* @param requestBody
|
|
60
|
+
* @returns any Daily challenge updated successfully
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
putApiDailyChallenges(id: string, requestBody: {
|
|
64
|
+
description?: string;
|
|
65
|
+
xpReward?: number;
|
|
66
|
+
coinsReward?: number;
|
|
67
|
+
}): CancelablePromise<Record<string, any>>;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated
|
|
70
|
+
* Delete daily challenge
|
|
71
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
72
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
73
|
+
*
|
|
74
|
+
* Deletes a daily challenge from the system.
|
|
75
|
+
*
|
|
76
|
+
* @param id Daily challenge ID
|
|
77
|
+
* @returns any Daily challenge deleted successfully
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
deleteApiDailyChallenges(id: string): CancelablePromise<Record<string, any>>;
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated
|
|
83
|
+
* Claim daily challenge reward
|
|
84
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
85
|
+
* Please use `/api/v1/challenges/daily/claim` instead.
|
|
86
|
+
*
|
|
87
|
+
* Claims the reward for a completed daily challenge, awarding XP and coins to the user.
|
|
88
|
+
*
|
|
89
|
+
* @param id Daily challenge ID
|
|
90
|
+
* @returns any Challenge reward claimed successfully
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
postApiDailyChallengesClaim(id: string): CancelablePromise<{
|
|
94
|
+
xpReward?: number;
|
|
95
|
+
coinsReward?: number;
|
|
96
|
+
message?: string;
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated
|
|
100
|
+
* Get today's daily challenges
|
|
101
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
102
|
+
* Please use `/api/v1/challenges/daily` instead.
|
|
103
|
+
*
|
|
104
|
+
* Retrieves all daily challenges for today with user completion status.
|
|
105
|
+
*
|
|
106
|
+
* @returns any Today's challenges retrieved successfully
|
|
107
|
+
* @throws ApiError
|
|
108
|
+
*/
|
|
109
|
+
getApiDailyChallengesToday(): CancelablePromise<Array<{
|
|
110
|
+
id?: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
xpReward?: number;
|
|
113
|
+
coinsReward?: number;
|
|
114
|
+
completed?: boolean;
|
|
115
|
+
claimed?: boolean;
|
|
116
|
+
}>>;
|
|
117
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DailyChallengesDeprecatedService = void 0;
|
|
4
|
+
class DailyChallengesDeprecatedService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
* Create daily challenge
|
|
11
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
12
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
13
|
+
*
|
|
14
|
+
* Creates a new daily challenge.
|
|
15
|
+
*
|
|
16
|
+
* @param requestBody
|
|
17
|
+
* @returns any Daily challenge created successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
postApiDailyChallenges(requestBody) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
url: '/api/daily-challenges',
|
|
24
|
+
body: requestBody,
|
|
25
|
+
mediaType: 'application/json',
|
|
26
|
+
errors: {
|
|
27
|
+
500: `Internal server error`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
* List all daily challenges
|
|
34
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
35
|
+
* Please use `/api/v1/challenges/daily` instead.
|
|
36
|
+
*
|
|
37
|
+
* Retrieves a list of all daily challenges.
|
|
38
|
+
*
|
|
39
|
+
* @returns any List of daily challenges retrieved successfully
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
getApiDailyChallenges() {
|
|
43
|
+
return this.httpRequest.request({
|
|
44
|
+
method: 'GET',
|
|
45
|
+
url: '/api/daily-challenges',
|
|
46
|
+
errors: {
|
|
47
|
+
500: `Internal server error`,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
* Get daily challenge by ID
|
|
54
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
55
|
+
* Please use `/api/v1/challenges/daily` instead.
|
|
56
|
+
*
|
|
57
|
+
* Retrieves a specific daily challenge by its ID.
|
|
58
|
+
*
|
|
59
|
+
* @param id Daily challenge ID
|
|
60
|
+
* @returns any Daily challenge retrieved successfully
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
getApiDailyChallenges1(id) {
|
|
64
|
+
return this.httpRequest.request({
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/api/daily-challenges/{id}',
|
|
67
|
+
path: {
|
|
68
|
+
'id': id,
|
|
69
|
+
},
|
|
70
|
+
errors: {
|
|
71
|
+
404: `Daily challenge not found`,
|
|
72
|
+
500: `Internal server error`,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated
|
|
78
|
+
* Update daily challenge
|
|
79
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
80
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
81
|
+
*
|
|
82
|
+
* Updates an existing daily challenge.
|
|
83
|
+
*
|
|
84
|
+
* @param id Daily challenge ID
|
|
85
|
+
* @param requestBody
|
|
86
|
+
* @returns any Daily challenge updated successfully
|
|
87
|
+
* @throws ApiError
|
|
88
|
+
*/
|
|
89
|
+
putApiDailyChallenges(id, requestBody) {
|
|
90
|
+
return this.httpRequest.request({
|
|
91
|
+
method: 'PUT',
|
|
92
|
+
url: '/api/daily-challenges/{id}',
|
|
93
|
+
path: {
|
|
94
|
+
'id': id,
|
|
95
|
+
},
|
|
96
|
+
body: requestBody,
|
|
97
|
+
mediaType: 'application/json',
|
|
98
|
+
errors: {
|
|
99
|
+
404: `Daily challenge not found`,
|
|
100
|
+
500: `Internal server error`,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated
|
|
106
|
+
* Delete daily challenge
|
|
107
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
108
|
+
* Please use `/api/v1/challenges` endpoints instead.
|
|
109
|
+
*
|
|
110
|
+
* Deletes a daily challenge from the system.
|
|
111
|
+
*
|
|
112
|
+
* @param id Daily challenge ID
|
|
113
|
+
* @returns any Daily challenge deleted successfully
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
deleteApiDailyChallenges(id) {
|
|
117
|
+
return this.httpRequest.request({
|
|
118
|
+
method: 'DELETE',
|
|
119
|
+
url: '/api/daily-challenges/{id}',
|
|
120
|
+
path: {
|
|
121
|
+
'id': id,
|
|
122
|
+
},
|
|
123
|
+
errors: {
|
|
124
|
+
404: `Daily challenge not found`,
|
|
125
|
+
500: `Internal server error`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated
|
|
131
|
+
* Claim daily challenge reward
|
|
132
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
133
|
+
* Please use `/api/v1/challenges/daily/claim` instead.
|
|
134
|
+
*
|
|
135
|
+
* Claims the reward for a completed daily challenge, awarding XP and coins to the user.
|
|
136
|
+
*
|
|
137
|
+
* @param id Daily challenge ID
|
|
138
|
+
* @returns any Challenge reward claimed successfully
|
|
139
|
+
* @throws ApiError
|
|
140
|
+
*/
|
|
141
|
+
postApiDailyChallengesClaim(id) {
|
|
142
|
+
return this.httpRequest.request({
|
|
143
|
+
method: 'POST',
|
|
144
|
+
url: '/api/daily-challenges/{id}/claim',
|
|
145
|
+
path: {
|
|
146
|
+
'id': id,
|
|
147
|
+
},
|
|
148
|
+
errors: {
|
|
149
|
+
400: `Bad request - Challenge ID is required`,
|
|
150
|
+
401: `Unauthorized - authentication required`,
|
|
151
|
+
404: `Challenge not completed yet`,
|
|
152
|
+
409: `Reward already claimed`,
|
|
153
|
+
500: `Internal server error`,
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated
|
|
159
|
+
* Get today's daily challenges
|
|
160
|
+
* **DEPRECATED**: This endpoint is deprecated and will be removed in a future version.
|
|
161
|
+
* Please use `/api/v1/challenges/daily` instead.
|
|
162
|
+
*
|
|
163
|
+
* Retrieves all daily challenges for today with user completion status.
|
|
164
|
+
*
|
|
165
|
+
* @returns any Today's challenges retrieved successfully
|
|
166
|
+
* @throws ApiError
|
|
167
|
+
*/
|
|
168
|
+
getApiDailyChallengesToday() {
|
|
169
|
+
return this.httpRequest.request({
|
|
170
|
+
method: 'GET',
|
|
171
|
+
url: '/api/daily-challenges/today',
|
|
172
|
+
errors: {
|
|
173
|
+
404: `No challenges found for today`,
|
|
174
|
+
500: `Internal server error`,
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.DailyChallengesDeprecatedService = DailyChallengesDeprecatedService;
|