@opexa/portal-sdk 0.0.135 → 0.0.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +42 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +214 -177
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +17 -13
- package/dist/services/types.d.ts +23 -17
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var Fe = Object.defineProperty;
|
|
|
2
2
|
var Ve = (o, e, t) => e in o ? Fe(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var c = (o, e, t) => Ve(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as H } from "@opexa/object-id";
|
|
5
|
-
import { ObjectId as
|
|
5
|
+
import { ObjectId as Ia } from "@opexa/object-id";
|
|
6
6
|
const Y = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -107,7 +107,7 @@ const Re = i`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`, We = {
|
|
111
111
|
current: i`
|
|
112
112
|
query GameSession($id: ObjectId!) {
|
|
113
113
|
node(id: $id) {
|
|
@@ -447,7 +447,7 @@ const Re = i`
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
`,
|
|
450
|
+
`, ut = i`
|
|
451
451
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
452
452
|
createMayaDeposit(input: $input) {
|
|
453
453
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -505,7 +505,7 @@ const Re = i`
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
`,
|
|
508
|
+
`, dt = i`
|
|
509
509
|
mutation CreateAIOQRPHDeposit($input: CreateAIOQRPHDepositInput!) {
|
|
510
510
|
createAIOQRPHDeposit(input: $input) {
|
|
511
511
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -694,7 +694,7 @@ const Re = i`
|
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
`,
|
|
697
|
+
`, Me = i`
|
|
698
698
|
${Re}
|
|
699
699
|
|
|
700
700
|
fragment PromoFragment on Promo {
|
|
@@ -716,7 +716,7 @@ const Re = i`
|
|
|
716
716
|
dateTimeLastUpdated
|
|
717
717
|
}
|
|
718
718
|
`, gt = i`
|
|
719
|
-
${
|
|
719
|
+
${Me}
|
|
720
720
|
|
|
721
721
|
query Promos {
|
|
722
722
|
promos {
|
|
@@ -724,7 +724,7 @@ const Re = i`
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
`, bt = i`
|
|
727
|
-
${
|
|
727
|
+
${Me}
|
|
728
728
|
|
|
729
729
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
730
730
|
availablePromos(filter: $filter) {
|
|
@@ -735,21 +735,23 @@ const Re = i`
|
|
|
735
735
|
fragment SpotBonusFragment on SpotBonusPromo {
|
|
736
736
|
id
|
|
737
737
|
name
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
id
|
|
741
|
-
url
|
|
742
|
-
mimeType
|
|
743
|
-
}
|
|
744
|
-
bonusAmount
|
|
738
|
+
type
|
|
739
|
+
status
|
|
745
740
|
daysToClear
|
|
746
741
|
zeroOutThreshold
|
|
747
742
|
turnoverRequirementMultiplier
|
|
748
743
|
turnoverRequirementType
|
|
749
744
|
minimumTicketOddFactorPerSportsGameProvider
|
|
750
745
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
746
|
+
bonusAmount
|
|
751
747
|
enabledGameProviders
|
|
752
748
|
activationStartDateTime
|
|
749
|
+
activationEndDateTime
|
|
750
|
+
banner {
|
|
751
|
+
id
|
|
752
|
+
url
|
|
753
|
+
}
|
|
754
|
+
description
|
|
753
755
|
dateTimeCreated
|
|
754
756
|
dateTimeLastUpdated
|
|
755
757
|
dateTimeClosed
|
|
@@ -777,7 +779,7 @@ const Re = i`
|
|
|
777
779
|
...SpotBonusFragment
|
|
778
780
|
}
|
|
779
781
|
}
|
|
780
|
-
`,
|
|
782
|
+
`, qe = i`
|
|
781
783
|
${Re}
|
|
782
784
|
|
|
783
785
|
fragment CashbackFragment on Cashback {
|
|
@@ -797,15 +799,15 @@ const Re = i`
|
|
|
797
799
|
dateTimeLastUpdated
|
|
798
800
|
}
|
|
799
801
|
`, St = i`
|
|
800
|
-
${
|
|
802
|
+
${qe}
|
|
801
803
|
|
|
802
804
|
query Cashbacks {
|
|
803
805
|
cashbacks {
|
|
804
806
|
...CashbackFragment
|
|
805
807
|
}
|
|
806
808
|
}
|
|
807
|
-
`,
|
|
808
|
-
${
|
|
809
|
+
`, Ct = i`
|
|
810
|
+
${Me}
|
|
809
811
|
|
|
810
812
|
query Bonus {
|
|
811
813
|
bonus {
|
|
@@ -833,8 +835,8 @@ const Re = i`
|
|
|
833
835
|
dateTimeLastUpdated
|
|
834
836
|
}
|
|
835
837
|
}
|
|
836
|
-
`,
|
|
837
|
-
${
|
|
838
|
+
`, kt = i`
|
|
839
|
+
${Me}
|
|
838
840
|
|
|
839
841
|
query Bonuses {
|
|
840
842
|
bonuses {
|
|
@@ -863,7 +865,7 @@ const Re = i`
|
|
|
863
865
|
}
|
|
864
866
|
}
|
|
865
867
|
`, _t = i`
|
|
866
|
-
${
|
|
868
|
+
${qe}
|
|
867
869
|
|
|
868
870
|
query CashbackBonuses {
|
|
869
871
|
cashbackBonuses {
|
|
@@ -893,7 +895,7 @@ i`
|
|
|
893
895
|
}
|
|
894
896
|
}
|
|
895
897
|
`;
|
|
896
|
-
const
|
|
898
|
+
const Dt = i`
|
|
897
899
|
query MemberAccount {
|
|
898
900
|
memberAccount: self {
|
|
899
901
|
... on MemberAccount {
|
|
@@ -942,7 +944,7 @@ const Mt = i`
|
|
|
942
944
|
}
|
|
943
945
|
}
|
|
944
946
|
}
|
|
945
|
-
`,
|
|
947
|
+
`, Mt = i`
|
|
946
948
|
mutation RegisterMemberAccount(
|
|
947
949
|
$input: RegisterMemberAccountInput!
|
|
948
950
|
$referralCode: String
|
|
@@ -1005,7 +1007,7 @@ const Mt = i`
|
|
|
1005
1007
|
}
|
|
1006
1008
|
}
|
|
1007
1009
|
}
|
|
1008
|
-
`,
|
|
1010
|
+
`, vt = i`
|
|
1009
1011
|
mutation RegisterMemberAccount(
|
|
1010
1012
|
$input: RegisterMemberAccountInput_next!
|
|
1011
1013
|
$reCAPTCHAResponse: String
|
|
@@ -1037,7 +1039,7 @@ const Mt = i`
|
|
|
1037
1039
|
}
|
|
1038
1040
|
}
|
|
1039
1041
|
}
|
|
1040
|
-
`,
|
|
1042
|
+
`, It = i`
|
|
1041
1043
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
1042
1044
|
registerMayaMemberAccount(input: $input) {
|
|
1043
1045
|
... on AccountNameNotAvailableError {
|
|
@@ -1082,11 +1084,11 @@ const Mt = i`
|
|
|
1082
1084
|
}
|
|
1083
1085
|
}
|
|
1084
1086
|
}
|
|
1085
|
-
`,
|
|
1087
|
+
`, Bt = i`
|
|
1086
1088
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
1087
1089
|
deleteMemberAccount(input: $input)
|
|
1088
1090
|
}
|
|
1089
|
-
`,
|
|
1091
|
+
`, Ot = i`
|
|
1090
1092
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
1091
1093
|
verifyMobileNumber(input: $input) {
|
|
1092
1094
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -1097,7 +1099,7 @@ const Mt = i`
|
|
|
1097
1099
|
}
|
|
1098
1100
|
}
|
|
1099
1101
|
}
|
|
1100
|
-
`,
|
|
1102
|
+
`, Wt = i`
|
|
1101
1103
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
1102
1104
|
createMemberVerification(input: $input) {
|
|
1103
1105
|
... on FileDoesNotExistError {
|
|
@@ -1139,7 +1141,7 @@ const Mt = i`
|
|
|
1139
1141
|
accountPassword
|
|
1140
1142
|
}
|
|
1141
1143
|
}
|
|
1142
|
-
`,
|
|
1144
|
+
`, qt = i`
|
|
1143
1145
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
1144
1146
|
sendVerificationCode(input: $input) {
|
|
1145
1147
|
... on InvalidPlatformError {
|
|
@@ -1150,7 +1152,7 @@ const Mt = i`
|
|
|
1150
1152
|
}
|
|
1151
1153
|
}
|
|
1152
1154
|
}
|
|
1153
|
-
`,
|
|
1155
|
+
`, $t = i`
|
|
1154
1156
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
1155
1157
|
minimumAmount
|
|
1156
1158
|
maximumAmount
|
|
@@ -1492,7 +1494,7 @@ const Mt = i`
|
|
|
1492
1494
|
skipOnboarding
|
|
1493
1495
|
}
|
|
1494
1496
|
`;
|
|
1495
|
-
function
|
|
1497
|
+
function d(o) {
|
|
1496
1498
|
return {
|
|
1497
1499
|
name: o,
|
|
1498
1500
|
message: {
|
|
@@ -1552,24 +1554,24 @@ function u(o) {
|
|
|
1552
1554
|
}[o]
|
|
1553
1555
|
};
|
|
1554
1556
|
}
|
|
1555
|
-
class
|
|
1557
|
+
class ua {
|
|
1556
1558
|
constructor(e) {
|
|
1557
1559
|
c(this, "client");
|
|
1558
1560
|
this.client = e;
|
|
1559
1561
|
}
|
|
1560
1562
|
/** aka `Query.self` */
|
|
1561
1563
|
async memberAccount() {
|
|
1562
|
-
const e = await this.client.request(
|
|
1564
|
+
const e = await this.client.request(Dt);
|
|
1563
1565
|
return e.ok ? {
|
|
1564
1566
|
ok: !0,
|
|
1565
1567
|
data: e.data.memberAccount
|
|
1566
1568
|
} : e;
|
|
1567
1569
|
}
|
|
1568
1570
|
async registerMemberAccount(e) {
|
|
1569
|
-
const t = await this.client.request(
|
|
1571
|
+
const t = await this.client.request(Mt, e);
|
|
1570
1572
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1571
1573
|
ok: !1,
|
|
1572
|
-
error:
|
|
1574
|
+
error: d(t.data.registerMemberAccount.__typename)
|
|
1573
1575
|
} : {
|
|
1574
1576
|
ok: !0
|
|
1575
1577
|
} : t;
|
|
@@ -1578,16 +1580,16 @@ class da {
|
|
|
1578
1580
|
const t = await this.client.request(Nt, e);
|
|
1579
1581
|
return t.ok ? t.data.registerMemberAccountViaMobile ? {
|
|
1580
1582
|
ok: !1,
|
|
1581
|
-
error:
|
|
1583
|
+
error: d(t.data.registerMemberAccountViaMobile.__typename)
|
|
1582
1584
|
} : {
|
|
1583
1585
|
ok: !0
|
|
1584
1586
|
} : t;
|
|
1585
1587
|
}
|
|
1586
1588
|
async registerMemberAccount__next(e) {
|
|
1587
|
-
const t = await this.client.request(
|
|
1589
|
+
const t = await this.client.request(vt, e);
|
|
1588
1590
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1589
1591
|
ok: !1,
|
|
1590
|
-
error:
|
|
1592
|
+
error: d(t.data.registerMemberAccount.__typename)
|
|
1591
1593
|
} : {
|
|
1592
1594
|
ok: !0
|
|
1593
1595
|
} : t;
|
|
@@ -1596,13 +1598,13 @@ class da {
|
|
|
1596
1598
|
const t = await this.client.request(Gt, e);
|
|
1597
1599
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1598
1600
|
ok: !1,
|
|
1599
|
-
error:
|
|
1601
|
+
error: d(t.data.updateMemberAccount.__typename)
|
|
1600
1602
|
} : {
|
|
1601
1603
|
ok: !0
|
|
1602
1604
|
} : t;
|
|
1603
1605
|
}
|
|
1604
1606
|
async deleteMemberAccount(e) {
|
|
1605
|
-
const t = await this.client.request(
|
|
1607
|
+
const t = await this.client.request(Bt, e);
|
|
1606
1608
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1607
1609
|
ok: !0
|
|
1608
1610
|
} : {
|
|
@@ -1620,7 +1622,7 @@ class da {
|
|
|
1620
1622
|
);
|
|
1621
1623
|
return t.ok ? t.data.resetPassword ? {
|
|
1622
1624
|
ok: !1,
|
|
1623
|
-
error:
|
|
1625
|
+
error: d(t.data.resetPassword.__typename)
|
|
1624
1626
|
} : {
|
|
1625
1627
|
ok: !0
|
|
1626
1628
|
} : t;
|
|
@@ -1631,14 +1633,14 @@ class da {
|
|
|
1631
1633
|
}
|
|
1632
1634
|
/** @deprecated */
|
|
1633
1635
|
async platform() {
|
|
1634
|
-
return await this.client.request(
|
|
1636
|
+
return await this.client.request($t);
|
|
1635
1637
|
}
|
|
1636
1638
|
/** @deprecated */
|
|
1637
1639
|
async sendVerificationCode(e) {
|
|
1638
|
-
const t = await this.client.request(
|
|
1640
|
+
const t = await this.client.request(qt, e);
|
|
1639
1641
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1640
1642
|
ok: !1,
|
|
1641
|
-
error:
|
|
1643
|
+
error: d(t.data.sendVerificationCode.__typename)
|
|
1642
1644
|
} : {
|
|
1643
1645
|
ok: !0
|
|
1644
1646
|
} : t;
|
|
@@ -1647,19 +1649,19 @@ class da {
|
|
|
1647
1649
|
return await this.client.request(Ft);
|
|
1648
1650
|
}
|
|
1649
1651
|
async verifyMobileNumber(e) {
|
|
1650
|
-
const t = await this.client.request(
|
|
1652
|
+
const t = await this.client.request(Ot, e);
|
|
1651
1653
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1652
1654
|
ok: !1,
|
|
1653
|
-
error:
|
|
1655
|
+
error: d(t.data.verifyMobileNumber.__typename)
|
|
1654
1656
|
} : {
|
|
1655
1657
|
ok: !0
|
|
1656
1658
|
} : t;
|
|
1657
1659
|
}
|
|
1658
1660
|
async createMemberVerification(e) {
|
|
1659
|
-
const t = await this.client.request(
|
|
1661
|
+
const t = await this.client.request(Wt, e);
|
|
1660
1662
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1661
1663
|
ok: !1,
|
|
1662
|
-
error:
|
|
1664
|
+
error: d(t.data.createMemberVerification.__typename)
|
|
1663
1665
|
} : {
|
|
1664
1666
|
ok: !0
|
|
1665
1667
|
} : t;
|
|
@@ -1668,7 +1670,7 @@ class da {
|
|
|
1668
1670
|
const t = await this.client.request(xt, e);
|
|
1669
1671
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1670
1672
|
ok: !1,
|
|
1671
|
-
error:
|
|
1673
|
+
error: d(t.data.updateMemberVerification.__typename)
|
|
1672
1674
|
} : {
|
|
1673
1675
|
ok: !0
|
|
1674
1676
|
} : t;
|
|
@@ -1691,10 +1693,10 @@ class da {
|
|
|
1691
1693
|
} : t;
|
|
1692
1694
|
}
|
|
1693
1695
|
async registerMayaMemberAccount(e) {
|
|
1694
|
-
const t = await this.client.request(
|
|
1696
|
+
const t = await this.client.request(It, e);
|
|
1695
1697
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1696
1698
|
ok: !1,
|
|
1697
|
-
error:
|
|
1699
|
+
error: d(t.data.registerMayaMemberAccount.__typename)
|
|
1698
1700
|
} : {
|
|
1699
1701
|
ok: !0
|
|
1700
1702
|
} : t;
|
|
@@ -1710,7 +1712,7 @@ class da {
|
|
|
1710
1712
|
const t = await this.client.request(jt, e);
|
|
1711
1713
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1712
1714
|
ok: !1,
|
|
1713
|
-
error:
|
|
1715
|
+
error: d(t.data.updateReferralCode.__typename)
|
|
1714
1716
|
} : {
|
|
1715
1717
|
ok: !0
|
|
1716
1718
|
} : t;
|
|
@@ -1767,10 +1769,10 @@ class ca {
|
|
|
1767
1769
|
data: r
|
|
1768
1770
|
} : r.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1769
1771
|
ok: !1,
|
|
1770
|
-
error:
|
|
1772
|
+
error: d("AccountBlacklistedError")
|
|
1771
1773
|
} : r.code === "INVALID_RECAPTCHA_RESPONSE" ? {
|
|
1772
1774
|
ok: !1,
|
|
1773
|
-
error:
|
|
1775
|
+
error: d("InvalidReCAPTCHAResponseError")
|
|
1774
1776
|
} : {
|
|
1775
1777
|
ok: !1,
|
|
1776
1778
|
error: y(a.status)
|
|
@@ -1799,7 +1801,7 @@ class ca {
|
|
|
1799
1801
|
data: r
|
|
1800
1802
|
} : a.status === 401 || a.status === 403 ? {
|
|
1801
1803
|
ok: !1,
|
|
1802
|
-
error:
|
|
1804
|
+
error: d("InvalidTokenOrSecretAnswerError")
|
|
1803
1805
|
} : {
|
|
1804
1806
|
ok: !1,
|
|
1805
1807
|
error: y(a.status)
|
|
@@ -1826,10 +1828,10 @@ class ca {
|
|
|
1826
1828
|
data: r
|
|
1827
1829
|
} : r.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1828
1830
|
ok: !1,
|
|
1829
|
-
error:
|
|
1831
|
+
error: d("AccountBlacklistedError")
|
|
1830
1832
|
} : a.status === 403 || a.status === 401 ? {
|
|
1831
1833
|
ok: !1,
|
|
1832
|
-
error:
|
|
1834
|
+
error: d("InvalidTokenError")
|
|
1833
1835
|
} : {
|
|
1834
1836
|
ok: !1,
|
|
1835
1837
|
error: y(a.status)
|
|
@@ -1890,7 +1892,7 @@ class ca {
|
|
|
1890
1892
|
const r = await a.json(), s = t(r.message);
|
|
1891
1893
|
return s ? {
|
|
1892
1894
|
ok: !1,
|
|
1893
|
-
error:
|
|
1895
|
+
error: d(s)
|
|
1894
1896
|
} : {
|
|
1895
1897
|
ok: !1,
|
|
1896
1898
|
error: y(a.status, r.message)
|
|
@@ -1908,7 +1910,7 @@ class ca {
|
|
|
1908
1910
|
}
|
|
1909
1911
|
}
|
|
1910
1912
|
}
|
|
1911
|
-
class
|
|
1913
|
+
class da {
|
|
1912
1914
|
constructor(e) {
|
|
1913
1915
|
c(this, "url");
|
|
1914
1916
|
c(this, "siteId");
|
|
@@ -1923,15 +1925,15 @@ class ua {
|
|
|
1923
1925
|
} : e;
|
|
1924
1926
|
}
|
|
1925
1927
|
async games(e) {
|
|
1926
|
-
var r, s, m,
|
|
1928
|
+
var r, s, m, u, l, f, w, p, C, k, _, T, D, R, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V;
|
|
1927
1929
|
const t = new URLSearchParams();
|
|
1928
|
-
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), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (
|
|
1930
|
+
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), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (p = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (R = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.provider) != null && R.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (P = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && P.in && t.set(
|
|
1929
1931
|
"filter[tags][in]",
|
|
1930
1932
|
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1931
|
-
), (
|
|
1933
|
+
), (B = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && B.notIn && t.set(
|
|
1932
1934
|
"filter[tags][nin]",
|
|
1933
1935
|
e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
|
|
1934
|
-
), (x = (
|
|
1936
|
+
), (x = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.reference) != null && x.equal && t.set("filter[reference][eq]", e.filter.reference.equal), (q = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.reference) != null && q.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(",")), (V = (F = e == null ? void 0 : e.filter) == null ? void 0 : F.reference) != null && V.notIn && t.set("filter[reference][nin]", e.filter.reference.notIn.join(",")), e != null && e.sort && t.set("sort[order]", e.sort);
|
|
1935
1937
|
const a = await this.getJson("/games", t);
|
|
1936
1938
|
return a.ok ? {
|
|
1937
1939
|
ok: !0,
|
|
@@ -2002,7 +2004,7 @@ class la {
|
|
|
2002
2004
|
const t = await this.client.upload(Ye, e);
|
|
2003
2005
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
2004
2006
|
ok: !1,
|
|
2005
|
-
error:
|
|
2007
|
+
error: d(t.data.uploadPrivateImageFile.__typename)
|
|
2006
2008
|
} : {
|
|
2007
2009
|
ok: !0
|
|
2008
2010
|
} : t;
|
|
@@ -2015,7 +2017,7 @@ class pa {
|
|
|
2015
2017
|
}
|
|
2016
2018
|
async gameSession(e) {
|
|
2017
2019
|
const t = await this.client.request(
|
|
2018
|
-
|
|
2020
|
+
We.legacy,
|
|
2019
2021
|
e
|
|
2020
2022
|
);
|
|
2021
2023
|
return t.ok ? {
|
|
@@ -2027,7 +2029,7 @@ class pa {
|
|
|
2027
2029
|
const t = await this.client.request(xe, e);
|
|
2028
2030
|
return t.ok ? t.data.createGameSession ? {
|
|
2029
2031
|
ok: !1,
|
|
2030
|
-
error:
|
|
2032
|
+
error: d(t.data.createGameSession.__typename)
|
|
2031
2033
|
} : {
|
|
2032
2034
|
ok: !0
|
|
2033
2035
|
} : t;
|
|
@@ -2238,7 +2240,7 @@ class ya {
|
|
|
2238
2240
|
);
|
|
2239
2241
|
return t.ok ? t.data.claimReward ? {
|
|
2240
2242
|
ok: !1,
|
|
2241
|
-
error:
|
|
2243
|
+
error: d(t.data.claimReward.__typename)
|
|
2242
2244
|
} : {
|
|
2243
2245
|
ok: !0
|
|
2244
2246
|
} : t;
|
|
@@ -2272,7 +2274,7 @@ class ha {
|
|
|
2272
2274
|
const t = await this.client.request(Tt, e);
|
|
2273
2275
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
2274
2276
|
ok: !1,
|
|
2275
|
-
error:
|
|
2277
|
+
error: d(t.data.claimCashbackBonus.__typename)
|
|
2276
2278
|
} : {
|
|
2277
2279
|
ok: !0
|
|
2278
2280
|
} : {
|
|
@@ -2281,7 +2283,7 @@ class ha {
|
|
|
2281
2283
|
};
|
|
2282
2284
|
}
|
|
2283
2285
|
async bonus() {
|
|
2284
|
-
const e = await this.client.request(
|
|
2286
|
+
const e = await this.client.request(Ct);
|
|
2285
2287
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
2286
2288
|
}
|
|
2287
2289
|
async wallet() {
|
|
@@ -2299,25 +2301,25 @@ class ha {
|
|
|
2299
2301
|
const t = await this.client.request(mt, e);
|
|
2300
2302
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
2301
2303
|
ok: !1,
|
|
2302
|
-
error:
|
|
2304
|
+
error: d(t.data.createGCashDeposit.__typename)
|
|
2303
2305
|
} : {
|
|
2304
2306
|
ok: !0
|
|
2305
2307
|
} : t;
|
|
2306
2308
|
}
|
|
2307
2309
|
async createMayaDeposit(e) {
|
|
2308
|
-
const t = await this.client.request(
|
|
2310
|
+
const t = await this.client.request(ut, e);
|
|
2309
2311
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
2310
2312
|
ok: !1,
|
|
2311
|
-
error:
|
|
2313
|
+
error: d(t.data.createMayaDeposit.__typename)
|
|
2312
2314
|
} : {
|
|
2313
2315
|
ok: !0
|
|
2314
2316
|
} : t;
|
|
2315
2317
|
}
|
|
2316
2318
|
async createAIOQRPHDeposit(e) {
|
|
2317
|
-
const t = await this.client.request(
|
|
2319
|
+
const t = await this.client.request(dt, e);
|
|
2318
2320
|
return t.ok ? t.data.createAIOQRPHDeposit ? {
|
|
2319
2321
|
ok: !1,
|
|
2320
|
-
error:
|
|
2322
|
+
error: d(t.data.createAIOQRPHDeposit.__typename)
|
|
2321
2323
|
} : {
|
|
2322
2324
|
ok: !0
|
|
2323
2325
|
} : t;
|
|
@@ -2326,7 +2328,7 @@ class ha {
|
|
|
2326
2328
|
const t = await this.client.request(lt, e);
|
|
2327
2329
|
return t.ok ? t.data.createAIOOnlineBankDeposit ? {
|
|
2328
2330
|
ok: !1,
|
|
2329
|
-
error:
|
|
2331
|
+
error: d(t.data.createAIOOnlineBankDeposit.__typename)
|
|
2330
2332
|
} : {
|
|
2331
2333
|
ok: !0
|
|
2332
2334
|
} : t;
|
|
@@ -2335,7 +2337,7 @@ class ha {
|
|
|
2335
2337
|
const t = await this.client.request(ct, e);
|
|
2336
2338
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
2337
2339
|
ok: !1,
|
|
2338
|
-
error:
|
|
2340
|
+
error: d(t.data.createMayaAppDeposit.__typename)
|
|
2339
2341
|
} : {
|
|
2340
2342
|
ok: !0
|
|
2341
2343
|
} : t;
|
|
@@ -2344,7 +2346,7 @@ class ha {
|
|
|
2344
2346
|
const t = await this.client.request(et, e);
|
|
2345
2347
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
2346
2348
|
ok: !1,
|
|
2347
|
-
error:
|
|
2349
|
+
error: d(t.data.createGCashWithdrawal.__typename)
|
|
2348
2350
|
} : {
|
|
2349
2351
|
ok: !0
|
|
2350
2352
|
} : t;
|
|
@@ -2353,7 +2355,7 @@ class ha {
|
|
|
2353
2355
|
const t = await this.client.request(tt, e);
|
|
2354
2356
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
2355
2357
|
ok: !1,
|
|
2356
|
-
error:
|
|
2358
|
+
error: d(t.data.createMayaWithdrawal.__typename)
|
|
2357
2359
|
} : {
|
|
2358
2360
|
ok: !0
|
|
2359
2361
|
} : t;
|
|
@@ -2362,7 +2364,7 @@ class ha {
|
|
|
2362
2364
|
const t = await this.client.request(at, e);
|
|
2363
2365
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
2364
2366
|
ok: !1,
|
|
2365
|
-
error:
|
|
2367
|
+
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
2366
2368
|
} : {
|
|
2367
2369
|
ok: !0
|
|
2368
2370
|
} : t;
|
|
@@ -2371,7 +2373,7 @@ class ha {
|
|
|
2371
2373
|
const t = await this.client.request(rt, e);
|
|
2372
2374
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
2373
2375
|
ok: !1,
|
|
2374
|
-
error:
|
|
2376
|
+
error: d(t.data.createBankWithdrawal.__typename)
|
|
2375
2377
|
} : {
|
|
2376
2378
|
ok: !0
|
|
2377
2379
|
} : t;
|
|
@@ -2380,7 +2382,7 @@ class ha {
|
|
|
2380
2382
|
const t = await this.client.request(nt, e);
|
|
2381
2383
|
return t.ok ? t.data.createAIOInstapayWithdrawal ? {
|
|
2382
2384
|
ok: !1,
|
|
2383
|
-
error:
|
|
2385
|
+
error: d(t.data.createAIOInstapayWithdrawal.__typename)
|
|
2384
2386
|
} : {
|
|
2385
2387
|
ok: !0
|
|
2386
2388
|
} : t;
|
|
@@ -2403,7 +2405,7 @@ class ha {
|
|
|
2403
2405
|
const t = await this.client.request(Ke, e);
|
|
2404
2406
|
return t.ok ? t.data.redeemPointsToCash ? {
|
|
2405
2407
|
ok: !1,
|
|
2406
|
-
error:
|
|
2408
|
+
error: d(t.data.redeemPointsToCash.__typename)
|
|
2407
2409
|
} : {
|
|
2408
2410
|
ok: !0
|
|
2409
2411
|
} : t;
|
|
@@ -2417,7 +2419,7 @@ class ha {
|
|
|
2417
2419
|
}
|
|
2418
2420
|
async gameSession(e) {
|
|
2419
2421
|
const t = await this.client.request(
|
|
2420
|
-
|
|
2422
|
+
We.current,
|
|
2421
2423
|
e
|
|
2422
2424
|
);
|
|
2423
2425
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
@@ -2426,7 +2428,7 @@ class ha {
|
|
|
2426
2428
|
const t = await this.client.request(xe, e);
|
|
2427
2429
|
return t.ok ? t.data.createGameSession ? {
|
|
2428
2430
|
ok: !1,
|
|
2429
|
-
error:
|
|
2431
|
+
error: d(t.data.createGameSession.__typename)
|
|
2430
2432
|
} : {
|
|
2431
2433
|
ok: !0
|
|
2432
2434
|
} : t;
|
|
@@ -2461,7 +2463,7 @@ class ha {
|
|
|
2461
2463
|
} : e;
|
|
2462
2464
|
}
|
|
2463
2465
|
async bonuses() {
|
|
2464
|
-
const e = await this.client.request(
|
|
2466
|
+
const e = await this.client.request(kt);
|
|
2465
2467
|
return e.ok ? { ok: e.ok, data: e.data.bonuses ?? [] } : e;
|
|
2466
2468
|
}
|
|
2467
2469
|
async claimSpotBonus(e) {
|
|
@@ -2472,7 +2474,7 @@ class ha {
|
|
|
2472
2474
|
);
|
|
2473
2475
|
return t.ok ? t.data.claimSpotBonus ? {
|
|
2474
2476
|
ok: !1,
|
|
2475
|
-
error:
|
|
2477
|
+
error: d((a = t.data.claimSpotBonus) == null ? void 0 : a.__typename)
|
|
2476
2478
|
} : {
|
|
2477
2479
|
ok: !0
|
|
2478
2480
|
} : {
|
|
@@ -2488,7 +2490,7 @@ function j(o, e) {
|
|
|
2488
2490
|
const t = Pe(o);
|
|
2489
2491
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2490
2492
|
}
|
|
2491
|
-
function
|
|
2493
|
+
function ve(o, e) {
|
|
2492
2494
|
return o.getTime() > e.getTime();
|
|
2493
2495
|
}
|
|
2494
2496
|
class ga {
|
|
@@ -2509,13 +2511,13 @@ class ga {
|
|
|
2509
2511
|
}
|
|
2510
2512
|
get(e) {
|
|
2511
2513
|
const t = this.cache[e];
|
|
2512
|
-
return !t ||
|
|
2514
|
+
return !t || ve(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
|
|
2513
2515
|
}
|
|
2514
2516
|
}
|
|
2515
2517
|
function ba(o, e, t) {
|
|
2516
2518
|
return o < e ? e : o > t ? t : o;
|
|
2517
2519
|
}
|
|
2518
|
-
function
|
|
2520
|
+
function Ie(o) {
|
|
2519
2521
|
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
2520
2522
|
}
|
|
2521
2523
|
function Ea(o) {
|
|
@@ -2523,7 +2525,7 @@ function Ea(o) {
|
|
|
2523
2525
|
function t(a, r = []) {
|
|
2524
2526
|
for (const s in a) {
|
|
2525
2527
|
const m = a[s];
|
|
2526
|
-
|
|
2528
|
+
Ie(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(Aa(m), [...r, s]) : e.push({
|
|
2527
2529
|
key: [...r, s],
|
|
2528
2530
|
value: m
|
|
2529
2531
|
});
|
|
@@ -2548,7 +2550,7 @@ class Q {
|
|
|
2548
2550
|
r.set("Content-Type", "application/json"), r.set("Accept", "application/json");
|
|
2549
2551
|
const s = new URL(this.url), m = Sa(e);
|
|
2550
2552
|
m && s.searchParams.set(`_${m.type}`, m.name);
|
|
2551
|
-
const
|
|
2553
|
+
const u = await this.runMiddlewares(
|
|
2552
2554
|
new Request(s, {
|
|
2553
2555
|
...this.options,
|
|
2554
2556
|
body: a,
|
|
@@ -2556,7 +2558,7 @@ class Q {
|
|
|
2556
2558
|
method: "POST"
|
|
2557
2559
|
})
|
|
2558
2560
|
);
|
|
2559
|
-
return await this.exec(
|
|
2561
|
+
return await this.exec(u);
|
|
2560
2562
|
}
|
|
2561
2563
|
/** Single file upload */
|
|
2562
2564
|
async upload(e, t) {
|
|
@@ -2573,13 +2575,13 @@ class Q {
|
|
|
2573
2575
|
return await this.exec(s);
|
|
2574
2576
|
}
|
|
2575
2577
|
async exec(e) {
|
|
2576
|
-
var t, a, r, s, m,
|
|
2578
|
+
var t, a, r, s, m, u;
|
|
2577
2579
|
try {
|
|
2578
2580
|
const l = await fetch(e);
|
|
2579
2581
|
if (!l.ok)
|
|
2580
2582
|
return { ok: !1, error: y(l.status) };
|
|
2581
2583
|
const f = await l.json(), w = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
|
|
2582
|
-
return p ? ((a = p.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = p.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: y(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: y(401, p.message) } : ((m = p.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((
|
|
2584
|
+
return p ? ((a = p.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = p.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: y(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: y(401, p.message) } : ((m = p.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((u = p.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: y(400, p.message) } : {
|
|
2583
2585
|
ok: !1,
|
|
2584
2586
|
error: y(500, p.message)
|
|
2585
2587
|
} : {
|
|
@@ -2611,10 +2613,10 @@ class Q {
|
|
|
2611
2613
|
})
|
|
2612
2614
|
);
|
|
2613
2615
|
const s = {};
|
|
2614
|
-
return a.forEach((m,
|
|
2615
|
-
s[
|
|
2616
|
-
}), r.append("map", JSON.stringify(s)), a.forEach((m,
|
|
2617
|
-
r.append(
|
|
2616
|
+
return a.forEach((m, u) => {
|
|
2617
|
+
s[u.toString()] = [`variables.${m.key.join(".")}`];
|
|
2618
|
+
}), r.append("map", JSON.stringify(s)), a.forEach((m, u) => {
|
|
2619
|
+
r.append(u.toString(), m.value);
|
|
2618
2620
|
}), r;
|
|
2619
2621
|
}
|
|
2620
2622
|
}
|
|
@@ -2624,21 +2626,21 @@ function Sa(o) {
|
|
|
2624
2626
|
const t = e.at(1), a = e.at(2);
|
|
2625
2627
|
return t && a ? { type: t, name: a } : null;
|
|
2626
2628
|
}
|
|
2627
|
-
function
|
|
2629
|
+
function Ca(o) {
|
|
2628
2630
|
return o === "INR" ? "en-IN" : o === "MYR" ? "en-MY" : o === "IDR" ? "en-ID" : o === "USD" ? "en-US" : "en-PH";
|
|
2629
2631
|
}
|
|
2630
|
-
function
|
|
2632
|
+
function ka(o) {
|
|
2631
2633
|
return o === "en-IN" ? "+91" : o === "en-MY" ? "+60" : o === "en-ID" ? "+62" : o === "en-US" ? "+1" : "+63";
|
|
2632
2634
|
}
|
|
2633
|
-
function
|
|
2634
|
-
const t =
|
|
2635
|
+
function O(o, e) {
|
|
2636
|
+
const t = ka(e);
|
|
2635
2637
|
return o.startsWith(t) ? o : o.startsWith(t.substring(1)) ? `+${o}` : o.startsWith("0") ? `${t}${o.substring(1)}` : `${t}${o}`;
|
|
2636
2638
|
}
|
|
2637
2639
|
async function g(o) {
|
|
2638
2640
|
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
2639
2641
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
2640
2642
|
}
|
|
2641
|
-
class
|
|
2643
|
+
class $e {
|
|
2642
2644
|
constructor(e) {
|
|
2643
2645
|
c(this, "enabled");
|
|
2644
2646
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
@@ -2665,15 +2667,15 @@ function Le(o) {
|
|
|
2665
2667
|
setTimeout(e, o);
|
|
2666
2668
|
});
|
|
2667
2669
|
}
|
|
2668
|
-
function
|
|
2670
|
+
function Oe(o, e) {
|
|
2669
2671
|
const {
|
|
2670
2672
|
until: t,
|
|
2671
2673
|
interval: a = 1e3,
|
|
2672
2674
|
maxAttempt: r = 3
|
|
2673
2675
|
/**/
|
|
2674
2676
|
} = e;
|
|
2675
|
-
async function s(m,
|
|
2676
|
-
const l =
|
|
2677
|
+
async function s(m, u) {
|
|
2678
|
+
const l = u ?? r, f = await o(...m);
|
|
2677
2679
|
return t(f) ? f : l > 1 ? (await Le(a * ((r - l) / 2)), s(m, l - 1)) : f;
|
|
2678
2680
|
}
|
|
2679
2681
|
return async (...m) => await s(m);
|
|
@@ -2689,7 +2691,7 @@ class _a {
|
|
|
2689
2691
|
c(this, "authService");
|
|
2690
2692
|
c(this, "walletService");
|
|
2691
2693
|
c(this, "_refreshing", !1);
|
|
2692
|
-
this.authService = e.authService, this.walletService = e.walletService, this.logger = new
|
|
2694
|
+
this.authService = e.authService, this.walletService = e.walletService, this.logger = new $e({
|
|
2693
2695
|
enabled: e.logs ?? !1
|
|
2694
2696
|
});
|
|
2695
2697
|
}
|
|
@@ -2710,7 +2712,7 @@ class _a {
|
|
|
2710
2712
|
}
|
|
2711
2713
|
};
|
|
2712
2714
|
if (e.type === "MAYA") {
|
|
2713
|
-
const m = await
|
|
2715
|
+
const m = await Oe(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2714
2716
|
until: (w) => {
|
|
2715
2717
|
var p;
|
|
2716
2718
|
return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
|
|
@@ -2727,7 +2729,7 @@ class _a {
|
|
|
2727
2729
|
message: "Forbidden"
|
|
2728
2730
|
}
|
|
2729
2731
|
};
|
|
2730
|
-
const l = await
|
|
2732
|
+
const l = await Oe(() => this.authService.createSession(e), {
|
|
2731
2733
|
until: (w) => w.ok,
|
|
2732
2734
|
interval: 1e3,
|
|
2733
2735
|
maxAttempt: 5
|
|
@@ -2836,7 +2838,7 @@ class _a {
|
|
|
2836
2838
|
try {
|
|
2837
2839
|
let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
|
|
2838
2840
|
const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
|
|
2839
|
-
if (
|
|
2841
|
+
if (ve(a, s))
|
|
2840
2842
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
2841
2843
|
ok: !1,
|
|
2842
2844
|
error: {
|
|
@@ -2844,7 +2846,7 @@ class _a {
|
|
|
2844
2846
|
message: "Session expired."
|
|
2845
2847
|
}
|
|
2846
2848
|
};
|
|
2847
|
-
if (
|
|
2849
|
+
if (ve(a, r)) {
|
|
2848
2850
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
2849
2851
|
const m = await this.authService.refreshSession(t.refreshToken);
|
|
2850
2852
|
if (this.refreshing = !1, !m.ok)
|
|
@@ -2904,12 +2906,12 @@ function b(o) {
|
|
|
2904
2906
|
for (const t in o) {
|
|
2905
2907
|
const a = o[t];
|
|
2906
2908
|
if (a !== null && a !== void 0) {
|
|
2907
|
-
if (
|
|
2909
|
+
if (Ie(a)) {
|
|
2908
2910
|
e[t] = b(a);
|
|
2909
2911
|
continue;
|
|
2910
2912
|
}
|
|
2911
2913
|
if (Array.isArray(a)) {
|
|
2912
|
-
e[t] = a.map((r) =>
|
|
2914
|
+
e[t] = a.map((r) => Ie(r) ? b(r) : r);
|
|
2913
2915
|
continue;
|
|
2914
2916
|
}
|
|
2915
2917
|
e[t] = a;
|
|
@@ -2974,7 +2976,7 @@ class Ta {
|
|
|
2974
2976
|
}
|
|
2975
2977
|
/** @deprecated */
|
|
2976
2978
|
platform(e) {
|
|
2977
|
-
var t, a, r, s, m,
|
|
2979
|
+
var t, a, r, s, m, u, l, f, w, p, C, k, _, T, D, R, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V, E, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, Ce, ke, _e, Te, De, Be;
|
|
2978
2980
|
return {
|
|
2979
2981
|
timezone: e.timezone,
|
|
2980
2982
|
currency: e.currency,
|
|
@@ -2988,42 +2990,42 @@ class Ta {
|
|
|
2988
2990
|
webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
|
|
2989
2991
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2990
2992
|
minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
|
|
2991
|
-
maximumAmount: n((
|
|
2993
|
+
maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
2992
2994
|
},
|
|
2993
2995
|
gcash: {
|
|
2994
2996
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
2995
2997
|
iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
|
|
2996
2998
|
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
2997
2999
|
mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
|
|
2998
|
-
minimumAmount: n((
|
|
2999
|
-
maximumAmount: n((
|
|
3000
|
+
minimumAmount: n((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
|
|
3001
|
+
maximumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
|
|
3000
3002
|
},
|
|
3001
3003
|
maya: {
|
|
3002
3004
|
androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
|
|
3003
3005
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
3004
|
-
webEnabled: ((
|
|
3006
|
+
webEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
|
|
3005
3007
|
mobileWebEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.mobileWebEnabled) ?? !1,
|
|
3006
3008
|
minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
3007
|
-
maximumAmount: n((
|
|
3009
|
+
maximumAmount: n((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
|
|
3008
3010
|
},
|
|
3009
3011
|
mayaApp: {
|
|
3010
3012
|
androidEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.androidEnabled) ?? !1,
|
|
3011
3013
|
iosEnabled: ((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.iosEnabled) ?? !1,
|
|
3012
|
-
webEnabled: ((
|
|
3013
|
-
mobileWebEnabled: ((
|
|
3014
|
+
webEnabled: ((v = e.mayaAppDepositGatewaySettings) == null ? void 0 : v.webEnabled) ?? !1,
|
|
3015
|
+
mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
|
|
3014
3016
|
minimumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
|
|
3015
3017
|
maximumAmount: n((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.maximumAmount)
|
|
3016
3018
|
},
|
|
3017
3019
|
onlineBank: {
|
|
3018
3020
|
androidEnabled: ((S = e.onlineBankDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
|
|
3019
|
-
iosEnabled: ((
|
|
3020
|
-
webEnabled: ((
|
|
3021
|
+
iosEnabled: ((B = e.onlineBankDepositGatewaySettings) == null ? void 0 : B.iosEnabled) ?? !1,
|
|
3022
|
+
webEnabled: ((W = e.onlineBankDepositGatewaySettings) == null ? void 0 : W.webEnabled) ?? !1,
|
|
3021
3023
|
mobileWebEnabled: ((x = e.onlineBankDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
|
|
3022
3024
|
minimumAmount: n((U = e.onlineBankDepositGatewaySettings) == null ? void 0 : U.minimumAmount),
|
|
3023
|
-
maximumAmount: n((
|
|
3025
|
+
maximumAmount: n((q = e.onlineBankDepositGatewaySettings) == null ? void 0 : q.maximumAmount)
|
|
3024
3026
|
},
|
|
3025
3027
|
qrph: {
|
|
3026
|
-
androidEnabled: ((
|
|
3028
|
+
androidEnabled: (($ = e.qrphDepositGatewaySettings) == null ? void 0 : $.androidEnabled) ?? !1,
|
|
3027
3029
|
iosEnabled: ((L = e.qrphDepositGatewaySettings) == null ? void 0 : L.iosEnabled) ?? !1,
|
|
3028
3030
|
webEnabled: ((F = e.qrphDepositGatewaySettings) == null ? void 0 : F.webEnabled) ?? !1,
|
|
3029
3031
|
mobileWebEnabled: ((V = e.qrphDepositGatewaySettings) == null ? void 0 : V.mobileWebEnabled) ?? !1,
|
|
@@ -3047,13 +3049,13 @@ class Ta {
|
|
|
3047
3049
|
mobileWebEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
|
|
3048
3050
|
minimumAmount: n((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
|
|
3049
3051
|
maximumAmount: n(
|
|
3050
|
-
(
|
|
3052
|
+
(ue = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ue.maximumAmount,
|
|
3051
3053
|
1e6
|
|
3052
3054
|
)
|
|
3053
3055
|
},
|
|
3054
3056
|
maya: {
|
|
3055
3057
|
androidEnabled: ((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
|
|
3056
|
-
iosEnabled: ((
|
|
3058
|
+
iosEnabled: ((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
|
|
3057
3059
|
webEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
|
|
3058
3060
|
mobileWebEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
|
|
3059
3061
|
minimumAmount: n((fe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : fe.minimumAmount),
|
|
@@ -3072,19 +3074,19 @@ class Ta {
|
|
|
3072
3074
|
},
|
|
3073
3075
|
instapay: {
|
|
3074
3076
|
androidEnabled: ((Se = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Se.androidEnabled) ?? !1,
|
|
3075
|
-
iosEnabled: ((
|
|
3076
|
-
webEnabled: ((
|
|
3077
|
+
iosEnabled: ((Ce = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Ce.iosEnabled) ?? !1,
|
|
3078
|
+
webEnabled: ((ke = e.instapayWithdrawalGatewaySettings) == null ? void 0 : ke.webEnabled) ?? !1,
|
|
3077
3079
|
mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
|
|
3078
3080
|
minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
|
|
3079
3081
|
maximumAmount: n(
|
|
3080
|
-
(
|
|
3082
|
+
(De = e.instapayWithdrawalGatewaySettings) == null ? void 0 : De.maximumAmount,
|
|
3081
3083
|
1e6
|
|
3082
3084
|
)
|
|
3083
3085
|
}
|
|
3084
3086
|
}
|
|
3085
3087
|
},
|
|
3086
3088
|
pointsClubSettings: {
|
|
3087
|
-
multiplier: n((
|
|
3089
|
+
multiplier: n((Be = e.pointsClubSettings) == null ? void 0 : Be.multiplier, 0)
|
|
3088
3090
|
}
|
|
3089
3091
|
};
|
|
3090
3092
|
}
|
|
@@ -3092,7 +3094,7 @@ class Ta {
|
|
|
3092
3094
|
return {
|
|
3093
3095
|
currency: e.currency,
|
|
3094
3096
|
timezone: e.timezone,
|
|
3095
|
-
locale:
|
|
3097
|
+
locale: Ca(e.currency)
|
|
3096
3098
|
};
|
|
3097
3099
|
}
|
|
3098
3100
|
pointsClubSettings(e) {
|
|
@@ -3101,7 +3103,7 @@ class Ta {
|
|
|
3101
3103
|
};
|
|
3102
3104
|
}
|
|
3103
3105
|
paymentSettings(e) {
|
|
3104
|
-
var t, a, r, s, m,
|
|
3106
|
+
var t, a, r, s, m, u, l, f, w, p, C, k, _, T, D, R, h, M, N, A, v, I, G, P, S, B, W, x, U, q, $, L, F, V, E, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, ue, ce, de, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, Ce, ke, _e, Te, De;
|
|
3105
3107
|
return {
|
|
3106
3108
|
minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
|
|
3107
3109
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
@@ -3112,42 +3114,42 @@ class Ta {
|
|
|
3112
3114
|
webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
|
|
3113
3115
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
3114
3116
|
minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
|
|
3115
|
-
maximumAmount: n((
|
|
3117
|
+
maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
3116
3118
|
},
|
|
3117
3119
|
gcash: {
|
|
3118
3120
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
3119
3121
|
iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
|
|
3120
3122
|
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
3121
3123
|
mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
|
|
3122
|
-
minimumAmount: n((
|
|
3123
|
-
maximumAmount: n((
|
|
3124
|
+
minimumAmount: n((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
|
|
3125
|
+
maximumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
|
|
3124
3126
|
},
|
|
3125
3127
|
maya: {
|
|
3126
3128
|
androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
|
|
3127
3129
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
3128
|
-
webEnabled: ((
|
|
3130
|
+
webEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
|
|
3129
3131
|
mobileWebEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.mobileWebEnabled) ?? !1,
|
|
3130
3132
|
minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
3131
|
-
maximumAmount: n((
|
|
3133
|
+
maximumAmount: n((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
|
|
3132
3134
|
},
|
|
3133
3135
|
mayaApp: {
|
|
3134
3136
|
androidEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.androidEnabled) ?? !1,
|
|
3135
3137
|
iosEnabled: ((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.iosEnabled) ?? !1,
|
|
3136
|
-
webEnabled: ((
|
|
3137
|
-
mobileWebEnabled: ((
|
|
3138
|
+
webEnabled: ((v = e.mayaAppDepositGatewaySettings) == null ? void 0 : v.webEnabled) ?? !1,
|
|
3139
|
+
mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
|
|
3138
3140
|
minimumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
|
|
3139
3141
|
maximumAmount: n((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.maximumAmount)
|
|
3140
3142
|
},
|
|
3141
3143
|
onlineBank: {
|
|
3142
3144
|
androidEnabled: ((S = e.onlineBankDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
|
|
3143
|
-
iosEnabled: ((
|
|
3144
|
-
webEnabled: ((
|
|
3145
|
+
iosEnabled: ((B = e.onlineBankDepositGatewaySettings) == null ? void 0 : B.iosEnabled) ?? !1,
|
|
3146
|
+
webEnabled: ((W = e.onlineBankDepositGatewaySettings) == null ? void 0 : W.webEnabled) ?? !1,
|
|
3145
3147
|
mobileWebEnabled: ((x = e.onlineBankDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
|
|
3146
3148
|
minimumAmount: n((U = e.onlineBankDepositGatewaySettings) == null ? void 0 : U.minimumAmount),
|
|
3147
|
-
maximumAmount: n((
|
|
3149
|
+
maximumAmount: n((q = e.onlineBankDepositGatewaySettings) == null ? void 0 : q.maximumAmount)
|
|
3148
3150
|
},
|
|
3149
3151
|
qrph: {
|
|
3150
|
-
androidEnabled: ((
|
|
3152
|
+
androidEnabled: (($ = e.qrphDepositGatewaySettings) == null ? void 0 : $.androidEnabled) ?? !1,
|
|
3151
3153
|
iosEnabled: ((L = e.qrphDepositGatewaySettings) == null ? void 0 : L.iosEnabled) ?? !1,
|
|
3152
3154
|
webEnabled: ((F = e.qrphDepositGatewaySettings) == null ? void 0 : F.webEnabled) ?? !1,
|
|
3153
3155
|
mobileWebEnabled: ((V = e.qrphDepositGatewaySettings) == null ? void 0 : V.mobileWebEnabled) ?? !1,
|
|
@@ -3170,11 +3172,11 @@ class Ta {
|
|
|
3170
3172
|
webEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
|
|
3171
3173
|
mobileWebEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
|
|
3172
3174
|
minimumAmount: n((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
|
|
3173
|
-
maximumAmount: n((
|
|
3175
|
+
maximumAmount: n((ue = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ue.maximumAmount, 1e6)
|
|
3174
3176
|
},
|
|
3175
3177
|
maya: {
|
|
3176
3178
|
androidEnabled: ((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
|
|
3177
|
-
iosEnabled: ((
|
|
3179
|
+
iosEnabled: ((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
|
|
3178
3180
|
webEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
|
|
3179
3181
|
mobileWebEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
|
|
3180
3182
|
minimumAmount: n((fe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : fe.minimumAmount),
|
|
@@ -3193,12 +3195,12 @@ class Ta {
|
|
|
3193
3195
|
},
|
|
3194
3196
|
instapay: {
|
|
3195
3197
|
androidEnabled: ((Se = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Se.androidEnabled) ?? !1,
|
|
3196
|
-
iosEnabled: ((
|
|
3197
|
-
webEnabled: ((
|
|
3198
|
+
iosEnabled: ((Ce = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Ce.iosEnabled) ?? !1,
|
|
3199
|
+
webEnabled: ((ke = e.instapayWithdrawalGatewaySettings) == null ? void 0 : ke.webEnabled) ?? !1,
|
|
3198
3200
|
mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
|
|
3199
3201
|
minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
|
|
3200
3202
|
maximumAmount: n(
|
|
3201
|
-
(
|
|
3203
|
+
(De = e.instapayWithdrawalGatewaySettings) == null ? void 0 : De.maximumAmount,
|
|
3202
3204
|
1e6
|
|
3203
3205
|
)
|
|
3204
3206
|
}
|
|
@@ -3549,14 +3551,49 @@ class Ta {
|
|
|
3549
3551
|
return e;
|
|
3550
3552
|
}
|
|
3551
3553
|
promoByCode(e) {
|
|
3552
|
-
const { banner: t, ...a } = e;
|
|
3553
3554
|
return {
|
|
3554
|
-
|
|
3555
|
-
|
|
3555
|
+
activeBonusesCount: e.activeBonusesCount,
|
|
3556
|
+
bonusesCount: e.bonusesCount,
|
|
3557
|
+
cancelledBonusesCount: e.cancelledBonusesCount,
|
|
3558
|
+
clearedBonusesCount: e.clearedBonusesCount,
|
|
3559
|
+
closedBonusesCount: e.closedBonusesCount,
|
|
3560
|
+
closedBonusesCountPercentage: n(e.closedBonusesCountPercentage, 0),
|
|
3561
|
+
code: e.code,
|
|
3562
|
+
daysToClear: e.daysToClear,
|
|
3563
|
+
enabledGameProviders: e.enabledGameProviders,
|
|
3564
|
+
id: e.id,
|
|
3565
|
+
expiredBonusesCount: e.expiredBonusesCount,
|
|
3566
|
+
maximumBonusesCountLimit: e.maximumBonusesCountLimit,
|
|
3567
|
+
name: e.name,
|
|
3568
|
+
status: e.status,
|
|
3569
|
+
totalBet: n(e.totalBet, 0),
|
|
3570
|
+
totalBonus: n(e.totalBonus, 0),
|
|
3571
|
+
totalBonusBalance: n(e.totalBonusBalance, 0),
|
|
3572
|
+
totalBonusCashedOut: n(e.totalBonusCashedOut, 0),
|
|
3573
|
+
totalDeposit: n(e.totalDeposit, 0),
|
|
3574
|
+
turnoverRequirementMultiplier: n(e.turnoverRequirementMultiplier, 0),
|
|
3575
|
+
type: e.type,
|
|
3576
|
+
zeroedOutBonusesCount: e.zeroedOutBonusesCount,
|
|
3577
|
+
zeroOutThreshold: n(e.zeroOutThreshold, 0),
|
|
3578
|
+
bonusAmount: n(e.bonusAmount, 0),
|
|
3579
|
+
description: e.description,
|
|
3580
|
+
turnoverRequirementType: e.turnoverRequirementType,
|
|
3581
|
+
activationEndDateTime: e.activationEndDateTime ? new Date(e.activationEndDateTime) : void 0,
|
|
3582
|
+
activationStartDateTime: e.activationStartDateTime ? new Date(e.activationStartDateTime) : void 0,
|
|
3583
|
+
dateTimeClosed: e.dateTimeClosed ? new Date(e.dateTimeClosed) : void 0,
|
|
3584
|
+
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
|
|
3585
|
+
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
3586
|
+
turnoverRequirementContributionPercentagePerGameProvider: Object.entries(
|
|
3587
|
+
e.turnoverRequirementContributionPercentagePerGameProvider
|
|
3588
|
+
).reduce((t, [a, r]) => (t[a] = n(r, 0), t), {}),
|
|
3589
|
+
minimumTicketOddFactorPerSportsGameProvider: Object.entries(
|
|
3590
|
+
e.minimumTicketOddFactorPerSportsGameProvider
|
|
3591
|
+
).reduce((t, [a, r]) => (t[a] = n(r, 0), t), {}),
|
|
3592
|
+
banner: e.banner
|
|
3556
3593
|
};
|
|
3557
3594
|
}
|
|
3558
3595
|
}
|
|
3559
|
-
class
|
|
3596
|
+
class Ma {
|
|
3560
3597
|
constructor(e) {
|
|
3561
3598
|
c(this, "cmsPortalService");
|
|
3562
3599
|
c(this, "authService");
|
|
@@ -3578,12 +3615,12 @@ class Da {
|
|
|
3578
3615
|
platform: r,
|
|
3579
3616
|
environment: s,
|
|
3580
3617
|
logs: m
|
|
3581
|
-
} = e,
|
|
3582
|
-
this.transformer = new Ta(), this.logger = new
|
|
3618
|
+
} = e, u = s === "production";
|
|
3619
|
+
this.transformer = new Ta(), this.logger = new $e({
|
|
3583
3620
|
enabled: m ?? !1
|
|
3584
3621
|
});
|
|
3585
|
-
const l =
|
|
3586
|
-
url:
|
|
3622
|
+
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = 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", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = 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", _ = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = u ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", D = "https://portal-api.opexacms.io/v1", R = new da({
|
|
3623
|
+
url: D,
|
|
3587
3624
|
site: t,
|
|
3588
3625
|
platform: a
|
|
3589
3626
|
}), h = {
|
|
@@ -3594,15 +3631,15 @@ class Da {
|
|
|
3594
3631
|
"Platform-Code": r
|
|
3595
3632
|
}
|
|
3596
3633
|
}
|
|
3597
|
-
},
|
|
3634
|
+
}, M = new pa(new Q(_, h)), N = new la(new Q(k, h)), A = new ha(new Q(f, h)), v = new ua(new Q(p, h)), I = new wa(new Q(w, h)), G = new fa(new Q(C, h)), P = new ya(new Q(T, h)), S = new ca({
|
|
3598
3635
|
url: l,
|
|
3599
3636
|
platform: r
|
|
3600
|
-
}),
|
|
3637
|
+
}), B = new _a({
|
|
3601
3638
|
logs: m,
|
|
3602
3639
|
authService: S,
|
|
3603
3640
|
walletService: A
|
|
3604
3641
|
});
|
|
3605
|
-
this.authService = S, this.gameService =
|
|
3642
|
+
this.authService = S, this.gameService = M, this.fileService = N, this.walletService = A, this.accountService = v, this.reportService = I, this.portalService = G, this.triggerService = P, this.sessionManager = B, this.cmsPortalService = R, this.cache = new ga();
|
|
3606
3643
|
}
|
|
3607
3644
|
get authMiddleware() {
|
|
3608
3645
|
return async (e) => {
|
|
@@ -3650,7 +3687,7 @@ class Da {
|
|
|
3650
3687
|
case "MOBILE_NUMBER": {
|
|
3651
3688
|
const t = await this.sessionManager.create({
|
|
3652
3689
|
type: "MOBILE_NUMBER",
|
|
3653
|
-
mobileNumber:
|
|
3690
|
+
mobileNumber: O(e.mobileNumber, await this.locale),
|
|
3654
3691
|
verificationCode: e.verificationCode,
|
|
3655
3692
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3656
3693
|
});
|
|
@@ -3769,7 +3806,7 @@ class Da {
|
|
|
3769
3806
|
domain: e.domain,
|
|
3770
3807
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : this.formatYmd(e.dateOfBirth),
|
|
3771
3808
|
password: await g(e.password),
|
|
3772
|
-
mobileNumber:
|
|
3809
|
+
mobileNumber: O(e.mobileNumber, await this.locale)
|
|
3773
3810
|
},
|
|
3774
3811
|
referralCode: e.referralCode,
|
|
3775
3812
|
verificationCode: e.verificationCode,
|
|
@@ -3785,7 +3822,7 @@ class Da {
|
|
|
3785
3822
|
id: t,
|
|
3786
3823
|
btag: e.btag,
|
|
3787
3824
|
domain: e.domain,
|
|
3788
|
-
mobileNumber:
|
|
3825
|
+
mobileNumber: O(e.mobileNumber, await this.locale)
|
|
3789
3826
|
},
|
|
3790
3827
|
referralCode: e.referralCode,
|
|
3791
3828
|
verificationCode: e.verificationCode,
|
|
@@ -3800,7 +3837,7 @@ class Da {
|
|
|
3800
3837
|
btag: e.btag,
|
|
3801
3838
|
domain: e.domain,
|
|
3802
3839
|
password: await g(e.password),
|
|
3803
|
-
mobileNumber: e.mobileNumber ?
|
|
3840
|
+
mobileNumber: e.mobileNumber ? O(e.mobileNumber, await this.locale) : void 0
|
|
3804
3841
|
},
|
|
3805
3842
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3806
3843
|
});
|
|
@@ -3822,7 +3859,7 @@ class Da {
|
|
|
3822
3859
|
dateOfBirth: r,
|
|
3823
3860
|
mobileNumber: s,
|
|
3824
3861
|
secretAnswer: m,
|
|
3825
|
-
transactionPassword:
|
|
3862
|
+
transactionPassword: u,
|
|
3826
3863
|
...l
|
|
3827
3864
|
} = t;
|
|
3828
3865
|
return await this.accountService.updateMemberAccount({
|
|
@@ -3831,8 +3868,8 @@ class Da {
|
|
|
3831
3868
|
data: {
|
|
3832
3869
|
...l,
|
|
3833
3870
|
password: a ? await g(a) : void 0,
|
|
3834
|
-
transactionPassword:
|
|
3835
|
-
mobileNumber: s ?
|
|
3871
|
+
transactionPassword: u ? await g(u) : void 0,
|
|
3872
|
+
mobileNumber: s ? O(s, await this.locale) : void 0,
|
|
3836
3873
|
secretAnswer: m ? await g(m) : void 0,
|
|
3837
3874
|
birthDay: r ? typeof r == "string" ? r : this.formatYmd(r) : void 0
|
|
3838
3875
|
}
|
|
@@ -3875,7 +3912,7 @@ class Da {
|
|
|
3875
3912
|
async resetPassword(e) {
|
|
3876
3913
|
return await this.accountService.resetPassword({
|
|
3877
3914
|
input: {
|
|
3878
|
-
mobileNumber:
|
|
3915
|
+
mobileNumber: O(e.mobileNumber, await this.locale),
|
|
3879
3916
|
newPassword: await g(e.newPassword)
|
|
3880
3917
|
},
|
|
3881
3918
|
verificationCode: e.verificationCode
|
|
@@ -3902,7 +3939,7 @@ class Da {
|
|
|
3902
3939
|
return await this.accountService.sendVerificationCode({
|
|
3903
3940
|
input: {
|
|
3904
3941
|
channel: "SMS",
|
|
3905
|
-
recipient:
|
|
3942
|
+
recipient: O(e, await this.locale)
|
|
3906
3943
|
}
|
|
3907
3944
|
});
|
|
3908
3945
|
}
|
|
@@ -3910,7 +3947,7 @@ class Da {
|
|
|
3910
3947
|
if (e.type === "SMS")
|
|
3911
3948
|
return this.authService.sendVerificationCode({
|
|
3912
3949
|
channel: "SMS",
|
|
3913
|
-
recipient:
|
|
3950
|
+
recipient: O(e.mobileNumber, await this.locale),
|
|
3914
3951
|
...e.strict && {
|
|
3915
3952
|
verificationType: "MEMBER"
|
|
3916
3953
|
}
|
|
@@ -3975,7 +4012,7 @@ class Da {
|
|
|
3975
4012
|
id: t,
|
|
3976
4013
|
amount: e.amount.toString(),
|
|
3977
4014
|
transactionPassword: await g(e.transactionPassword),
|
|
3978
|
-
recipientMobileNumber:
|
|
4015
|
+
recipientMobileNumber: O(e.recipientMobileNumber, await this.locale)
|
|
3979
4016
|
}
|
|
3980
4017
|
});
|
|
3981
4018
|
if (!a.ok) return a;
|
|
@@ -3986,7 +4023,7 @@ class Da {
|
|
|
3986
4023
|
id: t,
|
|
3987
4024
|
amount: e.amount.toString(),
|
|
3988
4025
|
transactionPassword: await g(e.transactionPassword),
|
|
3989
|
-
recipientMobileNumber:
|
|
4026
|
+
recipientMobileNumber: O(e.recipientMobileNumber, await this.locale)
|
|
3990
4027
|
}
|
|
3991
4028
|
});
|
|
3992
4029
|
if (!a.ok) return a;
|
|
@@ -4179,11 +4216,11 @@ class Da {
|
|
|
4179
4216
|
data: {
|
|
4180
4217
|
betRecords: t.data.edges.map(({ cursor: s, node: m }) => {
|
|
4181
4218
|
var l;
|
|
4182
|
-
const
|
|
4219
|
+
const u = (l = r.data.edges.find((f) => m.game.id === f.node.reference)) == null ? void 0 : l.node;
|
|
4183
4220
|
return {
|
|
4184
4221
|
...this.transformer.transform.betRecord({
|
|
4185
4222
|
...m,
|
|
4186
|
-
game:
|
|
4223
|
+
game: u
|
|
4187
4224
|
}),
|
|
4188
4225
|
cursor: s
|
|
4189
4226
|
};
|
|
@@ -4214,7 +4251,7 @@ class Da {
|
|
|
4214
4251
|
ok: !0,
|
|
4215
4252
|
data: e.data.map((r) => {
|
|
4216
4253
|
var m;
|
|
4217
|
-
const s = (m = a.data.edges.find((
|
|
4254
|
+
const s = (m = a.data.edges.find((u) => u.node.reference === r.game.id)) == null ? void 0 : m.node;
|
|
4218
4255
|
return this.transformer.transform.latestBetRecord({
|
|
4219
4256
|
...r,
|
|
4220
4257
|
game: s
|
|
@@ -4612,8 +4649,8 @@ class Da {
|
|
|
4612
4649
|
}
|
|
4613
4650
|
}
|
|
4614
4651
|
export {
|
|
4615
|
-
|
|
4652
|
+
Ia as ObjectId,
|
|
4616
4653
|
Y as ObjectType,
|
|
4617
|
-
|
|
4654
|
+
Ma as Sdk
|
|
4618
4655
|
};
|
|
4619
4656
|
//# sourceMappingURL=index.mjs.map
|