@opexa/portal-sdk 0.0.78 → 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
- var ke = Object.defineProperty;
2
- var Te = (o, e, t) => e in o ? ke(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var d = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
1
+ var Te = Object.defineProperty;
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 Lt } 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 i(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 = i`
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
- `, _e = i`
31
+ `, ve = o`
32
32
  ${L}
33
33
 
34
34
  query File($id: ObjectId!) {
@@ -38,7 +38,7 @@ const L = i`
38
38
  }
39
39
  }
40
40
  }
41
- `, ve = i`
41
+ `, Me = o`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const L = i`
52
52
  }
53
53
  }
54
54
  }
55
- `, Me = i`
55
+ `, Ne = o`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const L = i`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Re = i`
65
+ `, Re = o`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const L = i`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, Ne = i`
74
+ `, Ie = o`
75
75
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
76
76
  pointsToCashConversion(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,7 @@ const L = i`
79
79
  }
80
80
  }
81
81
  }
82
- `, Ie = i`
82
+ `, De = o`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -107,8 +107,8 @@ const L = i`
107
107
  }
108
108
  }
109
109
  }
110
- `, ge = {
111
- current: i`
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 = i`
122
122
  }
123
123
  }
124
124
  `,
125
- legacy: i`
125
+ legacy: o`
126
126
  query GameSession($id: ObjectId!) {
127
127
  node(id: $id) {
128
128
  ... on GameSession {
@@ -138,7 +138,7 @@ const L = i`
138
138
  }
139
139
  }
140
140
  `
141
- }, be = i`
141
+ }, Ae = o`
142
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
143
143
  createGameSession(input: $input) {
144
144
  ... on GameDoesNotExistError {
@@ -146,13 +146,13 @@ const L = i`
146
146
  }
147
147
  }
148
148
  }
149
- `, Ae = {
150
- current: i`
149
+ `, Ee = {
150
+ current: o`
151
151
  mutation EndGameSession($input: EndGameSessionInput!) {
152
152
  endGameSession(input: $input)
153
153
  }
154
154
  `,
155
- legacy: i`
155
+ legacy: o`
156
156
  mutation EndGameSession($input: EndGameSessionInput!) {
157
157
  endGameSession(input: $input) {
158
158
  ... on GameSessionDoesNotExistError {
@@ -167,7 +167,7 @@ const L = i`
167
167
  }
168
168
  }
169
169
  `
170
- }, De = i`
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 = i`
193
193
  }
194
194
  }
195
195
  }
196
- `, Pe = i`
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 = i`
260
260
  }
261
261
  }
262
262
  }
263
- `, $e = i`
263
+ `, xe = o`
264
264
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
265
265
  createGCashWithdrawal(input: $input) {
266
266
  ... on AccountNotVerifiedError {
@@ -283,7 +283,7 @@ const L = i`
283
283
  }
284
284
  }
285
285
  }
286
- `, xe = i`
286
+ `, Ge = o`
287
287
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
288
288
  createMayaWithdrawal(input: $input) {
289
289
  ... on AccountNotVerifiedError {
@@ -306,7 +306,7 @@ const L = i`
306
306
  }
307
307
  }
308
308
  }
309
- `, Ge = i`
309
+ `, Ue = o`
310
310
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
311
311
  createMayaAppWithdrawal(input: $input) {
312
312
  ... on AccountNotVerifiedError {
@@ -326,7 +326,7 @@ const L = i`
326
326
  }
327
327
  }
328
328
  }
329
- `, Ue = i`
329
+ `, Oe = o`
330
330
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
331
331
  createBankWithdrawal(input: $input) {
332
332
  ... on MobileNumberNotVerifiedError {
@@ -349,11 +349,11 @@ const L = i`
349
349
  }
350
350
  }
351
351
  }
352
- `, Oe = i`
352
+ `, We = o`
353
353
  query RemainingDailyWithdrawalsCount {
354
354
  remainingDailyWithdrawalsCount
355
355
  }
356
- `, We = i`
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 = i`
382
382
  }
383
383
  }
384
384
  }
385
- `, qe = i`
385
+ `, qe = o`
386
386
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
387
387
  createGCashDeposit(input: $input) {
388
388
  ... on DepositPromoMaximumAmountExceededError {
@@ -411,7 +411,7 @@ const L = i`
411
411
  }
412
412
  }
413
413
  }
414
- `, Be = i`
414
+ `, Fe = o`
415
415
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
416
416
  createMayaDeposit(input: $input) {
417
417
  ... on DepositPromoMaximumAmountExceededError {
@@ -440,7 +440,7 @@ const L = i`
440
440
  }
441
441
  }
442
442
  }
443
- `, Fe = i`
443
+ `, Le = o`
444
444
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
445
445
  createMayaAppDeposit(input: $input) {
446
446
  ... on DepositPromoMaximumAmountExceededError {
@@ -469,7 +469,7 @@ const L = i`
469
469
  }
470
470
  }
471
471
  }
472
- `, Le = i`
472
+ `, Ve = o`
473
473
  query Deposit($id: ObjectId!) {
474
474
  node(id: $id) {
475
475
  ... on GCashDeposit {
@@ -501,13 +501,13 @@ const L = i`
501
501
  }
502
502
  }
503
503
  }
504
- `, Ve = i`
504
+ `, He = o`
505
505
  query DepositsCount {
506
506
  member {
507
507
  depositsCount
508
508
  }
509
509
  }
510
- `, He = i`
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 = i`
548
548
  }
549
549
  }
550
550
  }
551
- `, Ye = i`
551
+ `, je = o`
552
552
  query LatestBetRecords {
553
553
  latestBetRecords {
554
554
  id
@@ -568,7 +568,7 @@ const L = i`
568
568
  dateTimeCreated
569
569
  }
570
570
  }
571
- `, je = i`
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 = i`
594
594
  }
595
595
  }
596
596
  }
597
- `, Y = i`
597
+ `, Y = o`
598
598
  ${L}
599
599
 
600
600
  fragment PromoFragment on Promo {
@@ -613,7 +613,7 @@ const L = i`
613
613
  dateTimeCreated
614
614
  dateTimeLastUpdated
615
615
  }
616
- `, Qe = i`
616
+ `, Ke = o`
617
617
  ${Y}
618
618
 
619
619
  query Promos {
@@ -621,7 +621,7 @@ const L = i`
621
621
  ...PromoFragment
622
622
  }
623
623
  }
624
- `, Ke = i`
624
+ `, Je = o`
625
625
  ${Y}
626
626
 
627
627
  query AvailablePromos($filter: PromoFilterInput) {
@@ -629,7 +629,7 @@ const L = i`
629
629
  ...PromoFragment
630
630
  }
631
631
  }
632
- `, Ee = i`
632
+ `, Se = o`
633
633
  ${L}
634
634
 
635
635
  fragment CashbackFragment on Cashback {
@@ -646,15 +646,15 @@ const L = i`
646
646
  dateTimeCreated
647
647
  dateTimeLastUpdated
648
648
  }
649
- `, Je = i`
650
- ${Ee}
649
+ `, ze = o`
650
+ ${Se}
651
651
 
652
652
  query Cashbacks {
653
653
  cashbacks {
654
654
  ...CashbackFragment
655
655
  }
656
656
  }
657
- `, ze = i`
657
+ `, Xe = o`
658
658
  ${Y}
659
659
 
660
660
  query Bonus {
@@ -683,8 +683,8 @@ const L = i`
683
683
  dateTimeLastUpdated
684
684
  }
685
685
  }
686
- `, Xe = i`
687
- ${Ee}
686
+ `, Ze = o`
687
+ ${Se}
688
688
 
689
689
  query CashbackBonuses {
690
690
  cashbackBonuses {
@@ -697,7 +697,7 @@ const L = i`
697
697
  dateTimeLastUpdated
698
698
  }
699
699
  }
700
- `, Ze = i`
700
+ `, et = o`
701
701
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
702
702
  claimCashbackBonus(input: $input) {
703
703
  ... on CashbackBonusDoesNotExistError {
@@ -706,14 +706,14 @@ const L = i`
706
706
  }
707
707
  }
708
708
  `;
709
- i`
709
+ o`
710
710
  query Member {
711
711
  member {
712
712
  dateTimeLastActive
713
713
  }
714
714
  }
715
715
  `;
716
- const et = i`
716
+ const tt = o`
717
717
  query MemberAccount {
718
718
  memberAccount: self {
719
719
  ... on MemberAccount {
@@ -737,7 +737,7 @@ const et = i`
737
737
  }
738
738
  }
739
739
  }
740
- `, tt = i`
740
+ `, rt = o`
741
741
  ${L}
742
742
 
743
743
  query MemberVerification {
@@ -762,7 +762,7 @@ const et = i`
762
762
  }
763
763
  }
764
764
  }
765
- `, rt = i`
765
+ `, at = o`
766
766
  mutation RegisterMemberAccount(
767
767
  $input: RegisterMemberAccountInput!
768
768
  $referralCode: String
@@ -798,7 +798,7 @@ const et = i`
798
798
  }
799
799
  }
800
800
  }
801
- `, at = i`
801
+ `, nt = o`
802
802
  mutation RegisterMemberAccountViaMobile(
803
803
  $input: RegisterMemberAccountViaMobileInput!
804
804
  $referralCode: String
@@ -825,7 +825,7 @@ const et = i`
825
825
  }
826
826
  }
827
827
  }
828
- `, ot = i`
828
+ `, ot = o`
829
829
  mutation RegisterMemberAccount(
830
830
  $input: RegisterMemberAccountInput_next!
831
831
  $reCAPTCHAResponse: String
@@ -857,7 +857,7 @@ const et = i`
857
857
  }
858
858
  }
859
859
  }
860
- `, nt = i`
860
+ `, it = o`
861
861
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
862
862
  registerMayaMemberAccount(input: $input) {
863
863
  ... on AccountNameNotAvailableError {
@@ -865,7 +865,7 @@ const et = i`
865
865
  }
866
866
  }
867
867
  }
868
- `, it = i`
868
+ `, st = o`
869
869
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
870
870
  updateMemberAccount(input: $input) {
871
871
  ... on AccountNameNotAvailableError {
@@ -891,7 +891,7 @@ const et = i`
891
891
  }
892
892
  }
893
893
  }
894
- `, st = i`
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 et = i`
902
902
  }
903
903
  }
904
904
  }
905
- `, ct = i`
905
+ `, mt = o`
906
906
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
907
907
  deleteMemberAccount(input: $input)
908
908
  }
909
- `, dt = i`
909
+ `, dt = o`
910
910
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
911
911
  verifyMobileNumber(input: $input) {
912
912
  ... on InvalidSMSVerificationCodeError {
@@ -917,7 +917,7 @@ const et = i`
917
917
  }
918
918
  }
919
919
  }
920
- `, mt = i`
920
+ `, ut = o`
921
921
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
922
922
  createMemberVerification(input: $input) {
923
923
  ... on FileDoesNotExistError {
@@ -931,7 +931,7 @@ const et = i`
931
931
  }
932
932
  }
933
933
  }
934
- `, ut = i`
934
+ `, lt = o`
935
935
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
936
936
  updateMemberVerification(input: $input) {
937
937
  ... on FileDoesNotExistError {
@@ -948,7 +948,7 @@ const et = i`
948
948
  }
949
949
  }
950
950
  }
951
- `, lt = i`
951
+ `, pt = o`
952
952
  query ProfileCompletion {
953
953
  profileCompletion {
954
954
  completionPercentage
@@ -959,7 +959,7 @@ const et = i`
959
959
  accountPassword
960
960
  }
961
961
  }
962
- `, pt = i`
962
+ `, ft = o`
963
963
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
964
964
  sendVerificationCode(input: $input) {
965
965
  ... on InvalidPlatformError {
@@ -970,7 +970,7 @@ const et = i`
970
970
  }
971
971
  }
972
972
  }
973
- `, ft = i`
973
+ `, ht = o`
974
974
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
975
975
  minimumAmount
976
976
  maximumAmount
@@ -1024,7 +1024,7 @@ const et = i`
1024
1024
  multiplier
1025
1025
  }
1026
1026
  }
1027
- `, ht = i`
1027
+ `, wt = o`
1028
1028
  query MayaSession($id: ObjectId!) {
1029
1029
  mayaSession(id: $id) {
1030
1030
  id
@@ -1032,11 +1032,11 @@ const et = i`
1032
1032
  dateTimeCreated
1033
1033
  }
1034
1034
  }
1035
- `, wt = i`
1035
+ `, yt = o`
1036
1036
  mutation ValidateMayaSession {
1037
1037
  validateMayaSession: validMayaSession
1038
1038
  }
1039
- `, yt = i`
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 et = i`
1061
1061
  }
1062
1062
  }
1063
1063
  }
1064
- `, gt = i`
1064
+ `, bt = o`
1065
1065
  query ReferralCode {
1066
1066
  referralCode
1067
1067
  }
1068
- `, bt = i`
1068
+ `, At = o`
1069
1069
  mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
1070
1070
  updateReferralCode(input: $input) {
1071
1071
  ... on ReferralCodeNotAvailableError {
@@ -1073,7 +1073,25 @@ const et = i`
1073
1073
  }
1074
1074
  }
1075
1075
  }
1076
- `, At = i`
1076
+ `, j = o`
1077
+ fragment ReferralFragment on Referral {
1078
+ id
1079
+ upline {
1080
+ id
1081
+ name
1082
+ realName
1083
+ }
1084
+ downline {
1085
+ id
1086
+ name
1087
+ realName
1088
+ }
1089
+ level
1090
+ turnover
1091
+ commission
1092
+ dateTimeCreated
1093
+ }
1094
+ `, Et = o`
1077
1095
  query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
1078
1096
  member {
1079
1097
  referrals(first: $first, after: $after, filter: $filter) {
@@ -1081,21 +1099,7 @@ const et = i`
1081
1099
  cursor
1082
1100
  node {
1083
1101
  ... on Referral {
1084
- id
1085
- upline {
1086
- id
1087
- name
1088
- realName
1089
- }
1090
- downline {
1091
- id
1092
- name
1093
- realName
1094
- }
1095
- level
1096
- turnover
1097
- commission
1098
- dateTimeCreated
1102
+ ...ReferralFragment
1099
1103
  }
1100
1104
  }
1101
1105
  }
@@ -1107,7 +1111,25 @@ const et = i`
1107
1111
  }
1108
1112
  }
1109
1113
  }
1110
- `, Et = i`
1114
+
1115
+ ${j}
1116
+ `, St = o`
1117
+ query UplinesByName($search: String!, $first: Int) {
1118
+ uplinesByName(search: $search, first: $first) {
1119
+ ...ReferralFragment
1120
+ }
1121
+ }
1122
+
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`
1111
1133
  query ReferralCommission {
1112
1134
  member {
1113
1135
  referralCommission {
@@ -1127,9 +1149,9 @@ const et = i`
1127
1149
  }
1128
1150
  }
1129
1151
  `;
1130
- function m(o) {
1152
+ function d(n) {
1131
1153
  return {
1132
- name: o,
1154
+ name: n,
1133
1155
  message: {
1134
1156
  AccountNameNotAvailableError: "Username is no longer available",
1135
1157
  AccountNotFoundError: "Account does not exist",
@@ -1179,36 +1201,36 @@ function m(o) {
1179
1201
  InvalidToken: "Invalid token",
1180
1202
  InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
1181
1203
  SessionExpired: "Session expired"
1182
- }[o]
1204
+ }[n]
1183
1205
  };
1184
1206
  }
1185
- class St {
1207
+ class Tt {
1186
1208
  constructor(e) {
1187
- d(this, "client");
1209
+ m(this, "client");
1188
1210
  this.client = e;
1189
1211
  }
1190
1212
  /** aka `Query.self` */
1191
1213
  async memberAccount() {
1192
- const e = await this.client.request(et);
1214
+ const e = await this.client.request(tt);
1193
1215
  return e.ok ? {
1194
1216
  ok: !0,
1195
1217
  data: e.data.memberAccount
1196
1218
  } : e;
1197
1219
  }
1198
1220
  async registerMemberAccount(e) {
1199
- const t = await this.client.request(rt, e);
1221
+ const t = await this.client.request(at, e);
1200
1222
  return t.ok ? t.data.registerMemberAccount ? {
1201
1223
  ok: !1,
1202
- error: m(t.data.registerMemberAccount.__typename)
1224
+ error: d(t.data.registerMemberAccount.__typename)
1203
1225
  } : {
1204
1226
  ok: !0
1205
1227
  } : t;
1206
1228
  }
1207
1229
  async registerMemberAccountViaMobile(e) {
1208
- const t = await this.client.request(at, e);
1230
+ const t = await this.client.request(nt, e);
1209
1231
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1210
1232
  ok: !1,
1211
- error: m(t.data.registerMemberAccountViaMobile.__typename)
1233
+ error: d(t.data.registerMemberAccountViaMobile.__typename)
1212
1234
  } : {
1213
1235
  ok: !0
1214
1236
  } : t;
@@ -1217,22 +1239,22 @@ class St {
1217
1239
  const t = await this.client.request(ot, e);
1218
1240
  return t.ok ? t.data.registerMemberAccount ? {
1219
1241
  ok: !1,
1220
- error: m(t.data.registerMemberAccount.__typename)
1242
+ error: d(t.data.registerMemberAccount.__typename)
1221
1243
  } : {
1222
1244
  ok: !0
1223
1245
  } : t;
1224
1246
  }
1225
1247
  async updateMemberAccount(e) {
1226
- const t = await this.client.request(it, e);
1248
+ const t = await this.client.request(st, e);
1227
1249
  return t.ok ? t.data.updateMemberAccount ? {
1228
1250
  ok: !1,
1229
- error: m(t.data.updateMemberAccount.__typename)
1251
+ error: d(t.data.updateMemberAccount.__typename)
1230
1252
  } : {
1231
1253
  ok: !0
1232
1254
  } : t;
1233
1255
  }
1234
1256
  async deleteMemberAccount(e) {
1235
- const t = await this.client.request(ct, e);
1257
+ const t = await this.client.request(mt, e);
1236
1258
  return t.ok ? t.data.deleteMemberAccount ? {
1237
1259
  ok: !0
1238
1260
  } : {
@@ -1245,28 +1267,28 @@ class St {
1245
1267
  }
1246
1268
  async resetPassword(e) {
1247
1269
  const t = await this.client.request(
1248
- st,
1270
+ ct,
1249
1271
  e
1250
1272
  );
1251
1273
  return t.ok ? t.data.resetPassword ? {
1252
1274
  ok: !1,
1253
- error: m(t.data.resetPassword.__typename)
1275
+ error: d(t.data.resetPassword.__typename)
1254
1276
  } : {
1255
1277
  ok: !0
1256
1278
  } : t;
1257
1279
  }
1258
1280
  async profileCompletion() {
1259
- const e = await this.client.request(lt);
1281
+ const e = await this.client.request(pt);
1260
1282
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1261
1283
  }
1262
1284
  async platform() {
1263
- return await this.client.request(ft);
1285
+ return await this.client.request(ht);
1264
1286
  }
1265
1287
  async sendVerificationCode(e) {
1266
- const t = await this.client.request(pt, e);
1288
+ const t = await this.client.request(ft, e);
1267
1289
  return t.ok ? t.data.sendVerificationCode ? {
1268
1290
  ok: !1,
1269
- error: m(t.data.sendVerificationCode.__typename)
1291
+ error: d(t.data.sendVerificationCode.__typename)
1270
1292
  } : {
1271
1293
  ok: !0
1272
1294
  } : t;
@@ -1275,31 +1297,31 @@ class St {
1275
1297
  const t = await this.client.request(dt, e);
1276
1298
  return t.ok ? t.data.verifyMobileNumber ? {
1277
1299
  ok: !1,
1278
- error: m(t.data.verifyMobileNumber.__typename)
1300
+ error: d(t.data.verifyMobileNumber.__typename)
1279
1301
  } : {
1280
1302
  ok: !0
1281
1303
  } : t;
1282
1304
  }
1283
1305
  async createMemberVerification(e) {
1284
- const t = await this.client.request(mt, e);
1306
+ const t = await this.client.request(ut, e);
1285
1307
  return t.ok ? t.data.createMemberVerification ? {
1286
1308
  ok: !1,
1287
- error: m(t.data.createMemberVerification.__typename)
1309
+ error: d(t.data.createMemberVerification.__typename)
1288
1310
  } : {
1289
1311
  ok: !0
1290
1312
  } : t;
1291
1313
  }
1292
1314
  async updateMemberVerification(e) {
1293
- const t = await this.client.request(ut, e);
1315
+ const t = await this.client.request(lt, e);
1294
1316
  return t.ok ? t.data.updateMemberVerification ? {
1295
1317
  ok: !1,
1296
- error: m(t.data.updateMemberVerification.__typename)
1318
+ error: d(t.data.updateMemberVerification.__typename)
1297
1319
  } : {
1298
1320
  ok: !0
1299
1321
  } : t;
1300
1322
  }
1301
1323
  async memberVerification() {
1302
- const e = await this.client.request(tt);
1324
+ const e = await this.client.request(rt);
1303
1325
  return e.ok ? {
1304
1326
  ok: !0,
1305
1327
  data: e.data.memberAccount.verification
@@ -1307,7 +1329,7 @@ class St {
1307
1329
  }
1308
1330
  async announcements(e) {
1309
1331
  const t = await this.client.request(
1310
- De,
1332
+ Pe,
1311
1333
  e
1312
1334
  );
1313
1335
  return t.ok ? {
@@ -1316,36 +1338,36 @@ class St {
1316
1338
  } : t;
1317
1339
  }
1318
1340
  async registerMayaMemberAccount(e) {
1319
- const t = await this.client.request(nt, e);
1341
+ const t = await this.client.request(it, e);
1320
1342
  return t.ok ? t.data.registerMayaMemberAccount ? {
1321
1343
  ok: !1,
1322
- error: m(t.data.registerMayaMemberAccount.__typename)
1344
+ error: d(t.data.registerMayaMemberAccount.__typename)
1323
1345
  } : {
1324
1346
  ok: !0
1325
1347
  } : t;
1326
1348
  }
1327
1349
  async referralCode() {
1328
- const e = await this.client.request(gt);
1350
+ const e = await this.client.request(bt);
1329
1351
  return e.ok ? {
1330
1352
  ok: !0,
1331
1353
  data: e.data.referralCode
1332
1354
  } : e;
1333
1355
  }
1334
1356
  async updateReferralCode(e) {
1335
- const t = await this.client.request(bt, e);
1357
+ const t = await this.client.request(At, e);
1336
1358
  return t.ok ? t.data.updateReferralCode ? {
1337
1359
  ok: !1,
1338
- error: m(t.data.updateReferralCode.__typename)
1360
+ error: d(t.data.updateReferralCode.__typename)
1339
1361
  } : {
1340
1362
  ok: !0
1341
1363
  } : t;
1342
1364
  }
1343
1365
  }
1344
- function A(o) {
1345
- 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}`;
1346
1368
  }
1347
- function h(o, e) {
1348
- const t = V[o] ? V[o] : V[500];
1369
+ function h(n, e) {
1370
+ const t = V[n] ? V[n] : V[500];
1349
1371
  return {
1350
1372
  name: t.name,
1351
1373
  message: e ?? t.message
@@ -1360,10 +1382,10 @@ const V = {
1360
1382
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1361
1383
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1362
1384
  };
1363
- class Ct {
1385
+ class _t {
1364
1386
  constructor(e) {
1365
- d(this, "url");
1366
- d(this, "platform");
1387
+ m(this, "url");
1388
+ m(this, "platform");
1367
1389
  this.url = e.url, this.platform = e.platform;
1368
1390
  }
1369
1391
  get headers() {
@@ -1391,7 +1413,7 @@ class Ct {
1391
1413
  data: a
1392
1414
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1393
1415
  ok: !1,
1394
- error: m("AccountBlacklisted")
1416
+ error: d("AccountBlacklisted")
1395
1417
  } : {
1396
1418
  ok: !1,
1397
1419
  error: h(r.status)
@@ -1420,7 +1442,7 @@ class Ct {
1420
1442
  data: a
1421
1443
  } : r.status === 401 || r.status === 403 ? {
1422
1444
  ok: !1,
1423
- error: m("InvalidTokenOrSecretAnswer")
1445
+ error: d("InvalidTokenOrSecretAnswer")
1424
1446
  } : {
1425
1447
  ok: !1,
1426
1448
  error: h(r.status)
@@ -1447,10 +1469,10 @@ class Ct {
1447
1469
  data: a
1448
1470
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1449
1471
  ok: !1,
1450
- error: m("AccountBlacklisted")
1472
+ error: d("AccountBlacklisted")
1451
1473
  } : r.status === 403 || r.status === 401 ? {
1452
1474
  ok: !1,
1453
- error: m("InvalidToken")
1475
+ error: d("InvalidToken")
1454
1476
  } : {
1455
1477
  ok: !1,
1456
1478
  error: h(r.status)
@@ -1514,11 +1536,11 @@ class Ct {
1514
1536
  }
1515
1537
  }
1516
1538
  }
1517
- class kt {
1539
+ class vt {
1518
1540
  constructor(e) {
1519
- d(this, "url");
1520
- d(this, "siteId");
1521
- d(this, "platformId");
1541
+ m(this, "url");
1542
+ m(this, "siteId");
1543
+ m(this, "platformId");
1522
1544
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1523
1545
  }
1524
1546
  async self() {
@@ -1529,9 +1551,9 @@ class kt {
1529
1551
  } : e;
1530
1552
  }
1531
1553
  async games(e) {
1532
- 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;
1533
1555
  const t = new URLSearchParams();
1534
- 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(
1535
1557
  "filter[tags][in]",
1536
1558
  e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1537
1559
  ), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
@@ -1592,36 +1614,36 @@ class kt {
1592
1614
  }
1593
1615
  }
1594
1616
  }
1595
- class Tt {
1617
+ class Mt {
1596
1618
  constructor(e) {
1597
- d(this, "client");
1619
+ m(this, "client");
1598
1620
  this.client = e;
1599
1621
  }
1600
1622
  async file(e) {
1601
- const t = await this.client.request(_e, e);
1623
+ const t = await this.client.request(ve, e);
1602
1624
  return t.ok ? {
1603
1625
  ok: !0,
1604
1626
  data: t.data.node
1605
1627
  } : t;
1606
1628
  }
1607
1629
  async uploadPrivateImageFile(e) {
1608
- const t = await this.client.upload(ve, e);
1630
+ const t = await this.client.upload(Me, e);
1609
1631
  return t.ok ? t.data.uploadPrivateImageFile ? {
1610
1632
  ok: !1,
1611
- error: m(t.data.uploadPrivateImageFile.__typename)
1633
+ error: d(t.data.uploadPrivateImageFile.__typename)
1612
1634
  } : {
1613
1635
  ok: !0
1614
1636
  } : t;
1615
1637
  }
1616
1638
  }
1617
- class _t {
1639
+ class Nt {
1618
1640
  constructor(e) {
1619
- d(this, "client");
1641
+ m(this, "client");
1620
1642
  this.client = e;
1621
1643
  }
1622
1644
  async gameSession(e) {
1623
1645
  const t = await this.client.request(
1624
- ge.legacy,
1646
+ be.legacy,
1625
1647
  e
1626
1648
  );
1627
1649
  return t.ok ? {
@@ -1630,16 +1652,16 @@ class _t {
1630
1652
  } : t;
1631
1653
  }
1632
1654
  async createGameSession(e) {
1633
- const t = await this.client.request(be, e);
1655
+ const t = await this.client.request(Ae, e);
1634
1656
  return t.ok ? t.data.createGameSession ? {
1635
1657
  ok: !1,
1636
- error: m(t.data.createGameSession.__typename)
1658
+ error: d(t.data.createGameSession.__typename)
1637
1659
  } : {
1638
1660
  ok: !0
1639
1661
  } : t;
1640
1662
  }
1641
1663
  async endGameSession(e) {
1642
- const t = await this.client.request(Ae.legacy, e);
1664
+ const t = await this.client.request(Ee.legacy, e);
1643
1665
  return t.ok ? t.data.endGameSession ? {
1644
1666
  ok: !1,
1645
1667
  error: {
@@ -1651,79 +1673,93 @@ class _t {
1651
1673
  } : t;
1652
1674
  }
1653
1675
  }
1654
- class vt {
1676
+ class Rt {
1655
1677
  constructor(e) {
1656
- d(this, "client");
1678
+ m(this, "client");
1657
1679
  this.client = e;
1658
1680
  }
1659
1681
  async latestBetRecords() {
1660
- const e = await this.client.request(Ye);
1682
+ const e = await this.client.request(je);
1661
1683
  return e.ok ? {
1662
1684
  ok: !0,
1663
1685
  data: e.data.latestBetRecords
1664
1686
  } : e;
1665
1687
  }
1666
1688
  }
1667
- class Mt {
1689
+ class It {
1668
1690
  constructor(e) {
1669
- d(this, "client");
1691
+ m(this, "client");
1670
1692
  this.client = e;
1671
1693
  }
1672
1694
  async betRecords(e) {
1673
1695
  const t = await this.client.request(
1674
- He,
1696
+ Ye,
1675
1697
  e
1676
1698
  );
1677
1699
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1678
1700
  }
1679
1701
  async transactionRecords(e) {
1680
- const t = await this.client.request(je, e);
1702
+ const t = await this.client.request(Qe, e);
1681
1703
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1682
1704
  }
1683
1705
  async withdrawalRecords(e) {
1684
1706
  const t = await this.client.request(
1685
- Pe,
1707
+ $e,
1686
1708
  e
1687
1709
  );
1688
1710
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1689
1711
  }
1690
1712
  async depositRecords(e) {
1691
1713
  const t = await this.client.request(
1692
- We,
1714
+ Be,
1693
1715
  e
1694
1716
  );
1695
1717
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1696
1718
  }
1697
1719
  async depositsCount() {
1698
- const e = await this.client.request(Ve);
1720
+ const e = await this.client.request(He);
1699
1721
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1700
1722
  }
1701
1723
  async pointsWalletTransactions(e) {
1702
- const t = await this.client.request(Ie, e);
1724
+ const t = await this.client.request(De, e);
1703
1725
  return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
1704
1726
  }
1705
1727
  async activityRecords(e) {
1706
1728
  const t = await this.client.request(
1707
- yt,
1729
+ gt,
1708
1730
  e
1709
1731
  );
1710
1732
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1711
1733
  }
1712
1734
  async referrals(e) {
1713
1735
  const t = await this.client.request(
1714
- At,
1736
+ Et,
1715
1737
  e
1716
1738
  );
1717
1739
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
1718
1740
  }
1719
1741
  async referralCommission() {
1720
- const e = await this.client.request(Et);
1742
+ const e = await this.client.request(kt);
1721
1743
  return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
1722
1744
  }
1745
+ async uplinesByName(e) {
1746
+ const t = await this.client.request(
1747
+ St,
1748
+ e
1749
+ );
1750
+ return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
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
+ }
1723
1759
  }
1724
- class Rt {
1760
+ class Dt {
1725
1761
  constructor(e) {
1726
- d(this, "url");
1762
+ m(this, "url");
1727
1763
  this.url = e.url;
1728
1764
  }
1729
1765
  gameThumbnails(e) {
@@ -1733,35 +1769,35 @@ class Rt {
1733
1769
  ];
1734
1770
  }
1735
1771
  }
1736
- class Nt {
1772
+ class Pt {
1737
1773
  constructor(e) {
1738
- d(this, "client");
1774
+ m(this, "client");
1739
1775
  this.client = e;
1740
1776
  }
1741
1777
  async promos() {
1742
- const e = await this.client.request(Qe);
1778
+ const e = await this.client.request(Ke);
1743
1779
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1744
1780
  }
1745
1781
  async cashbacks() {
1746
- const e = await this.client.request(Je);
1782
+ const e = await this.client.request(ze);
1747
1783
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1748
1784
  }
1749
1785
  async availablePromos(e) {
1750
1786
  const t = await this.client.request(
1751
- Ke,
1787
+ Je,
1752
1788
  e
1753
1789
  );
1754
1790
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1755
1791
  }
1756
1792
  async cashbackBonuses() {
1757
- const e = await this.client.request(Xe);
1793
+ const e = await this.client.request(Ze);
1758
1794
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1759
1795
  }
1760
1796
  async claimCashbackBonus(e) {
1761
- const t = await this.client.request(Ze, e);
1797
+ const t = await this.client.request(et, e);
1762
1798
  return t.ok ? t.data.claimCashbackBonus ? {
1763
1799
  ok: !1,
1764
- error: m(t.data.claimCashbackBonus.__typename)
1800
+ error: d(t.data.claimCashbackBonus.__typename)
1765
1801
  } : {
1766
1802
  ok: !0
1767
1803
  } : {
@@ -1770,16 +1806,16 @@ class Nt {
1770
1806
  };
1771
1807
  }
1772
1808
  async bonus() {
1773
- const e = await this.client.request(ze);
1809
+ const e = await this.client.request(Xe);
1774
1810
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1775
1811
  }
1776
1812
  async wallet() {
1777
- const e = await this.client.request(Me);
1813
+ const e = await this.client.request(Ne);
1778
1814
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1779
1815
  }
1780
1816
  async deposit(e) {
1781
1817
  const t = await this.client.request(
1782
- Le,
1818
+ Ve,
1783
1819
  e
1784
1820
  );
1785
1821
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
@@ -1788,68 +1824,68 @@ class Nt {
1788
1824
  const t = await this.client.request(qe, e);
1789
1825
  return t.ok ? t.data.createGCashDeposit ? {
1790
1826
  ok: !1,
1791
- error: m(t.data.createGCashDeposit.__typename)
1827
+ error: d(t.data.createGCashDeposit.__typename)
1792
1828
  } : {
1793
1829
  ok: !0
1794
1830
  } : t;
1795
1831
  }
1796
1832
  async createMayaDeposit(e) {
1797
- const t = await this.client.request(Be, e);
1833
+ const t = await this.client.request(Fe, e);
1798
1834
  return t.ok ? t.data.createMayaDeposit ? {
1799
1835
  ok: !1,
1800
- error: m(t.data.createMayaDeposit.__typename)
1836
+ error: d(t.data.createMayaDeposit.__typename)
1801
1837
  } : {
1802
1838
  ok: !0
1803
1839
  } : t;
1804
1840
  }
1805
1841
  async createMayaAppDeposit(e) {
1806
- const t = await this.client.request(Fe, e);
1842
+ const t = await this.client.request(Le, e);
1807
1843
  return t.ok ? t.data.createMayaAppDeposit ? {
1808
1844
  ok: !1,
1809
- error: m(t.data.createMayaAppDeposit.__typename)
1845
+ error: d(t.data.createMayaAppDeposit.__typename)
1810
1846
  } : {
1811
1847
  ok: !0
1812
1848
  } : t;
1813
1849
  }
1814
1850
  async createGCashWithdrawal(e) {
1815
- const t = await this.client.request($e, e);
1851
+ const t = await this.client.request(xe, e);
1816
1852
  return t.ok ? t.data.createGCashWithdrawal ? {
1817
1853
  ok: !1,
1818
- error: m(t.data.createGCashWithdrawal.__typename)
1854
+ error: d(t.data.createGCashWithdrawal.__typename)
1819
1855
  } : {
1820
1856
  ok: !0
1821
1857
  } : t;
1822
1858
  }
1823
1859
  async createMayaWithdrawal(e) {
1824
- const t = await this.client.request(xe, e);
1860
+ const t = await this.client.request(Ge, e);
1825
1861
  return t.ok ? t.data.createMayaWithdrawal ? {
1826
1862
  ok: !1,
1827
- error: m(t.data.createMayaWithdrawal.__typename)
1863
+ error: d(t.data.createMayaWithdrawal.__typename)
1828
1864
  } : {
1829
1865
  ok: !0
1830
1866
  } : t;
1831
1867
  }
1832
1868
  async createMayaAppWithdrawal(e) {
1833
- const t = await this.client.request(Ge, e);
1869
+ const t = await this.client.request(Ue, e);
1834
1870
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1835
1871
  ok: !1,
1836
- error: m(t.data.createMayaAppWithdrawal.__typename)
1872
+ error: d(t.data.createMayaAppWithdrawal.__typename)
1837
1873
  } : {
1838
1874
  ok: !0
1839
1875
  } : t;
1840
1876
  }
1841
1877
  async createBankWithdrawal(e) {
1842
- const t = await this.client.request(Ue, e);
1878
+ const t = await this.client.request(Oe, e);
1843
1879
  return t.ok ? t.data.createBankWithdrawal ? {
1844
1880
  ok: !1,
1845
- error: m(t.data.createBankWithdrawal.__typename)
1881
+ error: d(t.data.createBankWithdrawal.__typename)
1846
1882
  } : {
1847
1883
  ok: !0
1848
1884
  } : t;
1849
1885
  }
1850
1886
  async remainingDailyWithdrawalsCount() {
1851
1887
  const e = await this.client.request(
1852
- Oe
1888
+ We
1853
1889
  );
1854
1890
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1855
1891
  }
@@ -1858,40 +1894,40 @@ class Nt {
1858
1894
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1859
1895
  }
1860
1896
  async pointsToCashConversion(e) {
1861
- const t = await this.client.request(Ne, e);
1897
+ const t = await this.client.request(Ie, e);
1862
1898
  return t.ok ? t.data.pointsToCashConversion ? {
1863
1899
  ok: !1,
1864
- error: m(t.data.pointsToCashConversion.__typename)
1900
+ error: d(t.data.pointsToCashConversion.__typename)
1865
1901
  } : {
1866
1902
  ok: !0
1867
1903
  } : t;
1868
1904
  }
1869
1905
  async mayaSession(e) {
1870
1906
  const t = await this.client.request(
1871
- ht,
1907
+ wt,
1872
1908
  e
1873
1909
  );
1874
1910
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
1875
1911
  }
1876
1912
  async gameSession(e) {
1877
1913
  const t = await this.client.request(
1878
- ge.current,
1914
+ be.current,
1879
1915
  e
1880
1916
  );
1881
1917
  return t.ok ? { ok: !0, data: t.data.node } : t;
1882
1918
  }
1883
1919
  async createGameSession(e) {
1884
- const t = await this.client.request(be, e);
1920
+ const t = await this.client.request(Ae, e);
1885
1921
  return t.ok ? t.data.createGameSession ? {
1886
1922
  ok: !1,
1887
- error: m(t.data.createGameSession.__typename)
1923
+ error: d(t.data.createGameSession.__typename)
1888
1924
  } : {
1889
1925
  ok: !0
1890
1926
  } : t;
1891
1927
  }
1892
1928
  async endGameSession(e) {
1893
1929
  const t = await this.client.request(
1894
- Ae.current,
1930
+ Ee.current,
1895
1931
  e
1896
1932
  );
1897
1933
  return t.ok ? t.data.endGameSession ? {
@@ -1906,7 +1942,7 @@ class Nt {
1906
1942
  }
1907
1943
  async validateMayaSession() {
1908
1944
  const e = await this.client.request(
1909
- wt
1945
+ yt
1910
1946
  );
1911
1947
  return e.ok ? e.data.validateMayaSession ? {
1912
1948
  ok: !0
@@ -1919,33 +1955,33 @@ class Nt {
1919
1955
  } : e;
1920
1956
  }
1921
1957
  }
1922
- function It(o, e, t) {
1923
- return o < e ? e : o > t ? t : o;
1958
+ function $t(n, e, t) {
1959
+ return n < e ? e : n > t ? t : n;
1924
1960
  }
1925
- function H(o) {
1926
- 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;
1927
1963
  }
1928
- function Dt(o) {
1964
+ function xt(n) {
1929
1965
  const e = [];
1930
1966
  function t(r, a = []) {
1931
1967
  for (const s in r) {
1932
1968
  const c = r[s];
1933
- H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Pt(c), [...a, s]) : e.push({
1969
+ H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Gt(c), [...a, s]) : e.push({
1934
1970
  key: [...a, s],
1935
1971
  value: c
1936
1972
  });
1937
1973
  }
1938
1974
  }
1939
- return t(o), e;
1975
+ return t(n), e;
1940
1976
  }
1941
- function Pt(o) {
1942
- 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), {});
1943
1979
  }
1944
1980
  class U {
1945
1981
  constructor(e, t) {
1946
- d(this, "url");
1947
- d(this, "options");
1948
- d(this, "middlewares");
1982
+ m(this, "url");
1983
+ m(this, "options");
1984
+ m(this, "middlewares");
1949
1985
  var a;
1950
1986
  const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
1951
1987
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -2005,7 +2041,7 @@ class U {
2005
2041
  return t;
2006
2042
  }
2007
2043
  createUploadBody(e, t) {
2008
- const r = Dt(t).filter(
2044
+ const r = xt(t).filter(
2009
2045
  (c) => c.value instanceof File || c.value instanceof Blob
2010
2046
  ), a = new FormData();
2011
2047
  a.append(
@@ -2023,13 +2059,13 @@ class U {
2023
2059
  }), a;
2024
2060
  }
2025
2061
  }
2026
- async function y(o) {
2027
- 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);
2028
2064
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2029
2065
  }
2030
- class Se {
2066
+ class Ce {
2031
2067
  constructor(e) {
2032
- d(this, "enabled");
2068
+ m(this, "enabled");
2033
2069
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
2034
2070
  }
2035
2071
  info(e) {
@@ -2045,26 +2081,26 @@ class Se {
2045
2081
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
2046
2082
  }
2047
2083
  }
2048
- function j(o) {
2049
- return new Date(o.getTime());
2084
+ function Q(n) {
2085
+ return new Date(n.getTime());
2050
2086
  }
2051
- function q(o, e) {
2052
- const t = j(o);
2087
+ function B(n, e) {
2088
+ const t = Q(n);
2053
2089
  return t.setDate(t.getDate() + e), t;
2054
2090
  }
2055
- function B(o, e) {
2056
- const t = j(o);
2091
+ function q(n, e) {
2092
+ const t = Q(n);
2057
2093
  return t.setMinutes(t.getMinutes() + e), t;
2058
2094
  }
2059
- function we(o, e) {
2060
- return o.getTime() > e.getTime();
2095
+ function ye(n, e) {
2096
+ return n.getTime() > e.getTime();
2061
2097
  }
2062
- function Ce(o) {
2098
+ function ke(n) {
2063
2099
  return new Promise((e) => {
2064
- setTimeout(e, o);
2100
+ setTimeout(e, n);
2065
2101
  });
2066
2102
  }
2067
- function ye(o, e) {
2103
+ function ge(n, e) {
2068
2104
  const {
2069
2105
  until: t,
2070
2106
  interval: r = 1e3,
@@ -2072,23 +2108,23 @@ function ye(o, e) {
2072
2108
  /**/
2073
2109
  } = e;
2074
2110
  async function s(c, u) {
2075
- const l = u ?? a, f = await o(...c);
2076
- return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
2111
+ const l = u ?? a, f = await n(...c);
2112
+ return t(f) ? f : l > 1 ? (await ke(r * ((a - l) / 2)), s(c, l - 1)) : f;
2077
2113
  }
2078
2114
  return async (...c) => await s(c);
2079
2115
  }
2080
- function F(o, e) {
2081
- const t = j(o);
2116
+ function F(n, e) {
2117
+ const t = Q(n);
2082
2118
  return t.setMinutes(t.getMinutes() - e), t;
2083
2119
  }
2084
- class $t {
2120
+ class Ut {
2085
2121
  constructor(e) {
2086
- d(this, "logger");
2087
- d(this, "storageKey", "session");
2088
- d(this, "authService");
2089
- d(this, "walletService");
2090
- d(this, "_refreshing", !1);
2091
- this.authService = e.authService, this.walletService = e.walletService, this.logger = new Se({
2122
+ m(this, "logger");
2123
+ m(this, "storageKey", "session");
2124
+ m(this, "authService");
2125
+ m(this, "walletService");
2126
+ m(this, "_refreshing", !1);
2127
+ this.authService = e.authService, this.walletService = e.walletService, this.logger = new Ce({
2092
2128
  enabled: e.logs ?? !1
2093
2129
  });
2094
2130
  }
@@ -2109,7 +2145,7 @@ class $t {
2109
2145
  }
2110
2146
  };
2111
2147
  if (e.type === "MAYA") {
2112
- const c = await ye(() => this.walletService.mayaSession({ id: e.sessionId }), {
2148
+ const c = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
2113
2149
  until: (w) => {
2114
2150
  var p;
2115
2151
  return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
@@ -2126,7 +2162,7 @@ class $t {
2126
2162
  message: "Forbidden"
2127
2163
  }
2128
2164
  };
2129
- const l = await ye(() => this.authService.createSession(e), {
2165
+ const l = await ge(() => this.authService.createSession(e), {
2130
2166
  until: (w) => w.ok,
2131
2167
  interval: 1e3,
2132
2168
  maxAttempt: 5
@@ -2137,8 +2173,8 @@ class $t {
2137
2173
  this.storageKey,
2138
2174
  JSON.stringify({
2139
2175
  ...l.data,
2140
- accessTokenExpiresAt: B(f, 8).getTime(),
2141
- refreshTokenExpiresAt: F(q(f, 30), 2).getTime()
2176
+ accessTokenExpiresAt: q(f, 8).getTime(),
2177
+ refreshTokenExpiresAt: F(B(f, 30), 2).getTime()
2142
2178
  })
2143
2179
  ), {
2144
2180
  ok: !0,
@@ -2153,8 +2189,8 @@ class $t {
2153
2189
  this.storageKey,
2154
2190
  JSON.stringify({
2155
2191
  ...s.data,
2156
- accessTokenExpiresAt: B(c, 8).getTime(),
2157
- refreshTokenExpiresAt: F(q(c, 30), 2).getTime()
2192
+ accessTokenExpiresAt: q(c, 8).getTime(),
2193
+ refreshTokenExpiresAt: F(B(c, 30), 2).getTime()
2158
2194
  })
2159
2195
  ), {
2160
2196
  ok: !0,
@@ -2177,8 +2213,8 @@ class $t {
2177
2213
  this.storageKey,
2178
2214
  JSON.stringify({
2179
2215
  ...t.data,
2180
- accessTokenExpiresAt: B(r, 8).getTime(),
2181
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2216
+ accessTokenExpiresAt: q(r, 8).getTime(),
2217
+ refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2182
2218
  })
2183
2219
  ), {
2184
2220
  ok: !0,
@@ -2193,8 +2229,8 @@ class $t {
2193
2229
  this.storageKey,
2194
2230
  JSON.stringify({
2195
2231
  ...t.data,
2196
- accessTokenExpiresAt: B(r, 8).getTime(),
2197
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2232
+ accessTokenExpiresAt: q(r, 8).getTime(),
2233
+ refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2198
2234
  })
2199
2235
  ), { ok: !0 };
2200
2236
  } else
@@ -2207,7 +2243,7 @@ class $t {
2207
2243
  data: null
2208
2244
  };
2209
2245
  if (this.refreshing)
2210
- return await Ce(1e3), await this.get();
2246
+ return await ke(1e3), await this.get();
2211
2247
  const e = window.localStorage.getItem(this.storageKey);
2212
2248
  if (!e)
2213
2249
  return {
@@ -2217,7 +2253,7 @@ class $t {
2217
2253
  try {
2218
2254
  let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2219
2255
  const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2220
- if (we(r, s))
2256
+ if (ye(r, s))
2221
2257
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2222
2258
  ok: !1,
2223
2259
  error: {
@@ -2225,7 +2261,7 @@ class $t {
2225
2261
  message: "Session expired."
2226
2262
  }
2227
2263
  };
2228
- if (we(r, a)) {
2264
+ if (ye(r, a)) {
2229
2265
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2230
2266
  const c = await this.authService.refreshSession(t.refreshToken);
2231
2267
  if (this.refreshing = !1, !c.ok)
@@ -2239,8 +2275,8 @@ class $t {
2239
2275
  this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2240
2276
  ...t,
2241
2277
  ...c.data,
2242
- accessTokenExpiresAt: B(r, 8).getTime(),
2243
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2278
+ accessTokenExpiresAt: q(r, 8).getTime(),
2279
+ refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2244
2280
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2245
2281
  }
2246
2282
  return {
@@ -2280,10 +2316,10 @@ class $t {
2280
2316
  return typeof window > "u";
2281
2317
  }
2282
2318
  }
2283
- function g(o) {
2319
+ function g(n) {
2284
2320
  const e = {};
2285
- for (const t in o) {
2286
- const r = o[t];
2321
+ for (const t in n) {
2322
+ const r = n[t];
2287
2323
  if (r !== null && r !== void 0) {
2288
2324
  if (H(r)) {
2289
2325
  e[t] = g(r);
@@ -2298,21 +2334,21 @@ function g(o) {
2298
2334
  }
2299
2335
  return e;
2300
2336
  }
2301
- function n(o, e) {
2302
- if (typeof o == "number" && !Number.isNaN(o))
2303
- return o;
2304
- if (typeof o == "string") {
2305
- 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);
2306
2342
  if (!Number.isNaN(t))
2307
2343
  return t;
2308
2344
  }
2309
2345
  return e;
2310
2346
  }
2311
- class xt {
2347
+ class Ot {
2312
2348
  constructor(e) {
2313
- d(this, "staticService");
2349
+ m(this, "staticService");
2314
2350
  const t = (e == null ? void 0 : e.environment) === "development";
2315
- this.staticService = new Rt({
2351
+ this.staticService = new Dt({
2316
2352
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2317
2353
  });
2318
2354
  }
@@ -2355,10 +2391,10 @@ class xt {
2355
2391
  return g(t);
2356
2392
  }
2357
2393
  platform(e) {
2358
- 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, de, me, 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;
2359
2395
  return {
2360
2396
  paymentSettings: {
2361
- minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
2397
+ minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2362
2398
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2363
2399
  depositGateway: {
2364
2400
  bank: {
@@ -2366,32 +2402,32 @@ class xt {
2366
2402
  iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2367
2403
  webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2368
2404
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2369
- minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2370
- maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2405
+ minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2406
+ maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2371
2407
  },
2372
2408
  gcash: {
2373
2409
  androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2374
2410
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2375
2411
  webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2376
2412
  mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
2377
- minimumAmount: n((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2378
- maximumAmount: n((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2413
+ minimumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2414
+ maximumAmount: i((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2379
2415
  },
2380
2416
  maya: {
2381
2417
  androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2382
- iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
2383
- 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,
2384
2420
  mobileWebEnabled: ((b = e.mayaDepositGatewaySettings) == null ? void 0 : b.mobileWebEnabled) ?? !1,
2385
- minimumAmount: n((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2386
- maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2421
+ minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2422
+ maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2387
2423
  },
2388
2424
  mayaApp: {
2389
2425
  androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2390
2426
  iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
2391
2427
  webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
2392
2428
  mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
2393
- minimumAmount: n((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2394
- maximumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2429
+ minimumAmount: i((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2430
+ maximumAmount: i((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2395
2431
  }
2396
2432
  },
2397
2433
  withdrawalGateway: {
@@ -2399,44 +2435,44 @@ class xt {
2399
2435
  androidEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.androidEnabled) ?? !1,
2400
2436
  iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2401
2437
  webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2402
- mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
2403
- minimumAmount: n((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2404
- maximumAmount: n((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)
2405
2441
  },
2406
2442
  gcash: {
2407
- androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2408
- iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
2409
- webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
2410
- mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
2411
- minimumAmount: n((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2412
- maximumAmount: n(
2413
- (re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
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),
2448
+ maximumAmount: i(
2449
+ (ae = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount,
2414
2450
  1e6
2415
2451
  )
2416
2452
  },
2417
2453
  maya: {
2418
- androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
2454
+ androidEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2419
2455
  iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2420
- webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2421
- mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2422
- minimumAmount: n((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2423
- maximumAmount: n((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)
2424
2460
  },
2425
2461
  mayaApp: {
2426
2462
  androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
2427
- iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
2428
- webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2429
- mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2430
- minimumAmount: n((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2431
- maximumAmount: n(
2432
- (fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.maximumAmount,
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),
2467
+ maximumAmount: i(
2468
+ (he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.maximumAmount,
2433
2469
  1e6
2434
2470
  )
2435
2471
  }
2436
2472
  }
2437
2473
  },
2438
2474
  pointsClubSettings: {
2439
- multiplier: n((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2475
+ multiplier: i((we = e.pointsClubSettings) == null ? void 0 : we.multiplier, 0)
2440
2476
  }
2441
2477
  };
2442
2478
  }
@@ -2465,7 +2501,7 @@ class xt {
2465
2501
  wallet(e) {
2466
2502
  return {
2467
2503
  id: e.id,
2468
- balance: n(e.balance, 0),
2504
+ balance: i(e.balance, 0),
2469
2505
  currency: e.currency,
2470
2506
  dateTimeCreated: new Date(e.dateTimeCreated),
2471
2507
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2492,7 +2528,7 @@ class xt {
2492
2528
  mobileNumberVerification: e.mobileNumberVerification ?? !1,
2493
2529
  personalInformation: e.personalInformation ?? !1,
2494
2530
  transactionPassword: e.transactionPassword ?? !1,
2495
- completionPercentage: n(e.completionPercentage, 0)
2531
+ completionPercentage: i(e.completionPercentage, 0)
2496
2532
  };
2497
2533
  }
2498
2534
  announcement(e) {
@@ -2514,9 +2550,9 @@ class xt {
2514
2550
  type: e.type,
2515
2551
  bank: e.bank,
2516
2552
  status: e.status,
2517
- amount: n(e.amount, 0),
2518
- netAmount: n(e.netAmount, 0),
2519
- fee: n(e.fee, 0),
2553
+ amount: i(e.amount, 0),
2554
+ netAmount: i(e.netAmount, 0),
2555
+ fee: i(e.fee, 0),
2520
2556
  reference: e.reference ?? void 0,
2521
2557
  withdrawalNumber: e.withdrawalNumber,
2522
2558
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -2540,9 +2576,9 @@ class xt {
2540
2576
  id: e.id,
2541
2577
  type: e.type,
2542
2578
  status: e.status,
2543
- amount: n(e.amount, 0),
2544
- fee: n(e.fee, 0),
2545
- netAmount: n(e.netAmount, 0),
2579
+ amount: i(e.amount, 0),
2580
+ fee: i(e.fee, 0),
2581
+ netAmount: i(e.netAmount, 0),
2546
2582
  reference: e.reference ?? void 0,
2547
2583
  depositNumber: e.depositNumber,
2548
2584
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2554,13 +2590,13 @@ class xt {
2554
2590
  var r;
2555
2591
  const t = {
2556
2592
  id: e.id,
2557
- bet: n(e.bet, 0),
2558
- payout: n(e.payout, 0),
2593
+ bet: i(e.bet, 0),
2594
+ payout: i(e.payout, 0),
2559
2595
  status: e.status,
2560
- jackpotContribution: n(e.jackpotContribution, 0),
2561
- jackpotPayout: n(e.jackpotPayout, 0),
2562
- winloss: n(e.winloss),
2563
- validBet: n(e.validBet, 0),
2596
+ jackpotContribution: i(e.jackpotContribution, 0),
2597
+ jackpotPayout: i(e.jackpotPayout, 0),
2598
+ winloss: i(e.winloss),
2599
+ validBet: i(e.validBet, 0),
2564
2600
  vendorRoundId: e.vendorRoundId ?? void 0,
2565
2601
  game: {
2566
2602
  name: e.game.name,
@@ -2591,9 +2627,9 @@ class xt {
2591
2627
  images: this.staticService.gameThumbnails(e.game),
2592
2628
  provider: e.game.provider
2593
2629
  },
2594
- bet: n(e.bet, 0),
2595
- payout: n(e.payout, 0),
2596
- validBet: n(e.validBet, 0),
2630
+ bet: i(e.bet, 0),
2631
+ payout: i(e.payout, 0),
2632
+ validBet: i(e.validBet, 0),
2597
2633
  dateTimeSettled: new Date(e.dateTimeSettled),
2598
2634
  dateTimeCreated: new Date(e.dateTimeCreated)
2599
2635
  };
@@ -2602,9 +2638,9 @@ class xt {
2602
2638
  const t = {
2603
2639
  id: e.id,
2604
2640
  type: e.type,
2605
- amount: n(e.amount, 0),
2641
+ amount: i(e.amount, 0),
2606
2642
  content: e.content ?? void 0,
2607
- currentBalance: n(e.currentBalance, 0),
2643
+ currentBalance: i(e.currentBalance, 0),
2608
2644
  referenceNumber: e.referenceNumber,
2609
2645
  dateTimeCreated: new Date(e.dateTimeCreated)
2610
2646
  };
@@ -2639,8 +2675,8 @@ class xt {
2639
2675
  status: e.status,
2640
2676
  description: e.description,
2641
2677
  banner: this.file(e.banner),
2642
- maximumBonusAmount: n(e.maximumBonusAmount),
2643
- minimumBonusAmount: n(e.minimumBonusAmount),
2678
+ maximumBonusAmount: i(e.maximumBonusAmount),
2679
+ minimumBonusAmount: i(e.minimumBonusAmount),
2644
2680
  activationEndDateTime: new Date(e.activationEndDateTime),
2645
2681
  activationStartDateTime: new Date(e.activationStartDateTime),
2646
2682
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2660,7 +2696,7 @@ class xt {
2660
2696
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
2661
2697
  turnoverContributionPercentagePerGameProvider: Object.entries(
2662
2698
  e.turnoverContributionPercentagePerGameProvider
2663
- ).reduce((r, [a, s]) => (r[a] = n(s, 0), r), {})
2699
+ ).reduce((r, [a, s]) => (r[a] = i(s, 0), r), {})
2664
2700
  };
2665
2701
  }
2666
2702
  bonus(e) {
@@ -2670,22 +2706,22 @@ class xt {
2670
2706
  deposit: e.deposit ? {
2671
2707
  type: e.deposit.type,
2672
2708
  status: e.deposit.status,
2673
- fee: n(e.deposit.fee, 0),
2674
- amount: n(e.deposit.amount, 0),
2675
- netAmount: n(e.deposit.netAmount, 0),
2709
+ fee: i(e.deposit.fee, 0),
2710
+ amount: i(e.deposit.amount, 0),
2711
+ netAmount: i(e.deposit.netAmount, 0),
2676
2712
  reference: e.deposit.reference ?? void 0,
2677
2713
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
2678
2714
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
2679
2715
  } : void 0,
2680
- balance: n(e.balance, 0),
2681
- amount: n(e.amount, 0),
2716
+ balance: i(e.balance, 0),
2717
+ amount: i(e.amount, 0),
2682
2718
  expiration: new Date(e.expiration),
2683
- turnoverRequirement: n(e.turnoverRequirement, 0),
2684
- currentTurnoverRequirementContribution: n(
2719
+ turnoverRequirement: i(e.turnoverRequirement, 0),
2720
+ currentTurnoverRequirementContribution: i(
2685
2721
  e.currentTurnoverRequirementContribution,
2686
2722
  0
2687
2723
  ),
2688
- currentTurnoverRequirementContributionPercentage: n(
2724
+ currentTurnoverRequirementContributionPercentage: i(
2689
2725
  e.currentTurnoverRequirementContributionPercentage,
2690
2726
  0
2691
2727
  ),
@@ -2697,7 +2733,7 @@ class xt {
2697
2733
  cashbackBonus(e) {
2698
2734
  return {
2699
2735
  id: e.id,
2700
- balance: n(e.balance, 0),
2736
+ balance: i(e.balance, 0),
2701
2737
  cashback: this.cashback(e.cashback),
2702
2738
  dateTimeCreated: new Date(e.dateTimeCreated),
2703
2739
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2715,7 +2751,7 @@ class xt {
2715
2751
  pointsWallet(e) {
2716
2752
  return {
2717
2753
  id: e.id,
2718
- points: n(e.points, 0),
2754
+ points: i(e.points, 0),
2719
2755
  account: e.account,
2720
2756
  dateTimeCreated: new Date(e.dateTimeCreated)
2721
2757
  };
@@ -2724,8 +2760,8 @@ class xt {
2724
2760
  return {
2725
2761
  id: e.id,
2726
2762
  type: e.type,
2727
- amount: n(e.amount, 0),
2728
- balance: n(e.balance, 0),
2763
+ amount: i(e.amount, 0),
2764
+ balance: i(e.balance, 0),
2729
2765
  dateTimeCreated: new Date(e.dateTimeCreated)
2730
2766
  };
2731
2767
  }
@@ -2733,7 +2769,7 @@ class xt {
2733
2769
  const t = {
2734
2770
  id: e.id,
2735
2771
  type: e.type,
2736
- amount: e.amount ? n(e.amount, 0) : void 0,
2772
+ amount: e.amount ? i(e.amount, 0) : void 0,
2737
2773
  domain: e.domain ?? void 0,
2738
2774
  details: e.details,
2739
2775
  dateTimeCreated: new Date(e.dateTimeCreated)
@@ -2746,18 +2782,18 @@ class xt {
2746
2782
  level: e.level,
2747
2783
  upline: e.upline,
2748
2784
  downline: e.downline,
2749
- turnover: n(e.turnover, 0),
2750
- commision: n(e.commision, 0),
2785
+ turnover: i(e.turnover, 0),
2786
+ commision: i(e.commision, 0),
2751
2787
  dateTimeCreated: new Date(e.dateTimeCreated)
2752
2788
  };
2753
2789
  }
2754
2790
  referralCommission(e) {
2755
2791
  return {
2756
2792
  id: e.id,
2757
- commission: n(e.commission, 0),
2758
- level1Commission: n(e.level1Commission, 0),
2759
- level2Commission: n(e.level2Commission, 0),
2760
- level3Commission: n(e.level3Commission, 0),
2793
+ commission: i(e.commission, 0),
2794
+ level1Commission: i(e.level1Commission, 0),
2795
+ level2Commission: i(e.level2Commission, 0),
2796
+ level3Commission: i(e.level3Commission, 0),
2761
2797
  referralsCount: e.referralsCount,
2762
2798
  level1ReferralsCount: e.level1ReferralsCount,
2763
2799
  level2ReferralsCount: e.level2ReferralsCount,
@@ -2768,19 +2804,19 @@ class xt {
2768
2804
  };
2769
2805
  }
2770
2806
  }
2771
- class qt {
2807
+ class Lt {
2772
2808
  constructor(e) {
2773
- d(this, "cmsPortalService");
2774
- d(this, "authService");
2775
- d(this, "gameService");
2776
- d(this, "fileService");
2777
- d(this, "walletService");
2778
- d(this, "accountService");
2779
- d(this, "reportService");
2780
- d(this, "portalService");
2781
- d(this, "sessionManager");
2782
- d(this, "transformer");
2783
- d(this, "logger");
2809
+ m(this, "cmsPortalService");
2810
+ m(this, "authService");
2811
+ m(this, "gameService");
2812
+ m(this, "fileService");
2813
+ m(this, "walletService");
2814
+ m(this, "accountService");
2815
+ m(this, "reportService");
2816
+ m(this, "portalService");
2817
+ m(this, "sessionManager");
2818
+ m(this, "transformer");
2819
+ m(this, "logger");
2784
2820
  const {
2785
2821
  /**/
2786
2822
  site: t,
@@ -2789,13 +2825,13 @@ class qt {
2789
2825
  environment: s,
2790
2826
  logs: c
2791
2827
  } = e, u = s === "production";
2792
- this.transformer = new xt({
2828
+ this.transformer = new Ot({
2793
2829
  environment: s
2794
- }), this.logger = new Se({
2830
+ }), this.logger = new Ce({
2795
2831
  enabled: c ?? !1
2796
2832
  });
2797
- 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 kt({
2798
- 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,
2799
2835
  site: t,
2800
2836
  platform: r
2801
2837
  }), b = {
@@ -2806,15 +2842,15 @@ class qt {
2806
2842
  "Platform-Code": a
2807
2843
  }
2808
2844
  }
2809
- }, I = new _t(new U(M, b)), D = new Tt(new U(v, b)), S = new Nt(new U(f, b)), P = new St(new U(p, b)), $ = new Mt(new U(w, b)), x = new vt(new U(_, b)), C = new Ct({
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({
2810
2846
  url: l,
2811
2847
  platform: a
2812
- }), G = new $t({
2848
+ }), G = new Ut({
2813
2849
  logs: c,
2814
2850
  authService: C,
2815
2851
  walletService: S
2816
2852
  });
2817
- 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;
2818
2854
  }
2819
2855
  get authMiddleware() {
2820
2856
  return async (e) => {
@@ -2871,7 +2907,7 @@ class qt {
2871
2907
  await this.sessionManager.destroy();
2872
2908
  }
2873
2909
  watchSession(e) {
2874
- const t = It(e.interval ?? 3e4, 3e4, 6e4);
2910
+ const t = $t(e.interval ?? 3e4, 3e4, 6e4);
2875
2911
  let r = null;
2876
2912
  const a = () => setTimeout(async () => {
2877
2913
  await this.sessionManager.verify() || await e.onInvalid(), r = a();
@@ -3411,7 +3447,7 @@ class qt {
3411
3447
  /**/
3412
3448
  provider: a,
3413
3449
  reference: s
3414
- } = r.data, c = Ut(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 } });
3415
3451
  return c.ok ? { ok: !0, data: { id: t } } : c;
3416
3452
  }
3417
3453
  async endGameSession(e) {
@@ -3530,8 +3566,22 @@ class qt {
3530
3566
  data: e.data ? this.transformer.transform.referralCommission(e.data) : null
3531
3567
  } : e;
3532
3568
  }
3569
+ async uplinesByName(e) {
3570
+ const t = await this.reportService.uplinesByName(e);
3571
+ return t.ok ? {
3572
+ ok: !0,
3573
+ data: t.data.map(this.transformer.transform.referral)
3574
+ } : t;
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
+ }
3533
3583
  }
3534
- const Gt = [
3584
+ const Wt = [
3535
3585
  /**/
3536
3586
  "RTG",
3537
3587
  "DARWIN",
@@ -3541,12 +3591,12 @@ const Gt = [
3541
3591
  "EVOLUTION_NETENT",
3542
3592
  "EVOLUTION_REDTIGER"
3543
3593
  ];
3544
- function Ut(o) {
3545
- return Gt.some((e) => e === o);
3594
+ function Bt(n) {
3595
+ return Wt.some((e) => e === n);
3546
3596
  }
3547
3597
  export {
3548
- Lt as ObjectId,
3598
+ Yt as ObjectId,
3549
3599
  T as ObjectType,
3550
- qt as Sdk
3600
+ Lt as Sdk
3551
3601
  };
3552
3602
  //# sourceMappingURL=index.mjs.map