@opexa/portal-sdk 0.0.74 → 0.0.75

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 _e = Object.defineProperty;
2
- var Te = (n, e, t) => e in n ? _e(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
- import { ObjectId as Yt } from "@opexa/object-id";
6
- const A = {
1
+ var ke = Object.defineProperty;
2
+ var Te = (o, e, t) => e in o ? ke(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var d = (o, e, t) => Te(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ObjectId as k } from "@opexa/object-id";
5
+ import { ObjectId as Ft } from "@opexa/object-id";
6
+ const T = {
7
7
  Account: 8,
8
8
  Deposit: 9,
9
9
  Withdrawal: 14,
@@ -13,22 +13,22 @@ const A = {
13
13
  GameSession: 204,
14
14
  MayaSession: 230
15
15
  };
16
- function o(n, ...e) {
16
+ function i(o, ...e) {
17
17
  let t = "";
18
- for (const [r, a] of n.entries()) {
18
+ for (const [r, a] of o.entries()) {
19
19
  const s = e.at(r) ?? "";
20
20
  t = `${t}${a}${s}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const L = o`
24
+ const L = i`
25
25
  fragment FileFragment on File {
26
26
  id
27
27
  url
28
28
  status
29
29
  dateTimeCreated
30
30
  }
31
- `, ve = o`
31
+ `, _e = i`
32
32
  ${L}
33
33
 
34
34
  query File($id: ObjectId!) {
@@ -38,7 +38,7 @@ const L = o`
38
38
  }
39
39
  }
40
40
  }
41
- `, Me = o`
41
+ `, ve = i`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const L = o`
52
52
  }
53
53
  }
54
54
  }
55
- `, Ne = o`
55
+ `, Me = i`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const L = o`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Ie = o`
65
+ `, Ne = i`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const L = o`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, Re = o`
74
+ `, Re = i`
75
75
  mutation PointsToCashConversion($input: PointsToCashConversionInput!) {
76
76
  pointsToCashConversion(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,7 @@ const L = o`
79
79
  }
80
80
  }
81
81
  }
82
- `, De = o`
82
+ `, Ie = i`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -107,51 +107,38 @@ const L = o`
107
107
  }
108
108
  }
109
109
  }
110
- `, ge = o`
111
- query Games($first: Int, $after: Cursor, $filter: GameFilterInput) {
112
- games(first: $first, after: $after, filter: $filter) {
113
- edges {
114
- cursor
115
- node {
116
- ... on Game {
117
- id
118
- type
119
- name
120
- provider
121
- }
110
+ `, ge = {
111
+ current: i`
112
+ query GameSession($id: ObjectId!) {
113
+ node(id: $id) {
114
+ ... on GameSession {
115
+ id
116
+ game
117
+ status
118
+ launchUrl
119
+ dateTimeCreated
120
+ dateTimeLastUpdated
122
121
  }
123
122
  }
124
- totalCount
125
- pageInfo {
126
- hasNextPage
127
- endCursor
128
- }
129
123
  }
130
- }
131
- `, Se = o`
132
- query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
133
- gamesByName(first: $first, search: $search, filter: $filter) {
134
- ... on Game {
135
- id
136
- type
137
- name
138
- provider
139
- }
140
- }
141
- }
142
- `, be = o`
143
- query GameSession($id: ObjectId!) {
144
- node(id: $id) {
145
- ... on GameSession {
146
- id
147
- status
148
- launchUrl
149
- dateTimeCreated
150
- dateTimeLastUpdated
124
+ `,
125
+ legacy: i`
126
+ query GameSession($id: ObjectId!) {
127
+ node(id: $id) {
128
+ ... on GameSession {
129
+ id
130
+ game {
131
+ id
132
+ }
133
+ status
134
+ launchUrl
135
+ dateTimeCreated
136
+ dateTimeLastUpdated
137
+ }
151
138
  }
152
139
  }
153
- }
154
- `, Ae = o`
140
+ `
141
+ }, be = i`
155
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
156
143
  createGameSession(input: $input) {
157
144
  ... on GameDoesNotExistError {
@@ -159,25 +146,28 @@ const L = o`
159
146
  }
160
147
  }
161
148
  }
162
- `, Pe = o`
163
- mutation EndGameSession($input: EndGameSessionInput!) {
164
- endGameSession(input: $input)
165
- }
166
- `, xe = o`
167
- mutation EndGameSession($input: EndGameSessionInput!) {
168
- endGameSession(input: $input) {
169
- ... on GameSessionDoesNotExistError {
170
- __typename
171
- }
172
- ... on GameSessionAlreadyClosedError {
173
- __typename
174
- }
175
- ... on GameProviderError {
176
- __typename
149
+ `, Ae = {
150
+ current: i`
151
+ mutation EndGameSession($input: EndGameSessionInput!) {
152
+ endGameSession(input: $input)
153
+ }
154
+ `,
155
+ legacy: i`
156
+ mutation EndGameSession($input: EndGameSessionInput!) {
157
+ endGameSession(input: $input) {
158
+ ... on GameSessionDoesNotExistError {
159
+ __typename
160
+ }
161
+ ... on GameSessionAlreadyClosedError {
162
+ __typename
163
+ }
164
+ ... on GameProviderError {
165
+ __typename
166
+ }
177
167
  }
178
168
  }
179
- }
180
- `, Ge = o`
169
+ `
170
+ }, De = i`
181
171
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
182
172
  announcements(first: $first, after: $after, filter: $filter) {
183
173
  edges {
@@ -203,7 +193,7 @@ const L = o`
203
193
  }
204
194
  }
205
195
  }
206
- `, $e = o`
196
+ `, Pe = i`
207
197
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
208
198
  member {
209
199
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -270,7 +260,7 @@ const L = o`
270
260
  }
271
261
  }
272
262
  }
273
- `, Ue = o`
263
+ `, $e = i`
274
264
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
275
265
  createGCashWithdrawal(input: $input) {
276
266
  ... on AccountNotVerifiedError {
@@ -293,7 +283,7 @@ const L = o`
293
283
  }
294
284
  }
295
285
  }
296
- `, Oe = o`
286
+ `, xe = i`
297
287
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
298
288
  createMayaWithdrawal(input: $input) {
299
289
  ... on AccountNotVerifiedError {
@@ -316,7 +306,7 @@ const L = o`
316
306
  }
317
307
  }
318
308
  }
319
- `, We = o`
309
+ `, Ge = i`
320
310
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
321
311
  createMayaAppWithdrawal(input: $input) {
322
312
  ... on AccountNotVerifiedError {
@@ -336,7 +326,7 @@ const L = o`
336
326
  }
337
327
  }
338
328
  }
339
- `, Be = o`
329
+ `, Ue = i`
340
330
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
341
331
  createBankWithdrawal(input: $input) {
342
332
  ... on MobileNumberNotVerifiedError {
@@ -359,11 +349,11 @@ const L = o`
359
349
  }
360
350
  }
361
351
  }
362
- `, qe = o`
352
+ `, We = i`
363
353
  query RemainingDailyWithdrawalsCount {
364
354
  remainingDailyWithdrawalsCount
365
355
  }
366
- `, Fe = o`
356
+ `, Oe = i`
367
357
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
368
358
  member {
369
359
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -392,7 +382,7 @@ const L = o`
392
382
  }
393
383
  }
394
384
  }
395
- `, Le = o`
385
+ `, qe = i`
396
386
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
397
387
  createGCashDeposit(input: $input) {
398
388
  ... on DepositPromoMaximumAmountExceededError {
@@ -421,7 +411,7 @@ const L = o`
421
411
  }
422
412
  }
423
413
  }
424
- `, Ve = o`
414
+ `, Be = i`
425
415
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
426
416
  createMayaDeposit(input: $input) {
427
417
  ... on DepositPromoMaximumAmountExceededError {
@@ -450,7 +440,7 @@ const L = o`
450
440
  }
451
441
  }
452
442
  }
453
- `, He = o`
443
+ `, Fe = i`
454
444
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
455
445
  createMayaAppDeposit(input: $input) {
456
446
  ... on DepositPromoMaximumAmountExceededError {
@@ -479,7 +469,7 @@ const L = o`
479
469
  }
480
470
  }
481
471
  }
482
- `, Ye = o`
472
+ `, Le = i`
483
473
  query Deposit($id: ObjectId!) {
484
474
  node(id: $id) {
485
475
  ... on GCashDeposit {
@@ -511,13 +501,13 @@ const L = o`
511
501
  }
512
502
  }
513
503
  }
514
- `, je = o`
504
+ `, Ve = i`
515
505
  query DepositsCount {
516
506
  member {
517
507
  depositsCount
518
508
  }
519
509
  }
520
- `, Qe = o`
510
+ `, He = i`
521
511
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
522
512
  member {
523
513
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -558,7 +548,7 @@ const L = o`
558
548
  }
559
549
  }
560
550
  }
561
- `, Ke = o`
551
+ `, Ye = i`
562
552
  query LatestBetRecords {
563
553
  latestBetRecords {
564
554
  id
@@ -578,7 +568,7 @@ const L = o`
578
568
  dateTimeCreated
579
569
  }
580
570
  }
581
- `, Je = o`
571
+ `, je = i`
582
572
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
583
573
  member {
584
574
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -604,7 +594,7 @@ const L = o`
604
594
  }
605
595
  }
606
596
  }
607
- `, Y = o`
597
+ `, Y = i`
608
598
  ${L}
609
599
 
610
600
  fragment PromoFragment on Promo {
@@ -623,7 +613,7 @@ const L = o`
623
613
  dateTimeCreated
624
614
  dateTimeLastUpdated
625
615
  }
626
- `, ze = o`
616
+ `, Qe = i`
627
617
  ${Y}
628
618
 
629
619
  query Promos {
@@ -631,7 +621,7 @@ const L = o`
631
621
  ...PromoFragment
632
622
  }
633
623
  }
634
- `, Xe = o`
624
+ `, Ke = i`
635
625
  ${Y}
636
626
 
637
627
  query AvailablePromos($filter: PromoFilterInput) {
@@ -639,7 +629,7 @@ const L = o`
639
629
  ...PromoFragment
640
630
  }
641
631
  }
642
- `, Ee = o`
632
+ `, Ee = i`
643
633
  ${L}
644
634
 
645
635
  fragment CashbackFragment on Cashback {
@@ -656,7 +646,7 @@ const L = o`
656
646
  dateTimeCreated
657
647
  dateTimeLastUpdated
658
648
  }
659
- `, Ze = o`
649
+ `, Je = i`
660
650
  ${Ee}
661
651
 
662
652
  query Cashbacks {
@@ -664,7 +654,7 @@ const L = o`
664
654
  ...CashbackFragment
665
655
  }
666
656
  }
667
- `, et = o`
657
+ `, ze = i`
668
658
  ${Y}
669
659
 
670
660
  query Bonus {
@@ -693,7 +683,7 @@ const L = o`
693
683
  dateTimeLastUpdated
694
684
  }
695
685
  }
696
- `, tt = o`
686
+ `, Xe = i`
697
687
  ${Ee}
698
688
 
699
689
  query CashbackBonuses {
@@ -707,7 +697,7 @@ const L = o`
707
697
  dateTimeLastUpdated
708
698
  }
709
699
  }
710
- `, rt = o`
700
+ `, Ze = i`
711
701
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
712
702
  claimCashbackBonus(input: $input) {
713
703
  ... on CashbackBonusDoesNotExistError {
@@ -715,13 +705,15 @@ const L = o`
715
705
  }
716
706
  }
717
707
  }
718
- `, at = o`
708
+ `;
709
+ i`
719
710
  query Member {
720
711
  member {
721
712
  dateTimeLastActive
722
713
  }
723
714
  }
724
- `, nt = o`
715
+ `;
716
+ const et = i`
725
717
  query MemberAccount {
726
718
  memberAccount: self {
727
719
  ... on MemberAccount {
@@ -745,7 +737,7 @@ const L = o`
745
737
  }
746
738
  }
747
739
  }
748
- `, ot = o`
740
+ `, tt = i`
749
741
  ${L}
750
742
 
751
743
  query MemberVerification {
@@ -770,7 +762,7 @@ const L = o`
770
762
  }
771
763
  }
772
764
  }
773
- `, it = o`
765
+ `, rt = i`
774
766
  mutation RegisterMemberAccount(
775
767
  $input: RegisterMemberAccountInput!
776
768
  $referralCode: String
@@ -806,7 +798,7 @@ const L = o`
806
798
  }
807
799
  }
808
800
  }
809
- `, st = o`
801
+ `, at = i`
810
802
  mutation RegisterMemberAccountViaMobile(
811
803
  $input: RegisterMemberAccountViaMobileInput!
812
804
  $referralCode: String
@@ -833,7 +825,7 @@ const L = o`
833
825
  }
834
826
  }
835
827
  }
836
- `, ct = o`
828
+ `, ot = i`
837
829
  mutation RegisterMemberAccount(
838
830
  $input: RegisterMemberAccountInput_next!
839
831
  $reCAPTCHAResponse: String
@@ -865,7 +857,7 @@ const L = o`
865
857
  }
866
858
  }
867
859
  }
868
- `, mt = o`
860
+ `, nt = i`
869
861
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
870
862
  registerMayaMemberAccount(input: $input) {
871
863
  ... on AccountNameNotAvailableError {
@@ -873,7 +865,7 @@ const L = o`
873
865
  }
874
866
  }
875
867
  }
876
- `, dt = o`
868
+ `, it = i`
877
869
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
878
870
  updateMemberAccount(input: $input) {
879
871
  ... on AccountNameNotAvailableError {
@@ -899,7 +891,7 @@ const L = o`
899
891
  }
900
892
  }
901
893
  }
902
- `, ut = o`
894
+ `, st = i`
903
895
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
904
896
  resetPassword(input: $input, verificationCode: $verificationCode) {
905
897
  ... on AccountNotFoundError {
@@ -910,11 +902,11 @@ const L = o`
910
902
  }
911
903
  }
912
904
  }
913
- `, lt = o`
905
+ `, ct = i`
914
906
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
915
907
  deleteMemberAccount(input: $input)
916
908
  }
917
- `, pt = o`
909
+ `, dt = i`
918
910
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
919
911
  verifyMobileNumber(input: $input) {
920
912
  ... on InvalidSMSVerificationCodeError {
@@ -925,7 +917,7 @@ const L = o`
925
917
  }
926
918
  }
927
919
  }
928
- `, ft = o`
920
+ `, ut = i`
929
921
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
930
922
  createMemberVerification(input: $input) {
931
923
  ... on FileDoesNotExistError {
@@ -939,7 +931,7 @@ const L = o`
939
931
  }
940
932
  }
941
933
  }
942
- `, ht = o`
934
+ `, mt = i`
943
935
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
944
936
  updateMemberVerification(input: $input) {
945
937
  ... on FileDoesNotExistError {
@@ -956,7 +948,7 @@ const L = o`
956
948
  }
957
949
  }
958
950
  }
959
- `, yt = o`
951
+ `, lt = i`
960
952
  query ProfileCompletion {
961
953
  profileCompletion {
962
954
  completionPercentage
@@ -967,7 +959,7 @@ const L = o`
967
959
  accountPassword
968
960
  }
969
961
  }
970
- `, wt = o`
962
+ `, pt = i`
971
963
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
972
964
  sendVerificationCode(input: $input) {
973
965
  ... on InvalidPlatformError {
@@ -978,7 +970,7 @@ const L = o`
978
970
  }
979
971
  }
980
972
  }
981
- `, gt = o`
973
+ `, ft = i`
982
974
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
983
975
  minimumAmount
984
976
  maximumAmount
@@ -1032,7 +1024,7 @@ const L = o`
1032
1024
  multiplier
1033
1025
  }
1034
1026
  }
1035
- `, St = o`
1027
+ `, ht = i`
1036
1028
  query MayaSession($id: ObjectId!) {
1037
1029
  mayaSession(id: $id) {
1038
1030
  id
@@ -1040,11 +1032,11 @@ const L = o`
1040
1032
  dateTimeCreated
1041
1033
  }
1042
1034
  }
1043
- `, bt = o`
1035
+ `, wt = i`
1044
1036
  mutation ValidateMayaSession {
1045
1037
  validateMayaSession: validMayaSession
1046
1038
  }
1047
- `, At = o`
1039
+ `, yt = i`
1048
1040
  query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
1049
1041
  member {
1050
1042
  activityRecords(after: $after, first: $first, filter: $filter) {
@@ -1069,11 +1061,11 @@ const L = o`
1069
1061
  }
1070
1062
  }
1071
1063
  }
1072
- `, Et = o`
1064
+ `, gt = i`
1073
1065
  query ReferralCode {
1074
1066
  referralCode
1075
1067
  }
1076
- `, kt = o`
1068
+ `, bt = i`
1077
1069
  mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
1078
1070
  updateReferralCode(input: $input) {
1079
1071
  ... on ReferralCodeNotAvailableError {
@@ -1081,7 +1073,7 @@ const L = o`
1081
1073
  }
1082
1074
  }
1083
1075
  }
1084
- `, Ct = o`
1076
+ `, At = i`
1085
1077
  query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
1086
1078
  member {
1087
1079
  referrals(first: $first, after: $after, filter: $filter) {
@@ -1116,9 +1108,9 @@ const L = o`
1116
1108
  }
1117
1109
  }
1118
1110
  `;
1119
- function d(n) {
1111
+ function u(o) {
1120
1112
  return {
1121
- name: n,
1113
+ name: o,
1122
1114
  message: {
1123
1115
  AccountNameNotAvailableError: "Username is no longer available",
1124
1116
  AccountNotFoundError: "Account does not exist",
@@ -1168,60 +1160,60 @@ function d(n) {
1168
1160
  InvalidToken: "Invalid token",
1169
1161
  InvalidTokenOrSecretAnswer: "Invalid token or secret answer",
1170
1162
  SessionExpired: "Session expired"
1171
- }[n]
1163
+ }[o]
1172
1164
  };
1173
1165
  }
1174
- class _t {
1166
+ class Et {
1175
1167
  constructor(e) {
1176
- m(this, "client");
1168
+ d(this, "client");
1177
1169
  this.client = e;
1178
1170
  }
1179
1171
  /** aka `Query.self` */
1180
1172
  async memberAccount() {
1181
- const e = await this.client.request(nt);
1173
+ const e = await this.client.request(et);
1182
1174
  return e.ok ? {
1183
1175
  ok: !0,
1184
1176
  data: e.data.memberAccount
1185
1177
  } : e;
1186
1178
  }
1187
1179
  async registerMemberAccount(e) {
1188
- const t = await this.client.request(it, e);
1180
+ const t = await this.client.request(rt, e);
1189
1181
  return t.ok ? t.data.registerMemberAccount ? {
1190
1182
  ok: !1,
1191
- error: d(t.data.registerMemberAccount.__typename)
1183
+ error: u(t.data.registerMemberAccount.__typename)
1192
1184
  } : {
1193
1185
  ok: !0
1194
1186
  } : t;
1195
1187
  }
1196
1188
  async registerMemberAccountViaMobile(e) {
1197
- const t = await this.client.request(st, e);
1189
+ const t = await this.client.request(at, e);
1198
1190
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1199
1191
  ok: !1,
1200
- error: d(t.data.registerMemberAccountViaMobile.__typename)
1192
+ error: u(t.data.registerMemberAccountViaMobile.__typename)
1201
1193
  } : {
1202
1194
  ok: !0
1203
1195
  } : t;
1204
1196
  }
1205
1197
  async registerMemberAccount__next(e) {
1206
- const t = await this.client.request(ct, e);
1198
+ const t = await this.client.request(ot, e);
1207
1199
  return t.ok ? t.data.registerMemberAccount ? {
1208
1200
  ok: !1,
1209
- error: d(t.data.registerMemberAccount.__typename)
1201
+ error: u(t.data.registerMemberAccount.__typename)
1210
1202
  } : {
1211
1203
  ok: !0
1212
1204
  } : t;
1213
1205
  }
1214
1206
  async updateMemberAccount(e) {
1215
- const t = await this.client.request(dt, e);
1207
+ const t = await this.client.request(it, e);
1216
1208
  return t.ok ? t.data.updateMemberAccount ? {
1217
1209
  ok: !1,
1218
- error: d(t.data.updateMemberAccount.__typename)
1210
+ error: u(t.data.updateMemberAccount.__typename)
1219
1211
  } : {
1220
1212
  ok: !0
1221
1213
  } : t;
1222
1214
  }
1223
1215
  async deleteMemberAccount(e) {
1224
- const t = await this.client.request(lt, e);
1216
+ const t = await this.client.request(ct, e);
1225
1217
  return t.ok ? t.data.deleteMemberAccount ? {
1226
1218
  ok: !0
1227
1219
  } : {
@@ -1234,61 +1226,61 @@ class _t {
1234
1226
  }
1235
1227
  async resetPassword(e) {
1236
1228
  const t = await this.client.request(
1237
- ut,
1229
+ st,
1238
1230
  e
1239
1231
  );
1240
1232
  return t.ok ? t.data.resetPassword ? {
1241
1233
  ok: !1,
1242
- error: d(t.data.resetPassword.__typename)
1234
+ error: u(t.data.resetPassword.__typename)
1243
1235
  } : {
1244
1236
  ok: !0
1245
1237
  } : t;
1246
1238
  }
1247
1239
  async profileCompletion() {
1248
- const e = await this.client.request(yt);
1240
+ const e = await this.client.request(lt);
1249
1241
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1250
1242
  }
1251
1243
  async platform() {
1252
- return await this.client.request(gt);
1244
+ return await this.client.request(ft);
1253
1245
  }
1254
1246
  async sendVerificationCode(e) {
1255
- const t = await this.client.request(wt, e);
1247
+ const t = await this.client.request(pt, e);
1256
1248
  return t.ok ? t.data.sendVerificationCode ? {
1257
1249
  ok: !1,
1258
- error: d(t.data.sendVerificationCode.__typename)
1250
+ error: u(t.data.sendVerificationCode.__typename)
1259
1251
  } : {
1260
1252
  ok: !0
1261
1253
  } : t;
1262
1254
  }
1263
1255
  async verifyMobileNumber(e) {
1264
- const t = await this.client.request(pt, e);
1256
+ const t = await this.client.request(dt, e);
1265
1257
  return t.ok ? t.data.verifyMobileNumber ? {
1266
1258
  ok: !1,
1267
- error: d(t.data.verifyMobileNumber.__typename)
1259
+ error: u(t.data.verifyMobileNumber.__typename)
1268
1260
  } : {
1269
1261
  ok: !0
1270
1262
  } : t;
1271
1263
  }
1272
1264
  async createMemberVerification(e) {
1273
- const t = await this.client.request(ft, e);
1265
+ const t = await this.client.request(ut, e);
1274
1266
  return t.ok ? t.data.createMemberVerification ? {
1275
1267
  ok: !1,
1276
- error: d(t.data.createMemberVerification.__typename)
1268
+ error: u(t.data.createMemberVerification.__typename)
1277
1269
  } : {
1278
1270
  ok: !0
1279
1271
  } : t;
1280
1272
  }
1281
1273
  async updateMemberVerification(e) {
1282
- const t = await this.client.request(ht, e);
1274
+ const t = await this.client.request(mt, e);
1283
1275
  return t.ok ? t.data.updateMemberVerification ? {
1284
1276
  ok: !1,
1285
- error: d(t.data.updateMemberVerification.__typename)
1277
+ error: u(t.data.updateMemberVerification.__typename)
1286
1278
  } : {
1287
1279
  ok: !0
1288
1280
  } : t;
1289
1281
  }
1290
1282
  async memberVerification() {
1291
- const e = await this.client.request(ot);
1283
+ const e = await this.client.request(tt);
1292
1284
  return e.ok ? {
1293
1285
  ok: !0,
1294
1286
  data: e.data.memberAccount.verification
@@ -1296,7 +1288,7 @@ class _t {
1296
1288
  }
1297
1289
  async announcements(e) {
1298
1290
  const t = await this.client.request(
1299
- Ge,
1291
+ De,
1300
1292
  e
1301
1293
  );
1302
1294
  return t.ok ? {
@@ -1305,36 +1297,36 @@ class _t {
1305
1297
  } : t;
1306
1298
  }
1307
1299
  async registerMayaMemberAccount(e) {
1308
- const t = await this.client.request(mt, e);
1300
+ const t = await this.client.request(nt, e);
1309
1301
  return t.ok ? t.data.registerMayaMemberAccount ? {
1310
1302
  ok: !1,
1311
- error: d(t.data.registerMayaMemberAccount.__typename)
1303
+ error: u(t.data.registerMayaMemberAccount.__typename)
1312
1304
  } : {
1313
1305
  ok: !0
1314
1306
  } : t;
1315
1307
  }
1316
1308
  async referralCode() {
1317
- const e = await this.client.request(Et);
1309
+ const e = await this.client.request(gt);
1318
1310
  return e.ok ? {
1319
1311
  ok: !0,
1320
1312
  data: e.data.referralCode
1321
1313
  } : e;
1322
1314
  }
1323
1315
  async updateReferralCode(e) {
1324
- const t = await this.client.request(kt, e);
1316
+ const t = await this.client.request(bt, e);
1325
1317
  return t.ok ? t.data.updateReferralCode ? {
1326
1318
  ok: !1,
1327
- error: d(t.data.updateReferralCode.__typename)
1319
+ error: u(t.data.updateReferralCode.__typename)
1328
1320
  } : {
1329
1321
  ok: !0
1330
1322
  } : t;
1331
1323
  }
1332
1324
  }
1333
- function E(n) {
1334
- return n.startsWith("+63") ? n : n.startsWith("63") ? `+${n}` : n.startsWith("0") ? `+63${n.substring(1)}` : `+63${n}`;
1325
+ function A(o) {
1326
+ return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
1335
1327
  }
1336
- function h(n, e) {
1337
- const t = V[n] ? V[n] : V[500];
1328
+ function h(o, e) {
1329
+ const t = V[o] ? V[o] : V[500];
1338
1330
  return {
1339
1331
  name: t.name,
1340
1332
  message: e ?? t.message
@@ -1349,10 +1341,10 @@ const V = {
1349
1341
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1350
1342
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1351
1343
  };
1352
- class Tt {
1344
+ class St {
1353
1345
  constructor(e) {
1354
- m(this, "url");
1355
- m(this, "platform");
1346
+ d(this, "url");
1347
+ d(this, "platform");
1356
1348
  this.url = e.url, this.platform = e.platform;
1357
1349
  }
1358
1350
  get headers() {
@@ -1366,7 +1358,7 @@ class Tt {
1366
1358
  t.set("Authorization", `Basic ${a}`);
1367
1359
  }
1368
1360
  if (e.mobileNumber) {
1369
- const a = `${E(e.mobileNumber)}:${e.verificationCode}`, s = Buffer.from(a).toString("base64");
1361
+ const a = `${A(e.mobileNumber)}:${e.verificationCode}`, s = Buffer.from(a).toString("base64");
1370
1362
  console.log(`MobileNumberOTP ${s}`), t.set("Authorization", `MobileNumberOTP ${s}`);
1371
1363
  }
1372
1364
  e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`);
@@ -1380,7 +1372,7 @@ class Tt {
1380
1372
  data: a
1381
1373
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1382
1374
  ok: !1,
1383
- error: d("AccountBlacklisted")
1375
+ error: u("AccountBlacklisted")
1384
1376
  } : {
1385
1377
  ok: !1,
1386
1378
  error: h(r.status)
@@ -1409,7 +1401,7 @@ class Tt {
1409
1401
  data: a
1410
1402
  } : r.status === 401 || r.status === 403 ? {
1411
1403
  ok: !1,
1412
- error: d("InvalidTokenOrSecretAnswer")
1404
+ error: u("InvalidTokenOrSecretAnswer")
1413
1405
  } : {
1414
1406
  ok: !1,
1415
1407
  error: h(r.status)
@@ -1436,10 +1428,10 @@ class Tt {
1436
1428
  data: a
1437
1429
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1438
1430
  ok: !1,
1439
- error: d("AccountBlacklisted")
1431
+ error: u("AccountBlacklisted")
1440
1432
  } : r.status === 403 || r.status === 401 ? {
1441
1433
  ok: !1,
1442
- error: d("InvalidToken")
1434
+ error: u("InvalidToken")
1443
1435
  } : {
1444
1436
  ok: !1,
1445
1437
  error: h(r.status)
@@ -1477,26 +1469,23 @@ class Tt {
1477
1469
  }
1478
1470
  }
1479
1471
  async sendVerificationCode(e) {
1480
- const t = E(e);
1472
+ if (e.channel === "EMAIL") throw new Error("Email channel is not yet supported");
1481
1473
  try {
1482
- const r = await fetch(`${this.url}/otps`, {
1474
+ const t = await fetch(`${this.url}/otps`, {
1483
1475
  method: "POST",
1484
1476
  headers: this.headers,
1485
- body: JSON.stringify({
1486
- channel: "SMS",
1487
- recipient: t
1488
- })
1477
+ body: JSON.stringify(e)
1489
1478
  });
1490
- if (r.status === 403) {
1491
- const a = await r.json();
1479
+ if (t.status === 403) {
1480
+ const r = await t.json();
1492
1481
  return {
1493
1482
  ok: !1,
1494
- error: h(r.status, a.message)
1483
+ error: h(t.status, r.message)
1495
1484
  };
1496
1485
  }
1497
- return r.ok ? { ok: !0 } : {
1486
+ return t.ok ? { ok: !0 } : {
1498
1487
  ok: !1,
1499
- error: h(r.status)
1488
+ error: h(t.status)
1500
1489
  };
1501
1490
  } catch {
1502
1491
  return {
@@ -1506,11 +1495,11 @@ class Tt {
1506
1495
  }
1507
1496
  }
1508
1497
  }
1509
- class vt {
1498
+ class Ct {
1510
1499
  constructor(e) {
1511
- m(this, "url");
1512
- m(this, "siteId");
1513
- m(this, "platformId");
1500
+ d(this, "url");
1501
+ d(this, "siteId");
1502
+ d(this, "platformId");
1514
1503
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1515
1504
  }
1516
1505
  async self() {
@@ -1521,22 +1510,22 @@ class vt {
1521
1510
  } : e;
1522
1511
  }
1523
1512
  async games(e) {
1524
- var a, s, c, u, l, f, y, p, T, v, M, N, I, S, R, D, C, P, x, G, _, $, O, W;
1513
+ var a, s, c, m, l, f, w, p, _, v, M, N, R, b, I, D, S, P, $, x, C, G, W, O;
1525
1514
  const t = new URLSearchParams();
1526
- e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (p = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (S = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && S.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (P = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (G = (x = e == null ? void 0 : e.filter) == null ? void 0 : x.tags) != null && G.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), ($ = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.tags) != null && $.in && t.set(
1515
+ e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (m = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && m.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (l = e == null ? void 0 : e.filter) == null ? void 0 : l.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (p = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && v.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (b = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.provider) != null && b.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (P = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && G.in && t.set(
1527
1516
  "filter[tags][in]",
1528
- e.filter.tags.in.map((k) => k.toLowerCase()).join(",")
1529
- ), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
1517
+ e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1518
+ ), (O = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && O.notIn && t.set(
1530
1519
  "filter[tags][nin]",
1531
- e.filter.tags.notIn.map((k) => k.toLowerCase()).join(",")
1520
+ e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
1532
1521
  );
1533
1522
  const r = await this.getJson("/games", t);
1534
1523
  return r.ok ? {
1535
1524
  ok: !0,
1536
1525
  data: {
1537
- edges: r.data.data.map((k) => ({
1538
- node: k,
1539
- cursor: k.cursor
1526
+ edges: r.data.data.map((E) => ({
1527
+ node: E,
1528
+ cursor: E.cursor
1540
1529
  })),
1541
1530
  totalCount: r.data.totalCount ?? 0,
1542
1531
  pageInfo: {
@@ -1584,145 +1573,134 @@ class vt {
1584
1573
  }
1585
1574
  }
1586
1575
  }
1587
- class Mt {
1576
+ class kt {
1588
1577
  constructor(e) {
1589
- m(this, "client");
1578
+ d(this, "client");
1590
1579
  this.client = e;
1591
1580
  }
1592
1581
  async file(e) {
1593
- const t = await this.client.request(ve, e);
1582
+ const t = await this.client.request(_e, e);
1594
1583
  return t.ok ? {
1595
1584
  ok: !0,
1596
1585
  data: t.data.node
1597
1586
  } : t;
1598
1587
  }
1599
1588
  async uploadPrivateImageFile(e) {
1600
- const t = await this.client.upload(Me, e);
1589
+ const t = await this.client.upload(ve, e);
1601
1590
  return t.ok ? t.data.uploadPrivateImageFile ? {
1602
1591
  ok: !1,
1603
- error: d(t.data.uploadPrivateImageFile.__typename)
1592
+ error: u(t.data.uploadPrivateImageFile.__typename)
1604
1593
  } : {
1605
1594
  ok: !0
1606
1595
  } : t;
1607
1596
  }
1608
1597
  }
1609
- class Nt {
1598
+ class Tt {
1610
1599
  constructor(e) {
1611
- m(this, "client");
1600
+ d(this, "client");
1612
1601
  this.client = e;
1613
1602
  }
1614
- /** @deprecated */
1615
- async games(e) {
1616
- const t = await this.client.request(ge, e);
1617
- return t.ok ? { ok: t.ok, data: t.data.games } : t;
1618
- }
1619
- /** @deprecated */
1620
- async gamesByName(e) {
1621
- const t = await this.client.request(
1622
- Se,
1623
- e
1624
- );
1625
- return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
1626
- }
1627
1603
  async gameSession(e) {
1628
1604
  const t = await this.client.request(
1629
- be,
1605
+ ge.legacy,
1630
1606
  e
1631
1607
  );
1632
- return t.ok ? { ok: !0, data: t.data.node } : t;
1608
+ return t.ok ? {
1609
+ ok: !0,
1610
+ data: t.data.node ? { ...t.data.node, game: t.data.node.game.id } : null
1611
+ } : t;
1633
1612
  }
1634
1613
  async createGameSession(e) {
1635
- const t = await this.client.request(Ae, e);
1614
+ const t = await this.client.request(be, e);
1636
1615
  return t.ok ? t.data.createGameSession ? {
1637
1616
  ok: !1,
1638
- error: d(t.data.createGameSession.__typename)
1617
+ error: u(t.data.createGameSession.__typename)
1639
1618
  } : {
1640
1619
  ok: !0
1641
1620
  } : t;
1642
1621
  }
1643
1622
  async endGameSession(e) {
1644
- const t = await this.client.request(xe, e);
1623
+ const t = await this.client.request(Ae.legacy, e);
1645
1624
  return t.ok ? t.data.endGameSession ? {
1646
1625
  ok: !1,
1647
- error: d(t.data.endGameSession.__typename)
1626
+ error: {
1627
+ name: "UnknownError",
1628
+ message: "Something went wrong."
1629
+ }
1648
1630
  } : {
1649
1631
  ok: !0
1650
1632
  } : t;
1651
1633
  }
1652
1634
  }
1653
- class It {
1635
+ class _t {
1654
1636
  constructor(e) {
1655
- m(this, "client");
1637
+ d(this, "client");
1656
1638
  this.client = e;
1657
1639
  }
1658
1640
  async latestBetRecords() {
1659
- const e = await this.client.request(Ke);
1641
+ const e = await this.client.request(Ye);
1660
1642
  return e.ok ? {
1661
1643
  ok: !0,
1662
1644
  data: e.data.latestBetRecords
1663
1645
  } : e;
1664
1646
  }
1665
1647
  }
1666
- class Rt {
1648
+ class vt {
1667
1649
  constructor(e) {
1668
- m(this, "client");
1650
+ d(this, "client");
1669
1651
  this.client = e;
1670
1652
  }
1671
1653
  async betRecords(e) {
1672
1654
  const t = await this.client.request(
1673
- Qe,
1655
+ He,
1674
1656
  e
1675
1657
  );
1676
1658
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1677
1659
  }
1678
1660
  async transactionRecords(e) {
1679
- const t = await this.client.request(Je, e);
1661
+ const t = await this.client.request(je, e);
1680
1662
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1681
1663
  }
1682
1664
  async withdrawalRecords(e) {
1683
1665
  const t = await this.client.request(
1684
- $e,
1666
+ Pe,
1685
1667
  e
1686
1668
  );
1687
1669
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1688
1670
  }
1689
1671
  async depositRecords(e) {
1690
1672
  const t = await this.client.request(
1691
- Fe,
1673
+ Oe,
1692
1674
  e
1693
1675
  );
1694
1676
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1695
1677
  }
1696
1678
  async depositsCount() {
1697
- const e = await this.client.request(je);
1679
+ const e = await this.client.request(Ve);
1698
1680
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1699
1681
  }
1700
- async member() {
1701
- const e = await this.client.request(at);
1702
- return e.ok ? { ok: e.ok, data: e.data.member } : e;
1703
- }
1704
1682
  async pointsWalletTransactions(e) {
1705
- const t = await this.client.request(De, e);
1683
+ const t = await this.client.request(Ie, e);
1706
1684
  return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
1707
1685
  }
1708
1686
  async activityRecords(e) {
1709
1687
  const t = await this.client.request(
1710
- At,
1688
+ yt,
1711
1689
  e
1712
1690
  );
1713
1691
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1714
1692
  }
1715
1693
  async referrals(e) {
1716
1694
  const t = await this.client.request(
1717
- Ct,
1695
+ At,
1718
1696
  e
1719
1697
  );
1720
1698
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
1721
1699
  }
1722
1700
  }
1723
- class Dt {
1701
+ class Mt {
1724
1702
  constructor(e) {
1725
- m(this, "url");
1703
+ d(this, "url");
1726
1704
  this.url = e.url;
1727
1705
  }
1728
1706
  gameThumbnails(e) {
@@ -1732,35 +1710,35 @@ class Dt {
1732
1710
  ];
1733
1711
  }
1734
1712
  }
1735
- class Pt {
1713
+ class Nt {
1736
1714
  constructor(e) {
1737
- m(this, "client");
1715
+ d(this, "client");
1738
1716
  this.client = e;
1739
1717
  }
1740
1718
  async promos() {
1741
- const e = await this.client.request(ze);
1719
+ const e = await this.client.request(Qe);
1742
1720
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1743
1721
  }
1744
1722
  async cashbacks() {
1745
- const e = await this.client.request(Ze);
1723
+ const e = await this.client.request(Je);
1746
1724
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1747
1725
  }
1748
1726
  async availablePromos(e) {
1749
1727
  const t = await this.client.request(
1750
- Xe,
1728
+ Ke,
1751
1729
  e
1752
1730
  );
1753
1731
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1754
1732
  }
1755
1733
  async cashbackBonuses() {
1756
- const e = await this.client.request(tt);
1734
+ const e = await this.client.request(Xe);
1757
1735
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1758
1736
  }
1759
1737
  async claimCashbackBonus(e) {
1760
- const t = await this.client.request(rt, e);
1738
+ const t = await this.client.request(Ze, e);
1761
1739
  return t.ok ? t.data.claimCashbackBonus ? {
1762
1740
  ok: !1,
1763
- error: d(t.data.claimCashbackBonus.__typename)
1741
+ error: u(t.data.claimCashbackBonus.__typename)
1764
1742
  } : {
1765
1743
  ok: !0
1766
1744
  } : {
@@ -1769,141 +1747,128 @@ class Pt {
1769
1747
  };
1770
1748
  }
1771
1749
  async bonus() {
1772
- const e = await this.client.request(et);
1750
+ const e = await this.client.request(ze);
1773
1751
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1774
1752
  }
1775
1753
  async wallet() {
1776
- const e = await this.client.request(Ne);
1754
+ const e = await this.client.request(Me);
1777
1755
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1778
1756
  }
1779
1757
  async deposit(e) {
1780
1758
  const t = await this.client.request(
1781
- Ye,
1759
+ Le,
1782
1760
  e
1783
1761
  );
1784
1762
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
1785
1763
  }
1786
1764
  async createGCashDeposit(e) {
1787
- const t = await this.client.request(Le, e);
1765
+ const t = await this.client.request(qe, e);
1788
1766
  return t.ok ? t.data.createGCashDeposit ? {
1789
1767
  ok: !1,
1790
- error: d(t.data.createGCashDeposit.__typename)
1768
+ error: u(t.data.createGCashDeposit.__typename)
1791
1769
  } : {
1792
1770
  ok: !0
1793
1771
  } : t;
1794
1772
  }
1795
1773
  async createMayaDeposit(e) {
1796
- const t = await this.client.request(Ve, e);
1774
+ const t = await this.client.request(Be, e);
1797
1775
  return t.ok ? t.data.createMayaDeposit ? {
1798
1776
  ok: !1,
1799
- error: d(t.data.createMayaDeposit.__typename)
1777
+ error: u(t.data.createMayaDeposit.__typename)
1800
1778
  } : {
1801
1779
  ok: !0
1802
1780
  } : t;
1803
1781
  }
1804
1782
  async createMayaAppDeposit(e) {
1805
- const t = await this.client.request(He, e);
1783
+ const t = await this.client.request(Fe, e);
1806
1784
  return t.ok ? t.data.createMayaAppDeposit ? {
1807
1785
  ok: !1,
1808
- error: d(t.data.createMayaAppDeposit.__typename)
1786
+ error: u(t.data.createMayaAppDeposit.__typename)
1809
1787
  } : {
1810
1788
  ok: !0
1811
1789
  } : t;
1812
1790
  }
1813
1791
  async createGCashWithdrawal(e) {
1814
- const t = await this.client.request(Ue, e);
1792
+ const t = await this.client.request($e, e);
1815
1793
  return t.ok ? t.data.createGCashWithdrawal ? {
1816
1794
  ok: !1,
1817
- error: d(t.data.createGCashWithdrawal.__typename)
1795
+ error: u(t.data.createGCashWithdrawal.__typename)
1818
1796
  } : {
1819
1797
  ok: !0
1820
1798
  } : t;
1821
1799
  }
1822
1800
  async createMayaWithdrawal(e) {
1823
- const t = await this.client.request(Oe, e);
1801
+ const t = await this.client.request(xe, e);
1824
1802
  return t.ok ? t.data.createMayaWithdrawal ? {
1825
1803
  ok: !1,
1826
- error: d(t.data.createMayaWithdrawal.__typename)
1804
+ error: u(t.data.createMayaWithdrawal.__typename)
1827
1805
  } : {
1828
1806
  ok: !0
1829
1807
  } : t;
1830
1808
  }
1831
1809
  async createMayaAppWithdrawal(e) {
1832
- const t = await this.client.request(We, e);
1810
+ const t = await this.client.request(Ge, e);
1833
1811
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1834
1812
  ok: !1,
1835
- error: d(t.data.createMayaAppWithdrawal.__typename)
1813
+ error: u(t.data.createMayaAppWithdrawal.__typename)
1836
1814
  } : {
1837
1815
  ok: !0
1838
1816
  } : t;
1839
1817
  }
1840
1818
  async createBankWithdrawal(e) {
1841
- const t = await this.client.request(Be, e);
1819
+ const t = await this.client.request(Ue, e);
1842
1820
  return t.ok ? t.data.createBankWithdrawal ? {
1843
1821
  ok: !1,
1844
- error: d(t.data.createBankWithdrawal.__typename)
1822
+ error: u(t.data.createBankWithdrawal.__typename)
1845
1823
  } : {
1846
1824
  ok: !0
1847
1825
  } : t;
1848
1826
  }
1849
1827
  async remainingDailyWithdrawalsCount() {
1850
1828
  const e = await this.client.request(
1851
- qe
1829
+ We
1852
1830
  );
1853
1831
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1854
1832
  }
1855
1833
  async pointsWallet() {
1856
- const e = await this.client.request(Ie);
1834
+ const e = await this.client.request(Ne);
1857
1835
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1858
1836
  }
1859
1837
  async pointsToCashConversion(e) {
1860
1838
  const t = await this.client.request(Re, e);
1861
1839
  return t.ok ? t.data.pointsToCashConversion ? {
1862
1840
  ok: !1,
1863
- error: d(t.data.pointsToCashConversion.__typename)
1841
+ error: u(t.data.pointsToCashConversion.__typename)
1864
1842
  } : {
1865
1843
  ok: !0
1866
1844
  } : t;
1867
1845
  }
1868
1846
  async mayaSession(e) {
1869
1847
  const t = await this.client.request(
1870
- St,
1848
+ ht,
1871
1849
  e
1872
1850
  );
1873
1851
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
1874
1852
  }
1875
- /** @deprecated */
1876
- async games(e) {
1877
- const t = await this.client.request(ge, e);
1878
- return t.ok ? { ok: t.ok, data: t.data.games } : t;
1879
- }
1880
- /** @deprecated */
1881
- async gamesByName(e) {
1882
- const t = await this.client.request(
1883
- Se,
1884
- e
1885
- );
1886
- return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
1887
- }
1888
1853
  async gameSession(e) {
1889
1854
  const t = await this.client.request(
1890
- be,
1855
+ ge.current,
1891
1856
  e
1892
1857
  );
1893
1858
  return t.ok ? { ok: !0, data: t.data.node } : t;
1894
1859
  }
1895
1860
  async createGameSession(e) {
1896
- const t = await this.client.request(Ae, e);
1861
+ const t = await this.client.request(be, e);
1897
1862
  return t.ok ? t.data.createGameSession ? {
1898
1863
  ok: !1,
1899
- error: d(t.data.createGameSession.__typename)
1864
+ error: u(t.data.createGameSession.__typename)
1900
1865
  } : {
1901
1866
  ok: !0
1902
1867
  } : t;
1903
1868
  }
1904
1869
  async endGameSession(e) {
1905
1870
  const t = await this.client.request(
1906
- Pe,
1871
+ Ae.current,
1907
1872
  e
1908
1873
  );
1909
1874
  return t.ok ? t.data.endGameSession ? {
@@ -1918,7 +1883,7 @@ class Pt {
1918
1883
  }
1919
1884
  async validateMayaSession() {
1920
1885
  const e = await this.client.request(
1921
- bt
1886
+ wt
1922
1887
  );
1923
1888
  return e.ok ? e.data.validateMayaSession ? {
1924
1889
  ok: !0
@@ -1931,33 +1896,33 @@ class Pt {
1931
1896
  } : e;
1932
1897
  }
1933
1898
  }
1934
- function xt(n, e, t) {
1935
- return n < e ? e : n > t ? t : n;
1899
+ function Rt(o, e, t) {
1900
+ return o < e ? e : o > t ? t : o;
1936
1901
  }
1937
- function H(n) {
1938
- return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
1902
+ function H(o) {
1903
+ return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
1939
1904
  }
1940
- function Gt(n) {
1905
+ function It(o) {
1941
1906
  const e = [];
1942
1907
  function t(r, a = []) {
1943
1908
  for (const s in r) {
1944
1909
  const c = r[s];
1945
- H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t($t(c), [...a, s]) : e.push({
1910
+ H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Dt(c), [...a, s]) : e.push({
1946
1911
  key: [...a, s],
1947
1912
  value: c
1948
1913
  });
1949
1914
  }
1950
1915
  }
1951
- return t(n), e;
1916
+ return t(o), e;
1952
1917
  }
1953
- function $t(n) {
1954
- return n.reduce((e, t, r) => (e[r] = t, e), {});
1918
+ function Dt(o) {
1919
+ return o.reduce((e, t, r) => (e[r] = t, e), {});
1955
1920
  }
1956
1921
  class U {
1957
1922
  constructor(e, t) {
1958
- m(this, "url");
1959
- m(this, "options");
1960
- m(this, "middlewares");
1923
+ d(this, "url");
1924
+ d(this, "options");
1925
+ d(this, "middlewares");
1961
1926
  var a;
1962
1927
  const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
1963
1928
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -1990,18 +1955,18 @@ class U {
1990
1955
  return await this.exec(s);
1991
1956
  }
1992
1957
  async exec(e) {
1993
- var t, r, a, s, c, u;
1958
+ var t, r, a, s, c, m;
1994
1959
  try {
1995
1960
  const l = await fetch(e);
1996
1961
  if (!l.ok)
1997
1962
  return { ok: !1, error: h(l.status) };
1998
- const f = await l.json(), y = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
1999
- return p ? ((r = p.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = p.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, p.message) } : ((c = p.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((u = p.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, p.message) } : {
1963
+ const f = await l.json(), w = f.data, p = (t = f.errors) == null ? void 0 : t.at(0);
1964
+ return p ? ((r = p.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = p.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, p.message) } : ((s = p.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, p.message) } : ((c = p.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((m = p.extensions) == null ? void 0 : m.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, p.message) } : {
2000
1965
  ok: !1,
2001
1966
  error: h(500, p.message)
2002
1967
  } : {
2003
1968
  ok: !0,
2004
- data: y
1969
+ data: w
2005
1970
  };
2006
1971
  } catch {
2007
1972
  return {
@@ -2017,7 +1982,7 @@ class U {
2017
1982
  return t;
2018
1983
  }
2019
1984
  createUploadBody(e, t) {
2020
- const r = Gt(t).filter(
1985
+ const r = It(t).filter(
2021
1986
  (c) => c.value instanceof File || c.value instanceof Blob
2022
1987
  ), a = new FormData();
2023
1988
  a.append(
@@ -2028,20 +1993,20 @@ class U {
2028
1993
  })
2029
1994
  );
2030
1995
  const s = {};
2031
- return r.forEach((c, u) => {
2032
- s[u.toString()] = [`variables.${c.key.join(".")}`];
2033
- }), a.append("map", JSON.stringify(s)), r.forEach((c, u) => {
2034
- a.append(u.toString(), c.value);
1996
+ return r.forEach((c, m) => {
1997
+ s[m.toString()] = [`variables.${c.key.join(".")}`];
1998
+ }), a.append("map", JSON.stringify(s)), r.forEach((c, m) => {
1999
+ a.append(m.toString(), c.value);
2035
2000
  }), a;
2036
2001
  }
2037
2002
  }
2038
- async function w(n) {
2039
- const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
2003
+ async function y(o) {
2004
+ const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
2040
2005
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2041
2006
  }
2042
- class ke {
2007
+ class Se {
2043
2008
  constructor(e) {
2044
- m(this, "enabled");
2009
+ d(this, "enabled");
2045
2010
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
2046
2011
  }
2047
2012
  info(e) {
@@ -2057,50 +2022,50 @@ class ke {
2057
2022
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
2058
2023
  }
2059
2024
  }
2060
- function j(n) {
2061
- return new Date(n.getTime());
2025
+ function j(o) {
2026
+ return new Date(o.getTime());
2062
2027
  }
2063
- function B(n, e) {
2064
- const t = j(n);
2028
+ function q(o, e) {
2029
+ const t = j(o);
2065
2030
  return t.setDate(t.getDate() + e), t;
2066
2031
  }
2067
- function q(n, e) {
2068
- const t = j(n);
2032
+ function B(o, e) {
2033
+ const t = j(o);
2069
2034
  return t.setMinutes(t.getMinutes() + e), t;
2070
2035
  }
2071
- function ye(n, e) {
2072
- return n.getTime() > e.getTime();
2036
+ function we(o, e) {
2037
+ return o.getTime() > e.getTime();
2073
2038
  }
2074
- function Ce(n) {
2039
+ function Ce(o) {
2075
2040
  return new Promise((e) => {
2076
- setTimeout(e, n);
2041
+ setTimeout(e, o);
2077
2042
  });
2078
2043
  }
2079
- function we(n, e) {
2044
+ function ye(o, e) {
2080
2045
  const {
2081
2046
  until: t,
2082
2047
  interval: r = 1e3,
2083
2048
  maxAttempt: a = 3
2084
2049
  /**/
2085
2050
  } = e;
2086
- async function s(c, u) {
2087
- const l = u ?? a, f = await n(...c);
2051
+ async function s(c, m) {
2052
+ const l = m ?? a, f = await o(...c);
2088
2053
  return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
2089
2054
  }
2090
2055
  return async (...c) => await s(c);
2091
2056
  }
2092
- function F(n, e) {
2093
- const t = j(n);
2057
+ function F(o, e) {
2058
+ const t = j(o);
2094
2059
  return t.setMinutes(t.getMinutes() - e), t;
2095
2060
  }
2096
- class Ut {
2061
+ class Pt {
2097
2062
  constructor(e) {
2098
- m(this, "logger");
2099
- m(this, "storageKey", "session");
2100
- m(this, "authService");
2101
- m(this, "walletService");
2102
- m(this, "_refreshing", !1);
2103
- this.authService = e.authService, this.walletService = e.walletService, this.logger = new ke({
2063
+ d(this, "logger");
2064
+ d(this, "storageKey", "session");
2065
+ d(this, "authService");
2066
+ d(this, "walletService");
2067
+ d(this, "_refreshing", !1);
2068
+ this.authService = e.authService, this.walletService = e.walletService, this.logger = new Se({
2104
2069
  enabled: e.logs ?? !1
2105
2070
  });
2106
2071
  }
@@ -2121,10 +2086,10 @@ class Ut {
2121
2086
  }
2122
2087
  };
2123
2088
  if (e.type === "MAYA") {
2124
- const c = await we(() => this.walletService.mayaSession({ id: e.sessionId }), {
2125
- until: (y) => {
2089
+ const c = await ye(() => this.walletService.mayaSession({ id: e.sessionId }), {
2090
+ until: (w) => {
2126
2091
  var p;
2127
- return y.ok && ((p = y.data) == null ? void 0 : p.member) != null;
2092
+ return w.ok && ((p = w.data) == null ? void 0 : p.member) != null;
2128
2093
  },
2129
2094
  interval: 1e3,
2130
2095
  maxAttempt: 5
@@ -2138,8 +2103,8 @@ class Ut {
2138
2103
  message: "Forbidden"
2139
2104
  }
2140
2105
  };
2141
- const l = await we(() => this.authService.createSession(e), {
2142
- until: (y) => y.ok,
2106
+ const l = await ye(() => this.authService.createSession(e), {
2107
+ until: (w) => w.ok,
2143
2108
  interval: 1e3,
2144
2109
  maxAttempt: 5
2145
2110
  })();
@@ -2149,8 +2114,8 @@ class Ut {
2149
2114
  this.storageKey,
2150
2115
  JSON.stringify({
2151
2116
  ...l.data,
2152
- accessTokenExpiresAt: q(f, 8).getTime(),
2153
- refreshTokenExpiresAt: F(B(f, 30), 2).getTime()
2117
+ accessTokenExpiresAt: B(f, 8).getTime(),
2118
+ refreshTokenExpiresAt: F(q(f, 30), 2).getTime()
2154
2119
  })
2155
2120
  ), {
2156
2121
  ok: !0,
@@ -2165,8 +2130,8 @@ class Ut {
2165
2130
  this.storageKey,
2166
2131
  JSON.stringify({
2167
2132
  ...s.data,
2168
- accessTokenExpiresAt: q(c, 8).getTime(),
2169
- refreshTokenExpiresAt: F(B(c, 30), 2).getTime()
2133
+ accessTokenExpiresAt: B(c, 8).getTime(),
2134
+ refreshTokenExpiresAt: F(q(c, 30), 2).getTime()
2170
2135
  })
2171
2136
  ), {
2172
2137
  ok: !0,
@@ -2189,8 +2154,8 @@ class Ut {
2189
2154
  this.storageKey,
2190
2155
  JSON.stringify({
2191
2156
  ...t.data,
2192
- accessTokenExpiresAt: q(r, 8).getTime(),
2193
- refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2157
+ accessTokenExpiresAt: B(r, 8).getTime(),
2158
+ refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2194
2159
  })
2195
2160
  ), {
2196
2161
  ok: !0,
@@ -2205,8 +2170,8 @@ class Ut {
2205
2170
  this.storageKey,
2206
2171
  JSON.stringify({
2207
2172
  ...t.data,
2208
- accessTokenExpiresAt: q(r, 8).getTime(),
2209
- refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2173
+ accessTokenExpiresAt: B(r, 8).getTime(),
2174
+ refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2210
2175
  })
2211
2176
  ), { ok: !0 };
2212
2177
  } else
@@ -2229,7 +2194,7 @@ class Ut {
2229
2194
  try {
2230
2195
  let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2231
2196
  const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2232
- if (ye(r, s))
2197
+ if (we(r, s))
2233
2198
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2234
2199
  ok: !1,
2235
2200
  error: {
@@ -2237,7 +2202,7 @@ class Ut {
2237
2202
  message: "Session expired."
2238
2203
  }
2239
2204
  };
2240
- if (ye(r, a)) {
2205
+ if (we(r, a)) {
2241
2206
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2242
2207
  const c = await this.authService.refreshSession(t.refreshToken);
2243
2208
  if (this.refreshing = !1, !c.ok)
@@ -2251,8 +2216,8 @@ class Ut {
2251
2216
  this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2252
2217
  ...t,
2253
2218
  ...c.data,
2254
- accessTokenExpiresAt: q(r, 8).getTime(),
2255
- refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2219
+ accessTokenExpiresAt: B(r, 8).getTime(),
2220
+ refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2256
2221
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2257
2222
  }
2258
2223
  return {
@@ -2292,10 +2257,10 @@ class Ut {
2292
2257
  return typeof window > "u";
2293
2258
  }
2294
2259
  }
2295
- function g(n) {
2260
+ function g(o) {
2296
2261
  const e = {};
2297
- for (const t in n) {
2298
- const r = n[t];
2262
+ for (const t in o) {
2263
+ const r = o[t];
2299
2264
  if (r !== null && r !== void 0) {
2300
2265
  if (H(r)) {
2301
2266
  e[t] = g(r);
@@ -2310,21 +2275,21 @@ function g(n) {
2310
2275
  }
2311
2276
  return e;
2312
2277
  }
2313
- function i(n, e) {
2314
- if (typeof n == "number" && !Number.isNaN(n))
2315
- return n;
2316
- if (typeof n == "string") {
2317
- const t = Number.parseFloat(n);
2278
+ function n(o, e) {
2279
+ if (typeof o == "number" && !Number.isNaN(o))
2280
+ return o;
2281
+ if (typeof o == "string") {
2282
+ const t = Number.parseFloat(o);
2318
2283
  if (!Number.isNaN(t))
2319
2284
  return t;
2320
2285
  }
2321
2286
  return e;
2322
2287
  }
2323
- class Ot {
2288
+ class $t {
2324
2289
  constructor(e) {
2325
- m(this, "staticService");
2290
+ d(this, "staticService");
2326
2291
  const t = (e == null ? void 0 : e.environment) === "development";
2327
- this.staticService = new Dt({
2292
+ this.staticService = new Mt({
2328
2293
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2329
2294
  });
2330
2295
  }
@@ -2343,9 +2308,7 @@ class Ot {
2343
2308
  betRecord: this.betRecord.bind(this),
2344
2309
  latestBetRecord: this.latestBetRecord.bind(this),
2345
2310
  transactionRecord: this.transactionRecord.bind(this),
2346
- /** @deprecated */
2347
2311
  game: this.game.bind(this),
2348
- game__next: this.game__next.bind(this),
2349
2312
  gameSession: this.gameSession.bind(this),
2350
2313
  promo: this.promo.bind(this),
2351
2314
  cashback: this.cashback.bind(this),
@@ -2355,7 +2318,8 @@ class Ot {
2355
2318
  pointsWallet: this.pointsWallet.bind(this),
2356
2319
  pointsWalletTransaction: this.pointsWalletTransaction.bind(this),
2357
2320
  activityRecord: this.activityRecord.bind(this),
2358
- referrals: this.referrals.bind(this)
2321
+ referrals: this.referrals.bind(this),
2322
+ referralComission: this.referralComission.bind(this)
2359
2323
  };
2360
2324
  }
2361
2325
  site(e) {
@@ -2368,10 +2332,10 @@ class Ot {
2368
2332
  return g(t);
2369
2333
  }
2370
2334
  platform(e) {
2371
- var t, r, a, s, c, u, l, f, y, p, T, v, M, N, I, S, R, D, C, P, x, G, _, $, O, W, k, Q, K, J, z, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, de, ue, le, pe, fe, he;
2335
+ var t, r, a, s, c, m, l, f, w, p, _, v, M, N, R, b, I, D, S, P, $, x, C, G, W, O, E, Q, K, J, z, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, de, ue, me, le, pe, fe, he;
2372
2336
  return {
2373
2337
  paymentSettings: {
2374
- minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2338
+ minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
2375
2339
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2376
2340
  depositGateway: {
2377
2341
  bank: {
@@ -2379,69 +2343,69 @@ class Ot {
2379
2343
  iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2380
2344
  webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2381
2345
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2382
- minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2383
- maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2346
+ minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2347
+ maximumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.maximumAmount)
2384
2348
  },
2385
2349
  gcash: {
2386
2350
  androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2387
2351
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2388
- webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
2352
+ webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2389
2353
  mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
2390
- minimumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.minimumAmount),
2391
- maximumAmount: i((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2354
+ minimumAmount: n((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2355
+ maximumAmount: n((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2392
2356
  },
2393
2357
  maya: {
2394
2358
  androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2395
2359
  iosEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
2396
- webEnabled: ((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.webEnabled) ?? !1,
2397
- mobileWebEnabled: ((S = e.mayaDepositGatewaySettings) == null ? void 0 : S.mobileWebEnabled) ?? !1,
2398
- minimumAmount: i((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.minimumAmount),
2399
- maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2360
+ webEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.webEnabled) ?? !1,
2361
+ mobileWebEnabled: ((b = e.mayaDepositGatewaySettings) == null ? void 0 : b.mobileWebEnabled) ?? !1,
2362
+ minimumAmount: n((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2363
+ maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2400
2364
  },
2401
2365
  mayaApp: {
2402
- androidEnabled: ((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.androidEnabled) ?? !1,
2366
+ androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2403
2367
  iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
2404
- webEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
2405
- mobileWebEnabled: ((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.mobileWebEnabled) ?? !1,
2406
- minimumAmount: i((_ = e.mayaAppDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2407
- maximumAmount: i(($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.maximumAmount)
2368
+ webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
2369
+ mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
2370
+ minimumAmount: n((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2371
+ maximumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2408
2372
  }
2409
2373
  },
2410
2374
  withdrawalGateway: {
2411
2375
  bank: {
2412
- androidEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.androidEnabled) ?? !1,
2413
- iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2414
- webEnabled: ((k = e.bankWithdrawalGatewaySettings) == null ? void 0 : k.webEnabled) ?? !1,
2376
+ androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
2377
+ iosEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
2378
+ webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2415
2379
  mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
2416
- minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2417
- maximumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
2380
+ minimumAmount: n((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2381
+ maximumAmount: n((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
2418
2382
  },
2419
2383
  gcash: {
2420
2384
  androidEnabled: ((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2421
2385
  iosEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.iosEnabled) ?? !1,
2422
2386
  webEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.webEnabled) ?? !1,
2423
2387
  mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
2424
- minimumAmount: i((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2425
- maximumAmount: i(
2388
+ minimumAmount: n((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2389
+ maximumAmount: n(
2426
2390
  (re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
2427
2391
  1e6
2428
2392
  )
2429
2393
  },
2430
2394
  maya: {
2431
2395
  androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
2432
- iosEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.iosEnabled) ?? !1,
2433
- webEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2396
+ iosEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2397
+ webEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2434
2398
  mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2435
- minimumAmount: i((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2436
- maximumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
2399
+ minimumAmount: n((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.minimumAmount),
2400
+ maximumAmount: n((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount)
2437
2401
  },
2438
2402
  mayaApp: {
2439
- androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
2440
- iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2441
- webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2403
+ androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
2404
+ iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2405
+ webEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.webEnabled) ?? !1,
2442
2406
  mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2443
- minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2444
- maximumAmount: i(
2407
+ minimumAmount: n((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2408
+ maximumAmount: n(
2445
2409
  (fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.maximumAmount,
2446
2410
  1e6
2447
2411
  )
@@ -2449,7 +2413,7 @@ class Ot {
2449
2413
  }
2450
2414
  },
2451
2415
  pointsClubSettings: {
2452
- multiplier: i((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2416
+ multiplier: n((he = e.pointsClubSettings) == null ? void 0 : he.multiplier, 0)
2453
2417
  }
2454
2418
  };
2455
2419
  }
@@ -2470,7 +2434,6 @@ class Ot {
2470
2434
  verificationStatus: e.verificationStatus,
2471
2435
  transactionPassword: e.transactionPassword,
2472
2436
  secretAnswerSubmitted: e.secretAnswerSubmitted ?? !1,
2473
- dateTimeLastActive: e.dateTimeLastActive ? new Date(e.dateTimeLastActive) : void 0,
2474
2437
  dateTimeCreated: new Date(e.dateTimeCreated),
2475
2438
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2476
2439
  };
@@ -2479,7 +2442,7 @@ class Ot {
2479
2442
  wallet(e) {
2480
2443
  return {
2481
2444
  id: e.id,
2482
- balance: i(e.balance, 0),
2445
+ balance: n(e.balance, 0),
2483
2446
  currency: e.currency,
2484
2447
  dateTimeCreated: new Date(e.dateTimeCreated),
2485
2448
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2506,7 +2469,7 @@ class Ot {
2506
2469
  mobileNumberVerification: e.mobileNumberVerification ?? !1,
2507
2470
  personalInformation: e.personalInformation ?? !1,
2508
2471
  transactionPassword: e.transactionPassword ?? !1,
2509
- completionPercentage: i(e.completionPercentage, 0)
2472
+ completionPercentage: n(e.completionPercentage, 0)
2510
2473
  };
2511
2474
  }
2512
2475
  announcement(e) {
@@ -2528,9 +2491,9 @@ class Ot {
2528
2491
  type: e.type,
2529
2492
  bank: e.bank,
2530
2493
  status: e.status,
2531
- amount: i(e.amount, 0),
2532
- netAmount: i(e.netAmount, 0),
2533
- fee: i(e.fee, 0),
2494
+ amount: n(e.amount, 0),
2495
+ netAmount: n(e.netAmount, 0),
2496
+ fee: n(e.fee, 0),
2534
2497
  reference: e.reference ?? void 0,
2535
2498
  withdrawalNumber: e.withdrawalNumber,
2536
2499
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -2554,9 +2517,9 @@ class Ot {
2554
2517
  id: e.id,
2555
2518
  type: e.type,
2556
2519
  status: e.status,
2557
- amount: i(e.amount, 0),
2558
- fee: i(e.fee, 0),
2559
- netAmount: i(e.netAmount, 0),
2520
+ amount: n(e.amount, 0),
2521
+ fee: n(e.fee, 0),
2522
+ netAmount: n(e.netAmount, 0),
2560
2523
  reference: e.reference ?? void 0,
2561
2524
  depositNumber: e.depositNumber,
2562
2525
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2568,13 +2531,13 @@ class Ot {
2568
2531
  var r;
2569
2532
  const t = {
2570
2533
  id: e.id,
2571
- bet: i(e.bet, 0),
2572
- payout: i(e.payout, 0),
2534
+ bet: n(e.bet, 0),
2535
+ payout: n(e.payout, 0),
2573
2536
  status: e.status,
2574
- jackpotContribution: i(e.jackpotContribution, 0),
2575
- jackpotPayout: i(e.jackpotPayout, 0),
2576
- winloss: i(e.winloss),
2577
- validBet: i(e.validBet, 0),
2537
+ jackpotContribution: n(e.jackpotContribution, 0),
2538
+ jackpotPayout: n(e.jackpotPayout, 0),
2539
+ winloss: n(e.winloss),
2540
+ validBet: n(e.validBet, 0),
2578
2541
  vendorRoundId: e.vendorRoundId ?? void 0,
2579
2542
  game: {
2580
2543
  name: e.game.name,
@@ -2605,9 +2568,9 @@ class Ot {
2605
2568
  images: this.staticService.gameThumbnails(e.game),
2606
2569
  provider: e.game.provider
2607
2570
  },
2608
- bet: i(e.bet, 0),
2609
- payout: i(e.payout, 0),
2610
- validBet: i(e.validBet, 0),
2571
+ bet: n(e.bet, 0),
2572
+ payout: n(e.payout, 0),
2573
+ validBet: n(e.validBet, 0),
2611
2574
  dateTimeSettled: new Date(e.dateTimeSettled),
2612
2575
  dateTimeCreated: new Date(e.dateTimeCreated)
2613
2576
  };
@@ -2616,27 +2579,15 @@ class Ot {
2616
2579
  const t = {
2617
2580
  id: e.id,
2618
2581
  type: e.type,
2619
- amount: i(e.amount, 0),
2582
+ amount: n(e.amount, 0),
2620
2583
  content: e.content ?? void 0,
2621
- currentBalance: i(e.currentBalance, 0),
2584
+ currentBalance: n(e.currentBalance, 0),
2622
2585
  referenceNumber: e.referenceNumber,
2623
2586
  dateTimeCreated: new Date(e.dateTimeCreated)
2624
2587
  };
2625
2588
  return g(t);
2626
2589
  }
2627
- /**
2628
- * @deprecated
2629
- */
2630
2590
  game(e) {
2631
- return {
2632
- id: e.id,
2633
- type: e.type,
2634
- name: e.name,
2635
- images: this.staticService.gameThumbnails(e),
2636
- provider: e.provider
2637
- };
2638
- }
2639
- game__next(e) {
2640
2591
  return {
2641
2592
  id: e.id,
2642
2593
  type: e.type,
@@ -2644,8 +2595,7 @@ class Ot {
2644
2595
  name: e.name,
2645
2596
  images: [e.customImage, e.image].filter(Boolean),
2646
2597
  provider: e.provider,
2647
- reference: e.reference,
2648
- externalId: e.externalId
2598
+ reference: e.reference
2649
2599
  };
2650
2600
  }
2651
2601
  gameSession(e) {
@@ -2666,8 +2616,8 @@ class Ot {
2666
2616
  status: e.status,
2667
2617
  description: e.description,
2668
2618
  banner: this.file(e.banner),
2669
- maximumBonusAmount: i(e.maximumBonusAmount),
2670
- minimumBonusAmount: i(e.minimumBonusAmount),
2619
+ maximumBonusAmount: n(e.maximumBonusAmount),
2620
+ minimumBonusAmount: n(e.minimumBonusAmount),
2671
2621
  activationEndDateTime: new Date(e.activationEndDateTime),
2672
2622
  activationStartDateTime: new Date(e.activationStartDateTime),
2673
2623
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2687,7 +2637,7 @@ class Ot {
2687
2637
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
2688
2638
  turnoverContributionPercentagePerGameProvider: Object.entries(
2689
2639
  e.turnoverContributionPercentagePerGameProvider
2690
- ).reduce((r, [a, s]) => (r[a] = i(s, 0), r), {})
2640
+ ).reduce((r, [a, s]) => (r[a] = n(s, 0), r), {})
2691
2641
  };
2692
2642
  }
2693
2643
  bonus(e) {
@@ -2697,22 +2647,22 @@ class Ot {
2697
2647
  deposit: e.deposit ? {
2698
2648
  type: e.deposit.type,
2699
2649
  status: e.deposit.status,
2700
- fee: i(e.deposit.fee, 0),
2701
- amount: i(e.deposit.amount, 0),
2702
- netAmount: i(e.deposit.netAmount, 0),
2650
+ fee: n(e.deposit.fee, 0),
2651
+ amount: n(e.deposit.amount, 0),
2652
+ netAmount: n(e.deposit.netAmount, 0),
2703
2653
  reference: e.deposit.reference ?? void 0,
2704
2654
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
2705
2655
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
2706
2656
  } : void 0,
2707
- balance: i(e.balance, 0),
2708
- amount: i(e.amount, 0),
2657
+ balance: n(e.balance, 0),
2658
+ amount: n(e.amount, 0),
2709
2659
  expiration: new Date(e.expiration),
2710
- turnoverRequirement: i(e.turnoverRequirement, 0),
2711
- currentTurnoverRequirementContribution: i(
2660
+ turnoverRequirement: n(e.turnoverRequirement, 0),
2661
+ currentTurnoverRequirementContribution: n(
2712
2662
  e.currentTurnoverRequirementContribution,
2713
2663
  0
2714
2664
  ),
2715
- currentTurnoverRequirementContributionPercentage: i(
2665
+ currentTurnoverRequirementContributionPercentage: n(
2716
2666
  e.currentTurnoverRequirementContributionPercentage,
2717
2667
  0
2718
2668
  ),
@@ -2724,7 +2674,7 @@ class Ot {
2724
2674
  cashbackBonus(e) {
2725
2675
  return {
2726
2676
  id: e.id,
2727
- balance: i(e.balance, 0),
2677
+ balance: n(e.balance, 0),
2728
2678
  cashback: this.cashback(e.cashback),
2729
2679
  dateTimeCreated: new Date(e.dateTimeCreated),
2730
2680
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2742,7 +2692,7 @@ class Ot {
2742
2692
  pointsWallet(e) {
2743
2693
  return {
2744
2694
  id: e.id,
2745
- points: i(e.points, 0),
2695
+ points: n(e.points, 0),
2746
2696
  account: e.account,
2747
2697
  dateTimeCreated: new Date(e.dateTimeCreated)
2748
2698
  };
@@ -2751,8 +2701,8 @@ class Ot {
2751
2701
  return {
2752
2702
  id: e.id,
2753
2703
  type: e.type,
2754
- amount: i(e.amount, 0),
2755
- balance: i(e.balance, 0),
2704
+ amount: n(e.amount, 0),
2705
+ balance: n(e.balance, 0),
2756
2706
  dateTimeCreated: new Date(e.dateTimeCreated)
2757
2707
  };
2758
2708
  }
@@ -2760,7 +2710,7 @@ class Ot {
2760
2710
  const t = {
2761
2711
  id: e.id,
2762
2712
  type: e.type,
2763
- amount: e.amount ? i(e.amount, 0) : void 0,
2713
+ amount: e.amount ? n(e.amount, 0) : void 0,
2764
2714
  domain: e.domain ?? void 0,
2765
2715
  details: e.details,
2766
2716
  dateTimeCreated: new Date(e.dateTimeCreated)
@@ -2773,25 +2723,41 @@ class Ot {
2773
2723
  level: e.level,
2774
2724
  upline: e.upline,
2775
2725
  downline: e.downline,
2776
- turnover: i(e.turnover, 0),
2777
- commision: i(e.commision, 0),
2726
+ turnover: n(e.turnover, 0),
2727
+ commision: n(e.commision, 0),
2778
2728
  dateTimeCreated: new Date(e.dateTimeCreated)
2779
2729
  };
2780
2730
  }
2731
+ referralComission(e) {
2732
+ return {
2733
+ id: e.id,
2734
+ commission: n(e.commission, 0),
2735
+ level1Commission: n(e.level1Commission, 0),
2736
+ level2Commission: n(e.level2Commission, 0),
2737
+ level3Commission: n(e.level3Commission, 0),
2738
+ referralsCount: e.referralsCount,
2739
+ level1ReferralsCount: e.level1ReferralsCount,
2740
+ level2ReferralsCount: e.level2ReferralsCount,
2741
+ level3ReferralsCount: e.level3ReferralsCount,
2742
+ referralCode: e.referralCode,
2743
+ dateTimeCreated: new Date(e.dateTimeCreated),
2744
+ dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2745
+ };
2746
+ }
2781
2747
  }
2782
- class Lt {
2748
+ class Ot {
2783
2749
  constructor(e) {
2784
- m(this, "cmsPortalService");
2785
- m(this, "authService");
2786
- m(this, "gameService");
2787
- m(this, "fileService");
2788
- m(this, "walletService");
2789
- m(this, "accountService");
2790
- m(this, "reportService");
2791
- m(this, "portalService");
2792
- m(this, "sessionManager");
2793
- m(this, "transformer");
2794
- m(this, "logger");
2750
+ d(this, "cmsPortalService");
2751
+ d(this, "authService");
2752
+ d(this, "gameService");
2753
+ d(this, "fileService");
2754
+ d(this, "walletService");
2755
+ d(this, "accountService");
2756
+ d(this, "reportService");
2757
+ d(this, "portalService");
2758
+ d(this, "sessionManager");
2759
+ d(this, "transformer");
2760
+ d(this, "logger");
2795
2761
  const {
2796
2762
  /**/
2797
2763
  site: t,
@@ -2799,17 +2765,17 @@ class Lt {
2799
2765
  platform: a,
2800
2766
  environment: s,
2801
2767
  logs: c
2802
- } = e, u = s === "production";
2803
- this.transformer = new Ot({
2768
+ } = e, m = s === "production";
2769
+ this.transformer = new $t({
2804
2770
  environment: s
2805
- }), this.logger = new ke({
2771
+ }), this.logger = new Se({
2806
2772
  enabled: c ?? !1
2807
2773
  });
2808
- const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", y = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", T = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", N = u ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1", I = new vt({
2774
+ const l = m ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = m ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = m ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = m ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", _ = m ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = m ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = m ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", N = m ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1", R = new Ct({
2809
2775
  url: N,
2810
2776
  site: t,
2811
2777
  platform: r
2812
- }), S = {
2778
+ }), b = {
2813
2779
  middlewares: [this.authMiddleware],
2814
2780
  fetchOptions: {
2815
2781
  headers: {
@@ -2817,15 +2783,15 @@ class Lt {
2817
2783
  "Platform-Code": a
2818
2784
  }
2819
2785
  }
2820
- }, R = new Nt(new U(M, S)), D = new Mt(new U(v, S)), C = new Pt(new U(f, S)), P = new _t(new U(p, S)), x = new Rt(new U(y, S)), G = new It(new U(T, S)), _ = new Tt({
2786
+ }, I = new Tt(new U(M, b)), D = new kt(new U(v, b)), S = new Nt(new U(f, b)), P = new Et(new U(p, b)), $ = new vt(new U(w, b)), x = new _t(new U(_, b)), C = new St({
2821
2787
  url: l,
2822
2788
  platform: a
2823
- }), $ = new Ut({
2789
+ }), G = new Pt({
2824
2790
  logs: c,
2825
- authService: _,
2826
- walletService: C
2791
+ authService: C,
2792
+ walletService: S
2827
2793
  });
2828
- this.authService = _, this.gameService = R, this.fileService = D, this.walletService = C, this.accountService = P, this.reportService = x, this.portalService = G, this.sessionManager = $, this.cmsPortalService = I;
2794
+ this.authService = C, this.gameService = I, this.fileService = D, this.walletService = S, this.accountService = P, this.reportService = $, this.portalService = x, this.sessionManager = G, this.cmsPortalService = R;
2829
2795
  }
2830
2796
  get authMiddleware() {
2831
2797
  return async (e) => {
@@ -2839,7 +2805,7 @@ class Lt {
2839
2805
  case "NAME_AND_PASSWORD": {
2840
2806
  const t = await this.sessionManager.create({
2841
2807
  ...e,
2842
- password: await w(e.password)
2808
+ password: await y(e.password)
2843
2809
  });
2844
2810
  return t.ok ? t.data ? {
2845
2811
  ok: !0,
@@ -2866,7 +2832,7 @@ class Lt {
2866
2832
  return await this.sessionManager.createFromAuthenticator({
2867
2833
  type: "SECURITY_QUESTION",
2868
2834
  token: e.token,
2869
- secretAnswer: await w(e.secretAnswer)
2835
+ secretAnswer: await y(e.secretAnswer)
2870
2836
  });
2871
2837
  default:
2872
2838
  return {
@@ -2882,7 +2848,7 @@ class Lt {
2882
2848
  await this.sessionManager.destroy();
2883
2849
  }
2884
2850
  watchSession(e) {
2885
- const t = xt(e.interval ?? 3e4, 3e4, 6e4);
2851
+ const t = Rt(e.interval ?? 3e4, 3e4, 6e4);
2886
2852
  let r = null;
2887
2853
  const a = () => setTimeout(async () => {
2888
2854
  await this.sessionManager.verify() || await e.onInvalid(), r = a();
@@ -2934,28 +2900,22 @@ class Lt {
2934
2900
  /*+----------------------------------------+*/
2935
2901
  /**/
2936
2902
  async account() {
2937
- const [e, t] = await Promise.all([
2938
- this.accountService.memberAccount(),
2939
- this.reportService.member()
2940
- ]);
2941
- return e.ok ? t.ok ? {
2903
+ const e = await this.accountService.memberAccount();
2904
+ return e.ok ? {
2942
2905
  ok: !0,
2943
- data: this.transformer.transform.account({
2944
- ...e.data,
2945
- ...t.data
2946
- })
2947
- } : { ok: !1, error: t.error } : { ok: !1, error: e.error };
2906
+ data: this.transformer.transform.account(e.data)
2907
+ } : e;
2948
2908
  }
2949
2909
  async createAccount(e) {
2950
- const t = e.id ?? b.generate(A.Account).toString(), r = await this.accountService.registerMemberAccount({
2910
+ const t = e.id ?? k.generate(T.Account).toString(), r = await this.accountService.registerMemberAccount({
2951
2911
  input: {
2952
2912
  id: t,
2953
2913
  btag: e.btag,
2954
2914
  name: e.name,
2955
2915
  domain: e.domain,
2956
2916
  birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
2957
- password: await w(e.password),
2958
- mobileNumber: E(e.mobileNumber)
2917
+ password: await y(e.password),
2918
+ mobileNumber: A(e.mobileNumber)
2959
2919
  },
2960
2920
  referralCode: e.referralCode,
2961
2921
  verificationCode: e.verificationCode,
@@ -2964,12 +2924,12 @@ class Lt {
2964
2924
  return r.ok ? { ok: !0, data: { id: t } } : r;
2965
2925
  }
2966
2926
  async createAccount__next(e) {
2967
- const t = e.id ?? b.generate(A.Account).toString();
2927
+ const t = e.id ?? k.generate(T.Account).toString();
2968
2928
  if (e.type === "MOBILE_NUMBER") {
2969
2929
  const a = await this.accountService.registerMemberAccountViaMobile({
2970
2930
  input: {
2971
2931
  id: t,
2972
- mobileNumber: E(e.mobileNumber)
2932
+ mobileNumber: A(e.mobileNumber)
2973
2933
  },
2974
2934
  referralCode: e.referralCode,
2975
2935
  reCAPTCHAResponse: e.reCAPTCHAResponse,
@@ -2981,8 +2941,8 @@ class Lt {
2981
2941
  input: {
2982
2942
  id: t,
2983
2943
  name: e.name,
2984
- password: await w(e.password),
2985
- mobileNumber: e.mobileNumber ? E(e.mobileNumber) : void 0
2944
+ password: await y(e.password),
2945
+ mobileNumber: e.mobileNumber ? A(e.mobileNumber) : void 0
2986
2946
  },
2987
2947
  reCAPTCHAResponse: e.reCAPTCHAResponse
2988
2948
  });
@@ -2992,7 +2952,7 @@ class Lt {
2992
2952
  return await this.accountService.registerMayaMemberAccount({
2993
2953
  input: {
2994
2954
  name: e.name,
2995
- password: await w(e.password),
2955
+ password: await y(e.password),
2996
2956
  domain: e.domain
2997
2957
  }
2998
2958
  });
@@ -3003,12 +2963,12 @@ class Lt {
3003
2963
  id: e,
3004
2964
  data: {
3005
2965
  ...t,
3006
- password: t.password ? await w(t.password) : void 0,
3007
- transactionPassword: t.transactionPassword ? await w(t.transactionPassword) : void 0,
2966
+ password: t.password ? await y(t.password) : void 0,
2967
+ transactionPassword: t.transactionPassword ? await y(t.transactionPassword) : void 0,
3008
2968
  ...t.mobileNumber && {
3009
- mobileNumber: E(t.mobileNumber)
2969
+ mobileNumber: A(t.mobileNumber)
3010
2970
  },
3011
- secretAnswer: t.secretAnswer ? await w(t.secretAnswer) : void 0
2971
+ secretAnswer: t.secretAnswer ? await y(t.secretAnswer) : void 0
3012
2972
  }
3013
2973
  }
3014
2974
  });
@@ -3028,7 +2988,7 @@ class Lt {
3028
2988
  } : e;
3029
2989
  }
3030
2990
  async submitVerificationDetails(e) {
3031
- const t = e.id ?? b.generate(A.Verification).toString(), r = await this.accountService.createMemberVerification({
2991
+ const t = e.id ?? k.generate(T.Verification).toString(), r = await this.accountService.createMemberVerification({
3032
2992
  input: {
3033
2993
  id: t,
3034
2994
  ...e
@@ -3049,8 +3009,8 @@ class Lt {
3049
3009
  async resetPassword(e) {
3050
3010
  return await this.accountService.resetPassword({
3051
3011
  input: {
3052
- mobileNumber: E(e.mobileNumber),
3053
- newPassword: await w(e.newPassword)
3012
+ mobileNumber: A(e.mobileNumber),
3013
+ newPassword: await y(e.newPassword)
3054
3014
  },
3055
3015
  verificationCode: e.verificationCode
3056
3016
  });
@@ -3069,16 +3029,22 @@ class Lt {
3069
3029
  data: this.transformer.transform.profileCompletion(e.data)
3070
3030
  } : e;
3071
3031
  }
3032
+ /**
3033
+ * @deprecated use `sendVerificationCode__next`
3034
+ */
3072
3035
  async sendVerificationCode(e) {
3073
3036
  return await this.accountService.sendVerificationCode({
3074
3037
  input: {
3075
3038
  channel: "SMS",
3076
- recipient: E(e)
3039
+ recipient: A(e)
3077
3040
  }
3078
3041
  });
3079
3042
  }
3080
3043
  async sendVerificationCode__next(e) {
3081
- return this.authService.sendVerificationCode(e);
3044
+ return this.authService.sendVerificationCode({
3045
+ channel: "SMS",
3046
+ recipient: A(e)
3047
+ });
3082
3048
  }
3083
3049
  async wallet() {
3084
3050
  const e = await this.walletService.wallet();
@@ -3123,13 +3089,13 @@ class Lt {
3123
3089
  /*+----------------------------------------+*/
3124
3090
  /**/
3125
3091
  async createWithdrawal(e) {
3126
- const t = e.id ?? b.generate(A.Withdrawal).toString();
3092
+ const t = e.id ?? k.generate(T.Withdrawal).toString();
3127
3093
  if (e.type === "BANK") {
3128
3094
  const r = await this.walletService.createBankWithdrawal({
3129
3095
  input: {
3130
3096
  id: t,
3131
3097
  amount: e.amount.toString(),
3132
- transactionPassword: await w(e.transactionPassword)
3098
+ transactionPassword: await y(e.transactionPassword)
3133
3099
  }
3134
3100
  });
3135
3101
  if (!r.ok) return r;
@@ -3139,8 +3105,8 @@ class Lt {
3139
3105
  input: {
3140
3106
  id: t,
3141
3107
  amount: e.amount.toString(),
3142
- transactionPassword: await w(e.transactionPassword),
3143
- recipientMobileNumber: E(e.recipientMobileNumber)
3108
+ transactionPassword: await y(e.transactionPassword),
3109
+ recipientMobileNumber: A(e.recipientMobileNumber)
3144
3110
  }
3145
3111
  });
3146
3112
  if (!r.ok) return r;
@@ -3150,8 +3116,8 @@ class Lt {
3150
3116
  input: {
3151
3117
  id: t,
3152
3118
  amount: e.amount.toString(),
3153
- transactionPassword: await w(e.transactionPassword),
3154
- recipientMobileNumber: E(e.recipientMobileNumber)
3119
+ transactionPassword: await y(e.transactionPassword),
3120
+ recipientMobileNumber: A(e.recipientMobileNumber)
3155
3121
  }
3156
3122
  });
3157
3123
  if (!r.ok) return r;
@@ -3161,7 +3127,7 @@ class Lt {
3161
3127
  input: {
3162
3128
  id: t,
3163
3129
  amount: e.amount.toString(),
3164
- transactionPassword: await w(e.transactionPassword)
3130
+ transactionPassword: await y(e.transactionPassword)
3165
3131
  }
3166
3132
  });
3167
3133
  if (!r.ok) return r;
@@ -3192,7 +3158,7 @@ class Lt {
3192
3158
  /*+----------------------------------------+*/
3193
3159
  /**/
3194
3160
  async createDeposit(e) {
3195
- const t = e.id ?? b.generate(A.Deposit).toString();
3161
+ const t = e.id ?? k.generate(T.Deposit).toString();
3196
3162
  if (e.type === "MAYA") {
3197
3163
  const r = await this.walletService.createMayaDeposit({
3198
3164
  input: {
@@ -3357,51 +3323,15 @@ class Lt {
3357
3323
  /*+ GAME +*/
3358
3324
  /*+----------------------------------------+*/
3359
3325
  /**/
3360
- /** @deprecated use `game__next` */
3361
3326
  async game(e) {
3362
- return this.game__next(e);
3363
- }
3364
- async game__next(e) {
3365
3327
  const t = await this.cmsPortalService.game(e);
3366
3328
  return t.ok ? {
3367
3329
  ok: !0,
3368
- data: t.data ? this.transformer.transform.game__next(t.data) : null
3330
+ data: t.data ? this.transformer.transform.game(t.data) : null
3369
3331
  } : t;
3370
3332
  }
3371
- /** @deprecated use `games__next` */
3372
3333
  async games(e) {
3373
- const t = await this.walletService.games(e);
3374
- return t.ok ? {
3375
- ok: !0,
3376
- data: {
3377
- games: t.data.edges.map(({ cursor: r, node: a }) => ({
3378
- ...this.transformer.transform.game(a),
3379
- cursor: r
3380
- })),
3381
- totalCount: t.data.totalCount,
3382
- hasNextPage: t.data.pageInfo.hasNextPage,
3383
- endCursor: t.data.pageInfo.endCursor ?? void 0
3384
- }
3385
- } : t;
3386
- }
3387
- async games__next(e) {
3388
3334
  const t = await this.cmsPortalService.games(e);
3389
- return t.ok ? {
3390
- ok: !0,
3391
- data: {
3392
- games: t.data.edges.map(({ cursor: r, node: a }) => ({
3393
- ...this.transformer.transform.game__next(a),
3394
- cursor: r
3395
- })),
3396
- totalCount: t.data.totalCount,
3397
- hasNextPage: t.data.pageInfo.hasNextPage,
3398
- endCursor: t.data.pageInfo.endCursor ?? void 0
3399
- }
3400
- } : t;
3401
- }
3402
- /** @deprecated use `games__next` */
3403
- async games__legacy(e) {
3404
- const t = await this.gameService.games(e);
3405
3335
  return t.ok ? {
3406
3336
  ok: !0,
3407
3337
  data: {
@@ -3415,39 +3345,7 @@ class Lt {
3415
3345
  }
3416
3346
  } : t;
3417
3347
  }
3418
- /** @deprecated use `games__next` */
3419
- async gamesByName(e) {
3420
- const t = await this.walletService.gamesByName(e);
3421
- return t.ok ? {
3422
- ok: !0,
3423
- data: t.data.map(this.transformer.transform.game)
3424
- } : t;
3425
- }
3426
- /** @deprecated use `games__next` */
3427
- async gamesByName__legacy(e) {
3428
- const t = await this.gameService.gamesByName(e);
3429
- return t.ok ? {
3430
- ok: !0,
3431
- data: t.data.map(this.transformer.transform.game)
3432
- } : t;
3433
- }
3434
- /** @deprecated use `gameSession__next` */
3435
3348
  async gameSession(e) {
3436
- const t = await this.walletService.gameSession({ id: e });
3437
- return t.ok ? {
3438
- ok: !0,
3439
- data: t.data ? this.transformer.transform.gameSession(t.data) : null
3440
- } : t;
3441
- }
3442
- /** @deprecated use `gameSession__next` */
3443
- async gameSession__legacy(e) {
3444
- const t = await this.gameService.gameSession({ id: e });
3445
- return t.ok ? {
3446
- ok: !0,
3447
- data: t.data ? this.transformer.transform.gameSession(t.data) : null
3448
- } : t;
3449
- }
3450
- async gameSession__next(e) {
3451
3349
  const t = await this.walletService.gameSession({ id: e });
3452
3350
  if (!t.ok) return t;
3453
3351
  if (t.data)
@@ -3462,28 +3360,19 @@ class Lt {
3462
3360
  } : r;
3463
3361
  }
3464
3362
  async createGameSession(e) {
3465
- const t = e.id ?? b.generate(A.GameSession).toString(), r = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
3466
- return r.ok ? { ok: !0, data: { id: t } } : r;
3467
- }
3468
- /** @deprecated use `createGameSession__next` */
3469
- async createGameSession__legacy(e) {
3470
- const t = e.id ?? b.generate(A.GameSession).toString(), r = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
3471
- return r.ok ? { ok: !0, data: { id: t } } : r;
3472
- }
3473
- async createGameSession__next(e) {
3474
- const t = e.id ?? b.generate(A.GameSession).toString();
3363
+ const t = e.id ?? k.generate(T.GameSession).toString();
3475
3364
  if (e.game.startsWith("SPORTS:")) {
3476
- const u = await b.generateFromKey(A.Game, e.game).then(
3365
+ const m = await k.generateFromKey(T.Game, e.game).then(
3477
3366
  (f) => f.toString()
3478
3367
  ), l = await this.gameService.createGameSession({
3479
3368
  input: {
3480
3369
  id: t,
3481
- game: u
3370
+ game: m
3482
3371
  }
3483
3372
  });
3484
3373
  return l.ok ? { ok: !0, data: { id: t } } : l;
3485
3374
  }
3486
- const r = await this.game__next(e.game);
3375
+ const r = await this.game(e.game);
3487
3376
  if (!r.data)
3488
3377
  return {
3489
3378
  ok: !1,
@@ -3496,18 +3385,10 @@ class Lt {
3496
3385
  /**/
3497
3386
  provider: a,
3498
3387
  reference: s
3499
- } = r.data, c = Bt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
3388
+ } = r.data, c = Gt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
3500
3389
  return c.ok ? { ok: !0, data: { id: t } } : c;
3501
3390
  }
3502
- /** @deprecated use `endGameSession__next` */
3503
3391
  async endGameSession(e) {
3504
- return await this.walletService.endGameSession({ input: { id: e } });
3505
- }
3506
- /** @deprecated use `endGameSession__next` */
3507
- async endGameSession__legacy(e) {
3508
- return await this.gameService.endGameSession({ input: { id: e } });
3509
- }
3510
- async endGameSession__next(e) {
3511
3392
  const t = await this.walletService.endGameSession({ input: { id: e } });
3512
3393
  return t.ok ? t : await this.gameService.endGameSession({ input: { id: e } });
3513
3394
  }
@@ -3524,7 +3405,7 @@ class Lt {
3524
3405
  } : t;
3525
3406
  }
3526
3407
  async uploadImageFile(e) {
3527
- const t = e.id ?? b.generate(A.File).toString(), r = await this.fileService.uploadPrivateImageFile({
3408
+ const t = e.id ?? k.generate(T.File).toString(), r = await this.fileService.uploadPrivateImageFile({
3528
3409
  input: {
3529
3410
  id: t,
3530
3411
  file: e.file
@@ -3617,7 +3498,7 @@ class Lt {
3617
3498
  } : t;
3618
3499
  }
3619
3500
  }
3620
- const Wt = [
3501
+ const xt = [
3621
3502
  /**/
3622
3503
  "RTG",
3623
3504
  "DARWIN",
@@ -3627,12 +3508,12 @@ const Wt = [
3627
3508
  "EVOLUTION_NETENT",
3628
3509
  "EVOLUTION_REDTIGER"
3629
3510
  ];
3630
- function Bt(n) {
3631
- return Wt.some((e) => e === n);
3511
+ function Gt(o) {
3512
+ return xt.some((e) => e === o);
3632
3513
  }
3633
3514
  export {
3634
- Yt as ObjectId,
3635
- A as ObjectType,
3636
- Lt as Sdk
3515
+ Ft as ObjectId,
3516
+ T as ObjectType,
3517
+ Ot as Sdk
3637
3518
  };
3638
3519
  //# sourceMappingURL=index.mjs.map