@opexa/portal-sdk 0.0.63 → 0.0.64
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 +43 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +281 -368
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +2 -39
- package/dist/services/queries.d.ts +0 -2
- package/dist/services/wallet.service.d.ts +0 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Te = (
|
|
3
|
-
var m = (
|
|
4
|
-
import { ObjectId as
|
|
5
|
-
import { ObjectId as
|
|
6
|
-
const
|
|
1
|
+
var _e = Object.defineProperty;
|
|
2
|
+
var Te = (n, e, t) => e in n ? _e(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var m = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { ObjectId as b } from "@opexa/object-id";
|
|
5
|
+
import { ObjectId as Lt } from "@opexa/object-id";
|
|
6
|
+
const A = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
9
9
|
Withdrawal: 14,
|
|
@@ -13,22 +13,22 @@ const b = {
|
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
15
|
};
|
|
16
|
-
function n
|
|
16
|
+
function o(n, ...e) {
|
|
17
17
|
let t = "";
|
|
18
|
-
for (const [r, a] of
|
|
18
|
+
for (const [r, a] of n.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 = o`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`, ve =
|
|
31
|
+
`, ve = o`
|
|
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 = o`
|
|
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
|
-
`, Ne =
|
|
55
|
+
`, Ne = o`
|
|
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
|
-
`, Ie =
|
|
65
|
+
`, Ie = o`
|
|
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
|
-
`,
|
|
74
|
+
`, Re = o`
|
|
75
75
|
mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
|
|
76
76
|
pointsToCashConversion(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,7 +79,7 @@ const L = n`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`, De = o`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -107,7 +107,7 @@ const L = n`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`, ge =
|
|
110
|
+
`, ge = o`
|
|
111
111
|
query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
|
|
112
112
|
games(first: $first, after: $after, filter: $filter) {
|
|
113
113
|
edges {
|
|
@@ -128,7 +128,7 @@ const L = n`
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
131
|
+
`, Se = o`
|
|
132
132
|
query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
|
|
133
133
|
gamesByName(first: $first, search: $search, filter: $filter) {
|
|
134
134
|
... on Game {
|
|
@@ -139,7 +139,7 @@ const L = n`
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`, Ee = o`
|
|
143
143
|
query GameSession($id: ObjectId!) {
|
|
144
144
|
node(id: $id) {
|
|
145
145
|
... on GameSession {
|
|
@@ -151,7 +151,7 @@ const L = n`
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`, be = o`
|
|
155
155
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
156
156
|
createGameSession(input: $input) {
|
|
157
157
|
... on GameDoesNotExistError {
|
|
@@ -159,11 +159,11 @@ const L = n`
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
`, Pe =
|
|
162
|
+
`, Pe = o`
|
|
163
163
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
164
164
|
endGameSession(input: $input)
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`, Ge = o`
|
|
167
167
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
168
168
|
endGameSession(input: $input) {
|
|
169
169
|
... on GameSessionDoesNotExistError {
|
|
@@ -177,7 +177,7 @@ const L = n`
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`, xe = o`
|
|
181
181
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
182
182
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
183
183
|
edges {
|
|
@@ -203,7 +203,7 @@ const L = n`
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`, $e = o`
|
|
207
207
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
208
208
|
member {
|
|
209
209
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -270,7 +270,7 @@ const L = n`
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
`,
|
|
273
|
+
`, We = o`
|
|
274
274
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
275
275
|
createGCashWithdrawal(input: $input) {
|
|
276
276
|
... on AccountNotVerifiedError {
|
|
@@ -293,7 +293,7 @@ const L = n`
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
`, Ue =
|
|
296
|
+
`, Ue = o`
|
|
297
297
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
298
298
|
createMayaWithdrawal(input: $input) {
|
|
299
299
|
... on AccountNotVerifiedError {
|
|
@@ -316,7 +316,7 @@ const L = n`
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
`, Oe =
|
|
319
|
+
`, Oe = o`
|
|
320
320
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
321
321
|
createMayaAppWithdrawal(input: $input) {
|
|
322
322
|
... on AccountNotVerifiedError {
|
|
@@ -336,27 +336,7 @@ const L = n`
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
`, Be =
|
|
340
|
-
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
341
|
-
createMayaAppWithdrawal: createMayaAppWithdrawal_next(input: $input) {
|
|
342
|
-
... on AccountNotVerifiedError {
|
|
343
|
-
__typename
|
|
344
|
-
}
|
|
345
|
-
... on InvalidTransactionPasswordError {
|
|
346
|
-
__typename
|
|
347
|
-
}
|
|
348
|
-
... on InvalidWithdrawalAmountError {
|
|
349
|
-
__typename
|
|
350
|
-
}
|
|
351
|
-
... on NotEnoughBalanceError {
|
|
352
|
-
__typename
|
|
353
|
-
}
|
|
354
|
-
... on WithdrawalDailyLimitExceededError {
|
|
355
|
-
__typename
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
`, qe = n`
|
|
339
|
+
`, Be = o`
|
|
360
340
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
361
341
|
createBankWithdrawal(input: $input) {
|
|
362
342
|
... on MobileNumberNotVerifiedError {
|
|
@@ -379,11 +359,11 @@ const L = n`
|
|
|
379
359
|
}
|
|
380
360
|
}
|
|
381
361
|
}
|
|
382
|
-
`,
|
|
362
|
+
`, qe = o`
|
|
383
363
|
query RemainingDailyWithdrawalsCount {
|
|
384
364
|
remainingDailyWithdrawalsCount
|
|
385
365
|
}
|
|
386
|
-
`,
|
|
366
|
+
`, Fe = o`
|
|
387
367
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
388
368
|
member {
|
|
389
369
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -412,7 +392,7 @@ const L = n`
|
|
|
412
392
|
}
|
|
413
393
|
}
|
|
414
394
|
}
|
|
415
|
-
`,
|
|
395
|
+
`, Le = o`
|
|
416
396
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
417
397
|
createGCashDeposit(input: $input) {
|
|
418
398
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -441,7 +421,7 @@ const L = n`
|
|
|
441
421
|
}
|
|
442
422
|
}
|
|
443
423
|
}
|
|
444
|
-
`,
|
|
424
|
+
`, Ve = o`
|
|
445
425
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
446
426
|
createMayaDeposit(input: $input) {
|
|
447
427
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -470,7 +450,7 @@ const L = n`
|
|
|
470
450
|
}
|
|
471
451
|
}
|
|
472
452
|
}
|
|
473
|
-
`,
|
|
453
|
+
`, Ye = o`
|
|
474
454
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
475
455
|
createMayaAppDeposit(input: $input) {
|
|
476
456
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -499,36 +479,7 @@ const L = n`
|
|
|
499
479
|
}
|
|
500
480
|
}
|
|
501
481
|
}
|
|
502
|
-
`,
|
|
503
|
-
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
504
|
-
createMayaAppDeposit: createMayaAppDeposit_next(input: $input) {
|
|
505
|
-
... on DepositPromoMaximumAmountExceededError {
|
|
506
|
-
__typename
|
|
507
|
-
}
|
|
508
|
-
... on DepositPromoMinimumAmountNotMetError {
|
|
509
|
-
__typename
|
|
510
|
-
}
|
|
511
|
-
... on HasActiveBonusError {
|
|
512
|
-
__typename
|
|
513
|
-
}
|
|
514
|
-
... on MaximumDepositAmountExceededError {
|
|
515
|
-
__typename
|
|
516
|
-
}
|
|
517
|
-
... on MinimumDepositAmountNotMetError {
|
|
518
|
-
__typename
|
|
519
|
-
}
|
|
520
|
-
... on MinimumFirstDepositAmountNotMetError {
|
|
521
|
-
__typename
|
|
522
|
-
}
|
|
523
|
-
... on PromoNotEnabledError {
|
|
524
|
-
__typename
|
|
525
|
-
}
|
|
526
|
-
... on WalletDoesNotExistError {
|
|
527
|
-
__typename
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
`, Qe = n`
|
|
482
|
+
`, He = o`
|
|
532
483
|
query Deposit($id: ObjectId!) {
|
|
533
484
|
node(id: $id) {
|
|
534
485
|
... on GCashDeposit {
|
|
@@ -560,13 +511,13 @@ const L = n`
|
|
|
560
511
|
}
|
|
561
512
|
}
|
|
562
513
|
}
|
|
563
|
-
`,
|
|
514
|
+
`, je = o`
|
|
564
515
|
query DepositsCount {
|
|
565
516
|
member {
|
|
566
517
|
depositsCount
|
|
567
518
|
}
|
|
568
519
|
}
|
|
569
|
-
`,
|
|
520
|
+
`, Qe = o`
|
|
570
521
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
571
522
|
member {
|
|
572
523
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -607,7 +558,7 @@ const L = n`
|
|
|
607
558
|
}
|
|
608
559
|
}
|
|
609
560
|
}
|
|
610
|
-
`,
|
|
561
|
+
`, Ke = o`
|
|
611
562
|
query LatestBetRecords {
|
|
612
563
|
latestBetRecords {
|
|
613
564
|
id
|
|
@@ -627,7 +578,7 @@ const L = n`
|
|
|
627
578
|
dateTimeCreated
|
|
628
579
|
}
|
|
629
580
|
}
|
|
630
|
-
`,
|
|
581
|
+
`, Je = o`
|
|
631
582
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
632
583
|
member {
|
|
633
584
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -653,7 +604,7 @@ const L = n`
|
|
|
653
604
|
}
|
|
654
605
|
}
|
|
655
606
|
}
|
|
656
|
-
`, H =
|
|
607
|
+
`, H = o`
|
|
657
608
|
${L}
|
|
658
609
|
|
|
659
610
|
fragment PromoFragment on Promo {
|
|
@@ -672,7 +623,7 @@ const L = n`
|
|
|
672
623
|
dateTimeCreated
|
|
673
624
|
dateTimeLastUpdated
|
|
674
625
|
}
|
|
675
|
-
`,
|
|
626
|
+
`, ze = o`
|
|
676
627
|
${H}
|
|
677
628
|
|
|
678
629
|
query Promos {
|
|
@@ -680,7 +631,7 @@ const L = n`
|
|
|
680
631
|
...PromoFragment
|
|
681
632
|
}
|
|
682
633
|
}
|
|
683
|
-
`,
|
|
634
|
+
`, Xe = o`
|
|
684
635
|
${H}
|
|
685
636
|
|
|
686
637
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -688,7 +639,7 @@ const L = n`
|
|
|
688
639
|
...PromoFragment
|
|
689
640
|
}
|
|
690
641
|
}
|
|
691
|
-
`,
|
|
642
|
+
`, Ae = o`
|
|
692
643
|
${L}
|
|
693
644
|
|
|
694
645
|
fragment CashbackFragment on Cashback {
|
|
@@ -705,15 +656,15 @@ const L = n`
|
|
|
705
656
|
dateTimeCreated
|
|
706
657
|
dateTimeLastUpdated
|
|
707
658
|
}
|
|
708
|
-
`,
|
|
709
|
-
${
|
|
659
|
+
`, Ze = o`
|
|
660
|
+
${Ae}
|
|
710
661
|
|
|
711
662
|
query Cashbacks {
|
|
712
663
|
cashbacks {
|
|
713
664
|
...CashbackFragment
|
|
714
665
|
}
|
|
715
666
|
}
|
|
716
|
-
`,
|
|
667
|
+
`, et = o`
|
|
717
668
|
${H}
|
|
718
669
|
|
|
719
670
|
query Bonus {
|
|
@@ -742,8 +693,8 @@ const L = n`
|
|
|
742
693
|
dateTimeLastUpdated
|
|
743
694
|
}
|
|
744
695
|
}
|
|
745
|
-
`,
|
|
746
|
-
${
|
|
696
|
+
`, tt = o`
|
|
697
|
+
${Ae}
|
|
747
698
|
|
|
748
699
|
query CashbackBonuses {
|
|
749
700
|
cashbackBonuses {
|
|
@@ -756,7 +707,7 @@ const L = n`
|
|
|
756
707
|
dateTimeLastUpdated
|
|
757
708
|
}
|
|
758
709
|
}
|
|
759
|
-
`,
|
|
710
|
+
`, rt = o`
|
|
760
711
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
761
712
|
claimCashbackBonus(input: $input) {
|
|
762
713
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -764,13 +715,13 @@ const L = n`
|
|
|
764
715
|
}
|
|
765
716
|
}
|
|
766
717
|
}
|
|
767
|
-
`,
|
|
718
|
+
`, at = o`
|
|
768
719
|
query Member {
|
|
769
720
|
member {
|
|
770
721
|
dateTimeLastActive
|
|
771
722
|
}
|
|
772
723
|
}
|
|
773
|
-
`,
|
|
724
|
+
`, nt = o`
|
|
774
725
|
query MemberAccount {
|
|
775
726
|
memberAccount: self {
|
|
776
727
|
... on MemberAccount {
|
|
@@ -794,7 +745,7 @@ const L = n`
|
|
|
794
745
|
}
|
|
795
746
|
}
|
|
796
747
|
}
|
|
797
|
-
`,
|
|
748
|
+
`, ot = o`
|
|
798
749
|
${L}
|
|
799
750
|
|
|
800
751
|
query MemberVerification {
|
|
@@ -818,7 +769,7 @@ const L = n`
|
|
|
818
769
|
}
|
|
819
770
|
}
|
|
820
771
|
}
|
|
821
|
-
`,
|
|
772
|
+
`, it = o`
|
|
822
773
|
mutation RegisterMemberAccount(
|
|
823
774
|
$input: RegisterMemberAccountInput!
|
|
824
775
|
$referralCode: String
|
|
@@ -854,7 +805,7 @@ const L = n`
|
|
|
854
805
|
}
|
|
855
806
|
}
|
|
856
807
|
}
|
|
857
|
-
`,
|
|
808
|
+
`, st = o`
|
|
858
809
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
859
810
|
registerMayaMemberAccount(input: $input) {
|
|
860
811
|
... on AccountNameNotAvailableError {
|
|
@@ -862,7 +813,7 @@ const L = n`
|
|
|
862
813
|
}
|
|
863
814
|
}
|
|
864
815
|
}
|
|
865
|
-
`,
|
|
816
|
+
`, ct = o`
|
|
866
817
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
867
818
|
updateMemberAccount(input: $input) {
|
|
868
819
|
... on AccountNameNotAvailableError {
|
|
@@ -888,7 +839,7 @@ const L = n`
|
|
|
888
839
|
}
|
|
889
840
|
}
|
|
890
841
|
}
|
|
891
|
-
`,
|
|
842
|
+
`, mt = o`
|
|
892
843
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
893
844
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
894
845
|
... on AccountNotFoundError {
|
|
@@ -899,11 +850,11 @@ const L = n`
|
|
|
899
850
|
}
|
|
900
851
|
}
|
|
901
852
|
}
|
|
902
|
-
`,
|
|
853
|
+
`, dt = o`
|
|
903
854
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
904
855
|
deleteMemberAccount(input: $input)
|
|
905
856
|
}
|
|
906
|
-
`,
|
|
857
|
+
`, ut = o`
|
|
907
858
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
908
859
|
verifyMobileNumber(input: $input) {
|
|
909
860
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -914,7 +865,7 @@ const L = n`
|
|
|
914
865
|
}
|
|
915
866
|
}
|
|
916
867
|
}
|
|
917
|
-
`,
|
|
868
|
+
`, lt = o`
|
|
918
869
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
919
870
|
createMemberVerification(input: $input) {
|
|
920
871
|
... on FileDoesNotExistError {
|
|
@@ -928,7 +879,7 @@ const L = n`
|
|
|
928
879
|
}
|
|
929
880
|
}
|
|
930
881
|
}
|
|
931
|
-
`,
|
|
882
|
+
`, pt = o`
|
|
932
883
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
933
884
|
updateMemberVerification(input: $input) {
|
|
934
885
|
... on FileDoesNotExistError {
|
|
@@ -945,7 +896,7 @@ const L = n`
|
|
|
945
896
|
}
|
|
946
897
|
}
|
|
947
898
|
}
|
|
948
|
-
`,
|
|
899
|
+
`, ft = o`
|
|
949
900
|
query ProfileCompletion {
|
|
950
901
|
profileCompletion {
|
|
951
902
|
completionPercentage
|
|
@@ -956,7 +907,7 @@ const L = n`
|
|
|
956
907
|
accountPassword
|
|
957
908
|
}
|
|
958
909
|
}
|
|
959
|
-
`,
|
|
910
|
+
`, ht = o`
|
|
960
911
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
961
912
|
sendVerificationCode(input: $input) {
|
|
962
913
|
... on InvalidPlatformError {
|
|
@@ -967,7 +918,7 @@ const L = n`
|
|
|
967
918
|
}
|
|
968
919
|
}
|
|
969
920
|
}
|
|
970
|
-
`,
|
|
921
|
+
`, yt = o`
|
|
971
922
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
972
923
|
minimumAmount
|
|
973
924
|
maximumAmount
|
|
@@ -1021,7 +972,7 @@ const L = n`
|
|
|
1021
972
|
multiplier
|
|
1022
973
|
}
|
|
1023
974
|
}
|
|
1024
|
-
`,
|
|
975
|
+
`, wt = o`
|
|
1025
976
|
query MayaSession($id: ObjectId!) {
|
|
1026
977
|
mayaSession(id: $id) {
|
|
1027
978
|
id
|
|
@@ -1029,11 +980,11 @@ const L = n`
|
|
|
1029
980
|
dateTimeCreated
|
|
1030
981
|
}
|
|
1031
982
|
}
|
|
1032
|
-
`,
|
|
983
|
+
`, gt = o`
|
|
1033
984
|
mutation ValidateMayaSession {
|
|
1034
985
|
validateMayaSession: validMayaSession
|
|
1035
986
|
}
|
|
1036
|
-
`,
|
|
987
|
+
`, St = o`
|
|
1037
988
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1038
989
|
member {
|
|
1039
990
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1058,11 +1009,11 @@ const L = n`
|
|
|
1058
1009
|
}
|
|
1059
1010
|
}
|
|
1060
1011
|
}
|
|
1061
|
-
`,
|
|
1012
|
+
`, Et = o`
|
|
1062
1013
|
query ReferralCode {
|
|
1063
1014
|
referralCode
|
|
1064
1015
|
}
|
|
1065
|
-
`,
|
|
1016
|
+
`, bt = o`
|
|
1066
1017
|
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1067
1018
|
updateReferralCode(input: $input) {
|
|
1068
1019
|
... on ReferralCodeNotAvailableError {
|
|
@@ -1071,9 +1022,9 @@ const L = n`
|
|
|
1071
1022
|
}
|
|
1072
1023
|
}
|
|
1073
1024
|
`;
|
|
1074
|
-
function
|
|
1025
|
+
function u(n) {
|
|
1075
1026
|
return {
|
|
1076
|
-
name:
|
|
1027
|
+
name: n,
|
|
1077
1028
|
message: {
|
|
1078
1029
|
AccountNameNotAvailableError: "Username is no longer available",
|
|
1079
1030
|
AccountNotFoundError: "Account does not exist",
|
|
@@ -1123,42 +1074,42 @@ function d(o) {
|
|
|
1123
1074
|
InvalidToken: "Invalid token",
|
|
1124
1075
|
InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
|
|
1125
1076
|
SessionExpired: "Session expired"
|
|
1126
|
-
}[
|
|
1077
|
+
}[n]
|
|
1127
1078
|
};
|
|
1128
1079
|
}
|
|
1129
|
-
class
|
|
1080
|
+
class At {
|
|
1130
1081
|
constructor(e) {
|
|
1131
1082
|
m(this, "client");
|
|
1132
1083
|
this.client = e;
|
|
1133
1084
|
}
|
|
1134
1085
|
/** aka `Query.self` */
|
|
1135
1086
|
async memberAccount() {
|
|
1136
|
-
const e = await this.client.request(
|
|
1087
|
+
const e = await this.client.request(nt);
|
|
1137
1088
|
return e.ok ? {
|
|
1138
1089
|
ok: !0,
|
|
1139
1090
|
data: e.data.memberAccount
|
|
1140
1091
|
} : e;
|
|
1141
1092
|
}
|
|
1142
1093
|
async registerMemberAccount(e) {
|
|
1143
|
-
const t = await this.client.request(
|
|
1094
|
+
const t = await this.client.request(it, e);
|
|
1144
1095
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1145
1096
|
ok: !1,
|
|
1146
|
-
error:
|
|
1097
|
+
error: u(t.data.registerMemberAccount.__typename)
|
|
1147
1098
|
} : {
|
|
1148
1099
|
ok: !0
|
|
1149
1100
|
} : t;
|
|
1150
1101
|
}
|
|
1151
1102
|
async updateMemberAccount(e) {
|
|
1152
|
-
const t = await this.client.request(
|
|
1103
|
+
const t = await this.client.request(ct, e);
|
|
1153
1104
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1154
1105
|
ok: !1,
|
|
1155
|
-
error:
|
|
1106
|
+
error: u(t.data.updateMemberAccount.__typename)
|
|
1156
1107
|
} : {
|
|
1157
1108
|
ok: !0
|
|
1158
1109
|
} : t;
|
|
1159
1110
|
}
|
|
1160
1111
|
async deleteMemberAccount(e) {
|
|
1161
|
-
const t = await this.client.request(
|
|
1112
|
+
const t = await this.client.request(dt, e);
|
|
1162
1113
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1163
1114
|
ok: !0
|
|
1164
1115
|
} : {
|
|
@@ -1171,61 +1122,61 @@ class _t {
|
|
|
1171
1122
|
}
|
|
1172
1123
|
async resetPassword(e) {
|
|
1173
1124
|
const t = await this.client.request(
|
|
1174
|
-
|
|
1125
|
+
mt,
|
|
1175
1126
|
e
|
|
1176
1127
|
);
|
|
1177
1128
|
return t.ok ? t.data.resetPassword ? {
|
|
1178
1129
|
ok: !1,
|
|
1179
|
-
error:
|
|
1130
|
+
error: u(t.data.resetPassword.__typename)
|
|
1180
1131
|
} : {
|
|
1181
1132
|
ok: !0
|
|
1182
1133
|
} : t;
|
|
1183
1134
|
}
|
|
1184
1135
|
async profileCompletion() {
|
|
1185
|
-
const e = await this.client.request(
|
|
1136
|
+
const e = await this.client.request(ft);
|
|
1186
1137
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1187
1138
|
}
|
|
1188
1139
|
async platform() {
|
|
1189
|
-
return await this.client.request(
|
|
1140
|
+
return await this.client.request(yt);
|
|
1190
1141
|
}
|
|
1191
1142
|
async sendVerificationCode(e) {
|
|
1192
|
-
const t = await this.client.request(
|
|
1143
|
+
const t = await this.client.request(ht, e);
|
|
1193
1144
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1194
1145
|
ok: !1,
|
|
1195
|
-
error:
|
|
1146
|
+
error: u(t.data.sendVerificationCode.__typename)
|
|
1196
1147
|
} : {
|
|
1197
1148
|
ok: !0
|
|
1198
1149
|
} : t;
|
|
1199
1150
|
}
|
|
1200
1151
|
async verifyMobileNumber(e) {
|
|
1201
|
-
const t = await this.client.request(
|
|
1152
|
+
const t = await this.client.request(ut, e);
|
|
1202
1153
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1203
1154
|
ok: !1,
|
|
1204
|
-
error:
|
|
1155
|
+
error: u(t.data.verifyMobileNumber.__typename)
|
|
1205
1156
|
} : {
|
|
1206
1157
|
ok: !0
|
|
1207
1158
|
} : t;
|
|
1208
1159
|
}
|
|
1209
1160
|
async createMemberVerification(e) {
|
|
1210
|
-
const t = await this.client.request(
|
|
1161
|
+
const t = await this.client.request(lt, e);
|
|
1211
1162
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1212
1163
|
ok: !1,
|
|
1213
|
-
error:
|
|
1164
|
+
error: u(t.data.createMemberVerification.__typename)
|
|
1214
1165
|
} : {
|
|
1215
1166
|
ok: !0
|
|
1216
1167
|
} : t;
|
|
1217
1168
|
}
|
|
1218
1169
|
async updateMemberVerification(e) {
|
|
1219
|
-
const t = await this.client.request(
|
|
1170
|
+
const t = await this.client.request(pt, e);
|
|
1220
1171
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1221
1172
|
ok: !1,
|
|
1222
|
-
error:
|
|
1173
|
+
error: u(t.data.updateMemberVerification.__typename)
|
|
1223
1174
|
} : {
|
|
1224
1175
|
ok: !0
|
|
1225
1176
|
} : t;
|
|
1226
1177
|
}
|
|
1227
1178
|
async memberVerification() {
|
|
1228
|
-
const e = await this.client.request(
|
|
1179
|
+
const e = await this.client.request(ot);
|
|
1229
1180
|
return e.ok ? {
|
|
1230
1181
|
ok: !0,
|
|
1231
1182
|
data: e.data.memberAccount.verification
|
|
@@ -1233,7 +1184,7 @@ class _t {
|
|
|
1233
1184
|
}
|
|
1234
1185
|
async announcements(e) {
|
|
1235
1186
|
const t = await this.client.request(
|
|
1236
|
-
|
|
1187
|
+
xe,
|
|
1237
1188
|
e
|
|
1238
1189
|
);
|
|
1239
1190
|
return t.ok ? {
|
|
@@ -1242,36 +1193,36 @@ class _t {
|
|
|
1242
1193
|
} : t;
|
|
1243
1194
|
}
|
|
1244
1195
|
async registerMayaMemberAccount(e) {
|
|
1245
|
-
const t = await this.client.request(
|
|
1196
|
+
const t = await this.client.request(st, e);
|
|
1246
1197
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1247
1198
|
ok: !1,
|
|
1248
|
-
error:
|
|
1199
|
+
error: u(t.data.registerMayaMemberAccount.__typename)
|
|
1249
1200
|
} : {
|
|
1250
1201
|
ok: !0
|
|
1251
1202
|
} : t;
|
|
1252
1203
|
}
|
|
1253
1204
|
async referralCode() {
|
|
1254
|
-
const e = await this.client.request(
|
|
1205
|
+
const e = await this.client.request(Et);
|
|
1255
1206
|
return e.ok ? {
|
|
1256
1207
|
ok: !0,
|
|
1257
1208
|
data: e.data.referralCode
|
|
1258
1209
|
} : e;
|
|
1259
1210
|
}
|
|
1260
1211
|
async updateReferralCode(e) {
|
|
1261
|
-
const t = await this.client.request(
|
|
1212
|
+
const t = await this.client.request(bt, e);
|
|
1262
1213
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1263
1214
|
ok: !1,
|
|
1264
|
-
error:
|
|
1215
|
+
error: u(t.data.updateReferralCode.__typename)
|
|
1265
1216
|
} : {
|
|
1266
1217
|
ok: !0
|
|
1267
1218
|
} : t;
|
|
1268
1219
|
}
|
|
1269
1220
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1221
|
+
function $(n) {
|
|
1222
|
+
return n.startsWith("+63") ? n : n.startsWith("63") ? `+${n}` : n.startsWith("0") ? `+63${n.substring(1)}` : `+63${n}`;
|
|
1272
1223
|
}
|
|
1273
|
-
function h(
|
|
1274
|
-
const t = V[
|
|
1224
|
+
function h(n, e) {
|
|
1225
|
+
const t = V[n] ? V[n] : V[500];
|
|
1275
1226
|
return {
|
|
1276
1227
|
name: t.name,
|
|
1277
1228
|
message: e ?? t.message
|
|
@@ -1286,7 +1237,7 @@ const V = {
|
|
|
1286
1237
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1287
1238
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1288
1239
|
};
|
|
1289
|
-
class
|
|
1240
|
+
class kt {
|
|
1290
1241
|
constructor(e) {
|
|
1291
1242
|
m(this, "url");
|
|
1292
1243
|
m(this, "platform");
|
|
@@ -1317,7 +1268,7 @@ class Ct {
|
|
|
1317
1268
|
data: a
|
|
1318
1269
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1319
1270
|
ok: !1,
|
|
1320
|
-
error:
|
|
1271
|
+
error: u("AccountBlacklisted")
|
|
1321
1272
|
} : {
|
|
1322
1273
|
ok: !1,
|
|
1323
1274
|
error: h(r.status)
|
|
@@ -1350,7 +1301,7 @@ class Ct {
|
|
|
1350
1301
|
data: a
|
|
1351
1302
|
} : r.status === 401 || r.status === 403 ? {
|
|
1352
1303
|
ok: !1,
|
|
1353
|
-
error:
|
|
1304
|
+
error: u("InvalidTokenOrSecretAnswer")
|
|
1354
1305
|
} : {
|
|
1355
1306
|
ok: !1,
|
|
1356
1307
|
error: h(r.status)
|
|
@@ -1380,10 +1331,10 @@ class Ct {
|
|
|
1380
1331
|
data: r
|
|
1381
1332
|
} : r.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1382
1333
|
ok: !1,
|
|
1383
|
-
error:
|
|
1334
|
+
error: u("AccountBlacklisted")
|
|
1384
1335
|
} : t.status === 403 || t.status === 401 ? {
|
|
1385
1336
|
ok: !1,
|
|
1386
|
-
error:
|
|
1337
|
+
error: u("InvalidToken")
|
|
1387
1338
|
} : {
|
|
1388
1339
|
ok: !1,
|
|
1389
1340
|
error: h(t.status)
|
|
@@ -1427,7 +1378,7 @@ class Ct {
|
|
|
1427
1378
|
}
|
|
1428
1379
|
}
|
|
1429
1380
|
async sendVerificationCode(e) {
|
|
1430
|
-
const t =
|
|
1381
|
+
const t = $(e);
|
|
1431
1382
|
try {
|
|
1432
1383
|
const r = await fetch(`${this.url}/sendVerificationCode`, {
|
|
1433
1384
|
method: "POST",
|
|
@@ -1453,7 +1404,7 @@ class Ct {
|
|
|
1453
1404
|
}
|
|
1454
1405
|
}
|
|
1455
1406
|
}
|
|
1456
|
-
class
|
|
1407
|
+
class Ct {
|
|
1457
1408
|
constructor(e) {
|
|
1458
1409
|
m(this, "url");
|
|
1459
1410
|
m(this, "siteId");
|
|
@@ -1468,22 +1419,22 @@ class Tt {
|
|
|
1468
1419
|
} : e;
|
|
1469
1420
|
}
|
|
1470
1421
|
async games(e) {
|
|
1471
|
-
var a, s, c,
|
|
1422
|
+
var a, s, c, d, l, f, y, p, _, T, v, M, N, g, I, R, k, D, P, G, C, x, U, O;
|
|
1472
1423
|
const t = new URLSearchParams();
|
|
1473
|
-
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), (
|
|
1424
|
+
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), (d = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && d.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (p = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (M = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.provider) != null && M.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (g = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && g.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (R = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && R.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (D = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.tags) != null && D.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (G = (P = e == null ? void 0 : e.filter) == null ? void 0 : P.tags) != null && G.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (x = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && x.in && t.set(
|
|
1474
1425
|
"filter[tags][in]",
|
|
1475
|
-
e.filter.tags.in.map((
|
|
1426
|
+
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1476
1427
|
), (O = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.tags) != null && O.notIn && t.set(
|
|
1477
1428
|
"filter[tags][nin]",
|
|
1478
|
-
e.filter.tags.notIn.map((
|
|
1429
|
+
e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
|
|
1479
1430
|
);
|
|
1480
1431
|
const r = await this.getJson("/games", t);
|
|
1481
1432
|
return r.ok ? {
|
|
1482
1433
|
ok: !0,
|
|
1483
1434
|
data: {
|
|
1484
|
-
edges: r.data.data.map((
|
|
1485
|
-
node:
|
|
1486
|
-
cursor:
|
|
1435
|
+
edges: r.data.data.map((E) => ({
|
|
1436
|
+
node: E,
|
|
1437
|
+
cursor: E.cursor
|
|
1487
1438
|
})),
|
|
1488
1439
|
totalCount: r.data.totalCount ?? 0,
|
|
1489
1440
|
pageInfo: {
|
|
@@ -1531,7 +1482,7 @@ class Tt {
|
|
|
1531
1482
|
}
|
|
1532
1483
|
}
|
|
1533
1484
|
}
|
|
1534
|
-
class
|
|
1485
|
+
class _t {
|
|
1535
1486
|
constructor(e) {
|
|
1536
1487
|
m(this, "client");
|
|
1537
1488
|
this.client = e;
|
|
@@ -1547,13 +1498,13 @@ class vt {
|
|
|
1547
1498
|
const t = await this.client.upload(Me, e);
|
|
1548
1499
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1549
1500
|
ok: !1,
|
|
1550
|
-
error:
|
|
1501
|
+
error: u(t.data.uploadPrivateImageFile.__typename)
|
|
1551
1502
|
} : {
|
|
1552
1503
|
ok: !0
|
|
1553
1504
|
} : t;
|
|
1554
1505
|
}
|
|
1555
1506
|
}
|
|
1556
|
-
class
|
|
1507
|
+
class Tt {
|
|
1557
1508
|
constructor(e) {
|
|
1558
1509
|
m(this, "client");
|
|
1559
1510
|
this.client = e;
|
|
@@ -1566,101 +1517,101 @@ class Mt {
|
|
|
1566
1517
|
/** @deprecated */
|
|
1567
1518
|
async gamesByName(e) {
|
|
1568
1519
|
const t = await this.client.request(
|
|
1569
|
-
|
|
1520
|
+
Se,
|
|
1570
1521
|
e
|
|
1571
1522
|
);
|
|
1572
1523
|
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1573
1524
|
}
|
|
1574
1525
|
async gameSession(e) {
|
|
1575
1526
|
const t = await this.client.request(
|
|
1576
|
-
|
|
1527
|
+
Ee,
|
|
1577
1528
|
e
|
|
1578
1529
|
);
|
|
1579
1530
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1580
1531
|
}
|
|
1581
1532
|
async createGameSession(e) {
|
|
1582
|
-
const t = await this.client.request(
|
|
1533
|
+
const t = await this.client.request(be, e);
|
|
1583
1534
|
return t.ok ? t.data.createGameSession ? {
|
|
1584
1535
|
ok: !1,
|
|
1585
|
-
error:
|
|
1536
|
+
error: u(t.data.createGameSession.__typename)
|
|
1586
1537
|
} : {
|
|
1587
1538
|
ok: !0
|
|
1588
1539
|
} : t;
|
|
1589
1540
|
}
|
|
1590
1541
|
async endGameSession(e) {
|
|
1591
|
-
const t = await this.client.request(
|
|
1542
|
+
const t = await this.client.request(Ge, e);
|
|
1592
1543
|
return t.ok ? t.data.endGameSession ? {
|
|
1593
1544
|
ok: !1,
|
|
1594
|
-
error:
|
|
1545
|
+
error: u(t.data.endGameSession.__typename)
|
|
1595
1546
|
} : {
|
|
1596
1547
|
ok: !0
|
|
1597
1548
|
} : t;
|
|
1598
1549
|
}
|
|
1599
1550
|
}
|
|
1600
|
-
class
|
|
1551
|
+
class vt {
|
|
1601
1552
|
constructor(e) {
|
|
1602
1553
|
m(this, "client");
|
|
1603
1554
|
this.client = e;
|
|
1604
1555
|
}
|
|
1605
1556
|
async latestBetRecords() {
|
|
1606
|
-
const e = await this.client.request(
|
|
1557
|
+
const e = await this.client.request(Ke);
|
|
1607
1558
|
return e.ok ? {
|
|
1608
1559
|
ok: !0,
|
|
1609
1560
|
data: e.data.latestBetRecords
|
|
1610
1561
|
} : e;
|
|
1611
1562
|
}
|
|
1612
1563
|
}
|
|
1613
|
-
class
|
|
1564
|
+
class Mt {
|
|
1614
1565
|
constructor(e) {
|
|
1615
1566
|
m(this, "client");
|
|
1616
1567
|
this.client = e;
|
|
1617
1568
|
}
|
|
1618
1569
|
async betRecords(e) {
|
|
1619
1570
|
const t = await this.client.request(
|
|
1620
|
-
|
|
1571
|
+
Qe,
|
|
1621
1572
|
e
|
|
1622
1573
|
);
|
|
1623
1574
|
return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
|
|
1624
1575
|
}
|
|
1625
1576
|
async transactionRecords(e) {
|
|
1626
|
-
const t = await this.client.request(
|
|
1577
|
+
const t = await this.client.request(Je, e);
|
|
1627
1578
|
return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
|
|
1628
1579
|
}
|
|
1629
1580
|
async withdrawalRecords(e) {
|
|
1630
1581
|
const t = await this.client.request(
|
|
1631
|
-
|
|
1582
|
+
$e,
|
|
1632
1583
|
e
|
|
1633
1584
|
);
|
|
1634
1585
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
1635
1586
|
}
|
|
1636
1587
|
async depositRecords(e) {
|
|
1637
1588
|
const t = await this.client.request(
|
|
1638
|
-
|
|
1589
|
+
Fe,
|
|
1639
1590
|
e
|
|
1640
1591
|
);
|
|
1641
1592
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
1642
1593
|
}
|
|
1643
1594
|
async depositsCount() {
|
|
1644
|
-
const e = await this.client.request(
|
|
1595
|
+
const e = await this.client.request(je);
|
|
1645
1596
|
return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
|
|
1646
1597
|
}
|
|
1647
1598
|
async member() {
|
|
1648
|
-
const e = await this.client.request(
|
|
1599
|
+
const e = await this.client.request(at);
|
|
1649
1600
|
return e.ok ? { ok: e.ok, data: e.data.member } : e;
|
|
1650
1601
|
}
|
|
1651
1602
|
async pointsWalletTransactions(e) {
|
|
1652
|
-
const t = await this.client.request(
|
|
1603
|
+
const t = await this.client.request(De, e);
|
|
1653
1604
|
return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
|
|
1654
1605
|
}
|
|
1655
1606
|
async activityRecords(e) {
|
|
1656
1607
|
const t = await this.client.request(
|
|
1657
|
-
|
|
1608
|
+
St,
|
|
1658
1609
|
e
|
|
1659
1610
|
);
|
|
1660
1611
|
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
1661
1612
|
}
|
|
1662
1613
|
}
|
|
1663
|
-
class
|
|
1614
|
+
class Nt {
|
|
1664
1615
|
constructor(e) {
|
|
1665
1616
|
m(this, "url");
|
|
1666
1617
|
this.url = e.url;
|
|
@@ -1672,35 +1623,35 @@ class Dt {
|
|
|
1672
1623
|
];
|
|
1673
1624
|
}
|
|
1674
1625
|
}
|
|
1675
|
-
class
|
|
1626
|
+
class It {
|
|
1676
1627
|
constructor(e) {
|
|
1677
1628
|
m(this, "client");
|
|
1678
1629
|
this.client = e;
|
|
1679
1630
|
}
|
|
1680
1631
|
async promos() {
|
|
1681
|
-
const e = await this.client.request(
|
|
1632
|
+
const e = await this.client.request(ze);
|
|
1682
1633
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1683
1634
|
}
|
|
1684
1635
|
async cashbacks() {
|
|
1685
|
-
const e = await this.client.request(
|
|
1636
|
+
const e = await this.client.request(Ze);
|
|
1686
1637
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1687
1638
|
}
|
|
1688
1639
|
async availablePromos(e) {
|
|
1689
1640
|
const t = await this.client.request(
|
|
1690
|
-
|
|
1641
|
+
Xe,
|
|
1691
1642
|
e
|
|
1692
1643
|
);
|
|
1693
1644
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1694
1645
|
}
|
|
1695
1646
|
async cashbackBonuses() {
|
|
1696
|
-
const e = await this.client.request(
|
|
1647
|
+
const e = await this.client.request(tt);
|
|
1697
1648
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1698
1649
|
}
|
|
1699
1650
|
async claimCashbackBonus(e) {
|
|
1700
|
-
const t = await this.client.request(
|
|
1651
|
+
const t = await this.client.request(rt, e);
|
|
1701
1652
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1702
1653
|
ok: !1,
|
|
1703
|
-
error:
|
|
1654
|
+
error: u(t.data.claimCashbackBonus.__typename)
|
|
1704
1655
|
} : {
|
|
1705
1656
|
ok: !0
|
|
1706
1657
|
} : {
|
|
@@ -1709,7 +1660,7 @@ class Rt {
|
|
|
1709
1660
|
};
|
|
1710
1661
|
}
|
|
1711
1662
|
async bonus() {
|
|
1712
|
-
const e = await this.client.request(
|
|
1663
|
+
const e = await this.client.request(et);
|
|
1713
1664
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1714
1665
|
}
|
|
1715
1666
|
async wallet() {
|
|
@@ -1718,52 +1669,43 @@ class Rt {
|
|
|
1718
1669
|
}
|
|
1719
1670
|
async deposit(e) {
|
|
1720
1671
|
const t = await this.client.request(
|
|
1721
|
-
|
|
1672
|
+
He,
|
|
1722
1673
|
e
|
|
1723
1674
|
);
|
|
1724
1675
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
1725
1676
|
}
|
|
1726
1677
|
async createGCashDeposit(e) {
|
|
1727
|
-
const t = await this.client.request(
|
|
1678
|
+
const t = await this.client.request(Le, e);
|
|
1728
1679
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1729
1680
|
ok: !1,
|
|
1730
|
-
error:
|
|
1681
|
+
error: u(t.data.createGCashDeposit.__typename)
|
|
1731
1682
|
} : {
|
|
1732
1683
|
ok: !0
|
|
1733
1684
|
} : t;
|
|
1734
1685
|
}
|
|
1735
1686
|
async createMayaDeposit(e) {
|
|
1736
|
-
const t = await this.client.request(
|
|
1687
|
+
const t = await this.client.request(Ve, e);
|
|
1737
1688
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1738
1689
|
ok: !1,
|
|
1739
|
-
error:
|
|
1690
|
+
error: u(t.data.createMayaDeposit.__typename)
|
|
1740
1691
|
} : {
|
|
1741
1692
|
ok: !0
|
|
1742
1693
|
} : t;
|
|
1743
1694
|
}
|
|
1744
1695
|
async createMayaAppDeposit(e) {
|
|
1745
|
-
const t = await this.client.request(
|
|
1746
|
-
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1747
|
-
ok: !1,
|
|
1748
|
-
error: d(t.data.createMayaAppDeposit.__typename)
|
|
1749
|
-
} : {
|
|
1750
|
-
ok: !0
|
|
1751
|
-
} : t;
|
|
1752
|
-
}
|
|
1753
|
-
async createMayaAppDeposit__next(e) {
|
|
1754
|
-
const t = await this.client.request(je, e);
|
|
1696
|
+
const t = await this.client.request(Ye, e);
|
|
1755
1697
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1756
1698
|
ok: !1,
|
|
1757
|
-
error:
|
|
1699
|
+
error: u(t.data.createMayaAppDeposit.__typename)
|
|
1758
1700
|
} : {
|
|
1759
1701
|
ok: !0
|
|
1760
1702
|
} : t;
|
|
1761
1703
|
}
|
|
1762
1704
|
async createGCashWithdrawal(e) {
|
|
1763
|
-
const t = await this.client.request(
|
|
1705
|
+
const t = await this.client.request(We, e);
|
|
1764
1706
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1765
1707
|
ok: !1,
|
|
1766
|
-
error:
|
|
1708
|
+
error: u(t.data.createGCashWithdrawal.__typename)
|
|
1767
1709
|
} : {
|
|
1768
1710
|
ok: !0
|
|
1769
1711
|
} : t;
|
|
@@ -1772,7 +1714,7 @@ class Rt {
|
|
|
1772
1714
|
const t = await this.client.request(Ue, e);
|
|
1773
1715
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1774
1716
|
ok: !1,
|
|
1775
|
-
error:
|
|
1717
|
+
error: u(t.data.createMayaWithdrawal.__typename)
|
|
1776
1718
|
} : {
|
|
1777
1719
|
ok: !0
|
|
1778
1720
|
} : t;
|
|
@@ -1781,32 +1723,23 @@ class Rt {
|
|
|
1781
1723
|
const t = await this.client.request(Oe, e);
|
|
1782
1724
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1783
1725
|
ok: !1,
|
|
1784
|
-
error:
|
|
1785
|
-
} : {
|
|
1786
|
-
ok: !0
|
|
1787
|
-
} : t;
|
|
1788
|
-
}
|
|
1789
|
-
async createMayaAppWithdrawal__next(e) {
|
|
1790
|
-
const t = await this.client.request(Be, e);
|
|
1791
|
-
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1792
|
-
ok: !1,
|
|
1793
|
-
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
1726
|
+
error: u(t.data.createMayaAppWithdrawal.__typename)
|
|
1794
1727
|
} : {
|
|
1795
1728
|
ok: !0
|
|
1796
1729
|
} : t;
|
|
1797
1730
|
}
|
|
1798
1731
|
async createBankWithdrawal(e) {
|
|
1799
|
-
const t = await this.client.request(
|
|
1732
|
+
const t = await this.client.request(Be, e);
|
|
1800
1733
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1801
1734
|
ok: !1,
|
|
1802
|
-
error:
|
|
1735
|
+
error: u(t.data.createBankWithdrawal.__typename)
|
|
1803
1736
|
} : {
|
|
1804
1737
|
ok: !0
|
|
1805
1738
|
} : t;
|
|
1806
1739
|
}
|
|
1807
1740
|
async remainingDailyWithdrawalsCount() {
|
|
1808
1741
|
const e = await this.client.request(
|
|
1809
|
-
|
|
1742
|
+
qe
|
|
1810
1743
|
);
|
|
1811
1744
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1812
1745
|
}
|
|
@@ -1815,17 +1748,17 @@ class Rt {
|
|
|
1815
1748
|
return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
|
|
1816
1749
|
}
|
|
1817
1750
|
async pointsToCashConversion(e) {
|
|
1818
|
-
const t = await this.client.request(
|
|
1751
|
+
const t = await this.client.request(Re, e);
|
|
1819
1752
|
return t.ok ? t.data.pointsToCashConversion ? {
|
|
1820
1753
|
ok: !1,
|
|
1821
|
-
error:
|
|
1754
|
+
error: u(t.data.pointsToCashConversion.__typename)
|
|
1822
1755
|
} : {
|
|
1823
1756
|
ok: !0
|
|
1824
1757
|
} : t;
|
|
1825
1758
|
}
|
|
1826
1759
|
async mayaSession(e) {
|
|
1827
1760
|
const t = await this.client.request(
|
|
1828
|
-
|
|
1761
|
+
wt,
|
|
1829
1762
|
e
|
|
1830
1763
|
);
|
|
1831
1764
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
@@ -1838,23 +1771,23 @@ class Rt {
|
|
|
1838
1771
|
/** @deprecated */
|
|
1839
1772
|
async gamesByName(e) {
|
|
1840
1773
|
const t = await this.client.request(
|
|
1841
|
-
|
|
1774
|
+
Se,
|
|
1842
1775
|
e
|
|
1843
1776
|
);
|
|
1844
1777
|
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1845
1778
|
}
|
|
1846
1779
|
async gameSession(e) {
|
|
1847
1780
|
const t = await this.client.request(
|
|
1848
|
-
|
|
1781
|
+
Ee,
|
|
1849
1782
|
e
|
|
1850
1783
|
);
|
|
1851
1784
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1852
1785
|
}
|
|
1853
1786
|
async createGameSession(e) {
|
|
1854
|
-
const t = await this.client.request(
|
|
1787
|
+
const t = await this.client.request(be, e);
|
|
1855
1788
|
return t.ok ? t.data.createGameSession ? {
|
|
1856
1789
|
ok: !1,
|
|
1857
|
-
error:
|
|
1790
|
+
error: u(t.data.createGameSession.__typename)
|
|
1858
1791
|
} : {
|
|
1859
1792
|
ok: !0
|
|
1860
1793
|
} : t;
|
|
@@ -1876,7 +1809,7 @@ class Rt {
|
|
|
1876
1809
|
}
|
|
1877
1810
|
async validateMayaSession() {
|
|
1878
1811
|
const e = await this.client.request(
|
|
1879
|
-
|
|
1812
|
+
gt
|
|
1880
1813
|
);
|
|
1881
1814
|
return e.ok ? e.data.validateMayaSession ? {
|
|
1882
1815
|
ok: !0
|
|
@@ -1889,29 +1822,29 @@ class Rt {
|
|
|
1889
1822
|
} : e;
|
|
1890
1823
|
}
|
|
1891
1824
|
}
|
|
1892
|
-
function
|
|
1893
|
-
return
|
|
1825
|
+
function Rt(n, e, t) {
|
|
1826
|
+
return n < e ? e : n > t ? t : n;
|
|
1894
1827
|
}
|
|
1895
|
-
function Y(
|
|
1896
|
-
return Object.prototype.toString.call(
|
|
1828
|
+
function Y(n) {
|
|
1829
|
+
return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
|
|
1897
1830
|
}
|
|
1898
|
-
function
|
|
1831
|
+
function Dt(n) {
|
|
1899
1832
|
const e = [];
|
|
1900
1833
|
function t(r, a = []) {
|
|
1901
1834
|
for (const s in r) {
|
|
1902
1835
|
const c = r[s];
|
|
1903
|
-
Y(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(
|
|
1836
|
+
Y(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Pt(c), [...a, s]) : e.push({
|
|
1904
1837
|
key: [...a, s],
|
|
1905
1838
|
value: c
|
|
1906
1839
|
});
|
|
1907
1840
|
}
|
|
1908
1841
|
}
|
|
1909
|
-
return t(
|
|
1842
|
+
return t(n), e;
|
|
1910
1843
|
}
|
|
1911
|
-
function
|
|
1912
|
-
return
|
|
1844
|
+
function Pt(n) {
|
|
1845
|
+
return n.reduce((e, t, r) => (e[r] = t, e), {});
|
|
1913
1846
|
}
|
|
1914
|
-
class
|
|
1847
|
+
class W {
|
|
1915
1848
|
constructor(e, t) {
|
|
1916
1849
|
m(this, "url");
|
|
1917
1850
|
m(this, "options");
|
|
@@ -1948,13 +1881,13 @@ class $ {
|
|
|
1948
1881
|
return await this.exec(s);
|
|
1949
1882
|
}
|
|
1950
1883
|
async exec(e) {
|
|
1951
|
-
var t, r, a, s, c,
|
|
1884
|
+
var t, r, a, s, c, d;
|
|
1952
1885
|
try {
|
|
1953
1886
|
const l = await fetch(e);
|
|
1954
1887
|
if (!l.ok)
|
|
1955
1888
|
return { ok: !1, error: h(l.status) };
|
|
1956
1889
|
const f = await l.json(), y = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
|
|
1957
|
-
return p ? ((r = p.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = p.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, p.message) } : ((c = p.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((
|
|
1890
|
+
return p ? ((r = p.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = p.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, p.message) } : ((c = p.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((d = p.extensions) == null ? void 0 : d.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, p.message) } : {
|
|
1958
1891
|
ok: !1,
|
|
1959
1892
|
error: h(500, p.message)
|
|
1960
1893
|
} : {
|
|
@@ -1975,7 +1908,7 @@ class $ {
|
|
|
1975
1908
|
return t;
|
|
1976
1909
|
}
|
|
1977
1910
|
createUploadBody(e, t) {
|
|
1978
|
-
const r =
|
|
1911
|
+
const r = Dt(t).filter(
|
|
1979
1912
|
(c) => c.value instanceof File || c.value instanceof Blob
|
|
1980
1913
|
), a = new FormData();
|
|
1981
1914
|
a.append(
|
|
@@ -1986,15 +1919,15 @@ class $ {
|
|
|
1986
1919
|
})
|
|
1987
1920
|
);
|
|
1988
1921
|
const s = {};
|
|
1989
|
-
return r.forEach((c,
|
|
1990
|
-
s[
|
|
1991
|
-
}), a.append("map", JSON.stringify(s)), r.forEach((c,
|
|
1992
|
-
a.append(
|
|
1922
|
+
return r.forEach((c, d) => {
|
|
1923
|
+
s[d.toString()] = [`variables.${c.key.join(".")}`];
|
|
1924
|
+
}), a.append("map", JSON.stringify(s)), r.forEach((c, d) => {
|
|
1925
|
+
a.append(d.toString(), c.value);
|
|
1993
1926
|
}), a;
|
|
1994
1927
|
}
|
|
1995
1928
|
}
|
|
1996
|
-
async function
|
|
1997
|
-
const e = new TextEncoder().encode(
|
|
1929
|
+
async function S(n) {
|
|
1930
|
+
const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
|
|
1998
1931
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
1999
1932
|
}
|
|
2000
1933
|
class ke {
|
|
@@ -2015,43 +1948,43 @@ class ke {
|
|
|
2015
1948
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
2016
1949
|
}
|
|
2017
1950
|
}
|
|
2018
|
-
function j(
|
|
2019
|
-
return new Date(
|
|
1951
|
+
function j(n) {
|
|
1952
|
+
return new Date(n.getTime());
|
|
2020
1953
|
}
|
|
2021
|
-
function B(
|
|
2022
|
-
const t = j(
|
|
1954
|
+
function B(n, e) {
|
|
1955
|
+
const t = j(n);
|
|
2023
1956
|
return t.setDate(t.getDate() + e), t;
|
|
2024
1957
|
}
|
|
2025
|
-
function q(
|
|
2026
|
-
const t = j(
|
|
1958
|
+
function q(n, e) {
|
|
1959
|
+
const t = j(n);
|
|
2027
1960
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2028
1961
|
}
|
|
2029
|
-
function ye(
|
|
2030
|
-
return
|
|
1962
|
+
function ye(n, e) {
|
|
1963
|
+
return n.getTime() > e.getTime();
|
|
2031
1964
|
}
|
|
2032
|
-
function
|
|
1965
|
+
function Ce(n) {
|
|
2033
1966
|
return new Promise((e) => {
|
|
2034
|
-
setTimeout(e,
|
|
1967
|
+
setTimeout(e, n);
|
|
2035
1968
|
});
|
|
2036
1969
|
}
|
|
2037
|
-
function we(
|
|
1970
|
+
function we(n, e) {
|
|
2038
1971
|
const {
|
|
2039
1972
|
until: t,
|
|
2040
1973
|
interval: r = 1e3,
|
|
2041
1974
|
maxAttempt: a = 3
|
|
2042
1975
|
/**/
|
|
2043
1976
|
} = e;
|
|
2044
|
-
async function s(c,
|
|
2045
|
-
const l =
|
|
2046
|
-
return t(f) ? f : l > 1 ? (await
|
|
1977
|
+
async function s(c, d) {
|
|
1978
|
+
const l = d ?? a, f = await n(...c);
|
|
1979
|
+
return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
|
|
2047
1980
|
}
|
|
2048
1981
|
return async (...c) => await s(c);
|
|
2049
1982
|
}
|
|
2050
|
-
function F(
|
|
2051
|
-
const t = j(
|
|
1983
|
+
function F(n, e) {
|
|
1984
|
+
const t = j(n);
|
|
2052
1985
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
2053
1986
|
}
|
|
2054
|
-
class
|
|
1987
|
+
class Gt {
|
|
2055
1988
|
constructor(e) {
|
|
2056
1989
|
m(this, "logger");
|
|
2057
1990
|
m(this, "storageKey", "session");
|
|
@@ -2177,7 +2110,7 @@ class Wt {
|
|
|
2177
2110
|
data: null
|
|
2178
2111
|
};
|
|
2179
2112
|
if (this.refreshing)
|
|
2180
|
-
return await
|
|
2113
|
+
return await Ce(1e3), await this.get();
|
|
2181
2114
|
const e = window.localStorage.getItem(this.storageKey);
|
|
2182
2115
|
if (!e)
|
|
2183
2116
|
return {
|
|
@@ -2250,17 +2183,17 @@ class Wt {
|
|
|
2250
2183
|
return typeof window > "u";
|
|
2251
2184
|
}
|
|
2252
2185
|
}
|
|
2253
|
-
function
|
|
2186
|
+
function w(n) {
|
|
2254
2187
|
const e = {};
|
|
2255
|
-
for (const t in
|
|
2256
|
-
const r =
|
|
2188
|
+
for (const t in n) {
|
|
2189
|
+
const r = n[t];
|
|
2257
2190
|
if (r !== null && r !== void 0) {
|
|
2258
2191
|
if (Y(r)) {
|
|
2259
|
-
e[t] =
|
|
2192
|
+
e[t] = w(r);
|
|
2260
2193
|
continue;
|
|
2261
2194
|
}
|
|
2262
2195
|
if (Array.isArray(r)) {
|
|
2263
|
-
e[t] = r.map((a) => Y(a) ?
|
|
2196
|
+
e[t] = r.map((a) => Y(a) ? w(a) : a);
|
|
2264
2197
|
continue;
|
|
2265
2198
|
}
|
|
2266
2199
|
e[t] = r;
|
|
@@ -2268,21 +2201,21 @@ function g(o) {
|
|
|
2268
2201
|
}
|
|
2269
2202
|
return e;
|
|
2270
2203
|
}
|
|
2271
|
-
function i(
|
|
2272
|
-
if (typeof
|
|
2273
|
-
return
|
|
2274
|
-
if (typeof
|
|
2275
|
-
const t = Number.parseFloat(
|
|
2204
|
+
function i(n, e) {
|
|
2205
|
+
if (typeof n == "number" && !Number.isNaN(n))
|
|
2206
|
+
return n;
|
|
2207
|
+
if (typeof n == "string") {
|
|
2208
|
+
const t = Number.parseFloat(n);
|
|
2276
2209
|
if (!Number.isNaN(t))
|
|
2277
2210
|
return t;
|
|
2278
2211
|
}
|
|
2279
2212
|
return e;
|
|
2280
2213
|
}
|
|
2281
|
-
class
|
|
2214
|
+
class xt {
|
|
2282
2215
|
constructor(e) {
|
|
2283
2216
|
m(this, "staticService");
|
|
2284
2217
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2285
|
-
this.staticService = new
|
|
2218
|
+
this.staticService = new Nt({
|
|
2286
2219
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2287
2220
|
});
|
|
2288
2221
|
}
|
|
@@ -2322,10 +2255,10 @@ class $t {
|
|
|
2322
2255
|
logo: e.logo ?? void 0,
|
|
2323
2256
|
fields: e.config.fields
|
|
2324
2257
|
};
|
|
2325
|
-
return
|
|
2258
|
+
return w(t);
|
|
2326
2259
|
}
|
|
2327
2260
|
platform(e) {
|
|
2328
|
-
var t, r, a, s, c,
|
|
2261
|
+
var t, r, a, s, c, d, l, f, y, p, _, T, v, M, N, g, I, R, k, D, P, G, C, x, U, O, E, Q, K, J, z, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, de, ue, le, pe, fe, he;
|
|
2329
2262
|
return {
|
|
2330
2263
|
paymentSettings: {
|
|
2331
2264
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
@@ -2337,38 +2270,38 @@ class $t {
|
|
|
2337
2270
|
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
2338
2271
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2339
2272
|
minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
|
|
2340
|
-
maximumAmount: i((
|
|
2273
|
+
maximumAmount: i((d = e.bankDepositGatewaySettings) == null ? void 0 : d.maximumAmount)
|
|
2341
2274
|
},
|
|
2342
2275
|
gcash: {
|
|
2343
2276
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
2344
2277
|
iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
|
|
2345
2278
|
webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
|
|
2346
2279
|
mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
|
|
2347
|
-
minimumAmount: i((
|
|
2280
|
+
minimumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
|
|
2348
2281
|
maximumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.maximumAmount)
|
|
2349
2282
|
},
|
|
2350
2283
|
maya: {
|
|
2351
2284
|
androidEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.androidEnabled) ?? !1,
|
|
2352
2285
|
iosEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.iosEnabled) ?? !1,
|
|
2353
2286
|
webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
|
|
2354
|
-
mobileWebEnabled: ((
|
|
2287
|
+
mobileWebEnabled: ((g = e.mayaDepositGatewaySettings) == null ? void 0 : g.mobileWebEnabled) ?? !1,
|
|
2355
2288
|
minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
|
|
2356
|
-
maximumAmount: i((
|
|
2289
|
+
maximumAmount: i((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
|
|
2357
2290
|
},
|
|
2358
2291
|
mayaApp: {
|
|
2359
2292
|
androidEnabled: ((k = e.mayaAppDepositGatewaySettings) == null ? void 0 : k.androidEnabled) ?? !1,
|
|
2360
|
-
iosEnabled: ((
|
|
2293
|
+
iosEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.iosEnabled) ?? !1,
|
|
2361
2294
|
webEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.webEnabled) ?? !1,
|
|
2362
|
-
mobileWebEnabled: ((
|
|
2363
|
-
minimumAmount: i((
|
|
2364
|
-
maximumAmount: i((
|
|
2295
|
+
mobileWebEnabled: ((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.mobileWebEnabled) ?? !1,
|
|
2296
|
+
minimumAmount: i((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
|
|
2297
|
+
maximumAmount: i((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.maximumAmount)
|
|
2365
2298
|
}
|
|
2366
2299
|
},
|
|
2367
2300
|
withdrawalGateway: {
|
|
2368
2301
|
bank: {
|
|
2369
2302
|
androidEnabled: ((U = e.bankWithdrawalGatewaySettings) == null ? void 0 : U.androidEnabled) ?? !1,
|
|
2370
2303
|
iosEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
2371
|
-
webEnabled: ((
|
|
2304
|
+
webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
|
|
2372
2305
|
mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
|
|
2373
2306
|
minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
|
|
2374
2307
|
maximumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
|
|
@@ -2386,8 +2319,8 @@ class $t {
|
|
|
2386
2319
|
},
|
|
2387
2320
|
maya: {
|
|
2388
2321
|
androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
|
|
2389
|
-
iosEnabled: ((
|
|
2390
|
-
webEnabled: ((
|
|
2322
|
+
iosEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.iosEnabled) ?? !1,
|
|
2323
|
+
webEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
|
|
2391
2324
|
mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
|
|
2392
2325
|
minimumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
|
|
2393
2326
|
maximumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
|
|
@@ -2431,7 +2364,7 @@ class $t {
|
|
|
2431
2364
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2432
2365
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2433
2366
|
};
|
|
2434
|
-
return
|
|
2367
|
+
return w(t);
|
|
2435
2368
|
}
|
|
2436
2369
|
wallet(e) {
|
|
2437
2370
|
return {
|
|
@@ -2494,7 +2427,7 @@ class $t {
|
|
|
2494
2427
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2495
2428
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2496
2429
|
};
|
|
2497
|
-
return
|
|
2430
|
+
return w(t);
|
|
2498
2431
|
}
|
|
2499
2432
|
deposit(e) {
|
|
2500
2433
|
const t = {
|
|
@@ -2503,7 +2436,7 @@ class $t {
|
|
|
2503
2436
|
status: e.status,
|
|
2504
2437
|
checkoutUrl: e.checkoutUrl ?? void 0
|
|
2505
2438
|
};
|
|
2506
|
-
return
|
|
2439
|
+
return w(t);
|
|
2507
2440
|
}
|
|
2508
2441
|
depositRecord(e) {
|
|
2509
2442
|
const t = {
|
|
@@ -2518,7 +2451,7 @@ class $t {
|
|
|
2518
2451
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2519
2452
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2520
2453
|
};
|
|
2521
|
-
return
|
|
2454
|
+
return w(t);
|
|
2522
2455
|
}
|
|
2523
2456
|
betRecord(e) {
|
|
2524
2457
|
var r;
|
|
@@ -2549,7 +2482,7 @@ class $t {
|
|
|
2549
2482
|
odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
|
|
2550
2483
|
}
|
|
2551
2484
|
};
|
|
2552
|
-
return
|
|
2485
|
+
return w(t);
|
|
2553
2486
|
}
|
|
2554
2487
|
latestBetRecord(e) {
|
|
2555
2488
|
return {
|
|
@@ -2578,7 +2511,7 @@ class $t {
|
|
|
2578
2511
|
referenceNumber: e.referenceNumber,
|
|
2579
2512
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2580
2513
|
};
|
|
2581
|
-
return
|
|
2514
|
+
return w(t);
|
|
2582
2515
|
}
|
|
2583
2516
|
/**
|
|
2584
2517
|
* @deprecated
|
|
@@ -2612,7 +2545,7 @@ class $t {
|
|
|
2612
2545
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2613
2546
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2614
2547
|
};
|
|
2615
|
-
return
|
|
2548
|
+
return w(t);
|
|
2616
2549
|
}
|
|
2617
2550
|
promo(e) {
|
|
2618
2551
|
return {
|
|
@@ -2675,7 +2608,7 @@ class $t {
|
|
|
2675
2608
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2676
2609
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2677
2610
|
};
|
|
2678
|
-
return
|
|
2611
|
+
return w(t);
|
|
2679
2612
|
}
|
|
2680
2613
|
cashbackBonus(e) {
|
|
2681
2614
|
return {
|
|
@@ -2693,7 +2626,7 @@ class $t {
|
|
|
2693
2626
|
status: e.status,
|
|
2694
2627
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2695
2628
|
};
|
|
2696
|
-
return
|
|
2629
|
+
return w(t);
|
|
2697
2630
|
}
|
|
2698
2631
|
pointsWallet(e) {
|
|
2699
2632
|
return {
|
|
@@ -2721,10 +2654,10 @@ class $t {
|
|
|
2721
2654
|
details: e.details,
|
|
2722
2655
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2723
2656
|
};
|
|
2724
|
-
return
|
|
2657
|
+
return w(t);
|
|
2725
2658
|
}
|
|
2726
2659
|
}
|
|
2727
|
-
class
|
|
2660
|
+
class Bt {
|
|
2728
2661
|
constructor(e) {
|
|
2729
2662
|
m(this, "cmsPortalService");
|
|
2730
2663
|
m(this, "authService");
|
|
@@ -2744,17 +2677,17 @@ class Ft {
|
|
|
2744
2677
|
platform: a,
|
|
2745
2678
|
environment: s,
|
|
2746
2679
|
logs: c
|
|
2747
|
-
} = e,
|
|
2748
|
-
this.transformer = new
|
|
2680
|
+
} = e, d = s === "production";
|
|
2681
|
+
this.transformer = new xt({
|
|
2749
2682
|
environment: s
|
|
2750
2683
|
}), this.logger = new ke({
|
|
2751
2684
|
enabled: c ?? !1
|
|
2752
2685
|
});
|
|
2753
|
-
const l =
|
|
2686
|
+
const l = d ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = d ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", y = d ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = d ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", _ = d ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", T = d ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", v = d ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", M = d ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1", N = new Ct({
|
|
2754
2687
|
url: M,
|
|
2755
2688
|
site: t,
|
|
2756
2689
|
platform: r
|
|
2757
|
-
}),
|
|
2690
|
+
}), g = {
|
|
2758
2691
|
middlewares: [this.authMiddleware],
|
|
2759
2692
|
fetchOptions: {
|
|
2760
2693
|
headers: {
|
|
@@ -2762,15 +2695,15 @@ class Ft {
|
|
|
2762
2695
|
"Platform-Code": a
|
|
2763
2696
|
}
|
|
2764
2697
|
}
|
|
2765
|
-
}, I = new
|
|
2698
|
+
}, I = new Tt(new W(v, g)), R = new _t(new W(T, g)), k = new It(new W(f, g)), D = new At(new W(p, g)), P = new Mt(new W(y, g)), G = new vt(new W(_, g)), C = new kt({
|
|
2766
2699
|
url: l,
|
|
2767
2700
|
platform: a
|
|
2768
|
-
}),
|
|
2701
|
+
}), x = new Gt({
|
|
2769
2702
|
logs: c,
|
|
2770
|
-
authService:
|
|
2703
|
+
authService: C,
|
|
2771
2704
|
walletService: k
|
|
2772
2705
|
});
|
|
2773
|
-
this.authService =
|
|
2706
|
+
this.authService = C, this.gameService = I, this.fileService = R, this.walletService = k, this.accountService = D, this.reportService = P, this.portalService = G, this.sessionManager = x, this.cmsPortalService = N;
|
|
2774
2707
|
}
|
|
2775
2708
|
get authMiddleware() {
|
|
2776
2709
|
return async (e) => {
|
|
@@ -2784,7 +2717,7 @@ class Ft {
|
|
|
2784
2717
|
case "NAME_AND_PASSWORD": {
|
|
2785
2718
|
const t = await this.sessionManager.create({
|
|
2786
2719
|
...e,
|
|
2787
|
-
password: await
|
|
2720
|
+
password: await S(e.password)
|
|
2788
2721
|
});
|
|
2789
2722
|
return t.ok ? t.data ? {
|
|
2790
2723
|
ok: !0,
|
|
@@ -2847,7 +2780,7 @@ class Ft {
|
|
|
2847
2780
|
return await this.sessionManager.createFromAuthenticator({
|
|
2848
2781
|
type: "SECURITY_QUESTION",
|
|
2849
2782
|
token: e.token,
|
|
2850
|
-
secretAnswer: await
|
|
2783
|
+
secretAnswer: await S(e.secretAnswer)
|
|
2851
2784
|
});
|
|
2852
2785
|
default:
|
|
2853
2786
|
return {
|
|
@@ -2887,7 +2820,7 @@ class Ft {
|
|
|
2887
2820
|
* ```
|
|
2888
2821
|
*/
|
|
2889
2822
|
watchSession(e) {
|
|
2890
|
-
const t =
|
|
2823
|
+
const t = Rt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2891
2824
|
let r = null;
|
|
2892
2825
|
const a = () => setTimeout(async () => {
|
|
2893
2826
|
await this.sessionManager.verify() || await e.onInvalid(), r = a();
|
|
@@ -2973,15 +2906,15 @@ class Ft {
|
|
|
2973
2906
|
* ```
|
|
2974
2907
|
*/
|
|
2975
2908
|
async createAccount(e) {
|
|
2976
|
-
const t = e.id ??
|
|
2909
|
+
const t = e.id ?? b.generate(A.Account).toString(), r = await this.accountService.registerMemberAccount({
|
|
2977
2910
|
input: {
|
|
2978
2911
|
id: t,
|
|
2979
2912
|
btag: e.btag,
|
|
2980
2913
|
name: e.name,
|
|
2981
2914
|
domain: e.domain,
|
|
2982
2915
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2983
|
-
password: await
|
|
2984
|
-
mobileNumber:
|
|
2916
|
+
password: await S(e.password),
|
|
2917
|
+
mobileNumber: $(e.mobileNumber)
|
|
2985
2918
|
},
|
|
2986
2919
|
referralCode: e.referralCode,
|
|
2987
2920
|
verificationCode: e.verificationCode,
|
|
@@ -2993,7 +2926,7 @@ class Ft {
|
|
|
2993
2926
|
return await this.accountService.registerMayaMemberAccount({
|
|
2994
2927
|
input: {
|
|
2995
2928
|
name: e.name,
|
|
2996
|
-
password: await
|
|
2929
|
+
password: await S(e.password),
|
|
2997
2930
|
domain: e.domain
|
|
2998
2931
|
}
|
|
2999
2932
|
});
|
|
@@ -3019,12 +2952,12 @@ class Ft {
|
|
|
3019
2952
|
id: e,
|
|
3020
2953
|
data: {
|
|
3021
2954
|
...t,
|
|
3022
|
-
password: t.password ? await
|
|
3023
|
-
transactionPassword: t.transactionPassword ? await
|
|
2955
|
+
password: t.password ? await S(t.password) : void 0,
|
|
2956
|
+
transactionPassword: t.transactionPassword ? await S(t.transactionPassword) : void 0,
|
|
3024
2957
|
...t.mobileNumber && {
|
|
3025
|
-
mobileNumber:
|
|
2958
|
+
mobileNumber: $(t.mobileNumber)
|
|
3026
2959
|
},
|
|
3027
|
-
secretAnswer: t.secretAnswer ? await
|
|
2960
|
+
secretAnswer: t.secretAnswer ? await S(t.secretAnswer) : void 0
|
|
3028
2961
|
}
|
|
3029
2962
|
}
|
|
3030
2963
|
});
|
|
@@ -3065,7 +2998,7 @@ class Ft {
|
|
|
3065
2998
|
* ```
|
|
3066
2999
|
*/
|
|
3067
3000
|
async submitVerificationDetails(e) {
|
|
3068
|
-
const t = e.id ??
|
|
3001
|
+
const t = e.id ?? b.generate(A.Verification).toString(), r = await this.accountService.createMemberVerification({
|
|
3069
3002
|
input: {
|
|
3070
3003
|
id: t,
|
|
3071
3004
|
...e
|
|
@@ -3101,8 +3034,8 @@ class Ft {
|
|
|
3101
3034
|
async resetPassword(e) {
|
|
3102
3035
|
return await this.accountService.resetPassword({
|
|
3103
3036
|
input: {
|
|
3104
|
-
mobileNumber:
|
|
3105
|
-
newPassword: await
|
|
3037
|
+
mobileNumber: $(e.mobileNumber),
|
|
3038
|
+
newPassword: await S(e.newPassword)
|
|
3106
3039
|
},
|
|
3107
3040
|
verificationCode: e.verificationCode
|
|
3108
3041
|
});
|
|
@@ -3125,7 +3058,7 @@ class Ft {
|
|
|
3125
3058
|
return await this.accountService.sendVerificationCode({
|
|
3126
3059
|
input: {
|
|
3127
3060
|
channel: "SMS",
|
|
3128
|
-
recipient:
|
|
3061
|
+
recipient: $(e)
|
|
3129
3062
|
}
|
|
3130
3063
|
});
|
|
3131
3064
|
}
|
|
@@ -3189,13 +3122,13 @@ class Ft {
|
|
|
3189
3122
|
* ```
|
|
3190
3123
|
*/
|
|
3191
3124
|
async createWithdrawal(e) {
|
|
3192
|
-
const t = e.id ??
|
|
3125
|
+
const t = e.id ?? b.generate(A.Withdrawal).toString();
|
|
3193
3126
|
if (e.type === "BANK") {
|
|
3194
3127
|
const r = await this.walletService.createBankWithdrawal({
|
|
3195
3128
|
input: {
|
|
3196
3129
|
id: t,
|
|
3197
3130
|
amount: e.amount.toString(),
|
|
3198
|
-
transactionPassword: await
|
|
3131
|
+
transactionPassword: await S(e.transactionPassword)
|
|
3199
3132
|
}
|
|
3200
3133
|
});
|
|
3201
3134
|
if (!r.ok) return r;
|
|
@@ -3205,8 +3138,8 @@ class Ft {
|
|
|
3205
3138
|
input: {
|
|
3206
3139
|
id: t,
|
|
3207
3140
|
amount: e.amount.toString(),
|
|
3208
|
-
transactionPassword: await
|
|
3209
|
-
recipientMobileNumber:
|
|
3141
|
+
transactionPassword: await S(e.transactionPassword),
|
|
3142
|
+
recipientMobileNumber: $(e.recipientMobileNumber)
|
|
3210
3143
|
}
|
|
3211
3144
|
});
|
|
3212
3145
|
if (!r.ok) return r;
|
|
@@ -3216,8 +3149,8 @@ class Ft {
|
|
|
3216
3149
|
input: {
|
|
3217
3150
|
id: t,
|
|
3218
3151
|
amount: e.amount.toString(),
|
|
3219
|
-
transactionPassword: await
|
|
3220
|
-
recipientMobileNumber:
|
|
3152
|
+
transactionPassword: await S(e.transactionPassword),
|
|
3153
|
+
recipientMobileNumber: $(e.recipientMobileNumber)
|
|
3221
3154
|
}
|
|
3222
3155
|
});
|
|
3223
3156
|
if (!r.ok) return r;
|
|
@@ -3227,17 +3160,7 @@ class Ft {
|
|
|
3227
3160
|
input: {
|
|
3228
3161
|
id: t,
|
|
3229
3162
|
amount: e.amount.toString(),
|
|
3230
|
-
transactionPassword: await
|
|
3231
|
-
}
|
|
3232
|
-
});
|
|
3233
|
-
if (!r.ok) return r;
|
|
3234
|
-
}
|
|
3235
|
-
if (e.type === "MAYA_APP [NEXT]") {
|
|
3236
|
-
const r = await this.walletService.createMayaAppWithdrawal__next({
|
|
3237
|
-
input: {
|
|
3238
|
-
id: t,
|
|
3239
|
-
amount: e.amount.toString(),
|
|
3240
|
-
transactionPassword: await w(e.transactionPassword)
|
|
3163
|
+
transactionPassword: await S(e.transactionPassword)
|
|
3241
3164
|
}
|
|
3242
3165
|
});
|
|
3243
3166
|
if (!r.ok) return r;
|
|
@@ -3285,7 +3208,7 @@ class Ft {
|
|
|
3285
3208
|
* ```
|
|
3286
3209
|
*/
|
|
3287
3210
|
async createDeposit(e) {
|
|
3288
|
-
const t = e.id ??
|
|
3211
|
+
const t = e.id ?? b.generate(A.Deposit).toString();
|
|
3289
3212
|
if (e.type === "MAYA") {
|
|
3290
3213
|
const r = await this.walletService.createMayaDeposit({
|
|
3291
3214
|
input: {
|
|
@@ -3306,16 +3229,6 @@ class Ft {
|
|
|
3306
3229
|
});
|
|
3307
3230
|
if (!r.ok) return r;
|
|
3308
3231
|
}
|
|
3309
|
-
if (e.type === "MAYA_APP [NEXT]") {
|
|
3310
|
-
const r = await this.walletService.createMayaAppDeposit__next({
|
|
3311
|
-
input: {
|
|
3312
|
-
id: t,
|
|
3313
|
-
amount: e.amount.toString(),
|
|
3314
|
-
promo: e.promo
|
|
3315
|
-
}
|
|
3316
|
-
});
|
|
3317
|
-
if (!r.ok) return r;
|
|
3318
|
-
}
|
|
3319
3232
|
if (e.type === "GCASH") {
|
|
3320
3233
|
const r = await this.walletService.createGCashDeposit({
|
|
3321
3234
|
input: {
|
|
@@ -3581,23 +3494,23 @@ class Ft {
|
|
|
3581
3494
|
* ```
|
|
3582
3495
|
*/
|
|
3583
3496
|
async createGameSession(e) {
|
|
3584
|
-
const t = e.id ??
|
|
3497
|
+
const t = e.id ?? b.generate(A.GameSession).toString(), r = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
|
|
3585
3498
|
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3586
3499
|
}
|
|
3587
3500
|
/** @deprecated use `createGameSession__next` */
|
|
3588
3501
|
async createGameSession__legacy(e) {
|
|
3589
|
-
const t = e.id ??
|
|
3502
|
+
const t = e.id ?? b.generate(A.GameSession).toString(), r = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
|
|
3590
3503
|
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3591
3504
|
}
|
|
3592
3505
|
async createGameSession__next(e) {
|
|
3593
|
-
const t = e.id ??
|
|
3506
|
+
const t = e.id ?? b.generate(A.GameSession).toString();
|
|
3594
3507
|
if (e.game.startsWith("SPORTS:")) {
|
|
3595
|
-
const
|
|
3508
|
+
const d = await b.generateFromKey(A.Game, e.game).then(
|
|
3596
3509
|
(f) => f.toString()
|
|
3597
3510
|
), l = await this.gameService.createGameSession({
|
|
3598
3511
|
input: {
|
|
3599
3512
|
id: t,
|
|
3600
|
-
game:
|
|
3513
|
+
game: d
|
|
3601
3514
|
}
|
|
3602
3515
|
});
|
|
3603
3516
|
return l.ok ? { ok: !0, data: { id: t } } : l;
|
|
@@ -3615,7 +3528,7 @@ class Ft {
|
|
|
3615
3528
|
/**/
|
|
3616
3529
|
provider: a,
|
|
3617
3530
|
reference: s
|
|
3618
|
-
} = r.data, c =
|
|
3531
|
+
} = r.data, c = Wt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
3619
3532
|
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
3620
3533
|
}
|
|
3621
3534
|
/** @deprecated use `endGameSession__next` */
|
|
@@ -3658,7 +3571,7 @@ class Ft {
|
|
|
3658
3571
|
* ```
|
|
3659
3572
|
*/
|
|
3660
3573
|
async uploadImageFile(e) {
|
|
3661
|
-
const t = e.id ??
|
|
3574
|
+
const t = e.id ?? b.generate(A.File).toString(), r = await this.fileService.uploadPrivateImageFile({
|
|
3662
3575
|
input: {
|
|
3663
3576
|
id: t,
|
|
3664
3577
|
file: e.file
|
|
@@ -3736,7 +3649,7 @@ class Ft {
|
|
|
3736
3649
|
return await this.accountService.updateReferralCode({ input: e });
|
|
3737
3650
|
}
|
|
3738
3651
|
}
|
|
3739
|
-
const
|
|
3652
|
+
const $t = [
|
|
3740
3653
|
/**/
|
|
3741
3654
|
"RTG",
|
|
3742
3655
|
"DARWIN",
|
|
@@ -3746,12 +3659,12 @@ const Ut = [
|
|
|
3746
3659
|
"EVOLUTION_NETENT",
|
|
3747
3660
|
"EVOLUTION_REDTIGER"
|
|
3748
3661
|
];
|
|
3749
|
-
function
|
|
3750
|
-
return
|
|
3662
|
+
function Wt(n) {
|
|
3663
|
+
return $t.some((e) => e === n);
|
|
3751
3664
|
}
|
|
3752
3665
|
export {
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3666
|
+
Lt as ObjectId,
|
|
3667
|
+
A as ObjectType,
|
|
3668
|
+
Bt as Sdk
|
|
3756
3669
|
};
|
|
3757
3670
|
//# sourceMappingURL=index.mjs.map
|