@opexa/portal-sdk 0.0.77 → 0.0.79

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 = (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);
4
4
  import { ObjectId as k } from "@opexa/object-id";
5
- import { ObjectId as Lt } from "@opexa/object-id";
5
+ import { ObjectId as Ht } from "@opexa/object-id";
6
6
  const T = {
7
7
  Account: 8,
8
8
  Deposit: 9,
@@ -13,7 +13,7 @@ const T = {
13
13
  GameSession: 204,
14
14
  MayaSession: 230
15
15
  };
16
- function i(o, ...e) {
16
+ function n(o, ...e) {
17
17
  let t = "";
18
18
  for (const [r, a] of o.entries()) {
19
19
  const s = e.at(r) ?? "";
@@ -21,14 +21,14 @@ function i(o, ...e) {
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const L = i`
24
+ const L = n`
25
25
  fragment FileFragment on File {
26
26
  id
27
27
  url
28
28
  status
29
29
  dateTimeCreated
30
30
  }
31
- `, _e = i`
31
+ `, ve = n`
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 = n`
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
+ `, Re = n`
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
+ `, Ne = n`
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 = n`
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 = n`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -108,7 +108,7 @@ const L = i`
108
108
  }
109
109
  }
110
110
  `, ge = {
111
- current: i`
111
+ current: n`
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: n`
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
+ }, be = n`
142
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
143
143
  createGameSession(input: $input) {
144
144
  ... on GameDoesNotExistError {
@@ -147,12 +147,12 @@ const L = i`
147
147
  }
148
148
  }
149
149
  `, Ae = {
150
- current: i`
150
+ current: n`
151
151
  mutation EndGameSession($input: EndGameSessionInput!) {
152
152
  endGameSession(input: $input)
153
153
  }
154
154
  `,
155
- legacy: i`
155
+ legacy: n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
353
353
  query RemainingDailyWithdrawalsCount {
354
354
  remainingDailyWithdrawalsCount
355
355
  }
356
- `, We = i`
356
+ `, Be = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
505
505
  query DepositsCount {
506
506
  member {
507
507
  depositsCount
508
508
  }
509
509
  }
510
- `, He = i`
510
+ `, Ye = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
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
- `, Ce = i`
632
+ `, Ee = n`
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
- ${Ce}
649
+ `, ze = n`
650
+ ${Ee}
651
651
 
652
652
  query Cashbacks {
653
653
  cashbacks {
654
654
  ...CashbackFragment
655
655
  }
656
656
  }
657
- `, ze = i`
657
+ `, Xe = n`
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
- ${Ce}
686
+ `, Ze = n`
687
+ ${Ee}
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 = n`
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
+ n`
710
710
  query Member {
711
711
  member {
712
712
  dateTimeLastActive
713
713
  }
714
714
  }
715
715
  `;
716
- const et = i`
716
+ const tt = n`
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 = n`
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 = n`
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
+ `, ot = n`
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
+ `, nt = n`
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 = n`
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 = n`
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 = n`
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 = n`
906
906
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
907
907
  deleteMemberAccount(input: $input)
908
908
  }
909
- `, dt = i`
909
+ `, dt = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
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 = n`
1036
1036
  mutation ValidateMayaSession {
1037
1037
  validateMayaSession: validMayaSession
1038
1038
  }
1039
- `, yt = i`
1039
+ `, gt = n`
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 = n`
1065
1065
  query ReferralCode {
1066
1066
  referralCode
1067
1067
  }
1068
- `, bt = i`
1068
+ `, At = n`
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
+ `, Se = n`
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 = n`
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,43 +1111,37 @@ const et = i`
1107
1111
  }
1108
1112
  }
1109
1113
  }
1110
- `, Ct = i`
1111
- query ReferralCommissions(
1112
- $after: Cursor
1113
- $first: Int
1114
- $filter: MemberReferralCommissionFilterInput
1115
- ) {
1114
+
1115
+ ${Se}
1116
+ `, St = n`
1117
+ query UplinesByName($search: String!, $first: Int) {
1118
+ uplinesByName(search: $search, first: $first) {
1119
+ ...ReferralFragment
1120
+ }
1121
+ }
1122
+
1123
+ ${Se}
1124
+ `, Ct = n`
1125
+ query ReferralCommission {
1116
1126
  member {
1117
- referralCommissions(after: $after, first: $first, filter: $filter) {
1118
- edges {
1119
- cursor
1120
- node {
1121
- ... on ReferralCommission {
1122
- id
1123
- commission
1124
- dateTimeCreated
1125
- dateTimeLastUpdated
1126
- level1Commission
1127
- level1ReferralsCount
1128
- level2Commission
1129
- level2ReferralsCount
1130
- level3Commission
1131
- level3ReferralsCount
1132
- referralCode
1133
- referralsCount
1134
- }
1135
- }
1136
- }
1137
- totalCount
1138
- pageInfo {
1139
- endCursor
1140
- hasNextPage
1141
- }
1127
+ referralCommission {
1128
+ id
1129
+ commission
1130
+ dateTimeCreated
1131
+ dateTimeLastUpdated
1132
+ level1Commission
1133
+ level1ReferralsCount
1134
+ level2Commission
1135
+ level2ReferralsCount
1136
+ level3Commission
1137
+ level3ReferralsCount
1138
+ referralCode
1139
+ referralsCount
1142
1140
  }
1143
1141
  }
1144
1142
  }
1145
1143
  `;
1146
- function m(o) {
1144
+ function d(o) {
1147
1145
  return {
1148
1146
  name: o,
1149
1147
  message: {
@@ -1198,57 +1196,57 @@ function m(o) {
1198
1196
  }[o]
1199
1197
  };
1200
1198
  }
1201
- class Et {
1199
+ class kt {
1202
1200
  constructor(e) {
1203
- d(this, "client");
1201
+ m(this, "client");
1204
1202
  this.client = e;
1205
1203
  }
1206
1204
  /** aka `Query.self` */
1207
1205
  async memberAccount() {
1208
- const e = await this.client.request(et);
1206
+ const e = await this.client.request(tt);
1209
1207
  return e.ok ? {
1210
1208
  ok: !0,
1211
1209
  data: e.data.memberAccount
1212
1210
  } : e;
1213
1211
  }
1214
1212
  async registerMemberAccount(e) {
1215
- const t = await this.client.request(rt, e);
1213
+ const t = await this.client.request(at, e);
1216
1214
  return t.ok ? t.data.registerMemberAccount ? {
1217
1215
  ok: !1,
1218
- error: m(t.data.registerMemberAccount.__typename)
1216
+ error: d(t.data.registerMemberAccount.__typename)
1219
1217
  } : {
1220
1218
  ok: !0
1221
1219
  } : t;
1222
1220
  }
1223
1221
  async registerMemberAccountViaMobile(e) {
1224
- const t = await this.client.request(at, e);
1222
+ const t = await this.client.request(ot, e);
1225
1223
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1226
1224
  ok: !1,
1227
- error: m(t.data.registerMemberAccountViaMobile.__typename)
1225
+ error: d(t.data.registerMemberAccountViaMobile.__typename)
1228
1226
  } : {
1229
1227
  ok: !0
1230
1228
  } : t;
1231
1229
  }
1232
1230
  async registerMemberAccount__next(e) {
1233
- const t = await this.client.request(ot, e);
1231
+ const t = await this.client.request(nt, e);
1234
1232
  return t.ok ? t.data.registerMemberAccount ? {
1235
1233
  ok: !1,
1236
- error: m(t.data.registerMemberAccount.__typename)
1234
+ error: d(t.data.registerMemberAccount.__typename)
1237
1235
  } : {
1238
1236
  ok: !0
1239
1237
  } : t;
1240
1238
  }
1241
1239
  async updateMemberAccount(e) {
1242
- const t = await this.client.request(it, e);
1240
+ const t = await this.client.request(st, e);
1243
1241
  return t.ok ? t.data.updateMemberAccount ? {
1244
1242
  ok: !1,
1245
- error: m(t.data.updateMemberAccount.__typename)
1243
+ error: d(t.data.updateMemberAccount.__typename)
1246
1244
  } : {
1247
1245
  ok: !0
1248
1246
  } : t;
1249
1247
  }
1250
1248
  async deleteMemberAccount(e) {
1251
- const t = await this.client.request(ct, e);
1249
+ const t = await this.client.request(mt, e);
1252
1250
  return t.ok ? t.data.deleteMemberAccount ? {
1253
1251
  ok: !0
1254
1252
  } : {
@@ -1261,28 +1259,28 @@ class Et {
1261
1259
  }
1262
1260
  async resetPassword(e) {
1263
1261
  const t = await this.client.request(
1264
- st,
1262
+ ct,
1265
1263
  e
1266
1264
  );
1267
1265
  return t.ok ? t.data.resetPassword ? {
1268
1266
  ok: !1,
1269
- error: m(t.data.resetPassword.__typename)
1267
+ error: d(t.data.resetPassword.__typename)
1270
1268
  } : {
1271
1269
  ok: !0
1272
1270
  } : t;
1273
1271
  }
1274
1272
  async profileCompletion() {
1275
- const e = await this.client.request(lt);
1273
+ const e = await this.client.request(pt);
1276
1274
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1277
1275
  }
1278
1276
  async platform() {
1279
- return await this.client.request(ft);
1277
+ return await this.client.request(ht);
1280
1278
  }
1281
1279
  async sendVerificationCode(e) {
1282
- const t = await this.client.request(pt, e);
1280
+ const t = await this.client.request(ft, e);
1283
1281
  return t.ok ? t.data.sendVerificationCode ? {
1284
1282
  ok: !1,
1285
- error: m(t.data.sendVerificationCode.__typename)
1283
+ error: d(t.data.sendVerificationCode.__typename)
1286
1284
  } : {
1287
1285
  ok: !0
1288
1286
  } : t;
@@ -1291,31 +1289,31 @@ class Et {
1291
1289
  const t = await this.client.request(dt, e);
1292
1290
  return t.ok ? t.data.verifyMobileNumber ? {
1293
1291
  ok: !1,
1294
- error: m(t.data.verifyMobileNumber.__typename)
1292
+ error: d(t.data.verifyMobileNumber.__typename)
1295
1293
  } : {
1296
1294
  ok: !0
1297
1295
  } : t;
1298
1296
  }
1299
1297
  async createMemberVerification(e) {
1300
- const t = await this.client.request(mt, e);
1298
+ const t = await this.client.request(ut, e);
1301
1299
  return t.ok ? t.data.createMemberVerification ? {
1302
1300
  ok: !1,
1303
- error: m(t.data.createMemberVerification.__typename)
1301
+ error: d(t.data.createMemberVerification.__typename)
1304
1302
  } : {
1305
1303
  ok: !0
1306
1304
  } : t;
1307
1305
  }
1308
1306
  async updateMemberVerification(e) {
1309
- const t = await this.client.request(ut, e);
1307
+ const t = await this.client.request(lt, e);
1310
1308
  return t.ok ? t.data.updateMemberVerification ? {
1311
1309
  ok: !1,
1312
- error: m(t.data.updateMemberVerification.__typename)
1310
+ error: d(t.data.updateMemberVerification.__typename)
1313
1311
  } : {
1314
1312
  ok: !0
1315
1313
  } : t;
1316
1314
  }
1317
1315
  async memberVerification() {
1318
- const e = await this.client.request(tt);
1316
+ const e = await this.client.request(rt);
1319
1317
  return e.ok ? {
1320
1318
  ok: !0,
1321
1319
  data: e.data.memberAccount.verification
@@ -1323,7 +1321,7 @@ class Et {
1323
1321
  }
1324
1322
  async announcements(e) {
1325
1323
  const t = await this.client.request(
1326
- De,
1324
+ Pe,
1327
1325
  e
1328
1326
  );
1329
1327
  return t.ok ? {
@@ -1332,26 +1330,26 @@ class Et {
1332
1330
  } : t;
1333
1331
  }
1334
1332
  async registerMayaMemberAccount(e) {
1335
- const t = await this.client.request(nt, e);
1333
+ const t = await this.client.request(it, e);
1336
1334
  return t.ok ? t.data.registerMayaMemberAccount ? {
1337
1335
  ok: !1,
1338
- error: m(t.data.registerMayaMemberAccount.__typename)
1336
+ error: d(t.data.registerMayaMemberAccount.__typename)
1339
1337
  } : {
1340
1338
  ok: !0
1341
1339
  } : t;
1342
1340
  }
1343
1341
  async referralCode() {
1344
- const e = await this.client.request(gt);
1342
+ const e = await this.client.request(bt);
1345
1343
  return e.ok ? {
1346
1344
  ok: !0,
1347
1345
  data: e.data.referralCode
1348
1346
  } : e;
1349
1347
  }
1350
1348
  async updateReferralCode(e) {
1351
- const t = await this.client.request(bt, e);
1349
+ const t = await this.client.request(At, e);
1352
1350
  return t.ok ? t.data.updateReferralCode ? {
1353
1351
  ok: !1,
1354
- error: m(t.data.updateReferralCode.__typename)
1352
+ error: d(t.data.updateReferralCode.__typename)
1355
1353
  } : {
1356
1354
  ok: !0
1357
1355
  } : t;
@@ -1376,10 +1374,10 @@ const V = {
1376
1374
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1377
1375
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1378
1376
  };
1379
- class St {
1377
+ class Tt {
1380
1378
  constructor(e) {
1381
- d(this, "url");
1382
- d(this, "platform");
1379
+ m(this, "url");
1380
+ m(this, "platform");
1383
1381
  this.url = e.url, this.platform = e.platform;
1384
1382
  }
1385
1383
  get headers() {
@@ -1407,7 +1405,7 @@ class St {
1407
1405
  data: a
1408
1406
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1409
1407
  ok: !1,
1410
- error: m("AccountBlacklisted")
1408
+ error: d("AccountBlacklisted")
1411
1409
  } : {
1412
1410
  ok: !1,
1413
1411
  error: h(r.status)
@@ -1436,7 +1434,7 @@ class St {
1436
1434
  data: a
1437
1435
  } : r.status === 401 || r.status === 403 ? {
1438
1436
  ok: !1,
1439
- error: m("InvalidTokenOrSecretAnswer")
1437
+ error: d("InvalidTokenOrSecretAnswer")
1440
1438
  } : {
1441
1439
  ok: !1,
1442
1440
  error: h(r.status)
@@ -1463,10 +1461,10 @@ class St {
1463
1461
  data: a
1464
1462
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1465
1463
  ok: !1,
1466
- error: m("AccountBlacklisted")
1464
+ error: d("AccountBlacklisted")
1467
1465
  } : r.status === 403 || r.status === 401 ? {
1468
1466
  ok: !1,
1469
- error: m("InvalidToken")
1467
+ error: d("InvalidToken")
1470
1468
  } : {
1471
1469
  ok: !1,
1472
1470
  error: h(r.status)
@@ -1530,11 +1528,11 @@ class St {
1530
1528
  }
1531
1529
  }
1532
1530
  }
1533
- class kt {
1531
+ class _t {
1534
1532
  constructor(e) {
1535
- d(this, "url");
1536
- d(this, "siteId");
1537
- d(this, "platformId");
1533
+ m(this, "url");
1534
+ m(this, "siteId");
1535
+ m(this, "platformId");
1538
1536
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1539
1537
  }
1540
1538
  async self() {
@@ -1545,22 +1543,22 @@ class kt {
1545
1543
  } : e;
1546
1544
  }
1547
1545
  async games(e) {
1548
- var a, s, c, u, l, f, w, p, _, v, M, R, N, b, I, D, E, P, $, x, S, G, O, W;
1546
+ var a, s, c, u, l, f, w, p, _, v, M, R, N, b, I, D, S, P, $, x, C, G, O, W;
1549
1547
  const t = new URLSearchParams();
1550
- 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 = (E = e == null ? void 0 : e.filter) == null ? void 0 : E.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 = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && G.in && t.set(
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(
1551
1549
  "filter[tags][in]",
1552
- e.filter.tags.in.map((C) => C.toLowerCase()).join(",")
1550
+ e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1553
1551
  ), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
1554
1552
  "filter[tags][nin]",
1555
- e.filter.tags.notIn.map((C) => C.toLowerCase()).join(",")
1553
+ e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
1556
1554
  );
1557
1555
  const r = await this.getJson("/games", t);
1558
1556
  return r.ok ? {
1559
1557
  ok: !0,
1560
1558
  data: {
1561
- edges: r.data.data.map((C) => ({
1562
- node: C,
1563
- cursor: C.cursor
1559
+ edges: r.data.data.map((E) => ({
1560
+ node: E,
1561
+ cursor: E.cursor
1564
1562
  })),
1565
1563
  totalCount: r.data.totalCount ?? 0,
1566
1564
  pageInfo: {
@@ -1608,31 +1606,31 @@ class kt {
1608
1606
  }
1609
1607
  }
1610
1608
  }
1611
- class Tt {
1609
+ class vt {
1612
1610
  constructor(e) {
1613
- d(this, "client");
1611
+ m(this, "client");
1614
1612
  this.client = e;
1615
1613
  }
1616
1614
  async file(e) {
1617
- const t = await this.client.request(_e, e);
1615
+ const t = await this.client.request(ve, e);
1618
1616
  return t.ok ? {
1619
1617
  ok: !0,
1620
1618
  data: t.data.node
1621
1619
  } : t;
1622
1620
  }
1623
1621
  async uploadPrivateImageFile(e) {
1624
- const t = await this.client.upload(ve, e);
1622
+ const t = await this.client.upload(Me, e);
1625
1623
  return t.ok ? t.data.uploadPrivateImageFile ? {
1626
1624
  ok: !1,
1627
- error: m(t.data.uploadPrivateImageFile.__typename)
1625
+ error: d(t.data.uploadPrivateImageFile.__typename)
1628
1626
  } : {
1629
1627
  ok: !0
1630
1628
  } : t;
1631
1629
  }
1632
1630
  }
1633
- class _t {
1631
+ class Mt {
1634
1632
  constructor(e) {
1635
- d(this, "client");
1633
+ m(this, "client");
1636
1634
  this.client = e;
1637
1635
  }
1638
1636
  async gameSession(e) {
@@ -1649,7 +1647,7 @@ class _t {
1649
1647
  const t = await this.client.request(be, e);
1650
1648
  return t.ok ? t.data.createGameSession ? {
1651
1649
  ok: !1,
1652
- error: m(t.data.createGameSession.__typename)
1650
+ error: d(t.data.createGameSession.__typename)
1653
1651
  } : {
1654
1652
  ok: !0
1655
1653
  } : t;
@@ -1667,79 +1665,86 @@ class _t {
1667
1665
  } : t;
1668
1666
  }
1669
1667
  }
1670
- class vt {
1668
+ class Rt {
1671
1669
  constructor(e) {
1672
- d(this, "client");
1670
+ m(this, "client");
1673
1671
  this.client = e;
1674
1672
  }
1675
1673
  async latestBetRecords() {
1676
- const e = await this.client.request(Ye);
1674
+ const e = await this.client.request(je);
1677
1675
  return e.ok ? {
1678
1676
  ok: !0,
1679
1677
  data: e.data.latestBetRecords
1680
1678
  } : e;
1681
1679
  }
1682
1680
  }
1683
- class Mt {
1681
+ class Nt {
1684
1682
  constructor(e) {
1685
- d(this, "client");
1683
+ m(this, "client");
1686
1684
  this.client = e;
1687
1685
  }
1688
1686
  async betRecords(e) {
1689
1687
  const t = await this.client.request(
1690
- He,
1688
+ Ye,
1691
1689
  e
1692
1690
  );
1693
1691
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1694
1692
  }
1695
1693
  async transactionRecords(e) {
1696
- const t = await this.client.request(je, e);
1694
+ const t = await this.client.request(Qe, e);
1697
1695
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1698
1696
  }
1699
1697
  async withdrawalRecords(e) {
1700
1698
  const t = await this.client.request(
1701
- Pe,
1699
+ $e,
1702
1700
  e
1703
1701
  );
1704
1702
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1705
1703
  }
1706
1704
  async depositRecords(e) {
1707
1705
  const t = await this.client.request(
1708
- We,
1706
+ Be,
1709
1707
  e
1710
1708
  );
1711
1709
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1712
1710
  }
1713
1711
  async depositsCount() {
1714
- const e = await this.client.request(Ve);
1712
+ const e = await this.client.request(He);
1715
1713
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1716
1714
  }
1717
1715
  async pointsWalletTransactions(e) {
1718
- const t = await this.client.request(Ie, e);
1716
+ const t = await this.client.request(De, e);
1719
1717
  return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
1720
1718
  }
1721
1719
  async activityRecords(e) {
1722
1720
  const t = await this.client.request(
1723
- yt,
1721
+ gt,
1724
1722
  e
1725
1723
  );
1726
1724
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1727
1725
  }
1728
1726
  async referrals(e) {
1729
1727
  const t = await this.client.request(
1730
- At,
1728
+ Et,
1731
1729
  e
1732
1730
  );
1733
1731
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
1734
1732
  }
1735
- async referralCommissions(e) {
1736
- const t = await this.client.request(Ct, e);
1737
- return t.ok ? { ok: t.ok, data: t.data.member.referralCommissions } : t;
1733
+ async referralCommission() {
1734
+ const e = await this.client.request(Ct);
1735
+ return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
1736
+ }
1737
+ async uplinesByName(e) {
1738
+ const t = await this.client.request(
1739
+ St,
1740
+ e
1741
+ );
1742
+ return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
1738
1743
  }
1739
1744
  }
1740
- class Rt {
1745
+ class It {
1741
1746
  constructor(e) {
1742
- d(this, "url");
1747
+ m(this, "url");
1743
1748
  this.url = e.url;
1744
1749
  }
1745
1750
  gameThumbnails(e) {
@@ -1749,35 +1754,35 @@ class Rt {
1749
1754
  ];
1750
1755
  }
1751
1756
  }
1752
- class Nt {
1757
+ class Dt {
1753
1758
  constructor(e) {
1754
- d(this, "client");
1759
+ m(this, "client");
1755
1760
  this.client = e;
1756
1761
  }
1757
1762
  async promos() {
1758
- const e = await this.client.request(Qe);
1763
+ const e = await this.client.request(Ke);
1759
1764
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1760
1765
  }
1761
1766
  async cashbacks() {
1762
- const e = await this.client.request(Je);
1767
+ const e = await this.client.request(ze);
1763
1768
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1764
1769
  }
1765
1770
  async availablePromos(e) {
1766
1771
  const t = await this.client.request(
1767
- Ke,
1772
+ Je,
1768
1773
  e
1769
1774
  );
1770
1775
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1771
1776
  }
1772
1777
  async cashbackBonuses() {
1773
- const e = await this.client.request(Xe);
1778
+ const e = await this.client.request(Ze);
1774
1779
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1775
1780
  }
1776
1781
  async claimCashbackBonus(e) {
1777
- const t = await this.client.request(Ze, e);
1782
+ const t = await this.client.request(et, e);
1778
1783
  return t.ok ? t.data.claimCashbackBonus ? {
1779
1784
  ok: !1,
1780
- error: m(t.data.claimCashbackBonus.__typename)
1785
+ error: d(t.data.claimCashbackBonus.__typename)
1781
1786
  } : {
1782
1787
  ok: !0
1783
1788
  } : {
@@ -1786,16 +1791,16 @@ class Nt {
1786
1791
  };
1787
1792
  }
1788
1793
  async bonus() {
1789
- const e = await this.client.request(ze);
1794
+ const e = await this.client.request(Xe);
1790
1795
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1791
1796
  }
1792
1797
  async wallet() {
1793
- const e = await this.client.request(Me);
1798
+ const e = await this.client.request(Re);
1794
1799
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1795
1800
  }
1796
1801
  async deposit(e) {
1797
1802
  const t = await this.client.request(
1798
- Le,
1803
+ Ve,
1799
1804
  e
1800
1805
  );
1801
1806
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
@@ -1804,87 +1809,87 @@ class Nt {
1804
1809
  const t = await this.client.request(qe, e);
1805
1810
  return t.ok ? t.data.createGCashDeposit ? {
1806
1811
  ok: !1,
1807
- error: m(t.data.createGCashDeposit.__typename)
1812
+ error: d(t.data.createGCashDeposit.__typename)
1808
1813
  } : {
1809
1814
  ok: !0
1810
1815
  } : t;
1811
1816
  }
1812
1817
  async createMayaDeposit(e) {
1813
- const t = await this.client.request(Be, e);
1818
+ const t = await this.client.request(Fe, e);
1814
1819
  return t.ok ? t.data.createMayaDeposit ? {
1815
1820
  ok: !1,
1816
- error: m(t.data.createMayaDeposit.__typename)
1821
+ error: d(t.data.createMayaDeposit.__typename)
1817
1822
  } : {
1818
1823
  ok: !0
1819
1824
  } : t;
1820
1825
  }
1821
1826
  async createMayaAppDeposit(e) {
1822
- const t = await this.client.request(Fe, e);
1827
+ const t = await this.client.request(Le, e);
1823
1828
  return t.ok ? t.data.createMayaAppDeposit ? {
1824
1829
  ok: !1,
1825
- error: m(t.data.createMayaAppDeposit.__typename)
1830
+ error: d(t.data.createMayaAppDeposit.__typename)
1826
1831
  } : {
1827
1832
  ok: !0
1828
1833
  } : t;
1829
1834
  }
1830
1835
  async createGCashWithdrawal(e) {
1831
- const t = await this.client.request($e, e);
1836
+ const t = await this.client.request(xe, e);
1832
1837
  return t.ok ? t.data.createGCashWithdrawal ? {
1833
1838
  ok: !1,
1834
- error: m(t.data.createGCashWithdrawal.__typename)
1839
+ error: d(t.data.createGCashWithdrawal.__typename)
1835
1840
  } : {
1836
1841
  ok: !0
1837
1842
  } : t;
1838
1843
  }
1839
1844
  async createMayaWithdrawal(e) {
1840
- const t = await this.client.request(xe, e);
1845
+ const t = await this.client.request(Ge, e);
1841
1846
  return t.ok ? t.data.createMayaWithdrawal ? {
1842
1847
  ok: !1,
1843
- error: m(t.data.createMayaWithdrawal.__typename)
1848
+ error: d(t.data.createMayaWithdrawal.__typename)
1844
1849
  } : {
1845
1850
  ok: !0
1846
1851
  } : t;
1847
1852
  }
1848
1853
  async createMayaAppWithdrawal(e) {
1849
- const t = await this.client.request(Ge, e);
1854
+ const t = await this.client.request(Ue, e);
1850
1855
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1851
1856
  ok: !1,
1852
- error: m(t.data.createMayaAppWithdrawal.__typename)
1857
+ error: d(t.data.createMayaAppWithdrawal.__typename)
1853
1858
  } : {
1854
1859
  ok: !0
1855
1860
  } : t;
1856
1861
  }
1857
1862
  async createBankWithdrawal(e) {
1858
- const t = await this.client.request(Ue, e);
1863
+ const t = await this.client.request(Oe, e);
1859
1864
  return t.ok ? t.data.createBankWithdrawal ? {
1860
1865
  ok: !1,
1861
- error: m(t.data.createBankWithdrawal.__typename)
1866
+ error: d(t.data.createBankWithdrawal.__typename)
1862
1867
  } : {
1863
1868
  ok: !0
1864
1869
  } : t;
1865
1870
  }
1866
1871
  async remainingDailyWithdrawalsCount() {
1867
1872
  const e = await this.client.request(
1868
- Oe
1873
+ We
1869
1874
  );
1870
1875
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1871
1876
  }
1872
1877
  async pointsWallet() {
1873
- const e = await this.client.request(Re);
1878
+ const e = await this.client.request(Ne);
1874
1879
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1875
1880
  }
1876
1881
  async pointsToCashConversion(e) {
1877
- const t = await this.client.request(Ne, e);
1882
+ const t = await this.client.request(Ie, e);
1878
1883
  return t.ok ? t.data.pointsToCashConversion ? {
1879
1884
  ok: !1,
1880
- error: m(t.data.pointsToCashConversion.__typename)
1885
+ error: d(t.data.pointsToCashConversion.__typename)
1881
1886
  } : {
1882
1887
  ok: !0
1883
1888
  } : t;
1884
1889
  }
1885
1890
  async mayaSession(e) {
1886
1891
  const t = await this.client.request(
1887
- ht,
1892
+ wt,
1888
1893
  e
1889
1894
  );
1890
1895
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
@@ -1900,7 +1905,7 @@ class Nt {
1900
1905
  const t = await this.client.request(be, e);
1901
1906
  return t.ok ? t.data.createGameSession ? {
1902
1907
  ok: !1,
1903
- error: m(t.data.createGameSession.__typename)
1908
+ error: d(t.data.createGameSession.__typename)
1904
1909
  } : {
1905
1910
  ok: !0
1906
1911
  } : t;
@@ -1922,7 +1927,7 @@ class Nt {
1922
1927
  }
1923
1928
  async validateMayaSession() {
1924
1929
  const e = await this.client.request(
1925
- wt
1930
+ yt
1926
1931
  );
1927
1932
  return e.ok ? e.data.validateMayaSession ? {
1928
1933
  ok: !0
@@ -1935,18 +1940,18 @@ class Nt {
1935
1940
  } : e;
1936
1941
  }
1937
1942
  }
1938
- function It(o, e, t) {
1943
+ function Pt(o, e, t) {
1939
1944
  return o < e ? e : o > t ? t : o;
1940
1945
  }
1941
1946
  function H(o) {
1942
1947
  return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
1943
1948
  }
1944
- function Dt(o) {
1949
+ function $t(o) {
1945
1950
  const e = [];
1946
1951
  function t(r, a = []) {
1947
1952
  for (const s in r) {
1948
1953
  const c = r[s];
1949
- H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Pt(c), [...a, s]) : e.push({
1954
+ H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(xt(c), [...a, s]) : e.push({
1950
1955
  key: [...a, s],
1951
1956
  value: c
1952
1957
  });
@@ -1954,14 +1959,14 @@ function Dt(o) {
1954
1959
  }
1955
1960
  return t(o), e;
1956
1961
  }
1957
- function Pt(o) {
1962
+ function xt(o) {
1958
1963
  return o.reduce((e, t, r) => (e[r] = t, e), {});
1959
1964
  }
1960
1965
  class U {
1961
1966
  constructor(e, t) {
1962
- d(this, "url");
1963
- d(this, "options");
1964
- d(this, "middlewares");
1967
+ m(this, "url");
1968
+ m(this, "options");
1969
+ m(this, "middlewares");
1965
1970
  var a;
1966
1971
  const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
1967
1972
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -2021,7 +2026,7 @@ class U {
2021
2026
  return t;
2022
2027
  }
2023
2028
  createUploadBody(e, t) {
2024
- const r = Dt(t).filter(
2029
+ const r = $t(t).filter(
2025
2030
  (c) => c.value instanceof File || c.value instanceof Blob
2026
2031
  ), a = new FormData();
2027
2032
  a.append(
@@ -2043,9 +2048,9 @@ async function y(o) {
2043
2048
  const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
2044
2049
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2045
2050
  }
2046
- class Ee {
2051
+ class Ce {
2047
2052
  constructor(e) {
2048
- d(this, "enabled");
2053
+ m(this, "enabled");
2049
2054
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
2050
2055
  }
2051
2056
  info(e) {
@@ -2064,18 +2069,18 @@ class Ee {
2064
2069
  function j(o) {
2065
2070
  return new Date(o.getTime());
2066
2071
  }
2067
- function q(o, e) {
2072
+ function B(o, e) {
2068
2073
  const t = j(o);
2069
2074
  return t.setDate(t.getDate() + e), t;
2070
2075
  }
2071
- function B(o, e) {
2076
+ function q(o, e) {
2072
2077
  const t = j(o);
2073
2078
  return t.setMinutes(t.getMinutes() + e), t;
2074
2079
  }
2075
2080
  function we(o, e) {
2076
2081
  return o.getTime() > e.getTime();
2077
2082
  }
2078
- function Se(o) {
2083
+ function ke(o) {
2079
2084
  return new Promise((e) => {
2080
2085
  setTimeout(e, o);
2081
2086
  });
@@ -2089,7 +2094,7 @@ function ye(o, e) {
2089
2094
  } = e;
2090
2095
  async function s(c, u) {
2091
2096
  const l = u ?? a, f = await o(...c);
2092
- return t(f) ? f : l > 1 ? (await Se(r * ((a - l) / 2)), s(c, l - 1)) : f;
2097
+ return t(f) ? f : l > 1 ? (await ke(r * ((a - l) / 2)), s(c, l - 1)) : f;
2093
2098
  }
2094
2099
  return async (...c) => await s(c);
2095
2100
  }
@@ -2097,14 +2102,14 @@ function F(o, e) {
2097
2102
  const t = j(o);
2098
2103
  return t.setMinutes(t.getMinutes() - e), t;
2099
2104
  }
2100
- class $t {
2105
+ class Gt {
2101
2106
  constructor(e) {
2102
- d(this, "logger");
2103
- d(this, "storageKey", "session");
2104
- d(this, "authService");
2105
- d(this, "walletService");
2106
- d(this, "_refreshing", !1);
2107
- this.authService = e.authService, this.walletService = e.walletService, this.logger = new Ee({
2107
+ m(this, "logger");
2108
+ m(this, "storageKey", "session");
2109
+ m(this, "authService");
2110
+ m(this, "walletService");
2111
+ m(this, "_refreshing", !1);
2112
+ this.authService = e.authService, this.walletService = e.walletService, this.logger = new Ce({
2108
2113
  enabled: e.logs ?? !1
2109
2114
  });
2110
2115
  }
@@ -2153,8 +2158,8 @@ class $t {
2153
2158
  this.storageKey,
2154
2159
  JSON.stringify({
2155
2160
  ...l.data,
2156
- accessTokenExpiresAt: B(f, 8).getTime(),
2157
- refreshTokenExpiresAt: F(q(f, 30), 2).getTime()
2161
+ accessTokenExpiresAt: q(f, 8).getTime(),
2162
+ refreshTokenExpiresAt: F(B(f, 30), 2).getTime()
2158
2163
  })
2159
2164
  ), {
2160
2165
  ok: !0,
@@ -2169,8 +2174,8 @@ class $t {
2169
2174
  this.storageKey,
2170
2175
  JSON.stringify({
2171
2176
  ...s.data,
2172
- accessTokenExpiresAt: B(c, 8).getTime(),
2173
- refreshTokenExpiresAt: F(q(c, 30), 2).getTime()
2177
+ accessTokenExpiresAt: q(c, 8).getTime(),
2178
+ refreshTokenExpiresAt: F(B(c, 30), 2).getTime()
2174
2179
  })
2175
2180
  ), {
2176
2181
  ok: !0,
@@ -2193,8 +2198,8 @@ class $t {
2193
2198
  this.storageKey,
2194
2199
  JSON.stringify({
2195
2200
  ...t.data,
2196
- accessTokenExpiresAt: B(r, 8).getTime(),
2197
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2201
+ accessTokenExpiresAt: q(r, 8).getTime(),
2202
+ refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2198
2203
  })
2199
2204
  ), {
2200
2205
  ok: !0,
@@ -2209,8 +2214,8 @@ class $t {
2209
2214
  this.storageKey,
2210
2215
  JSON.stringify({
2211
2216
  ...t.data,
2212
- accessTokenExpiresAt: B(r, 8).getTime(),
2213
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2217
+ accessTokenExpiresAt: q(r, 8).getTime(),
2218
+ refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2214
2219
  })
2215
2220
  ), { ok: !0 };
2216
2221
  } else
@@ -2223,7 +2228,7 @@ class $t {
2223
2228
  data: null
2224
2229
  };
2225
2230
  if (this.refreshing)
2226
- return await Se(1e3), await this.get();
2231
+ return await ke(1e3), await this.get();
2227
2232
  const e = window.localStorage.getItem(this.storageKey);
2228
2233
  if (!e)
2229
2234
  return {
@@ -2255,8 +2260,8 @@ class $t {
2255
2260
  this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2256
2261
  ...t,
2257
2262
  ...c.data,
2258
- accessTokenExpiresAt: B(r, 8).getTime(),
2259
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2263
+ accessTokenExpiresAt: q(r, 8).getTime(),
2264
+ refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2260
2265
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2261
2266
  }
2262
2267
  return {
@@ -2314,7 +2319,7 @@ function g(o) {
2314
2319
  }
2315
2320
  return e;
2316
2321
  }
2317
- function n(o, e) {
2322
+ function i(o, e) {
2318
2323
  if (typeof o == "number" && !Number.isNaN(o))
2319
2324
  return o;
2320
2325
  if (typeof o == "string") {
@@ -2324,11 +2329,11 @@ function n(o, e) {
2324
2329
  }
2325
2330
  return e;
2326
2331
  }
2327
- class xt {
2332
+ class Ut {
2328
2333
  constructor(e) {
2329
- d(this, "staticService");
2334
+ m(this, "staticService");
2330
2335
  const t = (e == null ? void 0 : e.environment) === "development";
2331
- this.staticService = new Rt({
2336
+ this.staticService = new It({
2332
2337
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2333
2338
  });
2334
2339
  }
@@ -2371,10 +2376,10 @@ class xt {
2371
2376
  return g(t);
2372
2377
  }
2373
2378
  platform(e) {
2374
- var t, r, a, s, c, u, l, f, w, p, _, v, M, R, N, b, I, D, E, P, $, x, S, G, O, W, C, Q, K, J, z, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, de, me, ue, le, pe, fe, he;
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;
2375
2380
  return {
2376
2381
  paymentSettings: {
2377
- minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
2382
+ minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2378
2383
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2379
2384
  depositGateway: {
2380
2385
  bank: {
@@ -2382,50 +2387,50 @@ class xt {
2382
2387
  iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2383
2388
  webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2384
2389
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2385
- minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2386
- maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2390
+ minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2391
+ maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2387
2392
  },
2388
2393
  gcash: {
2389
2394
  androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2390
2395
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2391
2396
  webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2392
2397
  mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
2393
- minimumAmount: n((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2394
- maximumAmount: n((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2398
+ minimumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2399
+ maximumAmount: i((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2395
2400
  },
2396
2401
  maya: {
2397
2402
  androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2398
2403
  iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
2399
2404
  webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
2400
2405
  mobileWebEnabled: ((b = e.mayaDepositGatewaySettings) == null ? void 0 : b.mobileWebEnabled) ?? !1,
2401
- minimumAmount: n((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2402
- maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2406
+ minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2407
+ maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2403
2408
  },
2404
2409
  mayaApp: {
2405
- androidEnabled: ((E = e.mayaAppDepositGatewaySettings) == null ? void 0 : E.androidEnabled) ?? !1,
2410
+ androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2406
2411
  iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
2407
2412
  webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
2408
2413
  mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
2409
- minimumAmount: n((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.minimumAmount),
2410
- maximumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2414
+ minimumAmount: i((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2415
+ maximumAmount: i((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2411
2416
  }
2412
2417
  },
2413
2418
  withdrawalGateway: {
2414
2419
  bank: {
2415
2420
  androidEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.androidEnabled) ?? !1,
2416
2421
  iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2417
- webEnabled: ((C = e.bankWithdrawalGatewaySettings) == null ? void 0 : C.webEnabled) ?? !1,
2422
+ webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2418
2423
  mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
2419
- minimumAmount: n((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2420
- maximumAmount: n((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
2424
+ minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2425
+ maximumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
2421
2426
  },
2422
2427
  gcash: {
2423
2428
  androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2424
2429
  iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
2425
2430
  webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
2426
2431
  mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
2427
- minimumAmount: n((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2428
- maximumAmount: n(
2432
+ minimumAmount: i((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2433
+ maximumAmount: i(
2429
2434
  (re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
2430
2435
  1e6
2431
2436
  )
@@ -2435,16 +2440,16 @@ class xt {
2435
2440
  iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2436
2441
  webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2437
2442
  mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2438
- minimumAmount: n((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2439
- maximumAmount: n((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
2443
+ minimumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2444
+ maximumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
2440
2445
  },
2441
2446
  mayaApp: {
2442
- androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
2443
- iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
2447
+ androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
2448
+ iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2444
2449
  webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2445
2450
  mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2446
- minimumAmount: n((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2447
- maximumAmount: n(
2451
+ minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2452
+ maximumAmount: i(
2448
2453
  (fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.maximumAmount,
2449
2454
  1e6
2450
2455
  )
@@ -2452,7 +2457,7 @@ class xt {
2452
2457
  }
2453
2458
  },
2454
2459
  pointsClubSettings: {
2455
- multiplier: n((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2460
+ multiplier: i((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2456
2461
  }
2457
2462
  };
2458
2463
  }
@@ -2481,7 +2486,7 @@ class xt {
2481
2486
  wallet(e) {
2482
2487
  return {
2483
2488
  id: e.id,
2484
- balance: n(e.balance, 0),
2489
+ balance: i(e.balance, 0),
2485
2490
  currency: e.currency,
2486
2491
  dateTimeCreated: new Date(e.dateTimeCreated),
2487
2492
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2508,7 +2513,7 @@ class xt {
2508
2513
  mobileNumberVerification: e.mobileNumberVerification ?? !1,
2509
2514
  personalInformation: e.personalInformation ?? !1,
2510
2515
  transactionPassword: e.transactionPassword ?? !1,
2511
- completionPercentage: n(e.completionPercentage, 0)
2516
+ completionPercentage: i(e.completionPercentage, 0)
2512
2517
  };
2513
2518
  }
2514
2519
  announcement(e) {
@@ -2530,9 +2535,9 @@ class xt {
2530
2535
  type: e.type,
2531
2536
  bank: e.bank,
2532
2537
  status: e.status,
2533
- amount: n(e.amount, 0),
2534
- netAmount: n(e.netAmount, 0),
2535
- fee: n(e.fee, 0),
2538
+ amount: i(e.amount, 0),
2539
+ netAmount: i(e.netAmount, 0),
2540
+ fee: i(e.fee, 0),
2536
2541
  reference: e.reference ?? void 0,
2537
2542
  withdrawalNumber: e.withdrawalNumber,
2538
2543
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -2556,9 +2561,9 @@ class xt {
2556
2561
  id: e.id,
2557
2562
  type: e.type,
2558
2563
  status: e.status,
2559
- amount: n(e.amount, 0),
2560
- fee: n(e.fee, 0),
2561
- netAmount: n(e.netAmount, 0),
2564
+ amount: i(e.amount, 0),
2565
+ fee: i(e.fee, 0),
2566
+ netAmount: i(e.netAmount, 0),
2562
2567
  reference: e.reference ?? void 0,
2563
2568
  depositNumber: e.depositNumber,
2564
2569
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2570,13 +2575,13 @@ class xt {
2570
2575
  var r;
2571
2576
  const t = {
2572
2577
  id: e.id,
2573
- bet: n(e.bet, 0),
2574
- payout: n(e.payout, 0),
2578
+ bet: i(e.bet, 0),
2579
+ payout: i(e.payout, 0),
2575
2580
  status: e.status,
2576
- jackpotContribution: n(e.jackpotContribution, 0),
2577
- jackpotPayout: n(e.jackpotPayout, 0),
2578
- winloss: n(e.winloss),
2579
- validBet: n(e.validBet, 0),
2581
+ jackpotContribution: i(e.jackpotContribution, 0),
2582
+ jackpotPayout: i(e.jackpotPayout, 0),
2583
+ winloss: i(e.winloss),
2584
+ validBet: i(e.validBet, 0),
2580
2585
  vendorRoundId: e.vendorRoundId ?? void 0,
2581
2586
  game: {
2582
2587
  name: e.game.name,
@@ -2607,9 +2612,9 @@ class xt {
2607
2612
  images: this.staticService.gameThumbnails(e.game),
2608
2613
  provider: e.game.provider
2609
2614
  },
2610
- bet: n(e.bet, 0),
2611
- payout: n(e.payout, 0),
2612
- validBet: n(e.validBet, 0),
2615
+ bet: i(e.bet, 0),
2616
+ payout: i(e.payout, 0),
2617
+ validBet: i(e.validBet, 0),
2613
2618
  dateTimeSettled: new Date(e.dateTimeSettled),
2614
2619
  dateTimeCreated: new Date(e.dateTimeCreated)
2615
2620
  };
@@ -2618,9 +2623,9 @@ class xt {
2618
2623
  const t = {
2619
2624
  id: e.id,
2620
2625
  type: e.type,
2621
- amount: n(e.amount, 0),
2626
+ amount: i(e.amount, 0),
2622
2627
  content: e.content ?? void 0,
2623
- currentBalance: n(e.currentBalance, 0),
2628
+ currentBalance: i(e.currentBalance, 0),
2624
2629
  referenceNumber: e.referenceNumber,
2625
2630
  dateTimeCreated: new Date(e.dateTimeCreated)
2626
2631
  };
@@ -2655,8 +2660,8 @@ class xt {
2655
2660
  status: e.status,
2656
2661
  description: e.description,
2657
2662
  banner: this.file(e.banner),
2658
- maximumBonusAmount: n(e.maximumBonusAmount),
2659
- minimumBonusAmount: n(e.minimumBonusAmount),
2663
+ maximumBonusAmount: i(e.maximumBonusAmount),
2664
+ minimumBonusAmount: i(e.minimumBonusAmount),
2660
2665
  activationEndDateTime: new Date(e.activationEndDateTime),
2661
2666
  activationStartDateTime: new Date(e.activationStartDateTime),
2662
2667
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2676,7 +2681,7 @@ class xt {
2676
2681
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
2677
2682
  turnoverContributionPercentagePerGameProvider: Object.entries(
2678
2683
  e.turnoverContributionPercentagePerGameProvider
2679
- ).reduce((r, [a, s]) => (r[a] = n(s, 0), r), {})
2684
+ ).reduce((r, [a, s]) => (r[a] = i(s, 0), r), {})
2680
2685
  };
2681
2686
  }
2682
2687
  bonus(e) {
@@ -2686,22 +2691,22 @@ class xt {
2686
2691
  deposit: e.deposit ? {
2687
2692
  type: e.deposit.type,
2688
2693
  status: e.deposit.status,
2689
- fee: n(e.deposit.fee, 0),
2690
- amount: n(e.deposit.amount, 0),
2691
- netAmount: n(e.deposit.netAmount, 0),
2694
+ fee: i(e.deposit.fee, 0),
2695
+ amount: i(e.deposit.amount, 0),
2696
+ netAmount: i(e.deposit.netAmount, 0),
2692
2697
  reference: e.deposit.reference ?? void 0,
2693
2698
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
2694
2699
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
2695
2700
  } : void 0,
2696
- balance: n(e.balance, 0),
2697
- amount: n(e.amount, 0),
2701
+ balance: i(e.balance, 0),
2702
+ amount: i(e.amount, 0),
2698
2703
  expiration: new Date(e.expiration),
2699
- turnoverRequirement: n(e.turnoverRequirement, 0),
2700
- currentTurnoverRequirementContribution: n(
2704
+ turnoverRequirement: i(e.turnoverRequirement, 0),
2705
+ currentTurnoverRequirementContribution: i(
2701
2706
  e.currentTurnoverRequirementContribution,
2702
2707
  0
2703
2708
  ),
2704
- currentTurnoverRequirementContributionPercentage: n(
2709
+ currentTurnoverRequirementContributionPercentage: i(
2705
2710
  e.currentTurnoverRequirementContributionPercentage,
2706
2711
  0
2707
2712
  ),
@@ -2713,7 +2718,7 @@ class xt {
2713
2718
  cashbackBonus(e) {
2714
2719
  return {
2715
2720
  id: e.id,
2716
- balance: n(e.balance, 0),
2721
+ balance: i(e.balance, 0),
2717
2722
  cashback: this.cashback(e.cashback),
2718
2723
  dateTimeCreated: new Date(e.dateTimeCreated),
2719
2724
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2731,7 +2736,7 @@ class xt {
2731
2736
  pointsWallet(e) {
2732
2737
  return {
2733
2738
  id: e.id,
2734
- points: n(e.points, 0),
2739
+ points: i(e.points, 0),
2735
2740
  account: e.account,
2736
2741
  dateTimeCreated: new Date(e.dateTimeCreated)
2737
2742
  };
@@ -2740,8 +2745,8 @@ class xt {
2740
2745
  return {
2741
2746
  id: e.id,
2742
2747
  type: e.type,
2743
- amount: n(e.amount, 0),
2744
- balance: n(e.balance, 0),
2748
+ amount: i(e.amount, 0),
2749
+ balance: i(e.balance, 0),
2745
2750
  dateTimeCreated: new Date(e.dateTimeCreated)
2746
2751
  };
2747
2752
  }
@@ -2749,7 +2754,7 @@ class xt {
2749
2754
  const t = {
2750
2755
  id: e.id,
2751
2756
  type: e.type,
2752
- amount: e.amount ? n(e.amount, 0) : void 0,
2757
+ amount: e.amount ? i(e.amount, 0) : void 0,
2753
2758
  domain: e.domain ?? void 0,
2754
2759
  details: e.details,
2755
2760
  dateTimeCreated: new Date(e.dateTimeCreated)
@@ -2762,18 +2767,18 @@ class xt {
2762
2767
  level: e.level,
2763
2768
  upline: e.upline,
2764
2769
  downline: e.downline,
2765
- turnover: n(e.turnover, 0),
2766
- commision: n(e.commision, 0),
2770
+ turnover: i(e.turnover, 0),
2771
+ commision: i(e.commision, 0),
2767
2772
  dateTimeCreated: new Date(e.dateTimeCreated)
2768
2773
  };
2769
2774
  }
2770
2775
  referralCommission(e) {
2771
2776
  return {
2772
2777
  id: e.id,
2773
- commission: n(e.commission, 0),
2774
- level1Commission: n(e.level1Commission, 0),
2775
- level2Commission: n(e.level2Commission, 0),
2776
- level3Commission: n(e.level3Commission, 0),
2778
+ commission: i(e.commission, 0),
2779
+ level1Commission: i(e.level1Commission, 0),
2780
+ level2Commission: i(e.level2Commission, 0),
2781
+ level3Commission: i(e.level3Commission, 0),
2777
2782
  referralsCount: e.referralsCount,
2778
2783
  level1ReferralsCount: e.level1ReferralsCount,
2779
2784
  level2ReferralsCount: e.level2ReferralsCount,
@@ -2784,19 +2789,19 @@ class xt {
2784
2789
  };
2785
2790
  }
2786
2791
  }
2787
- class qt {
2792
+ class Ft {
2788
2793
  constructor(e) {
2789
- d(this, "cmsPortalService");
2790
- d(this, "authService");
2791
- d(this, "gameService");
2792
- d(this, "fileService");
2793
- d(this, "walletService");
2794
- d(this, "accountService");
2795
- d(this, "reportService");
2796
- d(this, "portalService");
2797
- d(this, "sessionManager");
2798
- d(this, "transformer");
2799
- d(this, "logger");
2794
+ m(this, "cmsPortalService");
2795
+ m(this, "authService");
2796
+ m(this, "gameService");
2797
+ m(this, "fileService");
2798
+ m(this, "walletService");
2799
+ m(this, "accountService");
2800
+ m(this, "reportService");
2801
+ m(this, "portalService");
2802
+ m(this, "sessionManager");
2803
+ m(this, "transformer");
2804
+ m(this, "logger");
2800
2805
  const {
2801
2806
  /**/
2802
2807
  site: t,
@@ -2805,12 +2810,12 @@ class qt {
2805
2810
  environment: s,
2806
2811
  logs: c
2807
2812
  } = e, u = s === "production";
2808
- this.transformer = new xt({
2813
+ this.transformer = new Ut({
2809
2814
  environment: s
2810
- }), this.logger = new Ee({
2815
+ }), this.logger = new Ce({
2811
2816
  enabled: c ?? !1
2812
2817
  });
2813
- 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({
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({
2814
2819
  url: R,
2815
2820
  site: t,
2816
2821
  platform: r
@@ -2822,15 +2827,15 @@ class qt {
2822
2827
  "Platform-Code": a
2823
2828
  }
2824
2829
  }
2825
- }, I = new _t(new U(M, b)), D = new Tt(new U(v, b)), E = new Nt(new U(f, b)), P = new Et(new U(p, b)), $ = new Mt(new U(w, b)), x = new vt(new U(_, b)), S = new St({
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({
2826
2831
  url: l,
2827
2832
  platform: a
2828
- }), G = new $t({
2833
+ }), G = new Gt({
2829
2834
  logs: c,
2830
- authService: S,
2831
- walletService: E
2835
+ authService: C,
2836
+ walletService: S
2832
2837
  });
2833
- this.authService = S, this.gameService = I, this.fileService = D, this.walletService = E, this.accountService = P, this.reportService = $, this.portalService = x, this.sessionManager = G, this.cmsPortalService = N;
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;
2834
2839
  }
2835
2840
  get authMiddleware() {
2836
2841
  return async (e) => {
@@ -2887,7 +2892,7 @@ class qt {
2887
2892
  await this.sessionManager.destroy();
2888
2893
  }
2889
2894
  watchSession(e) {
2890
- const t = It(e.interval ?? 3e4, 3e4, 6e4);
2895
+ const t = Pt(e.interval ?? 3e4, 3e4, 6e4);
2891
2896
  let r = null;
2892
2897
  const a = () => setTimeout(async () => {
2893
2898
  await this.sessionManager.verify() || await e.onInvalid(), r = a();
@@ -3427,7 +3432,7 @@ class qt {
3427
3432
  /**/
3428
3433
  provider: a,
3429
3434
  reference: s
3430
- } = r.data, c = Ut(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: 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 } });
3431
3436
  return c.ok ? { ok: !0, data: { id: t } } : c;
3432
3437
  }
3433
3438
  async endGameSession(e) {
@@ -3539,23 +3544,22 @@ class qt {
3539
3544
  }
3540
3545
  } : t;
3541
3546
  }
3542
- async referralCommissions(e) {
3543
- const t = await this.reportService.referralCommissions(e);
3547
+ async referralCommission() {
3548
+ const e = await this.reportService.referralCommission();
3549
+ return e.ok ? {
3550
+ ok: !0,
3551
+ data: e.data ? this.transformer.transform.referralCommission(e.data) : null
3552
+ } : e;
3553
+ }
3554
+ async uplinesByName(e) {
3555
+ const t = await this.reportService.uplinesByName(e);
3544
3556
  return t.ok ? {
3545
3557
  ok: !0,
3546
- data: {
3547
- referralCommissions: t.data.edges.map(({ cursor: r, node: a }) => ({
3548
- ...this.transformer.transform.referralCommission(a),
3549
- cursor: r
3550
- })),
3551
- totalCount: t.data.totalCount,
3552
- hasNextPage: t.data.pageInfo.hasNextPage,
3553
- endCursor: t.data.pageInfo.endCursor ?? void 0
3554
- }
3558
+ data: t.data.map(this.transformer.transform.referral)
3555
3559
  } : t;
3556
3560
  }
3557
3561
  }
3558
- const Gt = [
3562
+ const Ot = [
3559
3563
  /**/
3560
3564
  "RTG",
3561
3565
  "DARWIN",
@@ -3565,12 +3569,12 @@ const Gt = [
3565
3569
  "EVOLUTION_NETENT",
3566
3570
  "EVOLUTION_REDTIGER"
3567
3571
  ];
3568
- function Ut(o) {
3569
- return Gt.some((e) => e === o);
3572
+ function Wt(o) {
3573
+ return Ot.some((e) => e === o);
3570
3574
  }
3571
3575
  export {
3572
- Lt as ObjectId,
3576
+ Ht as ObjectId,
3573
3577
  T as ObjectType,
3574
- qt as Sdk
3578
+ Ft as Sdk
3575
3579
  };
3576
3580
  //# sourceMappingURL=index.mjs.map