@opexa/portal-sdk 0.0.129 → 0.0.131
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 +144 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +401 -297
- 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 +40 -1
- package/dist/services/queries.d.ts +3 -0
- package/dist/services/report.service.d.ts +2 -1
- package/dist/services/types.d.ts +49 -0
- package/dist/services/utils.d.ts +2 -2
- package/dist/services/wallet.service.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
|
-
var Ve = (
|
|
3
|
-
var
|
|
2
|
+
var Ve = (o, e, t) => e in o ? Fe(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
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 va } from "@opexa/object-id";
|
|
6
6
|
const Y = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -13,23 +13,23 @@ const Y = {
|
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
15
|
};
|
|
16
|
-
function o
|
|
16
|
+
function i(o, ...e) {
|
|
17
17
|
let t = "";
|
|
18
|
-
for (const [a, r] of
|
|
18
|
+
for (const [a, r] of o.entries()) {
|
|
19
19
|
const s = e.at(a) ?? "";
|
|
20
20
|
t = `${t}${r}${s}`;
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const Re = i`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`, He =
|
|
32
|
-
${
|
|
31
|
+
`, He = i`
|
|
32
|
+
${Re}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
35
35
|
node(id: $id) {
|
|
@@ -38,7 +38,7 @@ const Me = o`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`, Ye =
|
|
41
|
+
`, Ye = i`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const Me = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`, Qe =
|
|
55
|
+
`, Qe = i`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const Me = o`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`, je =
|
|
65
|
+
`, je = i`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const Me = o`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`, Ke =
|
|
74
|
+
`, Ke = i`
|
|
75
75
|
mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
|
|
76
76
|
redeemPointsToCash(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,7 +79,7 @@ const Me = o`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`, ze =
|
|
82
|
+
`, ze = i`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -108,7 +108,7 @@ const Me = o`
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
`, xe = {
|
|
111
|
-
current:
|
|
111
|
+
current: i`
|
|
112
112
|
query GameSession($id: ObjectId!) {
|
|
113
113
|
node(id: $id) {
|
|
114
114
|
... on GameSession {
|
|
@@ -122,7 +122,7 @@ const Me = o`
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
`,
|
|
125
|
-
legacy:
|
|
125
|
+
legacy: i`
|
|
126
126
|
query GameSession($id: ObjectId!) {
|
|
127
127
|
node(id: $id) {
|
|
128
128
|
... on GameSession {
|
|
@@ -138,7 +138,7 @@ const Me = o`
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
`
|
|
141
|
-
}, Be =
|
|
141
|
+
}, Be = i`
|
|
142
142
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
143
143
|
createGameSession(input: $input) {
|
|
144
144
|
... on GameDoesNotExistError {
|
|
@@ -147,12 +147,12 @@ const Me = o`
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
`, Ue = {
|
|
150
|
-
current:
|
|
150
|
+
current: i`
|
|
151
151
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
152
152
|
endGameSession(input: $input)
|
|
153
153
|
}
|
|
154
154
|
`,
|
|
155
|
-
legacy:
|
|
155
|
+
legacy: i`
|
|
156
156
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
157
157
|
endGameSession(input: $input) {
|
|
158
158
|
... on GameSessionDoesNotExistError {
|
|
@@ -167,13 +167,13 @@ const Me = o`
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
`
|
|
170
|
-
}, Je =
|
|
170
|
+
}, Je = i`
|
|
171
171
|
query RecommendedGames {
|
|
172
172
|
recommendedGames {
|
|
173
173
|
id
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
`, Xe =
|
|
176
|
+
`, Xe = i`
|
|
177
177
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
178
178
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
179
179
|
edges {
|
|
@@ -199,7 +199,7 @@ const Me = o`
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
`, Ze =
|
|
202
|
+
`, Ze = i`
|
|
203
203
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
204
204
|
member {
|
|
205
205
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -283,7 +283,7 @@ const Me = o`
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
`, et =
|
|
286
|
+
`, et = i`
|
|
287
287
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
288
288
|
createGCashWithdrawal(input: $input) {
|
|
289
289
|
... on AccountNotVerifiedError {
|
|
@@ -306,7 +306,7 @@ const Me = o`
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
`, tt =
|
|
309
|
+
`, tt = i`
|
|
310
310
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
311
311
|
createMayaWithdrawal(input: $input) {
|
|
312
312
|
... on AccountNotVerifiedError {
|
|
@@ -329,7 +329,7 @@ const Me = o`
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
`, at =
|
|
332
|
+
`, at = i`
|
|
333
333
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
334
334
|
createMayaAppWithdrawal(input: $input) {
|
|
335
335
|
... on AccountNotVerifiedError {
|
|
@@ -349,7 +349,7 @@ const Me = o`
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
`, rt =
|
|
352
|
+
`, rt = i`
|
|
353
353
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
354
354
|
createBankWithdrawal(input: $input) {
|
|
355
355
|
... on MobileNumberNotVerifiedError {
|
|
@@ -357,7 +357,7 @@ const Me = o`
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
`, nt =
|
|
360
|
+
`, nt = i`
|
|
361
361
|
mutation CreateAIOInstapayWithdrawal($input: CreateAIOInstapayWithdrawalInput!) {
|
|
362
362
|
createAIOInstapayWithdrawal(input: $input) {
|
|
363
363
|
... on AccountNotVerifiedError {
|
|
@@ -377,7 +377,7 @@ const Me = o`
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
`,
|
|
380
|
+
`, ot = i`
|
|
381
381
|
query InstapayBankList {
|
|
382
382
|
instapayBankList {
|
|
383
383
|
id
|
|
@@ -385,11 +385,11 @@ const Me = o`
|
|
|
385
385
|
name
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
`,
|
|
388
|
+
`, it = i`
|
|
389
389
|
query RemainingDailyWithdrawalsCount {
|
|
390
390
|
remainingDailyWithdrawalsCount
|
|
391
391
|
}
|
|
392
|
-
`, st =
|
|
392
|
+
`, st = i`
|
|
393
393
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
394
394
|
member {
|
|
395
395
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -418,7 +418,7 @@ const Me = o`
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
`, mt =
|
|
421
|
+
`, mt = i`
|
|
422
422
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
423
423
|
createGCashDeposit(input: $input) {
|
|
424
424
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -447,7 +447,7 @@ const Me = o`
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
`,
|
|
450
|
+
`, dt = i`
|
|
451
451
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
452
452
|
createMayaDeposit(input: $input) {
|
|
453
453
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -476,7 +476,7 @@ const Me = o`
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
`,
|
|
479
|
+
`, ct = i`
|
|
480
480
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
481
481
|
createMayaAppDeposit(input: $input) {
|
|
482
482
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -505,7 +505,7 @@ const Me = o`
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
`, ut =
|
|
508
|
+
`, ut = i`
|
|
509
509
|
mutation CreateAIOQRPHDeposit($input: CreateAIOQRPHDepositInput!) {
|
|
510
510
|
createAIOQRPHDeposit(input: $input) {
|
|
511
511
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -534,7 +534,7 @@ const Me = o`
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
`, lt =
|
|
537
|
+
`, lt = i`
|
|
538
538
|
mutation CreateAIOOnlineBankDeposit($input: CreateAIOOnlineBankDepositInput!) {
|
|
539
539
|
createAIOOnlineBankDeposit(input: $input) {
|
|
540
540
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -563,7 +563,7 @@ const Me = o`
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
`, pt =
|
|
566
|
+
`, pt = i`
|
|
567
567
|
query Deposit($id: ObjectId!) {
|
|
568
568
|
node(id: $id) {
|
|
569
569
|
... on GCashDeposit {
|
|
@@ -607,13 +607,13 @@ const Me = o`
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
`, ft =
|
|
610
|
+
`, ft = i`
|
|
611
611
|
query DepositsCount {
|
|
612
612
|
member {
|
|
613
613
|
depositsCount
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
`, wt =
|
|
616
|
+
`, wt = i`
|
|
617
617
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
618
618
|
member {
|
|
619
619
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -651,7 +651,7 @@ const Me = o`
|
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
`, yt =
|
|
654
|
+
`, yt = i`
|
|
655
655
|
query LatestBetRecords {
|
|
656
656
|
latestBetRecords {
|
|
657
657
|
id
|
|
@@ -668,7 +668,7 @@ const Me = o`
|
|
|
668
668
|
dateTimeCreated
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
`, ht =
|
|
671
|
+
`, ht = i`
|
|
672
672
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
673
673
|
member {
|
|
674
674
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -694,8 +694,8 @@ const Me = o`
|
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
`,
|
|
698
|
-
${
|
|
697
|
+
`, De = i`
|
|
698
|
+
${Re}
|
|
699
699
|
|
|
700
700
|
fragment PromoFragment on Promo {
|
|
701
701
|
id
|
|
@@ -715,24 +715,70 @@ const Me = o`
|
|
|
715
715
|
dateTimeCreated
|
|
716
716
|
dateTimeLastUpdated
|
|
717
717
|
}
|
|
718
|
-
`, gt =
|
|
719
|
-
${
|
|
718
|
+
`, gt = i`
|
|
719
|
+
${De}
|
|
720
720
|
|
|
721
721
|
query Promos {
|
|
722
722
|
promos {
|
|
723
723
|
...PromoFragment
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
`, bt =
|
|
727
|
-
${
|
|
726
|
+
`, bt = i`
|
|
727
|
+
${De}
|
|
728
728
|
|
|
729
729
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
730
730
|
availablePromos(filter: $filter) {
|
|
731
731
|
...PromoFragment
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
`,
|
|
735
|
-
|
|
734
|
+
`, Et = i`
|
|
735
|
+
fragment SpotBonusFragment on SpotBonusPromo {
|
|
736
|
+
id
|
|
737
|
+
name
|
|
738
|
+
activationEndDateTime
|
|
739
|
+
banner {
|
|
740
|
+
id
|
|
741
|
+
url
|
|
742
|
+
mimeType
|
|
743
|
+
}
|
|
744
|
+
bonusAmount
|
|
745
|
+
daysToClear
|
|
746
|
+
zeroOutThreshold
|
|
747
|
+
turnoverRequirementMultiplier
|
|
748
|
+
turnoverRequirementType
|
|
749
|
+
minimumTicketOddFactorPerSportsGameProvider
|
|
750
|
+
turnoverRequirementContributionPercentagePerGameProvider
|
|
751
|
+
enabledGameProviders
|
|
752
|
+
activationStartDateTime
|
|
753
|
+
dateTimeCreated
|
|
754
|
+
dateTimeLastUpdated
|
|
755
|
+
dateTimeClosed
|
|
756
|
+
totalBonus
|
|
757
|
+
totalDeposit
|
|
758
|
+
totalBonusBalance
|
|
759
|
+
totalBet
|
|
760
|
+
totalBonusCashedOut
|
|
761
|
+
bonusesCount
|
|
762
|
+
closedBonusesCount
|
|
763
|
+
closedBonusesCountPercentage
|
|
764
|
+
activeBonusesCount
|
|
765
|
+
clearedBonusesCount
|
|
766
|
+
zeroedOutBonusesCount
|
|
767
|
+
cancelledBonusesCount
|
|
768
|
+
expiredBonusesCount
|
|
769
|
+
code
|
|
770
|
+
maximumBonusesCountLimit
|
|
771
|
+
}
|
|
772
|
+
`, At = i`
|
|
773
|
+
${Et}
|
|
774
|
+
|
|
775
|
+
query PromoByCode($code: String!) {
|
|
776
|
+
promoByCode(code: $code) {
|
|
777
|
+
...SpotBonusFragment
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
`, $e = i`
|
|
781
|
+
${Re}
|
|
736
782
|
|
|
737
783
|
fragment CashbackFragment on Cashback {
|
|
738
784
|
id
|
|
@@ -750,7 +796,7 @@ const Me = o`
|
|
|
750
796
|
dateTimeCreated
|
|
751
797
|
dateTimeLastUpdated
|
|
752
798
|
}
|
|
753
|
-
`,
|
|
799
|
+
`, St = i`
|
|
754
800
|
${$e}
|
|
755
801
|
|
|
756
802
|
query Cashbacks {
|
|
@@ -758,8 +804,8 @@ const Me = o`
|
|
|
758
804
|
...CashbackFragment
|
|
759
805
|
}
|
|
760
806
|
}
|
|
761
|
-
`,
|
|
762
|
-
${
|
|
807
|
+
`, kt = i`
|
|
808
|
+
${De}
|
|
763
809
|
|
|
764
810
|
query Bonus {
|
|
765
811
|
bonus {
|
|
@@ -787,8 +833,8 @@ const Me = o`
|
|
|
787
833
|
dateTimeLastUpdated
|
|
788
834
|
}
|
|
789
835
|
}
|
|
790
|
-
`,
|
|
791
|
-
${
|
|
836
|
+
`, Ct = i`
|
|
837
|
+
${De}
|
|
792
838
|
|
|
793
839
|
query Bonuses {
|
|
794
840
|
bonuses {
|
|
@@ -816,7 +862,7 @@ const Me = o`
|
|
|
816
862
|
dateTimeLastUpdated
|
|
817
863
|
}
|
|
818
864
|
}
|
|
819
|
-
`,
|
|
865
|
+
`, _t = i`
|
|
820
866
|
${$e}
|
|
821
867
|
|
|
822
868
|
query CashbackBonuses {
|
|
@@ -831,7 +877,7 @@ const Me = o`
|
|
|
831
877
|
dateTimeLastUpdated
|
|
832
878
|
}
|
|
833
879
|
}
|
|
834
|
-
`,
|
|
880
|
+
`, Tt = i`
|
|
835
881
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
836
882
|
claimCashbackBonus(input: $input) {
|
|
837
883
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -840,14 +886,14 @@ const Me = o`
|
|
|
840
886
|
}
|
|
841
887
|
}
|
|
842
888
|
`;
|
|
843
|
-
|
|
889
|
+
i`
|
|
844
890
|
query Member {
|
|
845
891
|
member {
|
|
846
892
|
dateTimeLastActive
|
|
847
893
|
}
|
|
848
894
|
}
|
|
849
895
|
`;
|
|
850
|
-
const
|
|
896
|
+
const Mt = i`
|
|
851
897
|
query MemberAccount {
|
|
852
898
|
memberAccount: self {
|
|
853
899
|
... on MemberAccount {
|
|
@@ -871,8 +917,8 @@ const _t = o`
|
|
|
871
917
|
}
|
|
872
918
|
}
|
|
873
919
|
}
|
|
874
|
-
`,
|
|
875
|
-
${
|
|
920
|
+
`, Rt = i`
|
|
921
|
+
${Re}
|
|
876
922
|
|
|
877
923
|
query MemberVerification {
|
|
878
924
|
memberAccount: self {
|
|
@@ -896,7 +942,7 @@ const _t = o`
|
|
|
896
942
|
}
|
|
897
943
|
}
|
|
898
944
|
}
|
|
899
|
-
`, Dt =
|
|
945
|
+
`, Dt = i`
|
|
900
946
|
mutation RegisterMemberAccount(
|
|
901
947
|
$input: RegisterMemberAccountInput!
|
|
902
948
|
$referralCode: String
|
|
@@ -932,7 +978,7 @@ const _t = o`
|
|
|
932
978
|
}
|
|
933
979
|
}
|
|
934
980
|
}
|
|
935
|
-
`,
|
|
981
|
+
`, Nt = i`
|
|
936
982
|
mutation RegisterMemberAccountViaMobile(
|
|
937
983
|
$input: RegisterMemberAccountViaMobileInput!
|
|
938
984
|
$referralCode: String
|
|
@@ -959,7 +1005,7 @@ const _t = o`
|
|
|
959
1005
|
}
|
|
960
1006
|
}
|
|
961
1007
|
}
|
|
962
|
-
`,
|
|
1008
|
+
`, It = i`
|
|
963
1009
|
mutation RegisterMemberAccount(
|
|
964
1010
|
$input: RegisterMemberAccountInput_next!
|
|
965
1011
|
$reCAPTCHAResponse: String
|
|
@@ -991,7 +1037,7 @@ const _t = o`
|
|
|
991
1037
|
}
|
|
992
1038
|
}
|
|
993
1039
|
}
|
|
994
|
-
`,
|
|
1040
|
+
`, vt = i`
|
|
995
1041
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
996
1042
|
registerMayaMemberAccount(input: $input) {
|
|
997
1043
|
... on AccountNameNotAvailableError {
|
|
@@ -999,7 +1045,7 @@ const _t = o`
|
|
|
999
1045
|
}
|
|
1000
1046
|
}
|
|
1001
1047
|
}
|
|
1002
|
-
`,
|
|
1048
|
+
`, Gt = i`
|
|
1003
1049
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
1004
1050
|
updateMemberAccount(input: $input) {
|
|
1005
1051
|
... on AccountNameNotAvailableError {
|
|
@@ -1025,7 +1071,7 @@ const _t = o`
|
|
|
1025
1071
|
}
|
|
1026
1072
|
}
|
|
1027
1073
|
}
|
|
1028
|
-
`,
|
|
1074
|
+
`, Pt = i`
|
|
1029
1075
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
1030
1076
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
1031
1077
|
... on AccountNotFoundError {
|
|
@@ -1036,11 +1082,11 @@ const _t = o`
|
|
|
1036
1082
|
}
|
|
1037
1083
|
}
|
|
1038
1084
|
}
|
|
1039
|
-
`,
|
|
1085
|
+
`, Ot = i`
|
|
1040
1086
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
1041
1087
|
deleteMemberAccount(input: $input)
|
|
1042
1088
|
}
|
|
1043
|
-
`,
|
|
1089
|
+
`, Wt = i`
|
|
1044
1090
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
1045
1091
|
verifyMobileNumber(input: $input) {
|
|
1046
1092
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -1051,7 +1097,7 @@ const _t = o`
|
|
|
1051
1097
|
}
|
|
1052
1098
|
}
|
|
1053
1099
|
}
|
|
1054
|
-
`,
|
|
1100
|
+
`, xt = i`
|
|
1055
1101
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
1056
1102
|
createMemberVerification(input: $input) {
|
|
1057
1103
|
... on FileDoesNotExistError {
|
|
@@ -1065,7 +1111,7 @@ const _t = o`
|
|
|
1065
1111
|
}
|
|
1066
1112
|
}
|
|
1067
1113
|
}
|
|
1068
|
-
`,
|
|
1114
|
+
`, Bt = i`
|
|
1069
1115
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
1070
1116
|
updateMemberVerification(input: $input) {
|
|
1071
1117
|
... on FileDoesNotExistError {
|
|
@@ -1082,7 +1128,7 @@ const _t = o`
|
|
|
1082
1128
|
}
|
|
1083
1129
|
}
|
|
1084
1130
|
}
|
|
1085
|
-
`,
|
|
1131
|
+
`, Ut = i`
|
|
1086
1132
|
query ProfileCompletion {
|
|
1087
1133
|
profileCompletion {
|
|
1088
1134
|
completionPercentage
|
|
@@ -1093,7 +1139,7 @@ const _t = o`
|
|
|
1093
1139
|
accountPassword
|
|
1094
1140
|
}
|
|
1095
1141
|
}
|
|
1096
|
-
`,
|
|
1142
|
+
`, $t = i`
|
|
1097
1143
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
1098
1144
|
sendVerificationCode(input: $input) {
|
|
1099
1145
|
... on InvalidPlatformError {
|
|
@@ -1104,7 +1150,7 @@ const _t = o`
|
|
|
1104
1150
|
}
|
|
1105
1151
|
}
|
|
1106
1152
|
}
|
|
1107
|
-
`,
|
|
1153
|
+
`, qt = i`
|
|
1108
1154
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
1109
1155
|
minimumAmount
|
|
1110
1156
|
maximumAmount
|
|
@@ -1169,12 +1215,12 @@ const _t = o`
|
|
|
1169
1215
|
multiplier
|
|
1170
1216
|
}
|
|
1171
1217
|
}
|
|
1172
|
-
`,
|
|
1218
|
+
`, Lt = i`
|
|
1173
1219
|
query Platform {
|
|
1174
1220
|
timezone
|
|
1175
1221
|
currency
|
|
1176
1222
|
}
|
|
1177
|
-
`,
|
|
1223
|
+
`, Ft = i`
|
|
1178
1224
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
1179
1225
|
minimumAmount
|
|
1180
1226
|
maximumAmount
|
|
@@ -1234,7 +1280,7 @@ const _t = o`
|
|
|
1234
1280
|
...WithdrawalGatewaySettingsCoreData
|
|
1235
1281
|
}
|
|
1236
1282
|
}
|
|
1237
|
-
`,
|
|
1283
|
+
`, Vt = i`
|
|
1238
1284
|
query MayaSession($id: ObjectId!) {
|
|
1239
1285
|
mayaSession(id: $id) {
|
|
1240
1286
|
id
|
|
@@ -1242,11 +1288,11 @@ const _t = o`
|
|
|
1242
1288
|
dateTimeCreated
|
|
1243
1289
|
}
|
|
1244
1290
|
}
|
|
1245
|
-
`,
|
|
1291
|
+
`, Ht = i`
|
|
1246
1292
|
mutation ValidateMayaSession {
|
|
1247
1293
|
validateMayaSession: validMayaSession
|
|
1248
1294
|
}
|
|
1249
|
-
`,
|
|
1295
|
+
`, Yt = i`
|
|
1250
1296
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1251
1297
|
member {
|
|
1252
1298
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1271,11 +1317,11 @@ const _t = o`
|
|
|
1271
1317
|
}
|
|
1272
1318
|
}
|
|
1273
1319
|
}
|
|
1274
|
-
`,
|
|
1320
|
+
`, Qt = i`
|
|
1275
1321
|
query ReferralCode {
|
|
1276
1322
|
referralCode
|
|
1277
1323
|
}
|
|
1278
|
-
`,
|
|
1324
|
+
`, jt = i`
|
|
1279
1325
|
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1280
1326
|
updateReferralCode(input: $input) {
|
|
1281
1327
|
... on ReferralCodeNotAvailableError {
|
|
@@ -1283,7 +1329,7 @@ const _t = o`
|
|
|
1283
1329
|
}
|
|
1284
1330
|
}
|
|
1285
1331
|
}
|
|
1286
|
-
`, Ge =
|
|
1332
|
+
`, Ge = i`
|
|
1287
1333
|
fragment ReferralFragment on Referral {
|
|
1288
1334
|
id
|
|
1289
1335
|
upline {
|
|
@@ -1301,7 +1347,7 @@ const _t = o`
|
|
|
1301
1347
|
commission
|
|
1302
1348
|
dateTimeCreated
|
|
1303
1349
|
}
|
|
1304
|
-
`,
|
|
1350
|
+
`, Kt = i`
|
|
1305
1351
|
query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
|
|
1306
1352
|
member {
|
|
1307
1353
|
referrals(first: $first, after: $after, filter: $filter) {
|
|
@@ -1323,7 +1369,7 @@ const _t = o`
|
|
|
1323
1369
|
}
|
|
1324
1370
|
|
|
1325
1371
|
${Ge}
|
|
1326
|
-
`,
|
|
1372
|
+
`, zt = i`
|
|
1327
1373
|
query UplinesByName($search: String!, $first: Int) {
|
|
1328
1374
|
uplinesByName(search: $search, first: $first) {
|
|
1329
1375
|
...ReferralFragment
|
|
@@ -1331,7 +1377,7 @@ const _t = o`
|
|
|
1331
1377
|
}
|
|
1332
1378
|
|
|
1333
1379
|
${Ge}
|
|
1334
|
-
`,
|
|
1380
|
+
`, Jt = i`
|
|
1335
1381
|
query DownlinesByName($search: String!, $first: Int) {
|
|
1336
1382
|
downlinesByName(search: $search, first: $first) {
|
|
1337
1383
|
...ReferralFragment
|
|
@@ -1339,7 +1385,7 @@ const _t = o`
|
|
|
1339
1385
|
}
|
|
1340
1386
|
|
|
1341
1387
|
${Ge}
|
|
1342
|
-
`,
|
|
1388
|
+
`, Xt = i`
|
|
1343
1389
|
query ReferralCommission {
|
|
1344
1390
|
member {
|
|
1345
1391
|
referralCommission {
|
|
@@ -1358,13 +1404,13 @@ const _t = o`
|
|
|
1358
1404
|
}
|
|
1359
1405
|
}
|
|
1360
1406
|
}
|
|
1361
|
-
`,
|
|
1407
|
+
`, Zt = i`
|
|
1362
1408
|
query PointsClubSettings {
|
|
1363
1409
|
pointsClubSettings {
|
|
1364
1410
|
multiplier
|
|
1365
1411
|
}
|
|
1366
1412
|
}
|
|
1367
|
-
`,
|
|
1413
|
+
`, ea = i`
|
|
1368
1414
|
query Messages($first: Int, $after: Cursor, $filter: MessageFilterInput) {
|
|
1369
1415
|
messages(first: $first, after: $after, filter: $filter) {
|
|
1370
1416
|
edges {
|
|
@@ -1392,21 +1438,21 @@ const _t = o`
|
|
|
1392
1438
|
}
|
|
1393
1439
|
}
|
|
1394
1440
|
}
|
|
1395
|
-
`,
|
|
1441
|
+
`, ta = i`
|
|
1396
1442
|
query UnreadMessagesCount($filter: MessageFilterInput) {
|
|
1397
1443
|
messages(filter: $filter) {
|
|
1398
1444
|
totalCount
|
|
1399
1445
|
}
|
|
1400
1446
|
}
|
|
1401
|
-
`,
|
|
1447
|
+
`, aa = i`
|
|
1402
1448
|
mutation MarkMessageAsRead($id: ObjectId!) {
|
|
1403
1449
|
markMessageAsRead(id: $id)
|
|
1404
1450
|
}
|
|
1405
|
-
`,
|
|
1451
|
+
`, ra = i`
|
|
1406
1452
|
mutation MarkAllMessageAsRead {
|
|
1407
1453
|
markAllMessageAsRead
|
|
1408
1454
|
}
|
|
1409
|
-
`,
|
|
1455
|
+
`, na = i`
|
|
1410
1456
|
mutation ClaimReward($id: ObjectId!) {
|
|
1411
1457
|
claimReward(id: $id) {
|
|
1412
1458
|
... on RewardAlreadyClaimedError {
|
|
@@ -1417,23 +1463,40 @@ const _t = o`
|
|
|
1417
1463
|
}
|
|
1418
1464
|
}
|
|
1419
1465
|
}
|
|
1420
|
-
`,
|
|
1466
|
+
`, oa = i`
|
|
1467
|
+
mutation ClaimSpotBonus($code: String!) {
|
|
1468
|
+
claimSpotBonus(code: $code) {
|
|
1469
|
+
... on InvalidPromoCodeError {
|
|
1470
|
+
message
|
|
1471
|
+
}
|
|
1472
|
+
... on MaximumBonusesCountLimitExceededError {
|
|
1473
|
+
message
|
|
1474
|
+
}
|
|
1475
|
+
... on SpotBonusAlreadyClaimedError {
|
|
1476
|
+
message
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
`, ia = i`
|
|
1421
1481
|
query OnboardingStatus {
|
|
1422
1482
|
onboardingStatus
|
|
1423
1483
|
}
|
|
1424
|
-
`,
|
|
1484
|
+
`, sa = i`
|
|
1425
1485
|
mutation CompleteOnboarding($input: CompleteOnboardingInput!) {
|
|
1426
1486
|
completeOnboarding(input: $input)
|
|
1427
1487
|
}
|
|
1428
|
-
`,
|
|
1488
|
+
`, ma = i`
|
|
1429
1489
|
mutation SkipOnboarding {
|
|
1430
1490
|
skipOnboarding
|
|
1431
1491
|
}
|
|
1432
1492
|
`;
|
|
1433
|
-
function u(
|
|
1493
|
+
function u(o) {
|
|
1434
1494
|
return {
|
|
1435
|
-
name:
|
|
1495
|
+
name: o,
|
|
1436
1496
|
message: {
|
|
1497
|
+
MaximumBonusesCountLimitExceededError: "Maximum bonuses reached",
|
|
1498
|
+
InvalidPromoCodeError: "Invalid Promo Code",
|
|
1499
|
+
SpotBonusAlreadyClaimedError: "This promo code has already been redeemed and cannot be used again",
|
|
1437
1500
|
RewardAlreadyExpiredError: "Reward is either expired or no longer available",
|
|
1438
1501
|
AccountNameNotAvailableError: "Username is no longer available",
|
|
1439
1502
|
AccountNotFoundError: "Account does not exist",
|
|
@@ -1484,17 +1547,17 @@ function u(i) {
|
|
|
1484
1547
|
SessionExpiredError: "Session expired",
|
|
1485
1548
|
RateLimitExceededError: "Maximum number of requests reached",
|
|
1486
1549
|
RewardAlreadyClaimedError: "Reward is already claimed"
|
|
1487
|
-
}[
|
|
1550
|
+
}[o]
|
|
1488
1551
|
};
|
|
1489
1552
|
}
|
|
1490
|
-
class
|
|
1553
|
+
class da {
|
|
1491
1554
|
constructor(e) {
|
|
1492
|
-
|
|
1555
|
+
c(this, "client");
|
|
1493
1556
|
this.client = e;
|
|
1494
1557
|
}
|
|
1495
1558
|
/** aka `Query.self` */
|
|
1496
1559
|
async memberAccount() {
|
|
1497
|
-
const e = await this.client.request(
|
|
1560
|
+
const e = await this.client.request(Mt);
|
|
1498
1561
|
return e.ok ? {
|
|
1499
1562
|
ok: !0,
|
|
1500
1563
|
data: e.data.memberAccount
|
|
@@ -1510,7 +1573,7 @@ class oa {
|
|
|
1510
1573
|
} : t;
|
|
1511
1574
|
}
|
|
1512
1575
|
async registerMemberAccountViaMobile(e) {
|
|
1513
|
-
const t = await this.client.request(
|
|
1576
|
+
const t = await this.client.request(Nt, e);
|
|
1514
1577
|
return t.ok ? t.data.registerMemberAccountViaMobile ? {
|
|
1515
1578
|
ok: !1,
|
|
1516
1579
|
error: u(t.data.registerMemberAccountViaMobile.__typename)
|
|
@@ -1519,7 +1582,7 @@ class oa {
|
|
|
1519
1582
|
} : t;
|
|
1520
1583
|
}
|
|
1521
1584
|
async registerMemberAccount__next(e) {
|
|
1522
|
-
const t = await this.client.request(
|
|
1585
|
+
const t = await this.client.request(It, e);
|
|
1523
1586
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1524
1587
|
ok: !1,
|
|
1525
1588
|
error: u(t.data.registerMemberAccount.__typename)
|
|
@@ -1528,7 +1591,7 @@ class oa {
|
|
|
1528
1591
|
} : t;
|
|
1529
1592
|
}
|
|
1530
1593
|
async updateMemberAccount(e) {
|
|
1531
|
-
const t = await this.client.request(
|
|
1594
|
+
const t = await this.client.request(Gt, e);
|
|
1532
1595
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1533
1596
|
ok: !1,
|
|
1534
1597
|
error: u(t.data.updateMemberAccount.__typename)
|
|
@@ -1537,7 +1600,7 @@ class oa {
|
|
|
1537
1600
|
} : t;
|
|
1538
1601
|
}
|
|
1539
1602
|
async deleteMemberAccount(e) {
|
|
1540
|
-
const t = await this.client.request(
|
|
1603
|
+
const t = await this.client.request(Ot, e);
|
|
1541
1604
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1542
1605
|
ok: !0
|
|
1543
1606
|
} : {
|
|
@@ -1550,7 +1613,7 @@ class oa {
|
|
|
1550
1613
|
}
|
|
1551
1614
|
async resetPassword(e) {
|
|
1552
1615
|
const t = await this.client.request(
|
|
1553
|
-
|
|
1616
|
+
Pt,
|
|
1554
1617
|
e
|
|
1555
1618
|
);
|
|
1556
1619
|
return t.ok ? t.data.resetPassword ? {
|
|
@@ -1561,16 +1624,16 @@ class oa {
|
|
|
1561
1624
|
} : t;
|
|
1562
1625
|
}
|
|
1563
1626
|
async profileCompletion() {
|
|
1564
|
-
const e = await this.client.request(
|
|
1627
|
+
const e = await this.client.request(Ut);
|
|
1565
1628
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1566
1629
|
}
|
|
1567
1630
|
/** @deprecated */
|
|
1568
1631
|
async platform() {
|
|
1569
|
-
return await this.client.request(
|
|
1632
|
+
return await this.client.request(qt);
|
|
1570
1633
|
}
|
|
1571
1634
|
/** @deprecated */
|
|
1572
1635
|
async sendVerificationCode(e) {
|
|
1573
|
-
const t = await this.client.request(
|
|
1636
|
+
const t = await this.client.request($t, e);
|
|
1574
1637
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1575
1638
|
ok: !1,
|
|
1576
1639
|
error: u(t.data.sendVerificationCode.__typename)
|
|
@@ -1579,10 +1642,10 @@ class oa {
|
|
|
1579
1642
|
} : t;
|
|
1580
1643
|
}
|
|
1581
1644
|
async paymentSettings() {
|
|
1582
|
-
return await this.client.request(
|
|
1645
|
+
return await this.client.request(Ft);
|
|
1583
1646
|
}
|
|
1584
1647
|
async verifyMobileNumber(e) {
|
|
1585
|
-
const t = await this.client.request(
|
|
1648
|
+
const t = await this.client.request(Wt, e);
|
|
1586
1649
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1587
1650
|
ok: !1,
|
|
1588
1651
|
error: u(t.data.verifyMobileNumber.__typename)
|
|
@@ -1591,7 +1654,7 @@ class oa {
|
|
|
1591
1654
|
} : t;
|
|
1592
1655
|
}
|
|
1593
1656
|
async createMemberVerification(e) {
|
|
1594
|
-
const t = await this.client.request(
|
|
1657
|
+
const t = await this.client.request(xt, e);
|
|
1595
1658
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1596
1659
|
ok: !1,
|
|
1597
1660
|
error: u(t.data.createMemberVerification.__typename)
|
|
@@ -1600,7 +1663,7 @@ class oa {
|
|
|
1600
1663
|
} : t;
|
|
1601
1664
|
}
|
|
1602
1665
|
async updateMemberVerification(e) {
|
|
1603
|
-
const t = await this.client.request(
|
|
1666
|
+
const t = await this.client.request(Bt, e);
|
|
1604
1667
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1605
1668
|
ok: !1,
|
|
1606
1669
|
error: u(t.data.updateMemberVerification.__typename)
|
|
@@ -1609,7 +1672,7 @@ class oa {
|
|
|
1609
1672
|
} : t;
|
|
1610
1673
|
}
|
|
1611
1674
|
async memberVerification() {
|
|
1612
|
-
const e = await this.client.request(
|
|
1675
|
+
const e = await this.client.request(Rt);
|
|
1613
1676
|
return e.ok ? {
|
|
1614
1677
|
ok: !0,
|
|
1615
1678
|
data: e.data.memberAccount.verification
|
|
@@ -1626,7 +1689,7 @@ class oa {
|
|
|
1626
1689
|
} : t;
|
|
1627
1690
|
}
|
|
1628
1691
|
async registerMayaMemberAccount(e) {
|
|
1629
|
-
const t = await this.client.request(
|
|
1692
|
+
const t = await this.client.request(vt, e);
|
|
1630
1693
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1631
1694
|
ok: !1,
|
|
1632
1695
|
error: u(t.data.registerMayaMemberAccount.__typename)
|
|
@@ -1635,14 +1698,14 @@ class oa {
|
|
|
1635
1698
|
} : t;
|
|
1636
1699
|
}
|
|
1637
1700
|
async referralCode() {
|
|
1638
|
-
const e = await this.client.request(
|
|
1701
|
+
const e = await this.client.request(Qt);
|
|
1639
1702
|
return e.ok ? {
|
|
1640
1703
|
ok: !0,
|
|
1641
1704
|
data: e.data.referralCode
|
|
1642
1705
|
} : e;
|
|
1643
1706
|
}
|
|
1644
1707
|
async updateReferralCode(e) {
|
|
1645
|
-
const t = await this.client.request(
|
|
1708
|
+
const t = await this.client.request(jt, e);
|
|
1646
1709
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1647
1710
|
ok: !1,
|
|
1648
1711
|
error: u(t.data.updateReferralCode.__typename)
|
|
@@ -1651,12 +1714,12 @@ class oa {
|
|
|
1651
1714
|
} : t;
|
|
1652
1715
|
}
|
|
1653
1716
|
async pointsClubSettings() {
|
|
1654
|
-
const e = await this.client.request(
|
|
1717
|
+
const e = await this.client.request(Zt);
|
|
1655
1718
|
return e.ok ? { ok: !0, data: e.data.pointsClubSettings } : e;
|
|
1656
1719
|
}
|
|
1657
1720
|
}
|
|
1658
|
-
function y(
|
|
1659
|
-
const t = Ne[
|
|
1721
|
+
function y(o, e) {
|
|
1722
|
+
const t = Ne[o] ? Ne[o] : Ne[500];
|
|
1660
1723
|
return {
|
|
1661
1724
|
name: t.name,
|
|
1662
1725
|
message: e ?? t.message
|
|
@@ -1671,10 +1734,10 @@ const Ne = {
|
|
|
1671
1734
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1672
1735
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1673
1736
|
};
|
|
1674
|
-
class
|
|
1737
|
+
class ca {
|
|
1675
1738
|
constructor(e) {
|
|
1676
|
-
|
|
1677
|
-
|
|
1739
|
+
c(this, "url");
|
|
1740
|
+
c(this, "platform");
|
|
1678
1741
|
this.url = e.url, this.platform = e.platform;
|
|
1679
1742
|
}
|
|
1680
1743
|
get headers() {
|
|
@@ -1843,11 +1906,11 @@ class sa {
|
|
|
1843
1906
|
}
|
|
1844
1907
|
}
|
|
1845
1908
|
}
|
|
1846
|
-
class
|
|
1909
|
+
class ua {
|
|
1847
1910
|
constructor(e) {
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1911
|
+
c(this, "url");
|
|
1912
|
+
c(this, "siteId");
|
|
1913
|
+
c(this, "platformId");
|
|
1851
1914
|
this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
|
|
1852
1915
|
}
|
|
1853
1916
|
async self() {
|
|
@@ -1858,12 +1921,12 @@ class ma {
|
|
|
1858
1921
|
} : e;
|
|
1859
1922
|
}
|
|
1860
1923
|
async games(e) {
|
|
1861
|
-
var r, s, m,
|
|
1924
|
+
var r, s, m, d, l, f, w, p, k, C, _, T, M, R, h, D, N, A, I, v, G, P, S, O, x, B, U, $, q, L, F, V;
|
|
1862
1925
|
const t = new URLSearchParams();
|
|
1863
|
-
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), (
|
|
1926
|
+
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), (d = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && d.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(",")), (C = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && C.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 = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.provider) != null && D.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()), (v = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.tags) != null && v.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(
|
|
1864
1927
|
"filter[tags][in]",
|
|
1865
1928
|
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1866
|
-
), (
|
|
1929
|
+
), (O = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && O.notIn && t.set(
|
|
1867
1930
|
"filter[tags][nin]",
|
|
1868
1931
|
e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
|
|
1869
1932
|
), (B = (x = e == null ? void 0 : e.filter) == null ? void 0 : x.reference) != null && B.equal && t.set("filter[reference][eq]", e.filter.reference.equal), ($ = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.reference) != null && $.notEqual && t.set("filter[reference][neq]", e.filter.reference.notEqual), (L = (q = e == null ? void 0 : e.filter) == null ? void 0 : q.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);
|
|
@@ -1921,9 +1984,9 @@ class ma {
|
|
|
1921
1984
|
}
|
|
1922
1985
|
}
|
|
1923
1986
|
}
|
|
1924
|
-
class
|
|
1987
|
+
class la {
|
|
1925
1988
|
constructor(e) {
|
|
1926
|
-
|
|
1989
|
+
c(this, "client");
|
|
1927
1990
|
this.client = e;
|
|
1928
1991
|
}
|
|
1929
1992
|
async file(e) {
|
|
@@ -1943,9 +2006,9 @@ class ca {
|
|
|
1943
2006
|
} : t;
|
|
1944
2007
|
}
|
|
1945
2008
|
}
|
|
1946
|
-
class
|
|
2009
|
+
class pa {
|
|
1947
2010
|
constructor(e) {
|
|
1948
|
-
|
|
2011
|
+
c(this, "client");
|
|
1949
2012
|
this.client = e;
|
|
1950
2013
|
}
|
|
1951
2014
|
async gameSession(e) {
|
|
@@ -1980,9 +2043,9 @@ class da {
|
|
|
1980
2043
|
} : t;
|
|
1981
2044
|
}
|
|
1982
2045
|
}
|
|
1983
|
-
class
|
|
2046
|
+
class fa {
|
|
1984
2047
|
constructor(e) {
|
|
1985
|
-
|
|
2048
|
+
c(this, "client");
|
|
1986
2049
|
this.client = e;
|
|
1987
2050
|
}
|
|
1988
2051
|
async latestBetRecords() {
|
|
@@ -1993,7 +2056,7 @@ class ua {
|
|
|
1993
2056
|
} : e;
|
|
1994
2057
|
}
|
|
1995
2058
|
async platform() {
|
|
1996
|
-
const e = await this.client.request(
|
|
2059
|
+
const e = await this.client.request(Lt);
|
|
1997
2060
|
return e.ok ? {
|
|
1998
2061
|
ok: !0,
|
|
1999
2062
|
data: e.data
|
|
@@ -2007,11 +2070,11 @@ class ua {
|
|
|
2007
2070
|
} : e;
|
|
2008
2071
|
}
|
|
2009
2072
|
async onboardingStatus() {
|
|
2010
|
-
const e = await this.client.request(
|
|
2073
|
+
const e = await this.client.request(ia);
|
|
2011
2074
|
return e.ok ? { ok: e.ok, data: e.data.onboardingStatus ?? [] } : e;
|
|
2012
2075
|
}
|
|
2013
2076
|
async completeOnboarding(e) {
|
|
2014
|
-
const t = await this.client.request(
|
|
2077
|
+
const t = await this.client.request(sa, e);
|
|
2015
2078
|
return t.ok ? t.data.completeOnboarding ? {
|
|
2016
2079
|
ok: !0
|
|
2017
2080
|
} : {
|
|
@@ -2023,7 +2086,7 @@ class ua {
|
|
|
2023
2086
|
} : t;
|
|
2024
2087
|
}
|
|
2025
2088
|
async skipOnboarding() {
|
|
2026
|
-
const e = await this.client.request(
|
|
2089
|
+
const e = await this.client.request(ma);
|
|
2027
2090
|
return e.ok ? e.data.skipOnboarding ? {
|
|
2028
2091
|
ok: !0
|
|
2029
2092
|
} : {
|
|
@@ -2035,9 +2098,9 @@ class ua {
|
|
|
2035
2098
|
} : e;
|
|
2036
2099
|
}
|
|
2037
2100
|
}
|
|
2038
|
-
class
|
|
2101
|
+
class wa {
|
|
2039
2102
|
constructor(e) {
|
|
2040
|
-
|
|
2103
|
+
c(this, "client");
|
|
2041
2104
|
this.client = e;
|
|
2042
2105
|
}
|
|
2043
2106
|
async betRecords(e) {
|
|
@@ -2075,52 +2138,59 @@ class la {
|
|
|
2075
2138
|
}
|
|
2076
2139
|
async activityRecords(e) {
|
|
2077
2140
|
const t = await this.client.request(
|
|
2078
|
-
|
|
2141
|
+
Yt,
|
|
2079
2142
|
e
|
|
2080
2143
|
);
|
|
2081
2144
|
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
2082
2145
|
}
|
|
2083
2146
|
async referrals(e) {
|
|
2084
2147
|
const t = await this.client.request(
|
|
2085
|
-
|
|
2148
|
+
Kt,
|
|
2086
2149
|
e
|
|
2087
2150
|
);
|
|
2088
2151
|
return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
|
|
2089
2152
|
}
|
|
2090
2153
|
async referralCommission() {
|
|
2091
|
-
const e = await this.client.request(
|
|
2154
|
+
const e = await this.client.request(Xt);
|
|
2092
2155
|
return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
|
|
2093
2156
|
}
|
|
2094
2157
|
async uplinesByName(e) {
|
|
2095
2158
|
const t = await this.client.request(
|
|
2096
|
-
|
|
2159
|
+
zt,
|
|
2097
2160
|
e
|
|
2098
2161
|
);
|
|
2099
2162
|
return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
|
|
2100
2163
|
}
|
|
2101
2164
|
async downlinesByName(e) {
|
|
2102
2165
|
const t = await this.client.request(
|
|
2103
|
-
|
|
2166
|
+
Jt,
|
|
2104
2167
|
e
|
|
2105
2168
|
);
|
|
2106
2169
|
return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
|
|
2107
2170
|
}
|
|
2171
|
+
async promoByCode(e) {
|
|
2172
|
+
const t = await this.client.request(
|
|
2173
|
+
At,
|
|
2174
|
+
e
|
|
2175
|
+
);
|
|
2176
|
+
return t.ok ? { ok: t.ok, data: t.data.promoByCode } : t;
|
|
2177
|
+
}
|
|
2108
2178
|
}
|
|
2109
|
-
class
|
|
2179
|
+
class ya {
|
|
2110
2180
|
constructor(e) {
|
|
2111
|
-
|
|
2181
|
+
c(this, "client");
|
|
2112
2182
|
this.client = e;
|
|
2113
2183
|
}
|
|
2114
2184
|
async messages(e) {
|
|
2115
2185
|
const t = await this.client.request(
|
|
2116
|
-
|
|
2186
|
+
ea,
|
|
2117
2187
|
e
|
|
2118
2188
|
);
|
|
2119
2189
|
return t.ok ? { ok: t.ok, data: t.data.messages } : t;
|
|
2120
2190
|
}
|
|
2121
2191
|
async unreadMessagesCount(e) {
|
|
2122
2192
|
const t = await this.client.request(
|
|
2123
|
-
|
|
2193
|
+
ta,
|
|
2124
2194
|
{
|
|
2125
2195
|
...e,
|
|
2126
2196
|
filter: {
|
|
@@ -2134,7 +2204,7 @@ class pa {
|
|
|
2134
2204
|
return t.ok ? { ok: t.ok, data: t.data.messages.totalCount } : t;
|
|
2135
2205
|
}
|
|
2136
2206
|
async markMessageAsRead(e) {
|
|
2137
|
-
const t = await this.client.request(
|
|
2207
|
+
const t = await this.client.request(aa, e);
|
|
2138
2208
|
return t.ok ? t.data.markMessageAsRead ? {
|
|
2139
2209
|
ok: !0
|
|
2140
2210
|
} : {
|
|
@@ -2147,7 +2217,7 @@ class pa {
|
|
|
2147
2217
|
}
|
|
2148
2218
|
async markAllMessageAsRead() {
|
|
2149
2219
|
const e = await this.client.request(
|
|
2150
|
-
|
|
2220
|
+
ra
|
|
2151
2221
|
);
|
|
2152
2222
|
return e.ok ? e.data.markAllMessageAsRead ? {
|
|
2153
2223
|
ok: !0
|
|
@@ -2161,7 +2231,7 @@ class pa {
|
|
|
2161
2231
|
}
|
|
2162
2232
|
async claimReward(e) {
|
|
2163
2233
|
const t = await this.client.request(
|
|
2164
|
-
|
|
2234
|
+
na,
|
|
2165
2235
|
e
|
|
2166
2236
|
);
|
|
2167
2237
|
return t.ok ? t.data.claimReward ? {
|
|
@@ -2172,9 +2242,9 @@ class pa {
|
|
|
2172
2242
|
} : t;
|
|
2173
2243
|
}
|
|
2174
2244
|
}
|
|
2175
|
-
class
|
|
2245
|
+
class ha {
|
|
2176
2246
|
constructor(e) {
|
|
2177
|
-
|
|
2247
|
+
c(this, "client");
|
|
2178
2248
|
this.client = e;
|
|
2179
2249
|
}
|
|
2180
2250
|
async promos() {
|
|
@@ -2182,7 +2252,7 @@ class fa {
|
|
|
2182
2252
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
2183
2253
|
}
|
|
2184
2254
|
async cashbacks() {
|
|
2185
|
-
const e = await this.client.request(
|
|
2255
|
+
const e = await this.client.request(St);
|
|
2186
2256
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
2187
2257
|
}
|
|
2188
2258
|
async availablePromos(e) {
|
|
@@ -2193,11 +2263,11 @@ class fa {
|
|
|
2193
2263
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
2194
2264
|
}
|
|
2195
2265
|
async cashbackBonuses() {
|
|
2196
|
-
const e = await this.client.request(
|
|
2266
|
+
const e = await this.client.request(_t);
|
|
2197
2267
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
2198
2268
|
}
|
|
2199
2269
|
async claimCashbackBonus(e) {
|
|
2200
|
-
const t = await this.client.request(
|
|
2270
|
+
const t = await this.client.request(Tt, e);
|
|
2201
2271
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
2202
2272
|
ok: !1,
|
|
2203
2273
|
error: u(t.data.claimCashbackBonus.__typename)
|
|
@@ -2209,7 +2279,7 @@ class fa {
|
|
|
2209
2279
|
};
|
|
2210
2280
|
}
|
|
2211
2281
|
async bonus() {
|
|
2212
|
-
const e = await this.client.request(
|
|
2282
|
+
const e = await this.client.request(kt);
|
|
2213
2283
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
2214
2284
|
}
|
|
2215
2285
|
async wallet() {
|
|
@@ -2233,7 +2303,7 @@ class fa {
|
|
|
2233
2303
|
} : t;
|
|
2234
2304
|
}
|
|
2235
2305
|
async createMayaDeposit(e) {
|
|
2236
|
-
const t = await this.client.request(
|
|
2306
|
+
const t = await this.client.request(dt, e);
|
|
2237
2307
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
2238
2308
|
ok: !1,
|
|
2239
2309
|
error: u(t.data.createMayaDeposit.__typename)
|
|
@@ -2260,7 +2330,7 @@ class fa {
|
|
|
2260
2330
|
} : t;
|
|
2261
2331
|
}
|
|
2262
2332
|
async createMayaAppDeposit(e) {
|
|
2263
|
-
const t = await this.client.request(
|
|
2333
|
+
const t = await this.client.request(ct, e);
|
|
2264
2334
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
2265
2335
|
ok: !1,
|
|
2266
2336
|
error: u(t.data.createMayaAppDeposit.__typename)
|
|
@@ -2314,12 +2384,12 @@ class fa {
|
|
|
2314
2384
|
} : t;
|
|
2315
2385
|
}
|
|
2316
2386
|
async instapayBankList() {
|
|
2317
|
-
const e = await this.client.request(
|
|
2387
|
+
const e = await this.client.request(ot);
|
|
2318
2388
|
return e.ok ? { ok: e.ok, data: e.data.instapayBankList } : e;
|
|
2319
2389
|
}
|
|
2320
2390
|
async remainingDailyWithdrawalsCount() {
|
|
2321
2391
|
const e = await this.client.request(
|
|
2322
|
-
|
|
2392
|
+
it
|
|
2323
2393
|
);
|
|
2324
2394
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
2325
2395
|
}
|
|
@@ -2338,7 +2408,7 @@ class fa {
|
|
|
2338
2408
|
}
|
|
2339
2409
|
async mayaSession(e) {
|
|
2340
2410
|
const t = await this.client.request(
|
|
2341
|
-
|
|
2411
|
+
Vt,
|
|
2342
2412
|
e
|
|
2343
2413
|
);
|
|
2344
2414
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
@@ -2376,7 +2446,7 @@ class fa {
|
|
|
2376
2446
|
}
|
|
2377
2447
|
async validateMayaSession() {
|
|
2378
2448
|
const e = await this.client.request(
|
|
2379
|
-
|
|
2449
|
+
Ht
|
|
2380
2450
|
);
|
|
2381
2451
|
return e.ok ? e.data.validateMayaSession ? {
|
|
2382
2452
|
ok: !0
|
|
@@ -2389,24 +2459,40 @@ class fa {
|
|
|
2389
2459
|
} : e;
|
|
2390
2460
|
}
|
|
2391
2461
|
async bonuses() {
|
|
2392
|
-
const e = await this.client.request(
|
|
2462
|
+
const e = await this.client.request(Ct);
|
|
2393
2463
|
return e.ok ? { ok: e.ok, data: e.data.bonuses ?? [] } : e;
|
|
2394
2464
|
}
|
|
2465
|
+
async claimSpotBonus(e) {
|
|
2466
|
+
var a;
|
|
2467
|
+
const t = await this.client.request(
|
|
2468
|
+
oa,
|
|
2469
|
+
e
|
|
2470
|
+
);
|
|
2471
|
+
return t.ok ? t.data.claimSpotBonus ? {
|
|
2472
|
+
ok: !1,
|
|
2473
|
+
error: u((a = t.data.claimSpotBonus) == null ? void 0 : a.__typename)
|
|
2474
|
+
} : {
|
|
2475
|
+
ok: !0
|
|
2476
|
+
} : {
|
|
2477
|
+
ok: t.ok,
|
|
2478
|
+
error: t.error
|
|
2479
|
+
};
|
|
2480
|
+
}
|
|
2395
2481
|
}
|
|
2396
|
-
function Pe(
|
|
2397
|
-
return new Date(
|
|
2482
|
+
function Pe(o) {
|
|
2483
|
+
return new Date(o.getTime());
|
|
2398
2484
|
}
|
|
2399
|
-
function j(
|
|
2400
|
-
const t = Pe(
|
|
2485
|
+
function j(o, e) {
|
|
2486
|
+
const t = Pe(o);
|
|
2401
2487
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2402
2488
|
}
|
|
2403
|
-
function Ie(
|
|
2404
|
-
return
|
|
2489
|
+
function Ie(o, e) {
|
|
2490
|
+
return o.getTime() > e.getTime();
|
|
2405
2491
|
}
|
|
2406
|
-
class
|
|
2492
|
+
class ga {
|
|
2407
2493
|
constructor(e) {
|
|
2408
|
-
|
|
2409
|
-
|
|
2494
|
+
c(this, "config");
|
|
2495
|
+
c(this, "cache");
|
|
2410
2496
|
this.cache = {}, this.config = {
|
|
2411
2497
|
cacheTime: 5,
|
|
2412
2498
|
...e
|
|
@@ -2424,33 +2510,33 @@ class wa {
|
|
|
2424
2510
|
return !t || Ie(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
|
|
2425
2511
|
}
|
|
2426
2512
|
}
|
|
2427
|
-
function
|
|
2428
|
-
return
|
|
2513
|
+
function ba(o, e, t) {
|
|
2514
|
+
return o < e ? e : o > t ? t : o;
|
|
2429
2515
|
}
|
|
2430
|
-
function ve(
|
|
2431
|
-
return Object.prototype.toString.call(
|
|
2516
|
+
function ve(o) {
|
|
2517
|
+
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
2432
2518
|
}
|
|
2433
|
-
function
|
|
2519
|
+
function Ea(o) {
|
|
2434
2520
|
const e = [];
|
|
2435
2521
|
function t(a, r = []) {
|
|
2436
2522
|
for (const s in a) {
|
|
2437
2523
|
const m = a[s];
|
|
2438
|
-
ve(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(
|
|
2524
|
+
ve(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(Aa(m), [...r, s]) : e.push({
|
|
2439
2525
|
key: [...r, s],
|
|
2440
2526
|
value: m
|
|
2441
2527
|
});
|
|
2442
2528
|
}
|
|
2443
2529
|
}
|
|
2444
|
-
return t(
|
|
2530
|
+
return t(o), e;
|
|
2445
2531
|
}
|
|
2446
|
-
function
|
|
2447
|
-
return
|
|
2532
|
+
function Aa(o) {
|
|
2533
|
+
return o.reduce((e, t, a) => (e[a] = t, e), {});
|
|
2448
2534
|
}
|
|
2449
2535
|
class Q {
|
|
2450
2536
|
constructor(e, t) {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2537
|
+
c(this, "url");
|
|
2538
|
+
c(this, "options");
|
|
2539
|
+
c(this, "middlewares");
|
|
2454
2540
|
var r;
|
|
2455
2541
|
const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
|
|
2456
2542
|
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
@@ -2458,9 +2544,9 @@ class Q {
|
|
|
2458
2544
|
async request(e, t) {
|
|
2459
2545
|
const a = JSON.stringify({ query: e, variables: t }), r = new Headers(this.options.headers);
|
|
2460
2546
|
r.set("Content-Type", "application/json"), r.set("Accept", "application/json");
|
|
2461
|
-
const s = new URL(this.url), m =
|
|
2547
|
+
const s = new URL(this.url), m = Sa(e);
|
|
2462
2548
|
m && s.searchParams.set(`_${m.type}`, m.name);
|
|
2463
|
-
const
|
|
2549
|
+
const d = await this.runMiddlewares(
|
|
2464
2550
|
new Request(s, {
|
|
2465
2551
|
...this.options,
|
|
2466
2552
|
body: a,
|
|
@@ -2468,7 +2554,7 @@ class Q {
|
|
|
2468
2554
|
method: "POST"
|
|
2469
2555
|
})
|
|
2470
2556
|
);
|
|
2471
|
-
return await this.exec(
|
|
2557
|
+
return await this.exec(d);
|
|
2472
2558
|
}
|
|
2473
2559
|
/** Single file upload */
|
|
2474
2560
|
async upload(e, t) {
|
|
@@ -2485,13 +2571,13 @@ class Q {
|
|
|
2485
2571
|
return await this.exec(s);
|
|
2486
2572
|
}
|
|
2487
2573
|
async exec(e) {
|
|
2488
|
-
var t, a, r, s, m,
|
|
2574
|
+
var t, a, r, s, m, d;
|
|
2489
2575
|
try {
|
|
2490
2576
|
const l = await fetch(e);
|
|
2491
2577
|
if (!l.ok)
|
|
2492
2578
|
return { ok: !1, error: y(l.status) };
|
|
2493
2579
|
const f = await l.json(), w = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
|
|
2494
|
-
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" || ((
|
|
2580
|
+
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" || ((d = p.extensions) == null ? void 0 : d.code) === "BAD_REQUEST" ? { ok: !1, error: y(400, p.message) } : {
|
|
2495
2581
|
ok: !1,
|
|
2496
2582
|
error: y(500, p.message)
|
|
2497
2583
|
} : {
|
|
@@ -2512,7 +2598,7 @@ class Q {
|
|
|
2512
2598
|
return t;
|
|
2513
2599
|
}
|
|
2514
2600
|
createUploadBody(e, t) {
|
|
2515
|
-
const a =
|
|
2601
|
+
const a = Ea(t).filter(
|
|
2516
2602
|
(m) => m.value instanceof File || m.value instanceof Blob
|
|
2517
2603
|
), r = new FormData();
|
|
2518
2604
|
r.append(
|
|
@@ -2523,36 +2609,36 @@ class Q {
|
|
|
2523
2609
|
})
|
|
2524
2610
|
);
|
|
2525
2611
|
const s = {};
|
|
2526
|
-
return a.forEach((m,
|
|
2527
|
-
s[
|
|
2528
|
-
}), r.append("map", JSON.stringify(s)), a.forEach((m,
|
|
2529
|
-
r.append(
|
|
2612
|
+
return a.forEach((m, d) => {
|
|
2613
|
+
s[d.toString()] = [`variables.${m.key.join(".")}`];
|
|
2614
|
+
}), r.append("map", JSON.stringify(s)), a.forEach((m, d) => {
|
|
2615
|
+
r.append(d.toString(), m.value);
|
|
2530
2616
|
}), r;
|
|
2531
2617
|
}
|
|
2532
2618
|
}
|
|
2533
|
-
function
|
|
2534
|
-
const e =
|
|
2619
|
+
function Sa(o) {
|
|
2620
|
+
const e = o.match(/(query|mutation)\s+(\w+)/);
|
|
2535
2621
|
if (!e) return null;
|
|
2536
2622
|
const t = e.at(1), a = e.at(2);
|
|
2537
2623
|
return t && a ? { type: t, name: a } : null;
|
|
2538
2624
|
}
|
|
2539
|
-
function
|
|
2540
|
-
return
|
|
2625
|
+
function ka(o) {
|
|
2626
|
+
return o === "INR" ? "en-IN" : o === "MYR" ? "en-MY" : o === "IDR" ? "en-ID" : o === "USD" ? "en-US" : "en-PH";
|
|
2541
2627
|
}
|
|
2542
|
-
function
|
|
2543
|
-
return
|
|
2628
|
+
function Ca(o) {
|
|
2629
|
+
return o === "en-IN" ? "+91" : o === "en-MY" ? "+60" : o === "en-ID" ? "+62" : o === "en-US" ? "+1" : "+63";
|
|
2544
2630
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const t =
|
|
2547
|
-
return
|
|
2631
|
+
function W(o, e) {
|
|
2632
|
+
const t = Ca(e);
|
|
2633
|
+
return o.startsWith(t) ? o : o.startsWith(t.substring(1)) ? `+${o}` : o.startsWith("0") ? `${t}${o.substring(1)}` : `${t}${o}`;
|
|
2548
2634
|
}
|
|
2549
|
-
async function g(
|
|
2550
|
-
const e = new TextEncoder().encode(
|
|
2635
|
+
async function g(o) {
|
|
2636
|
+
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
2551
2637
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
2552
2638
|
}
|
|
2553
2639
|
class qe {
|
|
2554
2640
|
constructor(e) {
|
|
2555
|
-
|
|
2641
|
+
c(this, "enabled");
|
|
2556
2642
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
2557
2643
|
}
|
|
2558
2644
|
info(e) {
|
|
@@ -2568,39 +2654,39 @@ class qe {
|
|
|
2568
2654
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
2569
2655
|
}
|
|
2570
2656
|
}
|
|
2571
|
-
function K(
|
|
2572
|
-
const t = Pe(
|
|
2657
|
+
function K(o, e) {
|
|
2658
|
+
const t = Pe(o);
|
|
2573
2659
|
return t.setDate(t.getDate() + e), t;
|
|
2574
2660
|
}
|
|
2575
|
-
function Le(
|
|
2661
|
+
function Le(o) {
|
|
2576
2662
|
return new Promise((e) => {
|
|
2577
|
-
setTimeout(e,
|
|
2663
|
+
setTimeout(e, o);
|
|
2578
2664
|
});
|
|
2579
2665
|
}
|
|
2580
|
-
function
|
|
2666
|
+
function We(o, e) {
|
|
2581
2667
|
const {
|
|
2582
2668
|
until: t,
|
|
2583
2669
|
interval: a = 1e3,
|
|
2584
2670
|
maxAttempt: r = 3
|
|
2585
2671
|
/**/
|
|
2586
2672
|
} = e;
|
|
2587
|
-
async function s(m,
|
|
2588
|
-
const l =
|
|
2673
|
+
async function s(m, d) {
|
|
2674
|
+
const l = d ?? r, f = await o(...m);
|
|
2589
2675
|
return t(f) ? f : l > 1 ? (await Le(a * ((r - l) / 2)), s(m, l - 1)) : f;
|
|
2590
2676
|
}
|
|
2591
2677
|
return async (...m) => await s(m);
|
|
2592
2678
|
}
|
|
2593
|
-
function z(
|
|
2594
|
-
const t = Pe(
|
|
2679
|
+
function z(o, e) {
|
|
2680
|
+
const t = Pe(o);
|
|
2595
2681
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
2596
2682
|
}
|
|
2597
|
-
class
|
|
2683
|
+
class _a {
|
|
2598
2684
|
constructor(e) {
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2685
|
+
c(this, "logger");
|
|
2686
|
+
c(this, "storageKey", "session");
|
|
2687
|
+
c(this, "authService");
|
|
2688
|
+
c(this, "walletService");
|
|
2689
|
+
c(this, "_refreshing", !1);
|
|
2604
2690
|
this.authService = e.authService, this.walletService = e.walletService, this.logger = new qe({
|
|
2605
2691
|
enabled: e.logs ?? !1
|
|
2606
2692
|
});
|
|
@@ -2622,7 +2708,7 @@ class Sa {
|
|
|
2622
2708
|
}
|
|
2623
2709
|
};
|
|
2624
2710
|
if (e.type === "MAYA") {
|
|
2625
|
-
const m = await
|
|
2711
|
+
const m = await We(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2626
2712
|
until: (w) => {
|
|
2627
2713
|
var p;
|
|
2628
2714
|
return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
|
|
@@ -2639,7 +2725,7 @@ class Sa {
|
|
|
2639
2725
|
message: "Forbidden"
|
|
2640
2726
|
}
|
|
2641
2727
|
};
|
|
2642
|
-
const l = await
|
|
2728
|
+
const l = await We(() => this.authService.createSession(e), {
|
|
2643
2729
|
until: (w) => w.ok,
|
|
2644
2730
|
interval: 1e3,
|
|
2645
2731
|
maxAttempt: 5
|
|
@@ -2811,10 +2897,10 @@ class Sa {
|
|
|
2811
2897
|
return typeof window > "u";
|
|
2812
2898
|
}
|
|
2813
2899
|
}
|
|
2814
|
-
function b(
|
|
2900
|
+
function b(o) {
|
|
2815
2901
|
const e = {};
|
|
2816
|
-
for (const t in
|
|
2817
|
-
const a =
|
|
2902
|
+
for (const t in o) {
|
|
2903
|
+
const a = o[t];
|
|
2818
2904
|
if (a !== null && a !== void 0) {
|
|
2819
2905
|
if (ve(a)) {
|
|
2820
2906
|
e[t] = b(a);
|
|
@@ -2829,17 +2915,17 @@ function b(i) {
|
|
|
2829
2915
|
}
|
|
2830
2916
|
return e;
|
|
2831
2917
|
}
|
|
2832
|
-
function n(
|
|
2833
|
-
if (typeof
|
|
2834
|
-
return
|
|
2835
|
-
if (typeof
|
|
2836
|
-
const t = Number.parseFloat(
|
|
2918
|
+
function n(o, e) {
|
|
2919
|
+
if (typeof o == "number" && !Number.isNaN(o))
|
|
2920
|
+
return o;
|
|
2921
|
+
if (typeof o == "string") {
|
|
2922
|
+
const t = Number.parseFloat(o);
|
|
2837
2923
|
if (!Number.isNaN(t))
|
|
2838
2924
|
return t;
|
|
2839
2925
|
}
|
|
2840
2926
|
return e;
|
|
2841
2927
|
}
|
|
2842
|
-
class
|
|
2928
|
+
class Ta {
|
|
2843
2929
|
get transform() {
|
|
2844
2930
|
return {
|
|
2845
2931
|
site: this.site.bind(this),
|
|
@@ -2871,7 +2957,8 @@ class ka {
|
|
|
2871
2957
|
pointsClubSettings: this.pointsClubSettings.bind(this),
|
|
2872
2958
|
paymentSettings: this.paymentSettings.bind(this),
|
|
2873
2959
|
message: this.message.bind(this),
|
|
2874
|
-
instapayBank: this.instapayBank.bind(this)
|
|
2960
|
+
instapayBank: this.instapayBank.bind(this),
|
|
2961
|
+
promoCode: this.promoCode.bind(this)
|
|
2875
2962
|
};
|
|
2876
2963
|
}
|
|
2877
2964
|
site(e) {
|
|
@@ -2885,7 +2972,7 @@ class ka {
|
|
|
2885
2972
|
}
|
|
2886
2973
|
/** @deprecated */
|
|
2887
2974
|
platform(e) {
|
|
2888
|
-
var t, a, r, s, m,
|
|
2975
|
+
var t, a, r, s, m, d, l, f, w, p, k, C, _, T, M, R, h, D, N, A, I, v, G, P, S, O, x, B, U, $, q, L, F, V, E, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, de, ce, ue, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, ke, Ce, _e, Te, Me, Oe;
|
|
2889
2976
|
return {
|
|
2890
2977
|
timezone: e.timezone,
|
|
2891
2978
|
currency: e.currency,
|
|
@@ -2899,7 +2986,7 @@ class ka {
|
|
|
2899
2986
|
webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
|
|
2900
2987
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2901
2988
|
minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
|
|
2902
|
-
maximumAmount: n((
|
|
2989
|
+
maximumAmount: n((d = e.bankDepositGatewaySettings) == null ? void 0 : d.maximumAmount)
|
|
2903
2990
|
},
|
|
2904
2991
|
gcash: {
|
|
2905
2992
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
@@ -2912,10 +2999,10 @@ class ka {
|
|
|
2912
2999
|
maya: {
|
|
2913
3000
|
androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
|
|
2914
3001
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
2915
|
-
webEnabled: ((
|
|
2916
|
-
mobileWebEnabled: ((
|
|
3002
|
+
webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
|
|
3003
|
+
mobileWebEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.mobileWebEnabled) ?? !1,
|
|
2917
3004
|
minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
2918
|
-
maximumAmount: n((
|
|
3005
|
+
maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
2919
3006
|
},
|
|
2920
3007
|
mayaApp: {
|
|
2921
3008
|
androidEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.androidEnabled) ?? !1,
|
|
@@ -2927,7 +3014,7 @@ class ka {
|
|
|
2927
3014
|
},
|
|
2928
3015
|
onlineBank: {
|
|
2929
3016
|
androidEnabled: ((S = e.onlineBankDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
|
|
2930
|
-
iosEnabled: ((
|
|
3017
|
+
iosEnabled: ((O = e.onlineBankDepositGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
2931
3018
|
webEnabled: ((x = e.onlineBankDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
|
|
2932
3019
|
mobileWebEnabled: ((B = e.onlineBankDepositGatewaySettings) == null ? void 0 : B.mobileWebEnabled) ?? !1,
|
|
2933
3020
|
minimumAmount: n((U = e.onlineBankDepositGatewaySettings) == null ? void 0 : U.minimumAmount),
|
|
@@ -2953,17 +3040,17 @@ class ka {
|
|
|
2953
3040
|
},
|
|
2954
3041
|
gcash: {
|
|
2955
3042
|
androidEnabled: ((ne = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
|
|
2956
|
-
iosEnabled: ((
|
|
2957
|
-
webEnabled: ((
|
|
3043
|
+
iosEnabled: ((oe = e.gcashWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
|
|
3044
|
+
webEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
|
|
2958
3045
|
mobileWebEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
|
|
2959
3046
|
minimumAmount: n((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
|
|
2960
3047
|
maximumAmount: n(
|
|
2961
|
-
(
|
|
3048
|
+
(de = e.gcashWithdrawalGatewaySettings) == null ? void 0 : de.maximumAmount,
|
|
2962
3049
|
1e6
|
|
2963
3050
|
)
|
|
2964
3051
|
},
|
|
2965
3052
|
maya: {
|
|
2966
|
-
androidEnabled: ((
|
|
3053
|
+
androidEnabled: ((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
|
|
2967
3054
|
iosEnabled: ((ue = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
|
|
2968
3055
|
webEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
|
|
2969
3056
|
mobileWebEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
|
|
@@ -2988,14 +3075,14 @@ class ka {
|
|
|
2988
3075
|
mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
|
|
2989
3076
|
minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
|
|
2990
3077
|
maximumAmount: n(
|
|
2991
|
-
(
|
|
3078
|
+
(Me = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Me.maximumAmount,
|
|
2992
3079
|
1e6
|
|
2993
3080
|
)
|
|
2994
3081
|
}
|
|
2995
3082
|
}
|
|
2996
3083
|
},
|
|
2997
3084
|
pointsClubSettings: {
|
|
2998
|
-
multiplier: n((
|
|
3085
|
+
multiplier: n((Oe = e.pointsClubSettings) == null ? void 0 : Oe.multiplier, 0)
|
|
2999
3086
|
}
|
|
3000
3087
|
};
|
|
3001
3088
|
}
|
|
@@ -3003,7 +3090,7 @@ class ka {
|
|
|
3003
3090
|
return {
|
|
3004
3091
|
currency: e.currency,
|
|
3005
3092
|
timezone: e.timezone,
|
|
3006
|
-
locale:
|
|
3093
|
+
locale: ka(e.currency)
|
|
3007
3094
|
};
|
|
3008
3095
|
}
|
|
3009
3096
|
pointsClubSettings(e) {
|
|
@@ -3012,7 +3099,7 @@ class ka {
|
|
|
3012
3099
|
};
|
|
3013
3100
|
}
|
|
3014
3101
|
paymentSettings(e) {
|
|
3015
|
-
var t, a, r, s, m,
|
|
3102
|
+
var t, a, r, s, m, d, l, f, w, p, k, C, _, T, M, R, h, D, N, A, I, v, G, P, S, O, x, B, U, $, q, L, F, V, E, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, de, ce, ue, le, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, ke, Ce, _e, Te, Me;
|
|
3016
3103
|
return {
|
|
3017
3104
|
minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
|
|
3018
3105
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
@@ -3023,7 +3110,7 @@ class ka {
|
|
|
3023
3110
|
webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
|
|
3024
3111
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
3025
3112
|
minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
|
|
3026
|
-
maximumAmount: n((
|
|
3113
|
+
maximumAmount: n((d = e.bankDepositGatewaySettings) == null ? void 0 : d.maximumAmount)
|
|
3027
3114
|
},
|
|
3028
3115
|
gcash: {
|
|
3029
3116
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
@@ -3036,10 +3123,10 @@ class ka {
|
|
|
3036
3123
|
maya: {
|
|
3037
3124
|
androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
|
|
3038
3125
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
3039
|
-
webEnabled: ((
|
|
3040
|
-
mobileWebEnabled: ((
|
|
3126
|
+
webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
|
|
3127
|
+
mobileWebEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.mobileWebEnabled) ?? !1,
|
|
3041
3128
|
minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
3042
|
-
maximumAmount: n((
|
|
3129
|
+
maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
3043
3130
|
},
|
|
3044
3131
|
mayaApp: {
|
|
3045
3132
|
androidEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.androidEnabled) ?? !1,
|
|
@@ -3051,7 +3138,7 @@ class ka {
|
|
|
3051
3138
|
},
|
|
3052
3139
|
onlineBank: {
|
|
3053
3140
|
androidEnabled: ((S = e.onlineBankDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
|
|
3054
|
-
iosEnabled: ((
|
|
3141
|
+
iosEnabled: ((O = e.onlineBankDepositGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
3055
3142
|
webEnabled: ((x = e.onlineBankDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
|
|
3056
3143
|
mobileWebEnabled: ((B = e.onlineBankDepositGatewaySettings) == null ? void 0 : B.mobileWebEnabled) ?? !1,
|
|
3057
3144
|
minimumAmount: n((U = e.onlineBankDepositGatewaySettings) == null ? void 0 : U.minimumAmount),
|
|
@@ -3077,14 +3164,14 @@ class ka {
|
|
|
3077
3164
|
},
|
|
3078
3165
|
gcash: {
|
|
3079
3166
|
androidEnabled: ((ne = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
|
|
3080
|
-
iosEnabled: ((
|
|
3081
|
-
webEnabled: ((
|
|
3167
|
+
iosEnabled: ((oe = e.gcashWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
|
|
3168
|
+
webEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
|
|
3082
3169
|
mobileWebEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
|
|
3083
3170
|
minimumAmount: n((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
|
|
3084
|
-
maximumAmount: n((
|
|
3171
|
+
maximumAmount: n((de = e.gcashWithdrawalGatewaySettings) == null ? void 0 : de.maximumAmount, 1e6)
|
|
3085
3172
|
},
|
|
3086
3173
|
maya: {
|
|
3087
|
-
androidEnabled: ((
|
|
3174
|
+
androidEnabled: ((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
|
|
3088
3175
|
iosEnabled: ((ue = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
|
|
3089
3176
|
webEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
|
|
3090
3177
|
mobileWebEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
|
|
@@ -3109,7 +3196,7 @@ class ka {
|
|
|
3109
3196
|
mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
|
|
3110
3197
|
minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
|
|
3111
3198
|
maximumAmount: n(
|
|
3112
|
-
(
|
|
3199
|
+
(Me = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Me.maximumAmount,
|
|
3113
3200
|
1e6
|
|
3114
3201
|
)
|
|
3115
3202
|
}
|
|
@@ -3457,22 +3544,29 @@ class ka {
|
|
|
3457
3544
|
instapayBank(e) {
|
|
3458
3545
|
return e;
|
|
3459
3546
|
}
|
|
3547
|
+
promoCode(e) {
|
|
3548
|
+
const { banner: t, ...a } = e;
|
|
3549
|
+
return {
|
|
3550
|
+
...a,
|
|
3551
|
+
banner: t ? null : this.file(t)
|
|
3552
|
+
};
|
|
3553
|
+
}
|
|
3460
3554
|
}
|
|
3461
|
-
class
|
|
3555
|
+
class Da {
|
|
3462
3556
|
constructor(e) {
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3557
|
+
c(this, "cmsPortalService");
|
|
3558
|
+
c(this, "authService");
|
|
3559
|
+
c(this, "gameService");
|
|
3560
|
+
c(this, "fileService");
|
|
3561
|
+
c(this, "walletService");
|
|
3562
|
+
c(this, "accountService");
|
|
3563
|
+
c(this, "reportService");
|
|
3564
|
+
c(this, "portalService");
|
|
3565
|
+
c(this, "triggerService");
|
|
3566
|
+
c(this, "sessionManager");
|
|
3567
|
+
c(this, "transformer");
|
|
3568
|
+
c(this, "logger");
|
|
3569
|
+
c(this, "cache");
|
|
3476
3570
|
const {
|
|
3477
3571
|
/**/
|
|
3478
3572
|
site: t,
|
|
@@ -3480,12 +3574,12 @@ class Ta {
|
|
|
3480
3574
|
platform: r,
|
|
3481
3575
|
environment: s,
|
|
3482
3576
|
logs: m
|
|
3483
|
-
} = e,
|
|
3484
|
-
this.transformer = new
|
|
3577
|
+
} = e, d = s === "production";
|
|
3578
|
+
this.transformer = new Ta(), this.logger = new qe({
|
|
3485
3579
|
enabled: m ?? !1
|
|
3486
3580
|
});
|
|
3487
|
-
const l =
|
|
3488
|
-
url:
|
|
3581
|
+
const l = d ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = d ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = d ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = d ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", k = d ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", C = d ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = d ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = d ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", M = "https://portal-api.opexacms.io/v1", R = new ua({
|
|
3582
|
+
url: M,
|
|
3489
3583
|
site: t,
|
|
3490
3584
|
platform: a
|
|
3491
3585
|
}), h = {
|
|
@@ -3496,15 +3590,15 @@ class Ta {
|
|
|
3496
3590
|
"Platform-Code": r
|
|
3497
3591
|
}
|
|
3498
3592
|
}
|
|
3499
|
-
},
|
|
3593
|
+
}, D = new pa(new Q(_, h)), N = new la(new Q(C, h)), A = new ha(new Q(f, h)), I = new da(new Q(p, h)), v = new wa(new Q(w, h)), G = new fa(new Q(k, h)), P = new ya(new Q(T, h)), S = new ca({
|
|
3500
3594
|
url: l,
|
|
3501
3595
|
platform: r
|
|
3502
|
-
}),
|
|
3596
|
+
}), O = new _a({
|
|
3503
3597
|
logs: m,
|
|
3504
3598
|
authService: S,
|
|
3505
3599
|
walletService: A
|
|
3506
3600
|
});
|
|
3507
|
-
this.authService = S, this.gameService =
|
|
3601
|
+
this.authService = S, this.gameService = D, this.fileService = N, this.walletService = A, this.accountService = I, this.reportService = v, this.portalService = G, this.triggerService = P, this.sessionManager = O, this.cmsPortalService = R, this.cache = new ga();
|
|
3508
3602
|
}
|
|
3509
3603
|
get authMiddleware() {
|
|
3510
3604
|
return async (e) => {
|
|
@@ -3552,7 +3646,7 @@ class Ta {
|
|
|
3552
3646
|
case "MOBILE_NUMBER": {
|
|
3553
3647
|
const t = await this.sessionManager.create({
|
|
3554
3648
|
type: "MOBILE_NUMBER",
|
|
3555
|
-
mobileNumber:
|
|
3649
|
+
mobileNumber: W(e.mobileNumber, await this.locale),
|
|
3556
3650
|
verificationCode: e.verificationCode,
|
|
3557
3651
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3558
3652
|
});
|
|
@@ -3586,7 +3680,7 @@ class Ta {
|
|
|
3586
3680
|
await this.sessionManager.destroy();
|
|
3587
3681
|
}
|
|
3588
3682
|
watchSession(e) {
|
|
3589
|
-
const t =
|
|
3683
|
+
const t = ba(e.interval ?? 3e4, 3e4, 6e4);
|
|
3590
3684
|
let a = null;
|
|
3591
3685
|
const r = () => setTimeout(async () => {
|
|
3592
3686
|
await this.sessionManager.verify() || await e.onInvalid(), a = r();
|
|
@@ -3671,7 +3765,7 @@ class Ta {
|
|
|
3671
3765
|
domain: e.domain,
|
|
3672
3766
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : this.formatYmd(e.dateOfBirth),
|
|
3673
3767
|
password: await g(e.password),
|
|
3674
|
-
mobileNumber:
|
|
3768
|
+
mobileNumber: W(e.mobileNumber, await this.locale)
|
|
3675
3769
|
},
|
|
3676
3770
|
referralCode: e.referralCode,
|
|
3677
3771
|
verificationCode: e.verificationCode,
|
|
@@ -3687,7 +3781,7 @@ class Ta {
|
|
|
3687
3781
|
id: t,
|
|
3688
3782
|
btag: e.btag,
|
|
3689
3783
|
domain: e.domain,
|
|
3690
|
-
mobileNumber:
|
|
3784
|
+
mobileNumber: W(e.mobileNumber, await this.locale)
|
|
3691
3785
|
},
|
|
3692
3786
|
referralCode: e.referralCode,
|
|
3693
3787
|
verificationCode: e.verificationCode,
|
|
@@ -3702,7 +3796,7 @@ class Ta {
|
|
|
3702
3796
|
btag: e.btag,
|
|
3703
3797
|
domain: e.domain,
|
|
3704
3798
|
password: await g(e.password),
|
|
3705
|
-
mobileNumber: e.mobileNumber ?
|
|
3799
|
+
mobileNumber: e.mobileNumber ? W(e.mobileNumber, await this.locale) : void 0
|
|
3706
3800
|
},
|
|
3707
3801
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3708
3802
|
});
|
|
@@ -3724,7 +3818,7 @@ class Ta {
|
|
|
3724
3818
|
dateOfBirth: r,
|
|
3725
3819
|
mobileNumber: s,
|
|
3726
3820
|
secretAnswer: m,
|
|
3727
|
-
transactionPassword:
|
|
3821
|
+
transactionPassword: d,
|
|
3728
3822
|
...l
|
|
3729
3823
|
} = t;
|
|
3730
3824
|
return await this.accountService.updateMemberAccount({
|
|
@@ -3733,8 +3827,8 @@ class Ta {
|
|
|
3733
3827
|
data: {
|
|
3734
3828
|
...l,
|
|
3735
3829
|
password: a ? await g(a) : void 0,
|
|
3736
|
-
transactionPassword:
|
|
3737
|
-
mobileNumber: s ?
|
|
3830
|
+
transactionPassword: d ? await g(d) : void 0,
|
|
3831
|
+
mobileNumber: s ? W(s, await this.locale) : void 0,
|
|
3738
3832
|
secretAnswer: m ? await g(m) : void 0,
|
|
3739
3833
|
birthDay: r ? typeof r == "string" ? r : this.formatYmd(r) : void 0
|
|
3740
3834
|
}
|
|
@@ -3777,7 +3871,7 @@ class Ta {
|
|
|
3777
3871
|
async resetPassword(e) {
|
|
3778
3872
|
return await this.accountService.resetPassword({
|
|
3779
3873
|
input: {
|
|
3780
|
-
mobileNumber:
|
|
3874
|
+
mobileNumber: W(e.mobileNumber, await this.locale),
|
|
3781
3875
|
newPassword: await g(e.newPassword)
|
|
3782
3876
|
},
|
|
3783
3877
|
verificationCode: e.verificationCode
|
|
@@ -3804,7 +3898,7 @@ class Ta {
|
|
|
3804
3898
|
return await this.accountService.sendVerificationCode({
|
|
3805
3899
|
input: {
|
|
3806
3900
|
channel: "SMS",
|
|
3807
|
-
recipient:
|
|
3901
|
+
recipient: W(e, await this.locale)
|
|
3808
3902
|
}
|
|
3809
3903
|
});
|
|
3810
3904
|
}
|
|
@@ -3812,7 +3906,7 @@ class Ta {
|
|
|
3812
3906
|
if (e.type === "SMS")
|
|
3813
3907
|
return this.authService.sendVerificationCode({
|
|
3814
3908
|
channel: "SMS",
|
|
3815
|
-
recipient:
|
|
3909
|
+
recipient: W(e.mobileNumber, await this.locale),
|
|
3816
3910
|
...e.strict && {
|
|
3817
3911
|
verificationType: "MEMBER"
|
|
3818
3912
|
}
|
|
@@ -3877,7 +3971,7 @@ class Ta {
|
|
|
3877
3971
|
id: t,
|
|
3878
3972
|
amount: e.amount.toString(),
|
|
3879
3973
|
transactionPassword: await g(e.transactionPassword),
|
|
3880
|
-
recipientMobileNumber:
|
|
3974
|
+
recipientMobileNumber: W(e.recipientMobileNumber, await this.locale)
|
|
3881
3975
|
}
|
|
3882
3976
|
});
|
|
3883
3977
|
if (!a.ok) return a;
|
|
@@ -3888,7 +3982,7 @@ class Ta {
|
|
|
3888
3982
|
id: t,
|
|
3889
3983
|
amount: e.amount.toString(),
|
|
3890
3984
|
transactionPassword: await g(e.transactionPassword),
|
|
3891
|
-
recipientMobileNumber:
|
|
3985
|
+
recipientMobileNumber: W(e.recipientMobileNumber, await this.locale)
|
|
3892
3986
|
}
|
|
3893
3987
|
});
|
|
3894
3988
|
if (!a.ok) return a;
|
|
@@ -4081,11 +4175,11 @@ class Ta {
|
|
|
4081
4175
|
data: {
|
|
4082
4176
|
betRecords: t.data.edges.map(({ cursor: s, node: m }) => {
|
|
4083
4177
|
var l;
|
|
4084
|
-
const
|
|
4178
|
+
const d = (l = r.data.edges.find((f) => m.game.id === f.node.reference)) == null ? void 0 : l.node;
|
|
4085
4179
|
return {
|
|
4086
4180
|
...this.transformer.transform.betRecord({
|
|
4087
4181
|
...m,
|
|
4088
|
-
game:
|
|
4182
|
+
game: d
|
|
4089
4183
|
}),
|
|
4090
4184
|
cursor: s
|
|
4091
4185
|
};
|
|
@@ -4116,7 +4210,7 @@ class Ta {
|
|
|
4116
4210
|
ok: !0,
|
|
4117
4211
|
data: e.data.map((r) => {
|
|
4118
4212
|
var m;
|
|
4119
|
-
const s = (m = a.data.edges.find((
|
|
4213
|
+
const s = (m = a.data.edges.find((d) => d.node.reference === r.game.id)) == null ? void 0 : m.node;
|
|
4120
4214
|
return this.transformer.transform.latestBetRecord({
|
|
4121
4215
|
...r,
|
|
4122
4216
|
game: s
|
|
@@ -4187,6 +4281,16 @@ class Ta {
|
|
|
4187
4281
|
async claimCashbackBonus(e) {
|
|
4188
4282
|
return await this.walletService.claimCashbackBonus({ input: { id: e } });
|
|
4189
4283
|
}
|
|
4284
|
+
async claimSpotBonus(e) {
|
|
4285
|
+
return await this.walletService.claimSpotBonus({ code: e });
|
|
4286
|
+
}
|
|
4287
|
+
async promoByCode(e) {
|
|
4288
|
+
const t = await this.reportService.promoByCode({ code: e });
|
|
4289
|
+
return t.ok ? {
|
|
4290
|
+
ok: !0,
|
|
4291
|
+
data: this.transformer.transform.promoCode(t.data)
|
|
4292
|
+
} : t;
|
|
4293
|
+
}
|
|
4190
4294
|
/**/
|
|
4191
4295
|
/*+----------------------------------------+*/
|
|
4192
4296
|
/*+ GAME +*/
|
|
@@ -4504,8 +4608,8 @@ class Ta {
|
|
|
4504
4608
|
}
|
|
4505
4609
|
}
|
|
4506
4610
|
export {
|
|
4507
|
-
|
|
4611
|
+
va as ObjectId,
|
|
4508
4612
|
Y as ObjectType,
|
|
4509
|
-
|
|
4613
|
+
Da as Sdk
|
|
4510
4614
|
};
|
|
4511
4615
|
//# sourceMappingURL=index.mjs.map
|