@opexa/portal-sdk 0.0.28 → 0.0.29

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,6 +1,6 @@
1
1
  var Ce = Object.defineProperty;
2
- var Te = (o, e, t) => e in o ? Ce(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var m = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
2
+ var Te = (n, e, t) => e in n ? Ce(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var m = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as b } from "@opexa/object-id";
5
5
  import { ObjectId as Gt } from "@opexa/object-id";
6
6
  const S = {
@@ -13,23 +13,23 @@ const S = {
13
13
  GameSession: 204,
14
14
  MayaSession: 230
15
15
  };
16
- function n(o, ...e) {
16
+ function i(n, ...e) {
17
17
  let t = "";
18
- for (const [a, r] of o.entries()) {
18
+ for (const [a, r] of n.entries()) {
19
19
  const s = e.at(a) ?? "";
20
20
  t = `${t}${r}${s}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const G = n`
24
+ const x = i`
25
25
  fragment FileFragment on File {
26
26
  id
27
27
  url
28
28
  status
29
29
  dateTimeCreated
30
30
  }
31
- `, ve = n`
32
- ${G}
31
+ `, ve = i`
32
+ ${x}
33
33
 
34
34
  query File($id: ObjectId!) {
35
35
  node(id: $id) {
@@ -38,7 +38,7 @@ const G = n`
38
38
  }
39
39
  }
40
40
  }
41
- `, Ne = n`
41
+ `, Ne = i`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const G = n`
52
52
  }
53
53
  }
54
54
  }
55
- `, Me = n`
55
+ `, Me = i`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const G = n`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, De = n`
65
+ `, De = i`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const G = n`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, Ie = n`
74
+ `, Ie = i`
75
75
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
76
76
  pointsToCashConversion(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,35 @@ const G = n`
79
79
  }
80
80
  }
81
81
  }
82
- `, ye = n`
82
+ `, Re = i`
83
+ query PointsWalletTransactions(
84
+ $first: Int
85
+ $after: Cursor
86
+ $filter: MemberPointsWalletTransactionFilterInput
87
+ ) {
88
+ member {
89
+ pointsWalletTransactions(first: $first, after: $after, filter: $filter) {
90
+ edges {
91
+ cursor
92
+ node {
93
+ ... on PointsWalletTransaction {
94
+ id
95
+ type
96
+ amount
97
+ balance
98
+ dateTimeCreated
99
+ }
100
+ }
101
+ }
102
+ totalCount
103
+ pageInfo {
104
+ hasNextPage
105
+ endCursor
106
+ }
107
+ }
108
+ }
109
+ }
110
+ `, ye = i`
83
111
  query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
84
112
  games(first: $first, after: $after, filter: $filter) {
85
113
  edges {
@@ -100,7 +128,7 @@ const G = n`
100
128
  }
101
129
  }
102
130
  }
103
- `, ge = n`
131
+ `, ge = i`
104
132
  query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
105
133
  gamesByName(first: $first, search: $search, filter: $filter) {
106
134
  ... on Game {
@@ -111,7 +139,7 @@ const G = n`
111
139
  }
112
140
  }
113
141
  }
114
- `, be = n`
142
+ `, be = i`
115
143
  query GameSession($id: ObjectId!) {
116
144
  node(id: $id) {
117
145
  ... on GameSession {
@@ -123,7 +151,7 @@ const G = n`
123
151
  }
124
152
  }
125
153
  }
126
- `, Se = n`
154
+ `, Se = i`
127
155
  mutation CreateGameSession($input: CreateGameSessionInput!) {
128
156
  createGameSession(input: $input) {
129
157
  ... on GameDoesNotExistError {
@@ -131,11 +159,11 @@ const G = n`
131
159
  }
132
160
  }
133
161
  }
134
- `, Re = n`
162
+ `, Pe = i`
135
163
  mutation EndGameSession($input: EndGameSessionInput!) {
136
164
  endGameSession(input: $input)
137
165
  }
138
- `, Pe = n`
166
+ `, xe = i`
139
167
  mutation EndGameSession($input: EndGameSessionInput!) {
140
168
  endGameSession(input: $input) {
141
169
  ... on GameSessionDoesNotExistError {
@@ -149,7 +177,7 @@ const G = n`
149
177
  }
150
178
  }
151
179
  }
152
- `, Ge = n`
180
+ `, Ge = i`
153
181
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
154
182
  announcements(first: $first, after: $after, filter: $filter) {
155
183
  edges {
@@ -175,7 +203,7 @@ const G = n`
175
203
  }
176
204
  }
177
205
  }
178
- `, xe = n`
206
+ `, We = i`
179
207
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
180
208
  member {
181
209
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -242,7 +270,7 @@ const G = n`
242
270
  }
243
271
  }
244
272
  }
245
- `, Be = n`
273
+ `, $e = i`
246
274
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
247
275
  createGCashWithdrawal(input: $input) {
248
276
  ... on AccountNotVerifiedError {
@@ -265,7 +293,7 @@ const G = n`
265
293
  }
266
294
  }
267
295
  }
268
- `, $e = n`
296
+ `, Be = i`
269
297
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
270
298
  createMayaWithdrawal(input: $input) {
271
299
  ... on AccountNotVerifiedError {
@@ -288,7 +316,7 @@ const G = n`
288
316
  }
289
317
  }
290
318
  }
291
- `, We = n`
319
+ `, Ue = i`
292
320
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
293
321
  createMayaAppWithdrawal(input: $input) {
294
322
  ... on AccountNotVerifiedError {
@@ -308,7 +336,7 @@ const G = n`
308
336
  }
309
337
  }
310
338
  }
311
- `, Ue = n`
339
+ `, Oe = i`
312
340
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
313
341
  createBankWithdrawal(input: $input) {
314
342
  ... on MobileNumberNotVerifiedError {
@@ -331,11 +359,11 @@ const G = n`
331
359
  }
332
360
  }
333
361
  }
334
- `, Oe = n`
362
+ `, qe = i`
335
363
  query RemainingDailyWithdrawalsCount {
336
364
  remainingDailyWithdrawalsCount
337
365
  }
338
- `, qe = n`
366
+ `, Fe = i`
339
367
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
340
368
  member {
341
369
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -364,7 +392,7 @@ const G = n`
364
392
  }
365
393
  }
366
394
  }
367
- `, Fe = n`
395
+ `, Le = i`
368
396
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
369
397
  createGCashDeposit(input: $input) {
370
398
  ... on DepositPromoMaximumAmountExceededError {
@@ -393,7 +421,7 @@ const G = n`
393
421
  }
394
422
  }
395
423
  }
396
- `, Le = n`
424
+ `, Ve = i`
397
425
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
398
426
  createMayaDeposit(input: $input) {
399
427
  ... on DepositPromoMaximumAmountExceededError {
@@ -422,7 +450,7 @@ const G = n`
422
450
  }
423
451
  }
424
452
  }
425
- `, Ve = n`
453
+ `, Ye = i`
426
454
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
427
455
  createMayaAppDeposit(input: $input) {
428
456
  ... on DepositPromoMaximumAmountExceededError {
@@ -451,7 +479,7 @@ const G = n`
451
479
  }
452
480
  }
453
481
  }
454
- `, He = n`
482
+ `, He = i`
455
483
  query Deposit($id: ObjectId!) {
456
484
  node(id: $id) {
457
485
  ... on GCashDeposit {
@@ -483,13 +511,13 @@ const G = n`
483
511
  }
484
512
  }
485
513
  }
486
- `, Ye = n`
514
+ `, je = i`
487
515
  query DepositsCount {
488
516
  member {
489
517
  depositsCount
490
518
  }
491
519
  }
492
- `, je = n`
520
+ `, Qe = i`
493
521
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
494
522
  member {
495
523
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -529,7 +557,7 @@ const G = n`
529
557
  }
530
558
  }
531
559
  }
532
- `, Qe = n`
560
+ `, Ke = i`
533
561
  query LatestBetRecords {
534
562
  latestBetRecords {
535
563
  id
@@ -548,7 +576,7 @@ const G = n`
548
576
  dateTimeCreated
549
577
  }
550
578
  }
551
- `, Ke = n`
579
+ `, ze = i`
552
580
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
553
581
  member {
554
582
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -574,8 +602,8 @@ const G = n`
574
602
  }
575
603
  }
576
604
  }
577
- `, $ = n`
578
- ${G}
605
+ `, $ = i`
606
+ ${x}
579
607
 
580
608
  fragment PromoFragment on Promo {
581
609
  id
@@ -593,7 +621,7 @@ const G = n`
593
621
  dateTimeCreated
594
622
  dateTimeLastUpdated
595
623
  }
596
- `, ze = n`
624
+ `, Je = i`
597
625
  ${$}
598
626
 
599
627
  query Promos {
@@ -601,7 +629,7 @@ const G = n`
601
629
  ...PromoFragment
602
630
  }
603
631
  }
604
- `, Je = n`
632
+ `, Xe = i`
605
633
  ${$}
606
634
 
607
635
  query AvailablePromos($filter: PromoFilterInput) {
@@ -609,8 +637,8 @@ const G = n`
609
637
  ...PromoFragment
610
638
  }
611
639
  }
612
- `, Ee = n`
613
- ${G}
640
+ `, Ee = i`
641
+ ${x}
614
642
 
615
643
  fragment CashbackFragment on Cashback {
616
644
  id
@@ -625,7 +653,7 @@ const G = n`
625
653
  dateTimeCreated
626
654
  dateTimeLastUpdated
627
655
  }
628
- `, Xe = n`
656
+ `, Ze = i`
629
657
  ${Ee}
630
658
 
631
659
  query Cashbacks {
@@ -633,7 +661,7 @@ const G = n`
633
661
  ...CashbackFragment
634
662
  }
635
663
  }
636
- `, Ze = n`
664
+ `, et = i`
637
665
  ${$}
638
666
 
639
667
  query Bonus {
@@ -662,7 +690,7 @@ const G = n`
662
690
  dateTimeLastUpdated
663
691
  }
664
692
  }
665
- `, et = n`
693
+ `, tt = i`
666
694
  ${Ee}
667
695
 
668
696
  query CashbackBonuses {
@@ -676,7 +704,7 @@ const G = n`
676
704
  dateTimeLastUpdated
677
705
  }
678
706
  }
679
- `, tt = n`
707
+ `, at = i`
680
708
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
681
709
  claimCashbackBonus(input: $input) {
682
710
  ... on CashbackBonusDoesNotExistError {
@@ -684,13 +712,13 @@ const G = n`
684
712
  }
685
713
  }
686
714
  }
687
- `, at = n`
715
+ `, rt = i`
688
716
  query Member {
689
717
  member {
690
718
  dateTimeLastActive
691
719
  }
692
720
  }
693
- `, rt = n`
721
+ `, nt = i`
694
722
  query MemberAccount {
695
723
  memberAccount: self {
696
724
  ... on MemberAccount {
@@ -714,8 +742,8 @@ const G = n`
714
742
  }
715
743
  }
716
744
  }
717
- `, ot = n`
718
- ${G}
745
+ `, ot = i`
746
+ ${x}
719
747
 
720
748
  query MemberVerification {
721
749
  memberAccount: self {
@@ -738,7 +766,7 @@ const G = n`
738
766
  }
739
767
  }
740
768
  }
741
- `, nt = n`
769
+ `, it = i`
742
770
  mutation RegisterMemberAccount(
743
771
  $input: RegisterMemberAccountInput!
744
772
  $referralCode: String
@@ -774,7 +802,7 @@ const G = n`
774
802
  }
775
803
  }
776
804
  }
777
- `, it = n`
805
+ `, st = i`
778
806
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
779
807
  updateMemberAccount(input: $input) {
780
808
  ... on AccountNameNotAvailableError {
@@ -800,7 +828,7 @@ const G = n`
800
828
  }
801
829
  }
802
830
  }
803
- `, st = n`
831
+ `, ct = i`
804
832
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
805
833
  resetPassword(input: $input, verificationCode: $verificationCode) {
806
834
  ... on AccountNotFoundError {
@@ -811,11 +839,11 @@ const G = n`
811
839
  }
812
840
  }
813
841
  }
814
- `, ct = n`
842
+ `, mt = i`
815
843
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
816
844
  deleteMemberAccount(input: $input)
817
845
  }
818
- `, mt = n`
846
+ `, dt = i`
819
847
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
820
848
  verifyMobileNumber(input: $input) {
821
849
  ... on InvalidSMSVerificationCodeError {
@@ -826,7 +854,7 @@ const G = n`
826
854
  }
827
855
  }
828
856
  }
829
- `, dt = n`
857
+ `, ut = i`
830
858
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
831
859
  createMemberVerification(input: $input) {
832
860
  ... on FileDoesNotExistError {
@@ -840,7 +868,7 @@ const G = n`
840
868
  }
841
869
  }
842
870
  }
843
- `, ut = n`
871
+ `, lt = i`
844
872
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
845
873
  updateMemberVerification(input: $input) {
846
874
  ... on FileDoesNotExistError {
@@ -857,7 +885,7 @@ const G = n`
857
885
  }
858
886
  }
859
887
  }
860
- `, lt = n`
888
+ `, pt = i`
861
889
  query ProfileCompletion {
862
890
  profileCompletion {
863
891
  completionPercentage
@@ -868,7 +896,7 @@ const G = n`
868
896
  accountPassword
869
897
  }
870
898
  }
871
- `, pt = n`
899
+ `, ft = i`
872
900
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
873
901
  sendVerificationCode(input: $input) {
874
902
  ... on InvalidPlatformError {
@@ -879,7 +907,7 @@ const G = n`
879
907
  }
880
908
  }
881
909
  }
882
- `, ft = n`
910
+ `, ht = i`
883
911
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
884
912
  minimumAmount
885
913
  maximumAmount
@@ -933,7 +961,7 @@ const G = n`
933
961
  multiplier
934
962
  }
935
963
  }
936
- `, ht = n`
964
+ `, wt = i`
937
965
  query MayaSession($id: ObjectId!) {
938
966
  mayaSession(id: $id) {
939
967
  id
@@ -942,9 +970,9 @@ const G = n`
942
970
  }
943
971
  }
944
972
  `;
945
- function d(o) {
973
+ function d(n) {
946
974
  return {
947
- name: o,
975
+ name: n,
948
976
  message: {
949
977
  AccountNameNotAvailableError: "Username is no longer available",
950
978
  AccountNotFoundError: "Account does not exist",
@@ -993,24 +1021,24 @@ function d(o) {
993
1021
  InvalidToken: "Invalid token",
994
1022
  InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
995
1023
  SessionExpired: "Session expired"
996
- }[o]
1024
+ }[n]
997
1025
  };
998
1026
  }
999
- class wt {
1027
+ class yt {
1000
1028
  constructor(e) {
1001
1029
  m(this, "client");
1002
1030
  this.client = e;
1003
1031
  }
1004
1032
  /** aka `Query.self` */
1005
1033
  async memberAccount() {
1006
- const e = await this.client.request(rt);
1034
+ const e = await this.client.request(nt);
1007
1035
  return e.ok ? {
1008
1036
  ok: !0,
1009
1037
  data: e.data.memberAccount
1010
1038
  } : e;
1011
1039
  }
1012
1040
  async registerMemberAccount(e) {
1013
- const t = await this.client.request(nt, e);
1041
+ const t = await this.client.request(it, e);
1014
1042
  return t.ok ? t.data.registerMemberAccount ? {
1015
1043
  ok: !1,
1016
1044
  error: d(t.data.registerMemberAccount.__typename)
@@ -1019,7 +1047,7 @@ class wt {
1019
1047
  } : t;
1020
1048
  }
1021
1049
  async updateMemberAccount(e) {
1022
- const t = await this.client.request(it, e);
1050
+ const t = await this.client.request(st, e);
1023
1051
  return t.ok ? t.data.updateMemberAccount ? {
1024
1052
  ok: !1,
1025
1053
  error: d(t.data.updateMemberAccount.__typename)
@@ -1028,7 +1056,7 @@ class wt {
1028
1056
  } : t;
1029
1057
  }
1030
1058
  async deleteMemberAccount(e) {
1031
- const t = await this.client.request(ct, e);
1059
+ const t = await this.client.request(mt, e);
1032
1060
  return t.ok ? t.data.deleteMemberAccount ? {
1033
1061
  ok: !0
1034
1062
  } : {
@@ -1041,7 +1069,7 @@ class wt {
1041
1069
  }
1042
1070
  async resetPassword(e) {
1043
1071
  const t = await this.client.request(
1044
- st,
1072
+ ct,
1045
1073
  e
1046
1074
  );
1047
1075
  return t.ok ? t.data.resetPassword ? {
@@ -1052,14 +1080,14 @@ class wt {
1052
1080
  } : t;
1053
1081
  }
1054
1082
  async profileCompletion() {
1055
- const e = await this.client.request(lt);
1083
+ const e = await this.client.request(pt);
1056
1084
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1057
1085
  }
1058
1086
  async platform() {
1059
- return await this.client.request(ft);
1087
+ return await this.client.request(ht);
1060
1088
  }
1061
1089
  async sendVerificationCode(e) {
1062
- const t = await this.client.request(pt, e);
1090
+ const t = await this.client.request(ft, e);
1063
1091
  return t.ok ? t.data.sendVerificationCode ? {
1064
1092
  ok: !1,
1065
1093
  error: d(t.data.sendVerificationCode.__typename)
@@ -1068,7 +1096,7 @@ class wt {
1068
1096
  } : t;
1069
1097
  }
1070
1098
  async verifyMobileNumber(e) {
1071
- const t = await this.client.request(mt, e);
1099
+ const t = await this.client.request(dt, e);
1072
1100
  return t.ok ? t.data.verifyMobileNumber ? {
1073
1101
  ok: !1,
1074
1102
  error: d(t.data.verifyMobileNumber.__typename)
@@ -1077,7 +1105,7 @@ class wt {
1077
1105
  } : t;
1078
1106
  }
1079
1107
  async createMemberVerification(e) {
1080
- const t = await this.client.request(dt, e);
1108
+ const t = await this.client.request(ut, e);
1081
1109
  return t.ok ? t.data.createMemberVerification ? {
1082
1110
  ok: !1,
1083
1111
  error: d(t.data.createMemberVerification.__typename)
@@ -1086,7 +1114,7 @@ class wt {
1086
1114
  } : t;
1087
1115
  }
1088
1116
  async updateMemberVerification(e) {
1089
- const t = await this.client.request(ut, e);
1117
+ const t = await this.client.request(lt, e);
1090
1118
  return t.ok ? t.data.updateMemberVerification ? {
1091
1119
  ok: !1,
1092
1120
  error: d(t.data.updateMemberVerification.__typename)
@@ -1112,14 +1140,14 @@ class wt {
1112
1140
  } : t;
1113
1141
  }
1114
1142
  }
1115
- function h(o, e) {
1116
- const t = x[o] ? x[o] : x[500];
1143
+ function h(n, e) {
1144
+ const t = G[n] ? G[n] : G[500];
1117
1145
  return {
1118
1146
  name: t.name,
1119
1147
  message: e ?? t.message
1120
1148
  };
1121
1149
  }
1122
- const x = {
1150
+ const G = {
1123
1151
  400: { name: "HttpBadRequest", message: "Bad Request" },
1124
1152
  401: { name: "HttpUnauthorized", message: "Unauthorized" },
1125
1153
  403: { name: "HttpForbidden", message: "Forbidden" },
@@ -1128,7 +1156,7 @@ const x = {
1128
1156
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1129
1157
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1130
1158
  };
1131
- class yt {
1159
+ class gt {
1132
1160
  constructor(e) {
1133
1161
  m(this, "url");
1134
1162
  m(this, "platform");
@@ -1269,7 +1297,7 @@ class yt {
1269
1297
  }
1270
1298
  }
1271
1299
  }
1272
- class gt {
1300
+ class bt {
1273
1301
  constructor(e) {
1274
1302
  m(this, "client");
1275
1303
  this.client = e;
@@ -1291,46 +1319,50 @@ class gt {
1291
1319
  } : t;
1292
1320
  }
1293
1321
  }
1294
- class bt {
1322
+ class St {
1295
1323
  constructor(e) {
1296
1324
  m(this, "client");
1297
1325
  this.client = e;
1298
1326
  }
1299
1327
  async betRecords(e) {
1300
1328
  const t = await this.client.request(
1301
- je,
1329
+ Qe,
1302
1330
  e
1303
1331
  );
1304
1332
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1305
1333
  }
1306
1334
  async transactionRecords(e) {
1307
- const t = await this.client.request(Ke, e);
1335
+ const t = await this.client.request(ze, e);
1308
1336
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1309
1337
  }
1310
1338
  async withdrawalRecords(e) {
1311
1339
  const t = await this.client.request(
1312
- xe,
1340
+ We,
1313
1341
  e
1314
1342
  );
1315
1343
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1316
1344
  }
1317
1345
  async depositRecords(e) {
1318
1346
  const t = await this.client.request(
1319
- qe,
1347
+ Fe,
1320
1348
  e
1321
1349
  );
1322
1350
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1323
1351
  }
1324
1352
  async depositsCount() {
1325
- const e = await this.client.request(Ye);
1353
+ const e = await this.client.request(je);
1326
1354
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1327
1355
  }
1328
1356
  async member() {
1329
- const e = await this.client.request(at);
1357
+ const e = await this.client.request(rt);
1330
1358
  return e.ok ? { ok: e.ok, data: e.data.member } : e;
1331
1359
  }
1360
+ async pointsWalletTransactions(e) {
1361
+ const t = await this.client.request(Re, e);
1362
+ return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
1363
+ }
1332
1364
  }
1333
- class St {
1365
+ class Et {
1334
1366
  constructor(e) {
1335
1367
  m(this, "url");
1336
1368
  this.url = e.url;
@@ -1348,26 +1380,26 @@ class Ae {
1348
1380
  this.client = e;
1349
1381
  }
1350
1382
  async promos() {
1351
- const e = await this.client.request(ze);
1383
+ const e = await this.client.request(Je);
1352
1384
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1353
1385
  }
1354
1386
  async cashbacks() {
1355
- const e = await this.client.request(Xe);
1387
+ const e = await this.client.request(Ze);
1356
1388
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1357
1389
  }
1358
1390
  async availablePromos(e) {
1359
1391
  const t = await this.client.request(
1360
- Je,
1392
+ Xe,
1361
1393
  e
1362
1394
  );
1363
1395
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1364
1396
  }
1365
1397
  async cashbackBonuses() {
1366
- const e = await this.client.request(et);
1398
+ const e = await this.client.request(tt);
1367
1399
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1368
1400
  }
1369
1401
  async claimCashbackBonus(e) {
1370
- const t = await this.client.request(tt, e);
1402
+ const t = await this.client.request(at, e);
1371
1403
  return t.ok ? t.data.claimCashbackBonus ? {
1372
1404
  ok: !1,
1373
1405
  error: d(t.data.claimCashbackBonus.__typename)
@@ -1379,7 +1411,7 @@ class Ae {
1379
1411
  };
1380
1412
  }
1381
1413
  async bonus() {
1382
- const e = await this.client.request(Ze);
1414
+ const e = await this.client.request(et);
1383
1415
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1384
1416
  }
1385
1417
  async wallet() {
@@ -1394,7 +1426,7 @@ class Ae {
1394
1426
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
1395
1427
  }
1396
1428
  async createGCashDeposit(e) {
1397
- const t = await this.client.request(Fe, e);
1429
+ const t = await this.client.request(Le, e);
1398
1430
  return t.ok ? t.data.createGCashDeposit ? {
1399
1431
  ok: !1,
1400
1432
  error: d(t.data.createGCashDeposit.__typename)
@@ -1403,7 +1435,7 @@ class Ae {
1403
1435
  } : t;
1404
1436
  }
1405
1437
  async createMayaDeposit(e) {
1406
- const t = await this.client.request(Le, e);
1438
+ const t = await this.client.request(Ve, e);
1407
1439
  return t.ok ? t.data.createMayaDeposit ? {
1408
1440
  ok: !1,
1409
1441
  error: d(t.data.createMayaDeposit.__typename)
@@ -1412,7 +1444,7 @@ class Ae {
1412
1444
  } : t;
1413
1445
  }
1414
1446
  async createMayaAppDeposit(e) {
1415
- const t = await this.client.request(Ve, e);
1447
+ const t = await this.client.request(Ye, e);
1416
1448
  return t.ok ? t.data.createMayaAppDeposit ? {
1417
1449
  ok: !1,
1418
1450
  error: d(t.data.createMayaAppDeposit.__typename)
@@ -1421,7 +1453,7 @@ class Ae {
1421
1453
  } : t;
1422
1454
  }
1423
1455
  async createGCashWithdrawal(e) {
1424
- const t = await this.client.request(Be, e);
1456
+ const t = await this.client.request($e, e);
1425
1457
  return t.ok ? t.data.createGCashWithdrawal ? {
1426
1458
  ok: !1,
1427
1459
  error: d(t.data.createGCashWithdrawal.__typename)
@@ -1430,7 +1462,7 @@ class Ae {
1430
1462
  } : t;
1431
1463
  }
1432
1464
  async createMayaWithdrawal(e) {
1433
- const t = await this.client.request($e, e);
1465
+ const t = await this.client.request(Be, e);
1434
1466
  return t.ok ? t.data.createMayaWithdrawal ? {
1435
1467
  ok: !1,
1436
1468
  error: d(t.data.createMayaWithdrawal.__typename)
@@ -1439,7 +1471,7 @@ class Ae {
1439
1471
  } : t;
1440
1472
  }
1441
1473
  async createMayaAppWithdrawal(e) {
1442
- const t = await this.client.request(We, e);
1474
+ const t = await this.client.request(Ue, e);
1443
1475
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1444
1476
  ok: !1,
1445
1477
  error: d(t.data.createMayaAppWithdrawal.__typename)
@@ -1448,7 +1480,7 @@ class Ae {
1448
1480
  } : t;
1449
1481
  }
1450
1482
  async createBankWithdrawal(e) {
1451
- const t = await this.client.request(Ue, e);
1483
+ const t = await this.client.request(Oe, e);
1452
1484
  return t.ok ? t.data.createBankWithdrawal ? {
1453
1485
  ok: !1,
1454
1486
  error: d(t.data.createBankWithdrawal.__typename)
@@ -1458,7 +1490,7 @@ class Ae {
1458
1490
  }
1459
1491
  async remainingDailyWithdrawalsCount() {
1460
1492
  const e = await this.client.request(
1461
- Oe
1493
+ qe
1462
1494
  );
1463
1495
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1464
1496
  }
@@ -1477,7 +1509,7 @@ class Ae {
1477
1509
  }
1478
1510
  async mayaSession(e) {
1479
1511
  const t = await this.client.request(
1480
- ht,
1512
+ wt,
1481
1513
  e
1482
1514
  );
1483
1515
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
@@ -1513,7 +1545,7 @@ class Ae {
1513
1545
  }
1514
1546
  async endGameSession(e) {
1515
1547
  const t = await this.client.request(
1516
- Re,
1548
+ Pe,
1517
1549
  e
1518
1550
  );
1519
1551
  return t.ok ? t.data.endGameSession ? {
@@ -1527,7 +1559,7 @@ class Ae {
1527
1559
  } : t;
1528
1560
  }
1529
1561
  }
1530
- class Et {
1562
+ class At {
1531
1563
  constructor(e) {
1532
1564
  m(this, "url");
1533
1565
  m(this, "siteId");
@@ -1599,7 +1631,7 @@ class Et {
1599
1631
  }
1600
1632
  }
1601
1633
  }
1602
- class At {
1634
+ class kt {
1603
1635
  constructor(e) {
1604
1636
  m(this, "client");
1605
1637
  this.client = e;
@@ -1634,7 +1666,7 @@ class At {
1634
1666
  } : t;
1635
1667
  }
1636
1668
  async endGameSession(e) {
1637
- const t = await this.client.request(Pe, e);
1669
+ const t = await this.client.request(xe, e);
1638
1670
  return t.ok ? t.data.endGameSession ? {
1639
1671
  ok: !1,
1640
1672
  error: d(t.data.endGameSession.__typename)
@@ -1643,40 +1675,40 @@ class At {
1643
1675
  } : t;
1644
1676
  }
1645
1677
  }
1646
- class kt {
1678
+ class _t {
1647
1679
  constructor(e) {
1648
1680
  m(this, "client");
1649
1681
  this.client = e;
1650
1682
  }
1651
1683
  async latestBetRecords() {
1652
- const e = await this.client.request(Qe);
1684
+ const e = await this.client.request(Ke);
1653
1685
  return e.ok ? {
1654
1686
  ok: !0,
1655
1687
  data: e.data.latestBetRecords
1656
1688
  } : e;
1657
1689
  }
1658
1690
  }
1659
- function _t(o, e, t) {
1660
- return o < e ? e : o > t ? t : o;
1691
+ function Ct(n, e, t) {
1692
+ return n < e ? e : n > t ? t : n;
1661
1693
  }
1662
- function B(o) {
1663
- return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
1694
+ function W(n) {
1695
+ return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
1664
1696
  }
1665
- function Ct(o) {
1697
+ function Tt(n) {
1666
1698
  const e = [];
1667
1699
  function t(a, r = []) {
1668
1700
  for (const s in a) {
1669
1701
  const c = a[s];
1670
- B(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(Tt(c), [...r, s]) : e.push({
1702
+ W(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(vt(c), [...r, s]) : e.push({
1671
1703
  key: [...r, s],
1672
1704
  value: c
1673
1705
  });
1674
1706
  }
1675
1707
  }
1676
- return t(o), e;
1708
+ return t(n), e;
1677
1709
  }
1678
- function Tt(o) {
1679
- return o.reduce((e, t, a) => (e[a] = t, e), {});
1710
+ function vt(n) {
1711
+ return n.reduce((e, t, a) => (e[a] = t, e), {});
1680
1712
  }
1681
1713
  class E {
1682
1714
  constructor(e, t) {
@@ -1742,7 +1774,7 @@ class E {
1742
1774
  return t;
1743
1775
  }
1744
1776
  createUploadBody(e, t) {
1745
- const a = Ct(t).filter(
1777
+ const a = Tt(t).filter(
1746
1778
  (c) => c.value instanceof File || c.value instanceof Blob
1747
1779
  ), r = new FormData();
1748
1780
  r.append(
@@ -1760,8 +1792,8 @@ class E {
1760
1792
  }), r;
1761
1793
  }
1762
1794
  }
1763
- async function g(o) {
1764
- const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
1795
+ async function g(n) {
1796
+ const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
1765
1797
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
1766
1798
  }
1767
1799
  class ke {
@@ -1782,26 +1814,26 @@ class ke {
1782
1814
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
1783
1815
  }
1784
1816
  }
1785
- function W(o) {
1786
- return new Date(o.getTime());
1817
+ function B(n) {
1818
+ return new Date(n.getTime());
1787
1819
  }
1788
- function I(o, e) {
1789
- const t = W(o);
1820
+ function I(n, e) {
1821
+ const t = B(n);
1790
1822
  return t.setDate(t.getDate() + e), t;
1791
1823
  }
1792
- function R(o, e) {
1793
- const t = W(o);
1824
+ function R(n, e) {
1825
+ const t = B(n);
1794
1826
  return t.setMinutes(t.getMinutes() + e), t;
1795
1827
  }
1796
- function he(o, e) {
1797
- return o.getTime() > e.getTime();
1828
+ function he(n, e) {
1829
+ return n.getTime() > e.getTime();
1798
1830
  }
1799
- function _e(o) {
1831
+ function _e(n) {
1800
1832
  return new Promise((e) => {
1801
- setTimeout(e, o);
1833
+ setTimeout(e, n);
1802
1834
  });
1803
1835
  }
1804
- function we(o, e) {
1836
+ function we(n, e) {
1805
1837
  const {
1806
1838
  until: t,
1807
1839
  interval: a = 1e3,
@@ -1809,23 +1841,23 @@ function we(o, e) {
1809
1841
  /**/
1810
1842
  } = e;
1811
1843
  async function s(c, u) {
1812
- const l = u ?? r, p = await o(...c);
1844
+ const l = u ?? r, p = await n(...c);
1813
1845
  return t(p) ? p : l > 1 ? (await _e(a * ((r - l) / 2)), s(c, l - 1)) : p;
1814
1846
  }
1815
1847
  return async (...c) => await s(c);
1816
1848
  }
1817
- function P(o, e) {
1818
- const t = W(o);
1849
+ function P(n, e) {
1850
+ const t = B(n);
1819
1851
  return t.setMinutes(t.getMinutes() - e), t;
1820
1852
  }
1821
- class vt {
1853
+ class Nt {
1822
1854
  constructor(e) {
1823
1855
  m(this, "logger");
1824
1856
  m(this, "storageKey", "session");
1825
1857
  m(this, "authService");
1826
1858
  m(this, "walletService");
1827
1859
  m(this, "_refreshing", !1);
1828
- this.authService = new yt({
1860
+ this.authService = new gt({
1829
1861
  url: e.authUrl,
1830
1862
  platform: e.platform
1831
1863
  }), this.walletService = new Ae(
@@ -2017,17 +2049,17 @@ class vt {
2017
2049
  return typeof window > "u";
2018
2050
  }
2019
2051
  }
2020
- function w(o) {
2052
+ function w(n) {
2021
2053
  const e = {};
2022
- for (const t in o) {
2023
- const a = o[t];
2054
+ for (const t in n) {
2055
+ const a = n[t];
2024
2056
  if (a !== null && a !== void 0) {
2025
- if (B(a)) {
2057
+ if (W(a)) {
2026
2058
  e[t] = w(a);
2027
2059
  continue;
2028
2060
  }
2029
2061
  if (Array.isArray(a)) {
2030
- e[t] = a.map((r) => B(r) ? w(r) : r);
2062
+ e[t] = a.map((r) => W(r) ? w(r) : r);
2031
2063
  continue;
2032
2064
  }
2033
2065
  e[t] = a;
@@ -2035,21 +2067,21 @@ function w(o) {
2035
2067
  }
2036
2068
  return e;
2037
2069
  }
2038
- function i(o, e) {
2039
- if (typeof o == "number" && !Number.isNaN(o))
2040
- return o;
2041
- if (typeof o == "string") {
2042
- const t = Number.parseFloat(o);
2070
+ function o(n, e) {
2071
+ if (typeof n == "number" && !Number.isNaN(n))
2072
+ return n;
2073
+ if (typeof n == "string") {
2074
+ const t = Number.parseFloat(n);
2043
2075
  if (!Number.isNaN(t))
2044
2076
  return t;
2045
2077
  }
2046
2078
  return e;
2047
2079
  }
2048
- class Nt {
2080
+ class Mt {
2049
2081
  constructor(e) {
2050
2082
  m(this, "staticService");
2051
2083
  const t = (e == null ? void 0 : e.environment) === "development";
2052
- this.staticService = new St({
2084
+ this.staticService = new Et({
2053
2085
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2054
2086
  });
2055
2087
  }
@@ -2077,7 +2109,8 @@ class Nt {
2077
2109
  bonus: this.bonus.bind(this),
2078
2110
  cashbackBonus: this.cashbackBonus.bind(this),
2079
2111
  file: this.file.bind(this),
2080
- pointsWallet: this.pointsWallet.bind(this)
2112
+ pointsWallet: this.pointsWallet.bind(this),
2113
+ pointsWalletTransaction: this.pointsWalletTransaction.bind(this)
2081
2114
  };
2082
2115
  }
2083
2116
  site(e) {
@@ -2089,10 +2122,10 @@ class Nt {
2089
2122
  return w(t);
2090
2123
  }
2091
2124
  platform(e) {
2092
- var t, a, r, s, c, u, l, p, y, f, A, k, _, C, T, v, N, M, D, U, O, q, F, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, ae, re, oe, ne, ie, se, ce, me, de, ue, le, pe, fe;
2125
+ var t, a, r, s, c, u, l, p, y, f, A, k, _, C, T, v, N, M, D, U, O, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, ce, me, de, ue, le, pe, fe;
2093
2126
  return {
2094
2127
  paymentSettings: {
2095
- minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2128
+ minimumFirstDepositAmount: o(e.minimumFirstDepositAmount),
2096
2129
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2097
2130
  depositGateway: {
2098
2131
  bank: {
@@ -2100,50 +2133,50 @@ class Nt {
2100
2133
  iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
2101
2134
  webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
2102
2135
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2103
- minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2104
- maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2136
+ minimumAmount: o((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2137
+ maximumAmount: o((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2105
2138
  },
2106
2139
  gcash: {
2107
2140
  androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2108
2141
  iosEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.iosEnabled) ?? !1,
2109
2142
  webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
2110
2143
  mobileWebEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.mobileWebEnabled) ?? !1,
2111
- minimumAmount: i((A = e.gcashDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
2112
- maximumAmount: i((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
2144
+ minimumAmount: o((A = e.gcashDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
2145
+ maximumAmount: o((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
2113
2146
  },
2114
2147
  maya: {
2115
2148
  androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
2116
2149
  iosEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.iosEnabled) ?? !1,
2117
2150
  webEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.webEnabled) ?? !1,
2118
2151
  mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
2119
- minimumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.minimumAmount),
2120
- maximumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
2152
+ minimumAmount: o((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.minimumAmount),
2153
+ maximumAmount: o((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.maximumAmount)
2121
2154
  },
2122
2155
  mayaApp: {
2123
2156
  androidEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.androidEnabled) ?? !1,
2124
2157
  iosEnabled: ((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.iosEnabled) ?? !1,
2125
2158
  webEnabled: ((O = e.mayaAppDepositGatewaySettings) == null ? void 0 : O.webEnabled) ?? !1,
2126
2159
  mobileWebEnabled: ((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
2127
- minimumAmount: i((F = e.mayaAppDepositGatewaySettings) == null ? void 0 : F.minimumAmount),
2128
- maximumAmount: i((L = e.mayaAppDepositGatewaySettings) == null ? void 0 : L.maximumAmount)
2160
+ minimumAmount: o((F = e.mayaAppDepositGatewaySettings) == null ? void 0 : F.minimumAmount),
2161
+ maximumAmount: o((L = e.mayaAppDepositGatewaySettings) == null ? void 0 : L.maximumAmount)
2129
2162
  }
2130
2163
  },
2131
2164
  withdrawalGateway: {
2132
2165
  bank: {
2133
2166
  androidEnabled: ((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !1,
2134
- iosEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2135
- webEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2167
+ iosEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.iosEnabled) ?? !1,
2168
+ webEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.webEnabled) ?? !1,
2136
2169
  mobileWebEnabled: ((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
2137
- minimumAmount: i((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2138
- maximumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount)
2170
+ minimumAmount: o((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2171
+ maximumAmount: o((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount)
2139
2172
  },
2140
2173
  gcash: {
2141
2174
  androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2142
2175
  iosEnabled: ((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
2143
2176
  webEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
2144
2177
  mobileWebEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
2145
- minimumAmount: i((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2146
- maximumAmount: i(
2178
+ minimumAmount: o((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2179
+ maximumAmount: o(
2147
2180
  (te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount,
2148
2181
  1e6
2149
2182
  )
@@ -2151,18 +2184,18 @@ class Nt {
2151
2184
  maya: {
2152
2185
  androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
2153
2186
  iosEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.iosEnabled) ?? !1,
2154
- webEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2155
- mobileWebEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.mobileWebEnabled) ?? !1,
2156
- minimumAmount: i((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.minimumAmount),
2157
- maximumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount)
2187
+ webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2188
+ mobileWebEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.mobileWebEnabled) ?? !1,
2189
+ minimumAmount: o((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.minimumAmount),
2190
+ maximumAmount: o((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount)
2158
2191
  },
2159
2192
  mayaApp: {
2160
2193
  androidEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
2161
2194
  iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
2162
2195
  webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2163
2196
  mobileWebEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.mobileWebEnabled) ?? !1,
2164
- minimumAmount: i((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.minimumAmount),
2165
- maximumAmount: i(
2197
+ minimumAmount: o((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.minimumAmount),
2198
+ maximumAmount: o(
2166
2199
  (pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.maximumAmount,
2167
2200
  1e6
2168
2201
  )
@@ -2170,7 +2203,7 @@ class Nt {
2170
2203
  }
2171
2204
  },
2172
2205
  pointsClubSettings: {
2173
- multiplier: i((fe = e.pointsClubSettings) == null ? void 0 : fe.multiplier, 0)
2206
+ multiplier: o((fe = e.pointsClubSettings) == null ? void 0 : fe.multiplier, 0)
2174
2207
  }
2175
2208
  };
2176
2209
  }
@@ -2200,7 +2233,7 @@ class Nt {
2200
2233
  wallet(e) {
2201
2234
  return {
2202
2235
  id: e.id,
2203
- balance: i(e.balance, 0),
2236
+ balance: o(e.balance, 0),
2204
2237
  currency: e.currency,
2205
2238
  dateTimeCreated: new Date(e.dateTimeCreated),
2206
2239
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2226,7 +2259,7 @@ class Nt {
2226
2259
  mobileNumberVerification: e.mobileNumberVerification ?? !1,
2227
2260
  personalInformation: e.personalInformation ?? !1,
2228
2261
  transactionPassword: e.transactionPassword ?? !1,
2229
- completionPercentage: i(e, 0)
2262
+ completionPercentage: o(e, 0)
2230
2263
  };
2231
2264
  }
2232
2265
  announcement(e) {
@@ -2248,9 +2281,9 @@ class Nt {
2248
2281
  type: e.type,
2249
2282
  bank: e.bank,
2250
2283
  status: e.status,
2251
- amount: i(e.amount, 0),
2252
- netAmount: i(e.netAmount, 0),
2253
- fee: i(e.fee, 0),
2284
+ amount: o(e.amount, 0),
2285
+ netAmount: o(e.netAmount, 0),
2286
+ fee: o(e.fee, 0),
2254
2287
  reference: e.reference ?? void 0,
2255
2288
  withdrawalNumber: e.withdrawalNumber,
2256
2289
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -2274,9 +2307,9 @@ class Nt {
2274
2307
  id: e.id,
2275
2308
  type: e.type,
2276
2309
  status: e.status,
2277
- amount: i(e.amount, 0),
2278
- fee: i(e.fee, 0),
2279
- netAmount: i(e.netAmount, 0),
2310
+ amount: o(e.amount, 0),
2311
+ fee: o(e.fee, 0),
2312
+ netAmount: o(e.netAmount, 0),
2280
2313
  reference: e.reference ?? void 0,
2281
2314
  depositNumber: e.depositNumber,
2282
2315
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2288,13 +2321,13 @@ class Nt {
2288
2321
  var a;
2289
2322
  const t = {
2290
2323
  id: e.id,
2291
- bet: i(e.bet, 0),
2292
- payout: i(e.payout, 0),
2324
+ bet: o(e.bet, 0),
2325
+ payout: o(e.payout, 0),
2293
2326
  status: e.status,
2294
- jackpotContribution: i(e.jackpotContribution, 0),
2295
- jackpotPayout: i(e.jackpotPayout, 0),
2296
- winloss: i(e.winloss),
2297
- validBet: i(e.validBet, 0),
2327
+ jackpotContribution: o(e.jackpotContribution, 0),
2328
+ jackpotPayout: o(e.jackpotPayout, 0),
2329
+ winloss: o(e.winloss),
2330
+ validBet: o(e.validBet, 0),
2298
2331
  vendorRoundId: e.vendorRoundId ?? void 0,
2299
2332
  game: e.game,
2300
2333
  serialCode: e.serialCode,
@@ -2315,9 +2348,9 @@ class Nt {
2315
2348
  id: e.id,
2316
2349
  member: e.member,
2317
2350
  game: e.game,
2318
- bet: i(e.bet, 0),
2319
- payout: i(e.payout, 0),
2320
- validBet: i(e.validBet, 0),
2351
+ bet: o(e.bet, 0),
2352
+ payout: o(e.payout, 0),
2353
+ validBet: o(e.validBet, 0),
2321
2354
  dateTimeSettled: new Date(e.dateTimeSettled),
2322
2355
  dateTimeCreated: new Date(e.dateTimeCreated)
2323
2356
  };
@@ -2326,9 +2359,9 @@ class Nt {
2326
2359
  const t = {
2327
2360
  id: e.id,
2328
2361
  type: e.type,
2329
- amount: i(e.amount, 0),
2362
+ amount: o(e.amount, 0),
2330
2363
  content: e.content ?? void 0,
2331
- currentBalance: i(e.currentBalance, 0),
2364
+ currentBalance: o(e.currentBalance, 0),
2332
2365
  referenceNumber: e.referenceNumber,
2333
2366
  dateTimeCreated: new Date(e.dateTimeCreated)
2334
2367
  };
@@ -2374,8 +2407,8 @@ class Nt {
2374
2407
  status: e.status,
2375
2408
  description: e.description,
2376
2409
  banner: this.file(e.banner),
2377
- maximumBonusAmount: i(e.maximumBonusAmount),
2378
- minimumBonusAmount: i(e.minimumBonusAmount),
2410
+ maximumBonusAmount: o(e.maximumBonusAmount),
2411
+ minimumBonusAmount: o(e.minimumBonusAmount),
2379
2412
  activationEndDateTime: new Date(e.activationEndDateTime),
2380
2413
  activationStartDateTime: new Date(e.activationStartDateTime),
2381
2414
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2402,22 +2435,22 @@ class Nt {
2402
2435
  deposit: e.deposit ? {
2403
2436
  type: e.deposit.type,
2404
2437
  status: e.deposit.status,
2405
- fee: i(e.deposit.fee, 0),
2406
- amount: i(e.deposit.amount, 0),
2407
- netAmount: i(e.deposit.netAmount, 0),
2438
+ fee: o(e.deposit.fee, 0),
2439
+ amount: o(e.deposit.amount, 0),
2440
+ netAmount: o(e.deposit.netAmount, 0),
2408
2441
  reference: e.deposit.reference ?? void 0,
2409
2442
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
2410
2443
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
2411
2444
  } : void 0,
2412
- balance: i(e.balance, 0),
2413
- amount: i(e.amount, 0),
2445
+ balance: o(e.balance, 0),
2446
+ amount: o(e.amount, 0),
2414
2447
  expiration: new Date(e.expiration),
2415
- turnoverRequirement: i(e.turnoverRequirement, 0),
2416
- currentTurnoverRequirementContribution: i(
2448
+ turnoverRequirement: o(e.turnoverRequirement, 0),
2449
+ currentTurnoverRequirementContribution: o(
2417
2450
  e.currentTurnoverRequirementContribution,
2418
2451
  0
2419
2452
  ),
2420
- currentTurnoverRequirementContributionPercentage: i(
2453
+ currentTurnoverRequirementContributionPercentage: o(
2421
2454
  e.currentTurnoverRequirementContributionPercentage,
2422
2455
  0
2423
2456
  ),
@@ -2429,7 +2462,7 @@ class Nt {
2429
2462
  cashbackBonus(e) {
2430
2463
  return {
2431
2464
  id: e.id,
2432
- balance: i(e.balance, 0),
2465
+ balance: o(e.balance, 0),
2433
2466
  cashback: this.cashback(e.cashback),
2434
2467
  dateTimeCreated: new Date(e.dateTimeCreated),
2435
2468
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2447,13 +2480,22 @@ class Nt {
2447
2480
  pointsWallet(e) {
2448
2481
  return {
2449
2482
  id: e.id,
2450
- points: i(e.points, 0),
2483
+ points: o(e.points, 0),
2451
2484
  account: e.account,
2452
2485
  dateTimeCreated: new Date(e.dateTimeCreated)
2453
2486
  };
2454
2487
  }
2488
+ pointsWalletTransaction(e) {
2489
+ return {
2490
+ id: e.id,
2491
+ type: e.type,
2492
+ amount: o(e.amount, 0),
2493
+ balance: o(e.balance, 0),
2494
+ dateTimeCreated: new Date(e.dateTimeCreated)
2495
+ };
2496
+ }
2455
2497
  }
2456
- class It {
2498
+ class Rt {
2457
2499
  constructor(e) {
2458
2500
  m(this, "gameService");
2459
2501
  m(this, "fileService");
@@ -2466,12 +2508,12 @@ class It {
2466
2508
  m(this, "transformer");
2467
2509
  m(this, "logger");
2468
2510
  const t = e.environment === "development";
2469
- this.sessionManager = new vt({
2511
+ this.sessionManager = new Nt({
2470
2512
  authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
2471
2513
  walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2472
2514
  platform: e.platform,
2473
2515
  log: e.log
2474
- }), this.cmsPortalService = new Et({
2516
+ }), this.cmsPortalService = new At({
2475
2517
  url: "https://portal-api.opexacms.io/v1",
2476
2518
  site: e.site,
2477
2519
  platform: e.sitePlatform
@@ -2485,12 +2527,12 @@ class It {
2485
2527
  }
2486
2528
  }
2487
2529
  };
2488
- this.gameService = new At(
2530
+ this.gameService = new kt(
2489
2531
  new E(
2490
2532
  t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
2491
2533
  a
2492
2534
  )
2493
- ), this.fileService = new gt(
2535
+ ), this.fileService = new bt(
2494
2536
  new E(
2495
2537
  t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
2496
2538
  a
@@ -2500,22 +2542,22 @@ class It {
2500
2542
  t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2501
2543
  a
2502
2544
  )
2503
- ), this.reportService = new bt(
2545
+ ), this.reportService = new St(
2504
2546
  new E(
2505
2547
  t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
2506
2548
  a
2507
2549
  )
2508
- ), this.accountService = new wt(
2550
+ ), this.accountService = new yt(
2509
2551
  new E(
2510
2552
  t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
2511
2553
  a
2512
2554
  )
2513
- ), this.portalService = new kt(
2555
+ ), this.portalService = new _t(
2514
2556
  new E(
2515
2557
  t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
2516
2558
  a
2517
2559
  )
2518
- ), this.transformer = new Nt(e), this.logger = new ke({
2560
+ ), this.transformer = new Mt(e), this.logger = new ke({
2519
2561
  enabled: e.log ?? !1
2520
2562
  });
2521
2563
  }
@@ -2631,7 +2673,7 @@ class It {
2631
2673
  * ```
2632
2674
  */
2633
2675
  watchSession(e) {
2634
- const t = _t(e.interval ?? 3e4, 3e4, 6e4);
2676
+ const t = Ct(e.interval ?? 3e4, 3e4, 6e4);
2635
2677
  let a = null;
2636
2678
  const r = () => setTimeout(async () => {
2637
2679
  await this.sessionManager.verify() || await e.onInvalid(), a = r();
@@ -3396,6 +3438,21 @@ class It {
3396
3438
  }
3397
3439
  });
3398
3440
  }
3441
+ async pointsWalletTransactions(e) {
3442
+ const t = await this.reportService.pointsWalletTransactions(e);
3443
+ return t.ok ? {
3444
+ ok: !0,
3445
+ data: {
3446
+ pointsWalletTransactions: t.data.edges.map(({ cursor: a, node: r }) => ({
3447
+ ...this.transformer.transform.pointsWalletTransaction(r),
3448
+ cursor: a
3449
+ })),
3450
+ totalCount: t.data.totalCount,
3451
+ hasNextPage: t.data.pageInfo.hasNextPage,
3452
+ endCursor: t.data.pageInfo.endCursor ?? void 0
3453
+ }
3454
+ } : t;
3455
+ }
3399
3456
  addAreaCode(e) {
3400
3457
  return e.startsWith("+63") ? e : e.startsWith("63") ? `+${e}` : e.startsWith("0") ? `+63${e.substring(1)}` : `+63${e}`;
3401
3458
  }
@@ -3403,6 +3460,6 @@ class It {
3403
3460
  export {
3404
3461
  Gt as ObjectId,
3405
3462
  S as ObjectType,
3406
- It as Sdk
3463
+ Rt as Sdk
3407
3464
  };
3408
3465
  //# sourceMappingURL=index.mjs.map