@opexa/portal-sdk 0.0.73 → 0.0.75
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 +96 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +464 -614
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +5 -35
- package/dist/sdk/transformer.d.ts +3 -7
- package/dist/sdk/types.d.ts +16 -28
- package/dist/services/auth.service.d.ts +2 -6
- package/dist/services/cms-portal.service.d.ts +3 -3
- package/dist/services/game.service.d.ts +3 -14
- package/dist/services/queries.d.ts +8 -7
- package/dist/services/report.service.d.ts +1 -2
- package/dist/services/types.d.ts +49 -62
- package/dist/services/utils.d.ts +2 -2
- package/dist/services/wallet.service.d.ts +1 -12
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Te = (
|
|
3
|
-
var d = (
|
|
4
|
-
import { ObjectId as
|
|
5
|
-
import { ObjectId as
|
|
6
|
-
const
|
|
1
|
+
var ke = Object.defineProperty;
|
|
2
|
+
var Te = (o, e, t) => e in o ? ke(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var d = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { ObjectId as k } from "@opexa/object-id";
|
|
5
|
+
import { ObjectId as Ft } from "@opexa/object-id";
|
|
6
|
+
const T = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
9
9
|
Withdrawal: 14,
|
|
@@ -13,22 +13,22 @@ const E = {
|
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
15
|
};
|
|
16
|
-
function o
|
|
16
|
+
function i(o, ...e) {
|
|
17
17
|
let t = "";
|
|
18
|
-
for (const [r, a] of
|
|
18
|
+
for (const [r, a] of o.entries()) {
|
|
19
19
|
const s = e.at(r) ?? "";
|
|
20
20
|
t = `${t}${a}${s}`;
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const L =
|
|
24
|
+
const L = i`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`, _e = i`
|
|
32
32
|
${L}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
@@ -38,7 +38,7 @@ const L = o`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`, ve = i`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const L = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`, Me = i`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const L = o`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`, Ne = i`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const L = o`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`, Re =
|
|
74
|
+
`, Re = i`
|
|
75
75
|
mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
|
|
76
76
|
pointsToCashConversion(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
@@ -79,7 +79,7 @@ const L = o`
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`, Ie = i`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -107,51 +107,38 @@ const L = o`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`, ge =
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
110
|
+
`, ge = {
|
|
111
|
+
current: i`
|
|
112
|
+
query GameSession($id: ObjectId!) {
|
|
113
|
+
node(id: $id) {
|
|
114
|
+
... on GameSession {
|
|
115
|
+
id
|
|
116
|
+
game
|
|
117
|
+
status
|
|
118
|
+
launchUrl
|
|
119
|
+
dateTimeCreated
|
|
120
|
+
dateTimeLastUpdated
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
|
-
totalCount
|
|
125
|
-
pageInfo {
|
|
126
|
-
hasNextPage
|
|
127
|
-
endCursor
|
|
128
|
-
}
|
|
129
123
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
node(id: $id) {
|
|
145
|
-
... on GameSession {
|
|
146
|
-
id
|
|
147
|
-
status
|
|
148
|
-
launchUrl
|
|
149
|
-
dateTimeCreated
|
|
150
|
-
dateTimeLastUpdated
|
|
124
|
+
`,
|
|
125
|
+
legacy: i`
|
|
126
|
+
query GameSession($id: ObjectId!) {
|
|
127
|
+
node(id: $id) {
|
|
128
|
+
... on GameSession {
|
|
129
|
+
id
|
|
130
|
+
game {
|
|
131
|
+
id
|
|
132
|
+
}
|
|
133
|
+
status
|
|
134
|
+
launchUrl
|
|
135
|
+
dateTimeCreated
|
|
136
|
+
dateTimeLastUpdated
|
|
137
|
+
}
|
|
151
138
|
}
|
|
152
139
|
}
|
|
153
|
-
|
|
154
|
-
|
|
140
|
+
`
|
|
141
|
+
}, be = i`
|
|
155
142
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
156
143
|
createGameSession(input: $input) {
|
|
157
144
|
... on GameDoesNotExistError {
|
|
@@ -159,25 +146,28 @@ const L = o`
|
|
|
159
146
|
}
|
|
160
147
|
}
|
|
161
148
|
}
|
|
162
|
-
`,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
149
|
+
`, Ae = {
|
|
150
|
+
current: i`
|
|
151
|
+
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
152
|
+
endGameSession(input: $input)
|
|
153
|
+
}
|
|
154
|
+
`,
|
|
155
|
+
legacy: i`
|
|
156
|
+
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
157
|
+
endGameSession(input: $input) {
|
|
158
|
+
... on GameSessionDoesNotExistError {
|
|
159
|
+
__typename
|
|
160
|
+
}
|
|
161
|
+
... on GameSessionAlreadyClosedError {
|
|
162
|
+
__typename
|
|
163
|
+
}
|
|
164
|
+
... on GameProviderError {
|
|
165
|
+
__typename
|
|
166
|
+
}
|
|
177
167
|
}
|
|
178
168
|
}
|
|
179
|
-
|
|
180
|
-
|
|
169
|
+
`
|
|
170
|
+
}, De = i`
|
|
181
171
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
182
172
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
183
173
|
edges {
|
|
@@ -203,7 +193,7 @@ const L = o`
|
|
|
203
193
|
}
|
|
204
194
|
}
|
|
205
195
|
}
|
|
206
|
-
`,
|
|
196
|
+
`, Pe = i`
|
|
207
197
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
208
198
|
member {
|
|
209
199
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -270,7 +260,7 @@ const L = o`
|
|
|
270
260
|
}
|
|
271
261
|
}
|
|
272
262
|
}
|
|
273
|
-
`,
|
|
263
|
+
`, $e = i`
|
|
274
264
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
275
265
|
createGCashWithdrawal(input: $input) {
|
|
276
266
|
... on AccountNotVerifiedError {
|
|
@@ -293,7 +283,7 @@ const L = o`
|
|
|
293
283
|
}
|
|
294
284
|
}
|
|
295
285
|
}
|
|
296
|
-
`,
|
|
286
|
+
`, xe = i`
|
|
297
287
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
298
288
|
createMayaWithdrawal(input: $input) {
|
|
299
289
|
... on AccountNotVerifiedError {
|
|
@@ -316,7 +306,7 @@ const L = o`
|
|
|
316
306
|
}
|
|
317
307
|
}
|
|
318
308
|
}
|
|
319
|
-
`,
|
|
309
|
+
`, Ge = i`
|
|
320
310
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
321
311
|
createMayaAppWithdrawal(input: $input) {
|
|
322
312
|
... on AccountNotVerifiedError {
|
|
@@ -336,7 +326,7 @@ const L = o`
|
|
|
336
326
|
}
|
|
337
327
|
}
|
|
338
328
|
}
|
|
339
|
-
`,
|
|
329
|
+
`, Ue = i`
|
|
340
330
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
341
331
|
createBankWithdrawal(input: $input) {
|
|
342
332
|
... on MobileNumberNotVerifiedError {
|
|
@@ -359,11 +349,11 @@ const L = o`
|
|
|
359
349
|
}
|
|
360
350
|
}
|
|
361
351
|
}
|
|
362
|
-
`,
|
|
352
|
+
`, We = i`
|
|
363
353
|
query RemainingDailyWithdrawalsCount {
|
|
364
354
|
remainingDailyWithdrawalsCount
|
|
365
355
|
}
|
|
366
|
-
`,
|
|
356
|
+
`, Oe = i`
|
|
367
357
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
368
358
|
member {
|
|
369
359
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -392,7 +382,7 @@ const L = o`
|
|
|
392
382
|
}
|
|
393
383
|
}
|
|
394
384
|
}
|
|
395
|
-
`,
|
|
385
|
+
`, qe = i`
|
|
396
386
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
397
387
|
createGCashDeposit(input: $input) {
|
|
398
388
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -421,7 +411,7 @@ const L = o`
|
|
|
421
411
|
}
|
|
422
412
|
}
|
|
423
413
|
}
|
|
424
|
-
`,
|
|
414
|
+
`, Be = i`
|
|
425
415
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
426
416
|
createMayaDeposit(input: $input) {
|
|
427
417
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -450,7 +440,7 @@ const L = o`
|
|
|
450
440
|
}
|
|
451
441
|
}
|
|
452
442
|
}
|
|
453
|
-
`,
|
|
443
|
+
`, Fe = i`
|
|
454
444
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
455
445
|
createMayaAppDeposit(input: $input) {
|
|
456
446
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -479,7 +469,7 @@ const L = o`
|
|
|
479
469
|
}
|
|
480
470
|
}
|
|
481
471
|
}
|
|
482
|
-
`,
|
|
472
|
+
`, Le = i`
|
|
483
473
|
query Deposit($id: ObjectId!) {
|
|
484
474
|
node(id: $id) {
|
|
485
475
|
... on GCashDeposit {
|
|
@@ -511,13 +501,13 @@ const L = o`
|
|
|
511
501
|
}
|
|
512
502
|
}
|
|
513
503
|
}
|
|
514
|
-
`,
|
|
504
|
+
`, Ve = i`
|
|
515
505
|
query DepositsCount {
|
|
516
506
|
member {
|
|
517
507
|
depositsCount
|
|
518
508
|
}
|
|
519
509
|
}
|
|
520
|
-
`,
|
|
510
|
+
`, He = i`
|
|
521
511
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
522
512
|
member {
|
|
523
513
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -558,7 +548,7 @@ const L = o`
|
|
|
558
548
|
}
|
|
559
549
|
}
|
|
560
550
|
}
|
|
561
|
-
`,
|
|
551
|
+
`, Ye = i`
|
|
562
552
|
query LatestBetRecords {
|
|
563
553
|
latestBetRecords {
|
|
564
554
|
id
|
|
@@ -578,7 +568,7 @@ const L = o`
|
|
|
578
568
|
dateTimeCreated
|
|
579
569
|
}
|
|
580
570
|
}
|
|
581
|
-
`,
|
|
571
|
+
`, je = i`
|
|
582
572
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
583
573
|
member {
|
|
584
574
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -604,7 +594,7 @@ const L = o`
|
|
|
604
594
|
}
|
|
605
595
|
}
|
|
606
596
|
}
|
|
607
|
-
`, Y =
|
|
597
|
+
`, Y = i`
|
|
608
598
|
${L}
|
|
609
599
|
|
|
610
600
|
fragment PromoFragment on Promo {
|
|
@@ -623,7 +613,7 @@ const L = o`
|
|
|
623
613
|
dateTimeCreated
|
|
624
614
|
dateTimeLastUpdated
|
|
625
615
|
}
|
|
626
|
-
`,
|
|
616
|
+
`, Qe = i`
|
|
627
617
|
${Y}
|
|
628
618
|
|
|
629
619
|
query Promos {
|
|
@@ -631,7 +621,7 @@ const L = o`
|
|
|
631
621
|
...PromoFragment
|
|
632
622
|
}
|
|
633
623
|
}
|
|
634
|
-
`,
|
|
624
|
+
`, Ke = i`
|
|
635
625
|
${Y}
|
|
636
626
|
|
|
637
627
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -639,7 +629,7 @@ const L = o`
|
|
|
639
629
|
...PromoFragment
|
|
640
630
|
}
|
|
641
631
|
}
|
|
642
|
-
`, Ee =
|
|
632
|
+
`, Ee = i`
|
|
643
633
|
${L}
|
|
644
634
|
|
|
645
635
|
fragment CashbackFragment on Cashback {
|
|
@@ -656,7 +646,7 @@ const L = o`
|
|
|
656
646
|
dateTimeCreated
|
|
657
647
|
dateTimeLastUpdated
|
|
658
648
|
}
|
|
659
|
-
`,
|
|
649
|
+
`, Je = i`
|
|
660
650
|
${Ee}
|
|
661
651
|
|
|
662
652
|
query Cashbacks {
|
|
@@ -664,7 +654,7 @@ const L = o`
|
|
|
664
654
|
...CashbackFragment
|
|
665
655
|
}
|
|
666
656
|
}
|
|
667
|
-
`,
|
|
657
|
+
`, ze = i`
|
|
668
658
|
${Y}
|
|
669
659
|
|
|
670
660
|
query Bonus {
|
|
@@ -693,7 +683,7 @@ const L = o`
|
|
|
693
683
|
dateTimeLastUpdated
|
|
694
684
|
}
|
|
695
685
|
}
|
|
696
|
-
`,
|
|
686
|
+
`, Xe = i`
|
|
697
687
|
${Ee}
|
|
698
688
|
|
|
699
689
|
query CashbackBonuses {
|
|
@@ -707,7 +697,7 @@ const L = o`
|
|
|
707
697
|
dateTimeLastUpdated
|
|
708
698
|
}
|
|
709
699
|
}
|
|
710
|
-
`,
|
|
700
|
+
`, Ze = i`
|
|
711
701
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
712
702
|
claimCashbackBonus(input: $input) {
|
|
713
703
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -715,13 +705,15 @@ const L = o`
|
|
|
715
705
|
}
|
|
716
706
|
}
|
|
717
707
|
}
|
|
718
|
-
|
|
708
|
+
`;
|
|
709
|
+
i`
|
|
719
710
|
query Member {
|
|
720
711
|
member {
|
|
721
712
|
dateTimeLastActive
|
|
722
713
|
}
|
|
723
714
|
}
|
|
724
|
-
|
|
715
|
+
`;
|
|
716
|
+
const et = i`
|
|
725
717
|
query MemberAccount {
|
|
726
718
|
memberAccount: self {
|
|
727
719
|
... on MemberAccount {
|
|
@@ -745,7 +737,7 @@ const L = o`
|
|
|
745
737
|
}
|
|
746
738
|
}
|
|
747
739
|
}
|
|
748
|
-
`,
|
|
740
|
+
`, tt = i`
|
|
749
741
|
${L}
|
|
750
742
|
|
|
751
743
|
query MemberVerification {
|
|
@@ -770,7 +762,7 @@ const L = o`
|
|
|
770
762
|
}
|
|
771
763
|
}
|
|
772
764
|
}
|
|
773
|
-
`,
|
|
765
|
+
`, rt = i`
|
|
774
766
|
mutation RegisterMemberAccount(
|
|
775
767
|
$input: RegisterMemberAccountInput!
|
|
776
768
|
$referralCode: String
|
|
@@ -806,7 +798,7 @@ const L = o`
|
|
|
806
798
|
}
|
|
807
799
|
}
|
|
808
800
|
}
|
|
809
|
-
`,
|
|
801
|
+
`, at = i`
|
|
810
802
|
mutation RegisterMemberAccountViaMobile(
|
|
811
803
|
$input: RegisterMemberAccountViaMobileInput!
|
|
812
804
|
$referralCode: String
|
|
@@ -833,7 +825,7 @@ const L = o`
|
|
|
833
825
|
}
|
|
834
826
|
}
|
|
835
827
|
}
|
|
836
|
-
`,
|
|
828
|
+
`, ot = i`
|
|
837
829
|
mutation RegisterMemberAccount(
|
|
838
830
|
$input: RegisterMemberAccountInput_next!
|
|
839
831
|
$reCAPTCHAResponse: String
|
|
@@ -865,7 +857,7 @@ const L = o`
|
|
|
865
857
|
}
|
|
866
858
|
}
|
|
867
859
|
}
|
|
868
|
-
`,
|
|
860
|
+
`, nt = i`
|
|
869
861
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
870
862
|
registerMayaMemberAccount(input: $input) {
|
|
871
863
|
... on AccountNameNotAvailableError {
|
|
@@ -873,7 +865,7 @@ const L = o`
|
|
|
873
865
|
}
|
|
874
866
|
}
|
|
875
867
|
}
|
|
876
|
-
`,
|
|
868
|
+
`, it = i`
|
|
877
869
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
878
870
|
updateMemberAccount(input: $input) {
|
|
879
871
|
... on AccountNameNotAvailableError {
|
|
@@ -899,7 +891,7 @@ const L = o`
|
|
|
899
891
|
}
|
|
900
892
|
}
|
|
901
893
|
}
|
|
902
|
-
`,
|
|
894
|
+
`, st = i`
|
|
903
895
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
904
896
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
905
897
|
... on AccountNotFoundError {
|
|
@@ -910,11 +902,11 @@ const L = o`
|
|
|
910
902
|
}
|
|
911
903
|
}
|
|
912
904
|
}
|
|
913
|
-
`,
|
|
905
|
+
`, ct = i`
|
|
914
906
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
915
907
|
deleteMemberAccount(input: $input)
|
|
916
908
|
}
|
|
917
|
-
`,
|
|
909
|
+
`, dt = i`
|
|
918
910
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
919
911
|
verifyMobileNumber(input: $input) {
|
|
920
912
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -925,7 +917,7 @@ const L = o`
|
|
|
925
917
|
}
|
|
926
918
|
}
|
|
927
919
|
}
|
|
928
|
-
`,
|
|
920
|
+
`, ut = i`
|
|
929
921
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
930
922
|
createMemberVerification(input: $input) {
|
|
931
923
|
... on FileDoesNotExistError {
|
|
@@ -939,7 +931,7 @@ const L = o`
|
|
|
939
931
|
}
|
|
940
932
|
}
|
|
941
933
|
}
|
|
942
|
-
`,
|
|
934
|
+
`, mt = i`
|
|
943
935
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
944
936
|
updateMemberVerification(input: $input) {
|
|
945
937
|
... on FileDoesNotExistError {
|
|
@@ -956,7 +948,7 @@ const L = o`
|
|
|
956
948
|
}
|
|
957
949
|
}
|
|
958
950
|
}
|
|
959
|
-
`,
|
|
951
|
+
`, lt = i`
|
|
960
952
|
query ProfileCompletion {
|
|
961
953
|
profileCompletion {
|
|
962
954
|
completionPercentage
|
|
@@ -967,7 +959,7 @@ const L = o`
|
|
|
967
959
|
accountPassword
|
|
968
960
|
}
|
|
969
961
|
}
|
|
970
|
-
`,
|
|
962
|
+
`, pt = i`
|
|
971
963
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
972
964
|
sendVerificationCode(input: $input) {
|
|
973
965
|
... on InvalidPlatformError {
|
|
@@ -978,7 +970,7 @@ const L = o`
|
|
|
978
970
|
}
|
|
979
971
|
}
|
|
980
972
|
}
|
|
981
|
-
`,
|
|
973
|
+
`, ft = i`
|
|
982
974
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
983
975
|
minimumAmount
|
|
984
976
|
maximumAmount
|
|
@@ -1032,7 +1024,7 @@ const L = o`
|
|
|
1032
1024
|
multiplier
|
|
1033
1025
|
}
|
|
1034
1026
|
}
|
|
1035
|
-
`,
|
|
1027
|
+
`, ht = i`
|
|
1036
1028
|
query MayaSession($id: ObjectId!) {
|
|
1037
1029
|
mayaSession(id: $id) {
|
|
1038
1030
|
id
|
|
@@ -1040,11 +1032,11 @@ const L = o`
|
|
|
1040
1032
|
dateTimeCreated
|
|
1041
1033
|
}
|
|
1042
1034
|
}
|
|
1043
|
-
`,
|
|
1035
|
+
`, wt = i`
|
|
1044
1036
|
mutation ValidateMayaSession {
|
|
1045
1037
|
validateMayaSession: validMayaSession
|
|
1046
1038
|
}
|
|
1047
|
-
`,
|
|
1039
|
+
`, yt = i`
|
|
1048
1040
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1049
1041
|
member {
|
|
1050
1042
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1069,11 +1061,11 @@ const L = o`
|
|
|
1069
1061
|
}
|
|
1070
1062
|
}
|
|
1071
1063
|
}
|
|
1072
|
-
`,
|
|
1064
|
+
`, gt = i`
|
|
1073
1065
|
query ReferralCode {
|
|
1074
1066
|
referralCode
|
|
1075
1067
|
}
|
|
1076
|
-
`,
|
|
1068
|
+
`, bt = i`
|
|
1077
1069
|
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1078
1070
|
updateReferralCode(input: $input) {
|
|
1079
1071
|
... on ReferralCodeNotAvailableError {
|
|
@@ -1081,7 +1073,7 @@ const L = o`
|
|
|
1081
1073
|
}
|
|
1082
1074
|
}
|
|
1083
1075
|
}
|
|
1084
|
-
`,
|
|
1076
|
+
`, At = i`
|
|
1085
1077
|
query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
|
|
1086
1078
|
member {
|
|
1087
1079
|
referrals(first: $first, after: $after, filter: $filter) {
|
|
@@ -1116,9 +1108,9 @@ const L = o`
|
|
|
1116
1108
|
}
|
|
1117
1109
|
}
|
|
1118
1110
|
`;
|
|
1119
|
-
function
|
|
1111
|
+
function u(o) {
|
|
1120
1112
|
return {
|
|
1121
|
-
name:
|
|
1113
|
+
name: o,
|
|
1122
1114
|
message: {
|
|
1123
1115
|
AccountNameNotAvailableError: "Username is no longer available",
|
|
1124
1116
|
AccountNotFoundError: "Account does not exist",
|
|
@@ -1168,60 +1160,60 @@ function m(n) {
|
|
|
1168
1160
|
InvalidToken: "Invalid token",
|
|
1169
1161
|
InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
|
|
1170
1162
|
SessionExpired: "Session expired"
|
|
1171
|
-
}[
|
|
1163
|
+
}[o]
|
|
1172
1164
|
};
|
|
1173
1165
|
}
|
|
1174
|
-
class
|
|
1166
|
+
class Et {
|
|
1175
1167
|
constructor(e) {
|
|
1176
1168
|
d(this, "client");
|
|
1177
1169
|
this.client = e;
|
|
1178
1170
|
}
|
|
1179
1171
|
/** aka `Query.self` */
|
|
1180
1172
|
async memberAccount() {
|
|
1181
|
-
const e = await this.client.request(
|
|
1173
|
+
const e = await this.client.request(et);
|
|
1182
1174
|
return e.ok ? {
|
|
1183
1175
|
ok: !0,
|
|
1184
1176
|
data: e.data.memberAccount
|
|
1185
1177
|
} : e;
|
|
1186
1178
|
}
|
|
1187
1179
|
async registerMemberAccount(e) {
|
|
1188
|
-
const t = await this.client.request(
|
|
1180
|
+
const t = await this.client.request(rt, e);
|
|
1189
1181
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1190
1182
|
ok: !1,
|
|
1191
|
-
error:
|
|
1183
|
+
error: u(t.data.registerMemberAccount.__typename)
|
|
1192
1184
|
} : {
|
|
1193
1185
|
ok: !0
|
|
1194
1186
|
} : t;
|
|
1195
1187
|
}
|
|
1196
1188
|
async registerMemberAccountViaMobile(e) {
|
|
1197
|
-
const t = await this.client.request(
|
|
1189
|
+
const t = await this.client.request(at, e);
|
|
1198
1190
|
return t.ok ? t.data.registerMemberAccountViaMobile ? {
|
|
1199
1191
|
ok: !1,
|
|
1200
|
-
error:
|
|
1192
|
+
error: u(t.data.registerMemberAccountViaMobile.__typename)
|
|
1201
1193
|
} : {
|
|
1202
1194
|
ok: !0
|
|
1203
1195
|
} : t;
|
|
1204
1196
|
}
|
|
1205
1197
|
async registerMemberAccount__next(e) {
|
|
1206
|
-
const t = await this.client.request(
|
|
1198
|
+
const t = await this.client.request(ot, e);
|
|
1207
1199
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1208
1200
|
ok: !1,
|
|
1209
|
-
error:
|
|
1201
|
+
error: u(t.data.registerMemberAccount.__typename)
|
|
1210
1202
|
} : {
|
|
1211
1203
|
ok: !0
|
|
1212
1204
|
} : t;
|
|
1213
1205
|
}
|
|
1214
1206
|
async updateMemberAccount(e) {
|
|
1215
|
-
const t = await this.client.request(
|
|
1207
|
+
const t = await this.client.request(it, e);
|
|
1216
1208
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1217
1209
|
ok: !1,
|
|
1218
|
-
error:
|
|
1210
|
+
error: u(t.data.updateMemberAccount.__typename)
|
|
1219
1211
|
} : {
|
|
1220
1212
|
ok: !0
|
|
1221
1213
|
} : t;
|
|
1222
1214
|
}
|
|
1223
1215
|
async deleteMemberAccount(e) {
|
|
1224
|
-
const t = await this.client.request(
|
|
1216
|
+
const t = await this.client.request(ct, e);
|
|
1225
1217
|
return t.ok ? t.data.deleteMemberAccount ? {
|
|
1226
1218
|
ok: !0
|
|
1227
1219
|
} : {
|
|
@@ -1234,61 +1226,61 @@ class _t {
|
|
|
1234
1226
|
}
|
|
1235
1227
|
async resetPassword(e) {
|
|
1236
1228
|
const t = await this.client.request(
|
|
1237
|
-
|
|
1229
|
+
st,
|
|
1238
1230
|
e
|
|
1239
1231
|
);
|
|
1240
1232
|
return t.ok ? t.data.resetPassword ? {
|
|
1241
1233
|
ok: !1,
|
|
1242
|
-
error:
|
|
1234
|
+
error: u(t.data.resetPassword.__typename)
|
|
1243
1235
|
} : {
|
|
1244
1236
|
ok: !0
|
|
1245
1237
|
} : t;
|
|
1246
1238
|
}
|
|
1247
1239
|
async profileCompletion() {
|
|
1248
|
-
const e = await this.client.request(
|
|
1240
|
+
const e = await this.client.request(lt);
|
|
1249
1241
|
return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
|
|
1250
1242
|
}
|
|
1251
1243
|
async platform() {
|
|
1252
|
-
return await this.client.request(
|
|
1244
|
+
return await this.client.request(ft);
|
|
1253
1245
|
}
|
|
1254
1246
|
async sendVerificationCode(e) {
|
|
1255
|
-
const t = await this.client.request(
|
|
1247
|
+
const t = await this.client.request(pt, e);
|
|
1256
1248
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1257
1249
|
ok: !1,
|
|
1258
|
-
error:
|
|
1250
|
+
error: u(t.data.sendVerificationCode.__typename)
|
|
1259
1251
|
} : {
|
|
1260
1252
|
ok: !0
|
|
1261
1253
|
} : t;
|
|
1262
1254
|
}
|
|
1263
1255
|
async verifyMobileNumber(e) {
|
|
1264
|
-
const t = await this.client.request(
|
|
1256
|
+
const t = await this.client.request(dt, e);
|
|
1265
1257
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1266
1258
|
ok: !1,
|
|
1267
|
-
error:
|
|
1259
|
+
error: u(t.data.verifyMobileNumber.__typename)
|
|
1268
1260
|
} : {
|
|
1269
1261
|
ok: !0
|
|
1270
1262
|
} : t;
|
|
1271
1263
|
}
|
|
1272
1264
|
async createMemberVerification(e) {
|
|
1273
|
-
const t = await this.client.request(
|
|
1265
|
+
const t = await this.client.request(ut, e);
|
|
1274
1266
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1275
1267
|
ok: !1,
|
|
1276
|
-
error:
|
|
1268
|
+
error: u(t.data.createMemberVerification.__typename)
|
|
1277
1269
|
} : {
|
|
1278
1270
|
ok: !0
|
|
1279
1271
|
} : t;
|
|
1280
1272
|
}
|
|
1281
1273
|
async updateMemberVerification(e) {
|
|
1282
|
-
const t = await this.client.request(
|
|
1274
|
+
const t = await this.client.request(mt, e);
|
|
1283
1275
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1284
1276
|
ok: !1,
|
|
1285
|
-
error:
|
|
1277
|
+
error: u(t.data.updateMemberVerification.__typename)
|
|
1286
1278
|
} : {
|
|
1287
1279
|
ok: !0
|
|
1288
1280
|
} : t;
|
|
1289
1281
|
}
|
|
1290
1282
|
async memberVerification() {
|
|
1291
|
-
const e = await this.client.request(
|
|
1283
|
+
const e = await this.client.request(tt);
|
|
1292
1284
|
return e.ok ? {
|
|
1293
1285
|
ok: !0,
|
|
1294
1286
|
data: e.data.memberAccount.verification
|
|
@@ -1296,7 +1288,7 @@ class _t {
|
|
|
1296
1288
|
}
|
|
1297
1289
|
async announcements(e) {
|
|
1298
1290
|
const t = await this.client.request(
|
|
1299
|
-
|
|
1291
|
+
De,
|
|
1300
1292
|
e
|
|
1301
1293
|
);
|
|
1302
1294
|
return t.ok ? {
|
|
@@ -1305,36 +1297,36 @@ class _t {
|
|
|
1305
1297
|
} : t;
|
|
1306
1298
|
}
|
|
1307
1299
|
async registerMayaMemberAccount(e) {
|
|
1308
|
-
const t = await this.client.request(
|
|
1300
|
+
const t = await this.client.request(nt, e);
|
|
1309
1301
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1310
1302
|
ok: !1,
|
|
1311
|
-
error:
|
|
1303
|
+
error: u(t.data.registerMayaMemberAccount.__typename)
|
|
1312
1304
|
} : {
|
|
1313
1305
|
ok: !0
|
|
1314
1306
|
} : t;
|
|
1315
1307
|
}
|
|
1316
1308
|
async referralCode() {
|
|
1317
|
-
const e = await this.client.request(
|
|
1309
|
+
const e = await this.client.request(gt);
|
|
1318
1310
|
return e.ok ? {
|
|
1319
1311
|
ok: !0,
|
|
1320
1312
|
data: e.data.referralCode
|
|
1321
1313
|
} : e;
|
|
1322
1314
|
}
|
|
1323
1315
|
async updateReferralCode(e) {
|
|
1324
|
-
const t = await this.client.request(
|
|
1316
|
+
const t = await this.client.request(bt, e);
|
|
1325
1317
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1326
1318
|
ok: !1,
|
|
1327
|
-
error:
|
|
1319
|
+
error: u(t.data.updateReferralCode.__typename)
|
|
1328
1320
|
} : {
|
|
1329
1321
|
ok: !0
|
|
1330
1322
|
} : t;
|
|
1331
1323
|
}
|
|
1332
1324
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1325
|
+
function A(o) {
|
|
1326
|
+
return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
|
|
1335
1327
|
}
|
|
1336
|
-
function
|
|
1337
|
-
const t = V[
|
|
1328
|
+
function h(o, e) {
|
|
1329
|
+
const t = V[o] ? V[o] : V[500];
|
|
1338
1330
|
return {
|
|
1339
1331
|
name: t.name,
|
|
1340
1332
|
message: e ?? t.message
|
|
@@ -1349,7 +1341,7 @@ const V = {
|
|
|
1349
1341
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1350
1342
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1351
1343
|
};
|
|
1352
|
-
class
|
|
1344
|
+
class St {
|
|
1353
1345
|
constructor(e) {
|
|
1354
1346
|
d(this, "url");
|
|
1355
1347
|
d(this, "platform");
|
|
@@ -1366,7 +1358,7 @@ class Tt {
|
|
|
1366
1358
|
t.set("Authorization", `Basic ${a}`);
|
|
1367
1359
|
}
|
|
1368
1360
|
if (e.mobileNumber) {
|
|
1369
|
-
const a = `${
|
|
1361
|
+
const a = `${A(e.mobileNumber)}:${e.verificationCode}`, s = Buffer.from(a).toString("base64");
|
|
1370
1362
|
console.log(`MobileNumberOTP ${s}`), t.set("Authorization", `MobileNumberOTP ${s}`);
|
|
1371
1363
|
}
|
|
1372
1364
|
e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`);
|
|
@@ -1380,15 +1372,15 @@ class Tt {
|
|
|
1380
1372
|
data: a
|
|
1381
1373
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1382
1374
|
ok: !1,
|
|
1383
|
-
error:
|
|
1375
|
+
error: u("AccountBlacklisted")
|
|
1384
1376
|
} : {
|
|
1385
1377
|
ok: !1,
|
|
1386
|
-
error:
|
|
1378
|
+
error: h(r.status)
|
|
1387
1379
|
};
|
|
1388
1380
|
} catch {
|
|
1389
1381
|
return {
|
|
1390
1382
|
ok: !1,
|
|
1391
|
-
error:
|
|
1383
|
+
error: h(500)
|
|
1392
1384
|
};
|
|
1393
1385
|
}
|
|
1394
1386
|
}
|
|
@@ -1409,15 +1401,15 @@ class Tt {
|
|
|
1409
1401
|
data: a
|
|
1410
1402
|
} : r.status === 401 || r.status === 403 ? {
|
|
1411
1403
|
ok: !1,
|
|
1412
|
-
error:
|
|
1404
|
+
error: u("InvalidTokenOrSecretAnswer")
|
|
1413
1405
|
} : {
|
|
1414
1406
|
ok: !1,
|
|
1415
|
-
error:
|
|
1407
|
+
error: h(r.status)
|
|
1416
1408
|
};
|
|
1417
1409
|
} catch {
|
|
1418
1410
|
return {
|
|
1419
1411
|
ok: !1,
|
|
1420
|
-
error:
|
|
1412
|
+
error: h(500)
|
|
1421
1413
|
};
|
|
1422
1414
|
}
|
|
1423
1415
|
}
|
|
@@ -1436,18 +1428,18 @@ class Tt {
|
|
|
1436
1428
|
data: a
|
|
1437
1429
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1438
1430
|
ok: !1,
|
|
1439
|
-
error:
|
|
1431
|
+
error: u("AccountBlacklisted")
|
|
1440
1432
|
} : r.status === 403 || r.status === 401 ? {
|
|
1441
1433
|
ok: !1,
|
|
1442
|
-
error:
|
|
1434
|
+
error: u("InvalidToken")
|
|
1443
1435
|
} : {
|
|
1444
1436
|
ok: !1,
|
|
1445
|
-
error:
|
|
1437
|
+
error: h(r.status)
|
|
1446
1438
|
};
|
|
1447
1439
|
} catch {
|
|
1448
1440
|
return {
|
|
1449
1441
|
ok: !1,
|
|
1450
|
-
error:
|
|
1442
|
+
error: h(500)
|
|
1451
1443
|
};
|
|
1452
1444
|
}
|
|
1453
1445
|
}
|
|
@@ -1459,9 +1451,9 @@ class Tt {
|
|
|
1459
1451
|
method: "DELETE",
|
|
1460
1452
|
headers: t
|
|
1461
1453
|
});
|
|
1462
|
-
return r.ok ? { ok: !0 } : { ok: !1, error:
|
|
1454
|
+
return r.ok ? { ok: !0 } : { ok: !1, error: h(r.status) };
|
|
1463
1455
|
} catch {
|
|
1464
|
-
return { ok: !1, error:
|
|
1456
|
+
return { ok: !1, error: h(500) };
|
|
1465
1457
|
}
|
|
1466
1458
|
}
|
|
1467
1459
|
async verifySession(e) {
|
|
@@ -1476,62 +1468,34 @@ class Tt {
|
|
|
1476
1468
|
return !0;
|
|
1477
1469
|
}
|
|
1478
1470
|
}
|
|
1479
|
-
/**
|
|
1480
|
-
* @deprecated use `sendOtp`
|
|
1481
|
-
*/
|
|
1482
1471
|
async sendVerificationCode(e) {
|
|
1483
|
-
|
|
1484
|
-
try {
|
|
1485
|
-
const r = await fetch(`${this.url}/sendVerificationCode`, {
|
|
1486
|
-
method: "POST",
|
|
1487
|
-
headers: this.headers,
|
|
1488
|
-
body: JSON.stringify({
|
|
1489
|
-
channel: "SMS",
|
|
1490
|
-
recipient: t
|
|
1491
|
-
})
|
|
1492
|
-
});
|
|
1493
|
-
return r.ok ? { ok: !0 } : {
|
|
1494
|
-
ok: !1,
|
|
1495
|
-
error: f(r.status)
|
|
1496
|
-
};
|
|
1497
|
-
} catch {
|
|
1498
|
-
return {
|
|
1499
|
-
ok: !1,
|
|
1500
|
-
error: f(500)
|
|
1501
|
-
};
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
async sendVerificationCode__next(e) {
|
|
1505
|
-
const t = b(e);
|
|
1472
|
+
if (e.channel === "EMAIL") throw new Error("Email channel is not yet supported");
|
|
1506
1473
|
try {
|
|
1507
|
-
const
|
|
1474
|
+
const t = await fetch(`${this.url}/otps`, {
|
|
1508
1475
|
method: "POST",
|
|
1509
1476
|
headers: this.headers,
|
|
1510
|
-
body: JSON.stringify(
|
|
1511
|
-
channel: "SMS",
|
|
1512
|
-
recipient: t
|
|
1513
|
-
})
|
|
1477
|
+
body: JSON.stringify(e)
|
|
1514
1478
|
});
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1479
|
+
if (t.status === 403) {
|
|
1480
|
+
const r = await t.json();
|
|
1517
1481
|
return {
|
|
1518
1482
|
ok: !1,
|
|
1519
|
-
error:
|
|
1483
|
+
error: h(t.status, r.message)
|
|
1520
1484
|
};
|
|
1521
1485
|
}
|
|
1522
|
-
return
|
|
1486
|
+
return t.ok ? { ok: !0 } : {
|
|
1523
1487
|
ok: !1,
|
|
1524
|
-
error:
|
|
1488
|
+
error: h(t.status)
|
|
1525
1489
|
};
|
|
1526
1490
|
} catch {
|
|
1527
1491
|
return {
|
|
1528
1492
|
ok: !1,
|
|
1529
|
-
error:
|
|
1493
|
+
error: h(500)
|
|
1530
1494
|
};
|
|
1531
1495
|
}
|
|
1532
1496
|
}
|
|
1533
1497
|
}
|
|
1534
|
-
class
|
|
1498
|
+
class Ct {
|
|
1535
1499
|
constructor(e) {
|
|
1536
1500
|
d(this, "url");
|
|
1537
1501
|
d(this, "siteId");
|
|
@@ -1546,22 +1510,22 @@ class vt {
|
|
|
1546
1510
|
} : e;
|
|
1547
1511
|
}
|
|
1548
1512
|
async games(e) {
|
|
1549
|
-
var a, s, c,
|
|
1513
|
+
var a, s, c, m, l, f, w, p, _, v, M, N, R, b, I, D, S, P, $, x, C, G, W, O;
|
|
1550
1514
|
const t = new URLSearchParams();
|
|
1551
|
-
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), (
|
|
1515
|
+
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), (m = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && m.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 = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && v.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (b = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.provider) != null && b.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (P = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && G.in && t.set(
|
|
1552
1516
|
"filter[tags][in]",
|
|
1553
|
-
e.filter.tags.in.map((
|
|
1554
|
-
), (
|
|
1517
|
+
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1518
|
+
), (O = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && O.notIn && t.set(
|
|
1555
1519
|
"filter[tags][nin]",
|
|
1556
|
-
e.filter.tags.notIn.map((
|
|
1520
|
+
e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
|
|
1557
1521
|
);
|
|
1558
1522
|
const r = await this.getJson("/games", t);
|
|
1559
1523
|
return r.ok ? {
|
|
1560
1524
|
ok: !0,
|
|
1561
1525
|
data: {
|
|
1562
|
-
edges: r.data.data.map((
|
|
1563
|
-
node:
|
|
1564
|
-
cursor:
|
|
1526
|
+
edges: r.data.data.map((E) => ({
|
|
1527
|
+
node: E,
|
|
1528
|
+
cursor: E.cursor
|
|
1565
1529
|
})),
|
|
1566
1530
|
totalCount: r.data.totalCount ?? 0,
|
|
1567
1531
|
pageInfo: {
|
|
@@ -1599,153 +1563,142 @@ class vt {
|
|
|
1599
1563
|
data: await a.json()
|
|
1600
1564
|
} : {
|
|
1601
1565
|
ok: !1,
|
|
1602
|
-
error:
|
|
1566
|
+
error: h(a.status)
|
|
1603
1567
|
};
|
|
1604
1568
|
} catch {
|
|
1605
1569
|
return {
|
|
1606
1570
|
ok: !1,
|
|
1607
|
-
error:
|
|
1571
|
+
error: h(500)
|
|
1608
1572
|
};
|
|
1609
1573
|
}
|
|
1610
1574
|
}
|
|
1611
1575
|
}
|
|
1612
|
-
class
|
|
1576
|
+
class kt {
|
|
1613
1577
|
constructor(e) {
|
|
1614
1578
|
d(this, "client");
|
|
1615
1579
|
this.client = e;
|
|
1616
1580
|
}
|
|
1617
1581
|
async file(e) {
|
|
1618
|
-
const t = await this.client.request(
|
|
1582
|
+
const t = await this.client.request(_e, e);
|
|
1619
1583
|
return t.ok ? {
|
|
1620
1584
|
ok: !0,
|
|
1621
1585
|
data: t.data.node
|
|
1622
1586
|
} : t;
|
|
1623
1587
|
}
|
|
1624
1588
|
async uploadPrivateImageFile(e) {
|
|
1625
|
-
const t = await this.client.upload(
|
|
1589
|
+
const t = await this.client.upload(ve, e);
|
|
1626
1590
|
return t.ok ? t.data.uploadPrivateImageFile ? {
|
|
1627
1591
|
ok: !1,
|
|
1628
|
-
error:
|
|
1592
|
+
error: u(t.data.uploadPrivateImageFile.__typename)
|
|
1629
1593
|
} : {
|
|
1630
1594
|
ok: !0
|
|
1631
1595
|
} : t;
|
|
1632
1596
|
}
|
|
1633
1597
|
}
|
|
1634
|
-
class
|
|
1598
|
+
class Tt {
|
|
1635
1599
|
constructor(e) {
|
|
1636
1600
|
d(this, "client");
|
|
1637
1601
|
this.client = e;
|
|
1638
1602
|
}
|
|
1639
|
-
/** @deprecated */
|
|
1640
|
-
async games(e) {
|
|
1641
|
-
const t = await this.client.request(ge, e);
|
|
1642
|
-
return t.ok ? { ok: t.ok, data: t.data.games } : t;
|
|
1643
|
-
}
|
|
1644
|
-
/** @deprecated */
|
|
1645
|
-
async gamesByName(e) {
|
|
1646
|
-
const t = await this.client.request(
|
|
1647
|
-
Se,
|
|
1648
|
-
e
|
|
1649
|
-
);
|
|
1650
|
-
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1651
|
-
}
|
|
1652
1603
|
async gameSession(e) {
|
|
1653
1604
|
const t = await this.client.request(
|
|
1654
|
-
|
|
1605
|
+
ge.legacy,
|
|
1655
1606
|
e
|
|
1656
1607
|
);
|
|
1657
|
-
return t.ok ? {
|
|
1608
|
+
return t.ok ? {
|
|
1609
|
+
ok: !0,
|
|
1610
|
+
data: t.data.node ? { ...t.data.node, game: t.data.node.game.id } : null
|
|
1611
|
+
} : t;
|
|
1658
1612
|
}
|
|
1659
1613
|
async createGameSession(e) {
|
|
1660
|
-
const t = await this.client.request(
|
|
1614
|
+
const t = await this.client.request(be, e);
|
|
1661
1615
|
return t.ok ? t.data.createGameSession ? {
|
|
1662
1616
|
ok: !1,
|
|
1663
|
-
error:
|
|
1617
|
+
error: u(t.data.createGameSession.__typename)
|
|
1664
1618
|
} : {
|
|
1665
1619
|
ok: !0
|
|
1666
1620
|
} : t;
|
|
1667
1621
|
}
|
|
1668
1622
|
async endGameSession(e) {
|
|
1669
|
-
const t = await this.client.request(
|
|
1623
|
+
const t = await this.client.request(Ae.legacy, e);
|
|
1670
1624
|
return t.ok ? t.data.endGameSession ? {
|
|
1671
1625
|
ok: !1,
|
|
1672
|
-
error:
|
|
1626
|
+
error: {
|
|
1627
|
+
name: "UnknownError",
|
|
1628
|
+
message: "Something went wrong."
|
|
1629
|
+
}
|
|
1673
1630
|
} : {
|
|
1674
1631
|
ok: !0
|
|
1675
1632
|
} : t;
|
|
1676
1633
|
}
|
|
1677
1634
|
}
|
|
1678
|
-
class
|
|
1635
|
+
class _t {
|
|
1679
1636
|
constructor(e) {
|
|
1680
1637
|
d(this, "client");
|
|
1681
1638
|
this.client = e;
|
|
1682
1639
|
}
|
|
1683
1640
|
async latestBetRecords() {
|
|
1684
|
-
const e = await this.client.request(
|
|
1641
|
+
const e = await this.client.request(Ye);
|
|
1685
1642
|
return e.ok ? {
|
|
1686
1643
|
ok: !0,
|
|
1687
1644
|
data: e.data.latestBetRecords
|
|
1688
1645
|
} : e;
|
|
1689
1646
|
}
|
|
1690
1647
|
}
|
|
1691
|
-
class
|
|
1648
|
+
class vt {
|
|
1692
1649
|
constructor(e) {
|
|
1693
1650
|
d(this, "client");
|
|
1694
1651
|
this.client = e;
|
|
1695
1652
|
}
|
|
1696
1653
|
async betRecords(e) {
|
|
1697
1654
|
const t = await this.client.request(
|
|
1698
|
-
|
|
1655
|
+
He,
|
|
1699
1656
|
e
|
|
1700
1657
|
);
|
|
1701
1658
|
return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
|
|
1702
1659
|
}
|
|
1703
1660
|
async transactionRecords(e) {
|
|
1704
|
-
const t = await this.client.request(
|
|
1661
|
+
const t = await this.client.request(je, e);
|
|
1705
1662
|
return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
|
|
1706
1663
|
}
|
|
1707
1664
|
async withdrawalRecords(e) {
|
|
1708
1665
|
const t = await this.client.request(
|
|
1709
|
-
|
|
1666
|
+
Pe,
|
|
1710
1667
|
e
|
|
1711
1668
|
);
|
|
1712
1669
|
return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
|
|
1713
1670
|
}
|
|
1714
1671
|
async depositRecords(e) {
|
|
1715
1672
|
const t = await this.client.request(
|
|
1716
|
-
|
|
1673
|
+
Oe,
|
|
1717
1674
|
e
|
|
1718
1675
|
);
|
|
1719
1676
|
return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
|
|
1720
1677
|
}
|
|
1721
1678
|
async depositsCount() {
|
|
1722
|
-
const e = await this.client.request(
|
|
1679
|
+
const e = await this.client.request(Ve);
|
|
1723
1680
|
return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
|
|
1724
1681
|
}
|
|
1725
|
-
async member() {
|
|
1726
|
-
const e = await this.client.request(at);
|
|
1727
|
-
return e.ok ? { ok: e.ok, data: e.data.member } : e;
|
|
1728
|
-
}
|
|
1729
1682
|
async pointsWalletTransactions(e) {
|
|
1730
|
-
const t = await this.client.request(
|
|
1683
|
+
const t = await this.client.request(Ie, e);
|
|
1731
1684
|
return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
|
|
1732
1685
|
}
|
|
1733
1686
|
async activityRecords(e) {
|
|
1734
1687
|
const t = await this.client.request(
|
|
1735
|
-
|
|
1688
|
+
yt,
|
|
1736
1689
|
e
|
|
1737
1690
|
);
|
|
1738
1691
|
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
1739
1692
|
}
|
|
1740
1693
|
async referrals(e) {
|
|
1741
1694
|
const t = await this.client.request(
|
|
1742
|
-
|
|
1695
|
+
At,
|
|
1743
1696
|
e
|
|
1744
1697
|
);
|
|
1745
1698
|
return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
|
|
1746
1699
|
}
|
|
1747
1700
|
}
|
|
1748
|
-
class
|
|
1701
|
+
class Mt {
|
|
1749
1702
|
constructor(e) {
|
|
1750
1703
|
d(this, "url");
|
|
1751
1704
|
this.url = e.url;
|
|
@@ -1757,35 +1710,35 @@ class Dt {
|
|
|
1757
1710
|
];
|
|
1758
1711
|
}
|
|
1759
1712
|
}
|
|
1760
|
-
class
|
|
1713
|
+
class Nt {
|
|
1761
1714
|
constructor(e) {
|
|
1762
1715
|
d(this, "client");
|
|
1763
1716
|
this.client = e;
|
|
1764
1717
|
}
|
|
1765
1718
|
async promos() {
|
|
1766
|
-
const e = await this.client.request(
|
|
1719
|
+
const e = await this.client.request(Qe);
|
|
1767
1720
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1768
1721
|
}
|
|
1769
1722
|
async cashbacks() {
|
|
1770
|
-
const e = await this.client.request(
|
|
1723
|
+
const e = await this.client.request(Je);
|
|
1771
1724
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1772
1725
|
}
|
|
1773
1726
|
async availablePromos(e) {
|
|
1774
1727
|
const t = await this.client.request(
|
|
1775
|
-
|
|
1728
|
+
Ke,
|
|
1776
1729
|
e
|
|
1777
1730
|
);
|
|
1778
1731
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1779
1732
|
}
|
|
1780
1733
|
async cashbackBonuses() {
|
|
1781
|
-
const e = await this.client.request(
|
|
1734
|
+
const e = await this.client.request(Xe);
|
|
1782
1735
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1783
1736
|
}
|
|
1784
1737
|
async claimCashbackBonus(e) {
|
|
1785
|
-
const t = await this.client.request(
|
|
1738
|
+
const t = await this.client.request(Ze, e);
|
|
1786
1739
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1787
1740
|
ok: !1,
|
|
1788
|
-
error:
|
|
1741
|
+
error: u(t.data.claimCashbackBonus.__typename)
|
|
1789
1742
|
} : {
|
|
1790
1743
|
ok: !0
|
|
1791
1744
|
} : {
|
|
@@ -1794,141 +1747,128 @@ class Pt {
|
|
|
1794
1747
|
};
|
|
1795
1748
|
}
|
|
1796
1749
|
async bonus() {
|
|
1797
|
-
const e = await this.client.request(
|
|
1750
|
+
const e = await this.client.request(ze);
|
|
1798
1751
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1799
1752
|
}
|
|
1800
1753
|
async wallet() {
|
|
1801
|
-
const e = await this.client.request(
|
|
1754
|
+
const e = await this.client.request(Me);
|
|
1802
1755
|
return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
|
|
1803
1756
|
}
|
|
1804
1757
|
async deposit(e) {
|
|
1805
1758
|
const t = await this.client.request(
|
|
1806
|
-
|
|
1759
|
+
Le,
|
|
1807
1760
|
e
|
|
1808
1761
|
);
|
|
1809
1762
|
return t.ok ? { ok: t.ok, data: t.data.node } : t;
|
|
1810
1763
|
}
|
|
1811
1764
|
async createGCashDeposit(e) {
|
|
1812
|
-
const t = await this.client.request(
|
|
1765
|
+
const t = await this.client.request(qe, e);
|
|
1813
1766
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
1814
1767
|
ok: !1,
|
|
1815
|
-
error:
|
|
1768
|
+
error: u(t.data.createGCashDeposit.__typename)
|
|
1816
1769
|
} : {
|
|
1817
1770
|
ok: !0
|
|
1818
1771
|
} : t;
|
|
1819
1772
|
}
|
|
1820
1773
|
async createMayaDeposit(e) {
|
|
1821
|
-
const t = await this.client.request(
|
|
1774
|
+
const t = await this.client.request(Be, e);
|
|
1822
1775
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
1823
1776
|
ok: !1,
|
|
1824
|
-
error:
|
|
1777
|
+
error: u(t.data.createMayaDeposit.__typename)
|
|
1825
1778
|
} : {
|
|
1826
1779
|
ok: !0
|
|
1827
1780
|
} : t;
|
|
1828
1781
|
}
|
|
1829
1782
|
async createMayaAppDeposit(e) {
|
|
1830
|
-
const t = await this.client.request(
|
|
1783
|
+
const t = await this.client.request(Fe, e);
|
|
1831
1784
|
return t.ok ? t.data.createMayaAppDeposit ? {
|
|
1832
1785
|
ok: !1,
|
|
1833
|
-
error:
|
|
1786
|
+
error: u(t.data.createMayaAppDeposit.__typename)
|
|
1834
1787
|
} : {
|
|
1835
1788
|
ok: !0
|
|
1836
1789
|
} : t;
|
|
1837
1790
|
}
|
|
1838
1791
|
async createGCashWithdrawal(e) {
|
|
1839
|
-
const t = await this.client.request(
|
|
1792
|
+
const t = await this.client.request($e, e);
|
|
1840
1793
|
return t.ok ? t.data.createGCashWithdrawal ? {
|
|
1841
1794
|
ok: !1,
|
|
1842
|
-
error:
|
|
1795
|
+
error: u(t.data.createGCashWithdrawal.__typename)
|
|
1843
1796
|
} : {
|
|
1844
1797
|
ok: !0
|
|
1845
1798
|
} : t;
|
|
1846
1799
|
}
|
|
1847
1800
|
async createMayaWithdrawal(e) {
|
|
1848
|
-
const t = await this.client.request(
|
|
1801
|
+
const t = await this.client.request(xe, e);
|
|
1849
1802
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1850
1803
|
ok: !1,
|
|
1851
|
-
error:
|
|
1804
|
+
error: u(t.data.createMayaWithdrawal.__typename)
|
|
1852
1805
|
} : {
|
|
1853
1806
|
ok: !0
|
|
1854
1807
|
} : t;
|
|
1855
1808
|
}
|
|
1856
1809
|
async createMayaAppWithdrawal(e) {
|
|
1857
|
-
const t = await this.client.request(
|
|
1810
|
+
const t = await this.client.request(Ge, e);
|
|
1858
1811
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1859
1812
|
ok: !1,
|
|
1860
|
-
error:
|
|
1813
|
+
error: u(t.data.createMayaAppWithdrawal.__typename)
|
|
1861
1814
|
} : {
|
|
1862
1815
|
ok: !0
|
|
1863
1816
|
} : t;
|
|
1864
1817
|
}
|
|
1865
1818
|
async createBankWithdrawal(e) {
|
|
1866
|
-
const t = await this.client.request(
|
|
1819
|
+
const t = await this.client.request(Ue, e);
|
|
1867
1820
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1868
1821
|
ok: !1,
|
|
1869
|
-
error:
|
|
1822
|
+
error: u(t.data.createBankWithdrawal.__typename)
|
|
1870
1823
|
} : {
|
|
1871
1824
|
ok: !0
|
|
1872
1825
|
} : t;
|
|
1873
1826
|
}
|
|
1874
1827
|
async remainingDailyWithdrawalsCount() {
|
|
1875
1828
|
const e = await this.client.request(
|
|
1876
|
-
|
|
1829
|
+
We
|
|
1877
1830
|
);
|
|
1878
1831
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1879
1832
|
}
|
|
1880
1833
|
async pointsWallet() {
|
|
1881
|
-
const e = await this.client.request(
|
|
1834
|
+
const e = await this.client.request(Ne);
|
|
1882
1835
|
return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
|
|
1883
1836
|
}
|
|
1884
1837
|
async pointsToCashConversion(e) {
|
|
1885
1838
|
const t = await this.client.request(Re, e);
|
|
1886
1839
|
return t.ok ? t.data.pointsToCashConversion ? {
|
|
1887
1840
|
ok: !1,
|
|
1888
|
-
error:
|
|
1841
|
+
error: u(t.data.pointsToCashConversion.__typename)
|
|
1889
1842
|
} : {
|
|
1890
1843
|
ok: !0
|
|
1891
1844
|
} : t;
|
|
1892
1845
|
}
|
|
1893
1846
|
async mayaSession(e) {
|
|
1894
1847
|
const t = await this.client.request(
|
|
1895
|
-
|
|
1848
|
+
ht,
|
|
1896
1849
|
e
|
|
1897
1850
|
);
|
|
1898
1851
|
return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
|
|
1899
1852
|
}
|
|
1900
|
-
/** @deprecated */
|
|
1901
|
-
async games(e) {
|
|
1902
|
-
const t = await this.client.request(ge, e);
|
|
1903
|
-
return t.ok ? { ok: t.ok, data: t.data.games } : t;
|
|
1904
|
-
}
|
|
1905
|
-
/** @deprecated */
|
|
1906
|
-
async gamesByName(e) {
|
|
1907
|
-
const t = await this.client.request(
|
|
1908
|
-
Se,
|
|
1909
|
-
e
|
|
1910
|
-
);
|
|
1911
|
-
return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
|
|
1912
|
-
}
|
|
1913
1853
|
async gameSession(e) {
|
|
1914
1854
|
const t = await this.client.request(
|
|
1915
|
-
|
|
1855
|
+
ge.current,
|
|
1916
1856
|
e
|
|
1917
1857
|
);
|
|
1918
1858
|
return t.ok ? { ok: !0, data: t.data.node } : t;
|
|
1919
1859
|
}
|
|
1920
1860
|
async createGameSession(e) {
|
|
1921
|
-
const t = await this.client.request(
|
|
1861
|
+
const t = await this.client.request(be, e);
|
|
1922
1862
|
return t.ok ? t.data.createGameSession ? {
|
|
1923
1863
|
ok: !1,
|
|
1924
|
-
error:
|
|
1864
|
+
error: u(t.data.createGameSession.__typename)
|
|
1925
1865
|
} : {
|
|
1926
1866
|
ok: !0
|
|
1927
1867
|
} : t;
|
|
1928
1868
|
}
|
|
1929
1869
|
async endGameSession(e) {
|
|
1930
1870
|
const t = await this.client.request(
|
|
1931
|
-
|
|
1871
|
+
Ae.current,
|
|
1932
1872
|
e
|
|
1933
1873
|
);
|
|
1934
1874
|
return t.ok ? t.data.endGameSession ? {
|
|
@@ -1943,7 +1883,7 @@ class Pt {
|
|
|
1943
1883
|
}
|
|
1944
1884
|
async validateMayaSession() {
|
|
1945
1885
|
const e = await this.client.request(
|
|
1946
|
-
|
|
1886
|
+
wt
|
|
1947
1887
|
);
|
|
1948
1888
|
return e.ok ? e.data.validateMayaSession ? {
|
|
1949
1889
|
ok: !0
|
|
@@ -1956,27 +1896,27 @@ class Pt {
|
|
|
1956
1896
|
} : e;
|
|
1957
1897
|
}
|
|
1958
1898
|
}
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1899
|
+
function Rt(o, e, t) {
|
|
1900
|
+
return o < e ? e : o > t ? t : o;
|
|
1961
1901
|
}
|
|
1962
|
-
function H(
|
|
1963
|
-
return Object.prototype.toString.call(
|
|
1902
|
+
function H(o) {
|
|
1903
|
+
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
1964
1904
|
}
|
|
1965
|
-
function
|
|
1905
|
+
function It(o) {
|
|
1966
1906
|
const e = [];
|
|
1967
1907
|
function t(r, a = []) {
|
|
1968
1908
|
for (const s in r) {
|
|
1969
1909
|
const c = r[s];
|
|
1970
|
-
H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(
|
|
1910
|
+
H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Dt(c), [...a, s]) : e.push({
|
|
1971
1911
|
key: [...a, s],
|
|
1972
1912
|
value: c
|
|
1973
1913
|
});
|
|
1974
1914
|
}
|
|
1975
1915
|
}
|
|
1976
|
-
return t(
|
|
1916
|
+
return t(o), e;
|
|
1977
1917
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return
|
|
1918
|
+
function Dt(o) {
|
|
1919
|
+
return o.reduce((e, t, r) => (e[r] = t, e), {});
|
|
1980
1920
|
}
|
|
1981
1921
|
class U {
|
|
1982
1922
|
constructor(e, t) {
|
|
@@ -2015,23 +1955,23 @@ class U {
|
|
|
2015
1955
|
return await this.exec(s);
|
|
2016
1956
|
}
|
|
2017
1957
|
async exec(e) {
|
|
2018
|
-
var t, r, a, s, c,
|
|
1958
|
+
var t, r, a, s, c, m;
|
|
2019
1959
|
try {
|
|
2020
1960
|
const l = await fetch(e);
|
|
2021
1961
|
if (!l.ok)
|
|
2022
|
-
return { ok: !1, error:
|
|
2023
|
-
const
|
|
2024
|
-
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:
|
|
1962
|
+
return { ok: !1, error: h(l.status) };
|
|
1963
|
+
const f = await l.json(), w = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
|
|
1964
|
+
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" || ((m = p.extensions) == null ? void 0 : m.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, p.message) } : {
|
|
2025
1965
|
ok: !1,
|
|
2026
|
-
error:
|
|
1966
|
+
error: h(500, p.message)
|
|
2027
1967
|
} : {
|
|
2028
1968
|
ok: !0,
|
|
2029
|
-
data:
|
|
1969
|
+
data: w
|
|
2030
1970
|
};
|
|
2031
1971
|
} catch {
|
|
2032
1972
|
return {
|
|
2033
1973
|
ok: !1,
|
|
2034
|
-
error:
|
|
1974
|
+
error: h(500)
|
|
2035
1975
|
};
|
|
2036
1976
|
}
|
|
2037
1977
|
}
|
|
@@ -2042,7 +1982,7 @@ class U {
|
|
|
2042
1982
|
return t;
|
|
2043
1983
|
}
|
|
2044
1984
|
createUploadBody(e, t) {
|
|
2045
|
-
const r =
|
|
1985
|
+
const r = It(t).filter(
|
|
2046
1986
|
(c) => c.value instanceof File || c.value instanceof Blob
|
|
2047
1987
|
), a = new FormData();
|
|
2048
1988
|
a.append(
|
|
@@ -2053,18 +1993,18 @@ class U {
|
|
|
2053
1993
|
})
|
|
2054
1994
|
);
|
|
2055
1995
|
const s = {};
|
|
2056
|
-
return r.forEach((c,
|
|
2057
|
-
s[
|
|
2058
|
-
}), a.append("map", JSON.stringify(s)), r.forEach((c,
|
|
2059
|
-
a.append(
|
|
1996
|
+
return r.forEach((c, m) => {
|
|
1997
|
+
s[m.toString()] = [`variables.${c.key.join(".")}`];
|
|
1998
|
+
}), a.append("map", JSON.stringify(s)), r.forEach((c, m) => {
|
|
1999
|
+
a.append(m.toString(), c.value);
|
|
2060
2000
|
}), a;
|
|
2061
2001
|
}
|
|
2062
2002
|
}
|
|
2063
|
-
async function
|
|
2064
|
-
const e = new TextEncoder().encode(
|
|
2003
|
+
async function y(o) {
|
|
2004
|
+
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
2065
2005
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
2066
2006
|
}
|
|
2067
|
-
class
|
|
2007
|
+
class Se {
|
|
2068
2008
|
constructor(e) {
|
|
2069
2009
|
d(this, "enabled");
|
|
2070
2010
|
this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
|
|
@@ -2082,50 +2022,50 @@ class ke {
|
|
|
2082
2022
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
2083
2023
|
}
|
|
2084
2024
|
}
|
|
2085
|
-
function j(
|
|
2086
|
-
return new Date(
|
|
2025
|
+
function j(o) {
|
|
2026
|
+
return new Date(o.getTime());
|
|
2087
2027
|
}
|
|
2088
|
-
function
|
|
2089
|
-
const t = j(
|
|
2028
|
+
function q(o, e) {
|
|
2029
|
+
const t = j(o);
|
|
2090
2030
|
return t.setDate(t.getDate() + e), t;
|
|
2091
2031
|
}
|
|
2092
|
-
function
|
|
2093
|
-
const t = j(
|
|
2032
|
+
function B(o, e) {
|
|
2033
|
+
const t = j(o);
|
|
2094
2034
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
2095
2035
|
}
|
|
2096
|
-
function
|
|
2097
|
-
return
|
|
2036
|
+
function we(o, e) {
|
|
2037
|
+
return o.getTime() > e.getTime();
|
|
2098
2038
|
}
|
|
2099
|
-
function Ce(
|
|
2039
|
+
function Ce(o) {
|
|
2100
2040
|
return new Promise((e) => {
|
|
2101
|
-
setTimeout(e,
|
|
2041
|
+
setTimeout(e, o);
|
|
2102
2042
|
});
|
|
2103
2043
|
}
|
|
2104
|
-
function
|
|
2044
|
+
function ye(o, e) {
|
|
2105
2045
|
const {
|
|
2106
2046
|
until: t,
|
|
2107
2047
|
interval: r = 1e3,
|
|
2108
2048
|
maxAttempt: a = 3
|
|
2109
2049
|
/**/
|
|
2110
2050
|
} = e;
|
|
2111
|
-
async function s(c,
|
|
2112
|
-
const l =
|
|
2113
|
-
return t(
|
|
2051
|
+
async function s(c, m) {
|
|
2052
|
+
const l = m ?? a, f = await o(...c);
|
|
2053
|
+
return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
|
|
2114
2054
|
}
|
|
2115
2055
|
return async (...c) => await s(c);
|
|
2116
2056
|
}
|
|
2117
|
-
function F(
|
|
2118
|
-
const t = j(
|
|
2057
|
+
function F(o, e) {
|
|
2058
|
+
const t = j(o);
|
|
2119
2059
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
2120
2060
|
}
|
|
2121
|
-
class
|
|
2061
|
+
class Pt {
|
|
2122
2062
|
constructor(e) {
|
|
2123
2063
|
d(this, "logger");
|
|
2124
2064
|
d(this, "storageKey", "session");
|
|
2125
2065
|
d(this, "authService");
|
|
2126
2066
|
d(this, "walletService");
|
|
2127
2067
|
d(this, "_refreshing", !1);
|
|
2128
|
-
this.authService = e.authService, this.walletService = e.walletService, this.logger = new
|
|
2068
|
+
this.authService = e.authService, this.walletService = e.walletService, this.logger = new Se({
|
|
2129
2069
|
enabled: e.logs ?? !1
|
|
2130
2070
|
});
|
|
2131
2071
|
}
|
|
@@ -2146,10 +2086,10 @@ class Ut {
|
|
|
2146
2086
|
}
|
|
2147
2087
|
};
|
|
2148
2088
|
if (e.type === "MAYA") {
|
|
2149
|
-
const c = await
|
|
2150
|
-
until: (
|
|
2089
|
+
const c = await ye(() => this.walletService.mayaSession({ id: e.sessionId }), {
|
|
2090
|
+
until: (w) => {
|
|
2151
2091
|
var p;
|
|
2152
|
-
return
|
|
2092
|
+
return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
|
|
2153
2093
|
},
|
|
2154
2094
|
interval: 1e3,
|
|
2155
2095
|
maxAttempt: 5
|
|
@@ -2163,19 +2103,19 @@ class Ut {
|
|
|
2163
2103
|
message: "Forbidden"
|
|
2164
2104
|
}
|
|
2165
2105
|
};
|
|
2166
|
-
const l = await
|
|
2167
|
-
until: (
|
|
2106
|
+
const l = await ye(() => this.authService.createSession(e), {
|
|
2107
|
+
until: (w) => w.ok,
|
|
2168
2108
|
interval: 1e3,
|
|
2169
2109
|
maxAttempt: 5
|
|
2170
2110
|
})();
|
|
2171
2111
|
if (!l.ok) return l;
|
|
2172
|
-
const
|
|
2112
|
+
const f = /* @__PURE__ */ new Date();
|
|
2173
2113
|
return window.localStorage.setItem(
|
|
2174
2114
|
this.storageKey,
|
|
2175
2115
|
JSON.stringify({
|
|
2176
2116
|
...l.data,
|
|
2177
|
-
accessTokenExpiresAt:
|
|
2178
|
-
refreshTokenExpiresAt: F(
|
|
2117
|
+
accessTokenExpiresAt: B(f, 8).getTime(),
|
|
2118
|
+
refreshTokenExpiresAt: F(q(f, 30), 2).getTime()
|
|
2179
2119
|
})
|
|
2180
2120
|
), {
|
|
2181
2121
|
ok: !0,
|
|
@@ -2190,8 +2130,8 @@ class Ut {
|
|
|
2190
2130
|
this.storageKey,
|
|
2191
2131
|
JSON.stringify({
|
|
2192
2132
|
...s.data,
|
|
2193
|
-
accessTokenExpiresAt:
|
|
2194
|
-
refreshTokenExpiresAt: F(
|
|
2133
|
+
accessTokenExpiresAt: B(c, 8).getTime(),
|
|
2134
|
+
refreshTokenExpiresAt: F(q(c, 30), 2).getTime()
|
|
2195
2135
|
})
|
|
2196
2136
|
), {
|
|
2197
2137
|
ok: !0,
|
|
@@ -2214,8 +2154,8 @@ class Ut {
|
|
|
2214
2154
|
this.storageKey,
|
|
2215
2155
|
JSON.stringify({
|
|
2216
2156
|
...t.data,
|
|
2217
|
-
accessTokenExpiresAt:
|
|
2218
|
-
refreshTokenExpiresAt: F(
|
|
2157
|
+
accessTokenExpiresAt: B(r, 8).getTime(),
|
|
2158
|
+
refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
|
|
2219
2159
|
})
|
|
2220
2160
|
), {
|
|
2221
2161
|
ok: !0,
|
|
@@ -2230,8 +2170,8 @@ class Ut {
|
|
|
2230
2170
|
this.storageKey,
|
|
2231
2171
|
JSON.stringify({
|
|
2232
2172
|
...t.data,
|
|
2233
|
-
accessTokenExpiresAt:
|
|
2234
|
-
refreshTokenExpiresAt: F(
|
|
2173
|
+
accessTokenExpiresAt: B(r, 8).getTime(),
|
|
2174
|
+
refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
|
|
2235
2175
|
})
|
|
2236
2176
|
), { ok: !0 };
|
|
2237
2177
|
} else
|
|
@@ -2254,7 +2194,7 @@ class Ut {
|
|
|
2254
2194
|
try {
|
|
2255
2195
|
let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
|
|
2256
2196
|
const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
|
|
2257
|
-
if (
|
|
2197
|
+
if (we(r, s))
|
|
2258
2198
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
2259
2199
|
ok: !1,
|
|
2260
2200
|
error: {
|
|
@@ -2262,7 +2202,7 @@ class Ut {
|
|
|
2262
2202
|
message: "Session expired."
|
|
2263
2203
|
}
|
|
2264
2204
|
};
|
|
2265
|
-
if (
|
|
2205
|
+
if (we(r, a)) {
|
|
2266
2206
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
2267
2207
|
const c = await this.authService.refreshSession(t.refreshToken);
|
|
2268
2208
|
if (this.refreshing = !1, !c.ok)
|
|
@@ -2276,8 +2216,8 @@ class Ut {
|
|
|
2276
2216
|
this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
|
|
2277
2217
|
...t,
|
|
2278
2218
|
...c.data,
|
|
2279
|
-
accessTokenExpiresAt:
|
|
2280
|
-
refreshTokenExpiresAt: F(
|
|
2219
|
+
accessTokenExpiresAt: B(r, 8).getTime(),
|
|
2220
|
+
refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
|
|
2281
2221
|
}, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
|
|
2282
2222
|
}
|
|
2283
2223
|
return {
|
|
@@ -2317,10 +2257,10 @@ class Ut {
|
|
|
2317
2257
|
return typeof window > "u";
|
|
2318
2258
|
}
|
|
2319
2259
|
}
|
|
2320
|
-
function g(
|
|
2260
|
+
function g(o) {
|
|
2321
2261
|
const e = {};
|
|
2322
|
-
for (const t in
|
|
2323
|
-
const r =
|
|
2262
|
+
for (const t in o) {
|
|
2263
|
+
const r = o[t];
|
|
2324
2264
|
if (r !== null && r !== void 0) {
|
|
2325
2265
|
if (H(r)) {
|
|
2326
2266
|
e[t] = g(r);
|
|
@@ -2335,21 +2275,21 @@ function g(n) {
|
|
|
2335
2275
|
}
|
|
2336
2276
|
return e;
|
|
2337
2277
|
}
|
|
2338
|
-
function
|
|
2339
|
-
if (typeof
|
|
2340
|
-
return
|
|
2341
|
-
if (typeof
|
|
2342
|
-
const t = Number.parseFloat(
|
|
2278
|
+
function n(o, e) {
|
|
2279
|
+
if (typeof o == "number" && !Number.isNaN(o))
|
|
2280
|
+
return o;
|
|
2281
|
+
if (typeof o == "string") {
|
|
2282
|
+
const t = Number.parseFloat(o);
|
|
2343
2283
|
if (!Number.isNaN(t))
|
|
2344
2284
|
return t;
|
|
2345
2285
|
}
|
|
2346
2286
|
return e;
|
|
2347
2287
|
}
|
|
2348
|
-
class
|
|
2288
|
+
class $t {
|
|
2349
2289
|
constructor(e) {
|
|
2350
2290
|
d(this, "staticService");
|
|
2351
2291
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2352
|
-
this.staticService = new
|
|
2292
|
+
this.staticService = new Mt({
|
|
2353
2293
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2354
2294
|
});
|
|
2355
2295
|
}
|
|
@@ -2368,9 +2308,7 @@ class Ot {
|
|
|
2368
2308
|
betRecord: this.betRecord.bind(this),
|
|
2369
2309
|
latestBetRecord: this.latestBetRecord.bind(this),
|
|
2370
2310
|
transactionRecord: this.transactionRecord.bind(this),
|
|
2371
|
-
/** @deprecated */
|
|
2372
2311
|
game: this.game.bind(this),
|
|
2373
|
-
game__next: this.game__next.bind(this),
|
|
2374
2312
|
gameSession: this.gameSession.bind(this),
|
|
2375
2313
|
promo: this.promo.bind(this),
|
|
2376
2314
|
cashback: this.cashback.bind(this),
|
|
@@ -2380,7 +2318,8 @@ class Ot {
|
|
|
2380
2318
|
pointsWallet: this.pointsWallet.bind(this),
|
|
2381
2319
|
pointsWalletTransaction: this.pointsWalletTransaction.bind(this),
|
|
2382
2320
|
activityRecord: this.activityRecord.bind(this),
|
|
2383
|
-
referrals: this.referrals.bind(this)
|
|
2321
|
+
referrals: this.referrals.bind(this),
|
|
2322
|
+
referralComission: this.referralComission.bind(this)
|
|
2384
2323
|
};
|
|
2385
2324
|
}
|
|
2386
2325
|
site(e) {
|
|
@@ -2393,10 +2332,10 @@ class Ot {
|
|
|
2393
2332
|
return g(t);
|
|
2394
2333
|
}
|
|
2395
2334
|
platform(e) {
|
|
2396
|
-
var t, r, a, s, c,
|
|
2335
|
+
var t, r, a, s, c, m, l, f, w, p, _, v, M, N, R, b, I, D, S, P, $, x, C, G, W, O, E, Q, K, J, z, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, de, ue, me, le, pe, fe, he;
|
|
2397
2336
|
return {
|
|
2398
2337
|
paymentSettings: {
|
|
2399
|
-
minimumFirstDepositAmount:
|
|
2338
|
+
minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
|
|
2400
2339
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
2401
2340
|
depositGateway: {
|
|
2402
2341
|
bank: {
|
|
@@ -2404,69 +2343,69 @@ class Ot {
|
|
|
2404
2343
|
iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
|
|
2405
2344
|
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
2406
2345
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2407
|
-
minimumAmount:
|
|
2408
|
-
maximumAmount:
|
|
2346
|
+
minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
|
|
2347
|
+
maximumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.maximumAmount)
|
|
2409
2348
|
},
|
|
2410
2349
|
gcash: {
|
|
2411
2350
|
androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
|
|
2412
|
-
iosEnabled: ((
|
|
2413
|
-
webEnabled: ((
|
|
2351
|
+
iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
|
|
2352
|
+
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
2414
2353
|
mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
|
|
2415
|
-
minimumAmount:
|
|
2416
|
-
maximumAmount:
|
|
2354
|
+
minimumAmount: n((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
|
|
2355
|
+
maximumAmount: n((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
2417
2356
|
},
|
|
2418
2357
|
maya: {
|
|
2419
2358
|
androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
|
|
2420
2359
|
iosEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
|
|
2421
|
-
webEnabled: ((
|
|
2422
|
-
mobileWebEnabled: ((
|
|
2423
|
-
minimumAmount:
|
|
2424
|
-
maximumAmount:
|
|
2360
|
+
webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
|
|
2361
|
+
mobileWebEnabled: ((b = e.mayaDepositGatewaySettings) == null ? void 0 : b.mobileWebEnabled) ?? !1,
|
|
2362
|
+
minimumAmount: n((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
|
|
2363
|
+
maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
2425
2364
|
},
|
|
2426
2365
|
mayaApp: {
|
|
2427
|
-
androidEnabled: ((
|
|
2366
|
+
androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
|
|
2428
2367
|
iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
|
|
2429
|
-
webEnabled: ((
|
|
2430
|
-
mobileWebEnabled: ((
|
|
2431
|
-
minimumAmount:
|
|
2432
|
-
maximumAmount:
|
|
2368
|
+
webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
|
|
2369
|
+
mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
|
|
2370
|
+
minimumAmount: n((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
|
|
2371
|
+
maximumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
|
|
2433
2372
|
}
|
|
2434
2373
|
},
|
|
2435
2374
|
withdrawalGateway: {
|
|
2436
2375
|
bank: {
|
|
2437
|
-
androidEnabled: ((
|
|
2438
|
-
iosEnabled: ((
|
|
2439
|
-
webEnabled: ((
|
|
2376
|
+
androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
|
|
2377
|
+
iosEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
2378
|
+
webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
|
|
2440
2379
|
mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
|
|
2441
|
-
minimumAmount:
|
|
2442
|
-
maximumAmount:
|
|
2380
|
+
minimumAmount: n((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
|
|
2381
|
+
maximumAmount: n((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
|
|
2443
2382
|
},
|
|
2444
2383
|
gcash: {
|
|
2445
2384
|
androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
|
|
2446
2385
|
iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
|
|
2447
2386
|
webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
|
|
2448
2387
|
mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
|
|
2449
|
-
minimumAmount:
|
|
2450
|
-
maximumAmount:
|
|
2388
|
+
minimumAmount: n((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
|
|
2389
|
+
maximumAmount: n(
|
|
2451
2390
|
(re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
|
|
2452
2391
|
1e6
|
|
2453
2392
|
)
|
|
2454
2393
|
},
|
|
2455
2394
|
maya: {
|
|
2456
2395
|
androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
|
|
2457
|
-
iosEnabled: ((
|
|
2458
|
-
webEnabled: ((
|
|
2396
|
+
iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
|
|
2397
|
+
webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
|
|
2459
2398
|
mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
|
|
2460
|
-
minimumAmount:
|
|
2461
|
-
maximumAmount:
|
|
2399
|
+
minimumAmount: n((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
|
|
2400
|
+
maximumAmount: n((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
|
|
2462
2401
|
},
|
|
2463
2402
|
mayaApp: {
|
|
2464
2403
|
androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
|
|
2465
|
-
iosEnabled: ((
|
|
2466
|
-
webEnabled: ((
|
|
2404
|
+
iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
|
|
2405
|
+
webEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.webEnabled) ?? !1,
|
|
2467
2406
|
mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
|
|
2468
|
-
minimumAmount:
|
|
2469
|
-
maximumAmount:
|
|
2407
|
+
minimumAmount: n((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
|
|
2408
|
+
maximumAmount: n(
|
|
2470
2409
|
(fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.maximumAmount,
|
|
2471
2410
|
1e6
|
|
2472
2411
|
)
|
|
@@ -2474,7 +2413,7 @@ class Ot {
|
|
|
2474
2413
|
}
|
|
2475
2414
|
},
|
|
2476
2415
|
pointsClubSettings: {
|
|
2477
|
-
multiplier:
|
|
2416
|
+
multiplier: n((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
|
|
2478
2417
|
}
|
|
2479
2418
|
};
|
|
2480
2419
|
}
|
|
@@ -2495,7 +2434,6 @@ class Ot {
|
|
|
2495
2434
|
verificationStatus: e.verificationStatus,
|
|
2496
2435
|
transactionPassword: e.transactionPassword,
|
|
2497
2436
|
secretAnswerSubmitted: e.secretAnswerSubmitted ?? !1,
|
|
2498
|
-
dateTimeLastActive: e.dateTimeLastActive ? new Date(e.dateTimeLastActive) : void 0,
|
|
2499
2437
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2500
2438
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2501
2439
|
};
|
|
@@ -2504,7 +2442,7 @@ class Ot {
|
|
|
2504
2442
|
wallet(e) {
|
|
2505
2443
|
return {
|
|
2506
2444
|
id: e.id,
|
|
2507
|
-
balance:
|
|
2445
|
+
balance: n(e.balance, 0),
|
|
2508
2446
|
currency: e.currency,
|
|
2509
2447
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2510
2448
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
@@ -2531,7 +2469,7 @@ class Ot {
|
|
|
2531
2469
|
mobileNumberVerification: e.mobileNumberVerification ?? !1,
|
|
2532
2470
|
personalInformation: e.personalInformation ?? !1,
|
|
2533
2471
|
transactionPassword: e.transactionPassword ?? !1,
|
|
2534
|
-
completionPercentage:
|
|
2472
|
+
completionPercentage: n(e.completionPercentage, 0)
|
|
2535
2473
|
};
|
|
2536
2474
|
}
|
|
2537
2475
|
announcement(e) {
|
|
@@ -2553,9 +2491,9 @@ class Ot {
|
|
|
2553
2491
|
type: e.type,
|
|
2554
2492
|
bank: e.bank,
|
|
2555
2493
|
status: e.status,
|
|
2556
|
-
amount:
|
|
2557
|
-
netAmount:
|
|
2558
|
-
fee:
|
|
2494
|
+
amount: n(e.amount, 0),
|
|
2495
|
+
netAmount: n(e.netAmount, 0),
|
|
2496
|
+
fee: n(e.fee, 0),
|
|
2559
2497
|
reference: e.reference ?? void 0,
|
|
2560
2498
|
withdrawalNumber: e.withdrawalNumber,
|
|
2561
2499
|
recipientMobileNumber: e.recipientMobileNumber ?? void 0,
|
|
@@ -2579,9 +2517,9 @@ class Ot {
|
|
|
2579
2517
|
id: e.id,
|
|
2580
2518
|
type: e.type,
|
|
2581
2519
|
status: e.status,
|
|
2582
|
-
amount:
|
|
2583
|
-
fee:
|
|
2584
|
-
netAmount:
|
|
2520
|
+
amount: n(e.amount, 0),
|
|
2521
|
+
fee: n(e.fee, 0),
|
|
2522
|
+
netAmount: n(e.netAmount, 0),
|
|
2585
2523
|
reference: e.reference ?? void 0,
|
|
2586
2524
|
depositNumber: e.depositNumber,
|
|
2587
2525
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2593,13 +2531,13 @@ class Ot {
|
|
|
2593
2531
|
var r;
|
|
2594
2532
|
const t = {
|
|
2595
2533
|
id: e.id,
|
|
2596
|
-
bet:
|
|
2597
|
-
payout:
|
|
2534
|
+
bet: n(e.bet, 0),
|
|
2535
|
+
payout: n(e.payout, 0),
|
|
2598
2536
|
status: e.status,
|
|
2599
|
-
jackpotContribution:
|
|
2600
|
-
jackpotPayout:
|
|
2601
|
-
winloss:
|
|
2602
|
-
validBet:
|
|
2537
|
+
jackpotContribution: n(e.jackpotContribution, 0),
|
|
2538
|
+
jackpotPayout: n(e.jackpotPayout, 0),
|
|
2539
|
+
winloss: n(e.winloss),
|
|
2540
|
+
validBet: n(e.validBet, 0),
|
|
2603
2541
|
vendorRoundId: e.vendorRoundId ?? void 0,
|
|
2604
2542
|
game: {
|
|
2605
2543
|
name: e.game.name,
|
|
@@ -2630,9 +2568,9 @@ class Ot {
|
|
|
2630
2568
|
images: this.staticService.gameThumbnails(e.game),
|
|
2631
2569
|
provider: e.game.provider
|
|
2632
2570
|
},
|
|
2633
|
-
bet:
|
|
2634
|
-
payout:
|
|
2635
|
-
validBet:
|
|
2571
|
+
bet: n(e.bet, 0),
|
|
2572
|
+
payout: n(e.payout, 0),
|
|
2573
|
+
validBet: n(e.validBet, 0),
|
|
2636
2574
|
dateTimeSettled: new Date(e.dateTimeSettled),
|
|
2637
2575
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2638
2576
|
};
|
|
@@ -2641,27 +2579,15 @@ class Ot {
|
|
|
2641
2579
|
const t = {
|
|
2642
2580
|
id: e.id,
|
|
2643
2581
|
type: e.type,
|
|
2644
|
-
amount:
|
|
2582
|
+
amount: n(e.amount, 0),
|
|
2645
2583
|
content: e.content ?? void 0,
|
|
2646
|
-
currentBalance:
|
|
2584
|
+
currentBalance: n(e.currentBalance, 0),
|
|
2647
2585
|
referenceNumber: e.referenceNumber,
|
|
2648
2586
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2649
2587
|
};
|
|
2650
2588
|
return g(t);
|
|
2651
2589
|
}
|
|
2652
|
-
/**
|
|
2653
|
-
* @deprecated
|
|
2654
|
-
*/
|
|
2655
2590
|
game(e) {
|
|
2656
|
-
return {
|
|
2657
|
-
id: e.id,
|
|
2658
|
-
type: e.type,
|
|
2659
|
-
name: e.name,
|
|
2660
|
-
images: this.staticService.gameThumbnails(e),
|
|
2661
|
-
provider: e.provider
|
|
2662
|
-
};
|
|
2663
|
-
}
|
|
2664
|
-
game__next(e) {
|
|
2665
2591
|
return {
|
|
2666
2592
|
id: e.id,
|
|
2667
2593
|
type: e.type,
|
|
@@ -2669,8 +2595,7 @@ class Ot {
|
|
|
2669
2595
|
name: e.name,
|
|
2670
2596
|
images: [e.customImage, e.image].filter(Boolean),
|
|
2671
2597
|
provider: e.provider,
|
|
2672
|
-
reference: e.reference
|
|
2673
|
-
externalId: e.externalId
|
|
2598
|
+
reference: e.reference
|
|
2674
2599
|
};
|
|
2675
2600
|
}
|
|
2676
2601
|
gameSession(e) {
|
|
@@ -2691,8 +2616,8 @@ class Ot {
|
|
|
2691
2616
|
status: e.status,
|
|
2692
2617
|
description: e.description,
|
|
2693
2618
|
banner: this.file(e.banner),
|
|
2694
|
-
maximumBonusAmount:
|
|
2695
|
-
minimumBonusAmount:
|
|
2619
|
+
maximumBonusAmount: n(e.maximumBonusAmount),
|
|
2620
|
+
minimumBonusAmount: n(e.minimumBonusAmount),
|
|
2696
2621
|
activationEndDateTime: new Date(e.activationEndDateTime),
|
|
2697
2622
|
activationStartDateTime: new Date(e.activationStartDateTime),
|
|
2698
2623
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
@@ -2712,7 +2637,7 @@ class Ot {
|
|
|
2712
2637
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
|
|
2713
2638
|
turnoverContributionPercentagePerGameProvider: Object.entries(
|
|
2714
2639
|
e.turnoverContributionPercentagePerGameProvider
|
|
2715
|
-
).reduce((r, [a, s]) => (r[a] =
|
|
2640
|
+
).reduce((r, [a, s]) => (r[a] = n(s, 0), r), {})
|
|
2716
2641
|
};
|
|
2717
2642
|
}
|
|
2718
2643
|
bonus(e) {
|
|
@@ -2722,22 +2647,22 @@ class Ot {
|
|
|
2722
2647
|
deposit: e.deposit ? {
|
|
2723
2648
|
type: e.deposit.type,
|
|
2724
2649
|
status: e.deposit.status,
|
|
2725
|
-
fee:
|
|
2726
|
-
amount:
|
|
2727
|
-
netAmount:
|
|
2650
|
+
fee: n(e.deposit.fee, 0),
|
|
2651
|
+
amount: n(e.deposit.amount, 0),
|
|
2652
|
+
netAmount: n(e.deposit.netAmount, 0),
|
|
2728
2653
|
reference: e.deposit.reference ?? void 0,
|
|
2729
2654
|
dateTimeCreated: new Date(e.deposit.dateTimeCreated),
|
|
2730
2655
|
dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
|
|
2731
2656
|
} : void 0,
|
|
2732
|
-
balance:
|
|
2733
|
-
amount:
|
|
2657
|
+
balance: n(e.balance, 0),
|
|
2658
|
+
amount: n(e.amount, 0),
|
|
2734
2659
|
expiration: new Date(e.expiration),
|
|
2735
|
-
turnoverRequirement:
|
|
2736
|
-
currentTurnoverRequirementContribution:
|
|
2660
|
+
turnoverRequirement: n(e.turnoverRequirement, 0),
|
|
2661
|
+
currentTurnoverRequirementContribution: n(
|
|
2737
2662
|
e.currentTurnoverRequirementContribution,
|
|
2738
2663
|
0
|
|
2739
2664
|
),
|
|
2740
|
-
currentTurnoverRequirementContributionPercentage:
|
|
2665
|
+
currentTurnoverRequirementContributionPercentage: n(
|
|
2741
2666
|
e.currentTurnoverRequirementContributionPercentage,
|
|
2742
2667
|
0
|
|
2743
2668
|
),
|
|
@@ -2749,7 +2674,7 @@ class Ot {
|
|
|
2749
2674
|
cashbackBonus(e) {
|
|
2750
2675
|
return {
|
|
2751
2676
|
id: e.id,
|
|
2752
|
-
balance:
|
|
2677
|
+
balance: n(e.balance, 0),
|
|
2753
2678
|
cashback: this.cashback(e.cashback),
|
|
2754
2679
|
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2755
2680
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
@@ -2767,7 +2692,7 @@ class Ot {
|
|
|
2767
2692
|
pointsWallet(e) {
|
|
2768
2693
|
return {
|
|
2769
2694
|
id: e.id,
|
|
2770
|
-
points:
|
|
2695
|
+
points: n(e.points, 0),
|
|
2771
2696
|
account: e.account,
|
|
2772
2697
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2773
2698
|
};
|
|
@@ -2776,8 +2701,8 @@ class Ot {
|
|
|
2776
2701
|
return {
|
|
2777
2702
|
id: e.id,
|
|
2778
2703
|
type: e.type,
|
|
2779
|
-
amount:
|
|
2780
|
-
balance:
|
|
2704
|
+
amount: n(e.amount, 0),
|
|
2705
|
+
balance: n(e.balance, 0),
|
|
2781
2706
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2782
2707
|
};
|
|
2783
2708
|
}
|
|
@@ -2785,7 +2710,7 @@ class Ot {
|
|
|
2785
2710
|
const t = {
|
|
2786
2711
|
id: e.id,
|
|
2787
2712
|
type: e.type,
|
|
2788
|
-
amount: e.amount ?
|
|
2713
|
+
amount: e.amount ? n(e.amount, 0) : void 0,
|
|
2789
2714
|
domain: e.domain ?? void 0,
|
|
2790
2715
|
details: e.details,
|
|
2791
2716
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
@@ -2798,13 +2723,29 @@ class Ot {
|
|
|
2798
2723
|
level: e.level,
|
|
2799
2724
|
upline: e.upline,
|
|
2800
2725
|
downline: e.downline,
|
|
2801
|
-
turnover:
|
|
2802
|
-
commision:
|
|
2726
|
+
turnover: n(e.turnover, 0),
|
|
2727
|
+
commision: n(e.commision, 0),
|
|
2803
2728
|
dateTimeCreated: new Date(e.dateTimeCreated)
|
|
2804
2729
|
};
|
|
2805
2730
|
}
|
|
2731
|
+
referralComission(e) {
|
|
2732
|
+
return {
|
|
2733
|
+
id: e.id,
|
|
2734
|
+
commission: n(e.commission, 0),
|
|
2735
|
+
level1Commission: n(e.level1Commission, 0),
|
|
2736
|
+
level2Commission: n(e.level2Commission, 0),
|
|
2737
|
+
level3Commission: n(e.level3Commission, 0),
|
|
2738
|
+
referralsCount: e.referralsCount,
|
|
2739
|
+
level1ReferralsCount: e.level1ReferralsCount,
|
|
2740
|
+
level2ReferralsCount: e.level2ReferralsCount,
|
|
2741
|
+
level3ReferralsCount: e.level3ReferralsCount,
|
|
2742
|
+
referralCode: e.referralCode,
|
|
2743
|
+
dateTimeCreated: new Date(e.dateTimeCreated),
|
|
2744
|
+
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
|
|
2745
|
+
};
|
|
2746
|
+
}
|
|
2806
2747
|
}
|
|
2807
|
-
class
|
|
2748
|
+
class Ot {
|
|
2808
2749
|
constructor(e) {
|
|
2809
2750
|
d(this, "cmsPortalService");
|
|
2810
2751
|
d(this, "authService");
|
|
@@ -2824,17 +2765,17 @@ class Lt {
|
|
|
2824
2765
|
platform: a,
|
|
2825
2766
|
environment: s,
|
|
2826
2767
|
logs: c
|
|
2827
|
-
} = e,
|
|
2828
|
-
this.transformer = new
|
|
2768
|
+
} = e, m = s === "production";
|
|
2769
|
+
this.transformer = new $t({
|
|
2829
2770
|
environment: s
|
|
2830
|
-
}), this.logger = new
|
|
2771
|
+
}), this.logger = new Se({
|
|
2831
2772
|
enabled: c ?? !1
|
|
2832
2773
|
});
|
|
2833
|
-
const l =
|
|
2774
|
+
const l = m ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = m ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = m ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = m ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", _ = m ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = m ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = m ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", N = m ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1", R = new Ct({
|
|
2834
2775
|
url: N,
|
|
2835
2776
|
site: t,
|
|
2836
2777
|
platform: r
|
|
2837
|
-
}),
|
|
2778
|
+
}), b = {
|
|
2838
2779
|
middlewares: [this.authMiddleware],
|
|
2839
2780
|
fetchOptions: {
|
|
2840
2781
|
headers: {
|
|
@@ -2842,15 +2783,15 @@ class Lt {
|
|
|
2842
2783
|
"Platform-Code": a
|
|
2843
2784
|
}
|
|
2844
2785
|
}
|
|
2845
|
-
},
|
|
2786
|
+
}, I = new Tt(new U(M, b)), D = new kt(new U(v, b)), S = new Nt(new U(f, b)), P = new Et(new U(p, b)), $ = new vt(new U(w, b)), x = new _t(new U(_, b)), C = new St({
|
|
2846
2787
|
url: l,
|
|
2847
2788
|
platform: a
|
|
2848
|
-
}),
|
|
2789
|
+
}), G = new Pt({
|
|
2849
2790
|
logs: c,
|
|
2850
|
-
authService:
|
|
2851
|
-
walletService:
|
|
2791
|
+
authService: C,
|
|
2792
|
+
walletService: S
|
|
2852
2793
|
});
|
|
2853
|
-
this.authService =
|
|
2794
|
+
this.authService = C, this.gameService = I, this.fileService = D, this.walletService = S, this.accountService = P, this.reportService = $, this.portalService = x, this.sessionManager = G, this.cmsPortalService = R;
|
|
2854
2795
|
}
|
|
2855
2796
|
get authMiddleware() {
|
|
2856
2797
|
return async (e) => {
|
|
@@ -2864,7 +2805,7 @@ class Lt {
|
|
|
2864
2805
|
case "NAME_AND_PASSWORD": {
|
|
2865
2806
|
const t = await this.sessionManager.create({
|
|
2866
2807
|
...e,
|
|
2867
|
-
password: await
|
|
2808
|
+
password: await y(e.password)
|
|
2868
2809
|
});
|
|
2869
2810
|
return t.ok ? t.data ? {
|
|
2870
2811
|
ok: !0,
|
|
@@ -2885,19 +2826,13 @@ class Lt {
|
|
|
2885
2826
|
}
|
|
2886
2827
|
}
|
|
2887
2828
|
}
|
|
2888
|
-
/**
|
|
2889
|
-
* @deprecated use `sendVerificationCode__next`
|
|
2890
|
-
*/
|
|
2891
|
-
async sendAuthenticationCode(e) {
|
|
2892
|
-
return this.authService.sendVerificationCode(e);
|
|
2893
|
-
}
|
|
2894
2829
|
async authenticate(e) {
|
|
2895
2830
|
switch (e.type) {
|
|
2896
2831
|
case "SECURITY_QUESTION":
|
|
2897
2832
|
return await this.sessionManager.createFromAuthenticator({
|
|
2898
2833
|
type: "SECURITY_QUESTION",
|
|
2899
2834
|
token: e.token,
|
|
2900
|
-
secretAnswer: await
|
|
2835
|
+
secretAnswer: await y(e.secretAnswer)
|
|
2901
2836
|
});
|
|
2902
2837
|
default:
|
|
2903
2838
|
return {
|
|
@@ -2913,7 +2848,7 @@ class Lt {
|
|
|
2913
2848
|
await this.sessionManager.destroy();
|
|
2914
2849
|
}
|
|
2915
2850
|
watchSession(e) {
|
|
2916
|
-
const t =
|
|
2851
|
+
const t = Rt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2917
2852
|
let r = null;
|
|
2918
2853
|
const a = () => setTimeout(async () => {
|
|
2919
2854
|
await this.sessionManager.verify() || await e.onInvalid(), r = a();
|
|
@@ -2965,28 +2900,22 @@ class Lt {
|
|
|
2965
2900
|
/*+----------------------------------------+*/
|
|
2966
2901
|
/**/
|
|
2967
2902
|
async account() {
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2970
|
-
this.reportService.member()
|
|
2971
|
-
]);
|
|
2972
|
-
return e.ok ? t.ok ? {
|
|
2903
|
+
const e = await this.accountService.memberAccount();
|
|
2904
|
+
return e.ok ? {
|
|
2973
2905
|
ok: !0,
|
|
2974
|
-
data: this.transformer.transform.account(
|
|
2975
|
-
|
|
2976
|
-
...t.data
|
|
2977
|
-
})
|
|
2978
|
-
} : { ok: !1, error: t.error } : { ok: !1, error: e.error };
|
|
2906
|
+
data: this.transformer.transform.account(e.data)
|
|
2907
|
+
} : e;
|
|
2979
2908
|
}
|
|
2980
2909
|
async createAccount(e) {
|
|
2981
|
-
const t = e.id ??
|
|
2910
|
+
const t = e.id ?? k.generate(T.Account).toString(), r = await this.accountService.registerMemberAccount({
|
|
2982
2911
|
input: {
|
|
2983
2912
|
id: t,
|
|
2984
2913
|
btag: e.btag,
|
|
2985
2914
|
name: e.name,
|
|
2986
2915
|
domain: e.domain,
|
|
2987
2916
|
birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
|
|
2988
|
-
password: await
|
|
2989
|
-
mobileNumber:
|
|
2917
|
+
password: await y(e.password),
|
|
2918
|
+
mobileNumber: A(e.mobileNumber)
|
|
2990
2919
|
},
|
|
2991
2920
|
referralCode: e.referralCode,
|
|
2992
2921
|
verificationCode: e.verificationCode,
|
|
@@ -2995,12 +2924,12 @@ class Lt {
|
|
|
2995
2924
|
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
2996
2925
|
}
|
|
2997
2926
|
async createAccount__next(e) {
|
|
2998
|
-
const t = e.id ??
|
|
2927
|
+
const t = e.id ?? k.generate(T.Account).toString();
|
|
2999
2928
|
if (e.type === "MOBILE_NUMBER") {
|
|
3000
2929
|
const a = await this.accountService.registerMemberAccountViaMobile({
|
|
3001
2930
|
input: {
|
|
3002
2931
|
id: t,
|
|
3003
|
-
mobileNumber:
|
|
2932
|
+
mobileNumber: A(e.mobileNumber)
|
|
3004
2933
|
},
|
|
3005
2934
|
referralCode: e.referralCode,
|
|
3006
2935
|
reCAPTCHAResponse: e.reCAPTCHAResponse,
|
|
@@ -3012,8 +2941,8 @@ class Lt {
|
|
|
3012
2941
|
input: {
|
|
3013
2942
|
id: t,
|
|
3014
2943
|
name: e.name,
|
|
3015
|
-
password: await
|
|
3016
|
-
mobileNumber: e.mobileNumber ?
|
|
2944
|
+
password: await y(e.password),
|
|
2945
|
+
mobileNumber: e.mobileNumber ? A(e.mobileNumber) : void 0
|
|
3017
2946
|
},
|
|
3018
2947
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
3019
2948
|
});
|
|
@@ -3023,7 +2952,7 @@ class Lt {
|
|
|
3023
2952
|
return await this.accountService.registerMayaMemberAccount({
|
|
3024
2953
|
input: {
|
|
3025
2954
|
name: e.name,
|
|
3026
|
-
password: await
|
|
2955
|
+
password: await y(e.password),
|
|
3027
2956
|
domain: e.domain
|
|
3028
2957
|
}
|
|
3029
2958
|
});
|
|
@@ -3034,12 +2963,12 @@ class Lt {
|
|
|
3034
2963
|
id: e,
|
|
3035
2964
|
data: {
|
|
3036
2965
|
...t,
|
|
3037
|
-
password: t.password ? await
|
|
3038
|
-
transactionPassword: t.transactionPassword ? await
|
|
2966
|
+
password: t.password ? await y(t.password) : void 0,
|
|
2967
|
+
transactionPassword: t.transactionPassword ? await y(t.transactionPassword) : void 0,
|
|
3039
2968
|
...t.mobileNumber && {
|
|
3040
|
-
mobileNumber:
|
|
2969
|
+
mobileNumber: A(t.mobileNumber)
|
|
3041
2970
|
},
|
|
3042
|
-
secretAnswer: t.secretAnswer ? await
|
|
2971
|
+
secretAnswer: t.secretAnswer ? await y(t.secretAnswer) : void 0
|
|
3043
2972
|
}
|
|
3044
2973
|
}
|
|
3045
2974
|
});
|
|
@@ -3059,7 +2988,7 @@ class Lt {
|
|
|
3059
2988
|
} : e;
|
|
3060
2989
|
}
|
|
3061
2990
|
async submitVerificationDetails(e) {
|
|
3062
|
-
const t = e.id ??
|
|
2991
|
+
const t = e.id ?? k.generate(T.Verification).toString(), r = await this.accountService.createMemberVerification({
|
|
3063
2992
|
input: {
|
|
3064
2993
|
id: t,
|
|
3065
2994
|
...e
|
|
@@ -3080,8 +3009,8 @@ class Lt {
|
|
|
3080
3009
|
async resetPassword(e) {
|
|
3081
3010
|
return await this.accountService.resetPassword({
|
|
3082
3011
|
input: {
|
|
3083
|
-
mobileNumber:
|
|
3084
|
-
newPassword: await
|
|
3012
|
+
mobileNumber: A(e.mobileNumber),
|
|
3013
|
+
newPassword: await y(e.newPassword)
|
|
3085
3014
|
},
|
|
3086
3015
|
verificationCode: e.verificationCode
|
|
3087
3016
|
});
|
|
@@ -3100,16 +3029,22 @@ class Lt {
|
|
|
3100
3029
|
data: this.transformer.transform.profileCompletion(e.data)
|
|
3101
3030
|
} : e;
|
|
3102
3031
|
}
|
|
3032
|
+
/**
|
|
3033
|
+
* @deprecated use `sendVerificationCode__next`
|
|
3034
|
+
*/
|
|
3103
3035
|
async sendVerificationCode(e) {
|
|
3104
3036
|
return await this.accountService.sendVerificationCode({
|
|
3105
3037
|
input: {
|
|
3106
3038
|
channel: "SMS",
|
|
3107
|
-
recipient:
|
|
3039
|
+
recipient: A(e)
|
|
3108
3040
|
}
|
|
3109
3041
|
});
|
|
3110
3042
|
}
|
|
3111
3043
|
async sendVerificationCode__next(e) {
|
|
3112
|
-
return this.authService.
|
|
3044
|
+
return this.authService.sendVerificationCode({
|
|
3045
|
+
channel: "SMS",
|
|
3046
|
+
recipient: A(e)
|
|
3047
|
+
});
|
|
3113
3048
|
}
|
|
3114
3049
|
async wallet() {
|
|
3115
3050
|
const e = await this.walletService.wallet();
|
|
@@ -3154,13 +3089,13 @@ class Lt {
|
|
|
3154
3089
|
/*+----------------------------------------+*/
|
|
3155
3090
|
/**/
|
|
3156
3091
|
async createWithdrawal(e) {
|
|
3157
|
-
const t = e.id ??
|
|
3092
|
+
const t = e.id ?? k.generate(T.Withdrawal).toString();
|
|
3158
3093
|
if (e.type === "BANK") {
|
|
3159
3094
|
const r = await this.walletService.createBankWithdrawal({
|
|
3160
3095
|
input: {
|
|
3161
3096
|
id: t,
|
|
3162
3097
|
amount: e.amount.toString(),
|
|
3163
|
-
transactionPassword: await
|
|
3098
|
+
transactionPassword: await y(e.transactionPassword)
|
|
3164
3099
|
}
|
|
3165
3100
|
});
|
|
3166
3101
|
if (!r.ok) return r;
|
|
@@ -3170,8 +3105,8 @@ class Lt {
|
|
|
3170
3105
|
input: {
|
|
3171
3106
|
id: t,
|
|
3172
3107
|
amount: e.amount.toString(),
|
|
3173
|
-
transactionPassword: await
|
|
3174
|
-
recipientMobileNumber:
|
|
3108
|
+
transactionPassword: await y(e.transactionPassword),
|
|
3109
|
+
recipientMobileNumber: A(e.recipientMobileNumber)
|
|
3175
3110
|
}
|
|
3176
3111
|
});
|
|
3177
3112
|
if (!r.ok) return r;
|
|
@@ -3181,8 +3116,8 @@ class Lt {
|
|
|
3181
3116
|
input: {
|
|
3182
3117
|
id: t,
|
|
3183
3118
|
amount: e.amount.toString(),
|
|
3184
|
-
transactionPassword: await
|
|
3185
|
-
recipientMobileNumber:
|
|
3119
|
+
transactionPassword: await y(e.transactionPassword),
|
|
3120
|
+
recipientMobileNumber: A(e.recipientMobileNumber)
|
|
3186
3121
|
}
|
|
3187
3122
|
});
|
|
3188
3123
|
if (!r.ok) return r;
|
|
@@ -3192,7 +3127,7 @@ class Lt {
|
|
|
3192
3127
|
input: {
|
|
3193
3128
|
id: t,
|
|
3194
3129
|
amount: e.amount.toString(),
|
|
3195
|
-
transactionPassword: await
|
|
3130
|
+
transactionPassword: await y(e.transactionPassword)
|
|
3196
3131
|
}
|
|
3197
3132
|
});
|
|
3198
3133
|
if (!r.ok) return r;
|
|
@@ -3223,7 +3158,7 @@ class Lt {
|
|
|
3223
3158
|
/*+----------------------------------------+*/
|
|
3224
3159
|
/**/
|
|
3225
3160
|
async createDeposit(e) {
|
|
3226
|
-
const t = e.id ??
|
|
3161
|
+
const t = e.id ?? k.generate(T.Deposit).toString();
|
|
3227
3162
|
if (e.type === "MAYA") {
|
|
3228
3163
|
const r = await this.walletService.createMayaDeposit({
|
|
3229
3164
|
input: {
|
|
@@ -3388,51 +3323,15 @@ class Lt {
|
|
|
3388
3323
|
/*+ GAME +*/
|
|
3389
3324
|
/*+----------------------------------------+*/
|
|
3390
3325
|
/**/
|
|
3391
|
-
/** @deprecated use `game__next` */
|
|
3392
3326
|
async game(e) {
|
|
3393
|
-
return this.game__next(e);
|
|
3394
|
-
}
|
|
3395
|
-
async game__next(e) {
|
|
3396
3327
|
const t = await this.cmsPortalService.game(e);
|
|
3397
3328
|
return t.ok ? {
|
|
3398
3329
|
ok: !0,
|
|
3399
|
-
data: t.data ? this.transformer.transform.
|
|
3330
|
+
data: t.data ? this.transformer.transform.game(t.data) : null
|
|
3400
3331
|
} : t;
|
|
3401
3332
|
}
|
|
3402
|
-
/** @deprecated use `games__next` */
|
|
3403
3333
|
async games(e) {
|
|
3404
|
-
const t = await this.walletService.games(e);
|
|
3405
|
-
return t.ok ? {
|
|
3406
|
-
ok: !0,
|
|
3407
|
-
data: {
|
|
3408
|
-
games: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3409
|
-
...this.transformer.transform.game(a),
|
|
3410
|
-
cursor: r
|
|
3411
|
-
})),
|
|
3412
|
-
totalCount: t.data.totalCount,
|
|
3413
|
-
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
3414
|
-
endCursor: t.data.pageInfo.endCursor ?? void 0
|
|
3415
|
-
}
|
|
3416
|
-
} : t;
|
|
3417
|
-
}
|
|
3418
|
-
async games__next(e) {
|
|
3419
3334
|
const t = await this.cmsPortalService.games(e);
|
|
3420
|
-
return t.ok ? {
|
|
3421
|
-
ok: !0,
|
|
3422
|
-
data: {
|
|
3423
|
-
games: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3424
|
-
...this.transformer.transform.game__next(a),
|
|
3425
|
-
cursor: r
|
|
3426
|
-
})),
|
|
3427
|
-
totalCount: t.data.totalCount,
|
|
3428
|
-
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
3429
|
-
endCursor: t.data.pageInfo.endCursor ?? void 0
|
|
3430
|
-
}
|
|
3431
|
-
} : t;
|
|
3432
|
-
}
|
|
3433
|
-
/** @deprecated use `games__next` */
|
|
3434
|
-
async games__legacy(e) {
|
|
3435
|
-
const t = await this.gameService.games(e);
|
|
3436
3335
|
return t.ok ? {
|
|
3437
3336
|
ok: !0,
|
|
3438
3337
|
data: {
|
|
@@ -3446,39 +3345,7 @@ class Lt {
|
|
|
3446
3345
|
}
|
|
3447
3346
|
} : t;
|
|
3448
3347
|
}
|
|
3449
|
-
/** @deprecated use `games__next` */
|
|
3450
|
-
async gamesByName(e) {
|
|
3451
|
-
const t = await this.walletService.gamesByName(e);
|
|
3452
|
-
return t.ok ? {
|
|
3453
|
-
ok: !0,
|
|
3454
|
-
data: t.data.map(this.transformer.transform.game)
|
|
3455
|
-
} : t;
|
|
3456
|
-
}
|
|
3457
|
-
/** @deprecated use `games__next` */
|
|
3458
|
-
async gamesByName__legacy(e) {
|
|
3459
|
-
const t = await this.gameService.gamesByName(e);
|
|
3460
|
-
return t.ok ? {
|
|
3461
|
-
ok: !0,
|
|
3462
|
-
data: t.data.map(this.transformer.transform.game)
|
|
3463
|
-
} : t;
|
|
3464
|
-
}
|
|
3465
|
-
/** @deprecated use `gameSession__next` */
|
|
3466
3348
|
async gameSession(e) {
|
|
3467
|
-
const t = await this.walletService.gameSession({ id: e });
|
|
3468
|
-
return t.ok ? {
|
|
3469
|
-
ok: !0,
|
|
3470
|
-
data: t.data ? this.transformer.transform.gameSession(t.data) : null
|
|
3471
|
-
} : t;
|
|
3472
|
-
}
|
|
3473
|
-
/** @deprecated use `gameSession__next` */
|
|
3474
|
-
async gameSession__legacy(e) {
|
|
3475
|
-
const t = await this.gameService.gameSession({ id: e });
|
|
3476
|
-
return t.ok ? {
|
|
3477
|
-
ok: !0,
|
|
3478
|
-
data: t.data ? this.transformer.transform.gameSession(t.data) : null
|
|
3479
|
-
} : t;
|
|
3480
|
-
}
|
|
3481
|
-
async gameSession__next(e) {
|
|
3482
3349
|
const t = await this.walletService.gameSession({ id: e });
|
|
3483
3350
|
if (!t.ok) return t;
|
|
3484
3351
|
if (t.data)
|
|
@@ -3493,28 +3360,19 @@ class Lt {
|
|
|
3493
3360
|
} : r;
|
|
3494
3361
|
}
|
|
3495
3362
|
async createGameSession(e) {
|
|
3496
|
-
const t = e.id ??
|
|
3497
|
-
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3498
|
-
}
|
|
3499
|
-
/** @deprecated use `createGameSession__next` */
|
|
3500
|
-
async createGameSession__legacy(e) {
|
|
3501
|
-
const t = e.id ?? A.generate(E.GameSession).toString(), r = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
|
|
3502
|
-
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3503
|
-
}
|
|
3504
|
-
async createGameSession__next(e) {
|
|
3505
|
-
const t = e.id ?? A.generate(E.GameSession).toString();
|
|
3363
|
+
const t = e.id ?? k.generate(T.GameSession).toString();
|
|
3506
3364
|
if (e.game.startsWith("SPORTS:")) {
|
|
3507
|
-
const
|
|
3508
|
-
(
|
|
3365
|
+
const m = await k.generateFromKey(T.Game, e.game).then(
|
|
3366
|
+
(f) => f.toString()
|
|
3509
3367
|
), l = await this.gameService.createGameSession({
|
|
3510
3368
|
input: {
|
|
3511
3369
|
id: t,
|
|
3512
|
-
game:
|
|
3370
|
+
game: m
|
|
3513
3371
|
}
|
|
3514
3372
|
});
|
|
3515
3373
|
return l.ok ? { ok: !0, data: { id: t } } : l;
|
|
3516
3374
|
}
|
|
3517
|
-
const r = await this.
|
|
3375
|
+
const r = await this.game(e.game);
|
|
3518
3376
|
if (!r.data)
|
|
3519
3377
|
return {
|
|
3520
3378
|
ok: !1,
|
|
@@ -3527,18 +3385,10 @@ class Lt {
|
|
|
3527
3385
|
/**/
|
|
3528
3386
|
provider: a,
|
|
3529
3387
|
reference: s
|
|
3530
|
-
} = r.data, c =
|
|
3388
|
+
} = r.data, c = Gt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
3531
3389
|
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
3532
3390
|
}
|
|
3533
|
-
/** @deprecated use `endGameSession__next` */
|
|
3534
3391
|
async endGameSession(e) {
|
|
3535
|
-
return await this.walletService.endGameSession({ input: { id: e } });
|
|
3536
|
-
}
|
|
3537
|
-
/** @deprecated use `endGameSession__next` */
|
|
3538
|
-
async endGameSession__legacy(e) {
|
|
3539
|
-
return await this.gameService.endGameSession({ input: { id: e } });
|
|
3540
|
-
}
|
|
3541
|
-
async endGameSession__next(e) {
|
|
3542
3392
|
const t = await this.walletService.endGameSession({ input: { id: e } });
|
|
3543
3393
|
return t.ok ? t : await this.gameService.endGameSession({ input: { id: e } });
|
|
3544
3394
|
}
|
|
@@ -3555,7 +3405,7 @@ class Lt {
|
|
|
3555
3405
|
} : t;
|
|
3556
3406
|
}
|
|
3557
3407
|
async uploadImageFile(e) {
|
|
3558
|
-
const t = e.id ??
|
|
3408
|
+
const t = e.id ?? k.generate(T.File).toString(), r = await this.fileService.uploadPrivateImageFile({
|
|
3559
3409
|
input: {
|
|
3560
3410
|
id: t,
|
|
3561
3411
|
file: e.file
|
|
@@ -3648,7 +3498,7 @@ class Lt {
|
|
|
3648
3498
|
} : t;
|
|
3649
3499
|
}
|
|
3650
3500
|
}
|
|
3651
|
-
const
|
|
3501
|
+
const xt = [
|
|
3652
3502
|
/**/
|
|
3653
3503
|
"RTG",
|
|
3654
3504
|
"DARWIN",
|
|
@@ -3658,12 +3508,12 @@ const Wt = [
|
|
|
3658
3508
|
"EVOLUTION_NETENT",
|
|
3659
3509
|
"EVOLUTION_REDTIGER"
|
|
3660
3510
|
];
|
|
3661
|
-
function
|
|
3662
|
-
return
|
|
3511
|
+
function Gt(o) {
|
|
3512
|
+
return xt.some((e) => e === o);
|
|
3663
3513
|
}
|
|
3664
3514
|
export {
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3515
|
+
Ft as ObjectId,
|
|
3516
|
+
T as ObjectType,
|
|
3517
|
+
Ot as Sdk
|
|
3668
3518
|
};
|
|
3669
3519
|
//# sourceMappingURL=index.mjs.map
|