@opexa/portal-sdk 0.0.14 → 0.0.16

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,9 +1,9 @@
1
- var ge = Object.defineProperty;
2
- var Ee = (i, e, t) => e in i ? ge(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var m = (i, e, t) => Ee(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { ObjectId as w } from "@opexa/object-id";
5
- import { ObjectId as vt } from "@opexa/object-id";
6
- const y = {
1
+ var be = Object.defineProperty;
2
+ var ge = (n, e, t) => e in n ? be(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var d = (n, e, t) => ge(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ObjectId as h } from "@opexa/object-id";
5
+ import { ObjectId as It } from "@opexa/object-id";
6
+ const w = {
7
7
  Account: 8,
8
8
  Deposit: 9,
9
9
  Withdrawal: 14,
@@ -12,15 +12,15 @@ const y = {
12
12
  GameSession: 204,
13
13
  MayaSession: 230
14
14
  };
15
- function o(i, ...e) {
15
+ function i(n, ...e) {
16
16
  let t = "";
17
- for (const [a, r] of i.entries()) {
17
+ for (const [a, r] of n.entries()) {
18
18
  const s = e.at(a) ?? "";
19
19
  t = `${t}${r}${s}`;
20
20
  }
21
21
  return t.trim();
22
22
  }
23
- const Ae = o`
23
+ const Ee = i`
24
24
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
25
25
  announcements(first: $first, after: $after, filter: $filter) {
26
26
  edges {
@@ -46,14 +46,14 @@ const Ae = o`
46
46
  }
47
47
  }
48
48
  }
49
- `, k = o`
49
+ `, k = i`
50
50
  fragment GameFragment on Game {
51
51
  id
52
52
  type
53
53
  name
54
54
  provider
55
55
  }
56
- `, Se = o`
56
+ `, Ae = i`
57
57
  ${k}
58
58
 
59
59
  query Game($id: ObjectId!) {
@@ -63,7 +63,7 @@ const Ae = o`
63
63
  }
64
64
  }
65
65
  }
66
- `, ke = o`
66
+ `, Se = i`
67
67
  ${k}
68
68
 
69
69
  query Games($after: Cursor, $first: Int, $filter: GameFilterInput) {
@@ -83,7 +83,7 @@ const Ae = o`
83
83
  }
84
84
  }
85
85
  }
86
- `, Ce = o`
86
+ `, ke = i`
87
87
  ${k}
88
88
 
89
89
  query GamesByName($search: String!, $filter: GameFilterInput, $first: Int) {
@@ -91,7 +91,7 @@ const Ae = o`
91
91
  ...GameFragment
92
92
  }
93
93
  }
94
- `, Te = o`
94
+ `, Ce = i`
95
95
  query GameSession($id: ObjectId!) {
96
96
  node(id: $id) {
97
97
  ... on GameSession {
@@ -103,7 +103,7 @@ const Ae = o`
103
103
  }
104
104
  }
105
105
  }
106
- `, _e = o`
106
+ `, Te = i`
107
107
  mutation CreateGameSession($input: CreateGameSessionInput!) {
108
108
  createGameSession(input: $input) {
109
109
  ... on GameDoesNotExistError {
@@ -111,11 +111,11 @@ const Ae = o`
111
111
  }
112
112
  }
113
113
  }
114
- `, ve = o`
114
+ `, _e = i`
115
115
  mutation EndGameSession($input: EndGameSessionInput!) {
116
116
  endGameSession(input: $input)
117
117
  }
118
- `, Me = o`
118
+ `, ve = i`
119
119
  ${k}
120
120
 
121
121
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
@@ -155,7 +155,7 @@ const Ae = o`
155
155
  }
156
156
  }
157
157
  }
158
- `, De = o`
158
+ `, Me = i`
159
159
  query LatestBetRecords {
160
160
  latestBetRecords {
161
161
  id
@@ -175,14 +175,14 @@ const Ae = o`
175
175
  }
176
176
 
177
177
  ${k}
178
- `, T = o`
178
+ `, T = i`
179
179
  fragment FileFragment on File {
180
180
  id
181
181
  url
182
182
  status
183
183
  dateTimeCreated
184
184
  }
185
- `, he = o`
185
+ `, De = i`
186
186
  ${T}
187
187
 
188
188
  query File($id: ObjectId!) {
@@ -192,8 +192,7 @@ const Ae = o`
192
192
  }
193
193
  }
194
194
  }
195
- `;
196
- o`
195
+ `, Ne = i`
197
196
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
198
197
  uploadPrivateImageFile(input: $input) {
199
198
  ... on FileFormatNotSupportedError {
@@ -207,8 +206,7 @@ o`
207
206
  }
208
207
  }
209
208
  }
210
- `;
211
- const we = o`
209
+ `, he = i`
212
210
  ${T}
213
211
 
214
212
  fragment CashbackFragment on Cashback {
@@ -224,15 +222,15 @@ const we = o`
224
222
  dateTimeCreated
225
223
  dateTimeLastUpdated
226
224
  }
227
- `, Ne = o`
228
- ${we}
225
+ `, Ie = i`
226
+ ${he}
229
227
 
230
228
  query Cashbacks {
231
229
  cashbacks {
232
230
  ...CashbackFragment
233
231
  }
234
232
  }
235
- `, v = o`
233
+ `, v = i`
236
234
  ${T}
237
235
 
238
236
  fragment PromoFragment on Promo {
@@ -251,7 +249,7 @@ const we = o`
251
249
  dateTimeCreated
252
250
  dateTimeLastUpdated
253
251
  }
254
- `, Ie = o`
252
+ `, Re = i`
255
253
  ${v}
256
254
 
257
255
  query Promos {
@@ -259,7 +257,7 @@ const we = o`
259
257
  ...PromoFragment
260
258
  }
261
259
  }
262
- `, Re = o`
260
+ `, xe = i`
263
261
  ${v}
264
262
 
265
263
  query AvailablePromos($filter: PromoFilterInput) {
@@ -267,7 +265,7 @@ const we = o`
267
265
  ...PromoFragment
268
266
  }
269
267
  }
270
- `, xe = o`
268
+ `, Pe = i`
271
269
  ${v}
272
270
 
273
271
  query Bonus {
@@ -296,8 +294,8 @@ const we = o`
296
294
  dateTimeLastUpdated
297
295
  }
298
296
  }
299
- `, Pe = o`
300
- ${we}
297
+ `, Ge = i`
298
+ ${he}
301
299
 
302
300
  query CashbackBonuses {
303
301
  cashbackBonuses {
@@ -310,7 +308,7 @@ const we = o`
310
308
  dateTimeLastUpdated
311
309
  }
312
310
  }
313
- `, Ge = o`
311
+ `, $e = i`
314
312
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
315
313
  claimCashbackBonus(input: $input) {
316
314
  ... on CashbackBonusDoesNotExistError {
@@ -318,7 +316,7 @@ const we = o`
318
316
  }
319
317
  }
320
318
  }
321
- `, $e = o`
319
+ `, Be = i`
322
320
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
323
321
  member {
324
322
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -347,7 +345,7 @@ const we = o`
347
345
  }
348
346
  }
349
347
  }
350
- `, Be = o`
348
+ `, We = i`
351
349
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
352
350
  createGCashDeposit(input: $input) {
353
351
  ... on DepositPromoMaximumAmountExceededError {
@@ -376,7 +374,7 @@ const we = o`
376
374
  }
377
375
  }
378
376
  }
379
- `, We = o`
377
+ `, Ue = i`
380
378
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
381
379
  createMayaDeposit(input: $input) {
382
380
  ... on DepositPromoMaximumAmountExceededError {
@@ -405,7 +403,7 @@ const we = o`
405
403
  }
406
404
  }
407
405
  }
408
- `, Ue = o`
406
+ `, Oe = i`
409
407
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
410
408
  createMayaAppDeposit(input: $input) {
411
409
  ... on DepositPromoMaximumAmountExceededError {
@@ -434,7 +432,7 @@ const we = o`
434
432
  }
435
433
  }
436
434
  }
437
- `, Oe = o`
435
+ `, qe = i`
438
436
  query Deposit($id: ObjectId!) {
439
437
  node(id: $id) {
440
438
  ... on GCashDeposit {
@@ -474,19 +472,19 @@ const we = o`
474
472
  }
475
473
  }
476
474
  }
477
- `, qe = o`
475
+ `, Fe = i`
478
476
  query DepositsCount {
479
477
  member {
480
478
  depositsCount
481
479
  }
482
480
  }
483
- `, Fe = o`
481
+ `, Le = i`
484
482
  query Member {
485
483
  member {
486
484
  dateTimeLastActive
487
485
  }
488
486
  }
489
- `, Le = o`
487
+ `, Ve = i`
490
488
  query MemberAccount {
491
489
  memberAccount: self {
492
490
  ... on MemberAccount {
@@ -510,7 +508,7 @@ const we = o`
510
508
  }
511
509
  }
512
510
  }
513
- `, Ve = o`
511
+ `, Ye = i`
514
512
  ${T}
515
513
 
516
514
  query MemberVerification {
@@ -534,7 +532,7 @@ const we = o`
534
532
  }
535
533
  }
536
534
  }
537
- `, Ye = o`
535
+ `, He = i`
538
536
  mutation RegisterMemberAccount(
539
537
  $input: RegisterMemberAccountInput!
540
538
  $referralCode: String
@@ -570,7 +568,7 @@ const we = o`
570
568
  }
571
569
  }
572
570
  }
573
- `, He = o`
571
+ `, je = i`
574
572
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
575
573
  updateMemberAccount(input: $input) {
576
574
  ... on AccountNameNotAvailableError {
@@ -596,7 +594,7 @@ const we = o`
596
594
  }
597
595
  }
598
596
  }
599
- `, je = o`
597
+ `, Qe = i`
600
598
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
601
599
  resetPassword(input: $input, verificationCode: $verificationCode) {
602
600
  ... on AccountNotFoundError {
@@ -607,11 +605,11 @@ const we = o`
607
605
  }
608
606
  }
609
607
  }
610
- `, Qe = o`
608
+ `, Ke = i`
611
609
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
612
610
  deleteMemberAccount(input: $input)
613
611
  }
614
- `, Ke = o`
612
+ `, ze = i`
615
613
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
616
614
  sendVerificationCode(input: $input) {
617
615
  ... on InvalidPlatformError {
@@ -622,7 +620,7 @@ const we = o`
622
620
  }
623
621
  }
624
622
  }
625
- `, ze = o`
623
+ `, Je = i`
626
624
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
627
625
  verifyMobileNumber(input: $input) {
628
626
  ... on InvalidSMSVerificationCodeError {
@@ -633,7 +631,7 @@ const we = o`
633
631
  }
634
632
  }
635
633
  }
636
- `, Je = o`
634
+ `, Xe = i`
637
635
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
638
636
  createMemberVerification(input: $input) {
639
637
  ... on FileDoesNotExistError {
@@ -647,7 +645,7 @@ const we = o`
647
645
  }
648
646
  }
649
647
  }
650
- `, Xe = o`
648
+ `, Ze = i`
651
649
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
652
650
  updateMemberVerification(input: $input) {
653
651
  ... on FileDoesNotExistError {
@@ -664,7 +662,7 @@ const we = o`
664
662
  }
665
663
  }
666
664
  }
667
- `, Ze = o`
665
+ `, et = i`
668
666
  query ProfileCompletion {
669
667
  profileCompletion {
670
668
  completionPercentage
@@ -675,7 +673,7 @@ const we = o`
675
673
  accountPassword
676
674
  }
677
675
  }
678
- `, et = o`
676
+ `, tt = i`
679
677
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
680
678
  minimumAmount
681
679
  maximumAmount
@@ -729,7 +727,7 @@ const we = o`
729
727
  multiplier
730
728
  }
731
729
  }
732
- `, tt = o`
730
+ `, at = i`
733
731
  query PointsWallet {
734
732
  pointsWallet {
735
733
  id
@@ -738,7 +736,7 @@ const we = o`
738
736
  dateTimeCreated
739
737
  }
740
738
  }
741
- `, at = o`
739
+ `, rt = i`
742
740
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
743
741
  pointsToCashConversion(input: $input) {
744
742
  ... on InsufficientPointsError {
@@ -746,7 +744,7 @@ const we = o`
746
744
  }
747
745
  }
748
746
  }
749
- `, rt = o`
747
+ `, nt = i`
750
748
  query MayaSession($id: ObjectId!) {
751
749
  mayaSession(id: $id) {
752
750
  id
@@ -754,7 +752,7 @@ const we = o`
754
752
  dateTimeCreated
755
753
  }
756
754
  }
757
- `, nt = o`
755
+ `, ot = i`
758
756
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
759
757
  member {
760
758
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -780,7 +778,7 @@ const we = o`
780
778
  }
781
779
  }
782
780
  }
783
- `, ot = o`
781
+ `, it = i`
784
782
  query Wallet {
785
783
  wallet {
786
784
  id
@@ -790,7 +788,7 @@ const we = o`
790
788
  dateTimeLastUpdated
791
789
  }
792
790
  }
793
- `, it = o`
791
+ `, st = i`
794
792
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
795
793
  member {
796
794
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -857,7 +855,7 @@ const we = o`
857
855
  }
858
856
  }
859
857
  }
860
- `, st = o`
858
+ `, mt = i`
861
859
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
862
860
  createGCashWithdrawal(input: $input) {
863
861
  ... on AccountNotVerifiedError {
@@ -880,7 +878,7 @@ const we = o`
880
878
  }
881
879
  }
882
880
  }
883
- `, mt = o`
881
+ `, dt = i`
884
882
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
885
883
  createMayaWithdrawal(input: $input) {
886
884
  ... on AccountNotVerifiedError {
@@ -903,7 +901,7 @@ const we = o`
903
901
  }
904
902
  }
905
903
  }
906
- `, dt = o`
904
+ `, ct = i`
907
905
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
908
906
  createMayaAppWithdrawal(input: $input) {
909
907
  ... on AccountNotVerifiedError {
@@ -923,7 +921,7 @@ const we = o`
923
921
  }
924
922
  }
925
923
  }
926
- `, ct = o`
924
+ `, ut = i`
927
925
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
928
926
  createBankWithdrawal(input: $input) {
929
927
  ... on MobileNumberNotVerifiedError {
@@ -946,14 +944,14 @@ const we = o`
946
944
  }
947
945
  }
948
946
  }
949
- `, ut = o`
947
+ `, lt = i`
950
948
  query RemainingDailyWithdrawalsCount {
951
949
  remainingDailyWithdrawalsCount
952
950
  }
953
951
  `;
954
- function d(i) {
952
+ function c(n) {
955
953
  return {
956
- name: i,
954
+ name: n,
957
955
  message: {
958
956
  AccountNameNotAvailableError: "Username is no longer available",
959
957
  AccountNotFoundError: "Account does not exist",
@@ -999,42 +997,42 @@ function d(i) {
999
997
  InvalidToken: "Invalid token",
1000
998
  InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
1001
999
  SessionExpired: "Session expired"
1002
- }[i]
1000
+ }[n]
1003
1001
  };
1004
1002
  }
1005
- class lt {
1003
+ class pt {
1006
1004
  constructor(e) {
1007
- m(this, "client");
1005
+ d(this, "client");
1008
1006
  this.client = e;
1009
1007
  }
1010
1008
  /** aka `Query.self` */
1011
1009
  async memberAccount() {
1012
- const e = await this.client.request(Le);
1010
+ const e = await this.client.request(Ve);
1013
1011
  return e.ok ? {
1014
1012
  ok: !0,
1015
1013
  data: e.data.memberAccount
1016
1014
  } : e;
1017
1015
  }
1018
1016
  async registerMemberAccount(e) {
1019
- const t = await this.client.request(Ye, e);
1017
+ const t = await this.client.request(He, e);
1020
1018
  return t.ok ? t.data.registerMemberAccount ? {
1021
1019
  ok: !1,
1022
- error: d(t.data.registerMemberAccount.__typename)
1020
+ error: c(t.data.registerMemberAccount.__typename)
1023
1021
  } : {
1024
1022
  ok: !0
1025
1023
  } : t;
1026
1024
  }
1027
1025
  async updateMemberAccount(e) {
1028
- const t = await this.client.request(He, e);
1026
+ const t = await this.client.request(je, e);
1029
1027
  return t.ok ? t.data.updateMemberAccount ? {
1030
1028
  ok: !1,
1031
- error: d(t.data.updateMemberAccount.__typename)
1029
+ error: c(t.data.updateMemberAccount.__typename)
1032
1030
  } : {
1033
1031
  ok: !0
1034
1032
  } : t;
1035
1033
  }
1036
1034
  async deleteMemberAccount(e) {
1037
- const t = await this.client.request(Qe, e);
1035
+ const t = await this.client.request(Ke, e);
1038
1036
  return t.ok ? t.data.deleteMemberAccount ? {
1039
1037
  ok: !0
1040
1038
  } : {
@@ -1047,61 +1045,61 @@ class lt {
1047
1045
  }
1048
1046
  async resetPassword(e) {
1049
1047
  const t = await this.client.request(
1050
- je,
1048
+ Qe,
1051
1049
  e
1052
1050
  );
1053
1051
  return t.ok ? t.data.resetPassword ? {
1054
1052
  ok: !1,
1055
- error: d(t.data.resetPassword.__typename)
1053
+ error: c(t.data.resetPassword.__typename)
1056
1054
  } : {
1057
1055
  ok: !0
1058
1056
  } : t;
1059
1057
  }
1060
1058
  async profileCompletion() {
1061
- const e = await this.client.request(Ze);
1059
+ const e = await this.client.request(et);
1062
1060
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1063
1061
  }
1064
1062
  async platform() {
1065
- return await this.client.request(et);
1063
+ return await this.client.request(tt);
1066
1064
  }
1067
1065
  async sendVerificationCode(e) {
1068
- const t = await this.client.request(Ke, e);
1066
+ const t = await this.client.request(ze, e);
1069
1067
  return t.ok ? t.data.sendVerificationCode ? {
1070
1068
  ok: !1,
1071
- error: d(t.data.sendVerificationCode.__typename)
1069
+ error: c(t.data.sendVerificationCode.__typename)
1072
1070
  } : {
1073
1071
  ok: !0
1074
1072
  } : t;
1075
1073
  }
1076
1074
  async verifyMobileNumber(e) {
1077
- const t = await this.client.request(ze, e);
1075
+ const t = await this.client.request(Je, e);
1078
1076
  return t.ok ? t.data.verifyMobileNumber ? {
1079
1077
  ok: !1,
1080
- error: d(t.data.verifyMobileNumber.__typename)
1078
+ error: c(t.data.verifyMobileNumber.__typename)
1081
1079
  } : {
1082
1080
  ok: !0
1083
1081
  } : t;
1084
1082
  }
1085
1083
  async createMemberVerification(e) {
1086
- const t = await this.client.request(Je, e);
1084
+ const t = await this.client.request(Xe, e);
1087
1085
  return t.ok ? t.data.createMemberVerification ? {
1088
1086
  ok: !1,
1089
- error: d(t.data.createMemberVerification.__typename)
1087
+ error: c(t.data.createMemberVerification.__typename)
1090
1088
  } : {
1091
1089
  ok: !0
1092
1090
  } : t;
1093
1091
  }
1094
1092
  async updateMemberVerification(e) {
1095
- const t = await this.client.request(Xe, e);
1093
+ const t = await this.client.request(Ze, e);
1096
1094
  return t.ok ? t.data.updateMemberVerification ? {
1097
1095
  ok: !1,
1098
- error: d(t.data.updateMemberVerification.__typename)
1096
+ error: c(t.data.updateMemberVerification.__typename)
1099
1097
  } : {
1100
1098
  ok: !0
1101
1099
  } : t;
1102
1100
  }
1103
1101
  async memberVerification() {
1104
- const e = await this.client.request(Ve);
1102
+ const e = await this.client.request(Ye);
1105
1103
  return e.ok ? {
1106
1104
  ok: !0,
1107
1105
  data: e.data.memberAccount.verification
@@ -1109,7 +1107,7 @@ class lt {
1109
1107
  }
1110
1108
  async announcements(e) {
1111
1109
  const t = await this.client.request(
1112
- Ae,
1110
+ Ee,
1113
1111
  e
1114
1112
  );
1115
1113
  return t.ok ? {
@@ -1118,8 +1116,8 @@ class lt {
1118
1116
  } : t;
1119
1117
  }
1120
1118
  }
1121
- function u(i, e) {
1122
- const t = _[i] ? _[i] : _[500];
1119
+ function u(n, e) {
1120
+ const t = _[n] ? _[n] : _[500];
1123
1121
  return {
1124
1122
  name: t.name,
1125
1123
  message: e ?? t.message
@@ -1134,10 +1132,10 @@ const _ = {
1134
1132
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1135
1133
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1136
1134
  };
1137
- class pt {
1135
+ class ft {
1138
1136
  constructor(e) {
1139
- m(this, "url");
1140
- m(this, "platform");
1137
+ d(this, "url");
1138
+ d(this, "platform");
1141
1139
  this.url = e.url, this.platform = e.platform;
1142
1140
  }
1143
1141
  async createSession(e) {
@@ -1172,7 +1170,7 @@ class pt {
1172
1170
  data: r
1173
1171
  } : r.code === "ACCOUNT_BLACKLISTED" ? {
1174
1172
  ok: !1,
1175
- error: d("AccountBlacklisted")
1173
+ error: c("AccountBlacklisted")
1176
1174
  } : {
1177
1175
  ok: !1,
1178
1176
  error: u(a.status)
@@ -1205,7 +1203,7 @@ class pt {
1205
1203
  data: r
1206
1204
  } : a.status === 401 || a.status === 403 ? {
1207
1205
  ok: !1,
1208
- error: d("InvalidTokenOrSecretAnswer")
1206
+ error: c("InvalidTokenOrSecretAnswer")
1209
1207
  } : {
1210
1208
  ok: !1,
1211
1209
  error: u(a.status)
@@ -1235,10 +1233,10 @@ class pt {
1235
1233
  data: a
1236
1234
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1237
1235
  ok: !1,
1238
- error: d("AccountBlacklisted")
1236
+ error: c("AccountBlacklisted")
1239
1237
  } : t.status === 403 || t.status === 401 ? {
1240
1238
  ok: !1,
1241
- error: d("InvalidToken")
1239
+ error: c("InvalidToken")
1242
1240
  } : {
1243
1241
  ok: !1,
1244
1242
  error: u(t.status)
@@ -1284,65 +1282,65 @@ class pt {
1284
1282
  }
1285
1283
  class ht {
1286
1284
  constructor(e) {
1287
- m(this, "client");
1285
+ d(this, "client");
1288
1286
  this.client = e;
1289
1287
  }
1290
1288
  async file(e) {
1291
- const t = await this.client.request(he, e);
1289
+ const t = await this.client.request(De, e);
1292
1290
  return t.ok ? {
1293
1291
  ok: !0,
1294
1292
  data: t.data.node
1295
1293
  } : t;
1296
1294
  }
1297
1295
  async uploadPrivateImageFile(e) {
1298
- const t = await this.client.upload(he, e);
1296
+ const t = await this.client.upload(Ne, e);
1299
1297
  return t.ok ? t.data.uploadPrivateImageFile ? {
1300
1298
  ok: !1,
1301
- error: d(t.data.uploadPrivateImageFile.__typename)
1299
+ error: c(t.data.uploadPrivateImageFile.__typename)
1302
1300
  } : {
1303
1301
  ok: !0
1304
1302
  } : t;
1305
1303
  }
1306
1304
  }
1307
- class ye {
1305
+ class we {
1308
1306
  constructor(e) {
1309
- m(this, "client");
1307
+ d(this, "client");
1310
1308
  this.client = e;
1311
1309
  }
1312
1310
  async game(e) {
1313
- const t = await this.client.request(Se, e);
1311
+ const t = await this.client.request(Ae, e);
1314
1312
  return t.ok ? { ok: !0, data: t.data.node } : t;
1315
1313
  }
1316
1314
  async games(e) {
1317
- const t = await this.client.request(ke, e);
1315
+ const t = await this.client.request(Se, e);
1318
1316
  return t.ok ? { ok: !0, data: t.data.games } : t;
1319
1317
  }
1320
1318
  async gamesByName(e) {
1321
1319
  const t = await this.client.request(
1322
- Ce,
1320
+ ke,
1323
1321
  e
1324
1322
  );
1325
1323
  return t.ok ? { ok: !0, data: t.data.gamesByName } : t;
1326
1324
  }
1327
1325
  async gameSession(e) {
1328
1326
  const t = await this.client.request(
1329
- Te,
1327
+ Ce,
1330
1328
  e
1331
1329
  );
1332
1330
  return t.ok ? { ok: !0, data: t.data.node } : t;
1333
1331
  }
1334
1332
  async createGameSession(e) {
1335
- const t = await this.client.request(_e, e);
1333
+ const t = await this.client.request(Te, e);
1336
1334
  return t.ok ? t.data.createGameSession ? {
1337
1335
  ok: !1,
1338
- error: d(t.data.createGameSession.__typename)
1336
+ error: c(t.data.createGameSession.__typename)
1339
1337
  } : {
1340
1338
  ok: !0
1341
1339
  } : t;
1342
1340
  }
1343
1341
  async endGameSession(e) {
1344
1342
  const t = await this.client.request(
1345
- ve,
1343
+ _e,
1346
1344
  e
1347
1345
  );
1348
1346
  return t.ok ? t.data.endGameSession ? {
@@ -1356,48 +1354,48 @@ class ye {
1356
1354
  } : t;
1357
1355
  }
1358
1356
  }
1359
- class ft {
1357
+ class wt {
1360
1358
  constructor(e) {
1361
- m(this, "client");
1359
+ d(this, "client");
1362
1360
  this.client = e;
1363
1361
  }
1364
1362
  async betRecords(e) {
1365
1363
  const t = await this.client.request(
1366
- Me,
1364
+ ve,
1367
1365
  e
1368
1366
  );
1369
1367
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1370
1368
  }
1371
1369
  async transactionRecords(e) {
1372
- const t = await this.client.request(nt, e);
1370
+ const t = await this.client.request(ot, e);
1373
1371
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1374
1372
  }
1375
1373
  async withdrawalRecords(e) {
1376
1374
  const t = await this.client.request(
1377
- it,
1375
+ st,
1378
1376
  e
1379
1377
  );
1380
1378
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1381
1379
  }
1382
1380
  async depositRecords(e) {
1383
1381
  const t = await this.client.request(
1384
- $e,
1382
+ Be,
1385
1383
  e
1386
1384
  );
1387
1385
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1388
1386
  }
1389
1387
  async depositsCount() {
1390
- const e = await this.client.request(qe);
1388
+ const e = await this.client.request(Fe);
1391
1389
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1392
1390
  }
1393
1391
  async member() {
1394
- const e = await this.client.request(Fe);
1392
+ const e = await this.client.request(Le);
1395
1393
  return e.ok ? { ok: e.ok, data: e.data.member } : e;
1396
1394
  }
1397
1395
  }
1398
- class wt {
1396
+ class yt {
1399
1397
  constructor(e) {
1400
- m(this, "url");
1398
+ d(this, "url");
1401
1399
  this.url = e.url;
1402
1400
  }
1403
1401
  gameThumbnails(e) {
@@ -1407,31 +1405,31 @@ class wt {
1407
1405
  ];
1408
1406
  }
1409
1407
  }
1410
- class yt extends ye {
1408
+ class bt extends we {
1411
1409
  async promos() {
1412
- const e = await this.client.request(Ie);
1410
+ const e = await this.client.request(Re);
1413
1411
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1414
1412
  }
1415
1413
  async cashbacks() {
1416
- const e = await this.client.request(Ne);
1414
+ const e = await this.client.request(Ie);
1417
1415
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1418
1416
  }
1419
1417
  async availablePromos(e) {
1420
1418
  const t = await this.client.request(
1421
- Re,
1419
+ xe,
1422
1420
  e
1423
1421
  );
1424
1422
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1425
1423
  }
1426
1424
  async cashbackBonuses() {
1427
- const e = await this.client.request(Pe);
1425
+ const e = await this.client.request(Ge);
1428
1426
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1429
1427
  }
1430
1428
  async claimCashbackBonus(e) {
1431
- const t = await this.client.request(Ge, e);
1429
+ const t = await this.client.request($e, e);
1432
1430
  return t.ok ? t.data.claimCashbackBonus ? {
1433
1431
  ok: !1,
1434
- error: d(t.data.claimCashbackBonus.__typename)
1432
+ error: c(t.data.claimCashbackBonus.__typename)
1435
1433
  } : {
1436
1434
  ok: !0
1437
1435
  } : {
@@ -1440,128 +1438,147 @@ class yt extends ye {
1440
1438
  };
1441
1439
  }
1442
1440
  async bonus() {
1443
- const e = await this.client.request(xe);
1441
+ const e = await this.client.request(Pe);
1444
1442
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1445
1443
  }
1446
1444
  async wallet() {
1447
- const e = await this.client.request(ot);
1445
+ const e = await this.client.request(it);
1448
1446
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1449
1447
  }
1450
1448
  async deposit(e) {
1451
1449
  const t = await this.client.request(
1452
- Oe,
1450
+ qe,
1453
1451
  e
1454
1452
  );
1455
1453
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
1456
1454
  }
1457
1455
  async createGCashDeposit(e) {
1458
- const t = await this.client.request(Be, e);
1456
+ const t = await this.client.request(We, e);
1459
1457
  return t.ok ? t.data.createGCashDeposit ? {
1460
1458
  ok: !1,
1461
- error: d(t.data.createGCashDeposit.__typename)
1459
+ error: c(t.data.createGCashDeposit.__typename)
1462
1460
  } : {
1463
1461
  ok: !0
1464
1462
  } : t;
1465
1463
  }
1466
1464
  async createMayaDeposit(e) {
1467
- const t = await this.client.request(We, e);
1465
+ const t = await this.client.request(Ue, e);
1468
1466
  return t.ok ? t.data.createMayaDeposit ? {
1469
1467
  ok: !1,
1470
- error: d(t.data.createMayaDeposit.__typename)
1468
+ error: c(t.data.createMayaDeposit.__typename)
1471
1469
  } : {
1472
1470
  ok: !0
1473
1471
  } : t;
1474
1472
  }
1475
1473
  async createMayaAppDeposit(e) {
1476
- const t = await this.client.request(Ue, e);
1474
+ const t = await this.client.request(Oe, e);
1477
1475
  return t.ok ? t.data.createMayaAppDeposit ? {
1478
1476
  ok: !1,
1479
- error: d(t.data.createMayaAppDeposit.__typename)
1477
+ error: c(t.data.createMayaAppDeposit.__typename)
1480
1478
  } : {
1481
1479
  ok: !0
1482
1480
  } : t;
1483
1481
  }
1484
1482
  async createGCashWithdrawal(e) {
1485
- const t = await this.client.request(st, e);
1483
+ const t = await this.client.request(mt, e);
1486
1484
  return t.ok ? t.data.createGCashWithdrawal ? {
1487
1485
  ok: !1,
1488
- error: d(t.data.createGCashWithdrawal.__typename)
1486
+ error: c(t.data.createGCashWithdrawal.__typename)
1489
1487
  } : {
1490
1488
  ok: !0
1491
1489
  } : t;
1492
1490
  }
1493
1491
  async createMayaWithdrawal(e) {
1494
- const t = await this.client.request(mt, e);
1492
+ const t = await this.client.request(dt, e);
1495
1493
  return t.ok ? t.data.createMayaWithdrawal ? {
1496
1494
  ok: !1,
1497
- error: d(t.data.createMayaWithdrawal.__typename)
1495
+ error: c(t.data.createMayaWithdrawal.__typename)
1498
1496
  } : {
1499
1497
  ok: !0
1500
1498
  } : t;
1501
1499
  }
1502
1500
  async createMayaAppWithdrawal(e) {
1503
- const t = await this.client.request(dt, e);
1501
+ const t = await this.client.request(ct, e);
1504
1502
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1505
1503
  ok: !1,
1506
- error: d(t.data.createMayaAppWithdrawal.__typename)
1504
+ error: c(t.data.createMayaAppWithdrawal.__typename)
1507
1505
  } : {
1508
1506
  ok: !0
1509
1507
  } : t;
1510
1508
  }
1511
1509
  async createBankWithdrawal(e) {
1512
- const t = await this.client.request(ct, e);
1510
+ const t = await this.client.request(ut, e);
1513
1511
  return t.ok ? t.data.createBankWithdrawal ? {
1514
1512
  ok: !1,
1515
- error: d(t.data.createBankWithdrawal.__typename)
1513
+ error: c(t.data.createBankWithdrawal.__typename)
1516
1514
  } : {
1517
1515
  ok: !0
1518
1516
  } : t;
1519
1517
  }
1520
1518
  async remainingDailyWithdrawalsCount() {
1521
1519
  const e = await this.client.request(
1522
- ut
1520
+ lt
1523
1521
  );
1524
1522
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1525
1523
  }
1526
1524
  async pointsWallet() {
1527
- const e = await this.client.request(tt);
1525
+ const e = await this.client.request(at);
1528
1526
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1529
1527
  }
1530
1528
  async pointsToCashConversion(e) {
1531
- const t = await this.client.request(at, e);
1529
+ const t = await this.client.request(rt, e);
1532
1530
  return t.ok ? t.data.pointsToCashConversion ? {
1533
1531
  ok: !1,
1534
- error: d(t.data.pointsToCashConversion.__typename)
1532
+ error: c(t.data.pointsToCashConversion.__typename)
1535
1533
  } : {
1536
1534
  ok: !0
1537
1535
  } : t;
1538
1536
  }
1539
1537
  async mayaSession(e) {
1540
1538
  const t = await this.client.request(
1541
- rt,
1539
+ nt,
1542
1540
  e
1543
1541
  );
1544
1542
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
1545
1543
  }
1546
1544
  }
1547
- class bt {
1545
+ class gt {
1548
1546
  constructor(e) {
1549
- m(this, "client");
1547
+ d(this, "client");
1550
1548
  this.client = e;
1551
1549
  }
1552
1550
  async latestBetRecords() {
1553
- const e = await this.client.request(De);
1551
+ const e = await this.client.request(Me);
1554
1552
  return e.ok ? {
1555
1553
  ok: !0,
1556
1554
  data: e.data.latestBetRecords
1557
1555
  } : e;
1558
1556
  }
1559
1557
  }
1558
+ function Et(n) {
1559
+ return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
1560
+ }
1561
+ function At(n) {
1562
+ const e = [];
1563
+ function t(a, r = []) {
1564
+ for (const s in a) {
1565
+ const m = a[s];
1566
+ Et(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(St(m), [...r, s]) : e.push({
1567
+ key: [...r, s],
1568
+ value: m
1569
+ });
1570
+ }
1571
+ }
1572
+ return t(n), e;
1573
+ }
1574
+ function St(n) {
1575
+ return n.reduce((e, t, a) => (e[a] = t, e), {});
1576
+ }
1560
1577
  class b {
1561
1578
  constructor(e, t) {
1562
- m(this, "url");
1563
- m(this, "options");
1564
- m(this, "middlewares");
1579
+ d(this, "url");
1580
+ d(this, "options");
1581
+ d(this, "middlewares");
1565
1582
  var r;
1566
1583
  const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
1567
1584
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -1582,7 +1599,7 @@ class b {
1582
1599
  /** Single file upload */
1583
1600
  async upload(e, t) {
1584
1601
  const a = this.createUploadBody(e, t), r = new Headers(this.options.headers);
1585
- r.set("Accept", "application/json"), r.delete("Content-Type");
1602
+ r.delete("Content-Type");
1586
1603
  const s = await this.runMiddlewares(
1587
1604
  new Request(this.url, {
1588
1605
  ...this.options,
@@ -1594,13 +1611,13 @@ class b {
1594
1611
  return await this.exec(s);
1595
1612
  }
1596
1613
  async exec(e) {
1597
- var t, a, r, s, c, h;
1614
+ var t, a, r, s, m, f;
1598
1615
  try {
1599
- const p = await fetch(e);
1600
- if (!p.ok)
1601
- return { ok: !1, error: u(p.status) };
1602
- const g = await p.json(), C = g.data, l = (t = g.errors) == null ? void 0 : t.at(0);
1603
- return l ? ((a = l.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = l.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: u(403, l.message) } : ((s = l.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: u(401, l.message) } : ((c = l.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((h = l.extensions) == null ? void 0 : h.code) === "BAD_REQUEST" ? { ok: !1, error: u(400, l.message) } : {
1616
+ const y = await fetch(e);
1617
+ if (!y.ok)
1618
+ return { ok: !1, error: u(y.status) };
1619
+ const g = await y.json(), C = g.data, l = (t = g.errors) == null ? void 0 : t.at(0);
1620
+ return l ? ((a = l.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = l.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: u(403, l.message) } : ((s = l.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: u(401, l.message) } : ((m = l.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((f = l.extensions) == null ? void 0 : f.code) === "BAD_REQUEST" ? { ok: !1, error: u(400, l.message) } : {
1604
1621
  ok: !1,
1605
1622
  error: u(500, l.message)
1606
1623
  } : {
@@ -1621,40 +1638,31 @@ class b {
1621
1638
  return t;
1622
1639
  }
1623
1640
  createUploadBody(e, t) {
1624
- const { files: a, others: r } = this.extractFiles(t), s = new FormData();
1625
- s.append(
1641
+ const a = At(t).filter(
1642
+ (m) => m.value instanceof File || m.value instanceof Blob
1643
+ ), r = new FormData();
1644
+ r.append(
1626
1645
  "operations",
1627
1646
  JSON.stringify({
1628
1647
  query: e,
1629
1648
  variables: t
1630
1649
  })
1631
- ), Object.entries(r).forEach(([h, p]) => {
1632
- s.append(h, JSON.stringify(p));
1633
- });
1634
- const c = {};
1635
- return Object.keys(a).forEach((h, p) => {
1636
- c[p.toString()] = `variables.${h}`;
1637
- }), s.append("map", JSON.stringify(c)), Object.values(a).forEach((h, p) => {
1638
- s.append(p.toString(), h);
1639
- }), s;
1640
- }
1641
- extractFiles(e) {
1642
- const t = {}, a = {};
1643
- return Object.entries(e).forEach(([r, s]) => {
1644
- s instanceof File || s instanceof Blob ? t[r] = s : a[r] = s;
1645
- }), {
1646
- files: t,
1647
- others: a
1648
- };
1650
+ );
1651
+ const s = {};
1652
+ return a.forEach((m, f) => {
1653
+ s[f.toString()] = [`variables.${m.key.join(".")}`];
1654
+ }), r.append("map", JSON.stringify(s)), a.forEach((m, f) => {
1655
+ r.append(f.toString(), m.value);
1656
+ }), r;
1649
1657
  }
1650
1658
  }
1651
- async function f(i) {
1652
- const e = new TextEncoder().encode(i), t = await crypto.subtle.digest("SHA-256", e);
1659
+ async function p(n) {
1660
+ const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
1653
1661
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
1654
1662
  }
1655
- class be {
1663
+ class ye {
1656
1664
  constructor(e) {
1657
- m(this, "enabled");
1665
+ d(this, "enabled");
1658
1666
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
1659
1667
  }
1660
1668
  info(e) {
@@ -1670,36 +1678,36 @@ class be {
1670
1678
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
1671
1679
  }
1672
1680
  }
1673
- function M(i) {
1674
- return new Date(i.getTime());
1681
+ function M(n) {
1682
+ return new Date(n.getTime());
1675
1683
  }
1676
- function E(i, e) {
1677
- const t = M(i);
1684
+ function E(n, e) {
1685
+ const t = M(n);
1678
1686
  return t.setDate(t.getDate() + e), t;
1679
1687
  }
1680
- function A(i, e) {
1681
- const t = M(i);
1688
+ function A(n, e) {
1689
+ const t = M(n);
1682
1690
  return t.setMinutes(t.getMinutes() + e), t;
1683
1691
  }
1684
- function fe(i, e) {
1685
- return i.getTime() > e.getTime();
1692
+ function fe(n, e) {
1693
+ return n.getTime() > e.getTime();
1686
1694
  }
1687
- function gt(i) {
1695
+ function kt(n) {
1688
1696
  return new Promise((e) => {
1689
- setTimeout(e, i);
1697
+ setTimeout(e, n);
1690
1698
  });
1691
1699
  }
1692
- function S(i, e) {
1693
- const t = M(i);
1700
+ function S(n, e) {
1701
+ const t = M(n);
1694
1702
  return t.setMinutes(t.getMinutes() - e), t;
1695
1703
  }
1696
- class Et {
1704
+ class Ct {
1697
1705
  constructor(e) {
1698
- m(this, "logger");
1699
- m(this, "storageKey", "session");
1700
- m(this, "authService");
1701
- m(this, "_refreshing", !1);
1702
- this.authService = new pt(e), this.logger = new be({
1706
+ d(this, "logger");
1707
+ d(this, "storageKey", "session");
1708
+ d(this, "authService");
1709
+ d(this, "_refreshing", !1);
1710
+ this.authService = new ft(e), this.logger = new ye({
1703
1711
  enabled: e.log ?? !1
1704
1712
  });
1705
1713
  }
@@ -1799,7 +1807,7 @@ class Et {
1799
1807
  data: null
1800
1808
  };
1801
1809
  if (this.refreshing)
1802
- return await gt(1e3), await this.get();
1810
+ return await kt(1e3), await this.get();
1803
1811
  const e = window.localStorage.getItem(this.storageKey);
1804
1812
  if (!e)
1805
1813
  return {
@@ -1819,18 +1827,18 @@ class Et {
1819
1827
  };
1820
1828
  if (fe(a, r)) {
1821
1829
  this.logger.info("Refreshing session..."), this.refreshing = !0;
1822
- const c = await this.authService.refreshSession(t.refreshToken);
1823
- if (this.refreshing = !1, !c.ok)
1824
- return this.logger.error(`Failed to refresh session: ${c.error.message}`), c.error.name === "InvalidToken" || c.error.name === "AccountBlacklisted" ? (window.localStorage.removeItem(this.storageKey), {
1830
+ const m = await this.authService.refreshSession(t.refreshToken);
1831
+ if (this.refreshing = !1, !m.ok)
1832
+ return this.logger.error(`Failed to refresh session: ${m.error.message}`), m.error.name === "InvalidToken" || m.error.name === "AccountBlacklisted" ? (window.localStorage.removeItem(this.storageKey), {
1825
1833
  ok: !1,
1826
- error: c.error
1834
+ error: m.error
1827
1835
  }) : (this.logger.warn("Old session returned."), {
1828
1836
  ok: !0,
1829
1837
  data: t
1830
1838
  });
1831
1839
  this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
1832
1840
  ...t,
1833
- ...c.data,
1841
+ ...m.data,
1834
1842
  accessTokenExpiresAt: A(a, 8).getTime(),
1835
1843
  refreshTokenExpiresAt: S(E(a, 30), 2).getTime()
1836
1844
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
@@ -1872,21 +1880,21 @@ class Et {
1872
1880
  return typeof window > "u";
1873
1881
  }
1874
1882
  }
1875
- function n(i, e) {
1876
- if (typeof i == "number" && !Number.isNaN(i))
1877
- return i;
1878
- if (typeof i == "string") {
1879
- const t = Number.parseFloat(i);
1883
+ function o(n, e) {
1884
+ if (typeof n == "number" && !Number.isNaN(n))
1885
+ return n;
1886
+ if (typeof n == "string") {
1887
+ const t = Number.parseFloat(n);
1880
1888
  if (!Number.isNaN(t))
1881
1889
  return t;
1882
1890
  }
1883
1891
  return e;
1884
1892
  }
1885
- class At {
1893
+ class Tt {
1886
1894
  constructor(e) {
1887
- m(this, "staticService");
1895
+ d(this, "staticService");
1888
1896
  const t = (e == null ? void 0 : e.environment) === "development";
1889
- this.staticService = new wt({
1897
+ this.staticService = new yt({
1890
1898
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
1891
1899
  });
1892
1900
  }
@@ -1915,10 +1923,10 @@ class At {
1915
1923
  };
1916
1924
  }
1917
1925
  platform(e) {
1918
- var t, a, r, s, c, h, p, g, C, l, D, N, I, R, x, P, G, $, B, W, U, O, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, de, ce, ue, le, pe;
1926
+ var t, a, r, s, m, f, y, g, C, l, D, N, I, R, x, P, G, $, B, W, U, O, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, me, de, ce, ue, le, pe;
1919
1927
  return {
1920
1928
  paymentSettings: {
1921
- minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
1929
+ minimumFirstDepositAmount: o(e.minimumFirstDepositAmount),
1922
1930
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
1923
1931
  depositGateway: {
1924
1932
  bank: {
@@ -1926,32 +1934,32 @@ class At {
1926
1934
  iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
1927
1935
  webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
1928
1936
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
1929
- minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
1930
- maximumAmount: n((h = e.bankDepositGatewaySettings) == null ? void 0 : h.maximumAmount)
1937
+ minimumAmount: o((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
1938
+ maximumAmount: o((f = e.bankDepositGatewaySettings) == null ? void 0 : f.maximumAmount)
1931
1939
  },
1932
1940
  gcash: {
1933
- androidEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.androidEnabled) ?? !1,
1941
+ androidEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.androidEnabled) ?? !1,
1934
1942
  iosEnabled: ((g = e.gcashDepositGatewaySettings) == null ? void 0 : g.iosEnabled) ?? !1,
1935
1943
  webEnabled: ((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.webEnabled) ?? !1,
1936
1944
  mobileWebEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.mobileWebEnabled) ?? !1,
1937
- minimumAmount: n((D = e.gcashDepositGatewaySettings) == null ? void 0 : D.minimumAmount),
1938
- maximumAmount: n((N = e.gcashDepositGatewaySettings) == null ? void 0 : N.maximumAmount)
1945
+ minimumAmount: o((D = e.gcashDepositGatewaySettings) == null ? void 0 : D.minimumAmount),
1946
+ maximumAmount: o((N = e.gcashDepositGatewaySettings) == null ? void 0 : N.maximumAmount)
1939
1947
  },
1940
1948
  maya: {
1941
1949
  androidEnabled: ((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
1942
1950
  iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
1943
1951
  webEnabled: ((x = e.mayaDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
1944
1952
  mobileWebEnabled: ((P = e.mayaDepositGatewaySettings) == null ? void 0 : P.mobileWebEnabled) ?? !1,
1945
- minimumAmount: n((G = e.mayaDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
1946
- maximumAmount: n(($ = e.mayaDepositGatewaySettings) == null ? void 0 : $.maximumAmount)
1953
+ minimumAmount: o((G = e.mayaDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
1954
+ maximumAmount: o(($ = e.mayaDepositGatewaySettings) == null ? void 0 : $.maximumAmount)
1947
1955
  },
1948
1956
  mayaApp: {
1949
1957
  androidEnabled: ((B = e.mayaAppDepositGatewaySettings) == null ? void 0 : B.androidEnabled) ?? !1,
1950
1958
  iosEnabled: ((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
1951
1959
  webEnabled: ((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.webEnabled) ?? !1,
1952
1960
  mobileWebEnabled: ((O = e.mayaAppDepositGatewaySettings) == null ? void 0 : O.mobileWebEnabled) ?? !1,
1953
- minimumAmount: n((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.minimumAmount),
1954
- maximumAmount: n((F = e.mayaAppDepositGatewaySettings) == null ? void 0 : F.maximumAmount)
1961
+ minimumAmount: o((q = e.mayaAppDepositGatewaySettings) == null ? void 0 : q.minimumAmount),
1962
+ maximumAmount: o((F = e.mayaAppDepositGatewaySettings) == null ? void 0 : F.maximumAmount)
1955
1963
  }
1956
1964
  },
1957
1965
  withdrawalGateway: {
@@ -1960,16 +1968,16 @@ class At {
1960
1968
  iosEnabled: ((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.iosEnabled) ?? !1,
1961
1969
  webEnabled: ((Y = e.bankWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
1962
1970
  mobileWebEnabled: ((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.mobileWebEnabled) ?? !1,
1963
- minimumAmount: n((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.minimumAmount),
1964
- maximumAmount: n((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.maximumAmount)
1971
+ minimumAmount: o((j = e.bankWithdrawalGatewaySettings) == null ? void 0 : j.minimumAmount),
1972
+ maximumAmount: o((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.maximumAmount)
1965
1973
  },
1966
1974
  gcash: {
1967
1975
  androidEnabled: ((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.androidEnabled) ?? !1,
1968
1976
  iosEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.iosEnabled) ?? !1,
1969
1977
  webEnabled: ((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.webEnabled) ?? !1,
1970
1978
  mobileWebEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.mobileWebEnabled) ?? !1,
1971
- minimumAmount: n((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.minimumAmount),
1972
- maximumAmount: n(
1979
+ minimumAmount: o((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.minimumAmount),
1980
+ maximumAmount: o(
1973
1981
  (ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.maximumAmount,
1974
1982
  1e6
1975
1983
  )
@@ -1979,16 +1987,16 @@ class At {
1979
1987
  iosEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.iosEnabled) ?? !1,
1980
1988
  webEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.webEnabled) ?? !1,
1981
1989
  mobileWebEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.mobileWebEnabled) ?? !1,
1982
- minimumAmount: n((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
1983
- maximumAmount: n((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.maximumAmount)
1990
+ minimumAmount: o((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
1991
+ maximumAmount: o((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.maximumAmount)
1984
1992
  },
1985
1993
  mayaApp: {
1986
1994
  androidEnabled: ((se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.androidEnabled) ?? !1,
1987
1995
  iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
1988
1996
  webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
1989
1997
  mobileWebEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.mobileWebEnabled) ?? !1,
1990
- minimumAmount: n((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.minimumAmount),
1991
- maximumAmount: n(
1998
+ minimumAmount: o((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.minimumAmount),
1999
+ maximumAmount: o(
1992
2000
  (le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.maximumAmount,
1993
2001
  1e6
1994
2002
  )
@@ -1996,7 +2004,7 @@ class At {
1996
2004
  }
1997
2005
  },
1998
2006
  pointsClubSettings: {
1999
- multiplier: n((pe = e.pointsClubSettings) == null ? void 0 : pe.multiplier, 0)
2007
+ multiplier: o((pe = e.pointsClubSettings) == null ? void 0 : pe.multiplier, 0)
2000
2008
  }
2001
2009
  };
2002
2010
  }
@@ -2025,7 +2033,7 @@ class At {
2025
2033
  wallet(e) {
2026
2034
  return {
2027
2035
  ...e,
2028
- balance: n(e.balance, 0),
2036
+ balance: o(e.balance, 0),
2029
2037
  dateTimeCreated: new Date(e.dateTimeCreated),
2030
2038
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2031
2039
  };
@@ -2048,7 +2056,7 @@ class At {
2048
2056
  profileCompletion(e) {
2049
2057
  return {
2050
2058
  ...e,
2051
- completionPercentage: n(e, 0)
2059
+ completionPercentage: o(e, 0)
2052
2060
  };
2053
2061
  }
2054
2062
  announcement(e) {
@@ -2063,9 +2071,9 @@ class At {
2063
2071
  withdrawalRecord(e) {
2064
2072
  return {
2065
2073
  ...e,
2066
- amount: n(e.amount, 0),
2067
- netAmount: n(e.netAmount, 0),
2068
- fee: n(e.fee, 0),
2074
+ amount: o(e.amount, 0),
2075
+ netAmount: o(e.netAmount, 0),
2076
+ fee: o(e.fee, 0),
2069
2077
  reference: e.reference ?? void 0,
2070
2078
  bank: e.bank ?? void 0,
2071
2079
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -2077,9 +2085,9 @@ class At {
2077
2085
  deposit(e) {
2078
2086
  return {
2079
2087
  ...e,
2080
- fee: n(e.fee, 0),
2081
- amount: n(e.amount, 0),
2082
- netAmount: n(e.netAmount, 0),
2088
+ fee: o(e.fee, 0),
2089
+ amount: o(e.amount, 0),
2090
+ netAmount: o(e.netAmount, 0),
2083
2091
  reference: e.reference ?? void 0,
2084
2092
  checkoutUrl: e.checkoutUrl ?? void 0,
2085
2093
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2089,9 +2097,9 @@ class At {
2089
2097
  depositRecord(e) {
2090
2098
  return {
2091
2099
  ...e,
2092
- amount: n(e.amount, 0),
2093
- fee: n(e.fee, 0),
2094
- netAmount: n(e.netAmount, 0),
2100
+ amount: o(e.amount, 0),
2101
+ fee: o(e.fee, 0),
2102
+ netAmount: o(e.netAmount, 0),
2095
2103
  reference: e.reference ?? void 0,
2096
2104
  dateTimeCreated: new Date(e.dateTimeCreated),
2097
2105
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2101,12 +2109,12 @@ class At {
2101
2109
  var t;
2102
2110
  return {
2103
2111
  ...e,
2104
- bet: n(e.bet, 0),
2105
- payout: n(e.payout, 0),
2106
- jackpotContribution: n(e.jackpotContribution, 0),
2107
- jackpotPayout: n(e.jackpotPayout, 0),
2108
- winloss: n(e.winloss),
2109
- validBet: n(e.validBet, 0),
2112
+ bet: o(e.bet, 0),
2113
+ payout: o(e.payout, 0),
2114
+ jackpotContribution: o(e.jackpotContribution, 0),
2115
+ jackpotPayout: o(e.jackpotPayout, 0),
2116
+ winloss: o(e.winloss),
2117
+ validBet: o(e.validBet, 0),
2110
2118
  vendorRoundId: e.vendorRoundId ?? void 0,
2111
2119
  game: this.game(e.game),
2112
2120
  dateTimeSettled: e.dateTimeSettled ? new Date(e.dateTimeSettled) : void 0,
@@ -2124,9 +2132,9 @@ class At {
2124
2132
  return {
2125
2133
  ...e,
2126
2134
  game: this.game(e.game),
2127
- bet: n(e.bet, 0),
2128
- payout: n(e.payout, 0),
2129
- validBet: n(e.validBet, 0),
2135
+ bet: o(e.bet, 0),
2136
+ payout: o(e.payout, 0),
2137
+ validBet: o(e.validBet, 0),
2130
2138
  dateTimeSettled: new Date(e.dateTimeSettled),
2131
2139
  dateTimeCreated: new Date(e.dateTimeCreated)
2132
2140
  };
@@ -2134,9 +2142,9 @@ class At {
2134
2142
  transactionRecord(e) {
2135
2143
  return {
2136
2144
  ...e,
2137
- amount: n(e.amount, 0),
2145
+ amount: o(e.amount, 0),
2138
2146
  content: e.content ?? void 0,
2139
- currentBalance: n(e.currentBalance, 0),
2147
+ currentBalance: o(e.currentBalance, 0),
2140
2148
  dateTimeCreated: new Date(e.dateTimeCreated)
2141
2149
  };
2142
2150
  }
@@ -2161,8 +2169,8 @@ class At {
2161
2169
  ...e.banner,
2162
2170
  dateTimeCreated: new Date(e.banner.dateTimeCreated)
2163
2171
  },
2164
- maximumBonusAmount: n(e.maximumBonusAmount),
2165
- minimumBonusAmount: n(e.minimumBonusAmount),
2172
+ maximumBonusAmount: o(e.maximumBonusAmount),
2173
+ minimumBonusAmount: o(e.minimumBonusAmount),
2166
2174
  activationEndDateTime: new Date(e.activationEndDateTime),
2167
2175
  activationStartDateTime: new Date(e.activationStartDateTime),
2168
2176
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2189,22 +2197,22 @@ class At {
2189
2197
  /* deposit here does not have an id and depositNumber field */
2190
2198
  deposit: e.deposit ? {
2191
2199
  ...e.deposit,
2192
- fee: n(e.deposit.fee, 0),
2193
- amount: n(e.deposit.amount, 0),
2194
- netAmount: n(e.deposit.netAmount, 0),
2200
+ fee: o(e.deposit.fee, 0),
2201
+ amount: o(e.deposit.amount, 0),
2202
+ netAmount: o(e.deposit.netAmount, 0),
2195
2203
  reference: e.deposit.reference ?? void 0,
2196
2204
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
2197
2205
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
2198
2206
  } : void 0,
2199
- balance: n(e.balance, 0),
2200
- amount: n(e.amount, 0),
2207
+ balance: o(e.balance, 0),
2208
+ amount: o(e.amount, 0),
2201
2209
  expiration: new Date(e.expiration),
2202
- turnoverRequirement: n(e.turnoverRequirement, 0),
2203
- currentTurnoverRequirementContribution: n(
2210
+ turnoverRequirement: o(e.turnoverRequirement, 0),
2211
+ currentTurnoverRequirementContribution: o(
2204
2212
  e.currentTurnoverRequirementContribution,
2205
2213
  0
2206
2214
  ),
2207
- currentTurnoverRequirementContributionPercentage: n(
2215
+ currentTurnoverRequirementContributionPercentage: o(
2208
2216
  e.currentTurnoverRequirementContributionPercentage,
2209
2217
  0
2210
2218
  ),
@@ -2215,7 +2223,7 @@ class At {
2215
2223
  cashbackBonus(e) {
2216
2224
  return {
2217
2225
  id: e.id,
2218
- balance: n(e.balance, 0),
2226
+ balance: o(e.balance, 0),
2219
2227
  cashback: this.cashback(e.cashback),
2220
2228
  dateTimeCreated: new Date(e.dateTimeCreated),
2221
2229
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2231,25 +2239,25 @@ class At {
2231
2239
  pointsWallet(e) {
2232
2240
  return {
2233
2241
  id: e.id,
2234
- points: n(e.points, 0),
2242
+ points: o(e.points, 0),
2235
2243
  account: e.account,
2236
2244
  dateTimeCreated: new Date(e.dateTimeCreated)
2237
2245
  };
2238
2246
  }
2239
2247
  }
2240
- class Ct {
2248
+ class Mt {
2241
2249
  constructor(e) {
2242
- m(this, "gameService");
2243
- m(this, "fileService");
2244
- m(this, "walletService");
2245
- m(this, "reportService");
2246
- m(this, "portalService");
2247
- m(this, "accountService");
2248
- m(this, "sessionManager");
2249
- m(this, "transformer");
2250
- m(this, "logger");
2250
+ d(this, "gameService");
2251
+ d(this, "fileService");
2252
+ d(this, "walletService");
2253
+ d(this, "reportService");
2254
+ d(this, "portalService");
2255
+ d(this, "accountService");
2256
+ d(this, "sessionManager");
2257
+ d(this, "transformer");
2258
+ d(this, "logger");
2251
2259
  const t = e.environment === "development";
2252
- this.sessionManager = new Et({
2260
+ this.sessionManager = new Ct({
2253
2261
  ...e,
2254
2262
  url: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io"
2255
2263
  });
@@ -2262,7 +2270,7 @@ class Ct {
2262
2270
  }
2263
2271
  }
2264
2272
  };
2265
- this.gameService = new ye(
2273
+ this.gameService = new we(
2266
2274
  new b(
2267
2275
  t ? "https://game.development.opexa.io/graphql" : "https://game.opexa.io/graphql",
2268
2276
  a
@@ -2272,27 +2280,27 @@ class Ct {
2272
2280
  t ? "https://file.development.opexa.io/graphql" : "https://file.opexa.io/graphql",
2273
2281
  a
2274
2282
  )
2275
- ), this.walletService = new yt(
2283
+ ), this.walletService = new bt(
2276
2284
  new b(
2277
2285
  t ? "https://wallet.development.opexa.io/graphql" : "https://wallet.opexa.io/graphql",
2278
2286
  a
2279
2287
  )
2280
- ), this.reportService = new ft(
2288
+ ), this.reportService = new wt(
2281
2289
  new b(
2282
2290
  t ? "https://report.development.opexa.io/graphql" : "https://report.opexa.io/graphql",
2283
2291
  a
2284
2292
  )
2285
- ), this.accountService = new lt(
2293
+ ), this.accountService = new pt(
2286
2294
  new b(
2287
2295
  t ? "https://account.development.opexa.io/graphql" : "https://account.opexa.io/graphql",
2288
2296
  a
2289
2297
  )
2290
- ), this.portalService = new bt(
2298
+ ), this.portalService = new gt(
2291
2299
  new b(
2292
2300
  t ? "https://portal.development.opexa.io/graphql" : "https://portal.opexa.io/graphql",
2293
2301
  a
2294
2302
  )
2295
- ), this.transformer = new At(e), this.logger = new be({
2303
+ ), this.transformer = new Tt(e), this.logger = new ye({
2296
2304
  enabled: e.log ?? !1
2297
2305
  });
2298
2306
  }
@@ -2308,7 +2316,7 @@ class Ct {
2308
2316
  case "NAME_AND_PASSWORD": {
2309
2317
  const t = await this.sessionManager.create({
2310
2318
  ...e,
2311
- password: await f(e.password)
2319
+ password: await p(e.password)
2312
2320
  });
2313
2321
  return t.ok ? t.data ? {
2314
2322
  ok: !0,
@@ -2368,7 +2376,7 @@ class Ct {
2368
2376
  return await this.sessionManager.createFromAuthenticator({
2369
2377
  type: "SECURITY_QUESTION",
2370
2378
  token: e.token,
2371
- secretAnswer: await f(e.secretAnswer)
2379
+ secretAnswer: await p(e.secretAnswer)
2372
2380
  });
2373
2381
  default:
2374
2382
  return {
@@ -2479,12 +2487,12 @@ class Ct {
2479
2487
  * ```
2480
2488
  */
2481
2489
  async createAccount(e) {
2482
- const t = e.id ?? w.generate(y.Account).toString(), a = await this.accountService.registerMemberAccount({
2490
+ const t = e.id ?? h.generate(w.Account).toString(), a = await this.accountService.registerMemberAccount({
2483
2491
  input: {
2484
2492
  id: t,
2485
2493
  name: e.name,
2486
2494
  birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
2487
- password: await f(e.password),
2495
+ password: await p(e.password),
2488
2496
  mobileNumber: this.addAreaCode(e.mobileNumber),
2489
2497
  domain: e.domain,
2490
2498
  btag: e.btag
@@ -2515,12 +2523,12 @@ class Ct {
2515
2523
  id: e,
2516
2524
  data: {
2517
2525
  ...t,
2518
- password: t.password ? await f(t.password) : void 0,
2519
- transactionPassword: t.transactionPassword ? await f(t.transactionPassword) : void 0,
2526
+ password: t.password ? await p(t.password) : void 0,
2527
+ transactionPassword: t.transactionPassword ? await p(t.transactionPassword) : void 0,
2520
2528
  ...t.mobileNumber && {
2521
2529
  mobileNumber: this.addAreaCode(t.mobileNumber)
2522
2530
  },
2523
- secretAnswer: t.secretAnswer ? await f(t.secretAnswer) : void 0
2531
+ secretAnswer: t.secretAnswer ? await p(t.secretAnswer) : void 0
2524
2532
  }
2525
2533
  }
2526
2534
  });
@@ -2561,7 +2569,7 @@ class Ct {
2561
2569
  * ```
2562
2570
  */
2563
2571
  async submitVerificationDetails(e) {
2564
- const t = e.id ?? w.generate(y.Verification).toString(), a = await this.accountService.createMemberVerification({
2572
+ const t = e.id ?? h.generate(w.Verification).toString(), a = await this.accountService.createMemberVerification({
2565
2573
  input: {
2566
2574
  id: t,
2567
2575
  ...e
@@ -2598,7 +2606,7 @@ class Ct {
2598
2606
  return await this.accountService.resetPassword({
2599
2607
  input: {
2600
2608
  mobileNumber: this.addAreaCode(e.mobileNumber),
2601
- newPassword: await f(e.newPassword)
2609
+ newPassword: await p(e.newPassword)
2602
2610
  },
2603
2611
  verificationCode: e.verificationCode
2604
2612
  });
@@ -2685,13 +2693,13 @@ class Ct {
2685
2693
  * ```
2686
2694
  */
2687
2695
  async createWithdrawal(e) {
2688
- const t = e.id ?? w.generate(y.Withdrawal).toString();
2696
+ const t = e.id ?? h.generate(w.Withdrawal).toString();
2689
2697
  if (e.type === "BANK") {
2690
2698
  const a = await this.walletService.createBankWithdrawal({
2691
2699
  input: {
2692
2700
  id: t,
2693
2701
  amount: e.amount.toString(),
2694
- transactionPassword: await f(e.transactionPassword)
2702
+ transactionPassword: await p(e.transactionPassword)
2695
2703
  }
2696
2704
  });
2697
2705
  if (!a.ok) return a;
@@ -2701,7 +2709,7 @@ class Ct {
2701
2709
  input: {
2702
2710
  id: t,
2703
2711
  amount: e.amount.toString(),
2704
- transactionPassword: await f(e.transactionPassword),
2712
+ transactionPassword: await p(e.transactionPassword),
2705
2713
  recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
2706
2714
  }
2707
2715
  });
@@ -2712,7 +2720,7 @@ class Ct {
2712
2720
  input: {
2713
2721
  id: t,
2714
2722
  amount: e.amount.toString(),
2715
- transactionPassword: await f(e.transactionPassword),
2723
+ transactionPassword: await p(e.transactionPassword),
2716
2724
  recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
2717
2725
  }
2718
2726
  });
@@ -2723,7 +2731,7 @@ class Ct {
2723
2731
  input: {
2724
2732
  id: t,
2725
2733
  amount: e.amount.toString(),
2726
- transactionPassword: await f(e.transactionPassword)
2734
+ transactionPassword: await p(e.transactionPassword)
2727
2735
  }
2728
2736
  });
2729
2737
  if (!a.ok) return a;
@@ -2771,7 +2779,7 @@ class Ct {
2771
2779
  * ```
2772
2780
  */
2773
2781
  async createDeposit(e) {
2774
- const t = e.id ?? w.generate(y.Deposit).toString();
2782
+ const t = e.id ?? h.generate(w.Deposit).toString();
2775
2783
  if (e.type === "MAYA") {
2776
2784
  const a = await this.walletService.createMayaDeposit({
2777
2785
  input: {
@@ -2984,7 +2992,7 @@ class Ct {
2984
2992
  * ```
2985
2993
  */
2986
2994
  async createGameSession(e) {
2987
- const t = e.id ?? w.generate(y.GameSession).toString(), a = await this.gameService.createGameSession({
2995
+ const t = e.id ?? h.generate(w.GameSession).toString(), a = await this.gameService.createGameSession({
2988
2996
  input: {
2989
2997
  id: t,
2990
2998
  game: e.game
@@ -3008,7 +3016,7 @@ class Ct {
3008
3016
  * ```
3009
3017
  */
3010
3018
  async createGameSession__next(e) {
3011
- const t = e.id ?? w.generate(y.GameSession).toString(), a = await this.walletService.createGameSession({
3019
+ const t = e.id ?? h.generate(w.GameSession).toString(), a = await this.walletService.createGameSession({
3012
3020
  input: {
3013
3021
  id: t,
3014
3022
  game: e.game
@@ -3064,7 +3072,7 @@ class Ct {
3064
3072
  * ```
3065
3073
  */
3066
3074
  async uploadImageFile(e) {
3067
- const t = e.id ?? w.generate(y.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3075
+ const t = e.id ?? h.generate(w.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3068
3076
  input: {
3069
3077
  id: t,
3070
3078
  file: e.file
@@ -3096,8 +3104,8 @@ class Ct {
3096
3104
  }
3097
3105
  }
3098
3106
  export {
3099
- vt as ObjectId,
3100
- y as ObjectType,
3101
- Ct as Sdk
3107
+ It as ObjectId,
3108
+ w as ObjectType,
3109
+ Mt as Sdk
3102
3110
  };
3103
3111
  //# sourceMappingURL=index.mjs.map