@opexa/portal-sdk 0.0.25 → 0.0.26
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 +76 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +316 -335
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +10 -2
- package/dist/services/queries.d.ts +2 -2
- package/dist/services/types.d.ts +12 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Te = Object.defineProperty;
|
|
2
|
-
var Ce = (
|
|
3
|
-
var
|
|
2
|
+
var Ce = (o, e, t) => e in o ? Te(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var m = (o, e, t) => Ce(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as E } from "@opexa/object-id";
|
|
5
|
-
import { ObjectId as
|
|
5
|
+
import { ObjectId as Gt } from "@opexa/object-id";
|
|
6
6
|
const S = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -13,23 +13,23 @@ const S = {
|
|
|
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 [a, r] of
|
|
18
|
+
for (const [a, r] of o.entries()) {
|
|
19
19
|
const s = e.at(a) ?? "";
|
|
20
20
|
t = `${t}${r}${s}`;
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const x = n`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
32
|
-
${
|
|
31
|
+
`, ve = n`
|
|
32
|
+
${x}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
35
35
|
node(id: $id) {
|
|
@@ -38,7 +38,7 @@ const V = o`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`, Ne = n`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const V = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`, Ie =
|
|
55
|
+
`, Ie = n`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const V = o`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`, Me =
|
|
65
|
+
`, Me = n`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const V = o`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`, De =
|
|
74
|
+
`, De = n`
|
|
75
75
|
mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
|
|
76
76
|
pointsToCashConversion(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,23 +79,17 @@ const V = o`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
83
|
-
fragment GameFragment on Game {
|
|
84
|
-
id
|
|
85
|
-
type
|
|
86
|
-
name
|
|
87
|
-
provider
|
|
88
|
-
}
|
|
89
|
-
`, ge = o`
|
|
90
|
-
${H}
|
|
91
|
-
|
|
82
|
+
`, ye = n`
|
|
92
83
|
query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
|
|
93
84
|
games(first: $first, after: $after, filter: $filter) {
|
|
94
85
|
edges {
|
|
95
86
|
cursor
|
|
96
87
|
node {
|
|
97
88
|
... on Game {
|
|
98
|
-
|
|
89
|
+
id
|
|
90
|
+
type
|
|
91
|
+
name
|
|
92
|
+
provider
|
|
99
93
|
}
|
|
100
94
|
}
|
|
101
95
|
}
|
|
@@ -106,20 +100,22 @@ const V = o`
|
|
|
106
100
|
}
|
|
107
101
|
}
|
|
108
102
|
}
|
|
109
|
-
`,
|
|
110
|
-
${H}
|
|
111
|
-
|
|
103
|
+
`, ge = n`
|
|
112
104
|
query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
|
|
113
105
|
gamesByName(first: $first, search: $search, filter: $filter) {
|
|
114
|
-
|
|
106
|
+
... on Game {
|
|
107
|
+
id
|
|
108
|
+
type
|
|
109
|
+
name
|
|
110
|
+
provider
|
|
111
|
+
}
|
|
115
112
|
}
|
|
116
113
|
}
|
|
117
|
-
`,
|
|
114
|
+
`, Ee = n`
|
|
118
115
|
query GameSession($id: ObjectId!) {
|
|
119
116
|
node(id: $id) {
|
|
120
117
|
... on GameSession {
|
|
121
118
|
id
|
|
122
|
-
game
|
|
123
119
|
status
|
|
124
120
|
launchUrl
|
|
125
121
|
dateTimeCreated
|
|
@@ -127,7 +123,7 @@ const V = o`
|
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
|
-
`, Se =
|
|
126
|
+
`, Se = n`
|
|
131
127
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
132
128
|
createGameSession(input: $input) {
|
|
133
129
|
... on GameDoesNotExistError {
|
|
@@ -135,26 +131,11 @@ const V = o`
|
|
|
135
131
|
}
|
|
136
132
|
}
|
|
137
133
|
}
|
|
138
|
-
`,
|
|
134
|
+
`, Re = n`
|
|
139
135
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
140
136
|
endGameSession(input: $input)
|
|
141
137
|
}
|
|
142
|
-
`,
|
|
143
|
-
query GameSession($id: ObjectId!) {
|
|
144
|
-
node(id: $id) {
|
|
145
|
-
... on GameSession {
|
|
146
|
-
id
|
|
147
|
-
game {
|
|
148
|
-
id
|
|
149
|
-
}
|
|
150
|
-
status
|
|
151
|
-
launchUrl
|
|
152
|
-
dateTimeCreated
|
|
153
|
-
dateTimeLastUpdated
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
`, Ge = o`
|
|
138
|
+
`, Pe = n`
|
|
158
139
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
159
140
|
endGameSession(input: $input) {
|
|
160
141
|
... on GameSessionDoesNotExistError {
|
|
@@ -168,7 +149,7 @@ const V = o`
|
|
|
168
149
|
}
|
|
169
150
|
}
|
|
170
151
|
}
|
|
171
|
-
`,
|
|
152
|
+
`, xe = n`
|
|
172
153
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
173
154
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
174
155
|
edges {
|
|
@@ -194,7 +175,7 @@ const V = o`
|
|
|
194
175
|
}
|
|
195
176
|
}
|
|
196
177
|
}
|
|
197
|
-
`,
|
|
178
|
+
`, Ge = n`
|
|
198
179
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
199
180
|
member {
|
|
200
181
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -261,7 +242,7 @@ const V = o`
|
|
|
261
242
|
}
|
|
262
243
|
}
|
|
263
244
|
}
|
|
264
|
-
`,
|
|
245
|
+
`, Oe = n`
|
|
265
246
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
266
247
|
createGCashWithdrawal(input: $input) {
|
|
267
248
|
... on AccountNotVerifiedError {
|
|
@@ -284,7 +265,7 @@ const V = o`
|
|
|
284
265
|
}
|
|
285
266
|
}
|
|
286
267
|
}
|
|
287
|
-
`,
|
|
268
|
+
`, Ue = n`
|
|
288
269
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
289
270
|
createMayaWithdrawal(input: $input) {
|
|
290
271
|
... on AccountNotVerifiedError {
|
|
@@ -307,7 +288,7 @@ const V = o`
|
|
|
307
288
|
}
|
|
308
289
|
}
|
|
309
290
|
}
|
|
310
|
-
`,
|
|
291
|
+
`, Be = n`
|
|
311
292
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
312
293
|
createMayaAppWithdrawal(input: $input) {
|
|
313
294
|
... on AccountNotVerifiedError {
|
|
@@ -327,7 +308,7 @@ const V = o`
|
|
|
327
308
|
}
|
|
328
309
|
}
|
|
329
310
|
}
|
|
330
|
-
`,
|
|
311
|
+
`, $e = n`
|
|
331
312
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
332
313
|
createBankWithdrawal(input: $input) {
|
|
333
314
|
... on MobileNumberNotVerifiedError {
|
|
@@ -350,11 +331,11 @@ const V = o`
|
|
|
350
331
|
}
|
|
351
332
|
}
|
|
352
333
|
}
|
|
353
|
-
`,
|
|
334
|
+
`, We = n`
|
|
354
335
|
query RemainingDailyWithdrawalsCount {
|
|
355
336
|
remainingDailyWithdrawalsCount
|
|
356
337
|
}
|
|
357
|
-
`,
|
|
338
|
+
`, qe = n`
|
|
358
339
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
359
340
|
member {
|
|
360
341
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -383,7 +364,7 @@ const V = o`
|
|
|
383
364
|
}
|
|
384
365
|
}
|
|
385
366
|
}
|
|
386
|
-
`,
|
|
367
|
+
`, Le = n`
|
|
387
368
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
388
369
|
createGCashDeposit(input: $input) {
|
|
389
370
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -412,7 +393,7 @@ const V = o`
|
|
|
412
393
|
}
|
|
413
394
|
}
|
|
414
395
|
}
|
|
415
|
-
`,
|
|
396
|
+
`, Ve = n`
|
|
416
397
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
417
398
|
createMayaDeposit(input: $input) {
|
|
418
399
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -441,7 +422,7 @@ const V = o`
|
|
|
441
422
|
}
|
|
442
423
|
}
|
|
443
424
|
}
|
|
444
|
-
`,
|
|
425
|
+
`, Fe = n`
|
|
445
426
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
446
427
|
createMayaAppDeposit(input: $input) {
|
|
447
428
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -470,7 +451,7 @@ const V = o`
|
|
|
470
451
|
}
|
|
471
452
|
}
|
|
472
453
|
}
|
|
473
|
-
`,
|
|
454
|
+
`, He = n`
|
|
474
455
|
query Deposit($id: ObjectId!) {
|
|
475
456
|
node(id: $id) {
|
|
476
457
|
... on GCashDeposit {
|
|
@@ -502,15 +483,13 @@ const V = o`
|
|
|
502
483
|
}
|
|
503
484
|
}
|
|
504
485
|
}
|
|
505
|
-
`,
|
|
486
|
+
`, Ye = n`
|
|
506
487
|
query DepositsCount {
|
|
507
488
|
member {
|
|
508
489
|
depositsCount
|
|
509
490
|
}
|
|
510
491
|
}
|
|
511
|
-
`,
|
|
512
|
-
${H}
|
|
513
|
-
|
|
492
|
+
`, je = n`
|
|
514
493
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
515
494
|
member {
|
|
516
495
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -522,7 +501,9 @@ const V = o`
|
|
|
522
501
|
id
|
|
523
502
|
serialCode
|
|
524
503
|
game {
|
|
525
|
-
|
|
504
|
+
name
|
|
505
|
+
type
|
|
506
|
+
provider
|
|
526
507
|
}
|
|
527
508
|
bet
|
|
528
509
|
payout
|
|
@@ -548,7 +529,7 @@ const V = o`
|
|
|
548
529
|
}
|
|
549
530
|
}
|
|
550
531
|
}
|
|
551
|
-
`,
|
|
532
|
+
`, Qe = n`
|
|
552
533
|
query LatestBetRecords {
|
|
553
534
|
latestBetRecords {
|
|
554
535
|
id
|
|
@@ -557,7 +538,9 @@ const V = o`
|
|
|
557
538
|
name
|
|
558
539
|
}
|
|
559
540
|
game {
|
|
560
|
-
|
|
541
|
+
name
|
|
542
|
+
type
|
|
543
|
+
provider
|
|
561
544
|
}
|
|
562
545
|
bet
|
|
563
546
|
payout
|
|
@@ -566,9 +549,7 @@ const V = o`
|
|
|
566
549
|
dateTimeCreated
|
|
567
550
|
}
|
|
568
551
|
}
|
|
569
|
-
|
|
570
|
-
${H}
|
|
571
|
-
`, Je = o`
|
|
552
|
+
`, Ke = n`
|
|
572
553
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
573
554
|
member {
|
|
574
555
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -594,8 +575,8 @@ const V = o`
|
|
|
594
575
|
}
|
|
595
576
|
}
|
|
596
577
|
}
|
|
597
|
-
`,
|
|
598
|
-
${
|
|
578
|
+
`, U = n`
|
|
579
|
+
${x}
|
|
599
580
|
|
|
600
581
|
fragment PromoFragment on Promo {
|
|
601
582
|
id
|
|
@@ -613,24 +594,24 @@ const V = o`
|
|
|
613
594
|
dateTimeCreated
|
|
614
595
|
dateTimeLastUpdated
|
|
615
596
|
}
|
|
616
|
-
`,
|
|
617
|
-
${
|
|
597
|
+
`, ze = n`
|
|
598
|
+
${U}
|
|
618
599
|
|
|
619
600
|
query Promos {
|
|
620
601
|
promos {
|
|
621
602
|
...PromoFragment
|
|
622
603
|
}
|
|
623
604
|
}
|
|
624
|
-
`,
|
|
625
|
-
${
|
|
605
|
+
`, Je = n`
|
|
606
|
+
${U}
|
|
626
607
|
|
|
627
608
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
628
609
|
availablePromos(filter: $filter) {
|
|
629
610
|
...PromoFragment
|
|
630
611
|
}
|
|
631
612
|
}
|
|
632
|
-
`,
|
|
633
|
-
${
|
|
613
|
+
`, be = n`
|
|
614
|
+
${x}
|
|
634
615
|
|
|
635
616
|
fragment CashbackFragment on Cashback {
|
|
636
617
|
id
|
|
@@ -645,16 +626,16 @@ const V = o`
|
|
|
645
626
|
dateTimeCreated
|
|
646
627
|
dateTimeLastUpdated
|
|
647
628
|
}
|
|
648
|
-
`,
|
|
649
|
-
${
|
|
629
|
+
`, Xe = n`
|
|
630
|
+
${be}
|
|
650
631
|
|
|
651
632
|
query Cashbacks {
|
|
652
633
|
cashbacks {
|
|
653
634
|
...CashbackFragment
|
|
654
635
|
}
|
|
655
636
|
}
|
|
656
|
-
`,
|
|
657
|
-
${
|
|
637
|
+
`, Ze = n`
|
|
638
|
+
${U}
|
|
658
639
|
|
|
659
640
|
query Bonus {
|
|
660
641
|
bonus {
|
|
@@ -682,8 +663,8 @@ const V = o`
|
|
|
682
663
|
dateTimeLastUpdated
|
|
683
664
|
}
|
|
684
665
|
}
|
|
685
|
-
`,
|
|
686
|
-
${
|
|
666
|
+
`, et = n`
|
|
667
|
+
${be}
|
|
687
668
|
|
|
688
669
|
query CashbackBonuses {
|
|
689
670
|
cashbackBonuses {
|
|
@@ -696,7 +677,7 @@ const V = o`
|
|
|
696
677
|
dateTimeLastUpdated
|
|
697
678
|
}
|
|
698
679
|
}
|
|
699
|
-
`,
|
|
680
|
+
`, tt = n`
|
|
700
681
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
701
682
|
claimCashbackBonus(input: $input) {
|
|
702
683
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -704,13 +685,13 @@ const V = o`
|
|
|
704
685
|
}
|
|
705
686
|
}
|
|
706
687
|
}
|
|
707
|
-
`,
|
|
688
|
+
`, at = n`
|
|
708
689
|
query Member {
|
|
709
690
|
member {
|
|
710
691
|
dateTimeLastActive
|
|
711
692
|
}
|
|
712
693
|
}
|
|
713
|
-
`,
|
|
694
|
+
`, rt = n`
|
|
714
695
|
query MemberAccount {
|
|
715
696
|
memberAccount: self {
|
|
716
697
|
... on MemberAccount {
|
|
@@ -734,8 +715,8 @@ const V = o`
|
|
|
734
715
|
}
|
|
735
716
|
}
|
|
736
717
|
}
|
|
737
|
-
`,
|
|
738
|
-
${
|
|
718
|
+
`, ot = n`
|
|
719
|
+
${x}
|
|
739
720
|
|
|
740
721
|
query MemberVerification {
|
|
741
722
|
memberAccount: self {
|
|
@@ -758,7 +739,7 @@ const V = o`
|
|
|
758
739
|
}
|
|
759
740
|
}
|
|
760
741
|
}
|
|
761
|
-
`,
|
|
742
|
+
`, nt = n`
|
|
762
743
|
mutation RegisterMemberAccount(
|
|
763
744
|
$input: RegisterMemberAccountInput!
|
|
764
745
|
$referralCode: String
|
|
@@ -794,7 +775,7 @@ const V = o`
|
|
|
794
775
|
}
|
|
795
776
|
}
|
|
796
777
|
}
|
|
797
|
-
`,
|
|
778
|
+
`, it = n`
|
|
798
779
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
799
780
|
updateMemberAccount(input: $input) {
|
|
800
781
|
... on AccountNameNotAvailableError {
|
|
@@ -820,7 +801,7 @@ const V = o`
|
|
|
820
801
|
}
|
|
821
802
|
}
|
|
822
803
|
}
|
|
823
|
-
`,
|
|
804
|
+
`, st = n`
|
|
824
805
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
825
806
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
826
807
|
... on AccountNotFoundError {
|
|
@@ -831,11 +812,11 @@ const V = o`
|
|
|
831
812
|
}
|
|
832
813
|
}
|
|
833
814
|
}
|
|
834
|
-
`,
|
|
815
|
+
`, ct = n`
|
|
835
816
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
836
817
|
deleteMemberAccount(input: $input)
|
|
837
818
|
}
|
|
838
|
-
`,
|
|
819
|
+
`, mt = n`
|
|
839
820
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
840
821
|
verifyMobileNumber(input: $input) {
|
|
841
822
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -846,7 +827,7 @@ const V = o`
|
|
|
846
827
|
}
|
|
847
828
|
}
|
|
848
829
|
}
|
|
849
|
-
`,
|
|
830
|
+
`, dt = n`
|
|
850
831
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
851
832
|
createMemberVerification(input: $input) {
|
|
852
833
|
... on FileDoesNotExistError {
|
|
@@ -860,7 +841,7 @@ const V = o`
|
|
|
860
841
|
}
|
|
861
842
|
}
|
|
862
843
|
}
|
|
863
|
-
`,
|
|
844
|
+
`, ut = n`
|
|
864
845
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
865
846
|
updateMemberVerification(input: $input) {
|
|
866
847
|
... on FileDoesNotExistError {
|
|
@@ -877,7 +858,7 @@ const V = o`
|
|
|
877
858
|
}
|
|
878
859
|
}
|
|
879
860
|
}
|
|
880
|
-
`,
|
|
861
|
+
`, lt = n`
|
|
881
862
|
query ProfileCompletion {
|
|
882
863
|
profileCompletion {
|
|
883
864
|
completionPercentage
|
|
@@ -888,7 +869,7 @@ const V = o`
|
|
|
888
869
|
accountPassword
|
|
889
870
|
}
|
|
890
871
|
}
|
|
891
|
-
`,
|
|
872
|
+
`, pt = n`
|
|
892
873
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
893
874
|
sendVerificationCode(input: $input) {
|
|
894
875
|
... on InvalidPlatformError {
|
|
@@ -899,7 +880,7 @@ const V = o`
|
|
|
899
880
|
}
|
|
900
881
|
}
|
|
901
882
|
}
|
|
902
|
-
`,
|
|
883
|
+
`, ft = n`
|
|
903
884
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
904
885
|
minimumAmount
|
|
905
886
|
maximumAmount
|
|
@@ -953,7 +934,7 @@ const V = o`
|
|
|
953
934
|
multiplier
|
|
954
935
|
}
|
|
955
936
|
}
|
|
956
|
-
`,
|
|
937
|
+
`, ht = n`
|
|
957
938
|
query MayaSession($id: ObjectId!) {
|
|
958
939
|
mayaSession(id: $id) {
|
|
959
940
|
id
|
|
@@ -962,9 +943,9 @@ const V = o`
|
|
|
962
943
|
}
|
|
963
944
|
}
|
|
964
945
|
`;
|
|
965
|
-
function d(
|
|
946
|
+
function d(o) {
|
|
966
947
|
return {
|
|
967
|
-
name:
|
|
948
|
+
name: o,
|
|
968
949
|
message: {
|
|
969
950
|
AccountNameNotAvailableError: "Username is no longer available",
|
|
970
951
|
AccountNotFoundError: "Account does not exist",
|
|
@@ -1013,24 +994,24 @@ function d(n) {
|
|
|
1013
994
|
InvalidToken: "Invalid token",
|
|
1014
995
|
InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
|
|
1015
996
|
SessionExpired: "Session expired"
|
|
1016
|
-
}[
|
|
997
|
+
}[o]
|
|
1017
998
|
};
|
|
1018
999
|
}
|
|
1019
|
-
class
|
|
1000
|
+
class wt {
|
|
1020
1001
|
constructor(e) {
|
|
1021
|
-
|
|
1002
|
+
m(this, "client");
|
|
1022
1003
|
this.client = e;
|
|
1023
1004
|
}
|
|
1024
1005
|
/** aka `Query.self` */
|
|
1025
1006
|
async memberAccount() {
|
|
1026
|
-
const e = await this.client.request(
|
|
1007
|
+
const e = await this.client.request(rt);
|
|
1027
1008
|
return e.ok ? {
|
|
1028
1009
|
ok: !0,
|
|
1029
1010
|
data: e.data.memberAccount
|
|
1030
1011
|
} : e;
|
|
1031
1012
|
}
|
|
1032
1013
|
async registerMemberAccount(e) {
|
|
1033
|
-
const t = await this.client.request(
|
|
1014
|
+
const t = await this.client.request(nt, e);
|
|
1034
1015
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1035
1016
|
ok: !1,
|
|
1036
1017
|
error: d(t.data.registerMemberAccount.__typename)
|
|
@@ -1039,7 +1020,7 @@ class gt {
|
|
|
1039
1020
|
} : t;
|
|
1040
1021
|
}
|
|
1041
1022
|
async updateMemberAccount(e) {
|
|
1042
|
-
const t = await this.client.request(
|
|
1023
|
+
const t = await this.client.request(it, e);
|
|
1043
1024
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1044
1025
|
ok: !1,
|
|
1045
1026
|
error: d(t.data.updateMemberAccount.__typename)
|
|
@@ -1048,7 +1029,7 @@ class gt {
|
|
|
1048
1029
|
} : t;
|
|
1049
1030
|
}
|
|
1050
1031
|
async deleteMemberAccount(e) {
|
|
1051
|
-
const t = await this.client.request(
|
|
1032
|
+
const t = await this.client.request(ct, e);
|
|
1052
1033
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1053
1034
|
ok: !0
|
|
1054
1035
|
} : {
|
|
@@ -1061,7 +1042,7 @@ class gt {
|
|
|
1061
1042
|
}
|
|
1062
1043
|
async resetPassword(e) {
|
|
1063
1044
|
const t = await this.client.request(
|
|
1064
|
-
|
|
1045
|
+
st,
|
|
1065
1046
|
e
|
|
1066
1047
|
);
|
|
1067
1048
|
return t.ok ? t.data.resetPassword ? {
|
|
@@ -1072,14 +1053,14 @@ class gt {
|
|
|
1072
1053
|
} : t;
|
|
1073
1054
|
}
|
|
1074
1055
|
async profileCompletion() {
|
|
1075
|
-
const e = await this.client.request(
|
|
1056
|
+
const e = await this.client.request(lt);
|
|
1076
1057
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1077
1058
|
}
|
|
1078
1059
|
async platform() {
|
|
1079
|
-
return await this.client.request(
|
|
1060
|
+
return await this.client.request(ft);
|
|
1080
1061
|
}
|
|
1081
1062
|
async sendVerificationCode(e) {
|
|
1082
|
-
const t = await this.client.request(
|
|
1063
|
+
const t = await this.client.request(pt, e);
|
|
1083
1064
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1084
1065
|
ok: !1,
|
|
1085
1066
|
error: d(t.data.sendVerificationCode.__typename)
|
|
@@ -1088,7 +1069,7 @@ class gt {
|
|
|
1088
1069
|
} : t;
|
|
1089
1070
|
}
|
|
1090
1071
|
async verifyMobileNumber(e) {
|
|
1091
|
-
const t = await this.client.request(
|
|
1072
|
+
const t = await this.client.request(mt, e);
|
|
1092
1073
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1093
1074
|
ok: !1,
|
|
1094
1075
|
error: d(t.data.verifyMobileNumber.__typename)
|
|
@@ -1097,7 +1078,7 @@ class gt {
|
|
|
1097
1078
|
} : t;
|
|
1098
1079
|
}
|
|
1099
1080
|
async createMemberVerification(e) {
|
|
1100
|
-
const t = await this.client.request(
|
|
1081
|
+
const t = await this.client.request(dt, e);
|
|
1101
1082
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1102
1083
|
ok: !1,
|
|
1103
1084
|
error: d(t.data.createMemberVerification.__typename)
|
|
@@ -1106,7 +1087,7 @@ class gt {
|
|
|
1106
1087
|
} : t;
|
|
1107
1088
|
}
|
|
1108
1089
|
async updateMemberVerification(e) {
|
|
1109
|
-
const t = await this.client.request(
|
|
1090
|
+
const t = await this.client.request(ut, e);
|
|
1110
1091
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1111
1092
|
ok: !1,
|
|
1112
1093
|
error: d(t.data.updateMemberVerification.__typename)
|
|
@@ -1115,7 +1096,7 @@ class gt {
|
|
|
1115
1096
|
} : t;
|
|
1116
1097
|
}
|
|
1117
1098
|
async memberVerification() {
|
|
1118
|
-
const e = await this.client.request(
|
|
1099
|
+
const e = await this.client.request(ot);
|
|
1119
1100
|
return e.ok ? {
|
|
1120
1101
|
ok: !0,
|
|
1121
1102
|
data: e.data.memberAccount.verification
|
|
@@ -1123,7 +1104,7 @@ class gt {
|
|
|
1123
1104
|
}
|
|
1124
1105
|
async announcements(e) {
|
|
1125
1106
|
const t = await this.client.request(
|
|
1126
|
-
|
|
1107
|
+
xe,
|
|
1127
1108
|
e
|
|
1128
1109
|
);
|
|
1129
1110
|
return t.ok ? {
|
|
@@ -1132,14 +1113,14 @@ class gt {
|
|
|
1132
1113
|
} : t;
|
|
1133
1114
|
}
|
|
1134
1115
|
}
|
|
1135
|
-
function h(
|
|
1136
|
-
const t =
|
|
1116
|
+
function h(o, e) {
|
|
1117
|
+
const t = G[o] ? G[o] : G[500];
|
|
1137
1118
|
return {
|
|
1138
1119
|
name: t.name,
|
|
1139
1120
|
message: e ?? t.message
|
|
1140
1121
|
};
|
|
1141
1122
|
}
|
|
1142
|
-
const
|
|
1123
|
+
const G = {
|
|
1143
1124
|
400: { name: "HttpBadRequest", message: "Bad Request" },
|
|
1144
1125
|
401: { name: "HttpUnauthorized", message: "Unauthorized" },
|
|
1145
1126
|
403: { name: "HttpForbidden", message: "Forbidden" },
|
|
@@ -1148,10 +1129,10 @@ const Y = {
|
|
|
1148
1129
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1149
1130
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1150
1131
|
};
|
|
1151
|
-
class
|
|
1132
|
+
class yt {
|
|
1152
1133
|
constructor(e) {
|
|
1153
|
-
|
|
1154
|
-
|
|
1134
|
+
m(this, "url");
|
|
1135
|
+
m(this, "platform");
|
|
1155
1136
|
this.url = e.url, this.platform = e.platform;
|
|
1156
1137
|
}
|
|
1157
1138
|
async createSession(e) {
|
|
@@ -1289,20 +1270,20 @@ class Et {
|
|
|
1289
1270
|
}
|
|
1290
1271
|
}
|
|
1291
1272
|
}
|
|
1292
|
-
class
|
|
1273
|
+
class gt {
|
|
1293
1274
|
constructor(e) {
|
|
1294
|
-
|
|
1275
|
+
m(this, "client");
|
|
1295
1276
|
this.client = e;
|
|
1296
1277
|
}
|
|
1297
1278
|
async file(e) {
|
|
1298
|
-
const t = await this.client.request(
|
|
1279
|
+
const t = await this.client.request(ve, e);
|
|
1299
1280
|
return t.ok ? {
|
|
1300
1281
|
ok: !0,
|
|
1301
1282
|
data: t.data.node
|
|
1302
1283
|
} : t;
|
|
1303
1284
|
}
|
|
1304
1285
|
async uploadPrivateImageFile(e) {
|
|
1305
|
-
const t = await this.client.upload(
|
|
1286
|
+
const t = await this.client.upload(Ne, e);
|
|
1306
1287
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1307
1288
|
ok: !1,
|
|
1308
1289
|
error: d(t.data.uploadPrivateImageFile.__typename)
|
|
@@ -1311,48 +1292,48 @@ class St {
|
|
|
1311
1292
|
} : t;
|
|
1312
1293
|
}
|
|
1313
1294
|
}
|
|
1314
|
-
class
|
|
1295
|
+
class Et {
|
|
1315
1296
|
constructor(e) {
|
|
1316
|
-
|
|
1297
|
+
m(this, "client");
|
|
1317
1298
|
this.client = e;
|
|
1318
1299
|
}
|
|
1319
1300
|
async betRecords(e) {
|
|
1320
1301
|
const t = await this.client.request(
|
|
1321
|
-
|
|
1302
|
+
je,
|
|
1322
1303
|
e
|
|
1323
1304
|
);
|
|
1324
1305
|
return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
|
|
1325
1306
|
}
|
|
1326
1307
|
async transactionRecords(e) {
|
|
1327
|
-
const t = await this.client.request(
|
|
1308
|
+
const t = await this.client.request(Ke, e);
|
|
1328
1309
|
return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
|
|
1329
1310
|
}
|
|
1330
1311
|
async withdrawalRecords(e) {
|
|
1331
1312
|
const t = await this.client.request(
|
|
1332
|
-
|
|
1313
|
+
Ge,
|
|
1333
1314
|
e
|
|
1334
1315
|
);
|
|
1335
1316
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
1336
1317
|
}
|
|
1337
1318
|
async depositRecords(e) {
|
|
1338
1319
|
const t = await this.client.request(
|
|
1339
|
-
|
|
1320
|
+
qe,
|
|
1340
1321
|
e
|
|
1341
1322
|
);
|
|
1342
1323
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
1343
1324
|
}
|
|
1344
1325
|
async depositsCount() {
|
|
1345
|
-
const e = await this.client.request(
|
|
1326
|
+
const e = await this.client.request(Ye);
|
|
1346
1327
|
return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
|
|
1347
1328
|
}
|
|
1348
1329
|
async member() {
|
|
1349
|
-
const e = await this.client.request(
|
|
1330
|
+
const e = await this.client.request(at);
|
|
1350
1331
|
return e.ok ? { ok: e.ok, data: e.data.member } : e;
|
|
1351
1332
|
}
|
|
1352
1333
|
}
|
|
1353
|
-
class
|
|
1334
|
+
class St {
|
|
1354
1335
|
constructor(e) {
|
|
1355
|
-
|
|
1336
|
+
m(this, "url");
|
|
1356
1337
|
this.url = e.url;
|
|
1357
1338
|
}
|
|
1358
1339
|
gameThumbnails(e) {
|
|
@@ -1362,32 +1343,32 @@ class bt {
|
|
|
1362
1343
|
];
|
|
1363
1344
|
}
|
|
1364
1345
|
}
|
|
1365
|
-
class
|
|
1346
|
+
class Ae {
|
|
1366
1347
|
constructor(e) {
|
|
1367
|
-
|
|
1348
|
+
m(this, "client");
|
|
1368
1349
|
this.client = e;
|
|
1369
1350
|
}
|
|
1370
1351
|
async promos() {
|
|
1371
|
-
const e = await this.client.request(
|
|
1352
|
+
const e = await this.client.request(ze);
|
|
1372
1353
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1373
1354
|
}
|
|
1374
1355
|
async cashbacks() {
|
|
1375
|
-
const e = await this.client.request(
|
|
1356
|
+
const e = await this.client.request(Xe);
|
|
1376
1357
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1377
1358
|
}
|
|
1378
1359
|
async availablePromos(e) {
|
|
1379
1360
|
const t = await this.client.request(
|
|
1380
|
-
|
|
1361
|
+
Je,
|
|
1381
1362
|
e
|
|
1382
1363
|
);
|
|
1383
1364
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1384
1365
|
}
|
|
1385
1366
|
async cashbackBonuses() {
|
|
1386
|
-
const e = await this.client.request(
|
|
1367
|
+
const e = await this.client.request(et);
|
|
1387
1368
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1388
1369
|
}
|
|
1389
1370
|
async claimCashbackBonus(e) {
|
|
1390
|
-
const t = await this.client.request(
|
|
1371
|
+
const t = await this.client.request(tt, e);
|
|
1391
1372
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1392
1373
|
ok: !1,
|
|
1393
1374
|
error: d(t.data.claimCashbackBonus.__typename)
|
|
@@ -1399,7 +1380,7 @@ class be {
|
|
|
1399
1380
|
};
|
|
1400
1381
|
}
|
|
1401
1382
|
async bonus() {
|
|
1402
|
-
const e = await this.client.request(
|
|
1383
|
+
const e = await this.client.request(Ze);
|
|
1403
1384
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1404
1385
|
}
|
|
1405
1386
|
async wallet() {
|
|
@@ -1408,13 +1389,13 @@ class be {
|
|
|
1408
1389
|
}
|
|
1409
1390
|
async deposit(e) {
|
|
1410
1391
|
const t = await this.client.request(
|
|
1411
|
-
|
|
1392
|
+
He,
|
|
1412
1393
|
e
|
|
1413
1394
|
);
|
|
1414
1395
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
1415
1396
|
}
|
|
1416
1397
|
async createGCashDeposit(e) {
|
|
1417
|
-
const t = await this.client.request(
|
|
1398
|
+
const t = await this.client.request(Le, e);
|
|
1418
1399
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1419
1400
|
ok: !1,
|
|
1420
1401
|
error: d(t.data.createGCashDeposit.__typename)
|
|
@@ -1423,7 +1404,7 @@ class be {
|
|
|
1423
1404
|
} : t;
|
|
1424
1405
|
}
|
|
1425
1406
|
async createMayaDeposit(e) {
|
|
1426
|
-
const t = await this.client.request(
|
|
1407
|
+
const t = await this.client.request(Ve, e);
|
|
1427
1408
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1428
1409
|
ok: !1,
|
|
1429
1410
|
error: d(t.data.createMayaDeposit.__typename)
|
|
@@ -1432,7 +1413,7 @@ class be {
|
|
|
1432
1413
|
} : t;
|
|
1433
1414
|
}
|
|
1434
1415
|
async createMayaAppDeposit(e) {
|
|
1435
|
-
const t = await this.client.request(
|
|
1416
|
+
const t = await this.client.request(Fe, e);
|
|
1436
1417
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1437
1418
|
ok: !1,
|
|
1438
1419
|
error: d(t.data.createMayaAppDeposit.__typename)
|
|
@@ -1441,7 +1422,7 @@ class be {
|
|
|
1441
1422
|
} : t;
|
|
1442
1423
|
}
|
|
1443
1424
|
async createGCashWithdrawal(e) {
|
|
1444
|
-
const t = await this.client.request(
|
|
1425
|
+
const t = await this.client.request(Oe, e);
|
|
1445
1426
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1446
1427
|
ok: !1,
|
|
1447
1428
|
error: d(t.data.createGCashWithdrawal.__typename)
|
|
@@ -1450,7 +1431,7 @@ class be {
|
|
|
1450
1431
|
} : t;
|
|
1451
1432
|
}
|
|
1452
1433
|
async createMayaWithdrawal(e) {
|
|
1453
|
-
const t = await this.client.request(
|
|
1434
|
+
const t = await this.client.request(Ue, e);
|
|
1454
1435
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1455
1436
|
ok: !1,
|
|
1456
1437
|
error: d(t.data.createMayaWithdrawal.__typename)
|
|
@@ -1459,7 +1440,7 @@ class be {
|
|
|
1459
1440
|
} : t;
|
|
1460
1441
|
}
|
|
1461
1442
|
async createMayaAppWithdrawal(e) {
|
|
1462
|
-
const t = await this.client.request(
|
|
1443
|
+
const t = await this.client.request(Be, e);
|
|
1463
1444
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1464
1445
|
ok: !1,
|
|
1465
1446
|
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
@@ -1468,7 +1449,7 @@ class be {
|
|
|
1468
1449
|
} : t;
|
|
1469
1450
|
}
|
|
1470
1451
|
async createBankWithdrawal(e) {
|
|
1471
|
-
const t = await this.client.request(
|
|
1452
|
+
const t = await this.client.request($e, e);
|
|
1472
1453
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1473
1454
|
ok: !1,
|
|
1474
1455
|
error: d(t.data.createBankWithdrawal.__typename)
|
|
@@ -1478,7 +1459,7 @@ class be {
|
|
|
1478
1459
|
}
|
|
1479
1460
|
async remainingDailyWithdrawalsCount() {
|
|
1480
1461
|
const e = await this.client.request(
|
|
1481
|
-
|
|
1462
|
+
We
|
|
1482
1463
|
);
|
|
1483
1464
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1484
1465
|
}
|
|
@@ -1497,27 +1478,27 @@ class be {
|
|
|
1497
1478
|
}
|
|
1498
1479
|
async mayaSession(e) {
|
|
1499
1480
|
const t = await this.client.request(
|
|
1500
|
-
|
|
1481
|
+
ht,
|
|
1501
1482
|
e
|
|
1502
1483
|
);
|
|
1503
1484
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
1504
1485
|
}
|
|
1505
1486
|
/** @deprecated */
|
|
1506
1487
|
async games(e) {
|
|
1507
|
-
const t = await this.client.request(
|
|
1488
|
+
const t = await this.client.request(ye, e);
|
|
1508
1489
|
return t.ok ? { ok: t.ok, data: t.data.games } : t;
|
|
1509
1490
|
}
|
|
1510
1491
|
/** @deprecated */
|
|
1511
1492
|
async gamesByName(e) {
|
|
1512
1493
|
const t = await this.client.request(
|
|
1513
|
-
|
|
1494
|
+
ge,
|
|
1514
1495
|
e
|
|
1515
1496
|
);
|
|
1516
1497
|
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1517
1498
|
}
|
|
1518
1499
|
async gameSession(e) {
|
|
1519
1500
|
const t = await this.client.request(
|
|
1520
|
-
|
|
1501
|
+
Ee,
|
|
1521
1502
|
e
|
|
1522
1503
|
);
|
|
1523
1504
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
@@ -1533,7 +1514,7 @@ class be {
|
|
|
1533
1514
|
}
|
|
1534
1515
|
async endGameSession(e) {
|
|
1535
1516
|
const t = await this.client.request(
|
|
1536
|
-
|
|
1517
|
+
Re,
|
|
1537
1518
|
e
|
|
1538
1519
|
);
|
|
1539
1520
|
return t.ok ? t.data.endGameSession ? {
|
|
@@ -1547,11 +1528,11 @@ class be {
|
|
|
1547
1528
|
} : t;
|
|
1548
1529
|
}
|
|
1549
1530
|
}
|
|
1550
|
-
class
|
|
1531
|
+
class bt {
|
|
1551
1532
|
constructor(e) {
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1533
|
+
m(this, "url");
|
|
1534
|
+
m(this, "siteId");
|
|
1535
|
+
m(this, "platformId");
|
|
1555
1536
|
this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
|
|
1556
1537
|
}
|
|
1557
1538
|
async self() {
|
|
@@ -1562,16 +1543,16 @@ class _t {
|
|
|
1562
1543
|
} : e;
|
|
1563
1544
|
}
|
|
1564
1545
|
async games(e) {
|
|
1565
|
-
var r, s,
|
|
1546
|
+
var r, s, c, u, l, p, y, f, A, _, k, T, C, v, N, I;
|
|
1566
1547
|
const t = new URLSearchParams();
|
|
1567
|
-
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after),
|
|
1548
|
+
e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (_ = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && _.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (I = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && I.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
|
|
1568
1549
|
const a = await this.getJson("/games", t);
|
|
1569
1550
|
return a.ok ? {
|
|
1570
1551
|
ok: !0,
|
|
1571
1552
|
data: {
|
|
1572
|
-
edges: a.data.data.map((
|
|
1573
|
-
node:
|
|
1574
|
-
cursor:
|
|
1553
|
+
edges: a.data.data.map((M) => ({
|
|
1554
|
+
node: M,
|
|
1555
|
+
cursor: M.cursor
|
|
1575
1556
|
})),
|
|
1576
1557
|
totalCount: a.data.totalCount,
|
|
1577
1558
|
pageInfo: {
|
|
@@ -1619,27 +1600,27 @@ class _t {
|
|
|
1619
1600
|
}
|
|
1620
1601
|
}
|
|
1621
1602
|
}
|
|
1622
|
-
class
|
|
1603
|
+
class At {
|
|
1623
1604
|
constructor(e) {
|
|
1624
|
-
|
|
1605
|
+
m(this, "client");
|
|
1625
1606
|
this.client = e;
|
|
1626
1607
|
}
|
|
1627
1608
|
/** @deprecated */
|
|
1628
1609
|
async games(e) {
|
|
1629
|
-
const t = await this.client.request(
|
|
1610
|
+
const t = await this.client.request(ye, e);
|
|
1630
1611
|
return t.ok ? { ok: t.ok, data: t.data.games } : t;
|
|
1631
1612
|
}
|
|
1632
1613
|
/** @deprecated */
|
|
1633
1614
|
async gamesByName(e) {
|
|
1634
1615
|
const t = await this.client.request(
|
|
1635
|
-
|
|
1616
|
+
ge,
|
|
1636
1617
|
e
|
|
1637
1618
|
);
|
|
1638
1619
|
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1639
1620
|
}
|
|
1640
1621
|
async gameSession(e) {
|
|
1641
1622
|
const t = await this.client.request(
|
|
1642
|
-
|
|
1623
|
+
Ee,
|
|
1643
1624
|
e
|
|
1644
1625
|
);
|
|
1645
1626
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
@@ -1654,7 +1635,7 @@ class kt {
|
|
|
1654
1635
|
} : t;
|
|
1655
1636
|
}
|
|
1656
1637
|
async endGameSession(e) {
|
|
1657
|
-
const t = await this.client.request(
|
|
1638
|
+
const t = await this.client.request(Pe, e);
|
|
1658
1639
|
return t.ok ? t.data.endGameSession ? {
|
|
1659
1640
|
ok: !1,
|
|
1660
1641
|
error: d(t.data.endGameSession.__typename)
|
|
@@ -1663,46 +1644,46 @@ class kt {
|
|
|
1663
1644
|
} : t;
|
|
1664
1645
|
}
|
|
1665
1646
|
}
|
|
1666
|
-
class
|
|
1647
|
+
class _t {
|
|
1667
1648
|
constructor(e) {
|
|
1668
|
-
|
|
1649
|
+
m(this, "client");
|
|
1669
1650
|
this.client = e;
|
|
1670
1651
|
}
|
|
1671
1652
|
async latestBetRecords() {
|
|
1672
|
-
const e = await this.client.request(
|
|
1653
|
+
const e = await this.client.request(Qe);
|
|
1673
1654
|
return e.ok ? {
|
|
1674
1655
|
ok: !0,
|
|
1675
1656
|
data: e.data.latestBetRecords
|
|
1676
1657
|
} : e;
|
|
1677
1658
|
}
|
|
1678
1659
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return
|
|
1660
|
+
function kt(o, e, t) {
|
|
1661
|
+
return o < e ? e : o > t ? t : o;
|
|
1681
1662
|
}
|
|
1682
|
-
function
|
|
1683
|
-
return Object.prototype.toString.call(
|
|
1663
|
+
function O(o) {
|
|
1664
|
+
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
1684
1665
|
}
|
|
1685
|
-
function
|
|
1666
|
+
function Tt(o) {
|
|
1686
1667
|
const e = [];
|
|
1687
1668
|
function t(a, r = []) {
|
|
1688
1669
|
for (const s in a) {
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1670
|
+
const c = a[s];
|
|
1671
|
+
O(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(Ct(c), [...r, s]) : e.push({
|
|
1691
1672
|
key: [...r, s],
|
|
1692
|
-
value:
|
|
1673
|
+
value: c
|
|
1693
1674
|
});
|
|
1694
1675
|
}
|
|
1695
1676
|
}
|
|
1696
|
-
return t(
|
|
1677
|
+
return t(o), e;
|
|
1697
1678
|
}
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1679
|
+
function Ct(o) {
|
|
1680
|
+
return o.reduce((e, t, a) => (e[a] = t, e), {});
|
|
1700
1681
|
}
|
|
1701
|
-
class
|
|
1682
|
+
class b {
|
|
1702
1683
|
constructor(e, t) {
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1684
|
+
m(this, "url");
|
|
1685
|
+
m(this, "options");
|
|
1686
|
+
m(this, "middlewares");
|
|
1706
1687
|
var r;
|
|
1707
1688
|
const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
|
|
1708
1689
|
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
@@ -1735,13 +1716,13 @@ class A {
|
|
|
1735
1716
|
return await this.exec(s);
|
|
1736
1717
|
}
|
|
1737
1718
|
async exec(e) {
|
|
1738
|
-
var t, a, r, s,
|
|
1719
|
+
var t, a, r, s, c, u;
|
|
1739
1720
|
try {
|
|
1740
1721
|
const l = await fetch(e);
|
|
1741
1722
|
if (!l.ok)
|
|
1742
1723
|
return { ok: !1, error: h(l.status) };
|
|
1743
1724
|
const p = await l.json(), y = p.data, f = (t = p.errors) == null ? void 0 : t.at(0);
|
|
1744
|
-
return f ? ((a = f.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = f.extensions) == null ? void 0 : r.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) } : ((
|
|
1725
|
+
return f ? ((a = f.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = f.extensions) == null ? void 0 : r.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) } : {
|
|
1745
1726
|
ok: !1,
|
|
1746
1727
|
error: h(500, f.message)
|
|
1747
1728
|
} : {
|
|
@@ -1762,8 +1743,8 @@ class A {
|
|
|
1762
1743
|
return t;
|
|
1763
1744
|
}
|
|
1764
1745
|
createUploadBody(e, t) {
|
|
1765
|
-
const a =
|
|
1766
|
-
(
|
|
1746
|
+
const a = Tt(t).filter(
|
|
1747
|
+
(c) => c.value instanceof File || c.value instanceof Blob
|
|
1767
1748
|
), r = new FormData();
|
|
1768
1749
|
r.append(
|
|
1769
1750
|
"operations",
|
|
@@ -1773,20 +1754,20 @@ class A {
|
|
|
1773
1754
|
})
|
|
1774
1755
|
);
|
|
1775
1756
|
const s = {};
|
|
1776
|
-
return a.forEach((
|
|
1777
|
-
s[u.toString()] = [`variables.${
|
|
1778
|
-
}), r.append("map", JSON.stringify(s)), a.forEach((
|
|
1779
|
-
r.append(u.toString(),
|
|
1757
|
+
return a.forEach((c, u) => {
|
|
1758
|
+
s[u.toString()] = [`variables.${c.key.join(".")}`];
|
|
1759
|
+
}), r.append("map", JSON.stringify(s)), a.forEach((c, u) => {
|
|
1760
|
+
r.append(u.toString(), c.value);
|
|
1780
1761
|
}), r;
|
|
1781
1762
|
}
|
|
1782
1763
|
}
|
|
1783
|
-
async function g(
|
|
1784
|
-
const e = new TextEncoder().encode(
|
|
1764
|
+
async function g(o) {
|
|
1765
|
+
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
1785
1766
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
1786
1767
|
}
|
|
1787
1768
|
class _e {
|
|
1788
1769
|
constructor(e) {
|
|
1789
|
-
|
|
1770
|
+
m(this, "enabled");
|
|
1790
1771
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
1791
1772
|
}
|
|
1792
1773
|
info(e) {
|
|
@@ -1802,54 +1783,54 @@ class _e {
|
|
|
1802
1783
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
1803
1784
|
}
|
|
1804
1785
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return new Date(
|
|
1786
|
+
function B(o) {
|
|
1787
|
+
return new Date(o.getTime());
|
|
1807
1788
|
}
|
|
1808
|
-
function
|
|
1809
|
-
const t =
|
|
1789
|
+
function D(o, e) {
|
|
1790
|
+
const t = B(o);
|
|
1810
1791
|
return t.setDate(t.getDate() + e), t;
|
|
1811
1792
|
}
|
|
1812
|
-
function
|
|
1813
|
-
const t =
|
|
1793
|
+
function R(o, e) {
|
|
1794
|
+
const t = B(o);
|
|
1814
1795
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
1815
1796
|
}
|
|
1816
|
-
function
|
|
1817
|
-
return
|
|
1797
|
+
function he(o, e) {
|
|
1798
|
+
return o.getTime() > e.getTime();
|
|
1818
1799
|
}
|
|
1819
|
-
function ke(
|
|
1800
|
+
function ke(o) {
|
|
1820
1801
|
return new Promise((e) => {
|
|
1821
|
-
setTimeout(e,
|
|
1802
|
+
setTimeout(e, o);
|
|
1822
1803
|
});
|
|
1823
1804
|
}
|
|
1824
|
-
function
|
|
1805
|
+
function we(o, e) {
|
|
1825
1806
|
const {
|
|
1826
1807
|
until: t,
|
|
1827
1808
|
interval: a = 1e3,
|
|
1828
1809
|
maxAttempt: r = 3
|
|
1829
1810
|
/**/
|
|
1830
1811
|
} = e;
|
|
1831
|
-
async function s(
|
|
1832
|
-
const l = u ?? r, p = await
|
|
1833
|
-
return t(p) ? p : l > 1 ? (await ke(a * ((r - l) / 2)), s(
|
|
1812
|
+
async function s(c, u) {
|
|
1813
|
+
const l = u ?? r, p = await o(...c);
|
|
1814
|
+
return t(p) ? p : l > 1 ? (await ke(a * ((r - l) / 2)), s(c, l - 1)) : p;
|
|
1834
1815
|
}
|
|
1835
|
-
return async (...
|
|
1816
|
+
return async (...c) => await s(c);
|
|
1836
1817
|
}
|
|
1837
|
-
function
|
|
1838
|
-
const t =
|
|
1818
|
+
function P(o, e) {
|
|
1819
|
+
const t = B(o);
|
|
1839
1820
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
1840
1821
|
}
|
|
1841
|
-
class
|
|
1822
|
+
class vt {
|
|
1842
1823
|
constructor(e) {
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
this.authService = new
|
|
1824
|
+
m(this, "logger");
|
|
1825
|
+
m(this, "storageKey", "session");
|
|
1826
|
+
m(this, "authService");
|
|
1827
|
+
m(this, "walletService");
|
|
1828
|
+
m(this, "_refreshing", !1);
|
|
1829
|
+
this.authService = new yt({
|
|
1849
1830
|
url: e.authUrl,
|
|
1850
1831
|
platform: e.platform
|
|
1851
|
-
}), this.walletService = new
|
|
1852
|
-
new
|
|
1832
|
+
}), this.walletService = new Ae(
|
|
1833
|
+
new b(e.walletUrl, {
|
|
1853
1834
|
middlewares: [
|
|
1854
1835
|
(t) => (t.headers.set("Platform", e.platform), t.headers.set("Role", "MEMBER"), t)
|
|
1855
1836
|
]
|
|
@@ -1874,7 +1855,7 @@ class It {
|
|
|
1874
1855
|
}
|
|
1875
1856
|
};
|
|
1876
1857
|
if (e.type === "MAYA") {
|
|
1877
|
-
const s = await
|
|
1858
|
+
const s = await we(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
1878
1859
|
until: (p) => {
|
|
1879
1860
|
var y;
|
|
1880
1861
|
return p.ok && ((y = p.data) == null ? void 0 : y.member) != null;
|
|
@@ -1883,7 +1864,7 @@ class It {
|
|
|
1883
1864
|
maxAttempt: 5
|
|
1884
1865
|
})();
|
|
1885
1866
|
if (!s.ok) return s;
|
|
1886
|
-
const u = await
|
|
1867
|
+
const u = await we(() => this.authService.createSession(e), {
|
|
1887
1868
|
until: (p) => p.ok,
|
|
1888
1869
|
interval: 1e3,
|
|
1889
1870
|
maxAttempt: 5
|
|
@@ -1894,8 +1875,8 @@ class It {
|
|
|
1894
1875
|
this.storageKey,
|
|
1895
1876
|
JSON.stringify({
|
|
1896
1877
|
...u.data,
|
|
1897
|
-
accessTokenExpiresAt:
|
|
1898
|
-
refreshTokenExpiresAt:
|
|
1878
|
+
accessTokenExpiresAt: R(l, 8).getTime(),
|
|
1879
|
+
refreshTokenExpiresAt: P(D(l, 30), 2).getTime()
|
|
1899
1880
|
})
|
|
1900
1881
|
), {
|
|
1901
1882
|
ok: !0,
|
|
@@ -1910,8 +1891,8 @@ class It {
|
|
|
1910
1891
|
this.storageKey,
|
|
1911
1892
|
JSON.stringify({
|
|
1912
1893
|
...r.data,
|
|
1913
|
-
accessTokenExpiresAt:
|
|
1914
|
-
refreshTokenExpiresAt:
|
|
1894
|
+
accessTokenExpiresAt: R(s, 8).getTime(),
|
|
1895
|
+
refreshTokenExpiresAt: P(D(s, 30), 2).getTime()
|
|
1915
1896
|
})
|
|
1916
1897
|
), {
|
|
1917
1898
|
ok: !0,
|
|
@@ -1934,8 +1915,8 @@ class It {
|
|
|
1934
1915
|
this.storageKey,
|
|
1935
1916
|
JSON.stringify({
|
|
1936
1917
|
...t.data,
|
|
1937
|
-
accessTokenExpiresAt:
|
|
1938
|
-
refreshTokenExpiresAt:
|
|
1918
|
+
accessTokenExpiresAt: R(a, 8).getTime(),
|
|
1919
|
+
refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
|
|
1939
1920
|
})
|
|
1940
1921
|
), {
|
|
1941
1922
|
ok: !0,
|
|
@@ -1950,8 +1931,8 @@ class It {
|
|
|
1950
1931
|
this.storageKey,
|
|
1951
1932
|
JSON.stringify({
|
|
1952
1933
|
...t.data,
|
|
1953
|
-
accessTokenExpiresAt:
|
|
1954
|
-
refreshTokenExpiresAt:
|
|
1934
|
+
accessTokenExpiresAt: R(a, 8).getTime(),
|
|
1935
|
+
refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
|
|
1955
1936
|
})
|
|
1956
1937
|
), { ok: !0 };
|
|
1957
1938
|
} else
|
|
@@ -1974,7 +1955,7 @@ class It {
|
|
|
1974
1955
|
try {
|
|
1975
1956
|
let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
|
|
1976
1957
|
const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
|
|
1977
|
-
if (
|
|
1958
|
+
if (he(a, s))
|
|
1978
1959
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
1979
1960
|
ok: !1,
|
|
1980
1961
|
error: {
|
|
@@ -1982,22 +1963,22 @@ class It {
|
|
|
1982
1963
|
message: "Session expired."
|
|
1983
1964
|
}
|
|
1984
1965
|
};
|
|
1985
|
-
if (
|
|
1966
|
+
if (he(a, r)) {
|
|
1986
1967
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
1987
|
-
const
|
|
1988
|
-
if (this.refreshing = !1, !
|
|
1989
|
-
return this.logger.error(`Failed to refresh session: ${
|
|
1968
|
+
const c = await this.authService.refreshSession(t.refreshToken);
|
|
1969
|
+
if (this.refreshing = !1, !c.ok)
|
|
1970
|
+
return this.logger.error(`Failed to refresh session: ${c.error.message}`), c.error.name === "InvalidToken" || c.error.name === "AccountBlacklisted" ? (window.localStorage.removeItem(this.storageKey), {
|
|
1990
1971
|
ok: !1,
|
|
1991
|
-
error:
|
|
1972
|
+
error: c.error
|
|
1992
1973
|
}) : (this.logger.warn("Old session returned."), {
|
|
1993
1974
|
ok: !0,
|
|
1994
1975
|
data: t
|
|
1995
1976
|
});
|
|
1996
1977
|
this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
|
|
1997
1978
|
...t,
|
|
1998
|
-
...
|
|
1999
|
-
accessTokenExpiresAt:
|
|
2000
|
-
refreshTokenExpiresAt:
|
|
1979
|
+
...c.data,
|
|
1980
|
+
accessTokenExpiresAt: R(a, 8).getTime(),
|
|
1981
|
+
refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
|
|
2001
1982
|
}, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
|
|
2002
1983
|
}
|
|
2003
1984
|
return {
|
|
@@ -2037,17 +2018,17 @@ class It {
|
|
|
2037
2018
|
return typeof window > "u";
|
|
2038
2019
|
}
|
|
2039
2020
|
}
|
|
2040
|
-
function w(
|
|
2021
|
+
function w(o) {
|
|
2041
2022
|
const e = {};
|
|
2042
|
-
for (const t in
|
|
2043
|
-
const a =
|
|
2023
|
+
for (const t in o) {
|
|
2024
|
+
const a = o[t];
|
|
2044
2025
|
if (a !== null && a !== void 0) {
|
|
2045
|
-
if (
|
|
2026
|
+
if (O(a)) {
|
|
2046
2027
|
e[t] = w(a);
|
|
2047
2028
|
continue;
|
|
2048
2029
|
}
|
|
2049
2030
|
if (Array.isArray(a)) {
|
|
2050
|
-
e[t] = a.map((r) =>
|
|
2031
|
+
e[t] = a.map((r) => O(r) ? w(r) : r);
|
|
2051
2032
|
continue;
|
|
2052
2033
|
}
|
|
2053
2034
|
e[t] = a;
|
|
@@ -2055,21 +2036,21 @@ function w(n) {
|
|
|
2055
2036
|
}
|
|
2056
2037
|
return e;
|
|
2057
2038
|
}
|
|
2058
|
-
function i(
|
|
2059
|
-
if (typeof
|
|
2060
|
-
return
|
|
2061
|
-
if (typeof
|
|
2062
|
-
const t = Number.parseFloat(
|
|
2039
|
+
function i(o, e) {
|
|
2040
|
+
if (typeof o == "number" && !Number.isNaN(o))
|
|
2041
|
+
return o;
|
|
2042
|
+
if (typeof o == "string") {
|
|
2043
|
+
const t = Number.parseFloat(o);
|
|
2063
2044
|
if (!Number.isNaN(t))
|
|
2064
2045
|
return t;
|
|
2065
2046
|
}
|
|
2066
2047
|
return e;
|
|
2067
2048
|
}
|
|
2068
|
-
class
|
|
2049
|
+
class Nt {
|
|
2069
2050
|
constructor(e) {
|
|
2070
|
-
|
|
2051
|
+
m(this, "staticService");
|
|
2071
2052
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2072
|
-
this.staticService = new
|
|
2053
|
+
this.staticService = new St({
|
|
2073
2054
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2074
2055
|
});
|
|
2075
2056
|
}
|
|
@@ -2109,7 +2090,7 @@ class Mt {
|
|
|
2109
2090
|
return w(t);
|
|
2110
2091
|
}
|
|
2111
2092
|
platform(e) {
|
|
2112
|
-
var t, a, r, s,
|
|
2093
|
+
var t, a, r, s, c, u, l, p, y, f, A, _, k, T, C, v, N, I, M, $, W, q, L, V, F, H, Y, j, Q, K, z, J, X, Z, ee, te, ae, re, oe, ne, ie, se, ce, me, de, ue, le, pe, fe;
|
|
2113
2094
|
return {
|
|
2114
2095
|
paymentSettings: {
|
|
2115
2096
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
@@ -2120,7 +2101,7 @@ class Mt {
|
|
|
2120
2101
|
iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
|
|
2121
2102
|
webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
|
|
2122
2103
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2123
|
-
minimumAmount: i((
|
|
2104
|
+
minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
|
|
2124
2105
|
maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
|
|
2125
2106
|
},
|
|
2126
2107
|
gcash: {
|
|
@@ -2128,69 +2109,69 @@ class Mt {
|
|
|
2128
2109
|
iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
|
|
2129
2110
|
webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
|
|
2130
2111
|
mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
|
|
2131
|
-
minimumAmount: i((
|
|
2112
|
+
minimumAmount: i((A = e.gcashDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
|
|
2132
2113
|
maximumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.maximumAmount)
|
|
2133
2114
|
},
|
|
2134
2115
|
maya: {
|
|
2135
2116
|
androidEnabled: ((k = e.mayaDepositGatewaySettings) == null ? void 0 : k.androidEnabled) ?? !1,
|
|
2136
2117
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
2137
2118
|
webEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.webEnabled) ?? !1,
|
|
2138
|
-
mobileWebEnabled: ((
|
|
2139
|
-
minimumAmount: i((
|
|
2119
|
+
mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
|
|
2120
|
+
minimumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.minimumAmount),
|
|
2140
2121
|
maximumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.maximumAmount)
|
|
2141
2122
|
},
|
|
2142
2123
|
mayaApp: {
|
|
2143
2124
|
androidEnabled: ((M = e.mayaAppDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
|
|
2144
|
-
iosEnabled: ((
|
|
2145
|
-
webEnabled: ((
|
|
2146
|
-
mobileWebEnabled: ((
|
|
2147
|
-
minimumAmount: i((
|
|
2148
|
-
maximumAmount: i((
|
|
2125
|
+
iosEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.iosEnabled) ?? !1,
|
|
2126
|
+
webEnabled: ((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.webEnabled) ?? !1,
|
|
2127
|
+
mobileWebEnabled: ((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
|
|
2128
|
+
minimumAmount: i((L = e.mayaAppDepositGatewaySettings) == null ? void 0 : L.minimumAmount),
|
|
2129
|
+
maximumAmount: i((V = e.mayaAppDepositGatewaySettings) == null ? void 0 : V.maximumAmount)
|
|
2149
2130
|
}
|
|
2150
2131
|
},
|
|
2151
2132
|
withdrawalGateway: {
|
|
2152
2133
|
bank: {
|
|
2153
|
-
androidEnabled: ((
|
|
2154
|
-
iosEnabled: ((
|
|
2155
|
-
webEnabled: ((
|
|
2156
|
-
mobileWebEnabled: ((
|
|
2157
|
-
minimumAmount: i((
|
|
2158
|
-
maximumAmount: i((
|
|
2134
|
+
androidEnabled: ((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.androidEnabled) ?? !1,
|
|
2135
|
+
iosEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
|
|
2136
|
+
webEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
|
|
2137
|
+
mobileWebEnabled: ((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
|
|
2138
|
+
minimumAmount: i((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
|
|
2139
|
+
maximumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount)
|
|
2159
2140
|
},
|
|
2160
2141
|
gcash: {
|
|
2161
|
-
androidEnabled: ((
|
|
2162
|
-
iosEnabled: ((
|
|
2163
|
-
webEnabled: ((
|
|
2164
|
-
mobileWebEnabled: ((
|
|
2165
|
-
minimumAmount: i((
|
|
2142
|
+
androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
|
|
2143
|
+
iosEnabled: ((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
|
|
2144
|
+
webEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
|
|
2145
|
+
mobileWebEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
|
|
2146
|
+
minimumAmount: i((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
|
|
2166
2147
|
maximumAmount: i(
|
|
2167
|
-
(
|
|
2148
|
+
(te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount,
|
|
2168
2149
|
1e6
|
|
2169
2150
|
)
|
|
2170
2151
|
},
|
|
2171
2152
|
maya: {
|
|
2172
|
-
androidEnabled: ((
|
|
2173
|
-
iosEnabled: ((
|
|
2153
|
+
androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
|
|
2154
|
+
iosEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.iosEnabled) ?? !1,
|
|
2174
2155
|
webEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
|
|
2175
|
-
mobileWebEnabled: ((
|
|
2176
|
-
minimumAmount: i((
|
|
2177
|
-
maximumAmount: i((
|
|
2156
|
+
mobileWebEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.mobileWebEnabled) ?? !1,
|
|
2157
|
+
minimumAmount: i((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.minimumAmount),
|
|
2158
|
+
maximumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount)
|
|
2178
2159
|
},
|
|
2179
2160
|
mayaApp: {
|
|
2180
2161
|
androidEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
|
|
2181
|
-
iosEnabled: ((
|
|
2182
|
-
webEnabled: ((
|
|
2183
|
-
mobileWebEnabled: ((
|
|
2184
|
-
minimumAmount: i((
|
|
2162
|
+
iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
|
|
2163
|
+
webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
|
|
2164
|
+
mobileWebEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.mobileWebEnabled) ?? !1,
|
|
2165
|
+
minimumAmount: i((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.minimumAmount),
|
|
2185
2166
|
maximumAmount: i(
|
|
2186
|
-
(
|
|
2167
|
+
(pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.maximumAmount,
|
|
2187
2168
|
1e6
|
|
2188
2169
|
)
|
|
2189
2170
|
}
|
|
2190
2171
|
}
|
|
2191
2172
|
},
|
|
2192
2173
|
pointsClubSettings: {
|
|
2193
|
-
multiplier: i((
|
|
2174
|
+
multiplier: i((fe = e.pointsClubSettings) == null ? void 0 : fe.multiplier, 0)
|
|
2194
2175
|
}
|
|
2195
2176
|
};
|
|
2196
2177
|
}
|
|
@@ -2316,7 +2297,7 @@ class Mt {
|
|
|
2316
2297
|
winloss: i(e.winloss),
|
|
2317
2298
|
validBet: i(e.validBet, 0),
|
|
2318
2299
|
vendorRoundId: e.vendorRoundId ?? void 0,
|
|
2319
|
-
game:
|
|
2300
|
+
game: e.game,
|
|
2320
2301
|
serialCode: e.serialCode,
|
|
2321
2302
|
dateTimeSettled: e.dateTimeSettled ? new Date(e.dateTimeSettled) : void 0,
|
|
2322
2303
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2334,7 +2315,7 @@ class Mt {
|
|
|
2334
2315
|
return {
|
|
2335
2316
|
id: e.id,
|
|
2336
2317
|
member: e.member,
|
|
2337
|
-
game:
|
|
2318
|
+
game: e.game,
|
|
2338
2319
|
bet: i(e.bet, 0),
|
|
2339
2320
|
payout: i(e.payout, 0),
|
|
2340
2321
|
validBet: i(e.validBet, 0),
|
|
@@ -2368,7 +2349,10 @@ class Mt {
|
|
|
2368
2349
|
id: e.id,
|
|
2369
2350
|
type: e.type,
|
|
2370
2351
|
name: e.name,
|
|
2371
|
-
images: this.staticService.gameThumbnails(
|
|
2352
|
+
images: this.staticService.gameThumbnails({
|
|
2353
|
+
id: e.externalId,
|
|
2354
|
+
provider: e.provider
|
|
2355
|
+
}),
|
|
2372
2356
|
provider: e.provider,
|
|
2373
2357
|
externalId: e.externalId
|
|
2374
2358
|
};
|
|
@@ -2470,27 +2454,27 @@ class Mt {
|
|
|
2470
2454
|
};
|
|
2471
2455
|
}
|
|
2472
2456
|
}
|
|
2473
|
-
var
|
|
2474
|
-
class
|
|
2457
|
+
var It = { VITE_AUTH_DEVELOPMENT_URL: "https://auth.development.opexa.io", VITE_AUTH_PRODUCTION_URL: "https://auth.opexa.io", VITE_GAME_DEVELOPMENT_URL: "https://game.development.opexa.io/graphql", VITE_GAME_PRODUCTION_URL: "https://game.opexa.io/graphql", VITE_FILE_DEVELOPMENT_URL: "https://file.development.opexa.io/graphql", VITE_FILE_PRODUCTION_URL: "https://file.opexa.io/graphql", VITE_REPORT_DEVELOPMENT_URL: "https://report.development.opexa.io/graphql", VITE_REPORT_PRODUCTION_URL: "https://report.opexa.io/graphql", VITE_WALLET_DEVELOPMENT_URL: "https://wallet.development.opexa.io/graphql", VITE_WALLET_PRODUCTION_URL: "https://wallet.opexa.io/graphql", VITE_ACCOUNT_DEVELOPMENT_URL: "https://account.development.opexa.io/graphql", VITE_ACCOUNT_PRODUCTION_URL: "https://account.opexa.io/graphql", VITE_PORTAL_DEVELOPMENT_URL: "https://portal.development.opexa.io/graphql", VITE_PORTAL_PRODUCTION_URL: "https://portal.opexa.io/graphql", VITE_STATIC_DEVELOPMENT_URL: "https://static.development.opexa.io", VITE_STATIC_PRODUCTION_URL: "https://static.opexa.io", VITE_CMS_PORTAL_DEVELOPMENT_URL: "https://portal-api.opexacms.io/v1", BASE_URL: "/", MODE: "library", DEV: !1, PROD: !0, SSR: !1 };
|
|
2458
|
+
class Rt {
|
|
2475
2459
|
constructor(e) {
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2460
|
+
m(this, "gameService");
|
|
2461
|
+
m(this, "fileService");
|
|
2462
|
+
m(this, "walletService");
|
|
2463
|
+
m(this, "reportService");
|
|
2464
|
+
m(this, "portalService");
|
|
2465
|
+
m(this, "accountService");
|
|
2466
|
+
m(this, "cmsPortalService");
|
|
2467
|
+
m(this, "sessionManager");
|
|
2468
|
+
m(this, "transformer");
|
|
2469
|
+
m(this, "logger");
|
|
2486
2470
|
const t = e.environment === "development";
|
|
2487
|
-
this.sessionManager = new
|
|
2471
|
+
this.sessionManager = new vt({
|
|
2488
2472
|
authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
|
|
2489
2473
|
walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2490
2474
|
platform: e.platform,
|
|
2491
2475
|
log: e.log
|
|
2492
|
-
}), this.cmsPortalService = new
|
|
2493
|
-
url: t ? "https://portal-api.opexacms.io/v1" :
|
|
2476
|
+
}), this.cmsPortalService = new bt({
|
|
2477
|
+
url: t ? "https://portal-api.opexacms.io/v1" : It.VITE_CMS_PORTAL_PRODUCTION_URL,
|
|
2494
2478
|
site: e.site,
|
|
2495
2479
|
platform: e.sitePlatform
|
|
2496
2480
|
});
|
|
@@ -2503,37 +2487,37 @@ class xt {
|
|
|
2503
2487
|
}
|
|
2504
2488
|
}
|
|
2505
2489
|
};
|
|
2506
|
-
this.gameService = new
|
|
2507
|
-
new
|
|
2490
|
+
this.gameService = new At(
|
|
2491
|
+
new b(
|
|
2508
2492
|
t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
|
|
2509
2493
|
a
|
|
2510
2494
|
)
|
|
2511
|
-
), this.fileService = new
|
|
2512
|
-
new
|
|
2495
|
+
), this.fileService = new gt(
|
|
2496
|
+
new b(
|
|
2513
2497
|
t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
|
|
2514
2498
|
a
|
|
2515
2499
|
)
|
|
2516
|
-
), this.walletService = new
|
|
2517
|
-
new
|
|
2500
|
+
), this.walletService = new Ae(
|
|
2501
|
+
new b(
|
|
2518
2502
|
t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
|
|
2519
2503
|
a
|
|
2520
2504
|
)
|
|
2521
|
-
), this.reportService = new
|
|
2522
|
-
new
|
|
2505
|
+
), this.reportService = new Et(
|
|
2506
|
+
new b(
|
|
2523
2507
|
t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
|
|
2524
2508
|
a
|
|
2525
2509
|
)
|
|
2526
|
-
), this.accountService = new
|
|
2527
|
-
new
|
|
2510
|
+
), this.accountService = new wt(
|
|
2511
|
+
new b(
|
|
2528
2512
|
t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
|
|
2529
2513
|
a
|
|
2530
2514
|
)
|
|
2531
|
-
), this.portalService = new
|
|
2532
|
-
new
|
|
2515
|
+
), this.portalService = new _t(
|
|
2516
|
+
new b(
|
|
2533
2517
|
t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
|
|
2534
2518
|
a
|
|
2535
2519
|
)
|
|
2536
|
-
), this.transformer = new
|
|
2520
|
+
), this.transformer = new Nt(e), this.logger = new _e({
|
|
2537
2521
|
enabled: e.log ?? !1
|
|
2538
2522
|
});
|
|
2539
2523
|
}
|
|
@@ -2649,7 +2633,7 @@ class xt {
|
|
|
2649
2633
|
* ```
|
|
2650
2634
|
*/
|
|
2651
2635
|
watchSession(e) {
|
|
2652
|
-
const t =
|
|
2636
|
+
const t = kt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2653
2637
|
let a = null;
|
|
2654
2638
|
const r = () => setTimeout(async () => {
|
|
2655
2639
|
await this.sessionManager.verify() || await e.onInvalid(), a = r();
|
|
@@ -3264,10 +3248,7 @@ class xt {
|
|
|
3264
3248
|
const t = await this.gameService.gameSession({ id: e });
|
|
3265
3249
|
return t.ok ? {
|
|
3266
3250
|
ok: !0,
|
|
3267
|
-
data: t.data ? this.transformer.transform.gameSession(
|
|
3268
|
-
...t.data,
|
|
3269
|
-
game: t.data.game.id
|
|
3270
|
-
}) : null
|
|
3251
|
+
data: t.data ? this.transformer.transform.gameSession(t.data) : null
|
|
3271
3252
|
} : t;
|
|
3272
3253
|
}
|
|
3273
3254
|
async gameSession__next(e) {
|
|
@@ -3324,7 +3305,7 @@ class xt {
|
|
|
3324
3305
|
type: a,
|
|
3325
3306
|
provider: r,
|
|
3326
3307
|
externalId: s
|
|
3327
|
-
} = t.data,
|
|
3308
|
+
} = t.data, c = a === "SPORTS" ? e.id ?? (await E.generateFromKey(S.Game, `SPORTS:${r}`)).toString() : e.id ?? E.generate(S.GameSession).toString(), l = [
|
|
3328
3309
|
/**/
|
|
3329
3310
|
"RTG",
|
|
3330
3311
|
"DARWIN",
|
|
@@ -3333,8 +3314,8 @@ class xt {
|
|
|
3333
3314
|
"EVOLUTION",
|
|
3334
3315
|
"EVOLUTION_NETENT",
|
|
3335
3316
|
"EVOLUTION_REDTIGER"
|
|
3336
|
-
].includes(r) ? await this.walletService.createGameSession({ input: { id:
|
|
3337
|
-
return l.ok ? { ok: !0, data: { id:
|
|
3317
|
+
].includes(r) ? await this.walletService.createGameSession({ input: { id: c, game: s } }) : await this.gameService.createGameSession({ input: { id: c, game: s } });
|
|
3318
|
+
return l.ok ? { ok: !0, data: { id: c } } : l;
|
|
3338
3319
|
}
|
|
3339
3320
|
/** @deprecated use `endGameSession__next` */
|
|
3340
3321
|
async endGameSession(e) {
|
|
@@ -3408,8 +3389,8 @@ class xt {
|
|
|
3408
3389
|
}
|
|
3409
3390
|
}
|
|
3410
3391
|
export {
|
|
3411
|
-
|
|
3392
|
+
Gt as ObjectId,
|
|
3412
3393
|
S as ObjectType,
|
|
3413
|
-
|
|
3394
|
+
Rt as Sdk
|
|
3414
3395
|
};
|
|
3415
3396
|
//# sourceMappingURL=index.mjs.map
|