@opexa/portal-sdk 0.0.145 → 0.0.147
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/README.md +1624 -1624
- package/dist/index.js +58 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +413 -311
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +3 -1
- package/dist/sdk/transformer.d.ts +2 -0
- package/dist/sdk/types.d.ts +25 -0
- package/dist/services/cms-portal.service.d.ts +2 -1
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/trigger.service.d.ts +2 -1
- package/dist/services/types.d.ts +40 -1
- package/package.json +81 -81
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Ye = Object.defineProperty;
|
|
2
2
|
var Qe = (o, e, t) => e in o ? Ye(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var d = (o, e, t) => Qe(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as Y } from "@opexa/object-id";
|
|
5
5
|
import { ObjectId as Or } from "@opexa/object-id";
|
|
6
6
|
const Q = {
|
|
@@ -12,7 +12,7 @@ const Q = {
|
|
|
12
12
|
Game: 203,
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
|
-
},
|
|
15
|
+
}, C = "google-recaptcha-response";
|
|
16
16
|
function i(o, ...e) {
|
|
17
17
|
let t = "";
|
|
18
18
|
for (const [r, a] of o.entries()) {
|
|
@@ -107,7 +107,7 @@ const Me = i`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`, Ue = {
|
|
111
111
|
current: i`
|
|
112
112
|
query GameSession($id: ObjectId!) {
|
|
113
113
|
node(id: $id) {
|
|
@@ -388,11 +388,11 @@ const Me = i`
|
|
|
388
388
|
name
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
`,
|
|
391
|
+
`, ut = i`
|
|
392
392
|
query RemainingDailyWithdrawalsCount {
|
|
393
393
|
remainingDailyWithdrawalsCount
|
|
394
394
|
}
|
|
395
|
-
`,
|
|
395
|
+
`, ct = i`
|
|
396
396
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
397
397
|
member {
|
|
398
398
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -421,7 +421,7 @@ const Me = i`
|
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
`,
|
|
424
|
+
`, dt = i`
|
|
425
425
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
426
426
|
createGCashDeposit(input: $input) {
|
|
427
427
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -703,7 +703,7 @@ const Me = i`
|
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
`,
|
|
706
|
+
`, Ie = i`
|
|
707
707
|
${Me}
|
|
708
708
|
|
|
709
709
|
fragment PromoFragment on Promo {
|
|
@@ -724,23 +724,23 @@ const Me = i`
|
|
|
724
724
|
dateTimeCreated
|
|
725
725
|
dateTimeLastUpdated
|
|
726
726
|
}
|
|
727
|
-
`,
|
|
728
|
-
${
|
|
727
|
+
`, St = i`
|
|
728
|
+
${Ie}
|
|
729
729
|
|
|
730
730
|
query Promos {
|
|
731
731
|
promos {
|
|
732
732
|
...PromoFragment
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
`,
|
|
736
|
-
${
|
|
735
|
+
`, Ct = i`
|
|
736
|
+
${Ie}
|
|
737
737
|
|
|
738
738
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
739
739
|
availablePromos(filter: $filter) {
|
|
740
740
|
...PromoFragment
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
`,
|
|
743
|
+
`, bt = i`
|
|
744
744
|
fragment SpotBonusFragment on SpotBonusPromo {
|
|
745
745
|
id
|
|
746
746
|
name
|
|
@@ -781,7 +781,7 @@ const Me = i`
|
|
|
781
781
|
maximumBonusesCountLimit
|
|
782
782
|
}
|
|
783
783
|
`, kt = i`
|
|
784
|
-
${
|
|
784
|
+
${bt}
|
|
785
785
|
|
|
786
786
|
query PromoByCode($code: String!) {
|
|
787
787
|
promoByCode(code: $code) {
|
|
@@ -816,7 +816,7 @@ const Me = i`
|
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
818
|
`, _t = i`
|
|
819
|
-
${
|
|
819
|
+
${Ie}
|
|
820
820
|
|
|
821
821
|
query Bonus {
|
|
822
822
|
bonus {
|
|
@@ -845,7 +845,7 @@ const Me = i`
|
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
847
|
`, Rt = i`
|
|
848
|
-
${
|
|
848
|
+
${Ie}
|
|
849
849
|
|
|
850
850
|
query Bonuses {
|
|
851
851
|
bonuses {
|
|
@@ -904,7 +904,7 @@ i`
|
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
`;
|
|
907
|
-
const
|
|
907
|
+
const It = i`
|
|
908
908
|
query MemberAccount {
|
|
909
909
|
memberAccount: self {
|
|
910
910
|
... on MemberAccount {
|
|
@@ -928,7 +928,7 @@ const Nt = i`
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
`,
|
|
931
|
+
`, Nt = i`
|
|
932
932
|
${Me}
|
|
933
933
|
|
|
934
934
|
query MemberVerification {
|
|
@@ -953,7 +953,7 @@ const Nt = i`
|
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
`,
|
|
956
|
+
`, Pt = i`
|
|
957
957
|
mutation RegisterMemberAccount(
|
|
958
958
|
$input: RegisterMemberAccountInput!
|
|
959
959
|
$referralCode: String
|
|
@@ -992,7 +992,7 @@ const Nt = i`
|
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
`,
|
|
995
|
+
`, Gt = i`
|
|
996
996
|
mutation RegisterMemberAccountViaMobile(
|
|
997
997
|
$input: RegisterMemberAccountViaMobileInput!
|
|
998
998
|
$referralCode: String
|
|
@@ -1022,7 +1022,7 @@ const Nt = i`
|
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
`,
|
|
1025
|
+
`, vt = i`
|
|
1026
1026
|
mutation RegisterMemberAccount(
|
|
1027
1027
|
$input: RegisterMemberAccountInput_next!
|
|
1028
1028
|
$reCAPTCHAResponse: String
|
|
@@ -1054,7 +1054,7 @@ const Nt = i`
|
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
`,
|
|
1057
|
+
`, Bt = i`
|
|
1058
1058
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
1059
1059
|
registerMayaMemberAccount(input: $input) {
|
|
1060
1060
|
... on AccountNameNotAvailableError {
|
|
@@ -1062,7 +1062,7 @@ const Nt = i`
|
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
`,
|
|
1065
|
+
`, Ot = i`
|
|
1066
1066
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
1067
1067
|
updateMemberAccount(input: $input) {
|
|
1068
1068
|
... on AccountNameNotAvailableError {
|
|
@@ -1103,7 +1103,7 @@ const Nt = i`
|
|
|
1103
1103
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
1104
1104
|
deleteMemberAccount(input: $input)
|
|
1105
1105
|
}
|
|
1106
|
-
`,
|
|
1106
|
+
`, qt = i`
|
|
1107
1107
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
1108
1108
|
verifyMobileNumber(input: $input) {
|
|
1109
1109
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -1114,7 +1114,7 @@ const Nt = i`
|
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
`,
|
|
1117
|
+
`, Ut = i`
|
|
1118
1118
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
1119
1119
|
createMemberVerification(input: $input) {
|
|
1120
1120
|
... on FileDoesNotExistError {
|
|
@@ -1346,7 +1346,7 @@ const Nt = i`
|
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
`,
|
|
1349
|
+
`, ve = i`
|
|
1350
1350
|
fragment ReferralFragment on Referral {
|
|
1351
1351
|
id
|
|
1352
1352
|
upline {
|
|
@@ -1385,7 +1385,7 @@ const Nt = i`
|
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
|
-
${
|
|
1388
|
+
${ve}
|
|
1389
1389
|
`, Zt = i`
|
|
1390
1390
|
query UplinesByName($search: String!, $first: Int) {
|
|
1391
1391
|
uplinesByName(search: $search, first: $first) {
|
|
@@ -1393,7 +1393,7 @@ const Nt = i`
|
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
|
-
${
|
|
1396
|
+
${ve}
|
|
1397
1397
|
`, er = i`
|
|
1398
1398
|
query DownlinesByName($search: String!, $first: Int) {
|
|
1399
1399
|
downlinesByName(search: $search, first: $first) {
|
|
@@ -1401,7 +1401,7 @@ const Nt = i`
|
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
|
-
${
|
|
1404
|
+
${ve}
|
|
1405
1405
|
`, tr = i`
|
|
1406
1406
|
query ReferralCommission {
|
|
1407
1407
|
member {
|
|
@@ -1496,18 +1496,39 @@ const Nt = i`
|
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
`,
|
|
1499
|
+
`, ur = i`
|
|
1500
1500
|
query OnboardingStatus {
|
|
1501
1501
|
onboardingStatus
|
|
1502
1502
|
}
|
|
1503
|
-
`,
|
|
1503
|
+
`, cr = i`
|
|
1504
1504
|
mutation CompleteOnboarding($input: CompleteOnboardingInput!) {
|
|
1505
1505
|
completeOnboarding(input: $input)
|
|
1506
1506
|
}
|
|
1507
|
-
`,
|
|
1507
|
+
`, dr = i`
|
|
1508
1508
|
mutation SkipOnboarding {
|
|
1509
1509
|
skipOnboarding
|
|
1510
1510
|
}
|
|
1511
|
+
`, lr = i`
|
|
1512
|
+
query AvailableQuests {
|
|
1513
|
+
availableQuests {
|
|
1514
|
+
id
|
|
1515
|
+
name
|
|
1516
|
+
description
|
|
1517
|
+
program {
|
|
1518
|
+
id
|
|
1519
|
+
type
|
|
1520
|
+
name
|
|
1521
|
+
description
|
|
1522
|
+
totalBonus
|
|
1523
|
+
status
|
|
1524
|
+
}
|
|
1525
|
+
status
|
|
1526
|
+
progressPercentage
|
|
1527
|
+
bonus
|
|
1528
|
+
endDateTime
|
|
1529
|
+
dateTimeCreated
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1511
1532
|
`;
|
|
1512
1533
|
function l(o) {
|
|
1513
1534
|
return {
|
|
@@ -1571,24 +1592,24 @@ function l(o) {
|
|
|
1571
1592
|
}[o]
|
|
1572
1593
|
};
|
|
1573
1594
|
}
|
|
1574
|
-
class
|
|
1595
|
+
class pr {
|
|
1575
1596
|
constructor(e) {
|
|
1576
|
-
|
|
1597
|
+
d(this, "client");
|
|
1577
1598
|
this.client = e;
|
|
1578
1599
|
}
|
|
1579
1600
|
/** aka `Query.self` */
|
|
1580
1601
|
async memberAccount() {
|
|
1581
|
-
const e = await this.client.request(
|
|
1602
|
+
const e = await this.client.request(It);
|
|
1582
1603
|
return e.ok ? {
|
|
1583
1604
|
ok: !0,
|
|
1584
1605
|
data: e.data.memberAccount
|
|
1585
1606
|
} : e;
|
|
1586
1607
|
}
|
|
1587
1608
|
async registerMemberAccount(e) {
|
|
1588
|
-
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(
|
|
1609
|
+
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(Pt, r, {
|
|
1589
1610
|
headers: {
|
|
1590
1611
|
...t && {
|
|
1591
|
-
[
|
|
1612
|
+
[C]: t
|
|
1592
1613
|
}
|
|
1593
1614
|
}
|
|
1594
1615
|
});
|
|
@@ -1600,10 +1621,10 @@ class lr {
|
|
|
1600
1621
|
} : a;
|
|
1601
1622
|
}
|
|
1602
1623
|
async registerMemberAccountViaMobile(e) {
|
|
1603
|
-
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(
|
|
1624
|
+
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(Gt, r, {
|
|
1604
1625
|
headers: {
|
|
1605
1626
|
...t && {
|
|
1606
|
-
[
|
|
1627
|
+
[C]: t
|
|
1607
1628
|
}
|
|
1608
1629
|
}
|
|
1609
1630
|
});
|
|
@@ -1615,10 +1636,10 @@ class lr {
|
|
|
1615
1636
|
} : a;
|
|
1616
1637
|
}
|
|
1617
1638
|
async registerMemberAccount__next(e) {
|
|
1618
|
-
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(
|
|
1639
|
+
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(vt, r, {
|
|
1619
1640
|
headers: {
|
|
1620
1641
|
...t && {
|
|
1621
|
-
[
|
|
1642
|
+
[C]: t
|
|
1622
1643
|
}
|
|
1623
1644
|
}
|
|
1624
1645
|
});
|
|
@@ -1630,7 +1651,7 @@ class lr {
|
|
|
1630
1651
|
} : a;
|
|
1631
1652
|
}
|
|
1632
1653
|
async updateMemberAccount(e) {
|
|
1633
|
-
const t = await this.client.request(
|
|
1654
|
+
const t = await this.client.request(Ot, e);
|
|
1634
1655
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1635
1656
|
ok: !1,
|
|
1636
1657
|
error: l(t.data.updateMemberAccount.__typename)
|
|
@@ -1684,7 +1705,7 @@ class lr {
|
|
|
1684
1705
|
return await this.client.request(Yt);
|
|
1685
1706
|
}
|
|
1686
1707
|
async verifyMobileNumber(e) {
|
|
1687
|
-
const t = await this.client.request(
|
|
1708
|
+
const t = await this.client.request(qt, e);
|
|
1688
1709
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1689
1710
|
ok: !1,
|
|
1690
1711
|
error: l(t.data.verifyMobileNumber.__typename)
|
|
@@ -1693,7 +1714,7 @@ class lr {
|
|
|
1693
1714
|
} : t;
|
|
1694
1715
|
}
|
|
1695
1716
|
async createMemberVerification(e) {
|
|
1696
|
-
const t = await this.client.request(
|
|
1717
|
+
const t = await this.client.request(Ut, e);
|
|
1697
1718
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1698
1719
|
ok: !1,
|
|
1699
1720
|
error: l(t.data.createMemberVerification.__typename)
|
|
@@ -1711,7 +1732,7 @@ class lr {
|
|
|
1711
1732
|
} : t;
|
|
1712
1733
|
}
|
|
1713
1734
|
async memberVerification() {
|
|
1714
|
-
const e = await this.client.request(
|
|
1735
|
+
const e = await this.client.request(Nt);
|
|
1715
1736
|
return e.ok ? {
|
|
1716
1737
|
ok: !0,
|
|
1717
1738
|
data: e.data.memberAccount.verification
|
|
@@ -1728,7 +1749,7 @@ class lr {
|
|
|
1728
1749
|
} : t;
|
|
1729
1750
|
}
|
|
1730
1751
|
async registerMayaMemberAccount(e) {
|
|
1731
|
-
const t = await this.client.request(
|
|
1752
|
+
const t = await this.client.request(Bt, e);
|
|
1732
1753
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1733
1754
|
ok: !1,
|
|
1734
1755
|
error: l(t.data.registerMayaMemberAccount.__typename)
|
|
@@ -1757,14 +1778,14 @@ class lr {
|
|
|
1757
1778
|
return e.ok ? { ok: !0, data: e.data.pointsClubSettings } : e;
|
|
1758
1779
|
}
|
|
1759
1780
|
}
|
|
1760
|
-
function
|
|
1761
|
-
const t =
|
|
1781
|
+
function g(o, e) {
|
|
1782
|
+
const t = Ne[o] ? Ne[o] : Ne[500];
|
|
1762
1783
|
return {
|
|
1763
1784
|
name: t.name,
|
|
1764
1785
|
message: e ?? t.message
|
|
1765
1786
|
};
|
|
1766
1787
|
}
|
|
1767
|
-
const
|
|
1788
|
+
const Ne = {
|
|
1768
1789
|
400: { name: "HttpBadRequest", message: "Bad Request" },
|
|
1769
1790
|
401: { name: "HttpUnauthorized", message: "Unauthorized" },
|
|
1770
1791
|
403: { name: "HttpForbidden", message: "Forbidden" },
|
|
@@ -1773,10 +1794,10 @@ const Ie = {
|
|
|
1773
1794
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1774
1795
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1775
1796
|
};
|
|
1776
|
-
class
|
|
1797
|
+
class fr {
|
|
1777
1798
|
constructor(e) {
|
|
1778
|
-
|
|
1779
|
-
|
|
1799
|
+
d(this, "url");
|
|
1800
|
+
d(this, "options");
|
|
1780
1801
|
this.url = e.url, this.options = e.fetchOptions ?? {};
|
|
1781
1802
|
}
|
|
1782
1803
|
get headers() {
|
|
@@ -1793,7 +1814,7 @@ class pr {
|
|
|
1793
1814
|
const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
|
|
1794
1815
|
console.log(`MobileNumberOTP ${a}`), t.set("Authorization", `MobileNumberOTP ${a}`);
|
|
1795
1816
|
}
|
|
1796
|
-
e.type === "MAYA" && t.set("Authorization", `MayaSession ${e.sessionId}`), e.type === "SOCIALS" && t.set("Authorization", `Token ${e.token}`), e.type === "CABINET" && t.set("Authorization", `OPEXA-CABINET-TOKEN ${e.token}`), e.reCAPTCHAResponse && t.set(
|
|
1817
|
+
e.type === "MAYA" && t.set("Authorization", `MayaSession ${e.sessionId}`), e.type === "SOCIALS" && t.set("Authorization", `Token ${e.token}`), e.type === "CABINET" && t.set("Authorization", `OPEXA-CABINET-TOKEN ${e.token}`), e.reCAPTCHAResponse && t.set(C, e.reCAPTCHAResponse);
|
|
1797
1818
|
try {
|
|
1798
1819
|
const r = await fetch(`${this.url}/sessions`, {
|
|
1799
1820
|
method: "POST",
|
|
@@ -1813,12 +1834,12 @@ class pr {
|
|
|
1813
1834
|
error: l("InvalidReCAPTCHAResponseError")
|
|
1814
1835
|
} : {
|
|
1815
1836
|
ok: !1,
|
|
1816
|
-
error:
|
|
1837
|
+
error: g(r.status)
|
|
1817
1838
|
};
|
|
1818
1839
|
} catch {
|
|
1819
1840
|
return {
|
|
1820
1841
|
ok: !1,
|
|
1821
|
-
error:
|
|
1842
|
+
error: g(500)
|
|
1822
1843
|
};
|
|
1823
1844
|
}
|
|
1824
1845
|
}
|
|
@@ -1842,12 +1863,12 @@ class pr {
|
|
|
1842
1863
|
error: l("InvalidTokenOrSecretAnswerError")
|
|
1843
1864
|
} : {
|
|
1844
1865
|
ok: !1,
|
|
1845
|
-
error:
|
|
1866
|
+
error: g(r.status)
|
|
1846
1867
|
};
|
|
1847
1868
|
} catch {
|
|
1848
1869
|
return {
|
|
1849
1870
|
ok: !1,
|
|
1850
|
-
error:
|
|
1871
|
+
error: g(500)
|
|
1851
1872
|
};
|
|
1852
1873
|
}
|
|
1853
1874
|
}
|
|
@@ -1875,12 +1896,12 @@ class pr {
|
|
|
1875
1896
|
error: l("InvalidTokenError")
|
|
1876
1897
|
} : {
|
|
1877
1898
|
ok: !1,
|
|
1878
|
-
error:
|
|
1899
|
+
error: g(r.status)
|
|
1879
1900
|
};
|
|
1880
1901
|
} catch {
|
|
1881
1902
|
return {
|
|
1882
1903
|
ok: !1,
|
|
1883
|
-
error:
|
|
1904
|
+
error: g(500)
|
|
1884
1905
|
};
|
|
1885
1906
|
}
|
|
1886
1907
|
}
|
|
@@ -1892,9 +1913,9 @@ class pr {
|
|
|
1892
1913
|
method: "DELETE",
|
|
1893
1914
|
headers: t
|
|
1894
1915
|
});
|
|
1895
|
-
return r.ok ? { ok: !0 } : { ok: !1, error:
|
|
1916
|
+
return r.ok ? { ok: !0 } : { ok: !1, error: g(r.status) };
|
|
1896
1917
|
} catch {
|
|
1897
|
-
return { ok: !1, error:
|
|
1918
|
+
return { ok: !1, error: g(500) };
|
|
1898
1919
|
}
|
|
1899
1920
|
}
|
|
1900
1921
|
async verifySession(e) {
|
|
@@ -1936,52 +1957,78 @@ class pr {
|
|
|
1936
1957
|
error: l(m)
|
|
1937
1958
|
} : {
|
|
1938
1959
|
ok: !1,
|
|
1939
|
-
error:
|
|
1960
|
+
error: g(r.status, a.message)
|
|
1940
1961
|
};
|
|
1941
1962
|
}
|
|
1942
1963
|
return r.ok ? { ok: !0 } : {
|
|
1943
1964
|
ok: !1,
|
|
1944
|
-
error:
|
|
1965
|
+
error: g(r.status)
|
|
1945
1966
|
};
|
|
1946
1967
|
} catch {
|
|
1947
1968
|
return {
|
|
1948
1969
|
ok: !1,
|
|
1949
|
-
error:
|
|
1970
|
+
error: g(500)
|
|
1950
1971
|
};
|
|
1951
1972
|
}
|
|
1952
1973
|
}
|
|
1953
1974
|
}
|
|
1954
|
-
class
|
|
1975
|
+
class wr {
|
|
1955
1976
|
constructor(e) {
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1977
|
+
d(this, "url");
|
|
1978
|
+
d(this, "siteId");
|
|
1979
|
+
d(this, "platformId");
|
|
1959
1980
|
this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
|
|
1960
1981
|
}
|
|
1961
1982
|
async self() {
|
|
1962
|
-
const e = await this.getJson(`/sites/${this.siteId}`);
|
|
1983
|
+
const e = await this.getJson(`/v1/sites/${this.siteId}`);
|
|
1963
1984
|
return e.ok ? {
|
|
1964
1985
|
ok: !0,
|
|
1965
1986
|
data: e.data.data
|
|
1966
1987
|
} : e;
|
|
1967
1988
|
}
|
|
1968
1989
|
async games(e) {
|
|
1969
|
-
var a, m, s,
|
|
1990
|
+
var a, m, s, u, c, p, w, f, b, k, T, _, R, D, y, M, I, A, N, P, G, v, E, B, x, W, q, U, $, L, F, H;
|
|
1970
1991
|
const t = new URLSearchParams();
|
|
1971
|
-
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (m = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && m.equal && t.set("filter[type][eq]", e.filter.type.equal), (
|
|
1992
|
+
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (m = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && m.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (s = e == null ? void 0 : e.filter) == null ? void 0 : s.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (b = e == null ? void 0 : e.filter) == null ? void 0 : b.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (_ = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && _.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (D = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.provider) != null && D.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (P = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && P.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (v = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && v.in && t.set(
|
|
1972
1993
|
"filter[tags][in]",
|
|
1973
|
-
e.filter.tags.in.map((
|
|
1974
|
-
), (B = (
|
|
1994
|
+
e.filter.tags.in.map((h) => h.toLowerCase()).join(",")
|
|
1995
|
+
), (B = (E = e == null ? void 0 : e.filter) == null ? void 0 : E.tags) != null && B.notIn && t.set(
|
|
1975
1996
|
"filter[tags][nin]",
|
|
1976
|
-
e.filter.tags.notIn.map((
|
|
1977
|
-
), (
|
|
1978
|
-
const r = await this.getJson("/games", t);
|
|
1997
|
+
e.filter.tags.notIn.map((h) => h.toLowerCase()).join(",")
|
|
1998
|
+
), (W = (x = e == null ? void 0 : e.filter) == null ? void 0 : x.reference) != null && W.equal && t.set("filter[reference][eq]", e.filter.reference.equal), (U = (q = e == null ? void 0 : e.filter) == null ? void 0 : q.reference) != null && U.notEqual && t.set("filter[reference][neq]", e.filter.reference.notEqual), (L = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.reference) != null && L.in && t.set("filter[reference][in]", e.filter.reference.in.join(",")), (H = (F = e == null ? void 0 : e.filter) == null ? void 0 : F.reference) != null && H.notIn && t.set("filter[reference][nin]", e.filter.reference.notIn.join(",")), e != null && e.sort && t.set("sort[order]", e.sort);
|
|
1999
|
+
const r = await this.getJson("/v1/games", t);
|
|
1979
2000
|
return r.ok ? {
|
|
1980
2001
|
ok: !0,
|
|
1981
2002
|
data: {
|
|
1982
|
-
edges: r.data.data.map((
|
|
1983
|
-
node:
|
|
1984
|
-
cursor:
|
|
2003
|
+
edges: r.data.data.map((h) => ({
|
|
2004
|
+
node: h,
|
|
2005
|
+
cursor: h.cursor
|
|
2006
|
+
})),
|
|
2007
|
+
totalCount: r.data.totalCount ?? 0,
|
|
2008
|
+
pageInfo: {
|
|
2009
|
+
hasNextPage: !!r.data.next,
|
|
2010
|
+
endCursor: r.data.next
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
} : r;
|
|
2014
|
+
}
|
|
2015
|
+
async games__next(e) {
|
|
2016
|
+
var a, m, s, u, c, p, w, f, b, k, T, _, R, D, y, M, I, A, N, P, G, v, E, B, x, W, q, U, $, L, F, H;
|
|
2017
|
+
const t = new URLSearchParams();
|
|
2018
|
+
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (m = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && m.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (s = e == null ? void 0 : e.filter) == null ? void 0 : s.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (b = e == null ? void 0 : e.filter) == null ? void 0 : b.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (_ = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && _.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (D = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.provider) != null && D.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (P = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && P.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (v = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && v.in && t.set(
|
|
2019
|
+
"filter[tags][in]",
|
|
2020
|
+
e.filter.tags.in.map((h) => h.toLowerCase()).join(",")
|
|
2021
|
+
), (B = (E = e == null ? void 0 : e.filter) == null ? void 0 : E.tags) != null && B.notIn && t.set(
|
|
2022
|
+
"filter[tags][nin]",
|
|
2023
|
+
e.filter.tags.notIn.map((h) => h.toLowerCase()).join(",")
|
|
2024
|
+
), (W = (x = e == null ? void 0 : e.filter) == null ? void 0 : x.reference) != null && W.equal && t.set("filter[reference][eq]", e.filter.reference.equal), (U = (q = e == null ? void 0 : e.filter) == null ? void 0 : q.reference) != null && U.notEqual && t.set("filter[reference][neq]", e.filter.reference.notEqual), (L = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.reference) != null && L.in && t.set("filter[reference][in]", e.filter.reference.in.join(",")), (H = (F = e == null ? void 0 : e.filter) == null ? void 0 : F.reference) != null && H.notIn && t.set("filter[reference][nin]", e.filter.reference.notIn.join(",")), e != null && e.sort && (t.set("sort[order]", e.sort.order), t.set("sort[context]", e.sort.context.toLowerCase()));
|
|
2025
|
+
const r = await this.getJson("/v2/games", t);
|
|
2026
|
+
return r.ok ? {
|
|
2027
|
+
ok: !0,
|
|
2028
|
+
data: {
|
|
2029
|
+
edges: r.data.data.map((h) => ({
|
|
2030
|
+
node: h,
|
|
2031
|
+
cursor: h.cursor
|
|
1985
2032
|
})),
|
|
1986
2033
|
totalCount: r.data.totalCount ?? 0,
|
|
1987
2034
|
pageInfo: {
|
|
@@ -1993,7 +2040,7 @@ class fr {
|
|
|
1993
2040
|
}
|
|
1994
2041
|
async game(e) {
|
|
1995
2042
|
var r;
|
|
1996
|
-
const t = await this.getJson(`/games/${e}`);
|
|
2043
|
+
const t = await this.getJson(`/v1/games/${e}`);
|
|
1997
2044
|
return ((r = t.error) == null ? void 0 : r.name) === "HttpNotFound" ? {
|
|
1998
2045
|
ok: !0,
|
|
1999
2046
|
data: null
|
|
@@ -2019,19 +2066,19 @@ class fr {
|
|
|
2019
2066
|
data: await a.json()
|
|
2020
2067
|
} : {
|
|
2021
2068
|
ok: !1,
|
|
2022
|
-
error:
|
|
2069
|
+
error: g(a.status)
|
|
2023
2070
|
};
|
|
2024
2071
|
} catch {
|
|
2025
2072
|
return {
|
|
2026
2073
|
ok: !1,
|
|
2027
|
-
error:
|
|
2074
|
+
error: g(500)
|
|
2028
2075
|
};
|
|
2029
2076
|
}
|
|
2030
2077
|
}
|
|
2031
2078
|
}
|
|
2032
|
-
class
|
|
2079
|
+
class yr {
|
|
2033
2080
|
constructor(e) {
|
|
2034
|
-
|
|
2081
|
+
d(this, "client");
|
|
2035
2082
|
this.client = e;
|
|
2036
2083
|
}
|
|
2037
2084
|
async file(e) {
|
|
@@ -2051,14 +2098,14 @@ class wr {
|
|
|
2051
2098
|
} : t;
|
|
2052
2099
|
}
|
|
2053
2100
|
}
|
|
2054
|
-
class
|
|
2101
|
+
class hr {
|
|
2055
2102
|
constructor(e) {
|
|
2056
|
-
|
|
2103
|
+
d(this, "client");
|
|
2057
2104
|
this.client = e;
|
|
2058
2105
|
}
|
|
2059
2106
|
async gameSession(e) {
|
|
2060
2107
|
const t = await this.client.request(
|
|
2061
|
-
|
|
2108
|
+
Ue.legacy,
|
|
2062
2109
|
e
|
|
2063
2110
|
);
|
|
2064
2111
|
return t.ok ? {
|
|
@@ -2088,9 +2135,9 @@ class yr {
|
|
|
2088
2135
|
} : t;
|
|
2089
2136
|
}
|
|
2090
2137
|
}
|
|
2091
|
-
class
|
|
2138
|
+
class gr {
|
|
2092
2139
|
constructor(e) {
|
|
2093
|
-
|
|
2140
|
+
d(this, "client");
|
|
2094
2141
|
this.client = e;
|
|
2095
2142
|
}
|
|
2096
2143
|
async latestBetRecords() {
|
|
@@ -2115,11 +2162,11 @@ class hr {
|
|
|
2115
2162
|
} : e;
|
|
2116
2163
|
}
|
|
2117
2164
|
async onboardingStatus() {
|
|
2118
|
-
const e = await this.client.request(
|
|
2165
|
+
const e = await this.client.request(ur);
|
|
2119
2166
|
return e.ok ? { ok: e.ok, data: e.data.onboardingStatus ?? [] } : e;
|
|
2120
2167
|
}
|
|
2121
2168
|
async completeOnboarding(e) {
|
|
2122
|
-
const t = await this.client.request(
|
|
2169
|
+
const t = await this.client.request(cr, e);
|
|
2123
2170
|
return t.ok ? t.data.completeOnboarding ? {
|
|
2124
2171
|
ok: !0
|
|
2125
2172
|
} : {
|
|
@@ -2131,7 +2178,7 @@ class hr {
|
|
|
2131
2178
|
} : t;
|
|
2132
2179
|
}
|
|
2133
2180
|
async skipOnboarding() {
|
|
2134
|
-
const e = await this.client.request(
|
|
2181
|
+
const e = await this.client.request(dr);
|
|
2135
2182
|
return e.ok ? e.data.skipOnboarding ? {
|
|
2136
2183
|
ok: !0
|
|
2137
2184
|
} : {
|
|
@@ -2143,9 +2190,9 @@ class hr {
|
|
|
2143
2190
|
} : e;
|
|
2144
2191
|
}
|
|
2145
2192
|
}
|
|
2146
|
-
class
|
|
2193
|
+
class Ar {
|
|
2147
2194
|
constructor(e) {
|
|
2148
|
-
|
|
2195
|
+
d(this, "client");
|
|
2149
2196
|
this.client = e;
|
|
2150
2197
|
}
|
|
2151
2198
|
async betRecords(e) {
|
|
@@ -2168,7 +2215,7 @@ class gr {
|
|
|
2168
2215
|
}
|
|
2169
2216
|
async depositRecords(e) {
|
|
2170
2217
|
const t = await this.client.request(
|
|
2171
|
-
|
|
2218
|
+
ct,
|
|
2172
2219
|
e
|
|
2173
2220
|
);
|
|
2174
2221
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
@@ -2221,9 +2268,9 @@ class gr {
|
|
|
2221
2268
|
return t.ok ? { ok: t.ok, data: t.data.promoByCode } : t;
|
|
2222
2269
|
}
|
|
2223
2270
|
}
|
|
2224
|
-
class
|
|
2271
|
+
class Er {
|
|
2225
2272
|
constructor(e) {
|
|
2226
|
-
|
|
2273
|
+
d(this, "client");
|
|
2227
2274
|
this.client = e;
|
|
2228
2275
|
}
|
|
2229
2276
|
async messages(e) {
|
|
@@ -2286,14 +2333,21 @@ class Ar {
|
|
|
2286
2333
|
ok: !0
|
|
2287
2334
|
} : t;
|
|
2288
2335
|
}
|
|
2336
|
+
async availableQuests() {
|
|
2337
|
+
const e = await this.client.request(lr);
|
|
2338
|
+
return e.ok ? {
|
|
2339
|
+
ok: !0,
|
|
2340
|
+
data: e.data.availableQuests
|
|
2341
|
+
} : e;
|
|
2342
|
+
}
|
|
2289
2343
|
}
|
|
2290
|
-
class
|
|
2344
|
+
class Sr {
|
|
2291
2345
|
constructor(e) {
|
|
2292
|
-
|
|
2346
|
+
d(this, "client");
|
|
2293
2347
|
this.client = e;
|
|
2294
2348
|
}
|
|
2295
2349
|
async promos() {
|
|
2296
|
-
const e = await this.client.request(
|
|
2350
|
+
const e = await this.client.request(St);
|
|
2297
2351
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
2298
2352
|
}
|
|
2299
2353
|
async cashbacks() {
|
|
@@ -2302,7 +2356,7 @@ class Er {
|
|
|
2302
2356
|
}
|
|
2303
2357
|
async availablePromos(e) {
|
|
2304
2358
|
const t = await this.client.request(
|
|
2305
|
-
|
|
2359
|
+
Ct,
|
|
2306
2360
|
e
|
|
2307
2361
|
);
|
|
2308
2362
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
@@ -2339,10 +2393,10 @@ class Er {
|
|
|
2339
2393
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
2340
2394
|
}
|
|
2341
2395
|
async createGCashDeposit(e) {
|
|
2342
|
-
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(
|
|
2396
|
+
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(dt, r, {
|
|
2343
2397
|
headers: {
|
|
2344
2398
|
...t && {
|
|
2345
|
-
[
|
|
2399
|
+
[C]: t
|
|
2346
2400
|
}
|
|
2347
2401
|
}
|
|
2348
2402
|
});
|
|
@@ -2357,7 +2411,7 @@ class Er {
|
|
|
2357
2411
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(lt, r, {
|
|
2358
2412
|
headers: {
|
|
2359
2413
|
...t && {
|
|
2360
|
-
[
|
|
2414
|
+
[C]: t
|
|
2361
2415
|
}
|
|
2362
2416
|
}
|
|
2363
2417
|
});
|
|
@@ -2372,7 +2426,7 @@ class Er {
|
|
|
2372
2426
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(ft, r, {
|
|
2373
2427
|
headers: {
|
|
2374
2428
|
...t && {
|
|
2375
|
-
[
|
|
2429
|
+
[C]: t
|
|
2376
2430
|
}
|
|
2377
2431
|
}
|
|
2378
2432
|
});
|
|
@@ -2387,7 +2441,7 @@ class Er {
|
|
|
2387
2441
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(wt, r, {
|
|
2388
2442
|
headers: {
|
|
2389
2443
|
...t && {
|
|
2390
|
-
[
|
|
2444
|
+
[C]: t
|
|
2391
2445
|
}
|
|
2392
2446
|
}
|
|
2393
2447
|
});
|
|
@@ -2402,7 +2456,7 @@ class Er {
|
|
|
2402
2456
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(pt, r, {
|
|
2403
2457
|
headers: {
|
|
2404
2458
|
...t && {
|
|
2405
|
-
[
|
|
2459
|
+
[C]: t
|
|
2406
2460
|
}
|
|
2407
2461
|
}
|
|
2408
2462
|
});
|
|
@@ -2417,7 +2471,7 @@ class Er {
|
|
|
2417
2471
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(at, r, {
|
|
2418
2472
|
headers: {
|
|
2419
2473
|
...t && {
|
|
2420
|
-
[
|
|
2474
|
+
[C]: t
|
|
2421
2475
|
}
|
|
2422
2476
|
}
|
|
2423
2477
|
});
|
|
@@ -2432,7 +2486,7 @@ class Er {
|
|
|
2432
2486
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(nt, r, {
|
|
2433
2487
|
headers: {
|
|
2434
2488
|
...t && {
|
|
2435
|
-
[
|
|
2489
|
+
[C]: t
|
|
2436
2490
|
}
|
|
2437
2491
|
}
|
|
2438
2492
|
});
|
|
@@ -2447,7 +2501,7 @@ class Er {
|
|
|
2447
2501
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(ot, r, {
|
|
2448
2502
|
headers: {
|
|
2449
2503
|
...t && {
|
|
2450
|
-
[
|
|
2504
|
+
[C]: t
|
|
2451
2505
|
}
|
|
2452
2506
|
}
|
|
2453
2507
|
});
|
|
@@ -2462,7 +2516,7 @@ class Er {
|
|
|
2462
2516
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(it, r, {
|
|
2463
2517
|
headers: {
|
|
2464
2518
|
...t && {
|
|
2465
|
-
[
|
|
2519
|
+
[C]: t
|
|
2466
2520
|
}
|
|
2467
2521
|
}
|
|
2468
2522
|
});
|
|
@@ -2477,7 +2531,7 @@ class Er {
|
|
|
2477
2531
|
const { reCAPTCHAResponse: t, ...r } = e, a = await this.client.request(st, r, {
|
|
2478
2532
|
headers: {
|
|
2479
2533
|
...t && {
|
|
2480
|
-
[
|
|
2534
|
+
[C]: t
|
|
2481
2535
|
}
|
|
2482
2536
|
}
|
|
2483
2537
|
});
|
|
@@ -2494,7 +2548,7 @@ class Er {
|
|
|
2494
2548
|
}
|
|
2495
2549
|
async remainingDailyWithdrawalsCount() {
|
|
2496
2550
|
const e = await this.client.request(
|
|
2497
|
-
|
|
2551
|
+
ut
|
|
2498
2552
|
);
|
|
2499
2553
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
2500
2554
|
}
|
|
@@ -2520,7 +2574,7 @@ class Er {
|
|
|
2520
2574
|
}
|
|
2521
2575
|
async gameSession(e) {
|
|
2522
2576
|
const t = await this.client.request(
|
|
2523
|
-
|
|
2577
|
+
Ue.current,
|
|
2524
2578
|
e
|
|
2525
2579
|
);
|
|
2526
2580
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
@@ -2583,20 +2637,20 @@ class Er {
|
|
|
2583
2637
|
};
|
|
2584
2638
|
}
|
|
2585
2639
|
}
|
|
2586
|
-
function
|
|
2640
|
+
function Be(o) {
|
|
2587
2641
|
return new Date(o.getTime());
|
|
2588
2642
|
}
|
|
2589
2643
|
function j(o, e) {
|
|
2590
|
-
const t =
|
|
2644
|
+
const t = Be(o);
|
|
2591
2645
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2592
2646
|
}
|
|
2593
|
-
function
|
|
2647
|
+
function Pe(o, e) {
|
|
2594
2648
|
return o.getTime() > e.getTime();
|
|
2595
2649
|
}
|
|
2596
|
-
class
|
|
2650
|
+
class Cr {
|
|
2597
2651
|
constructor(e) {
|
|
2598
|
-
|
|
2599
|
-
|
|
2652
|
+
d(this, "config");
|
|
2653
|
+
d(this, "cache");
|
|
2600
2654
|
this.cache = {}, this.config = {
|
|
2601
2655
|
cacheTime: 5,
|
|
2602
2656
|
...e
|
|
@@ -2611,21 +2665,21 @@ class br {
|
|
|
2611
2665
|
}
|
|
2612
2666
|
get(e) {
|
|
2613
2667
|
const t = this.cache[e];
|
|
2614
|
-
return !t ||
|
|
2668
|
+
return !t || Pe(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
|
|
2615
2669
|
}
|
|
2616
2670
|
}
|
|
2617
|
-
function
|
|
2671
|
+
function br(o, e, t) {
|
|
2618
2672
|
return o < e ? e : o > t ? t : o;
|
|
2619
2673
|
}
|
|
2620
|
-
function
|
|
2674
|
+
function Ge(o) {
|
|
2621
2675
|
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
2622
2676
|
}
|
|
2623
|
-
function
|
|
2677
|
+
function kr(o) {
|
|
2624
2678
|
const e = [];
|
|
2625
2679
|
function t(r, a = []) {
|
|
2626
2680
|
for (const m in r) {
|
|
2627
2681
|
const s = r[m];
|
|
2628
|
-
|
|
2682
|
+
Ge(s) ? t(s, [...a, m]) : Array.isArray(s) ? t(Tr(s), [...a, m]) : e.push({
|
|
2629
2683
|
key: [...a, m],
|
|
2630
2684
|
value: s
|
|
2631
2685
|
});
|
|
@@ -2633,14 +2687,14 @@ function Cr(o) {
|
|
|
2633
2687
|
}
|
|
2634
2688
|
return t(o), e;
|
|
2635
2689
|
}
|
|
2636
|
-
function
|
|
2690
|
+
function Tr(o) {
|
|
2637
2691
|
return o.reduce((e, t, r) => (e[r] = t, e), {});
|
|
2638
2692
|
}
|
|
2639
2693
|
class K {
|
|
2640
2694
|
constructor(e, t) {
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2695
|
+
d(this, "url");
|
|
2696
|
+
d(this, "options");
|
|
2697
|
+
d(this, "middlewares");
|
|
2644
2698
|
var a;
|
|
2645
2699
|
const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
|
|
2646
2700
|
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
@@ -2651,10 +2705,10 @@ class K {
|
|
|
2651
2705
|
variables: t
|
|
2652
2706
|
}), s = new Headers(a.headers);
|
|
2653
2707
|
s.set("Content-Type", "application/json"), s.set("Accept", "application/json");
|
|
2654
|
-
const
|
|
2655
|
-
|
|
2708
|
+
const u = new URL(this.url), c = xe(e);
|
|
2709
|
+
c && u.searchParams.set(`_${c.type}`, c.name);
|
|
2656
2710
|
const p = await this.runMiddlewares(
|
|
2657
|
-
new Request(
|
|
2711
|
+
new Request(u, {
|
|
2658
2712
|
...a,
|
|
2659
2713
|
body: m,
|
|
2660
2714
|
headers: s,
|
|
@@ -2667,10 +2721,10 @@ class K {
|
|
|
2667
2721
|
async upload(e, t, r) {
|
|
2668
2722
|
const a = We(this.options, r), m = this.createUploadBody(e, t), s = new Headers(a.headers);
|
|
2669
2723
|
s.delete("Content-Type");
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2724
|
+
const u = new URL(this.url), c = xe(e);
|
|
2725
|
+
c && u.searchParams.set(`_${c.type}`, c.name);
|
|
2672
2726
|
const p = await this.runMiddlewares(
|
|
2673
|
-
new Request(
|
|
2727
|
+
new Request(u, {
|
|
2674
2728
|
...a,
|
|
2675
2729
|
body: m,
|
|
2676
2730
|
headers: s,
|
|
@@ -2680,15 +2734,15 @@ class K {
|
|
|
2680
2734
|
return await this.exec(p);
|
|
2681
2735
|
}
|
|
2682
2736
|
async exec(e) {
|
|
2683
|
-
var t, r, a, m, s,
|
|
2737
|
+
var t, r, a, m, s, u;
|
|
2684
2738
|
try {
|
|
2685
|
-
const
|
|
2686
|
-
if (!
|
|
2687
|
-
return { ok: !1, error:
|
|
2688
|
-
const p = await
|
|
2689
|
-
return f ? ((r = f.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = f.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error:
|
|
2739
|
+
const c = await fetch(e);
|
|
2740
|
+
if (!c.ok)
|
|
2741
|
+
return { ok: !1, error: g(c.status) };
|
|
2742
|
+
const p = await c.json(), w = p.data, f = (t = p.errors) == null ? void 0 : t.at(0);
|
|
2743
|
+
return f ? ((r = f.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = f.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: g(403, f.message) } : ((m = f.extensions) == null ? void 0 : m.code) === "UNAUTHORIZED" ? { ok: !1, error: g(401, f.message) } : ((s = f.extensions) == null ? void 0 : s.code) === "BAD_USER_INPUT" || ((u = f.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: g(400, f.message) } : {
|
|
2690
2744
|
ok: !1,
|
|
2691
|
-
error:
|
|
2745
|
+
error: g(500, f.message)
|
|
2692
2746
|
} : {
|
|
2693
2747
|
ok: !0,
|
|
2694
2748
|
data: w
|
|
@@ -2696,7 +2750,7 @@ class K {
|
|
|
2696
2750
|
} catch {
|
|
2697
2751
|
return {
|
|
2698
2752
|
ok: !1,
|
|
2699
|
-
error:
|
|
2753
|
+
error: g(500)
|
|
2700
2754
|
};
|
|
2701
2755
|
}
|
|
2702
2756
|
}
|
|
@@ -2707,7 +2761,7 @@ class K {
|
|
|
2707
2761
|
return t;
|
|
2708
2762
|
}
|
|
2709
2763
|
createUploadBody(e, t) {
|
|
2710
|
-
const r =
|
|
2764
|
+
const r = kr(t).filter(
|
|
2711
2765
|
(s) => s.value instanceof File || s.value instanceof Blob
|
|
2712
2766
|
), a = new FormData();
|
|
2713
2767
|
a.append(
|
|
@@ -2718,10 +2772,10 @@ class K {
|
|
|
2718
2772
|
})
|
|
2719
2773
|
);
|
|
2720
2774
|
const m = {};
|
|
2721
|
-
return r.forEach((s,
|
|
2722
|
-
m[
|
|
2723
|
-
}), a.append("map", JSON.stringify(m)), r.forEach((s,
|
|
2724
|
-
a.append(
|
|
2775
|
+
return r.forEach((s, u) => {
|
|
2776
|
+
m[u.toString()] = [`variables.${s.key.join(".")}`];
|
|
2777
|
+
}), a.append("map", JSON.stringify(m)), r.forEach((s, u) => {
|
|
2778
|
+
a.append(u.toString(), s.value);
|
|
2725
2779
|
}), a;
|
|
2726
2780
|
}
|
|
2727
2781
|
}
|
|
@@ -2735,32 +2789,32 @@ function We(o, e) {
|
|
|
2735
2789
|
return o ? e ? {
|
|
2736
2790
|
...o,
|
|
2737
2791
|
...e,
|
|
2738
|
-
headers:
|
|
2792
|
+
headers: _r(o.headers, e.headers)
|
|
2739
2793
|
} : o ?? {} : e ?? {};
|
|
2740
2794
|
}
|
|
2741
|
-
function
|
|
2795
|
+
function _r(o, e) {
|
|
2742
2796
|
if (!o) return e;
|
|
2743
2797
|
if (!e) return o;
|
|
2744
2798
|
const t = new Headers();
|
|
2745
2799
|
return new Headers(o).forEach((r, a) => t.append(a, r)), new Headers(e).forEach((r, a) => t.append(a, r)), t;
|
|
2746
2800
|
}
|
|
2747
|
-
function
|
|
2801
|
+
function Rr(o) {
|
|
2748
2802
|
return o === "INR" ? "en-IN" : o === "MYR" ? "en-MY" : o === "IDR" ? "en-ID" : o === "USD" ? "en-US" : "en-PH";
|
|
2749
2803
|
}
|
|
2750
|
-
function
|
|
2804
|
+
function Dr(o) {
|
|
2751
2805
|
return o === "en-IN" ? "+91" : o === "en-MY" ? "+60" : o === "en-ID" ? "+62" : o === "en-US" ? "+1" : "+63";
|
|
2752
2806
|
}
|
|
2753
|
-
function
|
|
2754
|
-
const t =
|
|
2807
|
+
function V(o, e) {
|
|
2808
|
+
const t = Dr(e);
|
|
2755
2809
|
return o.startsWith(t) ? o : o.startsWith(t.substring(1)) ? `+${o}` : o.startsWith("0") ? `${t}${o.substring(1)}` : `${t}${o}`;
|
|
2756
2810
|
}
|
|
2757
|
-
async function
|
|
2811
|
+
async function S(o) {
|
|
2758
2812
|
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
2759
2813
|
return Array.from(new Uint8Array(t)).map((m) => m.toString(16).padStart(2, "0")).join("");
|
|
2760
2814
|
}
|
|
2761
2815
|
class He {
|
|
2762
2816
|
constructor(e) {
|
|
2763
|
-
|
|
2817
|
+
d(this, "enabled");
|
|
2764
2818
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
2765
2819
|
}
|
|
2766
2820
|
info(e) {
|
|
@@ -2777,7 +2831,7 @@ class He {
|
|
|
2777
2831
|
}
|
|
2778
2832
|
}
|
|
2779
2833
|
function z(o, e) {
|
|
2780
|
-
const t =
|
|
2834
|
+
const t = Be(o);
|
|
2781
2835
|
return t.setDate(t.getDate() + e), t;
|
|
2782
2836
|
}
|
|
2783
2837
|
function Ve(o) {
|
|
@@ -2785,30 +2839,30 @@ function Ve(o) {
|
|
|
2785
2839
|
setTimeout(e, o);
|
|
2786
2840
|
});
|
|
2787
2841
|
}
|
|
2788
|
-
function
|
|
2842
|
+
function qe(o, e) {
|
|
2789
2843
|
const {
|
|
2790
2844
|
until: t,
|
|
2791
2845
|
interval: r = 1e3,
|
|
2792
2846
|
maxAttempt: a = 3
|
|
2793
2847
|
/**/
|
|
2794
2848
|
} = e;
|
|
2795
|
-
async function m(s,
|
|
2796
|
-
const
|
|
2797
|
-
return t(p) ? p :
|
|
2849
|
+
async function m(s, u) {
|
|
2850
|
+
const c = u ?? a, p = await o(...s);
|
|
2851
|
+
return t(p) ? p : c > 1 ? (await Ve(r * ((a - c) / 2)), m(s, c - 1)) : p;
|
|
2798
2852
|
}
|
|
2799
2853
|
return async (...s) => await m(s);
|
|
2800
2854
|
}
|
|
2801
2855
|
function J(o, e) {
|
|
2802
|
-
const t =
|
|
2856
|
+
const t = Be(o);
|
|
2803
2857
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
2804
2858
|
}
|
|
2805
|
-
class
|
|
2859
|
+
class Mr {
|
|
2806
2860
|
constructor(e) {
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2861
|
+
d(this, "logger");
|
|
2862
|
+
d(this, "storageKey", "session");
|
|
2863
|
+
d(this, "authService");
|
|
2864
|
+
d(this, "walletService");
|
|
2865
|
+
d(this, "_refreshing", !1);
|
|
2812
2866
|
this.authService = e.authService, this.walletService = e.walletService, this.logger = new He({
|
|
2813
2867
|
enabled: e.logs ?? !1
|
|
2814
2868
|
});
|
|
@@ -2830,7 +2884,7 @@ class Dr {
|
|
|
2830
2884
|
}
|
|
2831
2885
|
};
|
|
2832
2886
|
if (e.type === "MAYA") {
|
|
2833
|
-
const s = await
|
|
2887
|
+
const s = await qe(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2834
2888
|
until: (w) => {
|
|
2835
2889
|
var f;
|
|
2836
2890
|
return w.ok && ((f = w.data) == null ? void 0 : f.member) != null;
|
|
@@ -2847,17 +2901,17 @@ class Dr {
|
|
|
2847
2901
|
message: "Forbidden"
|
|
2848
2902
|
}
|
|
2849
2903
|
};
|
|
2850
|
-
const
|
|
2904
|
+
const c = await qe(() => this.authService.createSession(e), {
|
|
2851
2905
|
until: (w) => w.ok,
|
|
2852
2906
|
interval: 1e3,
|
|
2853
2907
|
maxAttempt: 5
|
|
2854
2908
|
})();
|
|
2855
|
-
if (!
|
|
2909
|
+
if (!c.ok) return c;
|
|
2856
2910
|
const p = /* @__PURE__ */ new Date();
|
|
2857
2911
|
return window.localStorage.setItem(
|
|
2858
2912
|
this.storageKey,
|
|
2859
2913
|
JSON.stringify({
|
|
2860
|
-
...
|
|
2914
|
+
...c.data,
|
|
2861
2915
|
accessTokenExpiresAt: j(p, 8).getTime(),
|
|
2862
2916
|
refreshTokenExpiresAt: J(z(p, 30), 2).getTime()
|
|
2863
2917
|
})
|
|
@@ -2977,7 +3031,7 @@ class Dr {
|
|
|
2977
3031
|
try {
|
|
2978
3032
|
let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
|
|
2979
3033
|
const a = new Date(t.accessTokenExpiresAt), m = new Date(t.refreshTokenExpiresAt);
|
|
2980
|
-
if (
|
|
3034
|
+
if (Pe(r, m))
|
|
2981
3035
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
2982
3036
|
ok: !1,
|
|
2983
3037
|
error: {
|
|
@@ -2985,7 +3039,7 @@ class Dr {
|
|
|
2985
3039
|
message: "Session expired."
|
|
2986
3040
|
}
|
|
2987
3041
|
};
|
|
2988
|
-
if (
|
|
3042
|
+
if (Pe(r, a)) {
|
|
2989
3043
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
2990
3044
|
const s = await this.authService.refreshSession(t.refreshToken);
|
|
2991
3045
|
if (this.refreshing = !1, !s.ok)
|
|
@@ -3040,17 +3094,17 @@ class Dr {
|
|
|
3040
3094
|
return typeof window > "u";
|
|
3041
3095
|
}
|
|
3042
3096
|
}
|
|
3043
|
-
function
|
|
3097
|
+
function O(o) {
|
|
3044
3098
|
const e = {};
|
|
3045
3099
|
for (const t in o) {
|
|
3046
3100
|
const r = o[t];
|
|
3047
3101
|
if (r !== null && r !== void 0) {
|
|
3048
|
-
if (
|
|
3049
|
-
e[t] =
|
|
3102
|
+
if (Ge(r)) {
|
|
3103
|
+
e[t] = O(r);
|
|
3050
3104
|
continue;
|
|
3051
3105
|
}
|
|
3052
3106
|
if (Array.isArray(r)) {
|
|
3053
|
-
e[t] = r.map((a) =>
|
|
3107
|
+
e[t] = r.map((a) => Ge(a) ? O(a) : a);
|
|
3054
3108
|
continue;
|
|
3055
3109
|
}
|
|
3056
3110
|
e[t] = r;
|
|
@@ -3068,7 +3122,7 @@ function n(o, e) {
|
|
|
3068
3122
|
}
|
|
3069
3123
|
return e;
|
|
3070
3124
|
}
|
|
3071
|
-
class
|
|
3125
|
+
class Ir {
|
|
3072
3126
|
get transform() {
|
|
3073
3127
|
return {
|
|
3074
3128
|
site: this.site.bind(this),
|
|
@@ -3101,7 +3155,8 @@ class Mr {
|
|
|
3101
3155
|
paymentSettings: this.paymentSettings.bind(this),
|
|
3102
3156
|
message: this.message.bind(this),
|
|
3103
3157
|
instapayBank: this.instapayBank.bind(this),
|
|
3104
|
-
promoByCode: this.promoByCode.bind(this)
|
|
3158
|
+
promoByCode: this.promoByCode.bind(this),
|
|
3159
|
+
quest: this.quest.bind(this)
|
|
3105
3160
|
};
|
|
3106
3161
|
}
|
|
3107
3162
|
site(e) {
|
|
@@ -3111,11 +3166,11 @@ class Mr {
|
|
|
3111
3166
|
logo: e.logo ?? void 0,
|
|
3112
3167
|
fields: e.config.fields
|
|
3113
3168
|
};
|
|
3114
|
-
return
|
|
3169
|
+
return O(t);
|
|
3115
3170
|
}
|
|
3116
3171
|
/** @deprecated */
|
|
3117
3172
|
platform(e) {
|
|
3118
|
-
var t, r, a, m, s,
|
|
3173
|
+
var t, r, a, m, s, u, c, p, w, f, b, k, T, _, R, D, y, M, I, A, N, P, G, v, E, B, x, W, q, U, $, L, F, H, h, X, Z, ee, te, re, ae, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, Ae, Ee, Se, Ce, be, ke, Te, _e, Re, De, Oe;
|
|
3119
3174
|
return {
|
|
3120
3175
|
timezone: e.timezone,
|
|
3121
3176
|
currency: e.currency,
|
|
@@ -3129,46 +3184,46 @@ class Mr {
|
|
|
3129
3184
|
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
3130
3185
|
mobileWebEnabled: ((m = e.bankDepositGatewaySettings) == null ? void 0 : m.mobileWebEnabled) ?? !1,
|
|
3131
3186
|
minimumAmount: n((s = e.bankDepositGatewaySettings) == null ? void 0 : s.minimumAmount),
|
|
3132
|
-
maximumAmount: n((
|
|
3187
|
+
maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
3133
3188
|
},
|
|
3134
3189
|
gcash: {
|
|
3135
|
-
androidEnabled: ((
|
|
3190
|
+
androidEnabled: ((c = e.gcashDepositGatewaySettings) == null ? void 0 : c.androidEnabled) ?? !1,
|
|
3136
3191
|
iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
|
|
3137
3192
|
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
3138
3193
|
mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
|
|
3139
|
-
minimumAmount: n((
|
|
3140
|
-
maximumAmount: n((
|
|
3194
|
+
minimumAmount: n((b = e.gcashDepositGatewaySettings) == null ? void 0 : b.minimumAmount),
|
|
3195
|
+
maximumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
|
|
3141
3196
|
},
|
|
3142
3197
|
maya: {
|
|
3143
|
-
androidEnabled: ((
|
|
3144
|
-
iosEnabled: ((
|
|
3145
|
-
webEnabled: ((
|
|
3146
|
-
mobileWebEnabled: ((
|
|
3147
|
-
minimumAmount: n((
|
|
3148
|
-
maximumAmount: n((
|
|
3198
|
+
androidEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.androidEnabled) ?? !1,
|
|
3199
|
+
iosEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.iosEnabled) ?? !1,
|
|
3200
|
+
webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
|
|
3201
|
+
mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
|
|
3202
|
+
minimumAmount: n((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.minimumAmount),
|
|
3203
|
+
maximumAmount: n((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
|
|
3149
3204
|
},
|
|
3150
3205
|
mayaApp: {
|
|
3151
3206
|
androidEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
|
|
3152
|
-
iosEnabled: ((
|
|
3153
|
-
webEnabled: ((
|
|
3207
|
+
iosEnabled: ((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.iosEnabled) ?? !1,
|
|
3208
|
+
webEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
|
|
3154
3209
|
mobileWebEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.mobileWebEnabled) ?? !1,
|
|
3155
3210
|
minimumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
|
|
3156
|
-
maximumAmount: n((
|
|
3211
|
+
maximumAmount: n((v = e.mayaAppDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
3157
3212
|
},
|
|
3158
3213
|
onlineBank: {
|
|
3159
|
-
androidEnabled: ((
|
|
3214
|
+
androidEnabled: ((E = e.onlineBankDepositGatewaySettings) == null ? void 0 : E.androidEnabled) ?? !1,
|
|
3160
3215
|
iosEnabled: ((B = e.onlineBankDepositGatewaySettings) == null ? void 0 : B.iosEnabled) ?? !1,
|
|
3161
|
-
webEnabled: ((
|
|
3162
|
-
mobileWebEnabled: ((
|
|
3216
|
+
webEnabled: ((x = e.onlineBankDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
|
|
3217
|
+
mobileWebEnabled: ((W = e.onlineBankDepositGatewaySettings) == null ? void 0 : W.mobileWebEnabled) ?? !1,
|
|
3163
3218
|
minimumAmount: n((q = e.onlineBankDepositGatewaySettings) == null ? void 0 : q.minimumAmount),
|
|
3164
|
-
maximumAmount: n((
|
|
3219
|
+
maximumAmount: n((U = e.onlineBankDepositGatewaySettings) == null ? void 0 : U.maximumAmount)
|
|
3165
3220
|
},
|
|
3166
3221
|
qrph: {
|
|
3167
|
-
androidEnabled: ((
|
|
3168
|
-
iosEnabled: ((
|
|
3169
|
-
webEnabled: ((
|
|
3170
|
-
mobileWebEnabled: ((
|
|
3171
|
-
minimumAmount: n((
|
|
3222
|
+
androidEnabled: (($ = e.qrphDepositGatewaySettings) == null ? void 0 : $.androidEnabled) ?? !1,
|
|
3223
|
+
iosEnabled: ((L = e.qrphDepositGatewaySettings) == null ? void 0 : L.iosEnabled) ?? !1,
|
|
3224
|
+
webEnabled: ((F = e.qrphDepositGatewaySettings) == null ? void 0 : F.webEnabled) ?? !1,
|
|
3225
|
+
mobileWebEnabled: ((H = e.qrphDepositGatewaySettings) == null ? void 0 : H.mobileWebEnabled) ?? !1,
|
|
3226
|
+
minimumAmount: n((h = e.qrphDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
3172
3227
|
maximumAmount: n((X = e.qrphDepositGatewaySettings) == null ? void 0 : X.maximumAmount)
|
|
3173
3228
|
}
|
|
3174
3229
|
},
|
|
@@ -3186,14 +3241,14 @@ class Mr {
|
|
|
3186
3241
|
iosEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.iosEnabled) ?? !1,
|
|
3187
3242
|
webEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.webEnabled) ?? !1,
|
|
3188
3243
|
mobileWebEnabled: ((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.mobileWebEnabled) ?? !1,
|
|
3189
|
-
minimumAmount: n((
|
|
3244
|
+
minimumAmount: n((ue = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ue.minimumAmount),
|
|
3190
3245
|
maximumAmount: n(
|
|
3191
|
-
(
|
|
3246
|
+
(ce = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount,
|
|
3192
3247
|
1e6
|
|
3193
3248
|
)
|
|
3194
3249
|
},
|
|
3195
3250
|
maya: {
|
|
3196
|
-
androidEnabled: ((
|
|
3251
|
+
androidEnabled: ((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
|
|
3197
3252
|
iosEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.iosEnabled) ?? !1,
|
|
3198
3253
|
webEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.webEnabled) ?? !1,
|
|
3199
3254
|
mobileWebEnabled: ((fe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : fe.mobileWebEnabled) ?? !1,
|
|
@@ -3205,14 +3260,14 @@ class Mr {
|
|
|
3205
3260
|
iosEnabled: ((ge = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ge.iosEnabled) ?? !1,
|
|
3206
3261
|
webEnabled: ((Ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ae.webEnabled) ?? !1,
|
|
3207
3262
|
mobileWebEnabled: ((Ee = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ee.mobileWebEnabled) ?? !1,
|
|
3208
|
-
minimumAmount: n((
|
|
3263
|
+
minimumAmount: n((Se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Se.minimumAmount),
|
|
3209
3264
|
maximumAmount: n(
|
|
3210
|
-
(
|
|
3265
|
+
(Ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ce.maximumAmount,
|
|
3211
3266
|
1e6
|
|
3212
3267
|
)
|
|
3213
3268
|
},
|
|
3214
3269
|
instapay: {
|
|
3215
|
-
androidEnabled: ((
|
|
3270
|
+
androidEnabled: ((be = e.instapayWithdrawalGatewaySettings) == null ? void 0 : be.androidEnabled) ?? !1,
|
|
3216
3271
|
iosEnabled: ((ke = e.instapayWithdrawalGatewaySettings) == null ? void 0 : ke.iosEnabled) ?? !1,
|
|
3217
3272
|
webEnabled: ((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.webEnabled) ?? !1,
|
|
3218
3273
|
mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
|
|
@@ -3225,7 +3280,7 @@ class Mr {
|
|
|
3225
3280
|
}
|
|
3226
3281
|
},
|
|
3227
3282
|
pointsClubSettings: {
|
|
3228
|
-
multiplier: n((
|
|
3283
|
+
multiplier: n((Oe = e.pointsClubSettings) == null ? void 0 : Oe.multiplier, 0)
|
|
3229
3284
|
}
|
|
3230
3285
|
};
|
|
3231
3286
|
}
|
|
@@ -3233,7 +3288,7 @@ class Mr {
|
|
|
3233
3288
|
return {
|
|
3234
3289
|
currency: e.currency,
|
|
3235
3290
|
timezone: e.timezone,
|
|
3236
|
-
locale:
|
|
3291
|
+
locale: Rr(e.currency)
|
|
3237
3292
|
};
|
|
3238
3293
|
}
|
|
3239
3294
|
pointsClubSettings(e) {
|
|
@@ -3242,7 +3297,7 @@ class Mr {
|
|
|
3242
3297
|
};
|
|
3243
3298
|
}
|
|
3244
3299
|
paymentSettings(e) {
|
|
3245
|
-
var t, r, a, m, s,
|
|
3300
|
+
var t, r, a, m, s, u, c, p, w, f, b, k, T, _, R, D, y, M, I, A, N, P, G, v, E, B, x, W, q, U, $, L, F, H, h, X, Z, ee, te, re, ae, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, Ae, Ee, Se, Ce, be, ke, Te, _e, Re, De;
|
|
3246
3301
|
return {
|
|
3247
3302
|
minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
|
|
3248
3303
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
@@ -3253,46 +3308,46 @@ class Mr {
|
|
|
3253
3308
|
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
3254
3309
|
mobileWebEnabled: ((m = e.bankDepositGatewaySettings) == null ? void 0 : m.mobileWebEnabled) ?? !1,
|
|
3255
3310
|
minimumAmount: n((s = e.bankDepositGatewaySettings) == null ? void 0 : s.minimumAmount),
|
|
3256
|
-
maximumAmount: n((
|
|
3311
|
+
maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
3257
3312
|
},
|
|
3258
3313
|
gcash: {
|
|
3259
|
-
androidEnabled: ((
|
|
3314
|
+
androidEnabled: ((c = e.gcashDepositGatewaySettings) == null ? void 0 : c.androidEnabled) ?? !1,
|
|
3260
3315
|
iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
|
|
3261
3316
|
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
3262
3317
|
mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
|
|
3263
|
-
minimumAmount: n((
|
|
3264
|
-
maximumAmount: n((
|
|
3318
|
+
minimumAmount: n((b = e.gcashDepositGatewaySettings) == null ? void 0 : b.minimumAmount),
|
|
3319
|
+
maximumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
|
|
3265
3320
|
},
|
|
3266
3321
|
maya: {
|
|
3267
|
-
androidEnabled: ((
|
|
3268
|
-
iosEnabled: ((
|
|
3269
|
-
webEnabled: ((
|
|
3270
|
-
mobileWebEnabled: ((
|
|
3271
|
-
minimumAmount: n((
|
|
3272
|
-
maximumAmount: n((
|
|
3322
|
+
androidEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.androidEnabled) ?? !1,
|
|
3323
|
+
iosEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.iosEnabled) ?? !1,
|
|
3324
|
+
webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
|
|
3325
|
+
mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
|
|
3326
|
+
minimumAmount: n((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.minimumAmount),
|
|
3327
|
+
maximumAmount: n((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
|
|
3273
3328
|
},
|
|
3274
3329
|
mayaApp: {
|
|
3275
3330
|
androidEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
|
|
3276
|
-
iosEnabled: ((
|
|
3277
|
-
webEnabled: ((
|
|
3331
|
+
iosEnabled: ((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.iosEnabled) ?? !1,
|
|
3332
|
+
webEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
|
|
3278
3333
|
mobileWebEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.mobileWebEnabled) ?? !1,
|
|
3279
3334
|
minimumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
|
|
3280
|
-
maximumAmount: n((
|
|
3335
|
+
maximumAmount: n((v = e.mayaAppDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
3281
3336
|
},
|
|
3282
3337
|
onlineBank: {
|
|
3283
|
-
androidEnabled: ((
|
|
3338
|
+
androidEnabled: ((E = e.onlineBankDepositGatewaySettings) == null ? void 0 : E.androidEnabled) ?? !1,
|
|
3284
3339
|
iosEnabled: ((B = e.onlineBankDepositGatewaySettings) == null ? void 0 : B.iosEnabled) ?? !1,
|
|
3285
|
-
webEnabled: ((
|
|
3286
|
-
mobileWebEnabled: ((
|
|
3340
|
+
webEnabled: ((x = e.onlineBankDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
|
|
3341
|
+
mobileWebEnabled: ((W = e.onlineBankDepositGatewaySettings) == null ? void 0 : W.mobileWebEnabled) ?? !1,
|
|
3287
3342
|
minimumAmount: n((q = e.onlineBankDepositGatewaySettings) == null ? void 0 : q.minimumAmount),
|
|
3288
|
-
maximumAmount: n((
|
|
3343
|
+
maximumAmount: n((U = e.onlineBankDepositGatewaySettings) == null ? void 0 : U.maximumAmount)
|
|
3289
3344
|
},
|
|
3290
3345
|
qrph: {
|
|
3291
|
-
androidEnabled: ((
|
|
3292
|
-
iosEnabled: ((
|
|
3293
|
-
webEnabled: ((
|
|
3294
|
-
mobileWebEnabled: ((
|
|
3295
|
-
minimumAmount: n((
|
|
3346
|
+
androidEnabled: (($ = e.qrphDepositGatewaySettings) == null ? void 0 : $.androidEnabled) ?? !1,
|
|
3347
|
+
iosEnabled: ((L = e.qrphDepositGatewaySettings) == null ? void 0 : L.iosEnabled) ?? !1,
|
|
3348
|
+
webEnabled: ((F = e.qrphDepositGatewaySettings) == null ? void 0 : F.webEnabled) ?? !1,
|
|
3349
|
+
mobileWebEnabled: ((H = e.qrphDepositGatewaySettings) == null ? void 0 : H.mobileWebEnabled) ?? !1,
|
|
3350
|
+
minimumAmount: n((h = e.qrphDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
3296
3351
|
maximumAmount: n((X = e.qrphDepositGatewaySettings) == null ? void 0 : X.maximumAmount)
|
|
3297
3352
|
}
|
|
3298
3353
|
},
|
|
@@ -3310,11 +3365,11 @@ class Mr {
|
|
|
3310
3365
|
iosEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.iosEnabled) ?? !1,
|
|
3311
3366
|
webEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.webEnabled) ?? !1,
|
|
3312
3367
|
mobileWebEnabled: ((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.mobileWebEnabled) ?? !1,
|
|
3313
|
-
minimumAmount: n((
|
|
3314
|
-
maximumAmount: n((
|
|
3368
|
+
minimumAmount: n((ue = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ue.minimumAmount),
|
|
3369
|
+
maximumAmount: n((ce = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount, 1e6)
|
|
3315
3370
|
},
|
|
3316
3371
|
maya: {
|
|
3317
|
-
androidEnabled: ((
|
|
3372
|
+
androidEnabled: ((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
|
|
3318
3373
|
iosEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.iosEnabled) ?? !1,
|
|
3319
3374
|
webEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.webEnabled) ?? !1,
|
|
3320
3375
|
mobileWebEnabled: ((fe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : fe.mobileWebEnabled) ?? !1,
|
|
@@ -3326,14 +3381,14 @@ class Mr {
|
|
|
3326
3381
|
iosEnabled: ((ge = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ge.iosEnabled) ?? !1,
|
|
3327
3382
|
webEnabled: ((Ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ae.webEnabled) ?? !1,
|
|
3328
3383
|
mobileWebEnabled: ((Ee = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ee.mobileWebEnabled) ?? !1,
|
|
3329
|
-
minimumAmount: n((
|
|
3384
|
+
minimumAmount: n((Se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Se.minimumAmount),
|
|
3330
3385
|
maximumAmount: n(
|
|
3331
|
-
(
|
|
3386
|
+
(Ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ce.maximumAmount,
|
|
3332
3387
|
1e6
|
|
3333
3388
|
)
|
|
3334
3389
|
},
|
|
3335
3390
|
instapay: {
|
|
3336
|
-
androidEnabled: ((
|
|
3391
|
+
androidEnabled: ((be = e.instapayWithdrawalGatewaySettings) == null ? void 0 : be.androidEnabled) ?? !1,
|
|
3337
3392
|
iosEnabled: ((ke = e.instapayWithdrawalGatewaySettings) == null ? void 0 : ke.iosEnabled) ?? !1,
|
|
3338
3393
|
webEnabled: ((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.webEnabled) ?? !1,
|
|
3339
3394
|
mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
|
|
@@ -3366,7 +3421,7 @@ class Mr {
|
|
|
3366
3421
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
3367
3422
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
3368
3423
|
};
|
|
3369
|
-
return
|
|
3424
|
+
return O(t);
|
|
3370
3425
|
}
|
|
3371
3426
|
wallet(e) {
|
|
3372
3427
|
return {
|
|
@@ -3431,7 +3486,7 @@ class Mr {
|
|
|
3431
3486
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
3432
3487
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
3433
3488
|
};
|
|
3434
|
-
return
|
|
3489
|
+
return O(t);
|
|
3435
3490
|
}
|
|
3436
3491
|
deposit(e) {
|
|
3437
3492
|
const t = {
|
|
@@ -3442,7 +3497,7 @@ class Mr {
|
|
|
3442
3497
|
qrCode: e.qrCode ?? void 0,
|
|
3443
3498
|
checkoutUrl: e.checkoutUrl ?? void 0
|
|
3444
3499
|
};
|
|
3445
|
-
return
|
|
3500
|
+
return O(t);
|
|
3446
3501
|
}
|
|
3447
3502
|
depositRecord(e) {
|
|
3448
3503
|
const t = {
|
|
@@ -3458,7 +3513,7 @@ class Mr {
|
|
|
3458
3513
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
|
|
3459
3514
|
error: e.error ?? void 0
|
|
3460
3515
|
};
|
|
3461
|
-
return
|
|
3516
|
+
return O(t);
|
|
3462
3517
|
}
|
|
3463
3518
|
betRecord(e) {
|
|
3464
3519
|
var r;
|
|
@@ -3484,7 +3539,7 @@ class Mr {
|
|
|
3484
3539
|
odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
|
|
3485
3540
|
}
|
|
3486
3541
|
};
|
|
3487
|
-
return
|
|
3542
|
+
return O(t);
|
|
3488
3543
|
}
|
|
3489
3544
|
latestBetRecord(e) {
|
|
3490
3545
|
return {
|
|
@@ -3508,7 +3563,7 @@ class Mr {
|
|
|
3508
3563
|
referenceNumber: e.referenceNumber,
|
|
3509
3564
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
3510
3565
|
};
|
|
3511
|
-
return
|
|
3566
|
+
return O(t);
|
|
3512
3567
|
}
|
|
3513
3568
|
game(e) {
|
|
3514
3569
|
return {
|
|
@@ -3529,7 +3584,7 @@ class Mr {
|
|
|
3529
3584
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
3530
3585
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
3531
3586
|
};
|
|
3532
|
-
return
|
|
3587
|
+
return O(t);
|
|
3533
3588
|
}
|
|
3534
3589
|
promo(e) {
|
|
3535
3590
|
return {
|
|
@@ -3596,7 +3651,7 @@ class Mr {
|
|
|
3596
3651
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
3597
3652
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
3598
3653
|
};
|
|
3599
|
-
return
|
|
3654
|
+
return O(t);
|
|
3600
3655
|
}
|
|
3601
3656
|
cashbackBonus(e) {
|
|
3602
3657
|
return {
|
|
@@ -3615,7 +3670,7 @@ class Mr {
|
|
|
3615
3670
|
status: e.status,
|
|
3616
3671
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
3617
3672
|
};
|
|
3618
|
-
return
|
|
3673
|
+
return O(t);
|
|
3619
3674
|
}
|
|
3620
3675
|
pointsWallet(e) {
|
|
3621
3676
|
return {
|
|
@@ -3643,7 +3698,7 @@ class Mr {
|
|
|
3643
3698
|
details: e.details,
|
|
3644
3699
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
3645
3700
|
};
|
|
3646
|
-
return
|
|
3701
|
+
return O(t);
|
|
3647
3702
|
}
|
|
3648
3703
|
referral(e) {
|
|
3649
3704
|
return {
|
|
@@ -3731,22 +3786,42 @@ class Mr {
|
|
|
3731
3786
|
banner: e.banner
|
|
3732
3787
|
};
|
|
3733
3788
|
}
|
|
3789
|
+
quest(e) {
|
|
3790
|
+
return {
|
|
3791
|
+
id: e.id,
|
|
3792
|
+
name: e.name,
|
|
3793
|
+
description: e.description,
|
|
3794
|
+
status: e.status,
|
|
3795
|
+
bonus: n(e.bonus, 0),
|
|
3796
|
+
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
3797
|
+
endDateTime: new Date(e.endDateTime),
|
|
3798
|
+
program: {
|
|
3799
|
+
id: e.program.id,
|
|
3800
|
+
type: e.program.type,
|
|
3801
|
+
name: e.program.name,
|
|
3802
|
+
description: e.program.description,
|
|
3803
|
+
totalBonus: n(e.program.totalBonus, 0),
|
|
3804
|
+
status: e.program.status
|
|
3805
|
+
},
|
|
3806
|
+
progressPercentage: n(e.progressPercentage, 0)
|
|
3807
|
+
};
|
|
3808
|
+
}
|
|
3734
3809
|
}
|
|
3735
|
-
class
|
|
3810
|
+
class Gr {
|
|
3736
3811
|
constructor(e) {
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3812
|
+
d(this, "cmsPortalService");
|
|
3813
|
+
d(this, "authService");
|
|
3814
|
+
d(this, "gameService");
|
|
3815
|
+
d(this, "fileService");
|
|
3816
|
+
d(this, "walletService");
|
|
3817
|
+
d(this, "accountService");
|
|
3818
|
+
d(this, "reportService");
|
|
3819
|
+
d(this, "portalService");
|
|
3820
|
+
d(this, "triggerService");
|
|
3821
|
+
d(this, "sessionManager");
|
|
3822
|
+
d(this, "transformer");
|
|
3823
|
+
d(this, "logger");
|
|
3824
|
+
d(this, "cache");
|
|
3750
3825
|
const {
|
|
3751
3826
|
/**/
|
|
3752
3827
|
site: t,
|
|
@@ -3754,15 +3829,15 @@ class vr {
|
|
|
3754
3829
|
platform: a,
|
|
3755
3830
|
environment: m,
|
|
3756
3831
|
logs: s
|
|
3757
|
-
} = e,
|
|
3758
|
-
this.transformer = new
|
|
3832
|
+
} = e, u = m === "production";
|
|
3833
|
+
this.transformer = new Ir(), this.logger = new He({
|
|
3759
3834
|
enabled: s ?? !1
|
|
3760
3835
|
});
|
|
3761
|
-
const
|
|
3762
|
-
url:
|
|
3836
|
+
const c = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", p = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", f = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", b = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", k = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", T = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", _ = u ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", R = "https://portal-api.opexacms.io", D = new wr({
|
|
3837
|
+
url: R,
|
|
3763
3838
|
site: t,
|
|
3764
3839
|
platform: r
|
|
3765
|
-
}),
|
|
3840
|
+
}), y = {
|
|
3766
3841
|
middlewares: [this.authMiddleware],
|
|
3767
3842
|
fetchOptions: {
|
|
3768
3843
|
headers: {
|
|
@@ -3770,23 +3845,23 @@ class vr {
|
|
|
3770
3845
|
"Platform-Code": a
|
|
3771
3846
|
}
|
|
3772
3847
|
}
|
|
3773
|
-
},
|
|
3774
|
-
url:
|
|
3848
|
+
}, M = new hr(new K(T, y)), I = new yr(new K(k, y)), A = new Sr(new K(p, y)), N = new pr(new K(f, y)), P = new Ar(new K(w, y)), G = new gr(new K(b, y)), v = new Er(new K(_, y)), E = new fr({
|
|
3849
|
+
url: c,
|
|
3775
3850
|
fetchOptions: {
|
|
3776
3851
|
headers: {
|
|
3777
3852
|
Role: "MEMBER",
|
|
3778
3853
|
"Platform-Code": a,
|
|
3779
|
-
...!
|
|
3854
|
+
...!u && {
|
|
3780
3855
|
"Test-Pass": ""
|
|
3781
3856
|
}
|
|
3782
3857
|
}
|
|
3783
3858
|
}
|
|
3784
|
-
}), B = new
|
|
3859
|
+
}), B = new Mr({
|
|
3785
3860
|
logs: s,
|
|
3786
|
-
authService:
|
|
3787
|
-
walletService:
|
|
3861
|
+
authService: E,
|
|
3862
|
+
walletService: A
|
|
3788
3863
|
});
|
|
3789
|
-
this.authService =
|
|
3864
|
+
this.authService = E, this.gameService = M, this.fileService = I, this.walletService = A, this.accountService = N, this.reportService = P, this.portalService = G, this.triggerService = v, this.sessionManager = B, this.cmsPortalService = D, this.cache = new Cr();
|
|
3790
3865
|
}
|
|
3791
3866
|
get authMiddleware() {
|
|
3792
3867
|
return async (e) => {
|
|
@@ -3809,7 +3884,7 @@ class vr {
|
|
|
3809
3884
|
case "NAME_AND_PASSWORD": {
|
|
3810
3885
|
const t = await this.sessionManager.create({
|
|
3811
3886
|
...e,
|
|
3812
|
-
password: await
|
|
3887
|
+
password: await S(e.password)
|
|
3813
3888
|
});
|
|
3814
3889
|
return t.ok ? t.data ? {
|
|
3815
3890
|
ok: !0,
|
|
@@ -3842,7 +3917,7 @@ class vr {
|
|
|
3842
3917
|
case "MOBILE_NUMBER": {
|
|
3843
3918
|
const t = await this.sessionManager.create({
|
|
3844
3919
|
type: "MOBILE_NUMBER",
|
|
3845
|
-
mobileNumber:
|
|
3920
|
+
mobileNumber: V(e.mobileNumber, await this.locale),
|
|
3846
3921
|
verificationCode: e.verificationCode,
|
|
3847
3922
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3848
3923
|
});
|
|
@@ -3860,7 +3935,7 @@ class vr {
|
|
|
3860
3935
|
return await this.sessionManager.createFromAuthenticator({
|
|
3861
3936
|
type: "SECURITY_QUESTION",
|
|
3862
3937
|
token: e.token,
|
|
3863
|
-
secretAnswer: await
|
|
3938
|
+
secretAnswer: await S(e.secretAnswer)
|
|
3864
3939
|
});
|
|
3865
3940
|
default:
|
|
3866
3941
|
return {
|
|
@@ -3876,7 +3951,7 @@ class vr {
|
|
|
3876
3951
|
await this.sessionManager.destroy();
|
|
3877
3952
|
}
|
|
3878
3953
|
watchSession(e) {
|
|
3879
|
-
const t =
|
|
3954
|
+
const t = br(e.interval ?? 3e4, 3e4, 6e4);
|
|
3880
3955
|
let r = null;
|
|
3881
3956
|
const a = () => setTimeout(async () => {
|
|
3882
3957
|
await this.sessionManager.verify() || await e.onInvalid(), r = a();
|
|
@@ -3960,8 +4035,8 @@ class vr {
|
|
|
3960
4035
|
name: e.name,
|
|
3961
4036
|
domain: e.domain,
|
|
3962
4037
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : this.formatYmd(e.dateOfBirth),
|
|
3963
|
-
password: await
|
|
3964
|
-
mobileNumber:
|
|
4038
|
+
password: await S(e.password),
|
|
4039
|
+
mobileNumber: V(e.mobileNumber, await this.locale)
|
|
3965
4040
|
},
|
|
3966
4041
|
referralCode: e.referralCode,
|
|
3967
4042
|
verificationCode: e.verificationCode,
|
|
@@ -3977,7 +4052,7 @@ class vr {
|
|
|
3977
4052
|
id: t,
|
|
3978
4053
|
btag: e.btag,
|
|
3979
4054
|
domain: e.domain,
|
|
3980
|
-
mobileNumber:
|
|
4055
|
+
mobileNumber: V(e.mobileNumber, await this.locale)
|
|
3981
4056
|
},
|
|
3982
4057
|
referralCode: e.referralCode,
|
|
3983
4058
|
verificationCode: e.verificationCode,
|
|
@@ -3991,8 +4066,8 @@ class vr {
|
|
|
3991
4066
|
name: e.name,
|
|
3992
4067
|
btag: e.btag,
|
|
3993
4068
|
domain: e.domain,
|
|
3994
|
-
password: await
|
|
3995
|
-
mobileNumber: e.mobileNumber ?
|
|
4069
|
+
password: await S(e.password),
|
|
4070
|
+
mobileNumber: e.mobileNumber ? V(e.mobileNumber, await this.locale) : void 0
|
|
3996
4071
|
},
|
|
3997
4072
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3998
4073
|
});
|
|
@@ -4002,7 +4077,7 @@ class vr {
|
|
|
4002
4077
|
return await this.accountService.registerMayaMemberAccount({
|
|
4003
4078
|
input: {
|
|
4004
4079
|
name: e.name,
|
|
4005
|
-
password: await
|
|
4080
|
+
password: await S(e.password),
|
|
4006
4081
|
domain: e.domain
|
|
4007
4082
|
}
|
|
4008
4083
|
});
|
|
@@ -4014,18 +4089,18 @@ class vr {
|
|
|
4014
4089
|
dateOfBirth: a,
|
|
4015
4090
|
mobileNumber: m,
|
|
4016
4091
|
secretAnswer: s,
|
|
4017
|
-
transactionPassword:
|
|
4018
|
-
...
|
|
4092
|
+
transactionPassword: u,
|
|
4093
|
+
...c
|
|
4019
4094
|
} = t;
|
|
4020
4095
|
return await this.accountService.updateMemberAccount({
|
|
4021
4096
|
input: {
|
|
4022
4097
|
id: e,
|
|
4023
4098
|
data: {
|
|
4024
|
-
...
|
|
4025
|
-
password: r ? await
|
|
4026
|
-
transactionPassword:
|
|
4027
|
-
mobileNumber: m ?
|
|
4028
|
-
secretAnswer: s ? await
|
|
4099
|
+
...c,
|
|
4100
|
+
password: r ? await S(r) : void 0,
|
|
4101
|
+
transactionPassword: u ? await S(u) : void 0,
|
|
4102
|
+
mobileNumber: m ? V(m, await this.locale) : void 0,
|
|
4103
|
+
secretAnswer: s ? await S(s) : void 0,
|
|
4029
4104
|
birthDay: a ? typeof a == "string" ? a : this.formatYmd(a) : void 0
|
|
4030
4105
|
}
|
|
4031
4106
|
}
|
|
@@ -4067,8 +4142,8 @@ class vr {
|
|
|
4067
4142
|
async resetPassword(e) {
|
|
4068
4143
|
return await this.accountService.resetPassword({
|
|
4069
4144
|
input: {
|
|
4070
|
-
mobileNumber:
|
|
4071
|
-
newPassword: await
|
|
4145
|
+
mobileNumber: V(e.mobileNumber, await this.locale),
|
|
4146
|
+
newPassword: await S(e.newPassword)
|
|
4072
4147
|
},
|
|
4073
4148
|
verificationCode: e.verificationCode
|
|
4074
4149
|
});
|
|
@@ -4094,7 +4169,7 @@ class vr {
|
|
|
4094
4169
|
return await this.accountService.sendVerificationCode({
|
|
4095
4170
|
input: {
|
|
4096
4171
|
channel: "SMS",
|
|
4097
|
-
recipient:
|
|
4172
|
+
recipient: V(e, await this.locale)
|
|
4098
4173
|
}
|
|
4099
4174
|
});
|
|
4100
4175
|
}
|
|
@@ -4102,7 +4177,7 @@ class vr {
|
|
|
4102
4177
|
if (e.type === "SMS")
|
|
4103
4178
|
return this.authService.sendVerificationCode({
|
|
4104
4179
|
channel: "SMS",
|
|
4105
|
-
recipient:
|
|
4180
|
+
recipient: V(e.mobileNumber, await this.locale),
|
|
4106
4181
|
...e.strict && {
|
|
4107
4182
|
verificationType: "MEMBER"
|
|
4108
4183
|
}
|
|
@@ -4156,7 +4231,7 @@ class vr {
|
|
|
4156
4231
|
input: {
|
|
4157
4232
|
id: t,
|
|
4158
4233
|
amount: e.amount.toString(),
|
|
4159
|
-
transactionPassword: await
|
|
4234
|
+
transactionPassword: await S(e.transactionPassword)
|
|
4160
4235
|
},
|
|
4161
4236
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
4162
4237
|
});
|
|
@@ -4167,8 +4242,8 @@ class vr {
|
|
|
4167
4242
|
input: {
|
|
4168
4243
|
id: t,
|
|
4169
4244
|
amount: e.amount.toString(),
|
|
4170
|
-
transactionPassword: await
|
|
4171
|
-
recipientMobileNumber:
|
|
4245
|
+
transactionPassword: await S(e.transactionPassword),
|
|
4246
|
+
recipientMobileNumber: V(e.recipientMobileNumber, await this.locale)
|
|
4172
4247
|
},
|
|
4173
4248
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
4174
4249
|
});
|
|
@@ -4179,8 +4254,8 @@ class vr {
|
|
|
4179
4254
|
input: {
|
|
4180
4255
|
id: t,
|
|
4181
4256
|
amount: e.amount.toString(),
|
|
4182
|
-
transactionPassword: await
|
|
4183
|
-
recipientMobileNumber:
|
|
4257
|
+
transactionPassword: await S(e.transactionPassword),
|
|
4258
|
+
recipientMobileNumber: V(e.recipientMobileNumber, await this.locale)
|
|
4184
4259
|
},
|
|
4185
4260
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
4186
4261
|
});
|
|
@@ -4191,7 +4266,7 @@ class vr {
|
|
|
4191
4266
|
input: {
|
|
4192
4267
|
id: t,
|
|
4193
4268
|
amount: e.amount.toString(),
|
|
4194
|
-
transactionPassword: await
|
|
4269
|
+
transactionPassword: await S(e.transactionPassword)
|
|
4195
4270
|
},
|
|
4196
4271
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
4197
4272
|
});
|
|
@@ -4204,7 +4279,7 @@ class vr {
|
|
|
4204
4279
|
amount: e.amount.toString(),
|
|
4205
4280
|
bankCode: e.bankCode,
|
|
4206
4281
|
accountNumber: e.accountNumber,
|
|
4207
|
-
transactionPassword: await
|
|
4282
|
+
transactionPassword: await S(e.transactionPassword)
|
|
4208
4283
|
},
|
|
4209
4284
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
4210
4285
|
});
|
|
@@ -4380,12 +4455,12 @@ class vr {
|
|
|
4380
4455
|
ok: !0,
|
|
4381
4456
|
data: {
|
|
4382
4457
|
betRecords: t.data.edges.map(({ cursor: m, node: s }) => {
|
|
4383
|
-
var
|
|
4384
|
-
const
|
|
4458
|
+
var c;
|
|
4459
|
+
const u = (c = a.data.edges.find((p) => s.game.id === p.node.reference)) == null ? void 0 : c.node;
|
|
4385
4460
|
return {
|
|
4386
4461
|
...this.transformer.transform.betRecord({
|
|
4387
4462
|
...s,
|
|
4388
|
-
game:
|
|
4463
|
+
game: u
|
|
4389
4464
|
}),
|
|
4390
4465
|
cursor: m
|
|
4391
4466
|
};
|
|
@@ -4416,7 +4491,7 @@ class vr {
|
|
|
4416
4491
|
ok: !0,
|
|
4417
4492
|
data: e.data.map((a) => {
|
|
4418
4493
|
var s;
|
|
4419
|
-
const m = (s = r.data.edges.find((
|
|
4494
|
+
const m = (s = r.data.edges.find((u) => u.node.reference === a.game.id)) == null ? void 0 : s.node;
|
|
4420
4495
|
return this.transformer.transform.latestBetRecord({
|
|
4421
4496
|
...a,
|
|
4422
4497
|
game: m
|
|
@@ -4525,6 +4600,21 @@ class vr {
|
|
|
4525
4600
|
}
|
|
4526
4601
|
} : t;
|
|
4527
4602
|
}
|
|
4603
|
+
async games__next(e) {
|
|
4604
|
+
const t = await this.cmsPortalService.games__next(e);
|
|
4605
|
+
return t.ok ? {
|
|
4606
|
+
ok: !0,
|
|
4607
|
+
data: {
|
|
4608
|
+
games: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
4609
|
+
...this.transformer.transform.game(a),
|
|
4610
|
+
cursor: r
|
|
4611
|
+
})),
|
|
4612
|
+
totalCount: t.data.totalCount,
|
|
4613
|
+
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
4614
|
+
endCursor: t.data.pageInfo.endCursor ?? void 0
|
|
4615
|
+
}
|
|
4616
|
+
} : t;
|
|
4617
|
+
}
|
|
4528
4618
|
async recommendedGames(e) {
|
|
4529
4619
|
const t = await this.portalService.recommendedGames();
|
|
4530
4620
|
if (!t.ok) return t;
|
|
@@ -4597,7 +4687,7 @@ class vr {
|
|
|
4597
4687
|
message: "Game does not exist"
|
|
4598
4688
|
}
|
|
4599
4689
|
};
|
|
4600
|
-
const { provider: m, reference: s } = a.data,
|
|
4690
|
+
const { provider: m, reference: s } = a.data, c = [
|
|
4601
4691
|
/**/
|
|
4602
4692
|
"RTG",
|
|
4603
4693
|
"DARWIN",
|
|
@@ -4608,7 +4698,7 @@ class vr {
|
|
|
4608
4698
|
"EVOLUTION_REDTIGER",
|
|
4609
4699
|
"HOLLYWOODTV"
|
|
4610
4700
|
].includes(m) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
4611
|
-
return
|
|
4701
|
+
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
4612
4702
|
}
|
|
4613
4703
|
async endGameSession(e) {
|
|
4614
4704
|
const t = await this.walletService.endGameSession({ input: { id: e } });
|
|
@@ -4813,10 +4903,22 @@ class vr {
|
|
|
4813
4903
|
async skipOnboarding() {
|
|
4814
4904
|
return await this.portalService.skipOnboarding();
|
|
4815
4905
|
}
|
|
4906
|
+
/**/
|
|
4907
|
+
/*+----------------------------------------+*/
|
|
4908
|
+
/*+ QUEST +*/
|
|
4909
|
+
/*+----------------------------------------+*/
|
|
4910
|
+
/**/
|
|
4911
|
+
async availableQuests() {
|
|
4912
|
+
const e = await this.triggerService.availableQuests();
|
|
4913
|
+
return e.ok ? {
|
|
4914
|
+
ok: !0,
|
|
4915
|
+
data: e.data.map(this.transformer.transform.quest)
|
|
4916
|
+
} : e;
|
|
4917
|
+
}
|
|
4816
4918
|
}
|
|
4817
4919
|
export {
|
|
4818
4920
|
Or as ObjectId,
|
|
4819
4921
|
Q as ObjectType,
|
|
4820
|
-
|
|
4922
|
+
Gr as Sdk
|
|
4821
4923
|
};
|
|
4822
4924
|
//# sourceMappingURL=index.mjs.map
|