@smartico/public-api 0.0.97 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Base/AchRelatedGame.d.ts +13 -0
- package/dist/Missions/UserAchievement.d.ts +2 -0
- package/dist/Tournaments/Tournament.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +14 -0
- package/src/Core/CoreUtils.ts +1 -1
- package/src/Missions/UserAchievement.ts +2 -0
- package/src/Tournaments/Tournament.ts +4 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface AchRelatedGame {
|
|
2
|
+
ach_game_id: number;
|
|
3
|
+
ext_game_id: string;
|
|
4
|
+
game_public_meta: {
|
|
5
|
+
name: string;
|
|
6
|
+
link: string;
|
|
7
|
+
image: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
game_categories?: string[];
|
|
10
|
+
game_provider?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export { AchRelatedGame };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AchRelatedGame } from "../Base/AchRelatedGame";
|
|
1
2
|
import { TMissionOrBadge } from "../WSAPI/WSAPITypes";
|
|
2
3
|
import { AchievementPublicMeta } from "./AchievementPublicMeta";
|
|
3
4
|
import { AchievementStatus } from "./AchievementStatus";
|
|
@@ -22,5 +23,6 @@ export interface UserAchievement {
|
|
|
22
23
|
achievementTasks?: UserAchievementTask[];
|
|
23
24
|
ach_status_id?: AchievementStatus;
|
|
24
25
|
scheduledMissionType?: ScheduledMissionType;
|
|
26
|
+
related_games?: AchRelatedGame[];
|
|
25
27
|
}
|
|
26
28
|
export declare const UserAchievementTransform: (items: UserAchievement[]) => TMissionOrBadge[];
|
|
@@ -4,6 +4,7 @@ import { TournamentRegistrationStatus } from "./TournamentRegistrationStatus";
|
|
|
4
4
|
import { TournamentType } from "./TournamentType";
|
|
5
5
|
import { TournamentPublicMeta } from "./TournamentPublicMeta";
|
|
6
6
|
import { TTournament } from "../WSAPI/WSAPITypes";
|
|
7
|
+
import { AchRelatedGame } from "../Base/AchRelatedGame";
|
|
7
8
|
export interface Tournament {
|
|
8
9
|
/** ID of tournament template */
|
|
9
10
|
tournamentId?: number;
|
|
@@ -45,5 +46,7 @@ export interface Tournament {
|
|
|
45
46
|
playersMaxCount?: number;
|
|
46
47
|
/** Tournament duration in millisecnnds */
|
|
47
48
|
durationMs?: number;
|
|
49
|
+
/** List of casino games (or other types of entities) related to the tournament */
|
|
50
|
+
related_games?: AchRelatedGame[];
|
|
48
51
|
}
|
|
49
52
|
export declare const TournamentItemsTransform: (items: Tournament[]) => TTournament[];
|
package/dist/index.js
CHANGED
|
@@ -463,7 +463,7 @@ exports.ActivityTypeLimited = void 0;
|
|
|
463
463
|
|
|
464
464
|
var CoreUtils = function CoreUtils() {};
|
|
465
465
|
CoreUtils.avatarUrl = function (avatar_id, avatarDomain) {
|
|
466
|
-
if (avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
|
|
466
|
+
if (avatarDomain && avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
|
|
467
467
|
if (avatarDomain.endsWith('/')) {
|
|
468
468
|
return avatarDomain.slice(0, -1) + '/avatar/' + avatar_id;
|
|
469
469
|
} else {
|