@opexa/portal-sdk 0.0.79 → 0.0.80

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.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  var Te = Object.defineProperty;
2
- var _e = (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) => _e(o, typeof e != "symbol" ? e + "" : e, t);
2
+ var _e = (n, e, t) => e in n ? Te(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var m = (n, e, t) => _e(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as k } from "@opexa/object-id";
5
- import { ObjectId as Ht } from "@opexa/object-id";
5
+ import { ObjectId as Yt } from "@opexa/object-id";
6
6
  const T = {
7
7
  Account: 8,
8
8
  Deposit: 9,
@@ -13,22 +13,22 @@ const T = {
13
13
  GameSession: 204,
14
14
  MayaSession: 230
15
15
  };
16
- function n(o, ...e) {
16
+ function o(n, ...e) {
17
17
  let t = "";
18
- for (const [r, a] of o.entries()) {
18
+ for (const [r, a] of n.entries()) {
19
19
  const s = e.at(r) ?? "";
20
20
  t = `${t}${a}${s}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const L = n`
24
+ const L = o`
25
25
  fragment FileFragment on File {
26
26
  id
27
27
  url
28
28
  status
29
29
  dateTimeCreated
30
30
  }
31
- `, ve = n`
31
+ `, ve = o`
32
32
  ${L}
33
33
 
34
34
  query File($id: ObjectId!) {
@@ -38,7 +38,7 @@ const L = n`
38
38
  }
39
39
  }
40
40
  }
41
- `, Me = n`
41
+ `, Me = o`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const L = n`
52
52
  }
53
53
  }
54
54
  }
55
- `, Re = n`
55
+ `, Ne = o`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const L = n`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Ne = n`
65
+ `, Re = o`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const L = n`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, Ie = n`
74
+ `, Ie = o`
75
75
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
76
76
  pointsToCashConversion(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,7 @@ const L = n`
79
79
  }
80
80
  }
81
81
  }
82
- `, De = n`
82
+ `, De = o`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -107,8 +107,8 @@ const L = n`
107
107
  }
108
108
  }
109
109
  }
110
- `, ge = {
111
- current: n`
110
+ `, be = {
111
+ current: o`
112
112
  query GameSession($id: ObjectId!) {
113
113
  node(id: $id) {
114
114
  ... on GameSession {
@@ -122,7 +122,7 @@ const L = n`
122
122
  }
123
123
  }
124
124
  `,
125
- legacy: n`
125
+ legacy: o`
126
126
  query GameSession($id: ObjectId!) {
127
127
  node(id: $id) {
128
128
  ... on GameSession {
@@ -138,7 +138,7 @@ const L = n`
138
138
  }
139
139
  }
140
140
  `
141
- }, be = n`
141
+ }, Ae = o`
142
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
143
143
  createGameSession(input: $input) {
144
144
  ... on GameDoesNotExistError {
@@ -146,13 +146,13 @@ const L = n`
146
146
  }
147
147
  }
148
148
  }
149
- `, Ae = {
150
- current: n`
149
+ `, Ee = {
150
+ current: o`
151
151
  mutation EndGameSession($input: EndGameSessionInput!) {
152
152
  endGameSession(input: $input)
153
153
  }
154
154
  `,
155
- legacy: n`
155
+ legacy: o`
156
156
  mutation EndGameSession($input: EndGameSessionInput!) {
157
157
  endGameSession(input: $input) {
158
158
  ... on GameSessionDoesNotExistError {
@@ -167,7 +167,7 @@ const L = n`
167
167
  }
168
168
  }
169
169
  `
170
- }, Pe = n`
170
+ }, Pe = o`
171
171
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
172
172
  announcements(first: $first, after: $after, filter: $filter) {
173
173
  edges {
@@ -193,7 +193,7 @@ const L = n`
193
193
  }
194
194
  }
195
195
  }
196
- `, $e = n`
196
+ `, $e = o`
197
197
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
198
198
  member {
199
199
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -260,7 +260,7 @@ const L = n`
260
260
  }
261
261
  }
262
262
  }
263
- `, xe = n`
263
+ `, xe = o`
264
264
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
265
265
  createGCashWithdrawal(input: $input) {
266
266
  ... on AccountNotVerifiedError {
@@ -283,7 +283,7 @@ const L = n`
283
283
  }
284
284
  }
285
285
  }
286
- `, Ge = n`
286
+ `, Ge = o`
287
287
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
288
288
  createMayaWithdrawal(input: $input) {
289
289
  ... on AccountNotVerifiedError {
@@ -306,7 +306,7 @@ const L = n`
306
306
  }
307
307
  }
308
308
  }
309
- `, Ue = n`
309
+ `, Ue = o`
310
310
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
311
311
  createMayaAppWithdrawal(input: $input) {
312
312
  ... on AccountNotVerifiedError {
@@ -326,7 +326,7 @@ const L = n`
326
326
  }
327
327
  }
328
328
  }
329
- `, Oe = n`
329
+ `, Oe = o`
330
330
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
331
331
  createBankWithdrawal(input: $input) {
332
332
  ... on MobileNumberNotVerifiedError {
@@ -349,11 +349,11 @@ const L = n`
349
349
  }
350
350
  }
351
351
  }
352
- `, We = n`
352
+ `, We = o`
353
353
  query RemainingDailyWithdrawalsCount {
354
354
  remainingDailyWithdrawalsCount
355
355
  }
356
- `, Be = n`
356
+ `, Be = o`
357
357
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
358
358
  member {
359
359
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -382,7 +382,7 @@ const L = n`
382
382
  }
383
383
  }
384
384
  }
385
- `, qe = n`
385
+ `, qe = o`
386
386
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
387
387
  createGCashDeposit(input: $input) {
388
388
  ... on DepositPromoMaximumAmountExceededError {
@@ -411,7 +411,7 @@ const L = n`
411
411
  }
412
412
  }
413
413
  }
414
- `, Fe = n`
414
+ `, Fe = o`
415
415
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
416
416
  createMayaDeposit(input: $input) {
417
417
  ... on DepositPromoMaximumAmountExceededError {
@@ -440,7 +440,7 @@ const L = n`
440
440
  }
441
441
  }
442
442
  }
443
- `, Le = n`
443
+ `, Le = o`
444
444
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
445
445
  createMayaAppDeposit(input: $input) {
446
446
  ... on DepositPromoMaximumAmountExceededError {
@@ -469,7 +469,7 @@ const L = n`
469
469
  }
470
470
  }
471
471
  }
472
- `, Ve = n`
472
+ `, Ve = o`
473
473
  query Deposit($id: ObjectId!) {
474
474
  node(id: $id) {
475
475
  ... on GCashDeposit {
@@ -501,13 +501,13 @@ const L = n`
501
501
  }
502
502
  }
503
503
  }
504
- `, He = n`
504
+ `, He = o`
505
505
  query DepositsCount {
506
506
  member {
507
507
  depositsCount
508
508
  }
509
509
  }
510
- `, Ye = n`
510
+ `, Ye = o`
511
511
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
512
512
  member {
513
513
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -548,7 +548,7 @@ const L = n`
548
548
  }
549
549
  }
550
550
  }
551
- `, je = n`
551
+ `, je = o`
552
552
  query LatestBetRecords {
553
553
  latestBetRecords {
554
554
  id
@@ -568,7 +568,7 @@ const L = n`
568
568
  dateTimeCreated
569
569
  }
570
570
  }
571
- `, Qe = n`
571
+ `, Qe = o`
572
572
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
573
573
  member {
574
574
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -594,7 +594,7 @@ const L = n`
594
594
  }
595
595
  }
596
596
  }
597
- `, Y = n`
597
+ `, Y = o`
598
598
  ${L}
599
599
 
600
600
  fragment PromoFragment on Promo {
@@ -613,7 +613,7 @@ const L = n`
613
613
  dateTimeCreated
614
614
  dateTimeLastUpdated
615
615
  }
616
- `, Ke = n`
616
+ `, Ke = o`
617
617
  ${Y}
618
618
 
619
619
  query Promos {
@@ -621,7 +621,7 @@ const L = n`
621
621
  ...PromoFragment
622
622
  }
623
623
  }
624
- `, Je = n`
624
+ `, Je = o`
625
625
  ${Y}
626
626
 
627
627
  query AvailablePromos($filter: PromoFilterInput) {
@@ -629,7 +629,7 @@ const L = n`
629
629
  ...PromoFragment
630
630
  }
631
631
  }
632
- `, Ee = n`
632
+ `, Se = o`
633
633
  ${L}
634
634
 
635
635
  fragment CashbackFragment on Cashback {
@@ -646,15 +646,15 @@ const L = n`
646
646
  dateTimeCreated
647
647
  dateTimeLastUpdated
648
648
  }
649
- `, ze = n`
650
- ${Ee}
649
+ `, ze = o`
650
+ ${Se}
651
651
 
652
652
  query Cashbacks {
653
653
  cashbacks {
654
654
  ...CashbackFragment
655
655
  }
656
656
  }
657
- `, Xe = n`
657
+ `, Xe = o`
658
658
  ${Y}
659
659
 
660
660
  query Bonus {
@@ -683,8 +683,8 @@ const L = n`
683
683
  dateTimeLastUpdated
684
684
  }
685
685
  }
686
- `, Ze = n`
687
- ${Ee}
686
+ `, Ze = o`
687
+ ${Se}
688
688
 
689
689
  query CashbackBonuses {
690
690
  cashbackBonuses {
@@ -697,7 +697,7 @@ const L = n`
697
697
  dateTimeLastUpdated
698
698
  }
699
699
  }
700
- `, et = n`
700
+ `, et = o`
701
701
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
702
702
  claimCashbackBonus(input: $input) {
703
703
  ... on CashbackBonusDoesNotExistError {
@@ -706,14 +706,14 @@ const L = n`
706
706
  }
707
707
  }
708
708
  `;
709
- n`
709
+ o`
710
710
  query Member {
711
711
  member {
712
712
  dateTimeLastActive
713
713
  }
714
714
  }
715
715
  `;
716
- const tt = n`
716
+ const tt = o`
717
717
  query MemberAccount {
718
718
  memberAccount: self {
719
719
  ... on MemberAccount {
@@ -737,7 +737,7 @@ const tt = n`
737
737
  }
738
738
  }
739
739
  }
740
- `, rt = n`
740
+ `, rt = o`
741
741
  ${L}
742
742
 
743
743
  query MemberVerification {
@@ -762,7 +762,7 @@ const tt = n`
762
762
  }
763
763
  }
764
764
  }
765
- `, at = n`
765
+ `, at = o`
766
766
  mutation RegisterMemberAccount(
767
767
  $input: RegisterMemberAccountInput!
768
768
  $referralCode: String
@@ -798,7 +798,7 @@ const tt = n`
798
798
  }
799
799
  }
800
800
  }
801
- `, ot = n`
801
+ `, nt = o`
802
802
  mutation RegisterMemberAccountViaMobile(
803
803
  $input: RegisterMemberAccountViaMobileInput!
804
804
  $referralCode: String
@@ -825,7 +825,7 @@ const tt = n`
825
825
  }
826
826
  }
827
827
  }
828
- `, nt = n`
828
+ `, ot = o`
829
829
  mutation RegisterMemberAccount(
830
830
  $input: RegisterMemberAccountInput_next!
831
831
  $reCAPTCHAResponse: String
@@ -857,7 +857,7 @@ const tt = n`
857
857
  }
858
858
  }
859
859
  }
860
- `, it = n`
860
+ `, it = o`
861
861
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
862
862
  registerMayaMemberAccount(input: $input) {
863
863
  ... on AccountNameNotAvailableError {
@@ -865,7 +865,7 @@ const tt = n`
865
865
  }
866
866
  }
867
867
  }
868
- `, st = n`
868
+ `, st = o`
869
869
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
870
870
  updateMemberAccount(input: $input) {
871
871
  ... on AccountNameNotAvailableError {
@@ -891,7 +891,7 @@ const tt = n`
891
891
  }
892
892
  }
893
893
  }
894
- `, ct = n`
894
+ `, ct = o`
895
895
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
896
896
  resetPassword(input: $input, verificationCode: $verificationCode) {
897
897
  ... on AccountNotFoundError {
@@ -902,11 +902,11 @@ const tt = n`
902
902
  }
903
903
  }
904
904
  }
905
- `, mt = n`
905
+ `, mt = o`
906
906
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
907
907
  deleteMemberAccount(input: $input)
908
908
  }
909
- `, dt = n`
909
+ `, dt = o`
910
910
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
911
911
  verifyMobileNumber(input: $input) {
912
912
  ... on InvalidSMSVerificationCodeError {
@@ -917,7 +917,7 @@ const tt = n`
917
917
  }
918
918
  }
919
919
  }
920
- `, ut = n`
920
+ `, ut = o`
921
921
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
922
922
  createMemberVerification(input: $input) {
923
923
  ... on FileDoesNotExistError {
@@ -931,7 +931,7 @@ const tt = n`
931
931
  }
932
932
  }
933
933
  }
934
- `, lt = n`
934
+ `, lt = o`
935
935
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
936
936
  updateMemberVerification(input: $input) {
937
937
  ... on FileDoesNotExistError {
@@ -948,7 +948,7 @@ const tt = n`
948
948
  }
949
949
  }
950
950
  }
951
- `, pt = n`
951
+ `, pt = o`
952
952
  query ProfileCompletion {
953
953
  profileCompletion {
954
954
  completionPercentage
@@ -959,7 +959,7 @@ const tt = n`
959
959
  accountPassword
960
960
  }
961
961
  }
962
- `, ft = n`
962
+ `, ft = o`
963
963
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
964
964
  sendVerificationCode(input: $input) {
965
965
  ... on InvalidPlatformError {
@@ -970,7 +970,7 @@ const tt = n`
970
970
  }
971
971
  }
972
972
  }
973
- `, ht = n`
973
+ `, ht = o`
974
974
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
975
975
  minimumAmount
976
976
  maximumAmount
@@ -1024,7 +1024,7 @@ const tt = n`
1024
1024
  multiplier
1025
1025
  }
1026
1026
  }
1027
- `, wt = n`
1027
+ `, wt = o`
1028
1028
  query MayaSession($id: ObjectId!) {
1029
1029
  mayaSession(id: $id) {
1030
1030
  id
@@ -1032,11 +1032,11 @@ const tt = n`
1032
1032
  dateTimeCreated
1033
1033
  }
1034
1034
  }
1035
- `, yt = n`
1035
+ `, yt = o`
1036
1036
  mutation ValidateMayaSession {
1037
1037
  validateMayaSession: validMayaSession
1038
1038
  }
1039
- `, gt = n`
1039
+ `, gt = o`
1040
1040
  query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
1041
1041
  member {
1042
1042
  activityRecords(after: $after, first: $first, filter: $filter) {
@@ -1061,11 +1061,11 @@ const tt = n`
1061
1061
  }
1062
1062
  }
1063
1063
  }
1064
- `, bt = n`
1064
+ `, bt = o`
1065
1065
  query ReferralCode {
1066
1066
  referralCode
1067
1067
  }
1068
- `, At = n`
1068
+ `, At = o`
1069
1069
  mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
1070
1070
  updateReferralCode(input: $input) {
1071
1071
  ... on ReferralCodeNotAvailableError {
@@ -1073,7 +1073,7 @@ const tt = n`
1073
1073
  }
1074
1074
  }
1075
1075
  }
1076
- `, Se = n`
1076
+ `, j = o`
1077
1077
  fragment ReferralFragment on Referral {
1078
1078
  id
1079
1079
  upline {
@@ -1091,7 +1091,7 @@ const tt = n`
1091
1091
  commission
1092
1092
  dateTimeCreated
1093
1093
  }
1094
- `, Et = n`
1094
+ `, Et = o`
1095
1095
  query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
1096
1096
  member {
1097
1097
  referrals(first: $first, after: $after, filter: $filter) {
@@ -1112,16 +1112,24 @@ const tt = n`
1112
1112
  }
1113
1113
  }
1114
1114
 
1115
- ${Se}
1116
- `, St = n`
1115
+ ${j}
1116
+ `, St = o`
1117
1117
  query UplinesByName($search: String!, $first: Int) {
1118
1118
  uplinesByName(search: $search, first: $first) {
1119
1119
  ...ReferralFragment
1120
1120
  }
1121
1121
  }
1122
1122
 
1123
- ${Se}
1124
- `, Ct = n`
1123
+ ${j}
1124
+ `, Ct = o`
1125
+ query DownlinesByName($search: String!, $first: Int) {
1126
+ downlinesByName(search: $search, first: $first) {
1127
+ ...ReferralFragment
1128
+ }
1129
+ }
1130
+
1131
+ ${j}
1132
+ `, kt = o`
1125
1133
  query ReferralCommission {
1126
1134
  member {
1127
1135
  referralCommission {
@@ -1141,9 +1149,9 @@ const tt = n`
1141
1149
  }
1142
1150
  }
1143
1151
  `;
1144
- function d(o) {
1152
+ function d(n) {
1145
1153
  return {
1146
- name: o,
1154
+ name: n,
1147
1155
  message: {
1148
1156
  AccountNameNotAvailableError: "Username is no longer available",
1149
1157
  AccountNotFoundError: "Account does not exist",
@@ -1193,10 +1201,10 @@ function d(o) {
1193
1201
  InvalidToken: "Invalid token",
1194
1202
  InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
1195
1203
  SessionExpired: "Session expired"
1196
- }[o]
1204
+ }[n]
1197
1205
  };
1198
1206
  }
1199
- class kt {
1207
+ class Tt {
1200
1208
  constructor(e) {
1201
1209
  m(this, "client");
1202
1210
  this.client = e;
@@ -1219,7 +1227,7 @@ class kt {
1219
1227
  } : t;
1220
1228
  }
1221
1229
  async registerMemberAccountViaMobile(e) {
1222
- const t = await this.client.request(ot, e);
1230
+ const t = await this.client.request(nt, e);
1223
1231
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1224
1232
  ok: !1,
1225
1233
  error: d(t.data.registerMemberAccountViaMobile.__typename)
@@ -1228,7 +1236,7 @@ class kt {
1228
1236
  } : t;
1229
1237
  }
1230
1238
  async registerMemberAccount__next(e) {
1231
- const t = await this.client.request(nt, e);
1239
+ const t = await this.client.request(ot, e);
1232
1240
  return t.ok ? t.data.registerMemberAccount ? {
1233
1241
  ok: !1,
1234
1242
  error: d(t.data.registerMemberAccount.__typename)
@@ -1355,11 +1363,11 @@ class kt {
1355
1363
  } : t;
1356
1364
  }
1357
1365
  }
1358
- function A(o) {
1359
- return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
1366
+ function A(n) {
1367
+ return n.startsWith("+63") ? n : n.startsWith("63") ? `+${n}` : n.startsWith("0") ? `+63${n.substring(1)}` : `+63${n}`;
1360
1368
  }
1361
- function h(o, e) {
1362
- const t = V[o] ? V[o] : V[500];
1369
+ function h(n, e) {
1370
+ const t = V[n] ? V[n] : V[500];
1363
1371
  return {
1364
1372
  name: t.name,
1365
1373
  message: e ?? t.message
@@ -1374,7 +1382,7 @@ const V = {
1374
1382
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1375
1383
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1376
1384
  };
1377
- class Tt {
1385
+ class _t {
1378
1386
  constructor(e) {
1379
1387
  m(this, "url");
1380
1388
  m(this, "platform");
@@ -1528,7 +1536,7 @@ class Tt {
1528
1536
  }
1529
1537
  }
1530
1538
  }
1531
- class _t {
1539
+ class vt {
1532
1540
  constructor(e) {
1533
1541
  m(this, "url");
1534
1542
  m(this, "siteId");
@@ -1543,9 +1551,9 @@ class _t {
1543
1551
  } : e;
1544
1552
  }
1545
1553
  async games(e) {
1546
- var a, s, c, u, l, f, w, p, _, v, M, R, N, b, I, D, S, P, $, x, C, G, O, W;
1554
+ var a, s, c, u, l, f, w, p, _, v, M, N, R, b, I, D, S, P, $, x, C, G, O, W;
1547
1555
  const t = new URLSearchParams();
1548
- e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (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), (R = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (b = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && b.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (P = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && G.in && t.set(
1556
+ e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (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(
1549
1557
  "filter[tags][in]",
1550
1558
  e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1551
1559
  ), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
@@ -1606,7 +1614,7 @@ class _t {
1606
1614
  }
1607
1615
  }
1608
1616
  }
1609
- class vt {
1617
+ class Mt {
1610
1618
  constructor(e) {
1611
1619
  m(this, "client");
1612
1620
  this.client = e;
@@ -1628,14 +1636,14 @@ class vt {
1628
1636
  } : t;
1629
1637
  }
1630
1638
  }
1631
- class Mt {
1639
+ class Nt {
1632
1640
  constructor(e) {
1633
1641
  m(this, "client");
1634
1642
  this.client = e;
1635
1643
  }
1636
1644
  async gameSession(e) {
1637
1645
  const t = await this.client.request(
1638
- ge.legacy,
1646
+ be.legacy,
1639
1647
  e
1640
1648
  );
1641
1649
  return t.ok ? {
@@ -1644,7 +1652,7 @@ class Mt {
1644
1652
  } : t;
1645
1653
  }
1646
1654
  async createGameSession(e) {
1647
- const t = await this.client.request(be, e);
1655
+ const t = await this.client.request(Ae, e);
1648
1656
  return t.ok ? t.data.createGameSession ? {
1649
1657
  ok: !1,
1650
1658
  error: d(t.data.createGameSession.__typename)
@@ -1653,7 +1661,7 @@ class Mt {
1653
1661
  } : t;
1654
1662
  }
1655
1663
  async endGameSession(e) {
1656
- const t = await this.client.request(Ae.legacy, e);
1664
+ const t = await this.client.request(Ee.legacy, e);
1657
1665
  return t.ok ? t.data.endGameSession ? {
1658
1666
  ok: !1,
1659
1667
  error: {
@@ -1678,7 +1686,7 @@ class Rt {
1678
1686
  } : e;
1679
1687
  }
1680
1688
  }
1681
- class Nt {
1689
+ class It {
1682
1690
  constructor(e) {
1683
1691
  m(this, "client");
1684
1692
  this.client = e;
@@ -1731,7 +1739,7 @@ class Nt {
1731
1739
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
1732
1740
  }
1733
1741
  async referralCommission() {
1734
- const e = await this.client.request(Ct);
1742
+ const e = await this.client.request(kt);
1735
1743
  return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
1736
1744
  }
1737
1745
  async uplinesByName(e) {
@@ -1741,8 +1749,15 @@ class Nt {
1741
1749
  );
1742
1750
  return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
1743
1751
  }
1752
+ async downlinesByName(e) {
1753
+ const t = await this.client.request(
1754
+ Ct,
1755
+ e
1756
+ );
1757
+ return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
1758
+ }
1744
1759
  }
1745
- class It {
1760
+ class Dt {
1746
1761
  constructor(e) {
1747
1762
  m(this, "url");
1748
1763
  this.url = e.url;
@@ -1754,7 +1769,7 @@ class It {
1754
1769
  ];
1755
1770
  }
1756
1771
  }
1757
- class Dt {
1772
+ class Pt {
1758
1773
  constructor(e) {
1759
1774
  m(this, "client");
1760
1775
  this.client = e;
@@ -1795,7 +1810,7 @@ class Dt {
1795
1810
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1796
1811
  }
1797
1812
  async wallet() {
1798
- const e = await this.client.request(Re);
1813
+ const e = await this.client.request(Ne);
1799
1814
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1800
1815
  }
1801
1816
  async deposit(e) {
@@ -1875,7 +1890,7 @@ class Dt {
1875
1890
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1876
1891
  }
1877
1892
  async pointsWallet() {
1878
- const e = await this.client.request(Ne);
1893
+ const e = await this.client.request(Re);
1879
1894
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1880
1895
  }
1881
1896
  async pointsToCashConversion(e) {
@@ -1896,13 +1911,13 @@ class Dt {
1896
1911
  }
1897
1912
  async gameSession(e) {
1898
1913
  const t = await this.client.request(
1899
- ge.current,
1914
+ be.current,
1900
1915
  e
1901
1916
  );
1902
1917
  return t.ok ? { ok: !0, data: t.data.node } : t;
1903
1918
  }
1904
1919
  async createGameSession(e) {
1905
- const t = await this.client.request(be, e);
1920
+ const t = await this.client.request(Ae, e);
1906
1921
  return t.ok ? t.data.createGameSession ? {
1907
1922
  ok: !1,
1908
1923
  error: d(t.data.createGameSession.__typename)
@@ -1912,7 +1927,7 @@ class Dt {
1912
1927
  }
1913
1928
  async endGameSession(e) {
1914
1929
  const t = await this.client.request(
1915
- Ae.current,
1930
+ Ee.current,
1916
1931
  e
1917
1932
  );
1918
1933
  return t.ok ? t.data.endGameSession ? {
@@ -1940,27 +1955,27 @@ class Dt {
1940
1955
  } : e;
1941
1956
  }
1942
1957
  }
1943
- function Pt(o, e, t) {
1944
- return o < e ? e : o > t ? t : o;
1958
+ function $t(n, e, t) {
1959
+ return n < e ? e : n > t ? t : n;
1945
1960
  }
1946
- function H(o) {
1947
- return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
1961
+ function H(n) {
1962
+ return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
1948
1963
  }
1949
- function $t(o) {
1964
+ function xt(n) {
1950
1965
  const e = [];
1951
1966
  function t(r, a = []) {
1952
1967
  for (const s in r) {
1953
1968
  const c = r[s];
1954
- H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(xt(c), [...a, s]) : e.push({
1969
+ H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Gt(c), [...a, s]) : e.push({
1955
1970
  key: [...a, s],
1956
1971
  value: c
1957
1972
  });
1958
1973
  }
1959
1974
  }
1960
- return t(o), e;
1975
+ return t(n), e;
1961
1976
  }
1962
- function xt(o) {
1963
- return o.reduce((e, t, r) => (e[r] = t, e), {});
1977
+ function Gt(n) {
1978
+ return n.reduce((e, t, r) => (e[r] = t, e), {});
1964
1979
  }
1965
1980
  class U {
1966
1981
  constructor(e, t) {
@@ -2026,7 +2041,7 @@ class U {
2026
2041
  return t;
2027
2042
  }
2028
2043
  createUploadBody(e, t) {
2029
- const r = $t(t).filter(
2044
+ const r = xt(t).filter(
2030
2045
  (c) => c.value instanceof File || c.value instanceof Blob
2031
2046
  ), a = new FormData();
2032
2047
  a.append(
@@ -2044,8 +2059,8 @@ class U {
2044
2059
  }), a;
2045
2060
  }
2046
2061
  }
2047
- async function y(o) {
2048
- const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
2062
+ async function y(n) {
2063
+ const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
2049
2064
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2050
2065
  }
2051
2066
  class Ce {
@@ -2066,26 +2081,26 @@ class Ce {
2066
2081
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
2067
2082
  }
2068
2083
  }
2069
- function j(o) {
2070
- return new Date(o.getTime());
2084
+ function Q(n) {
2085
+ return new Date(n.getTime());
2071
2086
  }
2072
- function B(o, e) {
2073
- const t = j(o);
2087
+ function B(n, e) {
2088
+ const t = Q(n);
2074
2089
  return t.setDate(t.getDate() + e), t;
2075
2090
  }
2076
- function q(o, e) {
2077
- const t = j(o);
2091
+ function q(n, e) {
2092
+ const t = Q(n);
2078
2093
  return t.setMinutes(t.getMinutes() + e), t;
2079
2094
  }
2080
- function we(o, e) {
2081
- return o.getTime() > e.getTime();
2095
+ function ye(n, e) {
2096
+ return n.getTime() > e.getTime();
2082
2097
  }
2083
- function ke(o) {
2098
+ function ke(n) {
2084
2099
  return new Promise((e) => {
2085
- setTimeout(e, o);
2100
+ setTimeout(e, n);
2086
2101
  });
2087
2102
  }
2088
- function ye(o, e) {
2103
+ function ge(n, e) {
2089
2104
  const {
2090
2105
  until: t,
2091
2106
  interval: r = 1e3,
@@ -2093,16 +2108,16 @@ function ye(o, e) {
2093
2108
  /**/
2094
2109
  } = e;
2095
2110
  async function s(c, u) {
2096
- const l = u ?? a, f = await o(...c);
2111
+ const l = u ?? a, f = await n(...c);
2097
2112
  return t(f) ? f : l > 1 ? (await ke(r * ((a - l) / 2)), s(c, l - 1)) : f;
2098
2113
  }
2099
2114
  return async (...c) => await s(c);
2100
2115
  }
2101
- function F(o, e) {
2102
- const t = j(o);
2116
+ function F(n, e) {
2117
+ const t = Q(n);
2103
2118
  return t.setMinutes(t.getMinutes() - e), t;
2104
2119
  }
2105
- class Gt {
2120
+ class Ut {
2106
2121
  constructor(e) {
2107
2122
  m(this, "logger");
2108
2123
  m(this, "storageKey", "session");
@@ -2130,7 +2145,7 @@ class Gt {
2130
2145
  }
2131
2146
  };
2132
2147
  if (e.type === "MAYA") {
2133
- const c = await ye(() => this.walletService.mayaSession({ id: e.sessionId }), {
2148
+ const c = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
2134
2149
  until: (w) => {
2135
2150
  var p;
2136
2151
  return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
@@ -2147,7 +2162,7 @@ class Gt {
2147
2162
  message: "Forbidden"
2148
2163
  }
2149
2164
  };
2150
- const l = await ye(() => this.authService.createSession(e), {
2165
+ const l = await ge(() => this.authService.createSession(e), {
2151
2166
  until: (w) => w.ok,
2152
2167
  interval: 1e3,
2153
2168
  maxAttempt: 5
@@ -2238,7 +2253,7 @@ class Gt {
2238
2253
  try {
2239
2254
  let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2240
2255
  const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2241
- if (we(r, s))
2256
+ if (ye(r, s))
2242
2257
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2243
2258
  ok: !1,
2244
2259
  error: {
@@ -2246,7 +2261,7 @@ class Gt {
2246
2261
  message: "Session expired."
2247
2262
  }
2248
2263
  };
2249
- if (we(r, a)) {
2264
+ if (ye(r, a)) {
2250
2265
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2251
2266
  const c = await this.authService.refreshSession(t.refreshToken);
2252
2267
  if (this.refreshing = !1, !c.ok)
@@ -2301,10 +2316,10 @@ class Gt {
2301
2316
  return typeof window > "u";
2302
2317
  }
2303
2318
  }
2304
- function g(o) {
2319
+ function g(n) {
2305
2320
  const e = {};
2306
- for (const t in o) {
2307
- const r = o[t];
2321
+ for (const t in n) {
2322
+ const r = n[t];
2308
2323
  if (r !== null && r !== void 0) {
2309
2324
  if (H(r)) {
2310
2325
  e[t] = g(r);
@@ -2319,21 +2334,21 @@ function g(o) {
2319
2334
  }
2320
2335
  return e;
2321
2336
  }
2322
- function i(o, e) {
2323
- if (typeof o == "number" && !Number.isNaN(o))
2324
- return o;
2325
- if (typeof o == "string") {
2326
- const t = Number.parseFloat(o);
2337
+ function i(n, e) {
2338
+ if (typeof n == "number" && !Number.isNaN(n))
2339
+ return n;
2340
+ if (typeof n == "string") {
2341
+ const t = Number.parseFloat(n);
2327
2342
  if (!Number.isNaN(t))
2328
2343
  return t;
2329
2344
  }
2330
2345
  return e;
2331
2346
  }
2332
- class Ut {
2347
+ class Ot {
2333
2348
  constructor(e) {
2334
2349
  m(this, "staticService");
2335
2350
  const t = (e == null ? void 0 : e.environment) === "development";
2336
- this.staticService = new It({
2351
+ this.staticService = new Dt({
2337
2352
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2338
2353
  });
2339
2354
  }
@@ -2376,7 +2391,7 @@ class Ut {
2376
2391
  return g(t);
2377
2392
  }
2378
2393
  platform(e) {
2379
- var t, r, a, s, c, u, l, f, w, p, _, v, M, R, N, b, I, D, S, P, $, x, C, G, O, W, E, Q, K, J, z, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, me, de, ue, le, pe, fe, he;
2394
+ var t, r, a, s, c, u, l, f, w, p, _, v, M, N, R, b, I, D, S, P, $, x, C, G, O, W, E, K, J, z, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, de, ue, le, pe, fe, he, we;
2380
2395
  return {
2381
2396
  paymentSettings: {
2382
2397
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
@@ -2400,8 +2415,8 @@ class Ut {
2400
2415
  },
2401
2416
  maya: {
2402
2417
  androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2403
- iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
2404
- webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
2418
+ iosEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
2419
+ webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
2405
2420
  mobileWebEnabled: ((b = e.mayaDepositGatewaySettings) == null ? void 0 : b.mobileWebEnabled) ?? !1,
2406
2421
  minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2407
2422
  maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
@@ -2420,44 +2435,44 @@ class Ut {
2420
2435
  androidEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.androidEnabled) ?? !1,
2421
2436
  iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2422
2437
  webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2423
- mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
2424
- minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2425
- maximumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
2438
+ mobileWebEnabled: ((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2439
+ minimumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.minimumAmount),
2440
+ maximumAmount: i((z = e.bankWithdrawalGatewaySettings) == null ? void 0 : z.maximumAmount)
2426
2441
  },
2427
2442
  gcash: {
2428
- androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2429
- iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
2430
- webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
2431
- mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
2432
- minimumAmount: i((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2443
+ androidEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2444
+ iosEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2445
+ webEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2446
+ mobileWebEnabled: ((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2447
+ minimumAmount: i((re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
2433
2448
  maximumAmount: i(
2434
- (re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
2449
+ (ae = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount,
2435
2450
  1e6
2436
2451
  )
2437
2452
  },
2438
2453
  maya: {
2439
- androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
2454
+ androidEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2440
2455
  iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2441
- webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2442
- mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2443
- minimumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2444
- maximumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
2456
+ webEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
2457
+ mobileWebEnabled: ((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2458
+ minimumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.minimumAmount),
2459
+ maximumAmount: i((me = e.mayaWithdrawalGatewaySettings) == null ? void 0 : me.maximumAmount)
2445
2460
  },
2446
2461
  mayaApp: {
2447
- androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
2448
- iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2449
- webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2450
- mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2451
- minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2462
+ androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
2463
+ iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2464
+ webEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
2465
+ mobileWebEnabled: ((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
2466
+ minimumAmount: i((fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.minimumAmount),
2452
2467
  maximumAmount: i(
2453
- (fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.maximumAmount,
2468
+ (he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.maximumAmount,
2454
2469
  1e6
2455
2470
  )
2456
2471
  }
2457
2472
  }
2458
2473
  },
2459
2474
  pointsClubSettings: {
2460
- multiplier: i((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2475
+ multiplier: i((we = e.pointsClubSettings) == null ? void 0 : we.multiplier, 0)
2461
2476
  }
2462
2477
  };
2463
2478
  }
@@ -2789,7 +2804,7 @@ class Ut {
2789
2804
  };
2790
2805
  }
2791
2806
  }
2792
- class Ft {
2807
+ class Lt {
2793
2808
  constructor(e) {
2794
2809
  m(this, "cmsPortalService");
2795
2810
  m(this, "authService");
@@ -2810,13 +2825,13 @@ class Ft {
2810
2825
  environment: s,
2811
2826
  logs: c
2812
2827
  } = e, u = s === "production";
2813
- this.transformer = new Ut({
2828
+ this.transformer = new Ot({
2814
2829
  environment: s
2815
2830
  }), this.logger = new Ce({
2816
2831
  enabled: c ?? !1
2817
2832
  });
2818
- const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", _ = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", R = u ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1", N = new _t({
2819
- url: R,
2833
+ const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", _ = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", N = "https://portal-api.opexacms.io/v1", R = new vt({
2834
+ url: N,
2820
2835
  site: t,
2821
2836
  platform: r
2822
2837
  }), b = {
@@ -2827,15 +2842,15 @@ class Ft {
2827
2842
  "Platform-Code": a
2828
2843
  }
2829
2844
  }
2830
- }, I = new Mt(new U(M, b)), D = new vt(new U(v, b)), S = new Dt(new U(f, b)), P = new kt(new U(p, b)), $ = new Nt(new U(w, b)), x = new Rt(new U(_, b)), C = new Tt({
2845
+ }, I = new Nt(new U(M, b)), D = new Mt(new U(v, b)), S = new Pt(new U(f, b)), P = new Tt(new U(p, b)), $ = new It(new U(w, b)), x = new Rt(new U(_, b)), C = new _t({
2831
2846
  url: l,
2832
2847
  platform: a
2833
- }), G = new Gt({
2848
+ }), G = new Ut({
2834
2849
  logs: c,
2835
2850
  authService: C,
2836
2851
  walletService: S
2837
2852
  });
2838
- 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 = N;
2853
+ 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;
2839
2854
  }
2840
2855
  get authMiddleware() {
2841
2856
  return async (e) => {
@@ -2892,7 +2907,7 @@ class Ft {
2892
2907
  await this.sessionManager.destroy();
2893
2908
  }
2894
2909
  watchSession(e) {
2895
- const t = Pt(e.interval ?? 3e4, 3e4, 6e4);
2910
+ const t = $t(e.interval ?? 3e4, 3e4, 6e4);
2896
2911
  let r = null;
2897
2912
  const a = () => setTimeout(async () => {
2898
2913
  await this.sessionManager.verify() || await e.onInvalid(), r = a();
@@ -3432,7 +3447,7 @@ class Ft {
3432
3447
  /**/
3433
3448
  provider: a,
3434
3449
  reference: s
3435
- } = r.data, c = Wt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
3450
+ } = r.data, c = Bt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
3436
3451
  return c.ok ? { ok: !0, data: { id: t } } : c;
3437
3452
  }
3438
3453
  async endGameSession(e) {
@@ -3558,8 +3573,15 @@ class Ft {
3558
3573
  data: t.data.map(this.transformer.transform.referral)
3559
3574
  } : t;
3560
3575
  }
3576
+ async downlinesByName(e) {
3577
+ const t = await this.reportService.downlinesByName(e);
3578
+ return t.ok ? {
3579
+ ok: !0,
3580
+ data: t.data.map(this.transformer.transform.referral)
3581
+ } : t;
3582
+ }
3561
3583
  }
3562
- const Ot = [
3584
+ const Wt = [
3563
3585
  /**/
3564
3586
  "RTG",
3565
3587
  "DARWIN",
@@ -3569,12 +3591,12 @@ const Ot = [
3569
3591
  "EVOLUTION_NETENT",
3570
3592
  "EVOLUTION_REDTIGER"
3571
3593
  ];
3572
- function Wt(o) {
3573
- return Ot.some((e) => e === o);
3594
+ function Bt(n) {
3595
+ return Wt.some((e) => e === n);
3574
3596
  }
3575
3597
  export {
3576
- Ht as ObjectId,
3598
+ Yt as ObjectId,
3577
3599
  T as ObjectType,
3578
- Ft as Sdk
3600
+ Lt as Sdk
3579
3601
  };
3580
3602
  //# sourceMappingURL=index.mjs.map