@everymatrix/casino-tournaments-ingame-state 0.2.2 → 0.2.4
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/collection/utils/types.js +1 -7
- package/dist/collection/utils/utils.js +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-state/.stencil/{packages/stencil/casino-tournaments-ingame-types/src/utils/types.d.ts → libs/common/src/types/casino/tournaments.d.ts} +2 -5
- package/dist/types/utils/types.d.ts +0 -111
- package/package.json +1 -1
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (TournamentState) {
|
|
3
|
-
TournamentState["Unstarted"] = "Unstarted";
|
|
4
|
-
TournamentState["Ongoing"] = "Running";
|
|
5
|
-
TournamentState["Closing"] = "Closing";
|
|
6
|
-
TournamentState["Closed"] = "Closed";
|
|
7
|
-
})(TournamentState || (TournamentState = {}));
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { translate } from "./locale.utils";
|
|
2
2
|
import moment from "moment/moment";
|
|
3
|
-
import { TournamentState } from "
|
|
3
|
+
import { TournamentState } from "../../../../../../../libs/common/src/types/casino/tournaments";
|
|
4
4
|
export function format(first, middle, last) {
|
|
5
5
|
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
6
6
|
}
|
|
@@ -47,7 +47,7 @@ export type Tournament = {
|
|
|
47
47
|
minBetCount?: number;
|
|
48
48
|
scoreCriteria?: string;
|
|
49
49
|
enrollCriteria?: string;
|
|
50
|
-
prizes
|
|
50
|
+
prizes?: TournamentPrize[] | null;
|
|
51
51
|
playerEnrolled?: boolean;
|
|
52
52
|
overview?: {
|
|
53
53
|
participants: number;
|
|
@@ -67,7 +67,7 @@ export type Tournament = {
|
|
|
67
67
|
}>;
|
|
68
68
|
games?: {
|
|
69
69
|
count: number;
|
|
70
|
-
items:
|
|
70
|
+
items: CasinoGame[] | null;
|
|
71
71
|
total: number;
|
|
72
72
|
};
|
|
73
73
|
presentPeriod?: {
|
|
@@ -109,6 +109,3 @@ export type PthApiResponse = {
|
|
|
109
109
|
success: boolean;
|
|
110
110
|
[key: string]: any;
|
|
111
111
|
};
|
|
112
|
-
export type Test = {
|
|
113
|
-
id: string;
|
|
114
|
-
};
|
|
@@ -1,114 +1,3 @@
|
|
|
1
|
-
export type CasinoGame = {
|
|
2
|
-
gameCode?: string;
|
|
3
|
-
id: string;
|
|
4
|
-
gameId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
launchUrl?: string;
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
hasFunMode?: boolean;
|
|
10
|
-
platform?: string[];
|
|
11
|
-
backgroundImageUrl?: string;
|
|
12
|
-
popularity?: number;
|
|
13
|
-
isNew?: boolean;
|
|
14
|
-
hasAnonymousFunMode?: boolean;
|
|
15
|
-
defaultThumbnail?: string;
|
|
16
|
-
thumbnail?: string;
|
|
17
|
-
type: string;
|
|
18
|
-
logo?: string;
|
|
19
|
-
htmlDescription?: string;
|
|
20
|
-
vendor?: {
|
|
21
|
-
href: string;
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
displayName: string;
|
|
25
|
-
image: string;
|
|
26
|
-
logo: string;
|
|
27
|
-
};
|
|
28
|
-
slug?: string;
|
|
29
|
-
href?: string;
|
|
30
|
-
};
|
|
31
|
-
export type Tournament = {
|
|
32
|
-
href: string;
|
|
33
|
-
id: string;
|
|
34
|
-
nameOrTitle?: string;
|
|
35
|
-
description: string;
|
|
36
|
-
termsUrl?: string;
|
|
37
|
-
baseCurrency: string;
|
|
38
|
-
thumbnail?: string;
|
|
39
|
-
thumbnails?: any[];
|
|
40
|
-
startTime: string;
|
|
41
|
-
endTime: string;
|
|
42
|
-
closeTime: string;
|
|
43
|
-
exhibitionStartTime?: string;
|
|
44
|
-
exhibitionEndTime?: string;
|
|
45
|
-
state: string;
|
|
46
|
-
tags?: string;
|
|
47
|
-
minBetCount?: number;
|
|
48
|
-
scoreCriteria?: string;
|
|
49
|
-
enrollCriteria?: string;
|
|
50
|
-
prizes: Array<TournamentPrize>;
|
|
51
|
-
playerEnrolled?: boolean;
|
|
52
|
-
overview?: {
|
|
53
|
-
participants: number;
|
|
54
|
-
};
|
|
55
|
-
metadata?: {
|
|
56
|
-
sports?: {
|
|
57
|
-
rules?: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
wallet?: {
|
|
61
|
-
casino?: any;
|
|
62
|
-
sports?: any;
|
|
63
|
-
};
|
|
64
|
-
wallets?: Array<{
|
|
65
|
-
code: string;
|
|
66
|
-
[key: string]: any;
|
|
67
|
-
}>;
|
|
68
|
-
games?: {
|
|
69
|
-
count: number;
|
|
70
|
-
items: Array<CasinoGame>;
|
|
71
|
-
total: number;
|
|
72
|
-
};
|
|
73
|
-
presentPeriod?: {
|
|
74
|
-
start: string;
|
|
75
|
-
end: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare enum TournamentState {
|
|
79
|
-
Unstarted = "Unstarted",
|
|
80
|
-
Ongoing = "Running",
|
|
81
|
-
Closing = "Closing",
|
|
82
|
-
Closed = "Closed"
|
|
83
|
-
}
|
|
84
|
-
export type TournamentPrize = {
|
|
85
|
-
rank?: number;
|
|
86
|
-
count: number;
|
|
87
|
-
name: string;
|
|
88
|
-
bonusProgramID?: string;
|
|
89
|
-
};
|
|
90
|
-
export type LeaderboardItem = {
|
|
91
|
-
id: number;
|
|
92
|
-
insTicks?: string;
|
|
93
|
-
rank?: number;
|
|
94
|
-
rankWithoutUnqualified?: number;
|
|
95
|
-
prizeName?: string;
|
|
96
|
-
domainID: number;
|
|
97
|
-
userID?: string;
|
|
98
|
-
shortName?: string;
|
|
99
|
-
countryCode?: string;
|
|
100
|
-
betCount: number;
|
|
101
|
-
score: number;
|
|
102
|
-
formattedScore?: string;
|
|
103
|
-
unqualified: boolean;
|
|
104
|
-
totalRank?: number;
|
|
105
|
-
};
|
|
106
|
-
export type PthApiResponse = {
|
|
107
|
-
errorCode?: number;
|
|
108
|
-
errorMessage?: string;
|
|
109
|
-
success: boolean;
|
|
110
|
-
[key: string]: any;
|
|
111
|
-
};
|
|
112
1
|
export type TournamentPresentState = {
|
|
113
2
|
state: string;
|
|
114
3
|
startTime: string;
|