@everymatrix/casino-engagement-suite-container 1.0.69
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/casino-engagement-suite-container/casino-engagement-suite-container.esm.js +1 -0
- package/dist/casino-engagement-suite-container/index.esm.js +0 -0
- package/dist/casino-engagement-suite-container/p-2c9a2139.entry.js +1 -0
- package/dist/casino-engagement-suite-container/p-e1255160.js +1 -0
- package/dist/casino-engagement-suite-container/p-efde3fd4.js +2 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-bar_11.cjs.entry.js +4833 -0
- package/dist/cjs/casino-engagement-suite-container.cjs.js +25 -0
- package/dist/cjs/index-4ca644e2.js +1348 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +73 -0
- package/dist/collection/components/casino-engagement-suite-container/casino-engagement-suite-container.css +39 -0
- package/dist/collection/components/casino-engagement-suite-container/casino-engagement-suite-container.js +745 -0
- package/dist/collection/components/casino-engagement-suite-container/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/casino-engagement-suite-config.js +17 -0
- package/dist/collection/utils/constants.js +6 -0
- package/dist/collection/utils/utils.js +24 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-bar_11.entry.js +4819 -0
- package/dist/esm/casino-engagement-suite-container.js +20 -0
- package/dist/esm/index-2bd77432.js +1320 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-container/.stencil/packages/stencil/casino-engagement-suite-container/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-container/.stencil/packages/stencil/casino-engagement-suite-container/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-container/casino-engagement-suite-container.d.ts +98 -0
- package/dist/types/components/casino-engagement-suite-container/index.d.ts +1 -0
- package/dist/types/components.d.ts +86 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/casino-engagement-suite-config.d.ts +163 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/constants.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +36 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-2bd77432.js';
|
|
2
|
+
export { s as setNonce } from './index-2bd77432.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["casino-engagement-suite-bar_11",[[1,"casino-engagement-suite-container",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"orientation":[32],"device":[32],"showChallengesList":[32],"showFreeSpinsList":[32],"showJackpotsList":[32],"showChallengeDetails":[32],"showFreeSpinsDetails":[32],"showJackpotDetails":[32],"showLeaderboardWidget":[32],"challengePercent":[32],"remainingFreeSpins":[32],"highlightChallenge":[32],"limitStylingAppends":[32],"activeWidget":[32],"challenges":[32],"inProgressChallenges":[32],"jackpots":[32],"freeSpins":[32],"leaderboards":[32],"gameSlug":[32],"pausedChallengeIds":[32],"isChallengeLabel":[32],"isForfeitedSpinsLabel":[32],"isForfeitedChallengeLabel":[32],"isJoiningToChallenge":[32],"selectedChallenge":[32],"selectedJackpot":[32],"selectedSpin":[32],"selectedSpinId":[32],"selectedChallengeId":[32],"selectedJackpotId":[32],"barHeight":[32],"init":[64]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-challenges-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[1040],"inProgressChallenges":[1040],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"pausedChallengeIds":[1040],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32]},null,{"challenge":["challengePropHandler"]}],[1,"casino-engagement-suite-challenges-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"challenges":[1040],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"inProgressChallenges":[1040],"pausedChallengeIds":[1040],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"activeTab":[32],"historyLoading":[32],"challengesHistory":[32],"openedHistoryIds":[32]},[[8,"message","handleEvent"]],{"challenges":["challengesPropHandler"]}],[1,"casino-engagement-suite-modal-container",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"device":[1],"limitStylingAppends":[32],"openModals":[32],"rewardMessage":[32],"hasError":[32],"confirmationData":[32],"winAmount":[32]},[[16,"openModal","openModalHandler"],[16,"closeModal","closeModalHandler"]]],[1,"casino-engagement-suite-bar",{"activeWidget":[1537,"active-widget"],"challengePercent":[1,"challenge-percent"],"highlightChallenge":[4,"highlight-challenge"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"orientation":[1],"device":[1],"isChallengeLabel":[4,"is-challenge-label"],"isForfeitedChallengeLabel":[4,"is-forfeited-challenge-label"],"isSpinForfeitedLabel":[1028,"is-spin-forfeited-label"],"language":[1],"jackpots":[16],"remainingFreeSpins":[1,"remaining-free-spins"],"leaderboards":[16],"limitStylingAppends":[32],"activeJackpot":[32]}],[1,"casino-engagement-suite-free-spins-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"spin":[1040],"inProgressChallenges":[16],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32],"activeTab":[32],"visibleGames":[32],"tooltip":[32]}],[1,"casino-engagement-suite-free-spins-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"freeSpins":[1040],"tooltip":[32],"timers":[32],"limitStylingAppends":[32],"newSpinIds":[32]},null,{"freeSpins":["spinsPropHandler"]}],[1,"casino-engagement-suite-jackpot-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"jackpot":[16],"jackpotChangeStatusRequest":[1040],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"limitStylingAppends":[32],"timer":[32],"disabledStatus":[32],"activeTab":[32],"visibleGames":[32],"enabled":[32],"balance":[32],"winBalance":[32],"showDetails":[32],"jackpotEndTime":[32],"showTooltip":[32]},[[8,"message","handleEvent"],[9,"resize","handleResize"]],{"jackpot":["handleJackpotUpdate"]}],[1,"casino-engagement-suite-jackpots-list",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"device":[1],"jackpots":[1040],"jackpotChangeStatusRequest":[1040],"tooltip":[32],"timers":[32],"limitStylingAppends":[32]},null,{"jackpots":["jackpotsPropHandler"]}],[1,"casino-engagement-suite-modal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[4,"is-open"],"isLoading":[1028,"is-loading"],"header":[1],"contentIcon":[1,"content-icon"],"modalType":[1,"modal-type"],"device":[1],"showAnimation":[4,"show-animation"],"limitStylingAppends":[32]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-engagement-suite-container',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-engagement-suite-container',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-challenges-details/dist/types/index";
|
|
3
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-bar/dist/types/index";
|
|
4
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-challenges-list/dist/types/index";
|
|
5
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-free-spins-list/dist/types/index";
|
|
6
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-free-spins-details/dist/types/index";
|
|
7
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-jackpots-list/dist/types/index";
|
|
8
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-jackpot-details/dist/types/index";
|
|
9
|
+
import '@everymatrix/casino-engagement-suite-tournament';
|
|
10
|
+
import "../../../../../../dist/packages/stencil/casino-engagement-suite-modal-container/dist/types/index";
|
|
11
|
+
import { CasinoEngagementSuiteConfig, Challenge, ChallengeProgressUpdateMessage, Jackpot, OpenModalEvent, VendorFreeSpins, UpdateJackpotBalanceMessage, Tournaments, UpdateJackpotStatusEvent, JoinJackpotResultEvent, FreeSpinsProgressUpdateMessage } from '../../models/casino-engagement-suite-config';
|
|
12
|
+
export declare class CasinoEngagementSuiteContainer {
|
|
13
|
+
/**
|
|
14
|
+
* Client custom styling via string
|
|
15
|
+
*/
|
|
16
|
+
clientStyling: string;
|
|
17
|
+
/**
|
|
18
|
+
* Client custom styling via url
|
|
19
|
+
*/
|
|
20
|
+
clientStylingUrl: string;
|
|
21
|
+
/**
|
|
22
|
+
* Language of the widget
|
|
23
|
+
*/
|
|
24
|
+
language: string;
|
|
25
|
+
orientation: "Landscape" | "Portrait";
|
|
26
|
+
device: "Mobile" | "Tablet" | "Desktop";
|
|
27
|
+
showChallengesList: boolean;
|
|
28
|
+
showFreeSpinsList: boolean;
|
|
29
|
+
showJackpotsList: boolean;
|
|
30
|
+
showChallengeDetails: boolean;
|
|
31
|
+
showFreeSpinsDetails: boolean;
|
|
32
|
+
showJackpotDetails: boolean;
|
|
33
|
+
showLeaderboardWidget: boolean;
|
|
34
|
+
challengePercent: string;
|
|
35
|
+
remainingFreeSpins: string;
|
|
36
|
+
highlightChallenge: boolean;
|
|
37
|
+
private limitStylingAppends;
|
|
38
|
+
activeWidget: string;
|
|
39
|
+
challenges: Array<Challenge>;
|
|
40
|
+
inProgressChallenges: Array<string>;
|
|
41
|
+
jackpots: Array<Jackpot>;
|
|
42
|
+
freeSpins: Array<VendorFreeSpins>;
|
|
43
|
+
leaderboards: Tournaments;
|
|
44
|
+
gameSlug: string;
|
|
45
|
+
pausedChallengeIds: Array<string>;
|
|
46
|
+
isChallengeLabel: boolean;
|
|
47
|
+
isForfeitedSpinsLabel: boolean;
|
|
48
|
+
isForfeitedChallengeLabel: boolean;
|
|
49
|
+
isJoiningToChallenge: boolean;
|
|
50
|
+
selectedChallenge: Challenge;
|
|
51
|
+
selectedJackpot: Jackpot;
|
|
52
|
+
selectedSpin: VendorFreeSpins;
|
|
53
|
+
selectedSpinId: string;
|
|
54
|
+
selectedChallengeId: string;
|
|
55
|
+
selectedJackpotId: number;
|
|
56
|
+
barHeight: number;
|
|
57
|
+
host: HTMLElement;
|
|
58
|
+
openModal: EventEmitter<OpenModalEvent>;
|
|
59
|
+
closeModal: EventEmitter<string>;
|
|
60
|
+
handleEvent(e: any): void;
|
|
61
|
+
handlePopupClose: (listName: string, detailsName: string) => () => void;
|
|
62
|
+
handleJackpotsPopupClose: () => void;
|
|
63
|
+
handleChallengePopupBack: () => void;
|
|
64
|
+
handleFreeSpinsPopupBack: () => void;
|
|
65
|
+
handleResetNewChallengeLabel: (e: any) => void;
|
|
66
|
+
handleJackpotPopupBack: () => void;
|
|
67
|
+
componentDidLoad(): void;
|
|
68
|
+
barWrapperEl: HTMLElement;
|
|
69
|
+
componentDidRender(): void;
|
|
70
|
+
disconnectedCallback(): void;
|
|
71
|
+
orientationChangeHandler: () => void;
|
|
72
|
+
setClientStyling: () => void;
|
|
73
|
+
setClientStylingURL: () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Called to initialize widget
|
|
76
|
+
* @param config
|
|
77
|
+
*/
|
|
78
|
+
init(config: CasinoEngagementSuiteConfig): Promise<void>;
|
|
79
|
+
setChallengeLabel(): void;
|
|
80
|
+
setSpinsForfeitedLabel(): void;
|
|
81
|
+
setChallengePercent(): void;
|
|
82
|
+
setRemainingFreeSpins(): void;
|
|
83
|
+
updateChallengeProgress(data: ChallengeProgressUpdateMessage): void;
|
|
84
|
+
updateFreeSpinsProgress(data: FreeSpinsProgressUpdateMessage): void;
|
|
85
|
+
updateChallengeStatus(id: string, status: number, addToInProgress: boolean): void;
|
|
86
|
+
updateJackpotBalance(updatedJackpots: Array<UpdateJackpotBalanceMessage>): void;
|
|
87
|
+
updateJackpotStatus(statusUpdate: UpdateJackpotStatusEvent): void;
|
|
88
|
+
jackpotChangeStatusRequest: (ev: MouseEvent) => void;
|
|
89
|
+
joinJackpotResult(joinResult: JoinJackpotResultEvent): void;
|
|
90
|
+
grantFreeSpinCampaigns(campaigns: Array<VendorFreeSpins>): void;
|
|
91
|
+
getChallengesWidgets(): any;
|
|
92
|
+
onLeaderboardsClose: () => void;
|
|
93
|
+
getLeaderboardsWidgets(): any;
|
|
94
|
+
getFreeSpinWidgets(): any;
|
|
95
|
+
getJackpotsWidgets(): any;
|
|
96
|
+
getRewardMessage(challengeId: string, levelId: string): string;
|
|
97
|
+
render(): any;
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteContainer } from './casino-engagement-suite-container';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { CasinoEngagementSuiteConfig, OpenModalEvent } from "./models/casino-engagement-suite-config";
|
|
9
|
+
export { CasinoEngagementSuiteConfig, OpenModalEvent } from "./models/casino-engagement-suite-config";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface CasinoEngagementSuiteContainer {
|
|
12
|
+
/**
|
|
13
|
+
* Client custom styling via string
|
|
14
|
+
*/
|
|
15
|
+
"clientStyling": string;
|
|
16
|
+
/**
|
|
17
|
+
* Client custom styling via url
|
|
18
|
+
*/
|
|
19
|
+
"clientStylingUrl": string;
|
|
20
|
+
/**
|
|
21
|
+
* Called to initialize widget
|
|
22
|
+
* @param config
|
|
23
|
+
*/
|
|
24
|
+
"init": (config: CasinoEngagementSuiteConfig) => Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Language of the widget
|
|
27
|
+
*/
|
|
28
|
+
"language": string;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export interface CasinoEngagementSuiteContainerCustomEvent<T> extends CustomEvent<T> {
|
|
32
|
+
detail: T;
|
|
33
|
+
target: HTMLCasinoEngagementSuiteContainerElement;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLCasinoEngagementSuiteContainerElementEventMap {
|
|
37
|
+
"openModal": OpenModalEvent;
|
|
38
|
+
"closeModal": string;
|
|
39
|
+
}
|
|
40
|
+
interface HTMLCasinoEngagementSuiteContainerElement extends Components.CasinoEngagementSuiteContainer, HTMLStencilElement {
|
|
41
|
+
addEventListener<K extends keyof HTMLCasinoEngagementSuiteContainerElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteContainerElement, ev: CasinoEngagementSuiteContainerCustomEvent<HTMLCasinoEngagementSuiteContainerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
42
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
43
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
44
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
45
|
+
removeEventListener<K extends keyof HTMLCasinoEngagementSuiteContainerElementEventMap>(type: K, listener: (this: HTMLCasinoEngagementSuiteContainerElement, ev: CasinoEngagementSuiteContainerCustomEvent<HTMLCasinoEngagementSuiteContainerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
46
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
47
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
48
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
49
|
+
}
|
|
50
|
+
var HTMLCasinoEngagementSuiteContainerElement: {
|
|
51
|
+
prototype: HTMLCasinoEngagementSuiteContainerElement;
|
|
52
|
+
new (): HTMLCasinoEngagementSuiteContainerElement;
|
|
53
|
+
};
|
|
54
|
+
interface HTMLElementTagNameMap {
|
|
55
|
+
"casino-engagement-suite-container": HTMLCasinoEngagementSuiteContainerElement;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
declare namespace LocalJSX {
|
|
59
|
+
interface CasinoEngagementSuiteContainer {
|
|
60
|
+
/**
|
|
61
|
+
* Client custom styling via string
|
|
62
|
+
*/
|
|
63
|
+
"clientStyling"?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Client custom styling via url
|
|
66
|
+
*/
|
|
67
|
+
"clientStylingUrl"?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Language of the widget
|
|
70
|
+
*/
|
|
71
|
+
"language"?: string;
|
|
72
|
+
"onCloseModal"?: (event: CasinoEngagementSuiteContainerCustomEvent<string>) => void;
|
|
73
|
+
"onOpenModal"?: (event: CasinoEngagementSuiteContainerCustomEvent<OpenModalEvent>) => void;
|
|
74
|
+
}
|
|
75
|
+
interface IntrinsicElements {
|
|
76
|
+
"casino-engagement-suite-container": CasinoEngagementSuiteContainer;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export { LocalJSX as JSX };
|
|
80
|
+
declare module "@stencil/core" {
|
|
81
|
+
export namespace JSX {
|
|
82
|
+
interface IntrinsicElements {
|
|
83
|
+
"casino-engagement-suite-container": LocalJSX.CasinoEngagementSuiteContainer & JSXBase.HTMLAttributes<HTMLCasinoEngagementSuiteContainerElement>;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export interface ChallengeGrantMessage {
|
|
2
|
+
challengeProgressData: Array<Challenge>;
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateJackpotBalanceMessage {
|
|
6
|
+
JackpotId: number;
|
|
7
|
+
Balance: number;
|
|
8
|
+
WinBalance: number;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateJackpotStatusEvent {
|
|
11
|
+
JackpotId: number;
|
|
12
|
+
IsClosed: boolean;
|
|
13
|
+
Reason?: JackpotCloseReasonType;
|
|
14
|
+
JackpotEndTime: string;
|
|
15
|
+
}
|
|
16
|
+
export interface JoinJackpotResultEvent {
|
|
17
|
+
Success: boolean;
|
|
18
|
+
JackpotIds: {
|
|
19
|
+
[key: string]: boolean;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface OpenModalEvent {
|
|
23
|
+
modalType: string;
|
|
24
|
+
rewardMessage?: string;
|
|
25
|
+
hasError?: boolean;
|
|
26
|
+
confirmationData?: Record<string, number>;
|
|
27
|
+
}
|
|
28
|
+
export interface ChallengePresentation {
|
|
29
|
+
Description: string;
|
|
30
|
+
PresentationName: string;
|
|
31
|
+
Url?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Game {
|
|
34
|
+
CasinoGameId: number;
|
|
35
|
+
GameIcon: string;
|
|
36
|
+
GameId: string;
|
|
37
|
+
GameName: string;
|
|
38
|
+
GameSlug: string;
|
|
39
|
+
}
|
|
40
|
+
export interface BetRange {
|
|
41
|
+
MinBet: number;
|
|
42
|
+
MaxBet: number;
|
|
43
|
+
}
|
|
44
|
+
export interface Reward {
|
|
45
|
+
RewardId: number;
|
|
46
|
+
Type: number;
|
|
47
|
+
}
|
|
48
|
+
export declare enum ChallengeLevelProgressStatus {
|
|
49
|
+
Closed = 0,
|
|
50
|
+
InProgress = 1,
|
|
51
|
+
Fillup = 2,
|
|
52
|
+
Completed = 3
|
|
53
|
+
}
|
|
54
|
+
export interface LevelProgress {
|
|
55
|
+
BetRange?: BetRange;
|
|
56
|
+
CurrentBetCount: number;
|
|
57
|
+
CurrentTurnover: number;
|
|
58
|
+
LevelContributionPercent: number;
|
|
59
|
+
LevelId: string;
|
|
60
|
+
LevelTargetType: number;
|
|
61
|
+
OrderNumber: number;
|
|
62
|
+
ProgressPercentage: number;
|
|
63
|
+
ProgressStatus: ChallengeLevelProgressStatus;
|
|
64
|
+
Rewards: Array<Reward>;
|
|
65
|
+
TargetBetCount: number;
|
|
66
|
+
TargetTurnover: number;
|
|
67
|
+
DisplayCurrencyTargetTurnover: number;
|
|
68
|
+
CustomRewardMessage: string;
|
|
69
|
+
}
|
|
70
|
+
export declare enum ChallengeProgressStatus {
|
|
71
|
+
Started = 0,
|
|
72
|
+
InProgress = 1,
|
|
73
|
+
PendingLevelReward = 2,
|
|
74
|
+
Completed = 3,
|
|
75
|
+
Expired = 4,
|
|
76
|
+
Forfeited = 5
|
|
77
|
+
}
|
|
78
|
+
export interface Challenge {
|
|
79
|
+
ChallengePresentation: ChallengePresentation;
|
|
80
|
+
CurrencySymbol: string;
|
|
81
|
+
DomainId: number;
|
|
82
|
+
ExpirationTime: string;
|
|
83
|
+
Games: Array<Game>;
|
|
84
|
+
Id: string;
|
|
85
|
+
ChallengeId: string;
|
|
86
|
+
LevelProgresses: Array<LevelProgress>;
|
|
87
|
+
Status: ChallengeProgressStatus;
|
|
88
|
+
IsNew: boolean;
|
|
89
|
+
}
|
|
90
|
+
export type Tournaments = any;
|
|
91
|
+
export interface ChallengeProgressUpdateMessage {
|
|
92
|
+
ChallengeId: string;
|
|
93
|
+
Status: ChallengeProgressStatus;
|
|
94
|
+
Levels: Array<LevelProgress>;
|
|
95
|
+
}
|
|
96
|
+
export interface FreeSpinsProgressUpdateMessage {
|
|
97
|
+
AwardBonusId: string;
|
|
98
|
+
NumberOfUsedFreeSpins: number;
|
|
99
|
+
VendorFreeSpinsRemainingCost: number;
|
|
100
|
+
}
|
|
101
|
+
type JackpotType = 'mega' | 'major' | 'minor';
|
|
102
|
+
type JackpotTypePresentation = 'Progressive' | 'ExternalRNG' | 'Static';
|
|
103
|
+
type JackpotCloseReasonType = 'Closed' | 'Suspended';
|
|
104
|
+
export interface GameUserInterfacePresentation {
|
|
105
|
+
GameId: string;
|
|
106
|
+
GameName: string;
|
|
107
|
+
GameIcon: string;
|
|
108
|
+
GameSlug: string;
|
|
109
|
+
CasinoGameId: number;
|
|
110
|
+
}
|
|
111
|
+
interface BetLimits {
|
|
112
|
+
MinBet: number;
|
|
113
|
+
MaxBet: number;
|
|
114
|
+
MaxContributionAmount: number;
|
|
115
|
+
}
|
|
116
|
+
export interface Jackpot {
|
|
117
|
+
JackpotId: number;
|
|
118
|
+
Type: JackpotType;
|
|
119
|
+
Balance: number;
|
|
120
|
+
WinBalance?: number;
|
|
121
|
+
Enabled: boolean;
|
|
122
|
+
ContributionPercent: number;
|
|
123
|
+
PlayerContributionPercent: number;
|
|
124
|
+
OperatorContributionPercent: number;
|
|
125
|
+
JackpotTypePresentation: JackpotTypePresentation;
|
|
126
|
+
JackpotRulesUrl?: string;
|
|
127
|
+
BetLimits: {
|
|
128
|
+
[key: string]: BetLimits;
|
|
129
|
+
} | null;
|
|
130
|
+
Currency: string;
|
|
131
|
+
Description?: string;
|
|
132
|
+
Probability: number;
|
|
133
|
+
JackpotEndTime: string;
|
|
134
|
+
IsClosed: boolean;
|
|
135
|
+
GamesInfo: Array<Game>;
|
|
136
|
+
Reason?: JackpotCloseReasonType;
|
|
137
|
+
Pending?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface VendorFreeSpins {
|
|
140
|
+
GamesInfo: Array<Game>;
|
|
141
|
+
VendorName: string;
|
|
142
|
+
ExpiryDate: string;
|
|
143
|
+
BetValue: number;
|
|
144
|
+
NumberOfFreeSpins: number;
|
|
145
|
+
NumberOfUsedFreeSpins: number;
|
|
146
|
+
VendorFreeSpinsCost: number;
|
|
147
|
+
Currency: string;
|
|
148
|
+
CurrencySymbol: string;
|
|
149
|
+
VendorFreeSpinsRemainingCost: number;
|
|
150
|
+
FreeSpinRulesUrl: string;
|
|
151
|
+
IsForfeited: boolean;
|
|
152
|
+
FreeSpinCampaignPresentation: ChallengePresentation;
|
|
153
|
+
Id: string;
|
|
154
|
+
AwardBonusId: string;
|
|
155
|
+
}
|
|
156
|
+
export interface CasinoEngagementSuiteConfig {
|
|
157
|
+
challenges?: Array<Challenge>;
|
|
158
|
+
leaderboards?: Tournaments;
|
|
159
|
+
jackpots?: Array<Jackpot>;
|
|
160
|
+
freeSpins?: Array<VendorFreeSpins>;
|
|
161
|
+
slug?: string;
|
|
162
|
+
}
|
|
163
|
+
export {};
|