@opexa/portal-sdk 0.0.84 → 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 +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +225 -219
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +3 -0
- package/dist/services/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
import { ObjectId as Yt } from "@opexa/object-id";
|
|
6
6
|
const _ = {
|
|
@@ -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
|
|
@@ -108,7 +108,7 @@ const L = n`
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
`, Ee = {
|
|
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 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
|
-
}, be =
|
|
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
|
-
`, Et =
|
|
1069
|
+
`, Et = i`
|
|
1067
1070
|
query ReferralCode {
|
|
1068
1071
|
referralCode
|
|
1069
1072
|
}
|
|
1070
|
-
`, bt =
|
|
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: {
|
|
@@ -1208,7 +1211,7 @@ function m(o) {
|
|
|
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,7 +1347,7 @@ 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;
|
|
@@ -1360,7 +1363,7 @@ class _t {
|
|
|
1360
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;
|
|
@@ -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() {
|
|
@@ -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)
|
|
@@ -1528,7 +1531,7 @@ class Tt {
|
|
|
1528
1531
|
const a = await r.json(), s = t(a.message);
|
|
1529
1532
|
return s ? {
|
|
1530
1533
|
ok: !1,
|
|
1531
|
-
error:
|
|
1534
|
+
error: d(s)
|
|
1532
1535
|
} : {
|
|
1533
1536
|
ok: !1,
|
|
1534
1537
|
error: h(r.status, a.message)
|
|
@@ -1548,9 +1551,9 @@ class Tt {
|
|
|
1548
1551
|
}
|
|
1549
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 vt {
|
|
|
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(
|
|
@@ -1626,7 +1629,7 @@ class vt {
|
|
|
1626
1629
|
}
|
|
1627
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,7 +1643,7 @@ class Mt {
|
|
|
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;
|
|
@@ -1648,7 +1651,7 @@ class Mt {
|
|
|
1648
1651
|
}
|
|
1649
1652
|
class Rt {
|
|
1650
1653
|
constructor(e) {
|
|
1651
|
-
|
|
1654
|
+
m(this, "client");
|
|
1652
1655
|
this.client = e;
|
|
1653
1656
|
}
|
|
1654
1657
|
async gameSession(e) {
|
|
@@ -1665,7 +1668,7 @@ class Rt {
|
|
|
1665
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;
|
|
@@ -1685,7 +1688,7 @@ class Rt {
|
|
|
1685
1688
|
}
|
|
1686
1689
|
class Nt {
|
|
1687
1690
|
constructor(e) {
|
|
1688
|
-
|
|
1691
|
+
m(this, "client");
|
|
1689
1692
|
this.client = e;
|
|
1690
1693
|
}
|
|
1691
1694
|
async latestBetRecords() {
|
|
@@ -1698,7 +1701,7 @@ class Nt {
|
|
|
1698
1701
|
}
|
|
1699
1702
|
class It {
|
|
1700
1703
|
constructor(e) {
|
|
1701
|
-
|
|
1704
|
+
m(this, "client");
|
|
1702
1705
|
this.client = e;
|
|
1703
1706
|
}
|
|
1704
1707
|
async betRecords(e) {
|
|
@@ -1769,7 +1772,7 @@ class It {
|
|
|
1769
1772
|
}
|
|
1770
1773
|
class Dt {
|
|
1771
1774
|
constructor(e) {
|
|
1772
|
-
|
|
1775
|
+
m(this, "url");
|
|
1773
1776
|
this.url = e.url;
|
|
1774
1777
|
}
|
|
1775
1778
|
gameThumbnails(e) {
|
|
@@ -1781,7 +1784,7 @@ class Dt {
|
|
|
1781
1784
|
}
|
|
1782
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 Pt {
|
|
|
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 Pt {
|
|
|
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 Pt {
|
|
|
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 Pt {
|
|
|
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 Pt {
|
|
|
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 Pt {
|
|
|
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 Pt {
|
|
|
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 Pt {
|
|
|
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,14 +1910,14 @@ class Pt {
|
|
|
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;
|
|
@@ -1930,7 +1933,7 @@ class Pt {
|
|
|
1930
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 Pt {
|
|
|
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
|
|
@@ -1989,9 +1992,9 @@ function Gt(o) {
|
|
|
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 {
|
|
@@ -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) {
|
|
@@ -2129,11 +2132,11 @@ function F(o, e) {
|
|
|
2129
2132
|
}
|
|
2130
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 Ut {
|
|
|
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 Ut {
|
|
|
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,7 +2266,7 @@ class Ut {
|
|
|
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: {
|
|
@@ -2271,7 +2274,7 @@ class Ut {
|
|
|
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)
|
|
@@ -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") {
|
|
@@ -2356,7 +2359,7 @@ function i(o, e) {
|
|
|
2356
2359
|
}
|
|
2357
2360
|
class Ot {
|
|
2358
2361
|
constructor(e) {
|
|
2359
|
-
|
|
2362
|
+
m(this, "staticService");
|
|
2360
2363
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2361
2364
|
this.staticService = new Dt({
|
|
2362
2365
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
@@ -2401,12 +2404,12 @@ class Ot {
|
|
|
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 Ot {
|
|
|
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
2435
|
mobileWebEnabled: ((E = e.mayaDepositGatewaySettings) == null ? void 0 : E.mobileWebEnabled) ?? !1,
|
|
2433
|
-
minimumAmount:
|
|
2434
|
-
maximumAmount:
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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 Ot {
|
|
|
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,
|
|
@@ -2818,17 +2824,17 @@ class Ot {
|
|
|
2818
2824
|
}
|
|
2819
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,
|
|
@@ -2842,7 +2848,7 @@ class Lt {
|
|
|
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
|
|
@@ -2854,7 +2860,7 @@ class Lt {
|
|
|
2854
2860
|
"Platform-Code": a
|
|
2855
2861
|
}
|
|
2856
2862
|
}
|
|
2857
|
-
}, 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(
|
|
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
2866
|
}), G = new Ut({
|
|
@@ -2876,7 +2882,7 @@ class Lt {
|
|
|
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 Lt {
|
|
|
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 {
|
|
@@ -2988,7 +2994,7 @@ class Lt {
|
|
|
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
|
|
2997
|
+
password: await w(e.password),
|
|
2992
2998
|
mobileNumber: b(e.mobileNumber)
|
|
2993
2999
|
},
|
|
2994
3000
|
referralCode: e.referralCode,
|
|
@@ -3015,7 +3021,7 @@ class Lt {
|
|
|
3015
3021
|
input: {
|
|
3016
3022
|
id: t,
|
|
3017
3023
|
name: e.name,
|
|
3018
|
-
password: await
|
|
3024
|
+
password: await w(e.password),
|
|
3019
3025
|
mobileNumber: e.mobileNumber ? b(e.mobileNumber) : void 0
|
|
3020
3026
|
},
|
|
3021
3027
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
@@ -3026,7 +3032,7 @@ class Lt {
|
|
|
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 Lt {
|
|
|
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
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
|
});
|
|
@@ -3084,7 +3090,7 @@ class Lt {
|
|
|
3084
3090
|
return await this.accountService.resetPassword({
|
|
3085
3091
|
input: {
|
|
3086
3092
|
mobileNumber: b(e.mobileNumber),
|
|
3087
|
-
newPassword: await
|
|
3093
|
+
newPassword: await w(e.newPassword)
|
|
3088
3094
|
},
|
|
3089
3095
|
verificationCode: e.verificationCode
|
|
3090
3096
|
});
|
|
@@ -3174,7 +3180,7 @@ class Lt {
|
|
|
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,7 +3190,7 @@ class Lt {
|
|
|
3184
3190
|
input: {
|
|
3185
3191
|
id: t,
|
|
3186
3192
|
amount: e.amount.toString(),
|
|
3187
|
-
transactionPassword: await
|
|
3193
|
+
transactionPassword: await w(e.transactionPassword),
|
|
3188
3194
|
recipientMobileNumber: b(e.recipientMobileNumber)
|
|
3189
3195
|
}
|
|
3190
3196
|
});
|
|
@@ -3195,7 +3201,7 @@ class Lt {
|
|
|
3195
3201
|
input: {
|
|
3196
3202
|
id: t,
|
|
3197
3203
|
amount: e.amount.toString(),
|
|
3198
|
-
transactionPassword: await
|
|
3204
|
+
transactionPassword: await w(e.transactionPassword),
|
|
3199
3205
|
recipientMobileNumber: b(e.recipientMobileNumber)
|
|
3200
3206
|
}
|
|
3201
3207
|
});
|
|
@@ -3206,7 +3212,7 @@ class Lt {
|
|
|
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;
|