@opexa/portal-sdk 0.0.83 → 0.0.85
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 +66 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +290 -284
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +3 -0
- package/dist/services/types.d.ts +7 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _e = Object.defineProperty;
|
|
2
2
|
var Te = (o, e, t) => e in o ? _e(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var m = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as k } from "@opexa/object-id";
|
|
5
|
-
import { ObjectId as
|
|
5
|
+
import { ObjectId as Yt } from "@opexa/object-id";
|
|
6
6
|
const _ = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -13,7 +13,7 @@ const _ = {
|
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function i(o, ...e) {
|
|
17
17
|
let t = "";
|
|
18
18
|
for (const [r, a] of o.entries()) {
|
|
19
19
|
const s = e.at(r) ?? "";
|
|
@@ -21,14 +21,14 @@ function n(o, ...e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const L =
|
|
24
|
+
const L = i`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`, ve =
|
|
31
|
+
`, ve = i`
|
|
32
32
|
${L}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
@@ -38,7 +38,7 @@ const L = n`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`, Me =
|
|
41
|
+
`, Me = i`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const L = n`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`, Re =
|
|
55
|
+
`, Re = i`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const L = n`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`, Ne =
|
|
65
|
+
`, Ne = i`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const L = n`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`, Ie =
|
|
74
|
+
`, Ie = i`
|
|
75
75
|
mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
|
|
76
76
|
redeemPointsToCash(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,7 +79,7 @@ const L = n`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`, De =
|
|
82
|
+
`, De = i`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -107,8 +107,8 @@ const L = n`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
111
|
-
current:
|
|
110
|
+
`, Ee = {
|
|
111
|
+
current: i`
|
|
112
112
|
query GameSession($id: ObjectId!) {
|
|
113
113
|
node(id: $id) {
|
|
114
114
|
... on GameSession {
|
|
@@ -122,7 +122,7 @@ const L = n`
|
|
|
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 L = n`
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
`
|
|
141
|
-
},
|
|
141
|
+
}, be = i`
|
|
142
142
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
143
143
|
createGameSession(input: $input) {
|
|
144
144
|
... on GameDoesNotExistError {
|
|
@@ -147,12 +147,12 @@ const L = n`
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
`, Ae = {
|
|
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,7 +167,7 @@ const L = n`
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
`
|
|
170
|
-
}, Pe =
|
|
170
|
+
}, Pe = i`
|
|
171
171
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
172
172
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
173
173
|
edges {
|
|
@@ -193,7 +193,7 @@ const L = n`
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
`, $e =
|
|
196
|
+
`, $e = i`
|
|
197
197
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
198
198
|
member {
|
|
199
199
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -260,7 +260,7 @@ const L = n`
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
`, xe =
|
|
263
|
+
`, xe = i`
|
|
264
264
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
265
265
|
createGCashWithdrawal(input: $input) {
|
|
266
266
|
... on AccountNotVerifiedError {
|
|
@@ -283,7 +283,7 @@ const L = n`
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
`, Ge =
|
|
286
|
+
`, Ge = i`
|
|
287
287
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
288
288
|
createMayaWithdrawal(input: $input) {
|
|
289
289
|
... on AccountNotVerifiedError {
|
|
@@ -306,7 +306,7 @@ const L = n`
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
`, Ue =
|
|
309
|
+
`, Ue = i`
|
|
310
310
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
311
311
|
createMayaAppWithdrawal(input: $input) {
|
|
312
312
|
... on AccountNotVerifiedError {
|
|
@@ -326,7 +326,7 @@ const L = n`
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
`, Oe =
|
|
329
|
+
`, Oe = i`
|
|
330
330
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
331
331
|
createBankWithdrawal(input: $input) {
|
|
332
332
|
... on MobileNumberNotVerifiedError {
|
|
@@ -349,11 +349,11 @@ const L = n`
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
`, We =
|
|
352
|
+
`, We = i`
|
|
353
353
|
query RemainingDailyWithdrawalsCount {
|
|
354
354
|
remainingDailyWithdrawalsCount
|
|
355
355
|
}
|
|
356
|
-
`, Be =
|
|
356
|
+
`, Be = i`
|
|
357
357
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
358
358
|
member {
|
|
359
359
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -382,7 +382,7 @@ const L = n`
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
`, qe =
|
|
385
|
+
`, qe = i`
|
|
386
386
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
387
387
|
createGCashDeposit(input: $input) {
|
|
388
388
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -411,7 +411,7 @@ const L = n`
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
`, Fe =
|
|
414
|
+
`, Fe = i`
|
|
415
415
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
416
416
|
createMayaDeposit(input: $input) {
|
|
417
417
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -440,7 +440,7 @@ const L = n`
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
`, Le =
|
|
443
|
+
`, Le = i`
|
|
444
444
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
445
445
|
createMayaAppDeposit(input: $input) {
|
|
446
446
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -469,7 +469,7 @@ const L = n`
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
`, Ve =
|
|
472
|
+
`, Ve = i`
|
|
473
473
|
query Deposit($id: ObjectId!) {
|
|
474
474
|
node(id: $id) {
|
|
475
475
|
... on GCashDeposit {
|
|
@@ -501,13 +501,13 @@ const L = n`
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
`, He =
|
|
504
|
+
`, He = i`
|
|
505
505
|
query DepositsCount {
|
|
506
506
|
member {
|
|
507
507
|
depositsCount
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`, Ye =
|
|
510
|
+
`, Ye = i`
|
|
511
511
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
512
512
|
member {
|
|
513
513
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -548,7 +548,7 @@ const L = n`
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
`, je =
|
|
551
|
+
`, je = i`
|
|
552
552
|
query LatestBetRecords {
|
|
553
553
|
latestBetRecords {
|
|
554
554
|
id
|
|
@@ -568,7 +568,7 @@ const L = n`
|
|
|
568
568
|
dateTimeCreated
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
`, Qe =
|
|
571
|
+
`, Qe = i`
|
|
572
572
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
573
573
|
member {
|
|
574
574
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -594,7 +594,7 @@ const L = n`
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
`, Y =
|
|
597
|
+
`, Y = i`
|
|
598
598
|
${L}
|
|
599
599
|
|
|
600
600
|
fragment PromoFragment on Promo {
|
|
@@ -613,7 +613,7 @@ const L = n`
|
|
|
613
613
|
dateTimeCreated
|
|
614
614
|
dateTimeLastUpdated
|
|
615
615
|
}
|
|
616
|
-
`, Ke =
|
|
616
|
+
`, Ke = i`
|
|
617
617
|
${Y}
|
|
618
618
|
|
|
619
619
|
query Promos {
|
|
@@ -621,7 +621,7 @@ const L = n`
|
|
|
621
621
|
...PromoFragment
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
`, ze =
|
|
624
|
+
`, ze = i`
|
|
625
625
|
${Y}
|
|
626
626
|
|
|
627
627
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -629,7 +629,7 @@ const L = n`
|
|
|
629
629
|
...PromoFragment
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
`, Se =
|
|
632
|
+
`, Se = i`
|
|
633
633
|
${L}
|
|
634
634
|
|
|
635
635
|
fragment CashbackFragment on Cashback {
|
|
@@ -638,6 +638,8 @@ const L = n`
|
|
|
638
638
|
banner {
|
|
639
639
|
...FileFragment
|
|
640
640
|
}
|
|
641
|
+
minimumCashback
|
|
642
|
+
maximumMonthlyCashback
|
|
641
643
|
status
|
|
642
644
|
description
|
|
643
645
|
activationStartDateTime
|
|
@@ -646,7 +648,7 @@ const L = n`
|
|
|
646
648
|
dateTimeCreated
|
|
647
649
|
dateTimeLastUpdated
|
|
648
650
|
}
|
|
649
|
-
`, Je =
|
|
651
|
+
`, Je = i`
|
|
650
652
|
${Se}
|
|
651
653
|
|
|
652
654
|
query Cashbacks {
|
|
@@ -654,7 +656,7 @@ const L = n`
|
|
|
654
656
|
...CashbackFragment
|
|
655
657
|
}
|
|
656
658
|
}
|
|
657
|
-
`, Xe =
|
|
659
|
+
`, Xe = i`
|
|
658
660
|
${Y}
|
|
659
661
|
|
|
660
662
|
query Bonus {
|
|
@@ -683,13 +685,14 @@ const L = n`
|
|
|
683
685
|
dateTimeLastUpdated
|
|
684
686
|
}
|
|
685
687
|
}
|
|
686
|
-
`, Ze =
|
|
688
|
+
`, Ze = i`
|
|
687
689
|
${Se}
|
|
688
690
|
|
|
689
691
|
query CashbackBonuses {
|
|
690
692
|
cashbackBonuses {
|
|
691
693
|
id
|
|
692
694
|
balance
|
|
695
|
+
total
|
|
693
696
|
cashback {
|
|
694
697
|
...CashbackFragment
|
|
695
698
|
}
|
|
@@ -697,7 +700,7 @@ const L = n`
|
|
|
697
700
|
dateTimeLastUpdated
|
|
698
701
|
}
|
|
699
702
|
}
|
|
700
|
-
`, et =
|
|
703
|
+
`, et = i`
|
|
701
704
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
702
705
|
claimCashbackBonus(input: $input) {
|
|
703
706
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -706,14 +709,14 @@ const L = n`
|
|
|
706
709
|
}
|
|
707
710
|
}
|
|
708
711
|
`;
|
|
709
|
-
|
|
712
|
+
i`
|
|
710
713
|
query Member {
|
|
711
714
|
member {
|
|
712
715
|
dateTimeLastActive
|
|
713
716
|
}
|
|
714
717
|
}
|
|
715
718
|
`;
|
|
716
|
-
const tt =
|
|
719
|
+
const tt = i`
|
|
717
720
|
query MemberAccount {
|
|
718
721
|
memberAccount: self {
|
|
719
722
|
... on MemberAccount {
|
|
@@ -737,7 +740,7 @@ const tt = n`
|
|
|
737
740
|
}
|
|
738
741
|
}
|
|
739
742
|
}
|
|
740
|
-
`, rt =
|
|
743
|
+
`, rt = i`
|
|
741
744
|
${L}
|
|
742
745
|
|
|
743
746
|
query MemberVerification {
|
|
@@ -762,7 +765,7 @@ const tt = n`
|
|
|
762
765
|
}
|
|
763
766
|
}
|
|
764
767
|
}
|
|
765
|
-
`, at =
|
|
768
|
+
`, at = i`
|
|
766
769
|
mutation RegisterMemberAccount(
|
|
767
770
|
$input: RegisterMemberAccountInput!
|
|
768
771
|
$referralCode: String
|
|
@@ -798,7 +801,7 @@ const tt = n`
|
|
|
798
801
|
}
|
|
799
802
|
}
|
|
800
803
|
}
|
|
801
|
-
`, ot =
|
|
804
|
+
`, ot = i`
|
|
802
805
|
mutation RegisterMemberAccountViaMobile(
|
|
803
806
|
$input: RegisterMemberAccountViaMobileInput!
|
|
804
807
|
$referralCode: String
|
|
@@ -825,7 +828,7 @@ const tt = n`
|
|
|
825
828
|
}
|
|
826
829
|
}
|
|
827
830
|
}
|
|
828
|
-
`, nt =
|
|
831
|
+
`, nt = i`
|
|
829
832
|
mutation RegisterMemberAccount(
|
|
830
833
|
$input: RegisterMemberAccountInput_next!
|
|
831
834
|
$reCAPTCHAResponse: String
|
|
@@ -857,7 +860,7 @@ const tt = n`
|
|
|
857
860
|
}
|
|
858
861
|
}
|
|
859
862
|
}
|
|
860
|
-
`, it =
|
|
863
|
+
`, it = i`
|
|
861
864
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
862
865
|
registerMayaMemberAccount(input: $input) {
|
|
863
866
|
... on AccountNameNotAvailableError {
|
|
@@ -865,7 +868,7 @@ const tt = n`
|
|
|
865
868
|
}
|
|
866
869
|
}
|
|
867
870
|
}
|
|
868
|
-
`, st =
|
|
871
|
+
`, st = i`
|
|
869
872
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
870
873
|
updateMemberAccount(input: $input) {
|
|
871
874
|
... on AccountNameNotAvailableError {
|
|
@@ -891,7 +894,7 @@ const tt = n`
|
|
|
891
894
|
}
|
|
892
895
|
}
|
|
893
896
|
}
|
|
894
|
-
`, ct =
|
|
897
|
+
`, ct = i`
|
|
895
898
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
896
899
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
897
900
|
... on AccountNotFoundError {
|
|
@@ -902,11 +905,11 @@ const tt = n`
|
|
|
902
905
|
}
|
|
903
906
|
}
|
|
904
907
|
}
|
|
905
|
-
`,
|
|
908
|
+
`, mt = i`
|
|
906
909
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
907
910
|
deleteMemberAccount(input: $input)
|
|
908
911
|
}
|
|
909
|
-
`,
|
|
912
|
+
`, dt = i`
|
|
910
913
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
911
914
|
verifyMobileNumber(input: $input) {
|
|
912
915
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -917,7 +920,7 @@ const tt = n`
|
|
|
917
920
|
}
|
|
918
921
|
}
|
|
919
922
|
}
|
|
920
|
-
`, ut =
|
|
923
|
+
`, ut = i`
|
|
921
924
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
922
925
|
createMemberVerification(input: $input) {
|
|
923
926
|
... on FileDoesNotExistError {
|
|
@@ -931,7 +934,7 @@ const tt = n`
|
|
|
931
934
|
}
|
|
932
935
|
}
|
|
933
936
|
}
|
|
934
|
-
`, lt =
|
|
937
|
+
`, lt = i`
|
|
935
938
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
936
939
|
updateMemberVerification(input: $input) {
|
|
937
940
|
... on FileDoesNotExistError {
|
|
@@ -948,7 +951,7 @@ const tt = n`
|
|
|
948
951
|
}
|
|
949
952
|
}
|
|
950
953
|
}
|
|
951
|
-
`, ft =
|
|
954
|
+
`, ft = i`
|
|
952
955
|
query ProfileCompletion {
|
|
953
956
|
profileCompletion {
|
|
954
957
|
completionPercentage
|
|
@@ -959,7 +962,7 @@ const tt = n`
|
|
|
959
962
|
accountPassword
|
|
960
963
|
}
|
|
961
964
|
}
|
|
962
|
-
`, pt =
|
|
965
|
+
`, pt = i`
|
|
963
966
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
964
967
|
sendVerificationCode(input: $input) {
|
|
965
968
|
... on InvalidPlatformError {
|
|
@@ -970,7 +973,7 @@ const tt = n`
|
|
|
970
973
|
}
|
|
971
974
|
}
|
|
972
975
|
}
|
|
973
|
-
`, ht =
|
|
976
|
+
`, ht = i`
|
|
974
977
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
975
978
|
minimumAmount
|
|
976
979
|
maximumAmount
|
|
@@ -1026,7 +1029,7 @@ const tt = n`
|
|
|
1026
1029
|
multiplier
|
|
1027
1030
|
}
|
|
1028
1031
|
}
|
|
1029
|
-
`,
|
|
1032
|
+
`, yt = i`
|
|
1030
1033
|
query MayaSession($id: ObjectId!) {
|
|
1031
1034
|
mayaSession(id: $id) {
|
|
1032
1035
|
id
|
|
@@ -1034,11 +1037,11 @@ const tt = n`
|
|
|
1034
1037
|
dateTimeCreated
|
|
1035
1038
|
}
|
|
1036
1039
|
}
|
|
1037
|
-
`,
|
|
1040
|
+
`, wt = i`
|
|
1038
1041
|
mutation ValidateMayaSession {
|
|
1039
1042
|
validateMayaSession: validMayaSession
|
|
1040
1043
|
}
|
|
1041
|
-
`, gt =
|
|
1044
|
+
`, gt = i`
|
|
1042
1045
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1043
1046
|
member {
|
|
1044
1047
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1063,11 +1066,11 @@ const tt = n`
|
|
|
1063
1066
|
}
|
|
1064
1067
|
}
|
|
1065
1068
|
}
|
|
1066
|
-
`,
|
|
1069
|
+
`, Et = i`
|
|
1067
1070
|
query ReferralCode {
|
|
1068
1071
|
referralCode
|
|
1069
1072
|
}
|
|
1070
|
-
`,
|
|
1073
|
+
`, bt = i`
|
|
1071
1074
|
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1072
1075
|
updateReferralCode(input: $input) {
|
|
1073
1076
|
... on ReferralCodeNotAvailableError {
|
|
@@ -1075,7 +1078,7 @@ const tt = n`
|
|
|
1075
1078
|
}
|
|
1076
1079
|
}
|
|
1077
1080
|
}
|
|
1078
|
-
`, j =
|
|
1081
|
+
`, j = i`
|
|
1079
1082
|
fragment ReferralFragment on Referral {
|
|
1080
1083
|
id
|
|
1081
1084
|
upline {
|
|
@@ -1093,7 +1096,7 @@ const tt = n`
|
|
|
1093
1096
|
commission
|
|
1094
1097
|
dateTimeCreated
|
|
1095
1098
|
}
|
|
1096
|
-
`, At =
|
|
1099
|
+
`, At = i`
|
|
1097
1100
|
query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
|
|
1098
1101
|
member {
|
|
1099
1102
|
referrals(first: $first, after: $after, filter: $filter) {
|
|
@@ -1115,7 +1118,7 @@ const tt = n`
|
|
|
1115
1118
|
}
|
|
1116
1119
|
|
|
1117
1120
|
${j}
|
|
1118
|
-
`, St =
|
|
1121
|
+
`, St = i`
|
|
1119
1122
|
query UplinesByName($search: String!, $first: Int) {
|
|
1120
1123
|
uplinesByName(search: $search, first: $first) {
|
|
1121
1124
|
...ReferralFragment
|
|
@@ -1123,7 +1126,7 @@ const tt = n`
|
|
|
1123
1126
|
}
|
|
1124
1127
|
|
|
1125
1128
|
${j}
|
|
1126
|
-
`, Ct =
|
|
1129
|
+
`, Ct = i`
|
|
1127
1130
|
query DownlinesByName($search: String!, $first: Int) {
|
|
1128
1131
|
downlinesByName(search: $search, first: $first) {
|
|
1129
1132
|
...ReferralFragment
|
|
@@ -1131,7 +1134,7 @@ const tt = n`
|
|
|
1131
1134
|
}
|
|
1132
1135
|
|
|
1133
1136
|
${j}
|
|
1134
|
-
`, kt =
|
|
1137
|
+
`, kt = i`
|
|
1135
1138
|
query ReferralCommission {
|
|
1136
1139
|
member {
|
|
1137
1140
|
referralCommission {
|
|
@@ -1151,7 +1154,7 @@ const tt = n`
|
|
|
1151
1154
|
}
|
|
1152
1155
|
}
|
|
1153
1156
|
`;
|
|
1154
|
-
function
|
|
1157
|
+
function d(o) {
|
|
1155
1158
|
return {
|
|
1156
1159
|
name: o,
|
|
1157
1160
|
message: {
|
|
@@ -1198,17 +1201,17 @@ function m(o) {
|
|
|
1198
1201
|
GameSessionAlreadyClosedError: "Game session is already closed",
|
|
1199
1202
|
GameSessionDoesNotExistError: "Game session does not exist",
|
|
1200
1203
|
ReferralCodeNotAvailableError: "Referral code is no longer available",
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1204
|
+
AccountBlacklistedError: "Account is blacklisted",
|
|
1205
|
+
InvalidTokenError: "Invalid token",
|
|
1206
|
+
InvalidTokenOrSecretAnswerError: "Invalid token or secret answer",
|
|
1207
|
+
SessionExpiredError: "Session expired",
|
|
1208
|
+
RateLimitExceededError: "Maximum number of requests reached"
|
|
1206
1209
|
}[o]
|
|
1207
1210
|
};
|
|
1208
1211
|
}
|
|
1209
1212
|
class _t {
|
|
1210
1213
|
constructor(e) {
|
|
1211
|
-
|
|
1214
|
+
m(this, "client");
|
|
1212
1215
|
this.client = e;
|
|
1213
1216
|
}
|
|
1214
1217
|
/** aka `Query.self` */
|
|
@@ -1223,7 +1226,7 @@ class _t {
|
|
|
1223
1226
|
const t = await this.client.request(at, e);
|
|
1224
1227
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1225
1228
|
ok: !1,
|
|
1226
|
-
error:
|
|
1229
|
+
error: d(t.data.registerMemberAccount.__typename)
|
|
1227
1230
|
} : {
|
|
1228
1231
|
ok: !0
|
|
1229
1232
|
} : t;
|
|
@@ -1232,7 +1235,7 @@ class _t {
|
|
|
1232
1235
|
const t = await this.client.request(ot, e);
|
|
1233
1236
|
return t.ok ? t.data.registerMemberAccountViaMobile ? {
|
|
1234
1237
|
ok: !1,
|
|
1235
|
-
error:
|
|
1238
|
+
error: d(t.data.registerMemberAccountViaMobile.__typename)
|
|
1236
1239
|
} : {
|
|
1237
1240
|
ok: !0
|
|
1238
1241
|
} : t;
|
|
@@ -1241,7 +1244,7 @@ class _t {
|
|
|
1241
1244
|
const t = await this.client.request(nt, e);
|
|
1242
1245
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1243
1246
|
ok: !1,
|
|
1244
|
-
error:
|
|
1247
|
+
error: d(t.data.registerMemberAccount.__typename)
|
|
1245
1248
|
} : {
|
|
1246
1249
|
ok: !0
|
|
1247
1250
|
} : t;
|
|
@@ -1250,13 +1253,13 @@ class _t {
|
|
|
1250
1253
|
const t = await this.client.request(st, e);
|
|
1251
1254
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1252
1255
|
ok: !1,
|
|
1253
|
-
error:
|
|
1256
|
+
error: d(t.data.updateMemberAccount.__typename)
|
|
1254
1257
|
} : {
|
|
1255
1258
|
ok: !0
|
|
1256
1259
|
} : t;
|
|
1257
1260
|
}
|
|
1258
1261
|
async deleteMemberAccount(e) {
|
|
1259
|
-
const t = await this.client.request(
|
|
1262
|
+
const t = await this.client.request(mt, e);
|
|
1260
1263
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1261
1264
|
ok: !0
|
|
1262
1265
|
} : {
|
|
@@ -1274,7 +1277,7 @@ class _t {
|
|
|
1274
1277
|
);
|
|
1275
1278
|
return t.ok ? t.data.resetPassword ? {
|
|
1276
1279
|
ok: !1,
|
|
1277
|
-
error:
|
|
1280
|
+
error: d(t.data.resetPassword.__typename)
|
|
1278
1281
|
} : {
|
|
1279
1282
|
ok: !0
|
|
1280
1283
|
} : t;
|
|
@@ -1291,16 +1294,16 @@ class _t {
|
|
|
1291
1294
|
const t = await this.client.request(pt, e);
|
|
1292
1295
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1293
1296
|
ok: !1,
|
|
1294
|
-
error:
|
|
1297
|
+
error: d(t.data.sendVerificationCode.__typename)
|
|
1295
1298
|
} : {
|
|
1296
1299
|
ok: !0
|
|
1297
1300
|
} : t;
|
|
1298
1301
|
}
|
|
1299
1302
|
async verifyMobileNumber(e) {
|
|
1300
|
-
const t = await this.client.request(
|
|
1303
|
+
const t = await this.client.request(dt, e);
|
|
1301
1304
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1302
1305
|
ok: !1,
|
|
1303
|
-
error:
|
|
1306
|
+
error: d(t.data.verifyMobileNumber.__typename)
|
|
1304
1307
|
} : {
|
|
1305
1308
|
ok: !0
|
|
1306
1309
|
} : t;
|
|
@@ -1309,7 +1312,7 @@ class _t {
|
|
|
1309
1312
|
const t = await this.client.request(ut, e);
|
|
1310
1313
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1311
1314
|
ok: !1,
|
|
1312
|
-
error:
|
|
1315
|
+
error: d(t.data.createMemberVerification.__typename)
|
|
1313
1316
|
} : {
|
|
1314
1317
|
ok: !0
|
|
1315
1318
|
} : t;
|
|
@@ -1318,7 +1321,7 @@ class _t {
|
|
|
1318
1321
|
const t = await this.client.request(lt, e);
|
|
1319
1322
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1320
1323
|
ok: !1,
|
|
1321
|
-
error:
|
|
1324
|
+
error: d(t.data.updateMemberVerification.__typename)
|
|
1322
1325
|
} : {
|
|
1323
1326
|
ok: !0
|
|
1324
1327
|
} : t;
|
|
@@ -1344,29 +1347,29 @@ class _t {
|
|
|
1344
1347
|
const t = await this.client.request(it, e);
|
|
1345
1348
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1346
1349
|
ok: !1,
|
|
1347
|
-
error:
|
|
1350
|
+
error: d(t.data.registerMayaMemberAccount.__typename)
|
|
1348
1351
|
} : {
|
|
1349
1352
|
ok: !0
|
|
1350
1353
|
} : t;
|
|
1351
1354
|
}
|
|
1352
1355
|
async referralCode() {
|
|
1353
|
-
const e = await this.client.request(
|
|
1356
|
+
const e = await this.client.request(Et);
|
|
1354
1357
|
return e.ok ? {
|
|
1355
1358
|
ok: !0,
|
|
1356
1359
|
data: e.data.referralCode
|
|
1357
1360
|
} : e;
|
|
1358
1361
|
}
|
|
1359
1362
|
async updateReferralCode(e) {
|
|
1360
|
-
const t = await this.client.request(
|
|
1363
|
+
const t = await this.client.request(bt, e);
|
|
1361
1364
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1362
1365
|
ok: !1,
|
|
1363
|
-
error:
|
|
1366
|
+
error: d(t.data.updateReferralCode.__typename)
|
|
1364
1367
|
} : {
|
|
1365
1368
|
ok: !0
|
|
1366
1369
|
} : t;
|
|
1367
1370
|
}
|
|
1368
1371
|
}
|
|
1369
|
-
function
|
|
1372
|
+
function b(o) {
|
|
1370
1373
|
return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
|
|
1371
1374
|
}
|
|
1372
1375
|
function h(o, e) {
|
|
@@ -1387,8 +1390,8 @@ const V = {
|
|
|
1387
1390
|
};
|
|
1388
1391
|
class Tt {
|
|
1389
1392
|
constructor(e) {
|
|
1390
|
-
|
|
1391
|
-
|
|
1393
|
+
m(this, "url");
|
|
1394
|
+
m(this, "platform");
|
|
1392
1395
|
this.url = e.url, this.platform = e.platform;
|
|
1393
1396
|
}
|
|
1394
1397
|
get headers() {
|
|
@@ -1402,7 +1405,7 @@ class Tt {
|
|
|
1402
1405
|
t.set("Authorization", `Basic ${a}`);
|
|
1403
1406
|
}
|
|
1404
1407
|
if (e.mobileNumber) {
|
|
1405
|
-
const a = `${
|
|
1408
|
+
const a = `${b(e.mobileNumber)}:${e.verificationCode}`, s = Buffer.from(a).toString("base64");
|
|
1406
1409
|
console.log(`MobileNumberOTP ${s}`), t.set("Authorization", `MobileNumberOTP ${s}`);
|
|
1407
1410
|
}
|
|
1408
1411
|
e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`);
|
|
@@ -1416,7 +1419,7 @@ class Tt {
|
|
|
1416
1419
|
data: a
|
|
1417
1420
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1418
1421
|
ok: !1,
|
|
1419
|
-
error:
|
|
1422
|
+
error: d("AccountBlacklistedError")
|
|
1420
1423
|
} : {
|
|
1421
1424
|
ok: !1,
|
|
1422
1425
|
error: h(r.status)
|
|
@@ -1445,7 +1448,7 @@ class Tt {
|
|
|
1445
1448
|
data: a
|
|
1446
1449
|
} : r.status === 401 || r.status === 403 ? {
|
|
1447
1450
|
ok: !1,
|
|
1448
|
-
error:
|
|
1451
|
+
error: d("InvalidTokenOrSecretAnswerError")
|
|
1449
1452
|
} : {
|
|
1450
1453
|
ok: !1,
|
|
1451
1454
|
error: h(r.status)
|
|
@@ -1472,10 +1475,10 @@ class Tt {
|
|
|
1472
1475
|
data: a
|
|
1473
1476
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1474
1477
|
ok: !1,
|
|
1475
|
-
error:
|
|
1478
|
+
error: d("AccountBlacklistedError")
|
|
1476
1479
|
} : r.status === 403 || r.status === 401 ? {
|
|
1477
1480
|
ok: !1,
|
|
1478
|
-
error:
|
|
1481
|
+
error: d("InvalidTokenError")
|
|
1479
1482
|
} : {
|
|
1480
1483
|
ok: !1,
|
|
1481
1484
|
error: h(r.status)
|
|
@@ -1514,25 +1517,29 @@ class Tt {
|
|
|
1514
1517
|
}
|
|
1515
1518
|
async sendVerificationCode(e) {
|
|
1516
1519
|
if (e.channel === "EMAIL") throw new Error("Email channel is not yet supported");
|
|
1520
|
+
function t(r) {
|
|
1521
|
+
let a = null;
|
|
1522
|
+
return r === "MEMBER_NOT_FOUND" && (a = "AccountNotFoundError"), r === "RATE_LIMIT_REACH" && (a = "RateLimitExceededError"), r === "NOT_READY_TO_SEND_VERIFICATION_ERROR" && (a = "NotReadyToSendVerficationCodeError"), a;
|
|
1523
|
+
}
|
|
1517
1524
|
try {
|
|
1518
|
-
const
|
|
1525
|
+
const r = await fetch(`${this.url}/otps`, {
|
|
1519
1526
|
method: "POST",
|
|
1520
1527
|
headers: this.headers,
|
|
1521
1528
|
body: JSON.stringify(e)
|
|
1522
1529
|
});
|
|
1523
|
-
if (
|
|
1524
|
-
const
|
|
1525
|
-
return
|
|
1530
|
+
if (r.status === 403) {
|
|
1531
|
+
const a = await r.json(), s = t(a.message);
|
|
1532
|
+
return s ? {
|
|
1526
1533
|
ok: !1,
|
|
1527
|
-
error:
|
|
1534
|
+
error: d(s)
|
|
1528
1535
|
} : {
|
|
1529
1536
|
ok: !1,
|
|
1530
|
-
error: h(
|
|
1537
|
+
error: h(r.status, a.message)
|
|
1531
1538
|
};
|
|
1532
1539
|
}
|
|
1533
|
-
return
|
|
1540
|
+
return r.ok ? { ok: !0 } : {
|
|
1534
1541
|
ok: !1,
|
|
1535
|
-
error: h(
|
|
1542
|
+
error: h(r.status)
|
|
1536
1543
|
};
|
|
1537
1544
|
} catch {
|
|
1538
1545
|
return {
|
|
@@ -1542,15 +1549,11 @@ class Tt {
|
|
|
1542
1549
|
}
|
|
1543
1550
|
}
|
|
1544
1551
|
}
|
|
1545
|
-
|
|
1546
|
-
let e = null;
|
|
1547
|
-
return o === "NOT_READY_TO_SEND_VERIFICATION_ERROR" && (e = "NotReadyToSendVerficationCodeError"), o === "MEMBER_NOT_FOUND" && (e = "AccountNotFound"), e;
|
|
1548
|
-
}
|
|
1549
|
-
class Mt {
|
|
1552
|
+
class vt {
|
|
1550
1553
|
constructor(e) {
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
+
m(this, "url");
|
|
1555
|
+
m(this, "siteId");
|
|
1556
|
+
m(this, "platformId");
|
|
1554
1557
|
this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
|
|
1555
1558
|
}
|
|
1556
1559
|
async self() {
|
|
@@ -1561,9 +1564,9 @@ class Mt {
|
|
|
1561
1564
|
} : e;
|
|
1562
1565
|
}
|
|
1563
1566
|
async games(e) {
|
|
1564
|
-
var a, s, c, u, l, p,
|
|
1567
|
+
var a, s, c, u, l, p, y, f, T, v, M, R, N, E, I, D, S, P, $, x, C, G, O, W;
|
|
1565
1568
|
const t = new URLSearchParams();
|
|
1566
|
-
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 = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (
|
|
1569
|
+
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 = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (R = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (E = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && E.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (P = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && G.in && t.set(
|
|
1567
1570
|
"filter[tags][in]",
|
|
1568
1571
|
e.filter.tags.in.map((A) => A.toLowerCase()).join(",")
|
|
1569
1572
|
), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
|
|
@@ -1624,9 +1627,9 @@ class Mt {
|
|
|
1624
1627
|
}
|
|
1625
1628
|
}
|
|
1626
1629
|
}
|
|
1627
|
-
class
|
|
1630
|
+
class Mt {
|
|
1628
1631
|
constructor(e) {
|
|
1629
|
-
|
|
1632
|
+
m(this, "client");
|
|
1630
1633
|
this.client = e;
|
|
1631
1634
|
}
|
|
1632
1635
|
async file(e) {
|
|
@@ -1640,20 +1643,20 @@ class Rt {
|
|
|
1640
1643
|
const t = await this.client.upload(Me, e);
|
|
1641
1644
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1642
1645
|
ok: !1,
|
|
1643
|
-
error:
|
|
1646
|
+
error: d(t.data.uploadPrivateImageFile.__typename)
|
|
1644
1647
|
} : {
|
|
1645
1648
|
ok: !0
|
|
1646
1649
|
} : t;
|
|
1647
1650
|
}
|
|
1648
1651
|
}
|
|
1649
|
-
class
|
|
1652
|
+
class Rt {
|
|
1650
1653
|
constructor(e) {
|
|
1651
|
-
|
|
1654
|
+
m(this, "client");
|
|
1652
1655
|
this.client = e;
|
|
1653
1656
|
}
|
|
1654
1657
|
async gameSession(e) {
|
|
1655
1658
|
const t = await this.client.request(
|
|
1656
|
-
|
|
1659
|
+
Ee.legacy,
|
|
1657
1660
|
e
|
|
1658
1661
|
);
|
|
1659
1662
|
return t.ok ? {
|
|
@@ -1662,10 +1665,10 @@ class Nt {
|
|
|
1662
1665
|
} : t;
|
|
1663
1666
|
}
|
|
1664
1667
|
async createGameSession(e) {
|
|
1665
|
-
const t = await this.client.request(
|
|
1668
|
+
const t = await this.client.request(be, e);
|
|
1666
1669
|
return t.ok ? t.data.createGameSession ? {
|
|
1667
1670
|
ok: !1,
|
|
1668
|
-
error:
|
|
1671
|
+
error: d(t.data.createGameSession.__typename)
|
|
1669
1672
|
} : {
|
|
1670
1673
|
ok: !0
|
|
1671
1674
|
} : t;
|
|
@@ -1683,9 +1686,9 @@ class Nt {
|
|
|
1683
1686
|
} : t;
|
|
1684
1687
|
}
|
|
1685
1688
|
}
|
|
1686
|
-
class
|
|
1689
|
+
class Nt {
|
|
1687
1690
|
constructor(e) {
|
|
1688
|
-
|
|
1691
|
+
m(this, "client");
|
|
1689
1692
|
this.client = e;
|
|
1690
1693
|
}
|
|
1691
1694
|
async latestBetRecords() {
|
|
@@ -1696,9 +1699,9 @@ class It {
|
|
|
1696
1699
|
} : e;
|
|
1697
1700
|
}
|
|
1698
1701
|
}
|
|
1699
|
-
class
|
|
1702
|
+
class It {
|
|
1700
1703
|
constructor(e) {
|
|
1701
|
-
|
|
1704
|
+
m(this, "client");
|
|
1702
1705
|
this.client = e;
|
|
1703
1706
|
}
|
|
1704
1707
|
async betRecords(e) {
|
|
@@ -1767,9 +1770,9 @@ class Dt {
|
|
|
1767
1770
|
return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
|
|
1768
1771
|
}
|
|
1769
1772
|
}
|
|
1770
|
-
class
|
|
1773
|
+
class Dt {
|
|
1771
1774
|
constructor(e) {
|
|
1772
|
-
|
|
1775
|
+
m(this, "url");
|
|
1773
1776
|
this.url = e.url;
|
|
1774
1777
|
}
|
|
1775
1778
|
gameThumbnails(e) {
|
|
@@ -1779,9 +1782,9 @@ class Pt {
|
|
|
1779
1782
|
];
|
|
1780
1783
|
}
|
|
1781
1784
|
}
|
|
1782
|
-
class
|
|
1785
|
+
class Pt {
|
|
1783
1786
|
constructor(e) {
|
|
1784
|
-
|
|
1787
|
+
m(this, "client");
|
|
1785
1788
|
this.client = e;
|
|
1786
1789
|
}
|
|
1787
1790
|
async promos() {
|
|
@@ -1807,7 +1810,7 @@ class $t {
|
|
|
1807
1810
|
const t = await this.client.request(et, e);
|
|
1808
1811
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1809
1812
|
ok: !1,
|
|
1810
|
-
error:
|
|
1813
|
+
error: d(t.data.claimCashbackBonus.__typename)
|
|
1811
1814
|
} : {
|
|
1812
1815
|
ok: !0
|
|
1813
1816
|
} : {
|
|
@@ -1834,7 +1837,7 @@ class $t {
|
|
|
1834
1837
|
const t = await this.client.request(qe, e);
|
|
1835
1838
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1836
1839
|
ok: !1,
|
|
1837
|
-
error:
|
|
1840
|
+
error: d(t.data.createGCashDeposit.__typename)
|
|
1838
1841
|
} : {
|
|
1839
1842
|
ok: !0
|
|
1840
1843
|
} : t;
|
|
@@ -1843,7 +1846,7 @@ class $t {
|
|
|
1843
1846
|
const t = await this.client.request(Fe, e);
|
|
1844
1847
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1845
1848
|
ok: !1,
|
|
1846
|
-
error:
|
|
1849
|
+
error: d(t.data.createMayaDeposit.__typename)
|
|
1847
1850
|
} : {
|
|
1848
1851
|
ok: !0
|
|
1849
1852
|
} : t;
|
|
@@ -1852,7 +1855,7 @@ class $t {
|
|
|
1852
1855
|
const t = await this.client.request(Le, e);
|
|
1853
1856
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1854
1857
|
ok: !1,
|
|
1855
|
-
error:
|
|
1858
|
+
error: d(t.data.createMayaAppDeposit.__typename)
|
|
1856
1859
|
} : {
|
|
1857
1860
|
ok: !0
|
|
1858
1861
|
} : t;
|
|
@@ -1861,7 +1864,7 @@ class $t {
|
|
|
1861
1864
|
const t = await this.client.request(xe, e);
|
|
1862
1865
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1863
1866
|
ok: !1,
|
|
1864
|
-
error:
|
|
1867
|
+
error: d(t.data.createGCashWithdrawal.__typename)
|
|
1865
1868
|
} : {
|
|
1866
1869
|
ok: !0
|
|
1867
1870
|
} : t;
|
|
@@ -1870,7 +1873,7 @@ class $t {
|
|
|
1870
1873
|
const t = await this.client.request(Ge, e);
|
|
1871
1874
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1872
1875
|
ok: !1,
|
|
1873
|
-
error:
|
|
1876
|
+
error: d(t.data.createMayaWithdrawal.__typename)
|
|
1874
1877
|
} : {
|
|
1875
1878
|
ok: !0
|
|
1876
1879
|
} : t;
|
|
@@ -1879,7 +1882,7 @@ class $t {
|
|
|
1879
1882
|
const t = await this.client.request(Ue, e);
|
|
1880
1883
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1881
1884
|
ok: !1,
|
|
1882
|
-
error:
|
|
1885
|
+
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
1883
1886
|
} : {
|
|
1884
1887
|
ok: !0
|
|
1885
1888
|
} : t;
|
|
@@ -1888,7 +1891,7 @@ class $t {
|
|
|
1888
1891
|
const t = await this.client.request(Oe, e);
|
|
1889
1892
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1890
1893
|
ok: !1,
|
|
1891
|
-
error:
|
|
1894
|
+
error: d(t.data.createBankWithdrawal.__typename)
|
|
1892
1895
|
} : {
|
|
1893
1896
|
ok: !0
|
|
1894
1897
|
} : t;
|
|
@@ -1907,30 +1910,30 @@ class $t {
|
|
|
1907
1910
|
const t = await this.client.request(Ie, e);
|
|
1908
1911
|
return t.ok ? t.data.redeemPointsToCash ? {
|
|
1909
1912
|
ok: !1,
|
|
1910
|
-
error:
|
|
1913
|
+
error: d(t.data.redeemPointsToCash.__typename)
|
|
1911
1914
|
} : {
|
|
1912
1915
|
ok: !0
|
|
1913
1916
|
} : t;
|
|
1914
1917
|
}
|
|
1915
1918
|
async mayaSession(e) {
|
|
1916
1919
|
const t = await this.client.request(
|
|
1917
|
-
|
|
1920
|
+
yt,
|
|
1918
1921
|
e
|
|
1919
1922
|
);
|
|
1920
1923
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
1921
1924
|
}
|
|
1922
1925
|
async gameSession(e) {
|
|
1923
1926
|
const t = await this.client.request(
|
|
1924
|
-
|
|
1927
|
+
Ee.current,
|
|
1925
1928
|
e
|
|
1926
1929
|
);
|
|
1927
1930
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1928
1931
|
}
|
|
1929
1932
|
async createGameSession(e) {
|
|
1930
|
-
const t = await this.client.request(
|
|
1933
|
+
const t = await this.client.request(be, e);
|
|
1931
1934
|
return t.ok ? t.data.createGameSession ? {
|
|
1932
1935
|
ok: !1,
|
|
1933
|
-
error:
|
|
1936
|
+
error: d(t.data.createGameSession.__typename)
|
|
1934
1937
|
} : {
|
|
1935
1938
|
ok: !0
|
|
1936
1939
|
} : t;
|
|
@@ -1952,7 +1955,7 @@ class $t {
|
|
|
1952
1955
|
}
|
|
1953
1956
|
async validateMayaSession() {
|
|
1954
1957
|
const e = await this.client.request(
|
|
1955
|
-
|
|
1958
|
+
wt
|
|
1956
1959
|
);
|
|
1957
1960
|
return e.ok ? e.data.validateMayaSession ? {
|
|
1958
1961
|
ok: !0
|
|
@@ -1965,18 +1968,18 @@ class $t {
|
|
|
1965
1968
|
} : e;
|
|
1966
1969
|
}
|
|
1967
1970
|
}
|
|
1968
|
-
function
|
|
1971
|
+
function $t(o, e, t) {
|
|
1969
1972
|
return o < e ? e : o > t ? t : o;
|
|
1970
1973
|
}
|
|
1971
1974
|
function H(o) {
|
|
1972
1975
|
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
1973
1976
|
}
|
|
1974
|
-
function
|
|
1977
|
+
function xt(o) {
|
|
1975
1978
|
const e = [];
|
|
1976
1979
|
function t(r, a = []) {
|
|
1977
1980
|
for (const s in r) {
|
|
1978
1981
|
const c = r[s];
|
|
1979
|
-
H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(
|
|
1982
|
+
H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Gt(c), [...a, s]) : e.push({
|
|
1980
1983
|
key: [...a, s],
|
|
1981
1984
|
value: c
|
|
1982
1985
|
});
|
|
@@ -1984,14 +1987,14 @@ function Gt(o) {
|
|
|
1984
1987
|
}
|
|
1985
1988
|
return t(o), e;
|
|
1986
1989
|
}
|
|
1987
|
-
function
|
|
1990
|
+
function Gt(o) {
|
|
1988
1991
|
return o.reduce((e, t, r) => (e[r] = t, e), {});
|
|
1989
1992
|
}
|
|
1990
1993
|
class U {
|
|
1991
1994
|
constructor(e, t) {
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
+
m(this, "url");
|
|
1996
|
+
m(this, "options");
|
|
1997
|
+
m(this, "middlewares");
|
|
1995
1998
|
var a;
|
|
1996
1999
|
const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
|
|
1997
2000
|
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
@@ -2029,13 +2032,13 @@ class U {
|
|
|
2029
2032
|
const l = await fetch(e);
|
|
2030
2033
|
if (!l.ok)
|
|
2031
2034
|
return { ok: !1, error: h(l.status) };
|
|
2032
|
-
const p = await l.json(),
|
|
2035
|
+
const p = await l.json(), y = p.data, f = (t = p.errors) == null ? void 0 : t.at(0);
|
|
2033
2036
|
return f ? ((r = f.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = f.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, f.message) } : ((s = f.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, f.message) } : ((c = f.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((u = f.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, f.message) } : {
|
|
2034
2037
|
ok: !1,
|
|
2035
2038
|
error: h(500, f.message)
|
|
2036
2039
|
} : {
|
|
2037
2040
|
ok: !0,
|
|
2038
|
-
data:
|
|
2041
|
+
data: y
|
|
2039
2042
|
};
|
|
2040
2043
|
} catch {
|
|
2041
2044
|
return {
|
|
@@ -2051,7 +2054,7 @@ class U {
|
|
|
2051
2054
|
return t;
|
|
2052
2055
|
}
|
|
2053
2056
|
createUploadBody(e, t) {
|
|
2054
|
-
const r =
|
|
2057
|
+
const r = xt(t).filter(
|
|
2055
2058
|
(c) => c.value instanceof File || c.value instanceof Blob
|
|
2056
2059
|
), a = new FormData();
|
|
2057
2060
|
a.append(
|
|
@@ -2069,13 +2072,13 @@ class U {
|
|
|
2069
2072
|
}), a;
|
|
2070
2073
|
}
|
|
2071
2074
|
}
|
|
2072
|
-
async function
|
|
2075
|
+
async function w(o) {
|
|
2073
2076
|
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
2074
2077
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
2075
2078
|
}
|
|
2076
2079
|
class Ce {
|
|
2077
2080
|
constructor(e) {
|
|
2078
|
-
|
|
2081
|
+
m(this, "enabled");
|
|
2079
2082
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
2080
2083
|
}
|
|
2081
2084
|
info(e) {
|
|
@@ -2102,7 +2105,7 @@ function q(o, e) {
|
|
|
2102
2105
|
const t = Q(o);
|
|
2103
2106
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2104
2107
|
}
|
|
2105
|
-
function
|
|
2108
|
+
function we(o, e) {
|
|
2106
2109
|
return o.getTime() > e.getTime();
|
|
2107
2110
|
}
|
|
2108
2111
|
function ke(o) {
|
|
@@ -2127,13 +2130,13 @@ function F(o, e) {
|
|
|
2127
2130
|
const t = Q(o);
|
|
2128
2131
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
2129
2132
|
}
|
|
2130
|
-
class
|
|
2133
|
+
class Ut {
|
|
2131
2134
|
constructor(e) {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2135
|
+
m(this, "logger");
|
|
2136
|
+
m(this, "storageKey", "session");
|
|
2137
|
+
m(this, "authService");
|
|
2138
|
+
m(this, "walletService");
|
|
2139
|
+
m(this, "_refreshing", !1);
|
|
2137
2140
|
this.authService = e.authService, this.walletService = e.walletService, this.logger = new Ce({
|
|
2138
2141
|
enabled: e.logs ?? !1
|
|
2139
2142
|
});
|
|
@@ -2156,9 +2159,9 @@ class Ot {
|
|
|
2156
2159
|
};
|
|
2157
2160
|
if (e.type === "MAYA") {
|
|
2158
2161
|
const c = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2159
|
-
until: (
|
|
2162
|
+
until: (y) => {
|
|
2160
2163
|
var f;
|
|
2161
|
-
return
|
|
2164
|
+
return y.ok && ((f = y.data) == null ? void 0 : f.member) != null;
|
|
2162
2165
|
},
|
|
2163
2166
|
interval: 1e3,
|
|
2164
2167
|
maxAttempt: 5
|
|
@@ -2173,7 +2176,7 @@ class Ot {
|
|
|
2173
2176
|
}
|
|
2174
2177
|
};
|
|
2175
2178
|
const l = await ge(() => this.authService.createSession(e), {
|
|
2176
|
-
until: (
|
|
2179
|
+
until: (y) => y.ok,
|
|
2177
2180
|
interval: 1e3,
|
|
2178
2181
|
maxAttempt: 5
|
|
2179
2182
|
})();
|
|
@@ -2263,19 +2266,19 @@ class Ot {
|
|
|
2263
2266
|
try {
|
|
2264
2267
|
let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
|
|
2265
2268
|
const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
|
|
2266
|
-
if (
|
|
2269
|
+
if (we(r, s))
|
|
2267
2270
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
2268
2271
|
ok: !1,
|
|
2269
2272
|
error: {
|
|
2270
|
-
name: "
|
|
2273
|
+
name: "SessionExpiredError",
|
|
2271
2274
|
message: "Session expired."
|
|
2272
2275
|
}
|
|
2273
2276
|
};
|
|
2274
|
-
if (
|
|
2277
|
+
if (we(r, a)) {
|
|
2275
2278
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
2276
2279
|
const c = await this.authService.refreshSession(t.refreshToken);
|
|
2277
2280
|
if (this.refreshing = !1, !c.ok)
|
|
2278
|
-
return this.logger.error(`Failed to refresh session: ${c.error.message}`), c.error.name === "
|
|
2281
|
+
return this.logger.error(`Failed to refresh session: ${c.error.message}`), c.error.name === "InvalidTokenError" || c.error.name === "AccountBlacklistedError" ? (window.localStorage.removeItem(this.storageKey), {
|
|
2279
2282
|
ok: !1,
|
|
2280
2283
|
error: c.error
|
|
2281
2284
|
}) : (this.logger.warn("Old session returned."), {
|
|
@@ -2317,7 +2320,7 @@ class Ot {
|
|
|
2317
2320
|
if (this.isServer)
|
|
2318
2321
|
return this.logger.warn("'localStorage' is not available on the server."), !0;
|
|
2319
2322
|
const e = await this.get();
|
|
2320
|
-
if (((r = e.error) == null ? void 0 : r.name) === "
|
|
2323
|
+
if (((r = e.error) == null ? void 0 : r.name) === "InvalidTokenError" || ((a = e.error) == null ? void 0 : a.name) === "SessionExpiredError" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklistedError") return !1;
|
|
2321
2324
|
if (!e.data) return !0;
|
|
2322
2325
|
const t = await this.authService.verifySession(e.data.accessToken);
|
|
2323
2326
|
return t || window.localStorage.removeItem(this.storageKey), t;
|
|
@@ -2344,7 +2347,7 @@ function g(o) {
|
|
|
2344
2347
|
}
|
|
2345
2348
|
return e;
|
|
2346
2349
|
}
|
|
2347
|
-
function
|
|
2350
|
+
function n(o, e) {
|
|
2348
2351
|
if (typeof o == "number" && !Number.isNaN(o))
|
|
2349
2352
|
return o;
|
|
2350
2353
|
if (typeof o == "string") {
|
|
@@ -2354,11 +2357,11 @@ function i(o, e) {
|
|
|
2354
2357
|
}
|
|
2355
2358
|
return e;
|
|
2356
2359
|
}
|
|
2357
|
-
class
|
|
2360
|
+
class Ot {
|
|
2358
2361
|
constructor(e) {
|
|
2359
|
-
|
|
2362
|
+
m(this, "staticService");
|
|
2360
2363
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2361
|
-
this.staticService = new
|
|
2364
|
+
this.staticService = new Dt({
|
|
2362
2365
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2363
2366
|
});
|
|
2364
2367
|
}
|
|
@@ -2401,12 +2404,12 @@ class Wt {
|
|
|
2401
2404
|
return g(t);
|
|
2402
2405
|
}
|
|
2403
2406
|
platform(e) {
|
|
2404
|
-
var t, r, a, s, c, u, l, p,
|
|
2407
|
+
var t, r, a, s, c, u, l, p, y, f, T, v, M, R, N, E, I, D, S, P, $, x, C, G, O, W, A, K, z, J, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, me, de, ue, le, fe, pe, he, ye;
|
|
2405
2408
|
return {
|
|
2406
2409
|
timezone: e.timezone,
|
|
2407
2410
|
currency: e.currency,
|
|
2408
2411
|
paymentSettings: {
|
|
2409
|
-
minimumFirstDepositAmount:
|
|
2412
|
+
minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
|
|
2410
2413
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
2411
2414
|
depositGateway: {
|
|
2412
2415
|
bank: {
|
|
@@ -2414,32 +2417,32 @@ class Wt {
|
|
|
2414
2417
|
iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
|
|
2415
2418
|
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
2416
2419
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2417
|
-
minimumAmount:
|
|
2418
|
-
maximumAmount:
|
|
2420
|
+
minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
|
|
2421
|
+
maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
2419
2422
|
},
|
|
2420
2423
|
gcash: {
|
|
2421
2424
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
2422
2425
|
iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
|
|
2423
|
-
webEnabled: ((
|
|
2426
|
+
webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
|
|
2424
2427
|
mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
|
|
2425
|
-
minimumAmount:
|
|
2426
|
-
maximumAmount:
|
|
2428
|
+
minimumAmount: n((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.minimumAmount),
|
|
2429
|
+
maximumAmount: n((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
2427
2430
|
},
|
|
2428
2431
|
maya: {
|
|
2429
2432
|
androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
|
|
2430
2433
|
iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
|
|
2431
2434
|
webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
|
|
2432
|
-
mobileWebEnabled: ((
|
|
2433
|
-
minimumAmount:
|
|
2434
|
-
maximumAmount:
|
|
2435
|
+
mobileWebEnabled: ((E = e.mayaDepositGatewaySettings) == null ? void 0 : E.mobileWebEnabled) ?? !1,
|
|
2436
|
+
minimumAmount: n((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
|
|
2437
|
+
maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
2435
2438
|
},
|
|
2436
2439
|
mayaApp: {
|
|
2437
2440
|
androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
|
|
2438
2441
|
iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
|
|
2439
2442
|
webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
|
|
2440
2443
|
mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
|
|
2441
|
-
minimumAmount:
|
|
2442
|
-
maximumAmount:
|
|
2444
|
+
minimumAmount: n((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
|
|
2445
|
+
maximumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
|
|
2443
2446
|
}
|
|
2444
2447
|
},
|
|
2445
2448
|
withdrawalGateway: {
|
|
@@ -2448,16 +2451,16 @@ class Wt {
|
|
|
2448
2451
|
iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
|
|
2449
2452
|
webEnabled: ((A = e.bankWithdrawalGatewaySettings) == null ? void 0 : A.webEnabled) ?? !1,
|
|
2450
2453
|
mobileWebEnabled: ((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
|
|
2451
|
-
minimumAmount:
|
|
2452
|
-
maximumAmount:
|
|
2454
|
+
minimumAmount: n((z = e.bankWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
|
|
2455
|
+
maximumAmount: n((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
|
|
2453
2456
|
},
|
|
2454
2457
|
gcash: {
|
|
2455
2458
|
androidEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
|
|
2456
2459
|
iosEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
|
|
2457
2460
|
webEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
|
|
2458
2461
|
mobileWebEnabled: ((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
|
|
2459
|
-
minimumAmount:
|
|
2460
|
-
maximumAmount:
|
|
2462
|
+
minimumAmount: n((re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
|
|
2463
|
+
maximumAmount: n(
|
|
2461
2464
|
(ae = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount,
|
|
2462
2465
|
1e6
|
|
2463
2466
|
)
|
|
@@ -2467,16 +2470,16 @@ class Wt {
|
|
|
2467
2470
|
iosEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.iosEnabled) ?? !1,
|
|
2468
2471
|
webEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
|
|
2469
2472
|
mobileWebEnabled: ((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
|
|
2470
|
-
minimumAmount:
|
|
2471
|
-
maximumAmount:
|
|
2473
|
+
minimumAmount: n((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.minimumAmount),
|
|
2474
|
+
maximumAmount: n((me = e.mayaWithdrawalGatewaySettings) == null ? void 0 : me.maximumAmount)
|
|
2472
2475
|
},
|
|
2473
2476
|
mayaApp: {
|
|
2474
|
-
androidEnabled: ((
|
|
2477
|
+
androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
|
|
2475
2478
|
iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
|
|
2476
2479
|
webEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
|
|
2477
2480
|
mobileWebEnabled: ((fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.mobileWebEnabled) ?? !1,
|
|
2478
|
-
minimumAmount:
|
|
2479
|
-
maximumAmount:
|
|
2481
|
+
minimumAmount: n((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
|
|
2482
|
+
maximumAmount: n(
|
|
2480
2483
|
(he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.maximumAmount,
|
|
2481
2484
|
1e6
|
|
2482
2485
|
)
|
|
@@ -2484,7 +2487,7 @@ class Wt {
|
|
|
2484
2487
|
}
|
|
2485
2488
|
},
|
|
2486
2489
|
pointsClubSettings: {
|
|
2487
|
-
multiplier:
|
|
2490
|
+
multiplier: n((ye = e.pointsClubSettings) == null ? void 0 : ye.multiplier, 0)
|
|
2488
2491
|
}
|
|
2489
2492
|
};
|
|
2490
2493
|
}
|
|
@@ -2513,7 +2516,7 @@ class Wt {
|
|
|
2513
2516
|
wallet(e) {
|
|
2514
2517
|
return {
|
|
2515
2518
|
id: e.id,
|
|
2516
|
-
balance:
|
|
2519
|
+
balance: n(e.balance, 0),
|
|
2517
2520
|
currency: e.currency,
|
|
2518
2521
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2519
2522
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
@@ -2540,7 +2543,7 @@ class Wt {
|
|
|
2540
2543
|
mobileNumberVerification: e.mobileNumberVerification ?? !1,
|
|
2541
2544
|
personalInformation: e.personalInformation ?? !1,
|
|
2542
2545
|
transactionPassword: e.transactionPassword ?? !1,
|
|
2543
|
-
completionPercentage:
|
|
2546
|
+
completionPercentage: n(e.completionPercentage, 0)
|
|
2544
2547
|
};
|
|
2545
2548
|
}
|
|
2546
2549
|
announcement(e) {
|
|
@@ -2562,9 +2565,9 @@ class Wt {
|
|
|
2562
2565
|
type: e.type,
|
|
2563
2566
|
bank: e.bank,
|
|
2564
2567
|
status: e.status,
|
|
2565
|
-
amount:
|
|
2566
|
-
netAmount:
|
|
2567
|
-
fee:
|
|
2568
|
+
amount: n(e.amount, 0),
|
|
2569
|
+
netAmount: n(e.netAmount, 0),
|
|
2570
|
+
fee: n(e.fee, 0),
|
|
2568
2571
|
reference: e.reference ?? void 0,
|
|
2569
2572
|
withdrawalNumber: e.withdrawalNumber,
|
|
2570
2573
|
recipientMobileNumber: e.recipientMobileNumber ?? void 0,
|
|
@@ -2588,9 +2591,9 @@ class Wt {
|
|
|
2588
2591
|
id: e.id,
|
|
2589
2592
|
type: e.type,
|
|
2590
2593
|
status: e.status,
|
|
2591
|
-
amount:
|
|
2592
|
-
fee:
|
|
2593
|
-
netAmount:
|
|
2594
|
+
amount: n(e.amount, 0),
|
|
2595
|
+
fee: n(e.fee, 0),
|
|
2596
|
+
netAmount: n(e.netAmount, 0),
|
|
2594
2597
|
reference: e.reference ?? void 0,
|
|
2595
2598
|
depositNumber: e.depositNumber,
|
|
2596
2599
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2602,13 +2605,13 @@ class Wt {
|
|
|
2602
2605
|
var r;
|
|
2603
2606
|
const t = {
|
|
2604
2607
|
id: e.id,
|
|
2605
|
-
bet:
|
|
2606
|
-
payout:
|
|
2608
|
+
bet: n(e.bet, 0),
|
|
2609
|
+
payout: n(e.payout, 0),
|
|
2607
2610
|
status: e.status,
|
|
2608
|
-
jackpotContribution:
|
|
2609
|
-
jackpotPayout:
|
|
2610
|
-
winloss:
|
|
2611
|
-
validBet:
|
|
2611
|
+
jackpotContribution: n(e.jackpotContribution, 0),
|
|
2612
|
+
jackpotPayout: n(e.jackpotPayout, 0),
|
|
2613
|
+
winloss: n(e.winloss),
|
|
2614
|
+
validBet: n(e.validBet, 0),
|
|
2612
2615
|
vendorRoundId: e.vendorRoundId ?? void 0,
|
|
2613
2616
|
game: {
|
|
2614
2617
|
name: e.game.name,
|
|
@@ -2639,9 +2642,9 @@ class Wt {
|
|
|
2639
2642
|
images: this.staticService.gameThumbnails(e.game),
|
|
2640
2643
|
provider: e.game.provider
|
|
2641
2644
|
},
|
|
2642
|
-
bet:
|
|
2643
|
-
payout:
|
|
2644
|
-
validBet:
|
|
2645
|
+
bet: n(e.bet, 0),
|
|
2646
|
+
payout: n(e.payout, 0),
|
|
2647
|
+
validBet: n(e.validBet, 0),
|
|
2645
2648
|
dateTimeSettled: new Date(e.dateTimeSettled),
|
|
2646
2649
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2647
2650
|
};
|
|
@@ -2650,9 +2653,9 @@ class Wt {
|
|
|
2650
2653
|
const t = {
|
|
2651
2654
|
id: e.id,
|
|
2652
2655
|
type: e.type,
|
|
2653
|
-
amount:
|
|
2656
|
+
amount: n(e.amount, 0),
|
|
2654
2657
|
content: e.content ?? void 0,
|
|
2655
|
-
currentBalance:
|
|
2658
|
+
currentBalance: n(e.currentBalance, 0),
|
|
2656
2659
|
referenceNumber: e.referenceNumber,
|
|
2657
2660
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2658
2661
|
};
|
|
@@ -2687,8 +2690,8 @@ class Wt {
|
|
|
2687
2690
|
status: e.status,
|
|
2688
2691
|
description: e.description,
|
|
2689
2692
|
banner: this.file(e.banner),
|
|
2690
|
-
maximumBonusAmount:
|
|
2691
|
-
minimumBonusAmount:
|
|
2693
|
+
maximumBonusAmount: n(e.maximumBonusAmount),
|
|
2694
|
+
minimumBonusAmount: n(e.minimumBonusAmount),
|
|
2692
2695
|
activationEndDateTime: new Date(e.activationEndDateTime),
|
|
2693
2696
|
activationStartDateTime: new Date(e.activationStartDateTime),
|
|
2694
2697
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2701,6 +2704,8 @@ class Wt {
|
|
|
2701
2704
|
name: e.name,
|
|
2702
2705
|
description: e.description,
|
|
2703
2706
|
status: e.status,
|
|
2707
|
+
minimumCashback: n(e.minimumCashback, 0),
|
|
2708
|
+
maximumMonthlyCashback: n(e.maximumMonthlyCashback),
|
|
2704
2709
|
banner: this.file(e.banner),
|
|
2705
2710
|
activationEndDateTime: new Date(e.activationEndDateTime),
|
|
2706
2711
|
activationStartDateTime: new Date(e.activationStartDateTime),
|
|
@@ -2708,7 +2713,7 @@ class Wt {
|
|
|
2708
2713
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
|
|
2709
2714
|
turnoverContributionPercentagePerGameProvider: Object.entries(
|
|
2710
2715
|
e.turnoverContributionPercentagePerGameProvider
|
|
2711
|
-
).reduce((r, [a, s]) => (r[a] =
|
|
2716
|
+
).reduce((r, [a, s]) => (r[a] = n(s, 0), r), {})
|
|
2712
2717
|
};
|
|
2713
2718
|
}
|
|
2714
2719
|
bonus(e) {
|
|
@@ -2718,22 +2723,22 @@ class Wt {
|
|
|
2718
2723
|
deposit: e.deposit ? {
|
|
2719
2724
|
type: e.deposit.type,
|
|
2720
2725
|
status: e.deposit.status,
|
|
2721
|
-
fee:
|
|
2722
|
-
amount:
|
|
2723
|
-
netAmount:
|
|
2726
|
+
fee: n(e.deposit.fee, 0),
|
|
2727
|
+
amount: n(e.deposit.amount, 0),
|
|
2728
|
+
netAmount: n(e.deposit.netAmount, 0),
|
|
2724
2729
|
reference: e.deposit.reference ?? void 0,
|
|
2725
2730
|
dateTimeCreated: new Date(e.deposit.dateTimeCreated),
|
|
2726
2731
|
dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
|
|
2727
2732
|
} : void 0,
|
|
2728
|
-
balance:
|
|
2729
|
-
amount:
|
|
2733
|
+
balance: n(e.balance, 0),
|
|
2734
|
+
amount: n(e.amount, 0),
|
|
2730
2735
|
expiration: new Date(e.expiration),
|
|
2731
|
-
turnoverRequirement:
|
|
2732
|
-
currentTurnoverRequirementContribution:
|
|
2736
|
+
turnoverRequirement: n(e.turnoverRequirement, 0),
|
|
2737
|
+
currentTurnoverRequirementContribution: n(
|
|
2733
2738
|
e.currentTurnoverRequirementContribution,
|
|
2734
2739
|
0
|
|
2735
2740
|
),
|
|
2736
|
-
currentTurnoverRequirementContributionPercentage:
|
|
2741
|
+
currentTurnoverRequirementContributionPercentage: n(
|
|
2737
2742
|
e.currentTurnoverRequirementContributionPercentage,
|
|
2738
2743
|
0
|
|
2739
2744
|
),
|
|
@@ -2745,7 +2750,8 @@ class Wt {
|
|
|
2745
2750
|
cashbackBonus(e) {
|
|
2746
2751
|
return {
|
|
2747
2752
|
id: e.id,
|
|
2748
|
-
|
|
2753
|
+
total: n(e.total, 0),
|
|
2754
|
+
balance: n(e.balance, 0),
|
|
2749
2755
|
cashback: this.cashback(e.cashback),
|
|
2750
2756
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2751
2757
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
@@ -2763,7 +2769,7 @@ class Wt {
|
|
|
2763
2769
|
pointsWallet(e) {
|
|
2764
2770
|
return {
|
|
2765
2771
|
id: e.id,
|
|
2766
|
-
points:
|
|
2772
|
+
points: n(e.points, 0),
|
|
2767
2773
|
account: e.account,
|
|
2768
2774
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2769
2775
|
};
|
|
@@ -2772,8 +2778,8 @@ class Wt {
|
|
|
2772
2778
|
return {
|
|
2773
2779
|
id: e.id,
|
|
2774
2780
|
type: e.type,
|
|
2775
|
-
amount:
|
|
2776
|
-
balance:
|
|
2781
|
+
amount: n(e.amount, 0),
|
|
2782
|
+
balance: n(e.balance, 0),
|
|
2777
2783
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2778
2784
|
};
|
|
2779
2785
|
}
|
|
@@ -2781,7 +2787,7 @@ class Wt {
|
|
|
2781
2787
|
const t = {
|
|
2782
2788
|
id: e.id,
|
|
2783
2789
|
type: e.type,
|
|
2784
|
-
amount: e.amount ?
|
|
2790
|
+
amount: e.amount ? n(e.amount, 0) : void 0,
|
|
2785
2791
|
domain: e.domain ?? void 0,
|
|
2786
2792
|
details: e.details,
|
|
2787
2793
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
@@ -2794,18 +2800,18 @@ class Wt {
|
|
|
2794
2800
|
level: e.level,
|
|
2795
2801
|
upline: e.upline,
|
|
2796
2802
|
downline: e.downline,
|
|
2797
|
-
turnover:
|
|
2798
|
-
commision:
|
|
2803
|
+
turnover: n(e.turnover, 0),
|
|
2804
|
+
commision: n(e.commision, 0),
|
|
2799
2805
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2800
2806
|
};
|
|
2801
2807
|
}
|
|
2802
2808
|
referralCommission(e) {
|
|
2803
2809
|
return {
|
|
2804
2810
|
id: e.id,
|
|
2805
|
-
commission:
|
|
2806
|
-
level1Commission:
|
|
2807
|
-
level2Commission:
|
|
2808
|
-
level3Commission:
|
|
2811
|
+
commission: n(e.commission, 0),
|
|
2812
|
+
level1Commission: n(e.level1Commission, 0),
|
|
2813
|
+
level2Commission: n(e.level2Commission, 0),
|
|
2814
|
+
level3Commission: n(e.level3Commission, 0),
|
|
2809
2815
|
referralsCount: e.referralsCount,
|
|
2810
2816
|
level1ReferralsCount: e.level1ReferralsCount,
|
|
2811
2817
|
level2ReferralsCount: e.level2ReferralsCount,
|
|
@@ -2816,19 +2822,19 @@ class Wt {
|
|
|
2816
2822
|
};
|
|
2817
2823
|
}
|
|
2818
2824
|
}
|
|
2819
|
-
class
|
|
2825
|
+
class Lt {
|
|
2820
2826
|
constructor(e) {
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2827
|
+
m(this, "cmsPortalService");
|
|
2828
|
+
m(this, "authService");
|
|
2829
|
+
m(this, "gameService");
|
|
2830
|
+
m(this, "fileService");
|
|
2831
|
+
m(this, "walletService");
|
|
2832
|
+
m(this, "accountService");
|
|
2833
|
+
m(this, "reportService");
|
|
2834
|
+
m(this, "portalService");
|
|
2835
|
+
m(this, "sessionManager");
|
|
2836
|
+
m(this, "transformer");
|
|
2837
|
+
m(this, "logger");
|
|
2832
2838
|
const {
|
|
2833
2839
|
/**/
|
|
2834
2840
|
site: t,
|
|
@@ -2837,16 +2843,16 @@ class Vt {
|
|
|
2837
2843
|
environment: s,
|
|
2838
2844
|
logs: c
|
|
2839
2845
|
} = e, u = s === "production";
|
|
2840
|
-
this.transformer = new
|
|
2846
|
+
this.transformer = new Ot({
|
|
2841
2847
|
environment: s
|
|
2842
2848
|
}), this.logger = new Ce({
|
|
2843
2849
|
enabled: c ?? !1
|
|
2844
2850
|
});
|
|
2845
|
-
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", p = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql",
|
|
2851
|
+
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", p = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", y = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", f = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", T = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", R = "https://portal-api.opexacms.io/v1", N = new vt({
|
|
2846
2852
|
url: R,
|
|
2847
2853
|
site: t,
|
|
2848
2854
|
platform: r
|
|
2849
|
-
}),
|
|
2855
|
+
}), E = {
|
|
2850
2856
|
middlewares: [this.authMiddleware],
|
|
2851
2857
|
fetchOptions: {
|
|
2852
2858
|
headers: {
|
|
@@ -2854,10 +2860,10 @@ class Vt {
|
|
|
2854
2860
|
"Platform-Code": a
|
|
2855
2861
|
}
|
|
2856
2862
|
}
|
|
2857
|
-
}, I = new
|
|
2863
|
+
}, I = new Rt(new U(M, E)), D = new Mt(new U(v, E)), S = new Pt(new U(p, E)), P = new _t(new U(f, E)), $ = new It(new U(y, E)), x = new Nt(new U(T, E)), C = new Tt({
|
|
2858
2864
|
url: l,
|
|
2859
2865
|
platform: a
|
|
2860
|
-
}), G = new
|
|
2866
|
+
}), G = new Ut({
|
|
2861
2867
|
logs: c,
|
|
2862
2868
|
authService: C,
|
|
2863
2869
|
walletService: S
|
|
@@ -2876,7 +2882,7 @@ class Vt {
|
|
|
2876
2882
|
case "NAME_AND_PASSWORD": {
|
|
2877
2883
|
const t = await this.sessionManager.create({
|
|
2878
2884
|
...e,
|
|
2879
|
-
password: await
|
|
2885
|
+
password: await w(e.password)
|
|
2880
2886
|
});
|
|
2881
2887
|
return t.ok ? t.data ? {
|
|
2882
2888
|
ok: !0,
|
|
@@ -2903,7 +2909,7 @@ class Vt {
|
|
|
2903
2909
|
return await this.sessionManager.createFromAuthenticator({
|
|
2904
2910
|
type: "SECURITY_QUESTION",
|
|
2905
2911
|
token: e.token,
|
|
2906
|
-
secretAnswer: await
|
|
2912
|
+
secretAnswer: await w(e.secretAnswer)
|
|
2907
2913
|
});
|
|
2908
2914
|
default:
|
|
2909
2915
|
return {
|
|
@@ -2919,7 +2925,7 @@ class Vt {
|
|
|
2919
2925
|
await this.sessionManager.destroy();
|
|
2920
2926
|
}
|
|
2921
2927
|
watchSession(e) {
|
|
2922
|
-
const t =
|
|
2928
|
+
const t = $t(e.interval ?? 3e4, 3e4, 6e4);
|
|
2923
2929
|
let r = null;
|
|
2924
2930
|
const a = () => setTimeout(async () => {
|
|
2925
2931
|
await this.sessionManager.verify() || await e.onInvalid(), r = a();
|
|
@@ -2988,8 +2994,8 @@ class Vt {
|
|
|
2988
2994
|
name: e.name,
|
|
2989
2995
|
domain: e.domain,
|
|
2990
2996
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2991
|
-
password: await
|
|
2992
|
-
mobileNumber:
|
|
2997
|
+
password: await w(e.password),
|
|
2998
|
+
mobileNumber: b(e.mobileNumber)
|
|
2993
2999
|
},
|
|
2994
3000
|
referralCode: e.referralCode,
|
|
2995
3001
|
verificationCode: e.verificationCode,
|
|
@@ -3003,7 +3009,7 @@ class Vt {
|
|
|
3003
3009
|
const a = await this.accountService.registerMemberAccountViaMobile({
|
|
3004
3010
|
input: {
|
|
3005
3011
|
id: t,
|
|
3006
|
-
mobileNumber:
|
|
3012
|
+
mobileNumber: b(e.mobileNumber)
|
|
3007
3013
|
},
|
|
3008
3014
|
referralCode: e.referralCode,
|
|
3009
3015
|
reCAPTCHAResponse: e.reCAPTCHAResponse,
|
|
@@ -3015,8 +3021,8 @@ class Vt {
|
|
|
3015
3021
|
input: {
|
|
3016
3022
|
id: t,
|
|
3017
3023
|
name: e.name,
|
|
3018
|
-
password: await
|
|
3019
|
-
mobileNumber: e.mobileNumber ?
|
|
3024
|
+
password: await w(e.password),
|
|
3025
|
+
mobileNumber: e.mobileNumber ? b(e.mobileNumber) : void 0
|
|
3020
3026
|
},
|
|
3021
3027
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3022
3028
|
});
|
|
@@ -3026,7 +3032,7 @@ class Vt {
|
|
|
3026
3032
|
return await this.accountService.registerMayaMemberAccount({
|
|
3027
3033
|
input: {
|
|
3028
3034
|
name: e.name,
|
|
3029
|
-
password: await
|
|
3035
|
+
password: await w(e.password),
|
|
3030
3036
|
domain: e.domain
|
|
3031
3037
|
}
|
|
3032
3038
|
});
|
|
@@ -3037,12 +3043,12 @@ class Vt {
|
|
|
3037
3043
|
id: e,
|
|
3038
3044
|
data: {
|
|
3039
3045
|
...t,
|
|
3040
|
-
password: t.password ? await
|
|
3041
|
-
transactionPassword: t.transactionPassword ? await
|
|
3046
|
+
password: t.password ? await w(t.password) : void 0,
|
|
3047
|
+
transactionPassword: t.transactionPassword ? await w(t.transactionPassword) : void 0,
|
|
3042
3048
|
...t.mobileNumber && {
|
|
3043
|
-
mobileNumber:
|
|
3049
|
+
mobileNumber: b(t.mobileNumber)
|
|
3044
3050
|
},
|
|
3045
|
-
secretAnswer: t.secretAnswer ? await
|
|
3051
|
+
secretAnswer: t.secretAnswer ? await w(t.secretAnswer) : void 0
|
|
3046
3052
|
}
|
|
3047
3053
|
}
|
|
3048
3054
|
});
|
|
@@ -3083,8 +3089,8 @@ class Vt {
|
|
|
3083
3089
|
async resetPassword(e) {
|
|
3084
3090
|
return await this.accountService.resetPassword({
|
|
3085
3091
|
input: {
|
|
3086
|
-
mobileNumber:
|
|
3087
|
-
newPassword: await
|
|
3092
|
+
mobileNumber: b(e.mobileNumber),
|
|
3093
|
+
newPassword: await w(e.newPassword)
|
|
3088
3094
|
},
|
|
3089
3095
|
verificationCode: e.verificationCode
|
|
3090
3096
|
});
|
|
@@ -3110,7 +3116,7 @@ class Vt {
|
|
|
3110
3116
|
return await this.accountService.sendVerificationCode({
|
|
3111
3117
|
input: {
|
|
3112
3118
|
channel: "SMS",
|
|
3113
|
-
recipient:
|
|
3119
|
+
recipient: b(e)
|
|
3114
3120
|
}
|
|
3115
3121
|
});
|
|
3116
3122
|
}
|
|
@@ -3118,7 +3124,7 @@ class Vt {
|
|
|
3118
3124
|
if (e.type === "SMS")
|
|
3119
3125
|
return this.authService.sendVerificationCode({
|
|
3120
3126
|
channel: "SMS",
|
|
3121
|
-
recipient:
|
|
3127
|
+
recipient: b(e.mobileNumber),
|
|
3122
3128
|
...e.strict && {
|
|
3123
3129
|
verificationType: "MEMBER"
|
|
3124
3130
|
}
|
|
@@ -3174,7 +3180,7 @@ class Vt {
|
|
|
3174
3180
|
input: {
|
|
3175
3181
|
id: t,
|
|
3176
3182
|
amount: e.amount.toString(),
|
|
3177
|
-
transactionPassword: await
|
|
3183
|
+
transactionPassword: await w(e.transactionPassword)
|
|
3178
3184
|
}
|
|
3179
3185
|
});
|
|
3180
3186
|
if (!r.ok) return r;
|
|
@@ -3184,8 +3190,8 @@ class Vt {
|
|
|
3184
3190
|
input: {
|
|
3185
3191
|
id: t,
|
|
3186
3192
|
amount: e.amount.toString(),
|
|
3187
|
-
transactionPassword: await
|
|
3188
|
-
recipientMobileNumber:
|
|
3193
|
+
transactionPassword: await w(e.transactionPassword),
|
|
3194
|
+
recipientMobileNumber: b(e.recipientMobileNumber)
|
|
3189
3195
|
}
|
|
3190
3196
|
});
|
|
3191
3197
|
if (!r.ok) return r;
|
|
@@ -3195,8 +3201,8 @@ class Vt {
|
|
|
3195
3201
|
input: {
|
|
3196
3202
|
id: t,
|
|
3197
3203
|
amount: e.amount.toString(),
|
|
3198
|
-
transactionPassword: await
|
|
3199
|
-
recipientMobileNumber:
|
|
3204
|
+
transactionPassword: await w(e.transactionPassword),
|
|
3205
|
+
recipientMobileNumber: b(e.recipientMobileNumber)
|
|
3200
3206
|
}
|
|
3201
3207
|
});
|
|
3202
3208
|
if (!r.ok) return r;
|
|
@@ -3206,7 +3212,7 @@ class Vt {
|
|
|
3206
3212
|
input: {
|
|
3207
3213
|
id: t,
|
|
3208
3214
|
amount: e.amount.toString(),
|
|
3209
|
-
transactionPassword: await
|
|
3215
|
+
transactionPassword: await w(e.transactionPassword)
|
|
3210
3216
|
}
|
|
3211
3217
|
});
|
|
3212
3218
|
if (!r.ok) return r;
|
|
@@ -3476,7 +3482,7 @@ class Vt {
|
|
|
3476
3482
|
/**/
|
|
3477
3483
|
provider: a,
|
|
3478
3484
|
reference: s
|
|
3479
|
-
} = r.data, c =
|
|
3485
|
+
} = r.data, c = Bt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
3480
3486
|
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
3481
3487
|
}
|
|
3482
3488
|
async endGameSession(e) {
|
|
@@ -3610,7 +3616,7 @@ class Vt {
|
|
|
3610
3616
|
} : t;
|
|
3611
3617
|
}
|
|
3612
3618
|
}
|
|
3613
|
-
const
|
|
3619
|
+
const Wt = [
|
|
3614
3620
|
/**/
|
|
3615
3621
|
"RTG",
|
|
3616
3622
|
"DARWIN",
|
|
@@ -3620,12 +3626,12 @@ const Bt = [
|
|
|
3620
3626
|
"EVOLUTION_NETENT",
|
|
3621
3627
|
"EVOLUTION_REDTIGER"
|
|
3622
3628
|
];
|
|
3623
|
-
function
|
|
3624
|
-
return
|
|
3629
|
+
function Bt(o) {
|
|
3630
|
+
return Wt.some((e) => e === o);
|
|
3625
3631
|
}
|
|
3626
3632
|
export {
|
|
3627
|
-
|
|
3633
|
+
Yt as ObjectId,
|
|
3628
3634
|
_ as ObjectType,
|
|
3629
|
-
|
|
3635
|
+
Lt as Sdk
|
|
3630
3636
|
};
|
|
3631
3637
|
//# sourceMappingURL=index.mjs.map
|