@opexa/portal-sdk 0.0.55 → 0.0.57
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 +16 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +351 -307
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +3 -1
- package/dist/sdk/types.d.ts +12 -0
- package/dist/services/account.service.d.ts +3 -1
- package/dist/services/queries.d.ts +2 -0
- package/dist/services/types.d.ts +14 -0
- package/dist/services/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Te = Object.defineProperty;
|
|
2
|
-
var ve = (
|
|
3
|
-
var m = (
|
|
2
|
+
var ve = (o, e, t) => e in o ? Te(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var m = (o, e, t) => ve(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ObjectId as A } from "@opexa/object-id";
|
|
5
|
-
import { ObjectId as
|
|
5
|
+
import { ObjectId as Yt } from "@opexa/object-id";
|
|
6
6
|
const S = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
@@ -13,22 +13,22 @@ const S = {
|
|
|
13
13
|
GameSession: 204,
|
|
14
14
|
MayaSession: 230
|
|
15
15
|
};
|
|
16
|
-
function o
|
|
16
|
+
function n(o, ...e) {
|
|
17
17
|
let t = "";
|
|
18
|
-
for (const [
|
|
19
|
-
const s = e.at(
|
|
20
|
-
t = `${t}${
|
|
18
|
+
for (const [r, a] of o.entries()) {
|
|
19
|
+
const s = e.at(r) ?? "";
|
|
20
|
+
t = `${t}${a}${s}`;
|
|
21
21
|
}
|
|
22
22
|
return t.trim();
|
|
23
23
|
}
|
|
24
|
-
const L =
|
|
24
|
+
const L = n`
|
|
25
25
|
fragment FileFragment on File {
|
|
26
26
|
id
|
|
27
27
|
url
|
|
28
28
|
status
|
|
29
29
|
dateTimeCreated
|
|
30
30
|
}
|
|
31
|
-
`, Me =
|
|
31
|
+
`, Me = n`
|
|
32
32
|
${L}
|
|
33
33
|
|
|
34
34
|
query File($id: ObjectId!) {
|
|
@@ -38,7 +38,7 @@ const L = o`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`, Ne =
|
|
41
|
+
`, Ne = n`
|
|
42
42
|
mutation UploadPrivateImageFile($input: UploadFileInput!) {
|
|
43
43
|
uploadPrivateImageFile(input: $input) {
|
|
44
44
|
... on FileFormatNotSupportedError {
|
|
@@ -52,7 +52,7 @@ const L = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`, Ie =
|
|
55
|
+
`, Ie = n`
|
|
56
56
|
query Wallet {
|
|
57
57
|
wallet {
|
|
58
58
|
id
|
|
@@ -62,7 +62,7 @@ const L = o`
|
|
|
62
62
|
dateTimeLastUpdated
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`, De =
|
|
65
|
+
`, De = n`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -71,7 +71,7 @@ const L = o`
|
|
|
71
71
|
dateTimeCreated
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`, Re =
|
|
74
|
+
`, Re = n`
|
|
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
|
-
`, Pe =
|
|
82
|
+
`, Pe = n`
|
|
83
83
|
query PointsWalletTransactions(
|
|
84
84
|
$first: Int
|
|
85
85
|
$after: Cursor
|
|
@@ -107,7 +107,7 @@ const L = o`
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`, ge =
|
|
110
|
+
`, ge = n`
|
|
111
111
|
query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
|
|
112
112
|
games(first: $first, after: $after, filter: $filter) {
|
|
113
113
|
edges {
|
|
@@ -128,7 +128,7 @@ const L = o`
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
`, Ee =
|
|
131
|
+
`, Ee = n`
|
|
132
132
|
query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
|
|
133
133
|
gamesByName(first: $first, search: $search, filter: $filter) {
|
|
134
134
|
... on Game {
|
|
@@ -139,7 +139,7 @@ const L = o`
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
`, Ae =
|
|
142
|
+
`, Ae = n`
|
|
143
143
|
query GameSession($id: ObjectId!) {
|
|
144
144
|
node(id: $id) {
|
|
145
145
|
... on GameSession {
|
|
@@ -151,7 +151,7 @@ const L = o`
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
`, Se =
|
|
154
|
+
`, Se = n`
|
|
155
155
|
mutation CreateGameSession($input: CreateGameSessionInput!) {
|
|
156
156
|
createGameSession(input: $input) {
|
|
157
157
|
... on GameDoesNotExistError {
|
|
@@ -159,11 +159,11 @@ const L = o`
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
`, xe =
|
|
162
|
+
`, xe = n`
|
|
163
163
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
164
164
|
endGameSession(input: $input)
|
|
165
165
|
}
|
|
166
|
-
`, Ge =
|
|
166
|
+
`, Ge = n`
|
|
167
167
|
mutation EndGameSession($input: EndGameSessionInput!) {
|
|
168
168
|
endGameSession(input: $input) {
|
|
169
169
|
... on GameSessionDoesNotExistError {
|
|
@@ -177,7 +177,7 @@ const L = o`
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
`, We =
|
|
180
|
+
`, We = n`
|
|
181
181
|
query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
|
|
182
182
|
announcements(first: $first, after: $after, filter: $filter) {
|
|
183
183
|
edges {
|
|
@@ -203,7 +203,7 @@ const L = o`
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
`, $e =
|
|
206
|
+
`, $e = n`
|
|
207
207
|
query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
|
|
208
208
|
member {
|
|
209
209
|
withdrawalRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -270,7 +270,7 @@ const L = o`
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
`, Ue =
|
|
273
|
+
`, Ue = n`
|
|
274
274
|
mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
|
|
275
275
|
createGCashWithdrawal(input: $input) {
|
|
276
276
|
... on AccountNotVerifiedError {
|
|
@@ -293,7 +293,7 @@ const L = o`
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
`,
|
|
296
|
+
`, Oe = n`
|
|
297
297
|
mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
|
|
298
298
|
createMayaWithdrawal(input: $input) {
|
|
299
299
|
... on AccountNotVerifiedError {
|
|
@@ -316,7 +316,7 @@ const L = o`
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
`,
|
|
319
|
+
`, Be = n`
|
|
320
320
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
321
321
|
createMayaAppWithdrawal(input: $input) {
|
|
322
322
|
... on AccountNotVerifiedError {
|
|
@@ -336,7 +336,7 @@ const L = o`
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
`, qe =
|
|
339
|
+
`, qe = n`
|
|
340
340
|
mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
|
|
341
341
|
createMayaAppWithdrawal: createMayaAppWithdrawal_next(input: $input) {
|
|
342
342
|
... on AccountNotVerifiedError {
|
|
@@ -356,7 +356,7 @@ const L = o`
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
`, Fe =
|
|
359
|
+
`, Fe = n`
|
|
360
360
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
361
361
|
createBankWithdrawal(input: $input) {
|
|
362
362
|
... on MobileNumberNotVerifiedError {
|
|
@@ -379,11 +379,11 @@ const L = o`
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
`, Le =
|
|
382
|
+
`, Le = n`
|
|
383
383
|
query RemainingDailyWithdrawalsCount {
|
|
384
384
|
remainingDailyWithdrawalsCount
|
|
385
385
|
}
|
|
386
|
-
`, Ve =
|
|
386
|
+
`, Ve = n`
|
|
387
387
|
query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
|
|
388
388
|
member {
|
|
389
389
|
depositRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -412,7 +412,7 @@ const L = o`
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
`, Ye =
|
|
415
|
+
`, Ye = n`
|
|
416
416
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
417
417
|
createGCashDeposit(input: $input) {
|
|
418
418
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -441,7 +441,7 @@ const L = o`
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
`, He =
|
|
444
|
+
`, He = n`
|
|
445
445
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
446
446
|
createMayaDeposit(input: $input) {
|
|
447
447
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -470,7 +470,7 @@ const L = o`
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
`, je =
|
|
473
|
+
`, je = n`
|
|
474
474
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
475
475
|
createMayaAppDeposit(input: $input) {
|
|
476
476
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -499,7 +499,7 @@ const L = o`
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
`, Qe =
|
|
502
|
+
`, Qe = n`
|
|
503
503
|
mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
|
|
504
504
|
createMayaAppDeposit: createMayaAppDeposit_next(input: $input) {
|
|
505
505
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -528,7 +528,7 @@ const L = o`
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
`, Ke =
|
|
531
|
+
`, Ke = n`
|
|
532
532
|
query Deposit($id: ObjectId!) {
|
|
533
533
|
node(id: $id) {
|
|
534
534
|
... on GCashDeposit {
|
|
@@ -560,13 +560,13 @@ const L = o`
|
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
`, ze =
|
|
563
|
+
`, ze = n`
|
|
564
564
|
query DepositsCount {
|
|
565
565
|
member {
|
|
566
566
|
depositsCount
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
`, Je =
|
|
569
|
+
`, Je = n`
|
|
570
570
|
query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
|
|
571
571
|
member {
|
|
572
572
|
betRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -607,7 +607,7 @@ const L = o`
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
`, Xe =
|
|
610
|
+
`, Xe = n`
|
|
611
611
|
query LatestBetRecords {
|
|
612
612
|
latestBetRecords {
|
|
613
613
|
id
|
|
@@ -627,7 +627,7 @@ const L = o`
|
|
|
627
627
|
dateTimeCreated
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
`, Ze =
|
|
630
|
+
`, Ze = n`
|
|
631
631
|
query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
|
|
632
632
|
member {
|
|
633
633
|
transactionRecords(first: $first, after: $after, filter: $filter) {
|
|
@@ -653,7 +653,7 @@ const L = o`
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
`, H =
|
|
656
|
+
`, H = n`
|
|
657
657
|
${L}
|
|
658
658
|
|
|
659
659
|
fragment PromoFragment on Promo {
|
|
@@ -672,7 +672,7 @@ const L = o`
|
|
|
672
672
|
dateTimeCreated
|
|
673
673
|
dateTimeLastUpdated
|
|
674
674
|
}
|
|
675
|
-
`, et =
|
|
675
|
+
`, et = n`
|
|
676
676
|
${H}
|
|
677
677
|
|
|
678
678
|
query Promos {
|
|
@@ -680,7 +680,7 @@ const L = o`
|
|
|
680
680
|
...PromoFragment
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
`, tt =
|
|
683
|
+
`, tt = n`
|
|
684
684
|
${H}
|
|
685
685
|
|
|
686
686
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -688,7 +688,7 @@ const L = o`
|
|
|
688
688
|
...PromoFragment
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
`, be =
|
|
691
|
+
`, be = n`
|
|
692
692
|
${L}
|
|
693
693
|
|
|
694
694
|
fragment CashbackFragment on Cashback {
|
|
@@ -705,7 +705,7 @@ const L = o`
|
|
|
705
705
|
dateTimeCreated
|
|
706
706
|
dateTimeLastUpdated
|
|
707
707
|
}
|
|
708
|
-
`,
|
|
708
|
+
`, rt = n`
|
|
709
709
|
${be}
|
|
710
710
|
|
|
711
711
|
query Cashbacks {
|
|
@@ -713,7 +713,7 @@ const L = o`
|
|
|
713
713
|
...CashbackFragment
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
`,
|
|
716
|
+
`, at = n`
|
|
717
717
|
${H}
|
|
718
718
|
|
|
719
719
|
query Bonus {
|
|
@@ -742,7 +742,7 @@ const L = o`
|
|
|
742
742
|
dateTimeLastUpdated
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
`,
|
|
745
|
+
`, ot = n`
|
|
746
746
|
${be}
|
|
747
747
|
|
|
748
748
|
query CashbackBonuses {
|
|
@@ -756,7 +756,7 @@ const L = o`
|
|
|
756
756
|
dateTimeLastUpdated
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
`,
|
|
759
|
+
`, nt = n`
|
|
760
760
|
mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
|
|
761
761
|
claimCashbackBonus(input: $input) {
|
|
762
762
|
... on CashbackBonusDoesNotExistError {
|
|
@@ -764,13 +764,13 @@ const L = o`
|
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
`, it =
|
|
767
|
+
`, it = n`
|
|
768
768
|
query Member {
|
|
769
769
|
member {
|
|
770
770
|
dateTimeLastActive
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
`, st =
|
|
773
|
+
`, st = n`
|
|
774
774
|
query MemberAccount {
|
|
775
775
|
memberAccount: self {
|
|
776
776
|
... on MemberAccount {
|
|
@@ -794,7 +794,7 @@ const L = o`
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
`, ct =
|
|
797
|
+
`, ct = n`
|
|
798
798
|
${L}
|
|
799
799
|
|
|
800
800
|
query MemberVerification {
|
|
@@ -818,7 +818,7 @@ const L = o`
|
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
`, mt =
|
|
821
|
+
`, mt = n`
|
|
822
822
|
mutation RegisterMemberAccount(
|
|
823
823
|
$input: RegisterMemberAccountInput!
|
|
824
824
|
$referralCode: String
|
|
@@ -854,7 +854,7 @@ const L = o`
|
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
`, dt =
|
|
857
|
+
`, dt = n`
|
|
858
858
|
mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
|
|
859
859
|
registerMayaMemberAccount(input: $input) {
|
|
860
860
|
... on AccountNameNotAvailableError {
|
|
@@ -862,7 +862,7 @@ const L = o`
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
`, ut =
|
|
865
|
+
`, ut = n`
|
|
866
866
|
mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
|
|
867
867
|
updateMemberAccount(input: $input) {
|
|
868
868
|
... on AccountNameNotAvailableError {
|
|
@@ -888,7 +888,7 @@ const L = o`
|
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
`, lt =
|
|
891
|
+
`, lt = n`
|
|
892
892
|
mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
|
|
893
893
|
resetPassword(input: $input, verificationCode: $verificationCode) {
|
|
894
894
|
... on AccountNotFoundError {
|
|
@@ -899,11 +899,11 @@ const L = o`
|
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
`, pt =
|
|
902
|
+
`, pt = n`
|
|
903
903
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
904
904
|
deleteMemberAccount(input: $input)
|
|
905
905
|
}
|
|
906
|
-
`, ft =
|
|
906
|
+
`, ft = n`
|
|
907
907
|
mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
|
|
908
908
|
verifyMobileNumber(input: $input) {
|
|
909
909
|
... on InvalidSMSVerificationCodeError {
|
|
@@ -914,7 +914,7 @@ const L = o`
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
`, ht =
|
|
917
|
+
`, ht = n`
|
|
918
918
|
mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
|
|
919
919
|
createMemberVerification(input: $input) {
|
|
920
920
|
... on FileDoesNotExistError {
|
|
@@ -928,7 +928,7 @@ const L = o`
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
`, yt =
|
|
931
|
+
`, yt = n`
|
|
932
932
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
933
933
|
updateMemberVerification(input: $input) {
|
|
934
934
|
... on FileDoesNotExistError {
|
|
@@ -945,7 +945,7 @@ const L = o`
|
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
`, wt =
|
|
948
|
+
`, wt = n`
|
|
949
949
|
query ProfileCompletion {
|
|
950
950
|
profileCompletion {
|
|
951
951
|
completionPercentage
|
|
@@ -956,7 +956,7 @@ const L = o`
|
|
|
956
956
|
accountPassword
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
`, gt =
|
|
959
|
+
`, gt = n`
|
|
960
960
|
mutation SendVerificationCode($input: SendVerificationCodeInput!) {
|
|
961
961
|
sendVerificationCode(input: $input) {
|
|
962
962
|
... on InvalidPlatformError {
|
|
@@ -967,7 +967,7 @@ const L = o`
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
`, Et =
|
|
970
|
+
`, Et = n`
|
|
971
971
|
fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
|
|
972
972
|
minimumAmount
|
|
973
973
|
maximumAmount
|
|
@@ -1021,7 +1021,7 @@ const L = o`
|
|
|
1021
1021
|
multiplier
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
`, At =
|
|
1024
|
+
`, At = n`
|
|
1025
1025
|
query MayaSession($id: ObjectId!) {
|
|
1026
1026
|
mayaSession(id: $id) {
|
|
1027
1027
|
id
|
|
@@ -1029,11 +1029,11 @@ const L = o`
|
|
|
1029
1029
|
dateTimeCreated
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
`, St =
|
|
1032
|
+
`, St = n`
|
|
1033
1033
|
mutation ValidateMayaSession {
|
|
1034
1034
|
validateMayaSession: validMayaSession
|
|
1035
1035
|
}
|
|
1036
|
-
`, bt =
|
|
1036
|
+
`, bt = n`
|
|
1037
1037
|
query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
|
|
1038
1038
|
member {
|
|
1039
1039
|
activityRecords(after: $after, first: $first, filter: $filter) {
|
|
@@ -1058,10 +1058,22 @@ const L = o`
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
+
`, kt = n`
|
|
1062
|
+
query ReferralCode {
|
|
1063
|
+
referralCode
|
|
1064
|
+
}
|
|
1065
|
+
`, _t = n`
|
|
1066
|
+
mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
|
|
1067
|
+
updateReferralCode(input: $input) {
|
|
1068
|
+
... on ReferralCodeNotAvailableError {
|
|
1069
|
+
__typename
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1061
1073
|
`;
|
|
1062
|
-
function d(
|
|
1074
|
+
function d(o) {
|
|
1063
1075
|
return {
|
|
1064
|
-
name:
|
|
1076
|
+
name: o,
|
|
1065
1077
|
message: {
|
|
1066
1078
|
AccountNameNotAvailableError: "Username is no longer available",
|
|
1067
1079
|
AccountNotFoundError: "Account does not exist",
|
|
@@ -1105,15 +1117,16 @@ function d(n) {
|
|
|
1105
1117
|
GameProviderError: "Game provider error",
|
|
1106
1118
|
GameSessionAlreadyClosedError: "Game session is already closed",
|
|
1107
1119
|
GameSessionDoesNotExistError: "Game session does not exist",
|
|
1120
|
+
ReferralCodeNotAvailableError: "Referral code is no longer available",
|
|
1108
1121
|
AccountBlacklisted: "Account is blacklisted",
|
|
1109
1122
|
AccountNotFound: "Account not found",
|
|
1110
1123
|
InvalidToken: "Invalid token",
|
|
1111
1124
|
InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
|
|
1112
1125
|
SessionExpired: "Session expired"
|
|
1113
|
-
}[
|
|
1126
|
+
}[o]
|
|
1114
1127
|
};
|
|
1115
1128
|
}
|
|
1116
|
-
class
|
|
1129
|
+
class Ct {
|
|
1117
1130
|
constructor(e) {
|
|
1118
1131
|
m(this, "client");
|
|
1119
1132
|
this.client = e;
|
|
@@ -1237,9 +1250,25 @@ class kt {
|
|
|
1237
1250
|
ok: !0
|
|
1238
1251
|
} : t;
|
|
1239
1252
|
}
|
|
1253
|
+
async referralCode() {
|
|
1254
|
+
const e = await this.client.request(kt);
|
|
1255
|
+
return e.ok ? {
|
|
1256
|
+
ok: !0,
|
|
1257
|
+
data: e.data.referralCode
|
|
1258
|
+
} : e;
|
|
1259
|
+
}
|
|
1260
|
+
async updateReferralCode(e) {
|
|
1261
|
+
const t = await this.client.request(_t, e);
|
|
1262
|
+
return t.ok ? t.data.updateReferralCode ? {
|
|
1263
|
+
ok: !1,
|
|
1264
|
+
error: d(t.data.updateReferralCode.__typename)
|
|
1265
|
+
} : {
|
|
1266
|
+
ok: !0
|
|
1267
|
+
} : t;
|
|
1268
|
+
}
|
|
1240
1269
|
}
|
|
1241
|
-
function h(
|
|
1242
|
-
const t = V[
|
|
1270
|
+
function h(o, e) {
|
|
1271
|
+
const t = V[o] ? V[o] : V[500];
|
|
1243
1272
|
return {
|
|
1244
1273
|
name: t.name,
|
|
1245
1274
|
message: e ?? t.message
|
|
@@ -1254,7 +1283,7 @@ const V = {
|
|
|
1254
1283
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1255
1284
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1256
1285
|
};
|
|
1257
|
-
class
|
|
1286
|
+
class Tt {
|
|
1258
1287
|
constructor(e) {
|
|
1259
1288
|
m(this, "url");
|
|
1260
1289
|
m(this, "platform");
|
|
@@ -1267,28 +1296,28 @@ class _t {
|
|
|
1267
1296
|
Role: "MEMBER"
|
|
1268
1297
|
});
|
|
1269
1298
|
if (e.name) {
|
|
1270
|
-
const
|
|
1271
|
-
t.set("Authorization", `Basic ${
|
|
1299
|
+
const r = `${e.name}:${e.password}`, a = Buffer.from(r).toString("base64");
|
|
1300
|
+
t.set("Authorization", `Basic ${a}`);
|
|
1272
1301
|
}
|
|
1273
1302
|
if (e.mobileNumber) {
|
|
1274
|
-
const
|
|
1275
|
-
t.set("Authorization", `MobileNumberOTP ${
|
|
1303
|
+
const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
|
|
1304
|
+
t.set("Authorization", `MobileNumberOTP ${a}`);
|
|
1276
1305
|
}
|
|
1277
1306
|
e.sessionId && t.set("Authorization", `mayasession ${e.sessionId}`);
|
|
1278
1307
|
try {
|
|
1279
|
-
const
|
|
1308
|
+
const r = await fetch(`${this.url}/sessions`, {
|
|
1280
1309
|
method: "POST",
|
|
1281
1310
|
headers: t
|
|
1282
|
-
}),
|
|
1283
|
-
return
|
|
1311
|
+
}), a = await r.json();
|
|
1312
|
+
return r.ok ? {
|
|
1284
1313
|
ok: !0,
|
|
1285
|
-
data:
|
|
1286
|
-
} :
|
|
1314
|
+
data: a
|
|
1315
|
+
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1287
1316
|
ok: !1,
|
|
1288
1317
|
error: d("AccountBlacklisted")
|
|
1289
1318
|
} : {
|
|
1290
1319
|
ok: !1,
|
|
1291
|
-
error: h(
|
|
1320
|
+
error: h(r.status)
|
|
1292
1321
|
};
|
|
1293
1322
|
} catch {
|
|
1294
1323
|
return {
|
|
@@ -1306,22 +1335,22 @@ class _t {
|
|
|
1306
1335
|
if (e.type === "SECURITY_QUESTION") {
|
|
1307
1336
|
t.set("Authorization", `Bearer ${e.token}`);
|
|
1308
1337
|
try {
|
|
1309
|
-
const
|
|
1338
|
+
const r = await fetch(`${this.url}/session/${e.token}/authenticate`, {
|
|
1310
1339
|
method: "POST",
|
|
1311
1340
|
headers: t,
|
|
1312
1341
|
body: JSON.stringify({
|
|
1313
1342
|
secretAnswer: e.secretAnswer
|
|
1314
1343
|
})
|
|
1315
|
-
}),
|
|
1316
|
-
return
|
|
1344
|
+
}), a = await r.json();
|
|
1345
|
+
return r.ok ? {
|
|
1317
1346
|
ok: !0,
|
|
1318
|
-
data:
|
|
1319
|
-
} :
|
|
1347
|
+
data: a
|
|
1348
|
+
} : r.status === 401 || r.status === 403 ? {
|
|
1320
1349
|
ok: !1,
|
|
1321
1350
|
error: d("InvalidTokenOrSecretAnswer")
|
|
1322
1351
|
} : {
|
|
1323
1352
|
ok: !1,
|
|
1324
|
-
error: h(
|
|
1353
|
+
error: h(r.status)
|
|
1325
1354
|
};
|
|
1326
1355
|
} catch {
|
|
1327
1356
|
return {
|
|
@@ -1342,11 +1371,11 @@ class _t {
|
|
|
1342
1371
|
Role: "MEMBER",
|
|
1343
1372
|
Authorization: `Bearer ${e}`
|
|
1344
1373
|
}
|
|
1345
|
-
}),
|
|
1374
|
+
}), r = await t.json();
|
|
1346
1375
|
return t.ok ? {
|
|
1347
1376
|
ok: !0,
|
|
1348
|
-
data:
|
|
1349
|
-
} :
|
|
1377
|
+
data: r
|
|
1378
|
+
} : r.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1350
1379
|
ok: !1,
|
|
1351
1380
|
error: d("AccountBlacklisted")
|
|
1352
1381
|
} : t.status === 403 || t.status === 401 ? {
|
|
@@ -1395,7 +1424,7 @@ class _t {
|
|
|
1395
1424
|
}
|
|
1396
1425
|
}
|
|
1397
1426
|
}
|
|
1398
|
-
class
|
|
1427
|
+
class vt {
|
|
1399
1428
|
constructor(e) {
|
|
1400
1429
|
m(this, "url");
|
|
1401
1430
|
m(this, "siteId");
|
|
@@ -1410,35 +1439,35 @@ class Ct {
|
|
|
1410
1439
|
} : e;
|
|
1411
1440
|
}
|
|
1412
1441
|
async games(e) {
|
|
1413
|
-
var
|
|
1442
|
+
var a, s, c, p, l, f, y, u, _, C, T, v, M, N, I, D, R, P, x, G, W, $, U, O;
|
|
1414
1443
|
const t = new URLSearchParams();
|
|
1415
|
-
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 = (
|
|
1444
|
+
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), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.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(",")), (u = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && u.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (C = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && C.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.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 = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (G = (x = e == null ? void 0 : e.filter) == null ? void 0 : x.tags) != null && G.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), ($ = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && $.in && t.set(
|
|
1416
1445
|
"filter[tags][in]",
|
|
1417
1446
|
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1418
|
-
), (
|
|
1447
|
+
), (O = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.tags) != null && O.notIn && t.set(
|
|
1419
1448
|
"filter[tags][nin]",
|
|
1420
1449
|
e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
|
|
1421
1450
|
);
|
|
1422
|
-
const
|
|
1423
|
-
return
|
|
1451
|
+
const r = await this.getJson("/games", t);
|
|
1452
|
+
return r.ok ? {
|
|
1424
1453
|
ok: !0,
|
|
1425
1454
|
data: {
|
|
1426
|
-
edges:
|
|
1455
|
+
edges: r.data.data.map((E) => ({
|
|
1427
1456
|
node: E,
|
|
1428
1457
|
cursor: E.cursor
|
|
1429
1458
|
})),
|
|
1430
|
-
totalCount:
|
|
1459
|
+
totalCount: r.data.totalCount ?? 0,
|
|
1431
1460
|
pageInfo: {
|
|
1432
|
-
hasNextPage: !!
|
|
1433
|
-
endCursor:
|
|
1461
|
+
hasNextPage: !!r.data.next,
|
|
1462
|
+
endCursor: r.data.next
|
|
1434
1463
|
}
|
|
1435
1464
|
}
|
|
1436
|
-
} :
|
|
1465
|
+
} : r;
|
|
1437
1466
|
}
|
|
1438
1467
|
async game(e) {
|
|
1439
|
-
var
|
|
1468
|
+
var r;
|
|
1440
1469
|
const t = await this.getJson(`/games/${e}`);
|
|
1441
|
-
return ((
|
|
1470
|
+
return ((r = t.error) == null ? void 0 : r.name) === "HttpNotFound" ? {
|
|
1442
1471
|
ok: !0,
|
|
1443
1472
|
data: null
|
|
1444
1473
|
} : t.ok ? {
|
|
@@ -1447,7 +1476,7 @@ class Ct {
|
|
|
1447
1476
|
} : t;
|
|
1448
1477
|
}
|
|
1449
1478
|
async getJson(e, t) {
|
|
1450
|
-
const
|
|
1479
|
+
const r = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
|
|
1451
1480
|
method: "GET",
|
|
1452
1481
|
headers: {
|
|
1453
1482
|
Accept: "application/json",
|
|
@@ -1457,13 +1486,13 @@ class Ct {
|
|
|
1457
1486
|
}
|
|
1458
1487
|
});
|
|
1459
1488
|
try {
|
|
1460
|
-
const
|
|
1461
|
-
return
|
|
1489
|
+
const a = await fetch(r);
|
|
1490
|
+
return a.ok ? {
|
|
1462
1491
|
ok: !0,
|
|
1463
|
-
data: await
|
|
1492
|
+
data: await a.json()
|
|
1464
1493
|
} : {
|
|
1465
1494
|
ok: !1,
|
|
1466
|
-
error: h(
|
|
1495
|
+
error: h(a.status)
|
|
1467
1496
|
};
|
|
1468
1497
|
} catch {
|
|
1469
1498
|
return {
|
|
@@ -1473,7 +1502,7 @@ class Ct {
|
|
|
1473
1502
|
}
|
|
1474
1503
|
}
|
|
1475
1504
|
}
|
|
1476
|
-
class
|
|
1505
|
+
class Mt {
|
|
1477
1506
|
constructor(e) {
|
|
1478
1507
|
m(this, "client");
|
|
1479
1508
|
this.client = e;
|
|
@@ -1495,7 +1524,7 @@ class Tt {
|
|
|
1495
1524
|
} : t;
|
|
1496
1525
|
}
|
|
1497
1526
|
}
|
|
1498
|
-
class
|
|
1527
|
+
class Nt {
|
|
1499
1528
|
constructor(e) {
|
|
1500
1529
|
m(this, "client");
|
|
1501
1530
|
this.client = e;
|
|
@@ -1539,7 +1568,7 @@ class vt {
|
|
|
1539
1568
|
} : t;
|
|
1540
1569
|
}
|
|
1541
1570
|
}
|
|
1542
|
-
class
|
|
1571
|
+
class It {
|
|
1543
1572
|
constructor(e) {
|
|
1544
1573
|
m(this, "client");
|
|
1545
1574
|
this.client = e;
|
|
@@ -1552,7 +1581,7 @@ class Mt {
|
|
|
1552
1581
|
} : e;
|
|
1553
1582
|
}
|
|
1554
1583
|
}
|
|
1555
|
-
class
|
|
1584
|
+
class Dt {
|
|
1556
1585
|
constructor(e) {
|
|
1557
1586
|
m(this, "client");
|
|
1558
1587
|
this.client = e;
|
|
@@ -1602,7 +1631,7 @@ class Nt {
|
|
|
1602
1631
|
return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
|
|
1603
1632
|
}
|
|
1604
1633
|
}
|
|
1605
|
-
class
|
|
1634
|
+
class Rt {
|
|
1606
1635
|
constructor(e) {
|
|
1607
1636
|
m(this, "url");
|
|
1608
1637
|
this.url = e.url;
|
|
@@ -1624,7 +1653,7 @@ class ke {
|
|
|
1624
1653
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
1625
1654
|
}
|
|
1626
1655
|
async cashbacks() {
|
|
1627
|
-
const e = await this.client.request(
|
|
1656
|
+
const e = await this.client.request(rt);
|
|
1628
1657
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
1629
1658
|
}
|
|
1630
1659
|
async availablePromos(e) {
|
|
@@ -1635,11 +1664,11 @@ class ke {
|
|
|
1635
1664
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
1636
1665
|
}
|
|
1637
1666
|
async cashbackBonuses() {
|
|
1638
|
-
const e = await this.client.request(
|
|
1667
|
+
const e = await this.client.request(ot);
|
|
1639
1668
|
return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
|
|
1640
1669
|
}
|
|
1641
1670
|
async claimCashbackBonus(e) {
|
|
1642
|
-
const t = await this.client.request(
|
|
1671
|
+
const t = await this.client.request(nt, e);
|
|
1643
1672
|
return t.ok ? t.data.claimCashbackBonus ? {
|
|
1644
1673
|
ok: !1,
|
|
1645
1674
|
error: d(t.data.claimCashbackBonus.__typename)
|
|
@@ -1651,7 +1680,7 @@ class ke {
|
|
|
1651
1680
|
};
|
|
1652
1681
|
}
|
|
1653
1682
|
async bonus() {
|
|
1654
|
-
const e = await this.client.request(
|
|
1683
|
+
const e = await this.client.request(at);
|
|
1655
1684
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1656
1685
|
}
|
|
1657
1686
|
async wallet() {
|
|
@@ -1711,7 +1740,7 @@ class ke {
|
|
|
1711
1740
|
} : t;
|
|
1712
1741
|
}
|
|
1713
1742
|
async createMayaWithdrawal(e) {
|
|
1714
|
-
const t = await this.client.request(
|
|
1743
|
+
const t = await this.client.request(Oe, e);
|
|
1715
1744
|
return t.ok ? t.data.createMayaWithdrawal ? {
|
|
1716
1745
|
ok: !1,
|
|
1717
1746
|
error: d(t.data.createMayaWithdrawal.__typename)
|
|
@@ -1720,7 +1749,7 @@ class ke {
|
|
|
1720
1749
|
} : t;
|
|
1721
1750
|
}
|
|
1722
1751
|
async createMayaAppWithdrawal(e) {
|
|
1723
|
-
const t = await this.client.request(
|
|
1752
|
+
const t = await this.client.request(Be, e);
|
|
1724
1753
|
return t.ok ? t.data.createMayaAppWithdrawal ? {
|
|
1725
1754
|
ok: !1,
|
|
1726
1755
|
error: d(t.data.createMayaAppWithdrawal.__typename)
|
|
@@ -1831,45 +1860,45 @@ class ke {
|
|
|
1831
1860
|
} : e;
|
|
1832
1861
|
}
|
|
1833
1862
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1863
|
+
function Pt(o, e, t) {
|
|
1864
|
+
return o < e ? e : o > t ? t : o;
|
|
1836
1865
|
}
|
|
1837
|
-
function Y(
|
|
1838
|
-
return Object.prototype.toString.call(
|
|
1866
|
+
function Y(o) {
|
|
1867
|
+
return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
|
|
1839
1868
|
}
|
|
1840
|
-
function
|
|
1869
|
+
function xt(o) {
|
|
1841
1870
|
const e = [];
|
|
1842
|
-
function t(
|
|
1843
|
-
for (const s in
|
|
1844
|
-
const c =
|
|
1845
|
-
Y(c) ? t(c, [...
|
|
1846
|
-
key: [...
|
|
1871
|
+
function t(r, a = []) {
|
|
1872
|
+
for (const s in r) {
|
|
1873
|
+
const c = r[s];
|
|
1874
|
+
Y(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Gt(c), [...a, s]) : e.push({
|
|
1875
|
+
key: [...a, s],
|
|
1847
1876
|
value: c
|
|
1848
1877
|
});
|
|
1849
1878
|
}
|
|
1850
1879
|
}
|
|
1851
|
-
return t(
|
|
1880
|
+
return t(o), e;
|
|
1852
1881
|
}
|
|
1853
|
-
function
|
|
1854
|
-
return
|
|
1882
|
+
function Gt(o) {
|
|
1883
|
+
return o.reduce((e, t, r) => (e[r] = t, e), {});
|
|
1855
1884
|
}
|
|
1856
1885
|
class b {
|
|
1857
1886
|
constructor(e, t) {
|
|
1858
1887
|
m(this, "url");
|
|
1859
1888
|
m(this, "options");
|
|
1860
1889
|
m(this, "middlewares");
|
|
1861
|
-
var
|
|
1862
|
-
const
|
|
1863
|
-
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers:
|
|
1890
|
+
var a;
|
|
1891
|
+
const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
|
|
1892
|
+
this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
|
|
1864
1893
|
}
|
|
1865
1894
|
async request(e, t) {
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1895
|
+
const r = JSON.stringify({ query: e, variables: t }), a = new Headers(this.options.headers);
|
|
1896
|
+
a.set("Content-Type", "application/json"), a.set("Accept", "application/json");
|
|
1868
1897
|
const s = await this.runMiddlewares(
|
|
1869
1898
|
new Request(this.url, {
|
|
1870
1899
|
...this.options,
|
|
1871
|
-
body:
|
|
1872
|
-
headers:
|
|
1900
|
+
body: r,
|
|
1901
|
+
headers: a,
|
|
1873
1902
|
method: "POST"
|
|
1874
1903
|
})
|
|
1875
1904
|
);
|
|
@@ -1877,26 +1906,26 @@ class b {
|
|
|
1877
1906
|
}
|
|
1878
1907
|
/** Single file upload */
|
|
1879
1908
|
async upload(e, t) {
|
|
1880
|
-
const
|
|
1881
|
-
|
|
1909
|
+
const r = this.createUploadBody(e, t), a = new Headers(this.options.headers);
|
|
1910
|
+
a.delete("Content-Type");
|
|
1882
1911
|
const s = await this.runMiddlewares(
|
|
1883
1912
|
new Request(this.url, {
|
|
1884
1913
|
...this.options,
|
|
1885
|
-
body:
|
|
1886
|
-
headers:
|
|
1914
|
+
body: r,
|
|
1915
|
+
headers: a,
|
|
1887
1916
|
method: "POST"
|
|
1888
1917
|
})
|
|
1889
1918
|
);
|
|
1890
1919
|
return await this.exec(s);
|
|
1891
1920
|
}
|
|
1892
1921
|
async exec(e) {
|
|
1893
|
-
var t,
|
|
1922
|
+
var t, r, a, s, c, p;
|
|
1894
1923
|
try {
|
|
1895
1924
|
const l = await fetch(e);
|
|
1896
1925
|
if (!l.ok)
|
|
1897
1926
|
return { ok: !1, error: h(l.status) };
|
|
1898
1927
|
const f = await l.json(), y = f.data, u = (t = f.errors) == null ? void 0 : t.at(0);
|
|
1899
|
-
return u ? ((
|
|
1928
|
+
return u ? ((r = u.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = u.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, u.message) } : ((s = u.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, u.message) } : ((c = u.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((p = u.extensions) == null ? void 0 : p.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, u.message) } : {
|
|
1900
1929
|
ok: !1,
|
|
1901
1930
|
error: h(500, u.message)
|
|
1902
1931
|
} : {
|
|
@@ -1912,15 +1941,15 @@ class b {
|
|
|
1912
1941
|
}
|
|
1913
1942
|
async runMiddlewares(e) {
|
|
1914
1943
|
let t = e.clone();
|
|
1915
|
-
for (const
|
|
1916
|
-
t = await
|
|
1944
|
+
for (const r of this.middlewares)
|
|
1945
|
+
t = await r(t);
|
|
1917
1946
|
return t;
|
|
1918
1947
|
}
|
|
1919
1948
|
createUploadBody(e, t) {
|
|
1920
|
-
const
|
|
1949
|
+
const r = xt(t).filter(
|
|
1921
1950
|
(c) => c.value instanceof File || c.value instanceof Blob
|
|
1922
|
-
),
|
|
1923
|
-
|
|
1951
|
+
), a = new FormData();
|
|
1952
|
+
a.append(
|
|
1924
1953
|
"operations",
|
|
1925
1954
|
JSON.stringify({
|
|
1926
1955
|
query: e,
|
|
@@ -1928,18 +1957,18 @@ class b {
|
|
|
1928
1957
|
})
|
|
1929
1958
|
);
|
|
1930
1959
|
const s = {};
|
|
1931
|
-
return
|
|
1960
|
+
return r.forEach((c, p) => {
|
|
1932
1961
|
s[p.toString()] = [`variables.${c.key.join(".")}`];
|
|
1933
|
-
}),
|
|
1934
|
-
|
|
1935
|
-
}),
|
|
1962
|
+
}), a.append("map", JSON.stringify(s)), r.forEach((c, p) => {
|
|
1963
|
+
a.append(p.toString(), c.value);
|
|
1964
|
+
}), a;
|
|
1936
1965
|
}
|
|
1937
1966
|
}
|
|
1938
|
-
function k(
|
|
1939
|
-
return
|
|
1967
|
+
function k(o) {
|
|
1968
|
+
return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
|
|
1940
1969
|
}
|
|
1941
|
-
async function w(
|
|
1942
|
-
const e = new TextEncoder().encode(
|
|
1970
|
+
async function w(o) {
|
|
1971
|
+
const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
|
|
1943
1972
|
return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
1944
1973
|
}
|
|
1945
1974
|
class _e {
|
|
@@ -1960,50 +1989,50 @@ class _e {
|
|
|
1960
1989
|
this.enabled && console.log(`\x1B[32m[success] ${e}`);
|
|
1961
1990
|
}
|
|
1962
1991
|
}
|
|
1963
|
-
function j(
|
|
1964
|
-
return new Date(
|
|
1992
|
+
function j(o) {
|
|
1993
|
+
return new Date(o.getTime());
|
|
1965
1994
|
}
|
|
1966
|
-
function
|
|
1967
|
-
const t = j(
|
|
1995
|
+
function B(o, e) {
|
|
1996
|
+
const t = j(o);
|
|
1968
1997
|
return t.setDate(t.getDate() + e), t;
|
|
1969
1998
|
}
|
|
1970
|
-
function q(
|
|
1971
|
-
const t = j(
|
|
1999
|
+
function q(o, e) {
|
|
2000
|
+
const t = j(o);
|
|
1972
2001
|
return t.setMinutes(t.getMinutes() + e), t;
|
|
1973
2002
|
}
|
|
1974
|
-
function ye(
|
|
1975
|
-
return
|
|
2003
|
+
function ye(o, e) {
|
|
2004
|
+
return o.getTime() > e.getTime();
|
|
1976
2005
|
}
|
|
1977
|
-
function Ce(
|
|
2006
|
+
function Ce(o) {
|
|
1978
2007
|
return new Promise((e) => {
|
|
1979
|
-
setTimeout(e,
|
|
2008
|
+
setTimeout(e, o);
|
|
1980
2009
|
});
|
|
1981
2010
|
}
|
|
1982
|
-
function we(
|
|
2011
|
+
function we(o, e) {
|
|
1983
2012
|
const {
|
|
1984
2013
|
until: t,
|
|
1985
|
-
interval:
|
|
1986
|
-
maxAttempt:
|
|
2014
|
+
interval: r = 1e3,
|
|
2015
|
+
maxAttempt: a = 3
|
|
1987
2016
|
/**/
|
|
1988
2017
|
} = e;
|
|
1989
2018
|
async function s(c, p) {
|
|
1990
|
-
const l = p ??
|
|
1991
|
-
return t(f) ? f : l > 1 ? (await Ce(
|
|
2019
|
+
const l = p ?? a, f = await o(...c);
|
|
2020
|
+
return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
|
|
1992
2021
|
}
|
|
1993
2022
|
return async (...c) => await s(c);
|
|
1994
2023
|
}
|
|
1995
|
-
function F(
|
|
1996
|
-
const t = j(
|
|
2024
|
+
function F(o, e) {
|
|
2025
|
+
const t = j(o);
|
|
1997
2026
|
return t.setMinutes(t.getMinutes() - e), t;
|
|
1998
2027
|
}
|
|
1999
|
-
class
|
|
2028
|
+
class Wt {
|
|
2000
2029
|
constructor(e) {
|
|
2001
2030
|
m(this, "logger");
|
|
2002
2031
|
m(this, "storageKey", "session");
|
|
2003
2032
|
m(this, "authService");
|
|
2004
2033
|
m(this, "walletService");
|
|
2005
2034
|
m(this, "_refreshing", !1);
|
|
2006
|
-
this.authService = new
|
|
2035
|
+
this.authService = new Tt({
|
|
2007
2036
|
url: e.authUrl,
|
|
2008
2037
|
platform: e.platform
|
|
2009
2038
|
}), this.walletService = new ke(
|
|
@@ -2023,7 +2052,7 @@ class xt {
|
|
|
2023
2052
|
this._refreshing = e;
|
|
2024
2053
|
}
|
|
2025
2054
|
async create(e) {
|
|
2026
|
-
var
|
|
2055
|
+
var a;
|
|
2027
2056
|
if (this.isServer)
|
|
2028
2057
|
return this.logger.warn("'localStorage' is not available on the server."), {
|
|
2029
2058
|
ok: !1,
|
|
@@ -2042,7 +2071,7 @@ class xt {
|
|
|
2042
2071
|
maxAttempt: 5
|
|
2043
2072
|
})();
|
|
2044
2073
|
if (!c.ok) return c;
|
|
2045
|
-
if (!((
|
|
2074
|
+
if (!((a = c.data) != null && a.member))
|
|
2046
2075
|
return {
|
|
2047
2076
|
ok: !1,
|
|
2048
2077
|
error: {
|
|
@@ -2062,7 +2091,7 @@ class xt {
|
|
|
2062
2091
|
JSON.stringify({
|
|
2063
2092
|
...l.data,
|
|
2064
2093
|
accessTokenExpiresAt: q(f, 8).getTime(),
|
|
2065
|
-
refreshTokenExpiresAt: F(
|
|
2094
|
+
refreshTokenExpiresAt: F(B(f, 30), 2).getTime()
|
|
2066
2095
|
})
|
|
2067
2096
|
), {
|
|
2068
2097
|
ok: !0,
|
|
@@ -2078,7 +2107,7 @@ class xt {
|
|
|
2078
2107
|
JSON.stringify({
|
|
2079
2108
|
...s.data,
|
|
2080
2109
|
accessTokenExpiresAt: q(c, 8).getTime(),
|
|
2081
|
-
refreshTokenExpiresAt: F(
|
|
2110
|
+
refreshTokenExpiresAt: F(B(c, 30), 2).getTime()
|
|
2082
2111
|
})
|
|
2083
2112
|
), {
|
|
2084
2113
|
ok: !0,
|
|
@@ -2096,13 +2125,13 @@ class xt {
|
|
|
2096
2125
|
authenticator: t.data.authenticator
|
|
2097
2126
|
}
|
|
2098
2127
|
};
|
|
2099
|
-
const
|
|
2128
|
+
const r = /* @__PURE__ */ new Date();
|
|
2100
2129
|
return window.localStorage.setItem(
|
|
2101
2130
|
this.storageKey,
|
|
2102
2131
|
JSON.stringify({
|
|
2103
2132
|
...t.data,
|
|
2104
|
-
accessTokenExpiresAt: q(
|
|
2105
|
-
refreshTokenExpiresAt: F(
|
|
2133
|
+
accessTokenExpiresAt: q(r, 8).getTime(),
|
|
2134
|
+
refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
|
|
2106
2135
|
})
|
|
2107
2136
|
), {
|
|
2108
2137
|
ok: !0,
|
|
@@ -2112,13 +2141,13 @@ class xt {
|
|
|
2112
2141
|
async createFromAuthenticator(e) {
|
|
2113
2142
|
const t = await this.authService.authenticate(e);
|
|
2114
2143
|
if (t.ok) {
|
|
2115
|
-
const
|
|
2144
|
+
const r = /* @__PURE__ */ new Date();
|
|
2116
2145
|
return this.isServer ? this.logger.warn("'localStorage' is not available on the server.") : window.localStorage.setItem(
|
|
2117
2146
|
this.storageKey,
|
|
2118
2147
|
JSON.stringify({
|
|
2119
2148
|
...t.data,
|
|
2120
|
-
accessTokenExpiresAt: q(
|
|
2121
|
-
refreshTokenExpiresAt: F(
|
|
2149
|
+
accessTokenExpiresAt: q(r, 8).getTime(),
|
|
2150
|
+
refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
|
|
2122
2151
|
})
|
|
2123
2152
|
), { ok: !0 };
|
|
2124
2153
|
} else
|
|
@@ -2139,9 +2168,9 @@ class xt {
|
|
|
2139
2168
|
data: null
|
|
2140
2169
|
};
|
|
2141
2170
|
try {
|
|
2142
|
-
let t = JSON.parse(e),
|
|
2143
|
-
const
|
|
2144
|
-
if (ye(
|
|
2171
|
+
let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
|
|
2172
|
+
const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
|
|
2173
|
+
if (ye(r, s))
|
|
2145
2174
|
return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
|
|
2146
2175
|
ok: !1,
|
|
2147
2176
|
error: {
|
|
@@ -2149,7 +2178,7 @@ class xt {
|
|
|
2149
2178
|
message: "Session expired."
|
|
2150
2179
|
}
|
|
2151
2180
|
};
|
|
2152
|
-
if (ye(
|
|
2181
|
+
if (ye(r, a)) {
|
|
2153
2182
|
this.logger.info("Refreshing session..."), this.refreshing = !0;
|
|
2154
2183
|
const c = await this.authService.refreshSession(t.refreshToken);
|
|
2155
2184
|
if (this.refreshing = !1, !c.ok)
|
|
@@ -2160,11 +2189,11 @@ class xt {
|
|
|
2160
2189
|
ok: !0,
|
|
2161
2190
|
data: t
|
|
2162
2191
|
});
|
|
2163
|
-
this.logger.success("Session refreshed!"),
|
|
2192
|
+
this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
|
|
2164
2193
|
...t,
|
|
2165
2194
|
...c.data,
|
|
2166
|
-
accessTokenExpiresAt: q(
|
|
2167
|
-
refreshTokenExpiresAt: F(
|
|
2195
|
+
accessTokenExpiresAt: q(r, 8).getTime(),
|
|
2196
|
+
refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
|
|
2168
2197
|
}, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
|
|
2169
2198
|
}
|
|
2170
2199
|
return {
|
|
@@ -2191,11 +2220,11 @@ class xt {
|
|
|
2191
2220
|
(t = e.data) != null && t.accessToken && await this.authService.destroySession(e.data.accessToken), window.localStorage.removeItem(this.storageKey);
|
|
2192
2221
|
}
|
|
2193
2222
|
async verify() {
|
|
2194
|
-
var
|
|
2223
|
+
var r, a, s;
|
|
2195
2224
|
if (this.isServer)
|
|
2196
2225
|
return this.logger.warn("'localStorage' is not available on the server."), !0;
|
|
2197
2226
|
const e = await this.get();
|
|
2198
|
-
if (((
|
|
2227
|
+
if (((r = e.error) == null ? void 0 : r.name) === "InvalidToken" || ((a = e.error) == null ? void 0 : a.name) === "SessionExpired" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklisted") return !1;
|
|
2199
2228
|
if (!e.data) return !0;
|
|
2200
2229
|
const t = await this.authService.verifySession(e.data.accessToken);
|
|
2201
2230
|
return t || window.localStorage.removeItem(this.storageKey), t;
|
|
@@ -2204,39 +2233,39 @@ class xt {
|
|
|
2204
2233
|
return typeof window > "u";
|
|
2205
2234
|
}
|
|
2206
2235
|
}
|
|
2207
|
-
function g(
|
|
2236
|
+
function g(o) {
|
|
2208
2237
|
const e = {};
|
|
2209
|
-
for (const t in
|
|
2210
|
-
const
|
|
2211
|
-
if (
|
|
2212
|
-
if (Y(
|
|
2213
|
-
e[t] = g(
|
|
2238
|
+
for (const t in o) {
|
|
2239
|
+
const r = o[t];
|
|
2240
|
+
if (r !== null && r !== void 0) {
|
|
2241
|
+
if (Y(r)) {
|
|
2242
|
+
e[t] = g(r);
|
|
2214
2243
|
continue;
|
|
2215
2244
|
}
|
|
2216
|
-
if (Array.isArray(
|
|
2217
|
-
e[t] =
|
|
2245
|
+
if (Array.isArray(r)) {
|
|
2246
|
+
e[t] = r.map((a) => Y(a) ? g(a) : a);
|
|
2218
2247
|
continue;
|
|
2219
2248
|
}
|
|
2220
|
-
e[t] =
|
|
2249
|
+
e[t] = r;
|
|
2221
2250
|
}
|
|
2222
2251
|
}
|
|
2223
2252
|
return e;
|
|
2224
2253
|
}
|
|
2225
|
-
function i(
|
|
2226
|
-
if (typeof
|
|
2227
|
-
return
|
|
2228
|
-
if (typeof
|
|
2229
|
-
const t = Number.parseFloat(
|
|
2254
|
+
function i(o, e) {
|
|
2255
|
+
if (typeof o == "number" && !Number.isNaN(o))
|
|
2256
|
+
return o;
|
|
2257
|
+
if (typeof o == "string") {
|
|
2258
|
+
const t = Number.parseFloat(o);
|
|
2230
2259
|
if (!Number.isNaN(t))
|
|
2231
2260
|
return t;
|
|
2232
2261
|
}
|
|
2233
2262
|
return e;
|
|
2234
2263
|
}
|
|
2235
|
-
class
|
|
2264
|
+
class $t {
|
|
2236
2265
|
constructor(e) {
|
|
2237
2266
|
m(this, "staticService");
|
|
2238
2267
|
const t = (e == null ? void 0 : e.environment) === "development";
|
|
2239
|
-
this.staticService = new
|
|
2268
|
+
this.staticService = new Rt({
|
|
2240
2269
|
url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
|
|
2241
2270
|
});
|
|
2242
2271
|
}
|
|
@@ -2279,7 +2308,7 @@ class Gt {
|
|
|
2279
2308
|
return g(t);
|
|
2280
2309
|
}
|
|
2281
2310
|
platform(e) {
|
|
2282
|
-
var t,
|
|
2311
|
+
var t, r, a, s, c, p, l, f, y, u, _, C, T, v, M, N, I, D, R, P, x, G, W, $, U, O, E, Q, K, z, J, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, me, de, ue, le, pe, fe, he;
|
|
2283
2312
|
return {
|
|
2284
2313
|
paymentSettings: {
|
|
2285
2314
|
minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
|
|
@@ -2287,8 +2316,8 @@ class Gt {
|
|
|
2287
2316
|
depositGateway: {
|
|
2288
2317
|
bank: {
|
|
2289
2318
|
androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
|
|
2290
|
-
iosEnabled: ((
|
|
2291
|
-
webEnabled: ((
|
|
2319
|
+
iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
|
|
2320
|
+
webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
|
|
2292
2321
|
mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
|
|
2293
2322
|
minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
|
|
2294
2323
|
maximumAmount: i((p = e.bankDepositGatewaySettings) == null ? void 0 : p.maximumAmount)
|
|
@@ -2321,7 +2350,7 @@ class Gt {
|
|
|
2321
2350
|
withdrawalGateway: {
|
|
2322
2351
|
bank: {
|
|
2323
2352
|
androidEnabled: ((U = e.bankWithdrawalGatewaySettings) == null ? void 0 : U.androidEnabled) ?? !1,
|
|
2324
|
-
iosEnabled: ((
|
|
2353
|
+
iosEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
2325
2354
|
webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
|
|
2326
2355
|
mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
|
|
2327
2356
|
minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
|
|
@@ -2334,14 +2363,14 @@ class Gt {
|
|
|
2334
2363
|
mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
|
|
2335
2364
|
minimumAmount: i((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
|
|
2336
2365
|
maximumAmount: i(
|
|
2337
|
-
(
|
|
2366
|
+
(re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
|
|
2338
2367
|
1e6
|
|
2339
2368
|
)
|
|
2340
2369
|
},
|
|
2341
2370
|
maya: {
|
|
2342
|
-
androidEnabled: ((
|
|
2343
|
-
iosEnabled: ((
|
|
2344
|
-
webEnabled: ((
|
|
2371
|
+
androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
|
|
2372
|
+
iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
|
|
2373
|
+
webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
|
|
2345
2374
|
mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
|
|
2346
2375
|
minimumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
|
|
2347
2376
|
maximumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
|
|
@@ -2475,7 +2504,7 @@ class Gt {
|
|
|
2475
2504
|
return g(t);
|
|
2476
2505
|
}
|
|
2477
2506
|
betRecord(e) {
|
|
2478
|
-
var
|
|
2507
|
+
var r;
|
|
2479
2508
|
const t = {
|
|
2480
2509
|
id: e.id,
|
|
2481
2510
|
bet: i(e.bet, 0),
|
|
@@ -2500,7 +2529,7 @@ class Gt {
|
|
|
2500
2529
|
contestName: e.contestName ?? void 0,
|
|
2501
2530
|
externalCategory: e.externalCategory ?? void 0,
|
|
2502
2531
|
metadata: {
|
|
2503
|
-
odds: ((
|
|
2532
|
+
odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
|
|
2504
2533
|
}
|
|
2505
2534
|
};
|
|
2506
2535
|
return g(t);
|
|
@@ -2597,7 +2626,7 @@ class Gt {
|
|
|
2597
2626
|
dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
|
|
2598
2627
|
turnoverContributionPercentagePerGameProvider: Object.entries(
|
|
2599
2628
|
e.turnoverContributionPercentagePerGameProvider
|
|
2600
|
-
).reduce((
|
|
2629
|
+
).reduce((r, [a, s]) => (r[a] = i(s, 0), r), {})
|
|
2601
2630
|
};
|
|
2602
2631
|
}
|
|
2603
2632
|
bonus(e) {
|
|
@@ -2678,7 +2707,7 @@ class Gt {
|
|
|
2678
2707
|
return g(t);
|
|
2679
2708
|
}
|
|
2680
2709
|
}
|
|
2681
|
-
class
|
|
2710
|
+
class Ft {
|
|
2682
2711
|
constructor(e) {
|
|
2683
2712
|
m(this, "cmsPortalService");
|
|
2684
2713
|
m(this, "gameService");
|
|
@@ -2691,17 +2720,17 @@ class Ot {
|
|
|
2691
2720
|
m(this, "transformer");
|
|
2692
2721
|
m(this, "logger");
|
|
2693
2722
|
const t = e.environment === "production";
|
|
2694
|
-
this.transformer = new
|
|
2723
|
+
this.transformer = new $t(e), this.logger = new _e({
|
|
2695
2724
|
enabled: e.logs ?? !1
|
|
2696
2725
|
});
|
|
2697
|
-
const
|
|
2698
|
-
this.cmsPortalService = new
|
|
2726
|
+
const r = t ? "https://auth.opexa.io" : "https://auth.development.opexa.io", a = t ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", s = t ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", c = t ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", p = t ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", l = t ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", f = t ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", y = t ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1";
|
|
2727
|
+
this.cmsPortalService = new vt({
|
|
2699
2728
|
url: y,
|
|
2700
2729
|
site: e.site,
|
|
2701
2730
|
platform: e.sitePlatform
|
|
2702
|
-
}), this.sessionManager = new
|
|
2703
|
-
authUrl:
|
|
2704
|
-
walletUrl:
|
|
2731
|
+
}), this.sessionManager = new Wt({
|
|
2732
|
+
authUrl: r,
|
|
2733
|
+
walletUrl: a,
|
|
2705
2734
|
platform: e.platform,
|
|
2706
2735
|
logs: e.logs
|
|
2707
2736
|
});
|
|
@@ -2714,7 +2743,7 @@ class Ot {
|
|
|
2714
2743
|
}
|
|
2715
2744
|
}
|
|
2716
2745
|
};
|
|
2717
|
-
this.gameService = new
|
|
2746
|
+
this.gameService = new Nt(new b(f, u)), this.fileService = new Mt(new b(l, u)), this.walletService = new ke(new b(a, u)), this.accountService = new Ct(new b(c, u)), this.reportService = new Dt(new b(s, u)), this.portalService = new It(new b(p, u));
|
|
2718
2747
|
}
|
|
2719
2748
|
get authMiddleware() {
|
|
2720
2749
|
return async (e) => {
|
|
@@ -2828,13 +2857,13 @@ class Ot {
|
|
|
2828
2857
|
* ```
|
|
2829
2858
|
*/
|
|
2830
2859
|
watchSession(e) {
|
|
2831
|
-
const t =
|
|
2832
|
-
let
|
|
2833
|
-
const
|
|
2834
|
-
await this.sessionManager.verify() || await e.onInvalid(),
|
|
2860
|
+
const t = Pt(e.interval ?? 3e4, 3e4, 6e4);
|
|
2861
|
+
let r = null;
|
|
2862
|
+
const a = () => setTimeout(async () => {
|
|
2863
|
+
await this.sessionManager.verify() || await e.onInvalid(), r = a();
|
|
2835
2864
|
}, t);
|
|
2836
|
-
return
|
|
2837
|
-
|
|
2865
|
+
return r = a(), function() {
|
|
2866
|
+
r && clearTimeout(r);
|
|
2838
2867
|
};
|
|
2839
2868
|
}
|
|
2840
2869
|
async session() {
|
|
@@ -2914,7 +2943,7 @@ class Ot {
|
|
|
2914
2943
|
* ```
|
|
2915
2944
|
*/
|
|
2916
2945
|
async createAccount(e) {
|
|
2917
|
-
const t = e.id ?? A.generate(S.Account).toString(),
|
|
2946
|
+
const t = e.id ?? A.generate(S.Account).toString(), r = await this.accountService.registerMemberAccount({
|
|
2918
2947
|
input: {
|
|
2919
2948
|
id: t,
|
|
2920
2949
|
name: e.name,
|
|
@@ -2927,7 +2956,7 @@ class Ot {
|
|
|
2927
2956
|
verificationCode: e.verificationCode,
|
|
2928
2957
|
reCAPTCHAResponse: e.reCAPTCHAResponse
|
|
2929
2958
|
});
|
|
2930
|
-
return
|
|
2959
|
+
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
2931
2960
|
}
|
|
2932
2961
|
async registerMayaAccount(e) {
|
|
2933
2962
|
return await this.accountService.registerMayaMemberAccount({
|
|
@@ -3005,13 +3034,13 @@ class Ot {
|
|
|
3005
3034
|
* ```
|
|
3006
3035
|
*/
|
|
3007
3036
|
async submitVerificationDetails(e) {
|
|
3008
|
-
const t = e.id ?? A.generate(S.Verification).toString(),
|
|
3037
|
+
const t = e.id ?? A.generate(S.Verification).toString(), r = await this.accountService.createMemberVerification({
|
|
3009
3038
|
input: {
|
|
3010
3039
|
id: t,
|
|
3011
3040
|
...e
|
|
3012
3041
|
}
|
|
3013
3042
|
});
|
|
3014
|
-
return
|
|
3043
|
+
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3015
3044
|
}
|
|
3016
3045
|
/**
|
|
3017
3046
|
* @example
|
|
@@ -3096,9 +3125,9 @@ class Ot {
|
|
|
3096
3125
|
return t.ok ? {
|
|
3097
3126
|
ok: !0,
|
|
3098
3127
|
data: {
|
|
3099
|
-
announcements: t.data.edges.map(({ cursor:
|
|
3100
|
-
...this.transformer.transform.announcement(
|
|
3101
|
-
cursor:
|
|
3128
|
+
announcements: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3129
|
+
...this.transformer.transform.announcement(a),
|
|
3130
|
+
cursor: r
|
|
3102
3131
|
})),
|
|
3103
3132
|
totalCount: t.data.totalCount,
|
|
3104
3133
|
endCursor: t.data.pageInfo.endCursor ?? void 0,
|
|
@@ -3131,17 +3160,17 @@ class Ot {
|
|
|
3131
3160
|
async createWithdrawal(e) {
|
|
3132
3161
|
const t = e.id ?? A.generate(S.Withdrawal).toString();
|
|
3133
3162
|
if (e.type === "BANK") {
|
|
3134
|
-
const
|
|
3163
|
+
const r = await this.walletService.createBankWithdrawal({
|
|
3135
3164
|
input: {
|
|
3136
3165
|
id: t,
|
|
3137
3166
|
amount: e.amount.toString(),
|
|
3138
3167
|
transactionPassword: await w(e.transactionPassword)
|
|
3139
3168
|
}
|
|
3140
3169
|
});
|
|
3141
|
-
if (!
|
|
3170
|
+
if (!r.ok) return r;
|
|
3142
3171
|
}
|
|
3143
3172
|
if (e.type === "GCASH") {
|
|
3144
|
-
const
|
|
3173
|
+
const r = await this.walletService.createGCashWithdrawal({
|
|
3145
3174
|
input: {
|
|
3146
3175
|
id: t,
|
|
3147
3176
|
amount: e.amount.toString(),
|
|
@@ -3149,10 +3178,10 @@ class Ot {
|
|
|
3149
3178
|
recipientMobileNumber: k(e.recipientMobileNumber)
|
|
3150
3179
|
}
|
|
3151
3180
|
});
|
|
3152
|
-
if (!
|
|
3181
|
+
if (!r.ok) return r;
|
|
3153
3182
|
}
|
|
3154
3183
|
if (e.type === "MAYA") {
|
|
3155
|
-
const
|
|
3184
|
+
const r = await this.walletService.createMayaWithdrawal({
|
|
3156
3185
|
input: {
|
|
3157
3186
|
id: t,
|
|
3158
3187
|
amount: e.amount.toString(),
|
|
@@ -3160,27 +3189,27 @@ class Ot {
|
|
|
3160
3189
|
recipientMobileNumber: k(e.recipientMobileNumber)
|
|
3161
3190
|
}
|
|
3162
3191
|
});
|
|
3163
|
-
if (!
|
|
3192
|
+
if (!r.ok) return r;
|
|
3164
3193
|
}
|
|
3165
3194
|
if (e.type === "MAYA_APP") {
|
|
3166
|
-
const
|
|
3195
|
+
const r = await this.walletService.createMayaAppWithdrawal({
|
|
3167
3196
|
input: {
|
|
3168
3197
|
id: t,
|
|
3169
3198
|
amount: e.amount.toString(),
|
|
3170
3199
|
transactionPassword: await w(e.transactionPassword)
|
|
3171
3200
|
}
|
|
3172
3201
|
});
|
|
3173
|
-
if (!
|
|
3202
|
+
if (!r.ok) return r;
|
|
3174
3203
|
}
|
|
3175
3204
|
if (e.type === "MAYA_APP [NEXT]") {
|
|
3176
|
-
const
|
|
3205
|
+
const r = await this.walletService.createMayaAppWithdrawal__next({
|
|
3177
3206
|
input: {
|
|
3178
3207
|
id: t,
|
|
3179
3208
|
amount: e.amount.toString(),
|
|
3180
3209
|
transactionPassword: await w(e.transactionPassword)
|
|
3181
3210
|
}
|
|
3182
3211
|
});
|
|
3183
|
-
if (!
|
|
3212
|
+
if (!r.ok) return r;
|
|
3184
3213
|
}
|
|
3185
3214
|
return { ok: !0, data: { id: t } };
|
|
3186
3215
|
}
|
|
@@ -3189,9 +3218,9 @@ class Ot {
|
|
|
3189
3218
|
return t.ok ? {
|
|
3190
3219
|
ok: !0,
|
|
3191
3220
|
data: {
|
|
3192
|
-
withdrawalRecords: t.data.edges.map(({ cursor:
|
|
3193
|
-
...this.transformer.transform.withdrawalRecord(
|
|
3194
|
-
cursor:
|
|
3221
|
+
withdrawalRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3222
|
+
...this.transformer.transform.withdrawalRecord(a),
|
|
3223
|
+
cursor: r
|
|
3195
3224
|
})),
|
|
3196
3225
|
totalCount: t.data.totalCount,
|
|
3197
3226
|
endCursor: t.data.pageInfo.endCursor ?? void 0,
|
|
@@ -3227,44 +3256,44 @@ class Ot {
|
|
|
3227
3256
|
async createDeposit(e) {
|
|
3228
3257
|
const t = e.id ?? A.generate(S.Deposit).toString();
|
|
3229
3258
|
if (e.type === "MAYA") {
|
|
3230
|
-
const
|
|
3259
|
+
const r = await this.walletService.createMayaDeposit({
|
|
3231
3260
|
input: {
|
|
3232
3261
|
id: t,
|
|
3233
3262
|
amount: e.amount.toString(),
|
|
3234
3263
|
promo: e.promo
|
|
3235
3264
|
}
|
|
3236
3265
|
});
|
|
3237
|
-
if (!
|
|
3266
|
+
if (!r.ok) return r;
|
|
3238
3267
|
}
|
|
3239
3268
|
if (e.type === "MAYA_APP") {
|
|
3240
|
-
const
|
|
3269
|
+
const r = await this.walletService.createMayaAppDeposit({
|
|
3241
3270
|
input: {
|
|
3242
3271
|
id: t,
|
|
3243
3272
|
amount: e.amount.toString(),
|
|
3244
3273
|
promo: e.promo
|
|
3245
3274
|
}
|
|
3246
3275
|
});
|
|
3247
|
-
if (!
|
|
3276
|
+
if (!r.ok) return r;
|
|
3248
3277
|
}
|
|
3249
3278
|
if (e.type === "MAYA_APP [NEXT]") {
|
|
3250
|
-
const
|
|
3279
|
+
const r = await this.walletService.createMayaAppDeposit__next({
|
|
3251
3280
|
input: {
|
|
3252
3281
|
id: t,
|
|
3253
3282
|
amount: e.amount.toString(),
|
|
3254
3283
|
promo: e.promo
|
|
3255
3284
|
}
|
|
3256
3285
|
});
|
|
3257
|
-
if (!
|
|
3286
|
+
if (!r.ok) return r;
|
|
3258
3287
|
}
|
|
3259
3288
|
if (e.type === "GCASH") {
|
|
3260
|
-
const
|
|
3289
|
+
const r = await this.walletService.createGCashDeposit({
|
|
3261
3290
|
input: {
|
|
3262
3291
|
id: t,
|
|
3263
3292
|
amount: e.amount.toString(),
|
|
3264
3293
|
promo: e.promo
|
|
3265
3294
|
}
|
|
3266
3295
|
});
|
|
3267
|
-
if (!
|
|
3296
|
+
if (!r.ok) return r;
|
|
3268
3297
|
}
|
|
3269
3298
|
return { ok: !0, data: { id: t } };
|
|
3270
3299
|
}
|
|
@@ -3280,9 +3309,9 @@ class Ot {
|
|
|
3280
3309
|
return t.ok ? {
|
|
3281
3310
|
ok: !0,
|
|
3282
3311
|
data: {
|
|
3283
|
-
depositRecords: t.data.edges.map(({ cursor:
|
|
3284
|
-
...this.transformer.transform.depositRecord(
|
|
3285
|
-
cursor:
|
|
3312
|
+
depositRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3313
|
+
...this.transformer.transform.depositRecord(a),
|
|
3314
|
+
cursor: r
|
|
3286
3315
|
})),
|
|
3287
3316
|
totalCount: t.data.totalCount,
|
|
3288
3317
|
endCursor: t.data.pageInfo.endCursor ?? void 0,
|
|
@@ -3315,9 +3344,9 @@ class Ot {
|
|
|
3315
3344
|
return t.ok ? {
|
|
3316
3345
|
ok: !0,
|
|
3317
3346
|
data: {
|
|
3318
|
-
betRecords: t.data.edges.map(({ cursor:
|
|
3319
|
-
...this.transformer.transform.betRecord(
|
|
3320
|
-
cursor:
|
|
3347
|
+
betRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3348
|
+
...this.transformer.transform.betRecord(a),
|
|
3349
|
+
cursor: r
|
|
3321
3350
|
})),
|
|
3322
3351
|
totalCount: t.data.totalCount,
|
|
3323
3352
|
endCursor: t.data.pageInfo.endCursor ?? void 0,
|
|
@@ -3342,9 +3371,9 @@ class Ot {
|
|
|
3342
3371
|
return t.ok ? {
|
|
3343
3372
|
ok: !0,
|
|
3344
3373
|
data: {
|
|
3345
|
-
transactionRecords: t.data.edges.map(({ cursor:
|
|
3346
|
-
...this.transformer.transform.transactionRecord(
|
|
3347
|
-
cursor:
|
|
3374
|
+
transactionRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3375
|
+
...this.transformer.transform.transactionRecord(a),
|
|
3376
|
+
cursor: r
|
|
3348
3377
|
})),
|
|
3349
3378
|
totalCount: t.data.totalCount,
|
|
3350
3379
|
endCursor: t.data.pageInfo.endCursor ?? void 0,
|
|
@@ -3417,9 +3446,9 @@ class Ot {
|
|
|
3417
3446
|
return t.ok ? {
|
|
3418
3447
|
ok: !0,
|
|
3419
3448
|
data: {
|
|
3420
|
-
games: t.data.edges.map(({ cursor:
|
|
3421
|
-
...this.transformer.transform.game(
|
|
3422
|
-
cursor:
|
|
3449
|
+
games: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3450
|
+
...this.transformer.transform.game(a),
|
|
3451
|
+
cursor: r
|
|
3423
3452
|
})),
|
|
3424
3453
|
totalCount: t.data.totalCount,
|
|
3425
3454
|
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
@@ -3432,9 +3461,9 @@ class Ot {
|
|
|
3432
3461
|
return t.ok ? {
|
|
3433
3462
|
ok: !0,
|
|
3434
3463
|
data: {
|
|
3435
|
-
games: t.data.edges.map(({ cursor:
|
|
3436
|
-
...this.transformer.transform.game__next(
|
|
3437
|
-
cursor:
|
|
3464
|
+
games: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3465
|
+
...this.transformer.transform.game__next(a),
|
|
3466
|
+
cursor: r
|
|
3438
3467
|
})),
|
|
3439
3468
|
totalCount: t.data.totalCount,
|
|
3440
3469
|
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
@@ -3448,9 +3477,9 @@ class Ot {
|
|
|
3448
3477
|
return t.ok ? {
|
|
3449
3478
|
ok: !0,
|
|
3450
3479
|
data: {
|
|
3451
|
-
games: t.data.edges.map(({ cursor:
|
|
3452
|
-
...this.transformer.transform.game(
|
|
3453
|
-
cursor:
|
|
3480
|
+
games: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3481
|
+
...this.transformer.transform.game(a),
|
|
3482
|
+
cursor: r
|
|
3454
3483
|
})),
|
|
3455
3484
|
totalCount: t.data.totalCount,
|
|
3456
3485
|
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
@@ -3498,11 +3527,11 @@ class Ot {
|
|
|
3498
3527
|
ok: !0,
|
|
3499
3528
|
data: this.transformer.transform.gameSession(t.data)
|
|
3500
3529
|
};
|
|
3501
|
-
const
|
|
3502
|
-
return
|
|
3530
|
+
const r = await this.gameService.gameSession({ id: e });
|
|
3531
|
+
return r.ok ? {
|
|
3503
3532
|
ok: !0,
|
|
3504
|
-
data:
|
|
3505
|
-
} :
|
|
3533
|
+
data: r.data ? this.transformer.transform.gameSession(r.data) : null
|
|
3534
|
+
} : r;
|
|
3506
3535
|
}
|
|
3507
3536
|
/**
|
|
3508
3537
|
* @deprecated use `createGameSession__next`
|
|
@@ -3521,13 +3550,13 @@ class Ot {
|
|
|
3521
3550
|
* ```
|
|
3522
3551
|
*/
|
|
3523
3552
|
async createGameSession(e) {
|
|
3524
|
-
const t = e.id ?? A.generate(S.GameSession).toString(),
|
|
3525
|
-
return
|
|
3553
|
+
const t = e.id ?? A.generate(S.GameSession).toString(), r = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
|
|
3554
|
+
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3526
3555
|
}
|
|
3527
3556
|
/** @deprecated use `createGameSession__next` */
|
|
3528
3557
|
async createGameSession__legacy(e) {
|
|
3529
|
-
const t = e.id ?? A.generate(S.GameSession).toString(),
|
|
3530
|
-
return
|
|
3558
|
+
const t = e.id ?? A.generate(S.GameSession).toString(), r = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
|
|
3559
|
+
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3531
3560
|
}
|
|
3532
3561
|
async createGameSession__next(e) {
|
|
3533
3562
|
const t = e.id ?? A.generate(S.GameSession).toString();
|
|
@@ -3542,8 +3571,8 @@ class Ot {
|
|
|
3542
3571
|
});
|
|
3543
3572
|
return l.ok ? { ok: !0, data: { id: t } } : l;
|
|
3544
3573
|
}
|
|
3545
|
-
const
|
|
3546
|
-
if (!
|
|
3574
|
+
const r = await this.game__next(e.game);
|
|
3575
|
+
if (!r.data)
|
|
3547
3576
|
return {
|
|
3548
3577
|
ok: !1,
|
|
3549
3578
|
error: {
|
|
@@ -3553,9 +3582,9 @@ class Ot {
|
|
|
3553
3582
|
};
|
|
3554
3583
|
const {
|
|
3555
3584
|
/**/
|
|
3556
|
-
provider:
|
|
3585
|
+
provider: a,
|
|
3557
3586
|
reference: s
|
|
3558
|
-
} =
|
|
3587
|
+
} = r.data, c = Ot(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
|
|
3559
3588
|
return c.ok ? { ok: !0, data: { id: t } } : c;
|
|
3560
3589
|
}
|
|
3561
3590
|
/** @deprecated use `endGameSession__next` */
|
|
@@ -3598,13 +3627,13 @@ class Ot {
|
|
|
3598
3627
|
* ```
|
|
3599
3628
|
*/
|
|
3600
3629
|
async uploadImageFile(e) {
|
|
3601
|
-
const t = e.id ?? A.generate(S.File).toString(),
|
|
3630
|
+
const t = e.id ?? A.generate(S.File).toString(), r = await this.fileService.uploadPrivateImageFile({
|
|
3602
3631
|
input: {
|
|
3603
3632
|
id: t,
|
|
3604
3633
|
file: e.file
|
|
3605
3634
|
}
|
|
3606
3635
|
});
|
|
3607
|
-
return
|
|
3636
|
+
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
3608
3637
|
}
|
|
3609
3638
|
/**/
|
|
3610
3639
|
/*+----------------------------------------+*/
|
|
@@ -3630,9 +3659,9 @@ class Ot {
|
|
|
3630
3659
|
return t.ok ? {
|
|
3631
3660
|
ok: !0,
|
|
3632
3661
|
data: {
|
|
3633
|
-
pointsWalletTransactions: t.data.edges.map(({ cursor:
|
|
3634
|
-
...this.transformer.transform.pointsWalletTransaction(
|
|
3635
|
-
cursor:
|
|
3662
|
+
pointsWalletTransactions: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3663
|
+
...this.transformer.transform.pointsWalletTransaction(a),
|
|
3664
|
+
cursor: r
|
|
3636
3665
|
})),
|
|
3637
3666
|
totalCount: t.data.totalCount,
|
|
3638
3667
|
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
@@ -3650,9 +3679,9 @@ class Ot {
|
|
|
3650
3679
|
return t.ok ? {
|
|
3651
3680
|
ok: !0,
|
|
3652
3681
|
data: {
|
|
3653
|
-
activityRecords: t.data.edges.map(({ cursor:
|
|
3654
|
-
...this.transformer.transform.activityRecord(
|
|
3655
|
-
cursor:
|
|
3682
|
+
activityRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
|
|
3683
|
+
...this.transformer.transform.activityRecord(a),
|
|
3684
|
+
cursor: r
|
|
3656
3685
|
})),
|
|
3657
3686
|
totalCount: t.data.totalCount,
|
|
3658
3687
|
hasNextPage: t.data.pageInfo.hasNextPage,
|
|
@@ -3660,8 +3689,23 @@ class Ot {
|
|
|
3660
3689
|
}
|
|
3661
3690
|
} : t;
|
|
3662
3691
|
}
|
|
3692
|
+
/**/
|
|
3693
|
+
/*+----------------------------------------+*/
|
|
3694
|
+
/*+ REFERRAL +*/
|
|
3695
|
+
/*+----------------------------------------+*/
|
|
3696
|
+
/**/
|
|
3697
|
+
async referralCode() {
|
|
3698
|
+
const e = await this.accountService.referralCode();
|
|
3699
|
+
return e.ok ? {
|
|
3700
|
+
ok: !0,
|
|
3701
|
+
data: e.data ?? null
|
|
3702
|
+
} : e;
|
|
3703
|
+
}
|
|
3704
|
+
async updateReferralCode(e) {
|
|
3705
|
+
return await this.accountService.updateReferralCode({ input: e });
|
|
3706
|
+
}
|
|
3663
3707
|
}
|
|
3664
|
-
const
|
|
3708
|
+
const Ut = [
|
|
3665
3709
|
/**/
|
|
3666
3710
|
"RTG",
|
|
3667
3711
|
"DARWIN",
|
|
@@ -3671,12 +3715,12 @@ const Wt = [
|
|
|
3671
3715
|
"EVOLUTION_NETENT",
|
|
3672
3716
|
"EVOLUTION_REDTIGER"
|
|
3673
3717
|
];
|
|
3674
|
-
function
|
|
3675
|
-
return
|
|
3718
|
+
function Ot(o) {
|
|
3719
|
+
return Ut.some((e) => e === o);
|
|
3676
3720
|
}
|
|
3677
3721
|
export {
|
|
3678
|
-
|
|
3722
|
+
Yt as ObjectId,
|
|
3679
3723
|
S as ObjectType,
|
|
3680
|
-
|
|
3724
|
+
Ft as Sdk
|
|
3681
3725
|
};
|
|
3682
3726
|
//# sourceMappingURL=index.mjs.map
|