@opexa/portal-sdk 0.59.0 → 0.59.2
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.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1620,6 +1620,7 @@ interface Promo {
|
|
|
1620
1620
|
minimumBonusAmount?: number;
|
|
1621
1621
|
maximumBonusAmount?: number;
|
|
1622
1622
|
minimumDepositAmount?: number;
|
|
1623
|
+
depositBonusAmountPercentage?: number;
|
|
1623
1624
|
turnoverRequirementContributionPercentagePerGameProvider?: JSON;
|
|
1624
1625
|
maximumDepositAmount?: number;
|
|
1625
1626
|
activationStartDateTime: Date;
|
package/dist/index.d.ts
CHANGED
|
@@ -1620,6 +1620,7 @@ interface Promo {
|
|
|
1620
1620
|
minimumBonusAmount?: number;
|
|
1621
1621
|
maximumBonusAmount?: number;
|
|
1622
1622
|
minimumDepositAmount?: number;
|
|
1623
|
+
depositBonusAmountPercentage?: number;
|
|
1623
1624
|
turnoverRequirementContributionPercentagePerGameProvider?: JSON;
|
|
1624
1625
|
maximumDepositAmount?: number;
|
|
1625
1626
|
activationStartDateTime: Date;
|
package/dist/index.js
CHANGED
|
@@ -1400,6 +1400,7 @@ var PROMO_FRAGMENT = gql`
|
|
|
1400
1400
|
minimumBonusAmount
|
|
1401
1401
|
maximumDepositAmount
|
|
1402
1402
|
minimumDepositAmount
|
|
1403
|
+
depositBonusAmountPercentage
|
|
1403
1404
|
activationStartDateTime
|
|
1404
1405
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
1405
1406
|
activationEndDateTime
|
|
@@ -8386,6 +8387,9 @@ var Transformer = class {
|
|
|
8386
8387
|
minimumBonusAmount: parseDecimal(data.minimumBonusAmount),
|
|
8387
8388
|
maximumDepositAmount: parseDecimal(data.maximumDepositAmount),
|
|
8388
8389
|
minimumDepositAmount: parseDecimal(data.minimumDepositAmount),
|
|
8390
|
+
depositBonusAmountPercentage: parseDecimal(
|
|
8391
|
+
data.depositBonusAmountPercentage
|
|
8392
|
+
),
|
|
8389
8393
|
turnoverRequirementContributionPercentagePerGameProvider: data.turnoverRequirementContributionPercentagePerGameProvider,
|
|
8390
8394
|
activationEndDateTime: new Date(data.activationEndDateTime),
|
|
8391
8395
|
activationStartDateTime: new Date(data.activationStartDateTime),
|
|
@@ -9059,7 +9063,10 @@ var Sdk = class {
|
|
|
9059
9063
|
const hostname = window.location.hostname;
|
|
9060
9064
|
const market = searchParams.get("market");
|
|
9061
9065
|
const marketPattern = /^[a-zA-Z0-9]{3,10}(-[a-zA-Z0-9]{3,10}){0,2}$/;
|
|
9062
|
-
|
|
9066
|
+
const adClickId = this.adManager.clickId;
|
|
9067
|
+
if (adClickId) {
|
|
9068
|
+
sessionStorage.setItem("domain", "happybingo.ph/meta-ads");
|
|
9069
|
+
} else if (market && marketPattern.test(market)) {
|
|
9063
9070
|
sessionStorage.setItem("domain", `${hostname}/${market}`);
|
|
9064
9071
|
} else if (sessionStorage.getItem("domain") == null) {
|
|
9065
9072
|
sessionStorage.setItem("domain", hostname);
|