@splash-tech/jackpot-sdk 1.0.7 → 1.0.8
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/index.js
CHANGED
|
@@ -7,8 +7,6 @@ export const splashJackpot = {
|
|
|
7
7
|
isLaunched: () => footerWidget.isWidgetLaunched(),
|
|
8
8
|
launch: (params) => footerWidget.launchFooter(params),
|
|
9
9
|
updateData: (partialData) => footerWidget.updateData(partialData),
|
|
10
|
-
showPopup: () => footerWidget.showPopup(),
|
|
11
|
-
hidePopup: () => footerWidget.hidePopup(),
|
|
12
10
|
destroy: () => footerWidget.destroyFooter(),
|
|
13
11
|
addEventListener: (event, handler) => footerWidget.addEventListener(event, handler),
|
|
14
12
|
removeEventListener: (event, handler) => footerWidget.removeEventListener(event, handler),
|
package/dist/types.d.ts
CHANGED
|
@@ -7,9 +7,7 @@ export interface SplashJackpotSDK {
|
|
|
7
7
|
footer: {
|
|
8
8
|
isLaunched: () => boolean;
|
|
9
9
|
launch: (params: FooterWidgetParams) => void;
|
|
10
|
-
updateData: (partialData: unknown) => void;
|
|
11
|
-
showPopup: () => void;
|
|
12
|
-
hidePopup: () => void;
|
|
10
|
+
updateData: (partialData: Partial<unknown>) => void;
|
|
13
11
|
destroy: () => void;
|
|
14
12
|
addEventListener(event: keyof FooterWidgetEvents, handler: WidgetEventHandler): void;
|
|
15
13
|
removeEventListener(event: keyof FooterWidgetEvents, handler: WidgetEventHandler): void;
|
|
@@ -8,7 +8,7 @@ export declare class FooterWidget extends BaseWidget {
|
|
|
8
8
|
launchFooter(params: FooterWidgetParams): void;
|
|
9
9
|
updateData(partialData: unknown): void;
|
|
10
10
|
private validateNonEmptyObject;
|
|
11
|
-
showPopup
|
|
12
|
-
hidePopup
|
|
11
|
+
private showPopup;
|
|
12
|
+
private hidePopup;
|
|
13
13
|
destroyFooter(): void;
|
|
14
14
|
}
|
|
@@ -4,151 +4,3 @@ export interface FooterWidgetParams {
|
|
|
4
4
|
mode?: SDKMode;
|
|
5
5
|
container?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface FooterWidgetData {
|
|
8
|
-
group: JackpotGroupResponse;
|
|
9
|
-
newGroup: JackpotGroupResponseNew;
|
|
10
|
-
theme: JackpotThemeResponse;
|
|
11
|
-
participate: JackpotParticipation;
|
|
12
|
-
}
|
|
13
|
-
export interface JackpotGroup {
|
|
14
|
-
uuid: string;
|
|
15
|
-
name: string;
|
|
16
|
-
brands: string[];
|
|
17
|
-
tags: {
|
|
18
|
-
tag: string;
|
|
19
|
-
}[];
|
|
20
|
-
deleted: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface JackpotGroupResponse {
|
|
23
|
-
jackpotGroup: JackpotGroup | null;
|
|
24
|
-
theme: Theme | null;
|
|
25
|
-
jackpotLevels: JackpotLevel[];
|
|
26
|
-
}
|
|
27
|
-
export interface JackpotLevel {
|
|
28
|
-
uuid: string;
|
|
29
|
-
name: string;
|
|
30
|
-
currency: string;
|
|
31
|
-
values: {
|
|
32
|
-
[key: string]: number;
|
|
33
|
-
};
|
|
34
|
-
won: boolean;
|
|
35
|
-
paused: boolean;
|
|
36
|
-
prizeLabel: string | null;
|
|
37
|
-
iconAsset: Asset | null;
|
|
38
|
-
}
|
|
39
|
-
export interface JackpotLevelWithColor extends JackpotLevel {
|
|
40
|
-
filter: string;
|
|
41
|
-
background: string;
|
|
42
|
-
}
|
|
43
|
-
export interface WonJackpotLevel extends JackpotLevelWithColor {
|
|
44
|
-
winAmount: number;
|
|
45
|
-
}
|
|
46
|
-
export interface JackpotSegment {
|
|
47
|
-
icon: string;
|
|
48
|
-
backgroundColor: string;
|
|
49
|
-
label: string;
|
|
50
|
-
index: number;
|
|
51
|
-
isWon: boolean;
|
|
52
|
-
filter: string;
|
|
53
|
-
}
|
|
54
|
-
export interface Theme extends BaseTheme {
|
|
55
|
-
clientLogoAsset: Asset | null;
|
|
56
|
-
jackpotLogoAsset: Asset | null;
|
|
57
|
-
jackpotPopupImageAsset: Asset | null;
|
|
58
|
-
lockingSymbolSoundAsset: Asset | null;
|
|
59
|
-
resultNoPrizeSoundAsset: Asset | null;
|
|
60
|
-
resultPrizeRevealSoundAsset: Asset | null;
|
|
61
|
-
spinSoundAsset: Asset | null;
|
|
62
|
-
}
|
|
63
|
-
export interface JackpotGroupResponseNew {
|
|
64
|
-
uuid: string;
|
|
65
|
-
noOfWins: number;
|
|
66
|
-
totalWinAmount: number;
|
|
67
|
-
currentCounters: JackpotCounter[];
|
|
68
|
-
}
|
|
69
|
-
export interface JackpotCounter {
|
|
70
|
-
uuid: string;
|
|
71
|
-
name: string;
|
|
72
|
-
currency: string;
|
|
73
|
-
currentValue: number;
|
|
74
|
-
totalUserLevelContributionPerSpin: number;
|
|
75
|
-
}
|
|
76
|
-
export interface JackpotThemeResponse {
|
|
77
|
-
theme: Theme;
|
|
78
|
-
}
|
|
79
|
-
export interface JackpotParticipation {
|
|
80
|
-
jackpotId: string;
|
|
81
|
-
participate: boolean;
|
|
82
|
-
tag: string | null;
|
|
83
|
-
}
|
|
84
|
-
export interface Asset {
|
|
85
|
-
uuid: string;
|
|
86
|
-
createdTs: string;
|
|
87
|
-
name: string;
|
|
88
|
-
label: string;
|
|
89
|
-
comment: string;
|
|
90
|
-
url: string;
|
|
91
|
-
tags: string[];
|
|
92
|
-
type: AssetType;
|
|
93
|
-
sportType: SportType;
|
|
94
|
-
}
|
|
95
|
-
export declare enum AssetType {
|
|
96
|
-
GAME = "GAME",
|
|
97
|
-
REPORT = "REPORT",
|
|
98
|
-
FONT = "FONT",
|
|
99
|
-
CLIENT = "CLIENT",
|
|
100
|
-
AUDIO = "AUDIO"
|
|
101
|
-
}
|
|
102
|
-
export declare enum SportType {
|
|
103
|
-
SOCCER = "SOCCER",
|
|
104
|
-
CRICKET = "CRICKET",
|
|
105
|
-
BASKETBALL = "BASKETBALL",
|
|
106
|
-
ICE_HOCKEY = "ICE HOCKEY",
|
|
107
|
-
RUGBY = "RUGBY",
|
|
108
|
-
MMA = "MMA",
|
|
109
|
-
BOXING = "BOXING",
|
|
110
|
-
BASEBALL = "BASEBALL",
|
|
111
|
-
GOLF = "GOLF",
|
|
112
|
-
TENNIS = "TENNIS",
|
|
113
|
-
E_SPORTS = "E-SPORTS",
|
|
114
|
-
FORMULA_1 = "FORMULA 1",
|
|
115
|
-
OTHER = "OTHER",
|
|
116
|
-
DARTS = "DARTS",
|
|
117
|
-
OLYMPICS = "OLYMPICS",
|
|
118
|
-
VOLLEYBALL = "VOLLEYBALL",
|
|
119
|
-
AMERICAN_FOOTBALL = "AMERICAN FOOTBALL"
|
|
120
|
-
}
|
|
121
|
-
export interface BaseTheme {
|
|
122
|
-
uuid: string;
|
|
123
|
-
createdTs: string;
|
|
124
|
-
updatedTs: string;
|
|
125
|
-
name: string;
|
|
126
|
-
cssVariables: ConfigValue[];
|
|
127
|
-
primaryFontRegularAsset: Asset;
|
|
128
|
-
primaryFontMediumAsset: Asset;
|
|
129
|
-
primaryFontBoldAsset: Asset;
|
|
130
|
-
jackpotFontAsset: Asset;
|
|
131
|
-
darkMode: boolean;
|
|
132
|
-
backgroundAnimation: BackgroundAnimationType | null;
|
|
133
|
-
labels: ConfigValue[];
|
|
134
|
-
cornerRadiusCta: number;
|
|
135
|
-
termsAndConditions: string | null;
|
|
136
|
-
rules: string | null;
|
|
137
|
-
faq: string | null;
|
|
138
|
-
secondaryCtaStyle: CTAStyles | null;
|
|
139
|
-
}
|
|
140
|
-
export declare enum CTAStyles {
|
|
141
|
-
Outline = "OUTLINE",
|
|
142
|
-
Solid = "SOLID"
|
|
143
|
-
}
|
|
144
|
-
export interface ConfigValue {
|
|
145
|
-
uuid: string;
|
|
146
|
-
key: string;
|
|
147
|
-
description: string;
|
|
148
|
-
value: string;
|
|
149
|
-
hint: string;
|
|
150
|
-
}
|
|
151
|
-
export declare enum BackgroundAnimationType {
|
|
152
|
-
SNOW = "SNOW",
|
|
153
|
-
SPARKLE = "SPARKLE"
|
|
154
|
-
}
|