@opexa/portal-sdk 0.0.82 → 0.0.83
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 +17 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +205 -188
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -2
- package/dist/sdk/types.d.ts +20 -1
- package/dist/services/account.service.d.ts +1 -0
- package/dist/services/auth.service.d.ts +2 -2
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/types.d.ts +17 -5
- package/dist/services/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _e = Object.defineProperty;
|
|
2
|
-
var Te = (
|
|
3
|
-
var d = (
|
|
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 d = (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 jt } from "@opexa/object-id";
|
|
6
6
|
const _ = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -13,22 +13,22 @@ const _ = {
|
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
15
|
};
|
|
16
|
-
function o
|
|
16
|
+
function n(o, ...e) {
|
|
17
17
|
let t = "";
|
|
18
|
-
for (const [r, a] of
|
|
18
|
+
for (const [r, a] of o.entries()) {
|
|
19
19
|
const s = e.at(r) ?? "";
|
|
20
20
|
t = `${t}${a}${s}`;
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const L =
|
|
24
|
+
const L = n`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`, ve =
|
|
31
|
+
`, ve = n`
|
|
32
32
|
${L}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
@@ -38,7 +38,7 @@ const L = o`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`, Me =
|
|
41
|
+
`, Me = n`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const L = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`, Re =
|
|
55
|
+
`, Re = n`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const L = o`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`, Ne =
|
|
65
|
+
`, Ne = n`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const L = o`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`, Ie =
|
|
74
|
+
`, Ie = n`
|
|
75
75
|
mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
|
|
76
76
|
redeemPointsToCash(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,7 +79,7 @@ const L = o`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`, De =
|
|
82
|
+
`, De = n`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -108,7 +108,7 @@ const L = o`
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
`, be = {
|
|
111
|
-
current:
|
|
111
|
+
current: n`
|
|
112
112
|
query GameSession($id: ObjectId!) {
|
|
113
113
|
node(id: $id) {
|
|
114
114
|
... on GameSession {
|
|
@@ -122,7 +122,7 @@ const L = o`
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
`,
|
|
125
|
-
legacy:
|
|
125
|
+
legacy: n`
|
|
126
126
|
query GameSession($id: ObjectId!) {
|
|
127
127
|
node(id: $id) {
|
|
128
128
|
... on GameSession {
|
|
@@ -138,7 +138,7 @@ const L = o`
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
`
|
|
141
|
-
},
|
|
141
|
+
}, Ee = n`
|
|
142
142
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
143
143
|
createGameSession(input: $input) {
|
|
144
144
|
... on GameDoesNotExistError {
|
|
@@ -146,13 +146,13 @@ const L = o`
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
`,
|
|
150
|
-
current:
|
|
149
|
+
`, Ae = {
|
|
150
|
+
current: n`
|
|
151
151
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
152
152
|
endGameSession(input: $input)
|
|
153
153
|
}
|
|
154
154
|
`,
|
|
155
|
-
legacy:
|
|
155
|
+
legacy: n`
|
|
156
156
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
157
157
|
endGameSession(input: $input) {
|
|
158
158
|
... on GameSessionDoesNotExistError {
|
|
@@ -167,7 +167,7 @@ const L = o`
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
`
|
|
170
|
-
}, Pe =
|
|
170
|
+
}, Pe = n`
|
|
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 = o`
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
`, $e =
|
|
196
|
+
`, $e = n`
|
|
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 = o`
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
`, xe =
|
|
263
|
+
`, xe = n`
|
|
264
264
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
265
265
|
createGCashWithdrawal(input: $input) {
|
|
266
266
|
... on AccountNotVerifiedError {
|
|
@@ -283,7 +283,7 @@ const L = o`
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
`, Ge =
|
|
286
|
+
`, Ge = n`
|
|
287
287
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
288
288
|
createMayaWithdrawal(input: $input) {
|
|
289
289
|
... on AccountNotVerifiedError {
|
|
@@ -306,7 +306,7 @@ const L = o`
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
`, Ue =
|
|
309
|
+
`, Ue = n`
|
|
310
310
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
311
311
|
createMayaAppWithdrawal(input: $input) {
|
|
312
312
|
... on AccountNotVerifiedError {
|
|
@@ -326,7 +326,7 @@ const L = o`
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
`,
|
|
329
|
+
`, Oe = n`
|
|
330
330
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
331
331
|
createBankWithdrawal(input: $input) {
|
|
332
332
|
... on MobileNumberNotVerifiedError {
|
|
@@ -349,11 +349,11 @@ const L = o`
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
`,
|
|
352
|
+
`, We = n`
|
|
353
353
|
query RemainingDailyWithdrawalsCount {
|
|
354
354
|
remainingDailyWithdrawalsCount
|
|
355
355
|
}
|
|
356
|
-
`, Be =
|
|
356
|
+
`, Be = n`
|
|
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 = o`
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
`, qe =
|
|
385
|
+
`, qe = n`
|
|
386
386
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
387
387
|
createGCashDeposit(input: $input) {
|
|
388
388
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -411,7 +411,7 @@ const L = o`
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
`, Fe =
|
|
414
|
+
`, Fe = n`
|
|
415
415
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
416
416
|
createMayaDeposit(input: $input) {
|
|
417
417
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -440,7 +440,7 @@ const L = o`
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
`, Le =
|
|
443
|
+
`, Le = n`
|
|
444
444
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
445
445
|
createMayaAppDeposit(input: $input) {
|
|
446
446
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -469,7 +469,7 @@ const L = o`
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
`, Ve =
|
|
472
|
+
`, Ve = n`
|
|
473
473
|
query Deposit($id: ObjectId!) {
|
|
474
474
|
node(id: $id) {
|
|
475
475
|
... on GCashDeposit {
|
|
@@ -501,13 +501,13 @@ const L = o`
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
`, He =
|
|
504
|
+
`, He = n`
|
|
505
505
|
query DepositsCount {
|
|
506
506
|
member {
|
|
507
507
|
depositsCount
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`, Ye =
|
|
510
|
+
`, Ye = n`
|
|
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 = o`
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
`, je =
|
|
551
|
+
`, je = n`
|
|
552
552
|
query LatestBetRecords {
|
|
553
553
|
latestBetRecords {
|
|
554
554
|
id
|
|
@@ -568,7 +568,7 @@ const L = o`
|
|
|
568
568
|
dateTimeCreated
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
`, Qe =
|
|
571
|
+
`, Qe = n`
|
|
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 = o`
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
`, Y =
|
|
597
|
+
`, Y = n`
|
|
598
598
|
${L}
|
|
599
599
|
|
|
600
600
|
fragment PromoFragment on Promo {
|
|
@@ -613,7 +613,7 @@ const L = o`
|
|
|
613
613
|
dateTimeCreated
|
|
614
614
|
dateTimeLastUpdated
|
|
615
615
|
}
|
|
616
|
-
`, Ke =
|
|
616
|
+
`, Ke = n`
|
|
617
617
|
${Y}
|
|
618
618
|
|
|
619
619
|
query Promos {
|
|
@@ -621,7 +621,7 @@ const L = o`
|
|
|
621
621
|
...PromoFragment
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
`,
|
|
624
|
+
`, ze = n`
|
|
625
625
|
${Y}
|
|
626
626
|
|
|
627
627
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -629,7 +629,7 @@ const L = o`
|
|
|
629
629
|
...PromoFragment
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
`, Se =
|
|
632
|
+
`, Se = n`
|
|
633
633
|
${L}
|
|
634
634
|
|
|
635
635
|
fragment CashbackFragment on Cashback {
|
|
@@ -646,7 +646,7 @@ const L = o`
|
|
|
646
646
|
dateTimeCreated
|
|
647
647
|
dateTimeLastUpdated
|
|
648
648
|
}
|
|
649
|
-
`,
|
|
649
|
+
`, Je = n`
|
|
650
650
|
${Se}
|
|
651
651
|
|
|
652
652
|
query Cashbacks {
|
|
@@ -654,7 +654,7 @@ const L = o`
|
|
|
654
654
|
...CashbackFragment
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
`, Xe =
|
|
657
|
+
`, Xe = n`
|
|
658
658
|
${Y}
|
|
659
659
|
|
|
660
660
|
query Bonus {
|
|
@@ -683,7 +683,7 @@ const L = o`
|
|
|
683
683
|
dateTimeLastUpdated
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
`, Ze =
|
|
686
|
+
`, Ze = n`
|
|
687
687
|
${Se}
|
|
688
688
|
|
|
689
689
|
query CashbackBonuses {
|
|
@@ -697,7 +697,7 @@ const L = o`
|
|
|
697
697
|
dateTimeLastUpdated
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
`, et =
|
|
700
|
+
`, et = n`
|
|
701
701
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
702
702
|
claimCashbackBonus(input: $input) {
|
|
703
703
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -706,14 +706,14 @@ const L = o`
|
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
`;
|
|
709
|
-
|
|
709
|
+
n`
|
|
710
710
|
query Member {
|
|
711
711
|
member {
|
|
712
712
|
dateTimeLastActive
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
715
|
`;
|
|
716
|
-
const tt =
|
|
716
|
+
const tt = n`
|
|
717
717
|
query MemberAccount {
|
|
718
718
|
memberAccount: self {
|
|
719
719
|
... on MemberAccount {
|
|
@@ -737,7 +737,7 @@ const tt = o`
|
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
`, rt =
|
|
740
|
+
`, rt = n`
|
|
741
741
|
${L}
|
|
742
742
|
|
|
743
743
|
query MemberVerification {
|
|
@@ -762,7 +762,7 @@ const tt = o`
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
`, at =
|
|
765
|
+
`, at = n`
|
|
766
766
|
mutation RegisterMemberAccount(
|
|
767
767
|
$input: RegisterMemberAccountInput!
|
|
768
768
|
$referralCode: String
|
|
@@ -798,7 +798,7 @@ const tt = o`
|
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
`,
|
|
801
|
+
`, ot = n`
|
|
802
802
|
mutation RegisterMemberAccountViaMobile(
|
|
803
803
|
$input: RegisterMemberAccountViaMobileInput!
|
|
804
804
|
$referralCode: String
|
|
@@ -825,7 +825,7 @@ const tt = o`
|
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
`,
|
|
828
|
+
`, nt = n`
|
|
829
829
|
mutation RegisterMemberAccount(
|
|
830
830
|
$input: RegisterMemberAccountInput_next!
|
|
831
831
|
$reCAPTCHAResponse: String
|
|
@@ -857,7 +857,7 @@ const tt = o`
|
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
`, it =
|
|
860
|
+
`, it = n`
|
|
861
861
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
862
862
|
registerMayaMemberAccount(input: $input) {
|
|
863
863
|
... on AccountNameNotAvailableError {
|
|
@@ -865,7 +865,7 @@ const tt = o`
|
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
|
-
`, st =
|
|
868
|
+
`, st = n`
|
|
869
869
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
870
870
|
updateMemberAccount(input: $input) {
|
|
871
871
|
... on AccountNameNotAvailableError {
|
|
@@ -891,7 +891,7 @@ const tt = o`
|
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
`, ct =
|
|
894
|
+
`, ct = n`
|
|
895
895
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
896
896
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
897
897
|
... on AccountNotFoundError {
|
|
@@ -902,11 +902,11 @@ const tt = o`
|
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
`, dt =
|
|
905
|
+
`, dt = n`
|
|
906
906
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
907
907
|
deleteMemberAccount(input: $input)
|
|
908
908
|
}
|
|
909
|
-
`, mt =
|
|
909
|
+
`, mt = n`
|
|
910
910
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
911
911
|
verifyMobileNumber(input: $input) {
|
|
912
912
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -917,7 +917,7 @@ const tt = o`
|
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
|
-
`, ut =
|
|
920
|
+
`, ut = n`
|
|
921
921
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
922
922
|
createMemberVerification(input: $input) {
|
|
923
923
|
... on FileDoesNotExistError {
|
|
@@ -931,7 +931,7 @@ const tt = o`
|
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
`, lt =
|
|
934
|
+
`, lt = n`
|
|
935
935
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
936
936
|
updateMemberVerification(input: $input) {
|
|
937
937
|
... on FileDoesNotExistError {
|
|
@@ -948,7 +948,7 @@ const tt = o`
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
`,
|
|
951
|
+
`, ft = n`
|
|
952
952
|
query ProfileCompletion {
|
|
953
953
|
profileCompletion {
|
|
954
954
|
completionPercentage
|
|
@@ -959,7 +959,7 @@ const tt = o`
|
|
|
959
959
|
accountPassword
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
|
-
`,
|
|
962
|
+
`, pt = n`
|
|
963
963
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
964
964
|
sendVerificationCode(input: $input) {
|
|
965
965
|
... on InvalidPlatformError {
|
|
@@ -970,7 +970,7 @@ const tt = o`
|
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
`, ht =
|
|
973
|
+
`, ht = n`
|
|
974
974
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
975
975
|
minimumAmount
|
|
976
976
|
maximumAmount
|
|
@@ -994,6 +994,8 @@ const tt = o`
|
|
|
994
994
|
}
|
|
995
995
|
|
|
996
996
|
query Platform {
|
|
997
|
+
timezone
|
|
998
|
+
currency
|
|
997
999
|
minimumFirstDepositAmount
|
|
998
1000
|
restrictWithdrawalsToVerifiedMembers
|
|
999
1001
|
bankDepositGatewaySettings: depositGatewaySettings(gateway: BANK) {
|
|
@@ -1024,7 +1026,7 @@ const tt = o`
|
|
|
1024
1026
|
multiplier
|
|
1025
1027
|
}
|
|
1026
1028
|
}
|
|
1027
|
-
`, wt =
|
|
1029
|
+
`, wt = n`
|
|
1028
1030
|
query MayaSession($id: ObjectId!) {
|
|
1029
1031
|
mayaSession(id: $id) {
|
|
1030
1032
|
id
|
|
@@ -1032,11 +1034,11 @@ const tt = o`
|
|
|
1032
1034
|
dateTimeCreated
|
|
1033
1035
|
}
|
|
1034
1036
|
}
|
|
1035
|
-
`, yt =
|
|
1037
|
+
`, yt = n`
|
|
1036
1038
|
mutation ValidateMayaSession {
|
|
1037
1039
|
validateMayaSession: validMayaSession
|
|
1038
1040
|
}
|
|
1039
|
-
`, gt =
|
|
1041
|
+
`, gt = n`
|
|
1040
1042
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1041
1043
|
member {
|
|
1042
1044
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1061,11 +1063,11 @@ const tt = o`
|
|
|
1061
1063
|
}
|
|
1062
1064
|
}
|
|
1063
1065
|
}
|
|
1064
|
-
`, bt =
|
|
1066
|
+
`, bt = n`
|
|
1065
1067
|
query ReferralCode {
|
|
1066
1068
|
referralCode
|
|
1067
1069
|
}
|
|
1068
|
-
`,
|
|
1070
|
+
`, Et = n`
|
|
1069
1071
|
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1070
1072
|
updateReferralCode(input: $input) {
|
|
1071
1073
|
... on ReferralCodeNotAvailableError {
|
|
@@ -1073,7 +1075,7 @@ const tt = o`
|
|
|
1073
1075
|
}
|
|
1074
1076
|
}
|
|
1075
1077
|
}
|
|
1076
|
-
`, j =
|
|
1078
|
+
`, j = n`
|
|
1077
1079
|
fragment ReferralFragment on Referral {
|
|
1078
1080
|
id
|
|
1079
1081
|
upline {
|
|
@@ -1091,7 +1093,7 @@ const tt = o`
|
|
|
1091
1093
|
commission
|
|
1092
1094
|
dateTimeCreated
|
|
1093
1095
|
}
|
|
1094
|
-
`,
|
|
1096
|
+
`, At = n`
|
|
1095
1097
|
query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
|
|
1096
1098
|
member {
|
|
1097
1099
|
referrals(first: $first, after: $after, filter: $filter) {
|
|
@@ -1113,7 +1115,7 @@ const tt = o`
|
|
|
1113
1115
|
}
|
|
1114
1116
|
|
|
1115
1117
|
${j}
|
|
1116
|
-
`, St =
|
|
1118
|
+
`, St = n`
|
|
1117
1119
|
query UplinesByName($search: String!, $first: Int) {
|
|
1118
1120
|
uplinesByName(search: $search, first: $first) {
|
|
1119
1121
|
...ReferralFragment
|
|
@@ -1121,7 +1123,7 @@ const tt = o`
|
|
|
1121
1123
|
}
|
|
1122
1124
|
|
|
1123
1125
|
${j}
|
|
1124
|
-
`, Ct =
|
|
1126
|
+
`, Ct = n`
|
|
1125
1127
|
query DownlinesByName($search: String!, $first: Int) {
|
|
1126
1128
|
downlinesByName(search: $search, first: $first) {
|
|
1127
1129
|
...ReferralFragment
|
|
@@ -1129,7 +1131,7 @@ const tt = o`
|
|
|
1129
1131
|
}
|
|
1130
1132
|
|
|
1131
1133
|
${j}
|
|
1132
|
-
`, kt =
|
|
1134
|
+
`, kt = n`
|
|
1133
1135
|
query ReferralCommission {
|
|
1134
1136
|
member {
|
|
1135
1137
|
referralCommission {
|
|
@@ -1149,9 +1151,9 @@ const tt = o`
|
|
|
1149
1151
|
}
|
|
1150
1152
|
}
|
|
1151
1153
|
`;
|
|
1152
|
-
function m(
|
|
1154
|
+
function m(o) {
|
|
1153
1155
|
return {
|
|
1154
|
-
name:
|
|
1156
|
+
name: o,
|
|
1155
1157
|
message: {
|
|
1156
1158
|
AccountNameNotAvailableError: "Username is no longer available",
|
|
1157
1159
|
AccountNotFoundError: "Account does not exist",
|
|
@@ -1201,7 +1203,7 @@ function m(n) {
|
|
|
1201
1203
|
InvalidToken: "Invalid token",
|
|
1202
1204
|
InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
|
|
1203
1205
|
SessionExpired: "Session expired"
|
|
1204
|
-
}[
|
|
1206
|
+
}[o]
|
|
1205
1207
|
};
|
|
1206
1208
|
}
|
|
1207
1209
|
class _t {
|
|
@@ -1227,7 +1229,7 @@ class _t {
|
|
|
1227
1229
|
} : t;
|
|
1228
1230
|
}
|
|
1229
1231
|
async registerMemberAccountViaMobile(e) {
|
|
1230
|
-
const t = await this.client.request(
|
|
1232
|
+
const t = await this.client.request(ot, e);
|
|
1231
1233
|
return t.ok ? t.data.registerMemberAccountViaMobile ? {
|
|
1232
1234
|
ok: !1,
|
|
1233
1235
|
error: m(t.data.registerMemberAccountViaMobile.__typename)
|
|
@@ -1236,7 +1238,7 @@ class _t {
|
|
|
1236
1238
|
} : t;
|
|
1237
1239
|
}
|
|
1238
1240
|
async registerMemberAccount__next(e) {
|
|
1239
|
-
const t = await this.client.request(
|
|
1241
|
+
const t = await this.client.request(nt, e);
|
|
1240
1242
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1241
1243
|
ok: !1,
|
|
1242
1244
|
error: m(t.data.registerMemberAccount.__typename)
|
|
@@ -1278,14 +1280,15 @@ class _t {
|
|
|
1278
1280
|
} : t;
|
|
1279
1281
|
}
|
|
1280
1282
|
async profileCompletion() {
|
|
1281
|
-
const e = await this.client.request(
|
|
1283
|
+
const e = await this.client.request(ft);
|
|
1282
1284
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1283
1285
|
}
|
|
1284
1286
|
async platform() {
|
|
1285
1287
|
return await this.client.request(ht);
|
|
1286
1288
|
}
|
|
1289
|
+
/** @deprecated */
|
|
1287
1290
|
async sendVerificationCode(e) {
|
|
1288
|
-
const t = await this.client.request(
|
|
1291
|
+
const t = await this.client.request(pt, e);
|
|
1289
1292
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1290
1293
|
ok: !1,
|
|
1291
1294
|
error: m(t.data.sendVerificationCode.__typename)
|
|
@@ -1354,7 +1357,7 @@ class _t {
|
|
|
1354
1357
|
} : e;
|
|
1355
1358
|
}
|
|
1356
1359
|
async updateReferralCode(e) {
|
|
1357
|
-
const t = await this.client.request(
|
|
1360
|
+
const t = await this.client.request(Et, e);
|
|
1358
1361
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1359
1362
|
ok: !1,
|
|
1360
1363
|
error: m(t.data.updateReferralCode.__typename)
|
|
@@ -1363,11 +1366,11 @@ class _t {
|
|
|
1363
1366
|
} : t;
|
|
1364
1367
|
}
|
|
1365
1368
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1369
|
+
function E(o) {
|
|
1370
|
+
return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
|
|
1368
1371
|
}
|
|
1369
|
-
function h(
|
|
1370
|
-
const t = V[
|
|
1372
|
+
function h(o, e) {
|
|
1373
|
+
const t = V[o] ? V[o] : V[500];
|
|
1371
1374
|
return {
|
|
1372
1375
|
name: t.name,
|
|
1373
1376
|
message: e ?? t.message
|
|
@@ -1399,7 +1402,7 @@ class Tt {
|
|
|
1399
1402
|
t.set("Authorization", `Basic ${a}`);
|
|
1400
1403
|
}
|
|
1401
1404
|
if (e.mobileNumber) {
|
|
1402
|
-
const a = `${
|
|
1405
|
+
const a = `${E(e.mobileNumber)}:${e.verificationCode}`, s = Buffer.from(a).toString("base64");
|
|
1403
1406
|
console.log(`MobileNumberOTP ${s}`), t.set("Authorization", `MobileNumberOTP ${s}`);
|
|
1404
1407
|
}
|
|
1405
1408
|
e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`);
|
|
@@ -1518,8 +1521,11 @@ class Tt {
|
|
|
1518
1521
|
body: JSON.stringify(e)
|
|
1519
1522
|
});
|
|
1520
1523
|
if (t.status === 403) {
|
|
1521
|
-
const r = await t.json();
|
|
1522
|
-
return {
|
|
1524
|
+
const r = await t.json(), a = vt(r.message);
|
|
1525
|
+
return a ? {
|
|
1526
|
+
ok: !1,
|
|
1527
|
+
error: m(a)
|
|
1528
|
+
} : {
|
|
1523
1529
|
ok: !1,
|
|
1524
1530
|
error: h(t.status, r.message)
|
|
1525
1531
|
};
|
|
@@ -1536,7 +1542,11 @@ class Tt {
|
|
|
1536
1542
|
}
|
|
1537
1543
|
}
|
|
1538
1544
|
}
|
|
1539
|
-
|
|
1545
|
+
function vt(o) {
|
|
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 {
|
|
1540
1550
|
constructor(e) {
|
|
1541
1551
|
d(this, "url");
|
|
1542
1552
|
d(this, "siteId");
|
|
@@ -1551,22 +1561,22 @@ class vt {
|
|
|
1551
1561
|
} : e;
|
|
1552
1562
|
}
|
|
1553
1563
|
async games(e) {
|
|
1554
|
-
var a, s, c, u, l,
|
|
1564
|
+
var a, s, c, u, l, p, w, f, T, v, M, R, N, b, I, D, S, P, $, x, C, G, O, W;
|
|
1555
1565
|
const t = new URLSearchParams();
|
|
1556
|
-
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), (
|
|
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 = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (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), (b = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && b.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(
|
|
1557
1567
|
"filter[tags][in]",
|
|
1558
|
-
e.filter.tags.in.map((
|
|
1559
|
-
), (
|
|
1568
|
+
e.filter.tags.in.map((A) => A.toLowerCase()).join(",")
|
|
1569
|
+
), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
|
|
1560
1570
|
"filter[tags][nin]",
|
|
1561
|
-
e.filter.tags.notIn.map((
|
|
1571
|
+
e.filter.tags.notIn.map((A) => A.toLowerCase()).join(",")
|
|
1562
1572
|
);
|
|
1563
1573
|
const r = await this.getJson("/games", t);
|
|
1564
1574
|
return r.ok ? {
|
|
1565
1575
|
ok: !0,
|
|
1566
1576
|
data: {
|
|
1567
|
-
edges: r.data.data.map((
|
|
1568
|
-
node:
|
|
1569
|
-
cursor:
|
|
1577
|
+
edges: r.data.data.map((A) => ({
|
|
1578
|
+
node: A,
|
|
1579
|
+
cursor: A.cursor
|
|
1570
1580
|
})),
|
|
1571
1581
|
totalCount: r.data.totalCount ?? 0,
|
|
1572
1582
|
pageInfo: {
|
|
@@ -1614,7 +1624,7 @@ class vt {
|
|
|
1614
1624
|
}
|
|
1615
1625
|
}
|
|
1616
1626
|
}
|
|
1617
|
-
class
|
|
1627
|
+
class Rt {
|
|
1618
1628
|
constructor(e) {
|
|
1619
1629
|
d(this, "client");
|
|
1620
1630
|
this.client = e;
|
|
@@ -1636,7 +1646,7 @@ class Mt {
|
|
|
1636
1646
|
} : t;
|
|
1637
1647
|
}
|
|
1638
1648
|
}
|
|
1639
|
-
class
|
|
1649
|
+
class Nt {
|
|
1640
1650
|
constructor(e) {
|
|
1641
1651
|
d(this, "client");
|
|
1642
1652
|
this.client = e;
|
|
@@ -1652,7 +1662,7 @@ class Rt {
|
|
|
1652
1662
|
} : t;
|
|
1653
1663
|
}
|
|
1654
1664
|
async createGameSession(e) {
|
|
1655
|
-
const t = await this.client.request(
|
|
1665
|
+
const t = await this.client.request(Ee, e);
|
|
1656
1666
|
return t.ok ? t.data.createGameSession ? {
|
|
1657
1667
|
ok: !1,
|
|
1658
1668
|
error: m(t.data.createGameSession.__typename)
|
|
@@ -1661,7 +1671,7 @@ class Rt {
|
|
|
1661
1671
|
} : t;
|
|
1662
1672
|
}
|
|
1663
1673
|
async endGameSession(e) {
|
|
1664
|
-
const t = await this.client.request(
|
|
1674
|
+
const t = await this.client.request(Ae.legacy, e);
|
|
1665
1675
|
return t.ok ? t.data.endGameSession ? {
|
|
1666
1676
|
ok: !1,
|
|
1667
1677
|
error: {
|
|
@@ -1673,7 +1683,7 @@ class Rt {
|
|
|
1673
1683
|
} : t;
|
|
1674
1684
|
}
|
|
1675
1685
|
}
|
|
1676
|
-
class
|
|
1686
|
+
class It {
|
|
1677
1687
|
constructor(e) {
|
|
1678
1688
|
d(this, "client");
|
|
1679
1689
|
this.client = e;
|
|
@@ -1686,7 +1696,7 @@ class Nt {
|
|
|
1686
1696
|
} : e;
|
|
1687
1697
|
}
|
|
1688
1698
|
}
|
|
1689
|
-
class
|
|
1699
|
+
class Dt {
|
|
1690
1700
|
constructor(e) {
|
|
1691
1701
|
d(this, "client");
|
|
1692
1702
|
this.client = e;
|
|
@@ -1733,7 +1743,7 @@ class It {
|
|
|
1733
1743
|
}
|
|
1734
1744
|
async referrals(e) {
|
|
1735
1745
|
const t = await this.client.request(
|
|
1736
|
-
|
|
1746
|
+
At,
|
|
1737
1747
|
e
|
|
1738
1748
|
);
|
|
1739
1749
|
return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
|
|
@@ -1757,7 +1767,7 @@ class It {
|
|
|
1757
1767
|
return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
|
|
1758
1768
|
}
|
|
1759
1769
|
}
|
|
1760
|
-
class
|
|
1770
|
+
class Pt {
|
|
1761
1771
|
constructor(e) {
|
|
1762
1772
|
d(this, "url");
|
|
1763
1773
|
this.url = e.url;
|
|
@@ -1769,7 +1779,7 @@ class Dt {
|
|
|
1769
1779
|
];
|
|
1770
1780
|
}
|
|
1771
1781
|
}
|
|
1772
|
-
class
|
|
1782
|
+
class $t {
|
|
1773
1783
|
constructor(e) {
|
|
1774
1784
|
d(this, "client");
|
|
1775
1785
|
this.client = e;
|
|
@@ -1779,12 +1789,12 @@ class Pt {
|
|
|
1779
1789
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1780
1790
|
}
|
|
1781
1791
|
async cashbacks() {
|
|
1782
|
-
const e = await this.client.request(
|
|
1792
|
+
const e = await this.client.request(Je);
|
|
1783
1793
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1784
1794
|
}
|
|
1785
1795
|
async availablePromos(e) {
|
|
1786
1796
|
const t = await this.client.request(
|
|
1787
|
-
|
|
1797
|
+
ze,
|
|
1788
1798
|
e
|
|
1789
1799
|
);
|
|
1790
1800
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
@@ -1875,7 +1885,7 @@ class Pt {
|
|
|
1875
1885
|
} : t;
|
|
1876
1886
|
}
|
|
1877
1887
|
async createBankWithdrawal(e) {
|
|
1878
|
-
const t = await this.client.request(
|
|
1888
|
+
const t = await this.client.request(Oe, e);
|
|
1879
1889
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1880
1890
|
ok: !1,
|
|
1881
1891
|
error: m(t.data.createBankWithdrawal.__typename)
|
|
@@ -1885,7 +1895,7 @@ class Pt {
|
|
|
1885
1895
|
}
|
|
1886
1896
|
async remainingDailyWithdrawalsCount() {
|
|
1887
1897
|
const e = await this.client.request(
|
|
1888
|
-
|
|
1898
|
+
We
|
|
1889
1899
|
);
|
|
1890
1900
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1891
1901
|
}
|
|
@@ -1917,7 +1927,7 @@ class Pt {
|
|
|
1917
1927
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1918
1928
|
}
|
|
1919
1929
|
async createGameSession(e) {
|
|
1920
|
-
const t = await this.client.request(
|
|
1930
|
+
const t = await this.client.request(Ee, e);
|
|
1921
1931
|
return t.ok ? t.data.createGameSession ? {
|
|
1922
1932
|
ok: !1,
|
|
1923
1933
|
error: m(t.data.createGameSession.__typename)
|
|
@@ -1927,7 +1937,7 @@ class Pt {
|
|
|
1927
1937
|
}
|
|
1928
1938
|
async endGameSession(e) {
|
|
1929
1939
|
const t = await this.client.request(
|
|
1930
|
-
|
|
1940
|
+
Ae.current,
|
|
1931
1941
|
e
|
|
1932
1942
|
);
|
|
1933
1943
|
return t.ok ? t.data.endGameSession ? {
|
|
@@ -1955,27 +1965,27 @@ class Pt {
|
|
|
1955
1965
|
} : e;
|
|
1956
1966
|
}
|
|
1957
1967
|
}
|
|
1958
|
-
function
|
|
1959
|
-
return
|
|
1968
|
+
function xt(o, e, t) {
|
|
1969
|
+
return o < e ? e : o > t ? t : o;
|
|
1960
1970
|
}
|
|
1961
|
-
function H(
|
|
1962
|
-
return Object.prototype.toString.call(
|
|
1971
|
+
function H(o) {
|
|
1972
|
+
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
1963
1973
|
}
|
|
1964
|
-
function
|
|
1974
|
+
function Gt(o) {
|
|
1965
1975
|
const e = [];
|
|
1966
1976
|
function t(r, a = []) {
|
|
1967
1977
|
for (const s in r) {
|
|
1968
1978
|
const c = r[s];
|
|
1969
|
-
H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(
|
|
1979
|
+
H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Ut(c), [...a, s]) : e.push({
|
|
1970
1980
|
key: [...a, s],
|
|
1971
1981
|
value: c
|
|
1972
1982
|
});
|
|
1973
1983
|
}
|
|
1974
1984
|
}
|
|
1975
|
-
return t(
|
|
1985
|
+
return t(o), e;
|
|
1976
1986
|
}
|
|
1977
|
-
function
|
|
1978
|
-
return
|
|
1987
|
+
function Ut(o) {
|
|
1988
|
+
return o.reduce((e, t, r) => (e[r] = t, e), {});
|
|
1979
1989
|
}
|
|
1980
1990
|
class U {
|
|
1981
1991
|
constructor(e, t) {
|
|
@@ -2019,10 +2029,10 @@ class U {
|
|
|
2019
2029
|
const l = await fetch(e);
|
|
2020
2030
|
if (!l.ok)
|
|
2021
2031
|
return { ok: !1, error: h(l.status) };
|
|
2022
|
-
const
|
|
2023
|
-
return
|
|
2032
|
+
const p = await l.json(), w = p.data, f = (t = p.errors) == null ? void 0 : t.at(0);
|
|
2033
|
+
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) } : {
|
|
2024
2034
|
ok: !1,
|
|
2025
|
-
error: h(500,
|
|
2035
|
+
error: h(500, f.message)
|
|
2026
2036
|
} : {
|
|
2027
2037
|
ok: !0,
|
|
2028
2038
|
data: w
|
|
@@ -2041,7 +2051,7 @@ class U {
|
|
|
2041
2051
|
return t;
|
|
2042
2052
|
}
|
|
2043
2053
|
createUploadBody(e, t) {
|
|
2044
|
-
const r =
|
|
2054
|
+
const r = Gt(t).filter(
|
|
2045
2055
|
(c) => c.value instanceof File || c.value instanceof Blob
|
|
2046
2056
|
), a = new FormData();
|
|
2047
2057
|
a.append(
|
|
@@ -2059,8 +2069,8 @@ class U {
|
|
|
2059
2069
|
}), a;
|
|
2060
2070
|
}
|
|
2061
2071
|
}
|
|
2062
|
-
async function y(
|
|
2063
|
-
const e = new TextEncoder().encode(
|
|
2072
|
+
async function y(o) {
|
|
2073
|
+
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
2064
2074
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
2065
2075
|
}
|
|
2066
2076
|
class Ce {
|
|
@@ -2081,26 +2091,26 @@ class Ce {
|
|
|
2081
2091
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
2082
2092
|
}
|
|
2083
2093
|
}
|
|
2084
|
-
function Q(
|
|
2085
|
-
return new Date(
|
|
2094
|
+
function Q(o) {
|
|
2095
|
+
return new Date(o.getTime());
|
|
2086
2096
|
}
|
|
2087
|
-
function B(
|
|
2088
|
-
const t = Q(
|
|
2097
|
+
function B(o, e) {
|
|
2098
|
+
const t = Q(o);
|
|
2089
2099
|
return t.setDate(t.getDate() + e), t;
|
|
2090
2100
|
}
|
|
2091
|
-
function q(
|
|
2092
|
-
const t = Q(
|
|
2101
|
+
function q(o, e) {
|
|
2102
|
+
const t = Q(o);
|
|
2093
2103
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2094
2104
|
}
|
|
2095
|
-
function ye(
|
|
2096
|
-
return
|
|
2105
|
+
function ye(o, e) {
|
|
2106
|
+
return o.getTime() > e.getTime();
|
|
2097
2107
|
}
|
|
2098
|
-
function ke(
|
|
2108
|
+
function ke(o) {
|
|
2099
2109
|
return new Promise((e) => {
|
|
2100
|
-
setTimeout(e,
|
|
2110
|
+
setTimeout(e, o);
|
|
2101
2111
|
});
|
|
2102
2112
|
}
|
|
2103
|
-
function ge(
|
|
2113
|
+
function ge(o, e) {
|
|
2104
2114
|
const {
|
|
2105
2115
|
until: t,
|
|
2106
2116
|
interval: r = 1e3,
|
|
@@ -2108,16 +2118,16 @@ function ge(n, e) {
|
|
|
2108
2118
|
/**/
|
|
2109
2119
|
} = e;
|
|
2110
2120
|
async function s(c, u) {
|
|
2111
|
-
const l = u ?? a,
|
|
2112
|
-
return t(
|
|
2121
|
+
const l = u ?? a, p = await o(...c);
|
|
2122
|
+
return t(p) ? p : l > 1 ? (await ke(r * ((a - l) / 2)), s(c, l - 1)) : p;
|
|
2113
2123
|
}
|
|
2114
2124
|
return async (...c) => await s(c);
|
|
2115
2125
|
}
|
|
2116
|
-
function F(
|
|
2117
|
-
const t = Q(
|
|
2126
|
+
function F(o, e) {
|
|
2127
|
+
const t = Q(o);
|
|
2118
2128
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
2119
2129
|
}
|
|
2120
|
-
class
|
|
2130
|
+
class Ot {
|
|
2121
2131
|
constructor(e) {
|
|
2122
2132
|
d(this, "logger");
|
|
2123
2133
|
d(this, "storageKey", "session");
|
|
@@ -2147,8 +2157,8 @@ class Ut {
|
|
|
2147
2157
|
if (e.type === "MAYA") {
|
|
2148
2158
|
const c = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2149
2159
|
until: (w) => {
|
|
2150
|
-
var
|
|
2151
|
-
return w.ok && ((
|
|
2160
|
+
var f;
|
|
2161
|
+
return w.ok && ((f = w.data) == null ? void 0 : f.member) != null;
|
|
2152
2162
|
},
|
|
2153
2163
|
interval: 1e3,
|
|
2154
2164
|
maxAttempt: 5
|
|
@@ -2168,13 +2178,13 @@ class Ut {
|
|
|
2168
2178
|
maxAttempt: 5
|
|
2169
2179
|
})();
|
|
2170
2180
|
if (!l.ok) return l;
|
|
2171
|
-
const
|
|
2181
|
+
const p = /* @__PURE__ */ new Date();
|
|
2172
2182
|
return window.localStorage.setItem(
|
|
2173
2183
|
this.storageKey,
|
|
2174
2184
|
JSON.stringify({
|
|
2175
2185
|
...l.data,
|
|
2176
|
-
accessTokenExpiresAt: q(
|
|
2177
|
-
refreshTokenExpiresAt: F(B(
|
|
2186
|
+
accessTokenExpiresAt: q(p, 8).getTime(),
|
|
2187
|
+
refreshTokenExpiresAt: F(B(p, 30), 2).getTime()
|
|
2178
2188
|
})
|
|
2179
2189
|
), {
|
|
2180
2190
|
ok: !0,
|
|
@@ -2316,10 +2326,10 @@ class Ut {
|
|
|
2316
2326
|
return typeof window > "u";
|
|
2317
2327
|
}
|
|
2318
2328
|
}
|
|
2319
|
-
function g(
|
|
2329
|
+
function g(o) {
|
|
2320
2330
|
const e = {};
|
|
2321
|
-
for (const t in
|
|
2322
|
-
const r =
|
|
2331
|
+
for (const t in o) {
|
|
2332
|
+
const r = o[t];
|
|
2323
2333
|
if (r !== null && r !== void 0) {
|
|
2324
2334
|
if (H(r)) {
|
|
2325
2335
|
e[t] = g(r);
|
|
@@ -2334,11 +2344,11 @@ function g(n) {
|
|
|
2334
2344
|
}
|
|
2335
2345
|
return e;
|
|
2336
2346
|
}
|
|
2337
|
-
function i(
|
|
2338
|
-
if (typeof
|
|
2339
|
-
return
|
|
2340
|
-
if (typeof
|
|
2341
|
-
const t = Number.parseFloat(
|
|
2347
|
+
function i(o, e) {
|
|
2348
|
+
if (typeof o == "number" && !Number.isNaN(o))
|
|
2349
|
+
return o;
|
|
2350
|
+
if (typeof o == "string") {
|
|
2351
|
+
const t = Number.parseFloat(o);
|
|
2342
2352
|
if (!Number.isNaN(t))
|
|
2343
2353
|
return t;
|
|
2344
2354
|
}
|
|
@@ -2348,7 +2358,7 @@ class Wt {
|
|
|
2348
2358
|
constructor(e) {
|
|
2349
2359
|
d(this, "staticService");
|
|
2350
2360
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2351
|
-
this.staticService = new
|
|
2361
|
+
this.staticService = new Pt({
|
|
2352
2362
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2353
2363
|
});
|
|
2354
2364
|
}
|
|
@@ -2391,8 +2401,10 @@ class Wt {
|
|
|
2391
2401
|
return g(t);
|
|
2392
2402
|
}
|
|
2393
2403
|
platform(e) {
|
|
2394
|
-
var t, r, a, s, c, u, l,
|
|
2404
|
+
var t, r, a, s, c, u, l, p, w, f, T, v, M, R, N, b, I, D, S, P, $, x, C, G, O, W, A, K, z, J, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, de, me, ue, le, fe, pe, he, we;
|
|
2395
2405
|
return {
|
|
2406
|
+
timezone: e.timezone,
|
|
2407
|
+
currency: e.currency,
|
|
2396
2408
|
paymentSettings: {
|
|
2397
2409
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
2398
2410
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
@@ -2407,9 +2419,9 @@ class Wt {
|
|
|
2407
2419
|
},
|
|
2408
2420
|
gcash: {
|
|
2409
2421
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
2410
|
-
iosEnabled: ((
|
|
2422
|
+
iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
|
|
2411
2423
|
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
2412
|
-
mobileWebEnabled: ((
|
|
2424
|
+
mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
|
|
2413
2425
|
minimumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.minimumAmount),
|
|
2414
2426
|
maximumAmount: i((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
2415
2427
|
},
|
|
@@ -2432,12 +2444,12 @@ class Wt {
|
|
|
2432
2444
|
},
|
|
2433
2445
|
withdrawalGateway: {
|
|
2434
2446
|
bank: {
|
|
2435
|
-
androidEnabled: ((
|
|
2436
|
-
iosEnabled: ((
|
|
2437
|
-
webEnabled: ((
|
|
2447
|
+
androidEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.androidEnabled) ?? !1,
|
|
2448
|
+
iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
|
|
2449
|
+
webEnabled: ((A = e.bankWithdrawalGatewaySettings) == null ? void 0 : A.webEnabled) ?? !1,
|
|
2438
2450
|
mobileWebEnabled: ((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
|
|
2439
|
-
minimumAmount: i((
|
|
2440
|
-
maximumAmount: i((
|
|
2451
|
+
minimumAmount: i((z = e.bankWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
|
|
2452
|
+
maximumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
|
|
2441
2453
|
},
|
|
2442
2454
|
gcash: {
|
|
2443
2455
|
androidEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
|
|
@@ -2451,8 +2463,8 @@ class Wt {
|
|
|
2451
2463
|
)
|
|
2452
2464
|
},
|
|
2453
2465
|
maya: {
|
|
2454
|
-
androidEnabled: ((
|
|
2455
|
-
iosEnabled: ((
|
|
2466
|
+
androidEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.androidEnabled) ?? !1,
|
|
2467
|
+
iosEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.iosEnabled) ?? !1,
|
|
2456
2468
|
webEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
|
|
2457
2469
|
mobileWebEnabled: ((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
|
|
2458
2470
|
minimumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.minimumAmount),
|
|
@@ -2462,8 +2474,8 @@ class Wt {
|
|
|
2462
2474
|
androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
|
|
2463
2475
|
iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
|
|
2464
2476
|
webEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
|
|
2465
|
-
mobileWebEnabled: ((
|
|
2466
|
-
minimumAmount: i((
|
|
2477
|
+
mobileWebEnabled: ((fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.mobileWebEnabled) ?? !1,
|
|
2478
|
+
minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
|
|
2467
2479
|
maximumAmount: i(
|
|
2468
2480
|
(he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.maximumAmount,
|
|
2469
2481
|
1e6
|
|
@@ -2804,7 +2816,7 @@ class Wt {
|
|
|
2804
2816
|
};
|
|
2805
2817
|
}
|
|
2806
2818
|
}
|
|
2807
|
-
class
|
|
2819
|
+
class Vt {
|
|
2808
2820
|
constructor(e) {
|
|
2809
2821
|
d(this, "cmsPortalService");
|
|
2810
2822
|
d(this, "authService");
|
|
@@ -2830,7 +2842,7 @@ class Lt {
|
|
|
2830
2842
|
}), this.logger = new Ce({
|
|
2831
2843
|
enabled: c ?? !1
|
|
2832
2844
|
});
|
|
2833
|
-
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io",
|
|
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", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", f = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", 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 Mt({
|
|
2834
2846
|
url: R,
|
|
2835
2847
|
site: t,
|
|
2836
2848
|
platform: r
|
|
@@ -2842,10 +2854,10 @@ class Lt {
|
|
|
2842
2854
|
"Platform-Code": a
|
|
2843
2855
|
}
|
|
2844
2856
|
}
|
|
2845
|
-
}, I = new
|
|
2857
|
+
}, I = new Nt(new U(M, b)), D = new Rt(new U(v, b)), S = new $t(new U(p, b)), P = new _t(new U(f, b)), $ = new Dt(new U(w, b)), x = new It(new U(T, b)), C = new Tt({
|
|
2846
2858
|
url: l,
|
|
2847
2859
|
platform: a
|
|
2848
|
-
}), G = new
|
|
2860
|
+
}), G = new Ot({
|
|
2849
2861
|
logs: c,
|
|
2850
2862
|
authService: C,
|
|
2851
2863
|
walletService: S
|
|
@@ -2907,7 +2919,7 @@ class Lt {
|
|
|
2907
2919
|
await this.sessionManager.destroy();
|
|
2908
2920
|
}
|
|
2909
2921
|
watchSession(e) {
|
|
2910
|
-
const t =
|
|
2922
|
+
const t = xt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2911
2923
|
let r = null;
|
|
2912
2924
|
const a = () => setTimeout(async () => {
|
|
2913
2925
|
await this.sessionManager.verify() || await e.onInvalid(), r = a();
|
|
@@ -2977,7 +2989,7 @@ class Lt {
|
|
|
2977
2989
|
domain: e.domain,
|
|
2978
2990
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2979
2991
|
password: await y(e.password),
|
|
2980
|
-
mobileNumber:
|
|
2992
|
+
mobileNumber: E(e.mobileNumber)
|
|
2981
2993
|
},
|
|
2982
2994
|
referralCode: e.referralCode,
|
|
2983
2995
|
verificationCode: e.verificationCode,
|
|
@@ -2991,7 +3003,7 @@ class Lt {
|
|
|
2991
3003
|
const a = await this.accountService.registerMemberAccountViaMobile({
|
|
2992
3004
|
input: {
|
|
2993
3005
|
id: t,
|
|
2994
|
-
mobileNumber:
|
|
3006
|
+
mobileNumber: E(e.mobileNumber)
|
|
2995
3007
|
},
|
|
2996
3008
|
referralCode: e.referralCode,
|
|
2997
3009
|
reCAPTCHAResponse: e.reCAPTCHAResponse,
|
|
@@ -3004,7 +3016,7 @@ class Lt {
|
|
|
3004
3016
|
id: t,
|
|
3005
3017
|
name: e.name,
|
|
3006
3018
|
password: await y(e.password),
|
|
3007
|
-
mobileNumber: e.mobileNumber ?
|
|
3019
|
+
mobileNumber: e.mobileNumber ? E(e.mobileNumber) : void 0
|
|
3008
3020
|
},
|
|
3009
3021
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3010
3022
|
});
|
|
@@ -3028,7 +3040,7 @@ class Lt {
|
|
|
3028
3040
|
password: t.password ? await y(t.password) : void 0,
|
|
3029
3041
|
transactionPassword: t.transactionPassword ? await y(t.transactionPassword) : void 0,
|
|
3030
3042
|
...t.mobileNumber && {
|
|
3031
|
-
mobileNumber:
|
|
3043
|
+
mobileNumber: E(t.mobileNumber)
|
|
3032
3044
|
},
|
|
3033
3045
|
secretAnswer: t.secretAnswer ? await y(t.secretAnswer) : void 0
|
|
3034
3046
|
}
|
|
@@ -3071,7 +3083,7 @@ class Lt {
|
|
|
3071
3083
|
async resetPassword(e) {
|
|
3072
3084
|
return await this.accountService.resetPassword({
|
|
3073
3085
|
input: {
|
|
3074
|
-
mobileNumber:
|
|
3086
|
+
mobileNumber: E(e.mobileNumber),
|
|
3075
3087
|
newPassword: await y(e.newPassword)
|
|
3076
3088
|
},
|
|
3077
3089
|
verificationCode: e.verificationCode
|
|
@@ -3098,15 +3110,20 @@ class Lt {
|
|
|
3098
3110
|
return await this.accountService.sendVerificationCode({
|
|
3099
3111
|
input: {
|
|
3100
3112
|
channel: "SMS",
|
|
3101
|
-
recipient:
|
|
3113
|
+
recipient: E(e)
|
|
3102
3114
|
}
|
|
3103
3115
|
});
|
|
3104
3116
|
}
|
|
3105
3117
|
async sendVerificationCode__next(e) {
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3118
|
+
if (e.type === "SMS")
|
|
3119
|
+
return this.authService.sendVerificationCode({
|
|
3120
|
+
channel: "SMS",
|
|
3121
|
+
recipient: E(e.mobileNumber),
|
|
3122
|
+
...e.strict && {
|
|
3123
|
+
verificationType: "MEMBER"
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
throw new Error("'Email' verification code is not yet supported");
|
|
3110
3127
|
}
|
|
3111
3128
|
async wallet() {
|
|
3112
3129
|
const e = await this.walletService.wallet();
|
|
@@ -3168,7 +3185,7 @@ class Lt {
|
|
|
3168
3185
|
id: t,
|
|
3169
3186
|
amount: e.amount.toString(),
|
|
3170
3187
|
transactionPassword: await y(e.transactionPassword),
|
|
3171
|
-
recipientMobileNumber:
|
|
3188
|
+
recipientMobileNumber: E(e.recipientMobileNumber)
|
|
3172
3189
|
}
|
|
3173
3190
|
});
|
|
3174
3191
|
if (!r.ok) return r;
|
|
@@ -3179,7 +3196,7 @@ class Lt {
|
|
|
3179
3196
|
id: t,
|
|
3180
3197
|
amount: e.amount.toString(),
|
|
3181
3198
|
transactionPassword: await y(e.transactionPassword),
|
|
3182
|
-
recipientMobileNumber:
|
|
3199
|
+
recipientMobileNumber: E(e.recipientMobileNumber)
|
|
3183
3200
|
}
|
|
3184
3201
|
});
|
|
3185
3202
|
if (!r.ok) return r;
|
|
@@ -3437,7 +3454,7 @@ class Lt {
|
|
|
3437
3454
|
const t = e.id ?? k.generate(_.GameSession).toString();
|
|
3438
3455
|
if (e.game.startsWith("SPORTS:")) {
|
|
3439
3456
|
const u = await k.generateFromKey(_.Game, e.game).then(
|
|
3440
|
-
(
|
|
3457
|
+
(p) => p.toString()
|
|
3441
3458
|
), l = await this.gameService.createGameSession({
|
|
3442
3459
|
input: {
|
|
3443
3460
|
id: t,
|
|
@@ -3459,7 +3476,7 @@ class Lt {
|
|
|
3459
3476
|
/**/
|
|
3460
3477
|
provider: a,
|
|
3461
3478
|
reference: s
|
|
3462
|
-
} = r.data, c =
|
|
3479
|
+
} = r.data, c = qt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
3463
3480
|
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
3464
3481
|
}
|
|
3465
3482
|
async endGameSession(e) {
|
|
@@ -3593,7 +3610,7 @@ class Lt {
|
|
|
3593
3610
|
} : t;
|
|
3594
3611
|
}
|
|
3595
3612
|
}
|
|
3596
|
-
const
|
|
3613
|
+
const Bt = [
|
|
3597
3614
|
/**/
|
|
3598
3615
|
"RTG",
|
|
3599
3616
|
"DARWIN",
|
|
@@ -3603,12 +3620,12 @@ const Ot = [
|
|
|
3603
3620
|
"EVOLUTION_NETENT",
|
|
3604
3621
|
"EVOLUTION_REDTIGER"
|
|
3605
3622
|
];
|
|
3606
|
-
function
|
|
3607
|
-
return
|
|
3623
|
+
function qt(o) {
|
|
3624
|
+
return Bt.some((e) => e === o);
|
|
3608
3625
|
}
|
|
3609
3626
|
export {
|
|
3610
|
-
|
|
3627
|
+
jt as ObjectId,
|
|
3611
3628
|
_ as ObjectType,
|
|
3612
|
-
|
|
3629
|
+
Vt as Sdk
|
|
3613
3630
|
};
|
|
3614
3631
|
//# sourceMappingURL=index.mjs.map
|