@opexa/portal-sdk 0.0.27 → 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,7 +1,7 @@
1
- var Te = Object.defineProperty;
2
- var Ce = (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) => Ce(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { ObjectId as E } from "@opexa/object-id";
1
+ var Ce = Object.defineProperty;
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
+ import { ObjectId as b } from "@opexa/object-id";
5
5
  import { ObjectId as Gt } from "@opexa/object-id";
6
6
  const S = {
7
7
  Account: 8,
@@ -13,22 +13,22 @@ 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 x = 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`
31
+ `, ve = i`
32
32
  ${x}
33
33
 
34
34
  query File($id: ObjectId!) {
@@ -38,7 +38,7 @@ const x = 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 x = n`
52
52
  }
53
53
  }
54
54
  }
55
- `, Ie = n`
55
+ `, Me = i`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const x = n`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Me = n`
65
+ `, De = i`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const x = n`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, De = n`
74
+ `, Ie = i`
75
75
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
76
76
  pointsToCashConversion(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,35 @@ const x = 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 x = 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 x = n`
111
139
  }
112
140
  }
113
141
  }
114
- `, Ee = n`
142
+ `, be = i`
115
143
  query GameSession($id: ObjectId!) {
116
144
  node(id: $id) {
117
145
  ... on GameSession {
@@ -123,7 +151,7 @@ const x = 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 x = 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 x = n`
149
177
  }
150
178
  }
151
179
  }
152
- `, xe = 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 x = n`
175
203
  }
176
204
  }
177
205
  }
178
- `, Ge = 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 x = n`
242
270
  }
243
271
  }
244
272
  }
245
- `, Oe = n`
273
+ `, $e = i`
246
274
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
247
275
  createGCashWithdrawal(input: $input) {
248
276
  ... on AccountNotVerifiedError {
@@ -265,7 +293,7 @@ const x = n`
265
293
  }
266
294
  }
267
295
  }
268
- `, Ue = n`
296
+ `, Be = i`
269
297
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
270
298
  createMayaWithdrawal(input: $input) {
271
299
  ... on AccountNotVerifiedError {
@@ -288,7 +316,7 @@ const x = n`
288
316
  }
289
317
  }
290
318
  }
291
- `, Be = n`
319
+ `, Ue = i`
292
320
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
293
321
  createMayaAppWithdrawal(input: $input) {
294
322
  ... on AccountNotVerifiedError {
@@ -308,7 +336,7 @@ const x = n`
308
336
  }
309
337
  }
310
338
  }
311
- `, $e = n`
339
+ `, Oe = i`
312
340
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
313
341
  createBankWithdrawal(input: $input) {
314
342
  ... on MobileNumberNotVerifiedError {
@@ -331,11 +359,11 @@ const x = n`
331
359
  }
332
360
  }
333
361
  }
334
- `, We = 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 x = n`
364
392
  }
365
393
  }
366
394
  }
367
- `, Le = n`
395
+ `, Le = i`
368
396
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
369
397
  createGCashDeposit(input: $input) {
370
398
  ... on DepositPromoMaximumAmountExceededError {
@@ -393,7 +421,7 @@ const x = n`
393
421
  }
394
422
  }
395
423
  }
396
- `, Ve = n`
424
+ `, Ve = i`
397
425
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
398
426
  createMayaDeposit(input: $input) {
399
427
  ... on DepositPromoMaximumAmountExceededError {
@@ -422,7 +450,7 @@ const x = n`
422
450
  }
423
451
  }
424
452
  }
425
- `, Fe = n`
453
+ `, Ye = i`
426
454
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
427
455
  createMayaAppDeposit(input: $input) {
428
456
  ... on DepositPromoMaximumAmountExceededError {
@@ -451,7 +479,7 @@ const x = 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 x = 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 x = 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 x = 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,7 +602,7 @@ const x = n`
574
602
  }
575
603
  }
576
604
  }
577
- `, U = n`
605
+ `, $ = i`
578
606
  ${x}
579
607
 
580
608
  fragment PromoFragment on Promo {
@@ -593,23 +621,23 @@ const x = n`
593
621
  dateTimeCreated
594
622
  dateTimeLastUpdated
595
623
  }
596
- `, ze = n`
597
- ${U}
624
+ `, Je = i`
625
+ ${$}
598
626
 
599
627
  query Promos {
600
628
  promos {
601
629
  ...PromoFragment
602
630
  }
603
631
  }
604
- `, Je = n`
605
- ${U}
632
+ `, Xe = i`
633
+ ${$}
606
634
 
607
635
  query AvailablePromos($filter: PromoFilterInput) {
608
636
  availablePromos(filter: $filter) {
609
637
  ...PromoFragment
610
638
  }
611
639
  }
612
- `, be = n`
640
+ `, Ee = i`
613
641
  ${x}
614
642
 
615
643
  fragment CashbackFragment on Cashback {
@@ -625,16 +653,16 @@ const x = n`
625
653
  dateTimeCreated
626
654
  dateTimeLastUpdated
627
655
  }
628
- `, Xe = n`
629
- ${be}
656
+ `, Ze = i`
657
+ ${Ee}
630
658
 
631
659
  query Cashbacks {
632
660
  cashbacks {
633
661
  ...CashbackFragment
634
662
  }
635
663
  }
636
- `, Ze = n`
637
- ${U}
664
+ `, et = i`
665
+ ${$}
638
666
 
639
667
  query Bonus {
640
668
  bonus {
@@ -662,8 +690,8 @@ const x = n`
662
690
  dateTimeLastUpdated
663
691
  }
664
692
  }
665
- `, et = n`
666
- ${be}
693
+ `, tt = i`
694
+ ${Ee}
667
695
 
668
696
  query CashbackBonuses {
669
697
  cashbackBonuses {
@@ -676,7 +704,7 @@ const x = 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 x = 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,7 +742,7 @@ const x = n`
714
742
  }
715
743
  }
716
744
  }
717
- `, ot = n`
745
+ `, ot = i`
718
746
  ${x}
719
747
 
720
748
  query MemberVerification {
@@ -738,7 +766,7 @@ const x = 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 x = 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 x = 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 x = 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 x = 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 x = 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 x = 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 x = 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 x = 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 x = 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 x = 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)
@@ -1103,7 +1131,7 @@ class wt {
1103
1131
  }
1104
1132
  async announcements(e) {
1105
1133
  const t = await this.client.request(
1106
- xe,
1134
+ Ge,
1107
1135
  e
1108
1136
  );
1109
1137
  return t.ok ? {
@@ -1112,8 +1140,8 @@ class wt {
1112
1140
  } : t;
1113
1141
  }
1114
1142
  }
1115
- function h(o, e) {
1116
- const t = G[o] ? G[o] : G[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
@@ -1128,7 +1156,7 @@ const G = {
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 Et {
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
- Ge,
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,11 +1411,11 @@ 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() {
1386
- const e = await this.client.request(Ie);
1418
+ const e = await this.client.request(Me);
1387
1419
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1388
1420
  }
1389
1421
  async deposit(e) {
@@ -1412,7 +1444,7 @@ class Ae {
1412
1444
  } : t;
1413
1445
  }
1414
1446
  async createMayaAppDeposit(e) {
1415
- const t = await this.client.request(Fe, 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(Oe, 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(Ue, 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(Be, 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($e, 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,16 +1490,16 @@ class Ae {
1458
1490
  }
1459
1491
  async remainingDailyWithdrawalsCount() {
1460
1492
  const e = await this.client.request(
1461
- We
1493
+ qe
1462
1494
  );
1463
1495
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1464
1496
  }
1465
1497
  async pointsWallet() {
1466
- const e = await this.client.request(Me);
1498
+ const e = await this.client.request(De);
1467
1499
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1468
1500
  }
1469
1501
  async pointsToCashConversion(e) {
1470
- const t = await this.client.request(De, e);
1502
+ const t = await this.client.request(Ie, e);
1471
1503
  return t.ok ? t.data.pointsToCashConversion ? {
1472
1504
  ok: !1,
1473
1505
  error: d(t.data.pointsToCashConversion.__typename)
@@ -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;
@@ -1497,7 +1529,7 @@ class Ae {
1497
1529
  }
1498
1530
  async gameSession(e) {
1499
1531
  const t = await this.client.request(
1500
- Ee,
1532
+ be,
1501
1533
  e
1502
1534
  );
1503
1535
  return t.ok ? { ok: !0, data: t.data.node } : 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 bt {
1562
+ class At {
1531
1563
  constructor(e) {
1532
1564
  m(this, "url");
1533
1565
  m(this, "siteId");
@@ -1542,16 +1574,16 @@ class bt {
1542
1574
  } : e;
1543
1575
  }
1544
1576
  async games(e) {
1545
- var r, s, c, u, l, p, y, f, A, _, k, T, C, v, N, I;
1577
+ var r, s, c, u, l, p, y, f, A, k, _, C, T, v, N, M;
1546
1578
  const t = new URLSearchParams();
1547
- 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 = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.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), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (_ = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && _.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (I = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && I.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
1579
+ 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 = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.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), (p = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && p.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (f = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && f.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (C = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && C.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (M = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && M.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(","));
1548
1580
  const a = await this.getJson("/games", t);
1549
1581
  return a.ok ? {
1550
1582
  ok: !0,
1551
1583
  data: {
1552
- edges: a.data.data.map((M) => ({
1553
- node: M,
1554
- cursor: M.cursor
1584
+ edges: a.data.data.map((D) => ({
1585
+ node: D,
1586
+ cursor: D.cursor
1555
1587
  })),
1556
1588
  totalCount: a.data.totalCount ?? 0,
1557
1589
  pageInfo: {
@@ -1599,7 +1631,7 @@ class bt {
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;
@@ -1619,7 +1651,7 @@ class At {
1619
1651
  }
1620
1652
  async gameSession(e) {
1621
1653
  const t = await this.client.request(
1622
- Ee,
1654
+ be,
1623
1655
  e
1624
1656
  );
1625
1657
  return t.ok ? { ok: !0, data: t.data.node } : t;
@@ -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)
@@ -1649,36 +1681,36 @@ class _t {
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 kt(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 O(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 Tt(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
- O(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(Ct(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 Ct(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
- class b {
1713
+ class E {
1682
1714
  constructor(e, t) {
1683
1715
  m(this, "url");
1684
1716
  m(this, "options");
@@ -1760,11 +1792,11 @@ class b {
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
- class _e {
1799
+ class ke {
1768
1800
  constructor(e) {
1769
1801
  m(this, "enabled");
1770
1802
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
@@ -1782,26 +1814,26 @@ class _e {
1782
1814
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
1783
1815
  }
1784
1816
  }
1785
- function B(o) {
1786
- return new Date(o.getTime());
1817
+ function B(n) {
1818
+ return new Date(n.getTime());
1787
1819
  }
1788
- function D(o, e) {
1789
- const t = B(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 = B(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 ke(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,32 +1841,32 @@ 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);
1813
- return t(p) ? p : l > 1 ? (await ke(a * ((r - l) / 2)), s(c, l - 1)) : p;
1844
+ const l = u ?? r, p = await n(...c);
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 = B(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(
1832
- new b(e.walletUrl, {
1864
+ new E(e.walletUrl, {
1833
1865
  middlewares: [
1834
1866
  (t) => (t.headers.set("Platform", e.platform), t.headers.set("Role", "MEMBER"), t)
1835
1867
  ]
1836
1868
  })
1837
- ), this.logger = new _e({
1869
+ ), this.logger = new ke({
1838
1870
  enabled: e.log ?? !1
1839
1871
  });
1840
1872
  }
@@ -1875,7 +1907,7 @@ class vt {
1875
1907
  JSON.stringify({
1876
1908
  ...u.data,
1877
1909
  accessTokenExpiresAt: R(l, 8).getTime(),
1878
- refreshTokenExpiresAt: P(D(l, 30), 2).getTime()
1910
+ refreshTokenExpiresAt: P(I(l, 30), 2).getTime()
1879
1911
  })
1880
1912
  ), {
1881
1913
  ok: !0,
@@ -1891,7 +1923,7 @@ class vt {
1891
1923
  JSON.stringify({
1892
1924
  ...r.data,
1893
1925
  accessTokenExpiresAt: R(s, 8).getTime(),
1894
- refreshTokenExpiresAt: P(D(s, 30), 2).getTime()
1926
+ refreshTokenExpiresAt: P(I(s, 30), 2).getTime()
1895
1927
  })
1896
1928
  ), {
1897
1929
  ok: !0,
@@ -1915,7 +1947,7 @@ class vt {
1915
1947
  JSON.stringify({
1916
1948
  ...t.data,
1917
1949
  accessTokenExpiresAt: R(a, 8).getTime(),
1918
- refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
1950
+ refreshTokenExpiresAt: P(I(a, 30), 2).getTime()
1919
1951
  })
1920
1952
  ), {
1921
1953
  ok: !0,
@@ -1931,7 +1963,7 @@ class vt {
1931
1963
  JSON.stringify({
1932
1964
  ...t.data,
1933
1965
  accessTokenExpiresAt: R(a, 8).getTime(),
1934
- refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
1966
+ refreshTokenExpiresAt: P(I(a, 30), 2).getTime()
1935
1967
  })
1936
1968
  ), { ok: !0 };
1937
1969
  } else
@@ -1944,7 +1976,7 @@ class vt {
1944
1976
  data: null
1945
1977
  };
1946
1978
  if (this.refreshing)
1947
- return await ke(1e3), await this.get();
1979
+ return await _e(1e3), await this.get();
1948
1980
  const e = window.localStorage.getItem(this.storageKey);
1949
1981
  if (!e)
1950
1982
  return {
@@ -1977,7 +2009,7 @@ class vt {
1977
2009
  ...t,
1978
2010
  ...c.data,
1979
2011
  accessTokenExpiresAt: R(a, 8).getTime(),
1980
- refreshTokenExpiresAt: P(D(a, 30), 2).getTime()
2012
+ refreshTokenExpiresAt: P(I(a, 30), 2).getTime()
1981
2013
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
1982
2014
  }
1983
2015
  return {
@@ -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 (O(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) => O(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, T, C, v, N, I, M, $, W, q, L, V, F, 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((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.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
- androidEnabled: ((k = e.mayaDepositGatewaySettings) == null ? void 0 : k.androidEnabled) ?? !1,
2116
- iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
2117
- webEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.webEnabled) ?? !1,
2148
+ androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
2149
+ iosEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.iosEnabled) ?? !1,
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((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.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
- androidEnabled: ((M = e.mayaAppDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2124
- iosEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.iosEnabled) ?? !1,
2125
- webEnabled: ((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.webEnabled) ?? !1,
2156
+ androidEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.androidEnabled) ?? !1,
2157
+ iosEnabled: ((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.iosEnabled) ?? !1,
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((L = e.mayaAppDepositGatewaySettings) == null ? void 0 : L.minimumAmount),
2128
- maximumAmount: i((V = e.mayaAppDepositGatewaySettings) == null ? void 0 : V.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
- androidEnabled: ((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.androidEnabled) ?? !1,
2134
- iosEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2135
- webEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2166
+ androidEnabled: ((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !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,21 @@ 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
- var It = { VITE_AUTH_DEVELOPMENT_URL: "https://auth.development.opexa.io", VITE_AUTH_PRODUCTION_URL: "https://auth.opexa.io", VITE_GAME_DEVELOPMENT_URL: "https://game.development.opexa.io/graphql", VITE_GAME_PRODUCTION_URL: "https://game.opexa.io/graphql", VITE_FILE_DEVELOPMENT_URL: "https://file.development.opexa.io/graphql", VITE_FILE_PRODUCTION_URL: "https://file.opexa.io/graphql", VITE_REPORT_DEVELOPMENT_URL: "https://report.development.opexa.io/graphql", VITE_REPORT_PRODUCTION_URL: "https://report.opexa.io/graphql", VITE_WALLET_DEVELOPMENT_URL: "https://wallet.development.opexa.io/graphql", VITE_WALLET_PRODUCTION_URL: "https://wallet.opexa.io/graphql", VITE_ACCOUNT_DEVELOPMENT_URL: "https://account.development.opexa.io/graphql", VITE_ACCOUNT_PRODUCTION_URL: "https://account.opexa.io/graphql", VITE_PORTAL_DEVELOPMENT_URL: "https://portal.development.opexa.io/graphql", VITE_PORTAL_PRODUCTION_URL: "https://portal.opexa.io/graphql", VITE_STATIC_DEVELOPMENT_URL: "https://static.development.opexa.io", VITE_STATIC_PRODUCTION_URL: "https://static.opexa.io", VITE_CMS_PORTAL_DEVELOPMENT_URL: "https://portal-api.opexacms.io/v1", BASE_URL: "/", MODE: "library", DEV: !1, PROD: !0, SSR: !1 };
2457
2498
  class Rt {
2458
2499
  constructor(e) {
2459
2500
  m(this, "gameService");
@@ -2467,13 +2508,13 @@ class Rt {
2467
2508
  m(this, "transformer");
2468
2509
  m(this, "logger");
2469
2510
  const t = e.environment === "development";
2470
- this.sessionManager = new vt({
2511
+ this.sessionManager = new Nt({
2471
2512
  authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
2472
2513
  walletUrl: t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2473
2514
  platform: e.platform,
2474
2515
  log: e.log
2475
- }), this.cmsPortalService = new bt({
2476
- url: t ? "https://portal-api.opexacms.io/v1" : It.VITE_CMS_PORTAL_PRODUCTION_URL,
2516
+ }), this.cmsPortalService = new At({
2517
+ url: "https://portal-api.opexacms.io/v1",
2477
2518
  site: e.site,
2478
2519
  platform: e.sitePlatform
2479
2520
  });
@@ -2486,37 +2527,37 @@ class Rt {
2486
2527
  }
2487
2528
  }
2488
2529
  };
2489
- this.gameService = new At(
2490
- new b(
2530
+ this.gameService = new kt(
2531
+ new E(
2491
2532
  t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
2492
2533
  a
2493
2534
  )
2494
- ), this.fileService = new gt(
2495
- new b(
2535
+ ), this.fileService = new bt(
2536
+ new E(
2496
2537
  t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
2497
2538
  a
2498
2539
  )
2499
2540
  ), this.walletService = new Ae(
2500
- new b(
2541
+ new E(
2501
2542
  t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2502
2543
  a
2503
2544
  )
2504
- ), this.reportService = new Et(
2505
- new b(
2545
+ ), this.reportService = new St(
2546
+ new E(
2506
2547
  t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
2507
2548
  a
2508
2549
  )
2509
- ), this.accountService = new wt(
2510
- new b(
2550
+ ), this.accountService = new yt(
2551
+ new E(
2511
2552
  t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
2512
2553
  a
2513
2554
  )
2514
2555
  ), this.portalService = new _t(
2515
- new b(
2556
+ new E(
2516
2557
  t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
2517
2558
  a
2518
2559
  )
2519
- ), this.transformer = new Nt(e), this.logger = new _e({
2560
+ ), this.transformer = new Mt(e), this.logger = new ke({
2520
2561
  enabled: e.log ?? !1
2521
2562
  });
2522
2563
  }
@@ -2632,7 +2673,7 @@ class Rt {
2632
2673
  * ```
2633
2674
  */
2634
2675
  watchSession(e) {
2635
- const t = kt(e.interval ?? 3e4, 3e4, 6e4);
2676
+ const t = Ct(e.interval ?? 3e4, 3e4, 6e4);
2636
2677
  let a = null;
2637
2678
  const r = () => setTimeout(async () => {
2638
2679
  await this.sessionManager.verify() || await e.onInvalid(), a = r();
@@ -2715,7 +2756,7 @@ class Rt {
2715
2756
  * ```
2716
2757
  */
2717
2758
  async createAccount(e) {
2718
- const t = e.id ?? E.generate(S.Account).toString(), a = await this.accountService.registerMemberAccount({
2759
+ const t = e.id ?? b.generate(S.Account).toString(), a = await this.accountService.registerMemberAccount({
2719
2760
  input: {
2720
2761
  id: t,
2721
2762
  name: e.name,
@@ -2797,7 +2838,7 @@ class Rt {
2797
2838
  * ```
2798
2839
  */
2799
2840
  async submitVerificationDetails(e) {
2800
- const t = e.id ?? E.generate(S.Verification).toString(), a = await this.accountService.createMemberVerification({
2841
+ const t = e.id ?? b.generate(S.Verification).toString(), a = await this.accountService.createMemberVerification({
2801
2842
  input: {
2802
2843
  id: t,
2803
2844
  ...e
@@ -2921,7 +2962,7 @@ class Rt {
2921
2962
  * ```
2922
2963
  */
2923
2964
  async createWithdrawal(e) {
2924
- const t = e.id ?? E.generate(S.Withdrawal).toString();
2965
+ const t = e.id ?? b.generate(S.Withdrawal).toString();
2925
2966
  if (e.type === "BANK") {
2926
2967
  const a = await this.walletService.createBankWithdrawal({
2927
2968
  input: {
@@ -3007,7 +3048,7 @@ class Rt {
3007
3048
  * ```
3008
3049
  */
3009
3050
  async createDeposit(e) {
3010
- const t = e.id ?? E.generate(S.Deposit).toString();
3051
+ const t = e.id ?? b.generate(S.Deposit).toString();
3011
3052
  if (e.type === "MAYA") {
3012
3053
  const a = await this.walletService.createMayaDeposit({
3013
3054
  input: {
@@ -3295,12 +3336,12 @@ class Rt {
3295
3336
  * ```
3296
3337
  */
3297
3338
  async createGameSession(e) {
3298
- const t = e.id ?? E.generate(S.GameSession).toString(), a = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
3339
+ const t = e.id ?? b.generate(S.GameSession).toString(), a = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
3299
3340
  return a.ok ? { ok: !0, data: { id: t } } : a;
3300
3341
  }
3301
3342
  /** @deprecated use `createGameSession__next` */
3302
3343
  async createGameSession__legacy(e) {
3303
- const t = e.id ?? E.generate(S.GameSession).toString(), a = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
3344
+ const t = e.id ?? b.generate(S.GameSession).toString(), a = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
3304
3345
  return a.ok ? { ok: !0, data: { id: t } } : a;
3305
3346
  }
3306
3347
  async createGameSession__next(e) {
@@ -3318,7 +3359,7 @@ class Rt {
3318
3359
  type: a,
3319
3360
  provider: r,
3320
3361
  externalId: s
3321
- } = t.data, c = a === "SPORTS" ? e.id ?? (await E.generateFromKey(S.Game, `SPORTS:${r}`)).toString() : e.id ?? E.generate(S.GameSession).toString(), l = [
3362
+ } = t.data, c = a === "SPORTS" ? e.id ?? (await b.generateFromKey(S.Game, `SPORTS:${r}`)).toString() : e.id ?? b.generate(S.GameSession).toString(), l = [
3322
3363
  /**/
3323
3364
  "RTG",
3324
3365
  "DARWIN",
@@ -3370,7 +3411,7 @@ class Rt {
3370
3411
  * ```
3371
3412
  */
3372
3413
  async uploadImageFile(e) {
3373
- const t = e.id ?? E.generate(S.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3414
+ const t = e.id ?? b.generate(S.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3374
3415
  input: {
3375
3416
  id: t,
3376
3417
  file: e.file
@@ -3397,6 +3438,21 @@ class Rt {
3397
3438
  }
3398
3439
  });
3399
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
+ }
3400
3456
  addAreaCode(e) {
3401
3457
  return e.startsWith("+63") ? e : e.startsWith("63") ? `+${e}` : e.startsWith("0") ? `+63${e.substring(1)}` : `+63${e}`;
3402
3458
  }