@opexa/portal-sdk 0.0.43 → 0.0.44

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 Te = Object.defineProperty;
2
- var ve = (n, e, t) => e in n ? Te(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
1
+ var Ce = Object.defineProperty;
2
+ var ve = (n, e, t) => e in n ? Ce(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var m = (n, e, t) => ve(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { ObjectId as E } from "@opexa/object-id";
5
- import { ObjectId as qt } from "@opexa/object-id";
6
- const b = {
4
+ import { ObjectId as A } from "@opexa/object-id";
5
+ import { ObjectId as Lt } from "@opexa/object-id";
6
+ const S = {
7
7
  Account: 8,
8
8
  Deposit: 9,
9
9
  Withdrawal: 14,
@@ -15,9 +15,9 @@ const b = {
15
15
  };
16
16
  function o(n, ...e) {
17
17
  let t = "";
18
- for (const [r, a] of n.entries()) {
19
- const s = e.at(r) ?? "";
20
- t = `${t}${a}${s}`;
18
+ for (const [a, r] of n.entries()) {
19
+ const s = e.at(a) ?? "";
20
+ t = `${t}${r}${s}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
@@ -128,7 +128,7 @@ const L = o`
128
128
  }
129
129
  }
130
130
  }
131
- `, Se = o`
131
+ `, Ee = o`
132
132
  query GamesByName($first: Int, $search: String!, $filter: GameFilterInput) {
133
133
  gamesByName(first: $first, search: $search, filter: $filter) {
134
134
  ... on Game {
@@ -139,7 +139,7 @@ const L = o`
139
139
  }
140
140
  }
141
141
  }
142
- `, Ee = o`
142
+ `, Ae = o`
143
143
  query GameSession($id: ObjectId!) {
144
144
  node(id: $id) {
145
145
  ... on GameSession {
@@ -151,7 +151,7 @@ const L = o`
151
151
  }
152
152
  }
153
153
  }
154
- `, be = o`
154
+ `, Se = o`
155
155
  mutation CreateGameSession($input: CreateGameSessionInput!) {
156
156
  createGameSession(input: $input) {
157
157
  ... on GameDoesNotExistError {
@@ -159,11 +159,11 @@ const L = o`
159
159
  }
160
160
  }
161
161
  }
162
- `, Ge = o`
162
+ `, xe = o`
163
163
  mutation EndGameSession($input: EndGameSessionInput!) {
164
164
  endGameSession(input: $input)
165
165
  }
166
- `, xe = o`
166
+ `, Ge = o`
167
167
  mutation EndGameSession($input: EndGameSessionInput!) {
168
168
  endGameSession(input: $input) {
169
169
  ... on GameSessionDoesNotExistError {
@@ -177,7 +177,7 @@ const L = o`
177
177
  }
178
178
  }
179
179
  }
180
- `, $e = o`
180
+ `, We = o`
181
181
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
182
182
  announcements(first: $first, after: $after, filter: $filter) {
183
183
  edges {
@@ -203,7 +203,7 @@ const L = o`
203
203
  }
204
204
  }
205
205
  }
206
- `, We = o`
206
+ `, $e = o`
207
207
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
208
208
  member {
209
209
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -337,6 +337,26 @@ const L = o`
337
337
  }
338
338
  }
339
339
  `, qe = o`
340
+ mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
341
+ createMayaAppWithdrawal: createMayaAppWithdrawal_next(input: $input) {
342
+ ... on AccountNotVerifiedError {
343
+ __typename
344
+ }
345
+ ... on InvalidTransactionPasswordError {
346
+ __typename
347
+ }
348
+ ... on InvalidWithdrawalAmountError {
349
+ __typename
350
+ }
351
+ ... on NotEnoughBalanceError {
352
+ __typename
353
+ }
354
+ ... on WithdrawalDailyLimitExceededError {
355
+ __typename
356
+ }
357
+ }
358
+ }
359
+ `, Fe = o`
340
360
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
341
361
  createBankWithdrawal(input: $input) {
342
362
  ... on MobileNumberNotVerifiedError {
@@ -359,11 +379,11 @@ const L = o`
359
379
  }
360
380
  }
361
381
  }
362
- `, Fe = o`
382
+ `, Le = o`
363
383
  query RemainingDailyWithdrawalsCount {
364
384
  remainingDailyWithdrawalsCount
365
385
  }
366
- `, Le = o`
386
+ `, Ve = o`
367
387
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
368
388
  member {
369
389
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -392,7 +412,7 @@ const L = o`
392
412
  }
393
413
  }
394
414
  }
395
- `, Ve = o`
415
+ `, Ye = o`
396
416
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
397
417
  createGCashDeposit(input: $input) {
398
418
  ... on DepositPromoMaximumAmountExceededError {
@@ -421,7 +441,7 @@ const L = o`
421
441
  }
422
442
  }
423
443
  }
424
- `, Ye = o`
444
+ `, He = o`
425
445
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
426
446
  createMayaDeposit(input: $input) {
427
447
  ... on DepositPromoMaximumAmountExceededError {
@@ -450,7 +470,7 @@ const L = o`
450
470
  }
451
471
  }
452
472
  }
453
- `, He = o`
473
+ `, je = o`
454
474
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
455
475
  createMayaAppDeposit(input: $input) {
456
476
  ... on DepositPromoMaximumAmountExceededError {
@@ -479,7 +499,36 @@ const L = o`
479
499
  }
480
500
  }
481
501
  }
482
- `, je = o`
502
+ `, Qe = o`
503
+ mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
504
+ createMayaAppDeposit: createMayaAppDeposit_next(input: $input) {
505
+ ... on DepositPromoMaximumAmountExceededError {
506
+ __typename
507
+ }
508
+ ... on DepositPromoMinimumAmountNotMetError {
509
+ __typename
510
+ }
511
+ ... on HasActiveBonusError {
512
+ __typename
513
+ }
514
+ ... on MaximumDepositAmountExceededError {
515
+ __typename
516
+ }
517
+ ... on MinimumDepositAmountNotMetError {
518
+ __typename
519
+ }
520
+ ... on MinimumFirstDepositAmountNotMetError {
521
+ __typename
522
+ }
523
+ ... on PromoNotEnabledError {
524
+ __typename
525
+ }
526
+ ... on WalletDoesNotExistError {
527
+ __typename
528
+ }
529
+ }
530
+ }
531
+ `, Ke = o`
483
532
  query Deposit($id: ObjectId!) {
484
533
  node(id: $id) {
485
534
  ... on GCashDeposit {
@@ -511,13 +560,13 @@ const L = o`
511
560
  }
512
561
  }
513
562
  }
514
- `, Qe = o`
563
+ `, ze = o`
515
564
  query DepositsCount {
516
565
  member {
517
566
  depositsCount
518
567
  }
519
568
  }
520
- `, Ke = o`
569
+ `, Je = o`
521
570
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
522
571
  member {
523
572
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -529,6 +578,7 @@ const L = o`
529
578
  id
530
579
  serialCode
531
580
  game {
581
+ id
532
582
  name
533
583
  type
534
584
  provider
@@ -557,7 +607,7 @@ const L = o`
557
607
  }
558
608
  }
559
609
  }
560
- `, ze = o`
610
+ `, Xe = o`
561
611
  query LatestBetRecords {
562
612
  latestBetRecords {
563
613
  id
@@ -565,6 +615,7 @@ const L = o`
565
615
  name
566
616
  }
567
617
  game {
618
+ id
568
619
  name
569
620
  type
570
621
  provider
@@ -576,7 +627,7 @@ const L = o`
576
627
  dateTimeCreated
577
628
  }
578
629
  }
579
- `, Je = o`
630
+ `, Ze = o`
580
631
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
581
632
  member {
582
633
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -621,7 +672,7 @@ const L = o`
621
672
  dateTimeCreated
622
673
  dateTimeLastUpdated
623
674
  }
624
- `, Xe = o`
675
+ `, et = o`
625
676
  ${H}
626
677
 
627
678
  query Promos {
@@ -629,7 +680,7 @@ const L = o`
629
680
  ...PromoFragment
630
681
  }
631
682
  }
632
- `, Ze = o`
683
+ `, tt = o`
633
684
  ${H}
634
685
 
635
686
  query AvailablePromos($filter: PromoFilterInput) {
@@ -637,7 +688,7 @@ const L = o`
637
688
  ...PromoFragment
638
689
  }
639
690
  }
640
- `, Ae = o`
691
+ `, be = o`
641
692
  ${L}
642
693
 
643
694
  fragment CashbackFragment on Cashback {
@@ -654,15 +705,15 @@ const L = o`
654
705
  dateTimeCreated
655
706
  dateTimeLastUpdated
656
707
  }
657
- `, et = o`
658
- ${Ae}
708
+ `, at = o`
709
+ ${be}
659
710
 
660
711
  query Cashbacks {
661
712
  cashbacks {
662
713
  ...CashbackFragment
663
714
  }
664
715
  }
665
- `, tt = o`
716
+ `, rt = o`
666
717
  ${H}
667
718
 
668
719
  query Bonus {
@@ -691,8 +742,8 @@ const L = o`
691
742
  dateTimeLastUpdated
692
743
  }
693
744
  }
694
- `, rt = o`
695
- ${Ae}
745
+ `, nt = o`
746
+ ${be}
696
747
 
697
748
  query CashbackBonuses {
698
749
  cashbackBonuses {
@@ -705,7 +756,7 @@ const L = o`
705
756
  dateTimeLastUpdated
706
757
  }
707
758
  }
708
- `, at = o`
759
+ `, ot = o`
709
760
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
710
761
  claimCashbackBonus(input: $input) {
711
762
  ... on CashbackBonusDoesNotExistError {
@@ -713,13 +764,13 @@ const L = o`
713
764
  }
714
765
  }
715
766
  }
716
- `, nt = o`
767
+ `, it = o`
717
768
  query Member {
718
769
  member {
719
770
  dateTimeLastActive
720
771
  }
721
772
  }
722
- `, ot = o`
773
+ `, st = o`
723
774
  query MemberAccount {
724
775
  memberAccount: self {
725
776
  ... on MemberAccount {
@@ -743,7 +794,7 @@ const L = o`
743
794
  }
744
795
  }
745
796
  }
746
- `, it = o`
797
+ `, ct = o`
747
798
  ${L}
748
799
 
749
800
  query MemberVerification {
@@ -767,7 +818,7 @@ const L = o`
767
818
  }
768
819
  }
769
820
  }
770
- `, st = o`
821
+ `, mt = o`
771
822
  mutation RegisterMemberAccount(
772
823
  $input: RegisterMemberAccountInput!
773
824
  $referralCode: String
@@ -803,7 +854,7 @@ const L = o`
803
854
  }
804
855
  }
805
856
  }
806
- `, ct = o`
857
+ `, ut = o`
807
858
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
808
859
  registerMayaMemberAccount(input: $input) {
809
860
  ... on AccountNameNotAvailableError {
@@ -811,7 +862,7 @@ const L = o`
811
862
  }
812
863
  }
813
864
  }
814
- `, mt = o`
865
+ `, dt = o`
815
866
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
816
867
  updateMemberAccount(input: $input) {
817
868
  ... on AccountNameNotAvailableError {
@@ -837,7 +888,7 @@ const L = o`
837
888
  }
838
889
  }
839
890
  }
840
- `, dt = o`
891
+ `, lt = o`
841
892
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
842
893
  resetPassword(input: $input, verificationCode: $verificationCode) {
843
894
  ... on AccountNotFoundError {
@@ -848,11 +899,11 @@ const L = o`
848
899
  }
849
900
  }
850
901
  }
851
- `, ut = o`
902
+ `, pt = o`
852
903
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
853
904
  deleteMemberAccount(input: $input)
854
905
  }
855
- `, lt = o`
906
+ `, ft = o`
856
907
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
857
908
  verifyMobileNumber(input: $input) {
858
909
  ... on InvalidSMSVerificationCodeError {
@@ -863,7 +914,7 @@ const L = o`
863
914
  }
864
915
  }
865
916
  }
866
- `, pt = o`
917
+ `, ht = o`
867
918
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
868
919
  createMemberVerification(input: $input) {
869
920
  ... on FileDoesNotExistError {
@@ -877,7 +928,7 @@ const L = o`
877
928
  }
878
929
  }
879
930
  }
880
- `, ft = o`
931
+ `, yt = o`
881
932
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
882
933
  updateMemberVerification(input: $input) {
883
934
  ... on FileDoesNotExistError {
@@ -894,7 +945,7 @@ const L = o`
894
945
  }
895
946
  }
896
947
  }
897
- `, ht = o`
948
+ `, wt = o`
898
949
  query ProfileCompletion {
899
950
  profileCompletion {
900
951
  completionPercentage
@@ -905,7 +956,7 @@ const L = o`
905
956
  accountPassword
906
957
  }
907
958
  }
908
- `, wt = o`
959
+ `, gt = o`
909
960
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
910
961
  sendVerificationCode(input: $input) {
911
962
  ... on InvalidPlatformError {
@@ -916,7 +967,7 @@ const L = o`
916
967
  }
917
968
  }
918
969
  }
919
- `, yt = o`
970
+ `, Et = o`
920
971
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
921
972
  minimumAmount
922
973
  maximumAmount
@@ -970,7 +1021,7 @@ const L = o`
970
1021
  multiplier
971
1022
  }
972
1023
  }
973
- `, gt = o`
1024
+ `, At = o`
974
1025
  query MayaSession($id: ObjectId!) {
975
1026
  mayaSession(id: $id) {
976
1027
  id
@@ -982,7 +1033,7 @@ const L = o`
982
1033
  mutation ValidateMayaSession {
983
1034
  validateMayaSession: validMayaSession
984
1035
  }
985
- `, Et = o`
1036
+ `, bt = o`
986
1037
  query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
987
1038
  member {
988
1039
  activityRecords(after: $after, first: $first, filter: $filter) {
@@ -1062,21 +1113,21 @@ function u(n) {
1062
1113
  }[n]
1063
1114
  };
1064
1115
  }
1065
- class bt {
1116
+ class kt {
1066
1117
  constructor(e) {
1067
1118
  m(this, "client");
1068
1119
  this.client = e;
1069
1120
  }
1070
1121
  /** aka `Query.self` */
1071
1122
  async memberAccount() {
1072
- const e = await this.client.request(ot);
1123
+ const e = await this.client.request(st);
1073
1124
  return e.ok ? {
1074
1125
  ok: !0,
1075
1126
  data: e.data.memberAccount
1076
1127
  } : e;
1077
1128
  }
1078
1129
  async registerMemberAccount(e) {
1079
- const t = await this.client.request(st, e);
1130
+ const t = await this.client.request(mt, e);
1080
1131
  return t.ok ? t.data.registerMemberAccount ? {
1081
1132
  ok: !1,
1082
1133
  error: u(t.data.registerMemberAccount.__typename)
@@ -1085,7 +1136,7 @@ class bt {
1085
1136
  } : t;
1086
1137
  }
1087
1138
  async updateMemberAccount(e) {
1088
- const t = await this.client.request(mt, e);
1139
+ const t = await this.client.request(dt, e);
1089
1140
  return t.ok ? t.data.updateMemberAccount ? {
1090
1141
  ok: !1,
1091
1142
  error: u(t.data.updateMemberAccount.__typename)
@@ -1094,7 +1145,7 @@ class bt {
1094
1145
  } : t;
1095
1146
  }
1096
1147
  async deleteMemberAccount(e) {
1097
- const t = await this.client.request(ut, e);
1148
+ const t = await this.client.request(pt, e);
1098
1149
  return t.ok ? t.data.deleteMemberAccount ? {
1099
1150
  ok: !0
1100
1151
  } : {
@@ -1107,7 +1158,7 @@ class bt {
1107
1158
  }
1108
1159
  async resetPassword(e) {
1109
1160
  const t = await this.client.request(
1110
- dt,
1161
+ lt,
1111
1162
  e
1112
1163
  );
1113
1164
  return t.ok ? t.data.resetPassword ? {
@@ -1118,14 +1169,14 @@ class bt {
1118
1169
  } : t;
1119
1170
  }
1120
1171
  async profileCompletion() {
1121
- const e = await this.client.request(ht);
1172
+ const e = await this.client.request(wt);
1122
1173
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1123
1174
  }
1124
1175
  async platform() {
1125
- return await this.client.request(yt);
1176
+ return await this.client.request(Et);
1126
1177
  }
1127
1178
  async sendVerificationCode(e) {
1128
- const t = await this.client.request(wt, e);
1179
+ const t = await this.client.request(gt, e);
1129
1180
  return t.ok ? t.data.sendVerificationCode ? {
1130
1181
  ok: !1,
1131
1182
  error: u(t.data.sendVerificationCode.__typename)
@@ -1134,7 +1185,7 @@ class bt {
1134
1185
  } : t;
1135
1186
  }
1136
1187
  async verifyMobileNumber(e) {
1137
- const t = await this.client.request(lt, e);
1188
+ const t = await this.client.request(ft, e);
1138
1189
  return t.ok ? t.data.verifyMobileNumber ? {
1139
1190
  ok: !1,
1140
1191
  error: u(t.data.verifyMobileNumber.__typename)
@@ -1143,7 +1194,7 @@ class bt {
1143
1194
  } : t;
1144
1195
  }
1145
1196
  async createMemberVerification(e) {
1146
- const t = await this.client.request(pt, e);
1197
+ const t = await this.client.request(ht, e);
1147
1198
  return t.ok ? t.data.createMemberVerification ? {
1148
1199
  ok: !1,
1149
1200
  error: u(t.data.createMemberVerification.__typename)
@@ -1152,7 +1203,7 @@ class bt {
1152
1203
  } : t;
1153
1204
  }
1154
1205
  async updateMemberVerification(e) {
1155
- const t = await this.client.request(ft, e);
1206
+ const t = await this.client.request(yt, e);
1156
1207
  return t.ok ? t.data.updateMemberVerification ? {
1157
1208
  ok: !1,
1158
1209
  error: u(t.data.updateMemberVerification.__typename)
@@ -1161,7 +1212,7 @@ class bt {
1161
1212
  } : t;
1162
1213
  }
1163
1214
  async memberVerification() {
1164
- const e = await this.client.request(it);
1215
+ const e = await this.client.request(ct);
1165
1216
  return e.ok ? {
1166
1217
  ok: !0,
1167
1218
  data: e.data.memberAccount.verification
@@ -1169,7 +1220,7 @@ class bt {
1169
1220
  }
1170
1221
  async announcements(e) {
1171
1222
  const t = await this.client.request(
1172
- $e,
1223
+ We,
1173
1224
  e
1174
1225
  );
1175
1226
  return t.ok ? {
@@ -1178,7 +1229,7 @@ class bt {
1178
1229
  } : t;
1179
1230
  }
1180
1231
  async registerMayaMemberAccount(e) {
1181
- const t = await this.client.request(ct, e);
1232
+ const t = await this.client.request(ut, e);
1182
1233
  return t.ok ? t.data.registerMayaMemberAccount ? {
1183
1234
  ok: !1,
1184
1235
  error: u(t.data.registerMayaMemberAccount.__typename)
@@ -1203,7 +1254,7 @@ const V = {
1203
1254
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1204
1255
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1205
1256
  };
1206
- class At {
1257
+ class _t {
1207
1258
  constructor(e) {
1208
1259
  m(this, "url");
1209
1260
  m(this, "platform");
@@ -1216,28 +1267,28 @@ class At {
1216
1267
  Role: "MEMBER"
1217
1268
  });
1218
1269
  if (e.name) {
1219
- const r = `${e.name}:${e.password}`, a = Buffer.from(r).toString("base64");
1220
- t.set("Authorization", `Basic ${a}`);
1270
+ const a = `${e.name}:${e.password}`, r = Buffer.from(a).toString("base64");
1271
+ t.set("Authorization", `Basic ${r}`);
1221
1272
  }
1222
1273
  if (e.mobileNumber) {
1223
- const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
1224
- t.set("Authorization", `MobileNumberOTP ${a}`);
1274
+ const a = `${e.mobileNumber}:${e.verificationCode}`, r = Buffer.from(a).toString("base64");
1275
+ t.set("Authorization", `MobileNumberOTP ${r}`);
1225
1276
  }
1226
1277
  e.sessionId && t.set("Authorization", `Maya ${e.sessionId}`);
1227
1278
  try {
1228
- const r = await fetch(`${this.url}/sessions`, {
1279
+ const a = await fetch(`${this.url}/sessions`, {
1229
1280
  method: "POST",
1230
1281
  headers: t
1231
- }), a = await r.json();
1232
- return r.ok ? {
1282
+ }), r = await a.json();
1283
+ return a.ok ? {
1233
1284
  ok: !0,
1234
- data: a
1235
- } : a.code === "ACCOUNT_BLACKLISTED" ? {
1285
+ data: r
1286
+ } : r.code === "ACCOUNT_BLACKLISTED" ? {
1236
1287
  ok: !1,
1237
1288
  error: u("AccountBlacklisted")
1238
1289
  } : {
1239
1290
  ok: !1,
1240
- error: h(r.status)
1291
+ error: h(a.status)
1241
1292
  };
1242
1293
  } catch {
1243
1294
  return {
@@ -1255,22 +1306,22 @@ class At {
1255
1306
  if (e.type === "SECURITY_QUESTION") {
1256
1307
  t.set("Authorization", `Bearer ${e.token}`);
1257
1308
  try {
1258
- const r = await fetch(`${this.url}/session/${e.token}/authenticate`, {
1309
+ const a = await fetch(`${this.url}/session/${e.token}/authenticate`, {
1259
1310
  method: "POST",
1260
1311
  headers: t,
1261
1312
  body: JSON.stringify({
1262
1313
  secretAnswer: e.secretAnswer
1263
1314
  })
1264
- }), a = await r.json();
1265
- return r.ok ? {
1315
+ }), r = await a.json();
1316
+ return a.ok ? {
1266
1317
  ok: !0,
1267
- data: a
1268
- } : r.status === 401 || r.status === 403 ? {
1318
+ data: r
1319
+ } : a.status === 401 || a.status === 403 ? {
1269
1320
  ok: !1,
1270
1321
  error: u("InvalidTokenOrSecretAnswer")
1271
1322
  } : {
1272
1323
  ok: !1,
1273
- error: h(r.status)
1324
+ error: h(a.status)
1274
1325
  };
1275
1326
  } catch {
1276
1327
  return {
@@ -1291,11 +1342,11 @@ class At {
1291
1342
  Role: "MEMBER",
1292
1343
  Authorization: `Bearer ${e}`
1293
1344
  }
1294
- }), r = await t.json();
1345
+ }), a = await t.json();
1295
1346
  return t.ok ? {
1296
1347
  ok: !0,
1297
- data: r
1298
- } : r.code === "ACCOUNT_BLACKLISTED" ? {
1348
+ data: a
1349
+ } : a.code === "ACCOUNT_BLACKLISTED" ? {
1299
1350
  ok: !1,
1300
1351
  error: u("AccountBlacklisted")
1301
1352
  } : t.status === 403 || t.status === 401 ? {
@@ -1344,7 +1395,7 @@ class At {
1344
1395
  }
1345
1396
  }
1346
1397
  }
1347
- class kt {
1398
+ class Tt {
1348
1399
  constructor(e) {
1349
1400
  m(this, "url");
1350
1401
  m(this, "siteId");
@@ -1359,35 +1410,35 @@ class kt {
1359
1410
  } : e;
1360
1411
  }
1361
1412
  async games(e) {
1362
- var a, s, c, p, l, f, w, d, _, C, T, v, M, N, I, D, R, P, G, x, $, W, U, B;
1413
+ var r, s, c, p, l, f, y, d, _, T, C, v, M, N, I, D, R, P, x, G, W, $, U, B;
1363
1414
  const t = new URLSearchParams();
1364
- 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), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.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(",")), (d = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && d.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (C = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && C.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.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 = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (W = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && W.in && t.set(
1415
+ e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (p = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && p.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(",")), (d = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && d.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (v = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && v.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.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 = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.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()), ($ = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && $.in && t.set(
1365
1416
  "filter[tags][in]",
1366
- e.filter.tags.in.map((S) => S.toLowerCase()).join(",")
1417
+ e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1367
1418
  ), (B = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.tags) != null && B.notIn && t.set(
1368
1419
  "filter[tags][nin]",
1369
- e.filter.tags.notIn.map((S) => S.toLowerCase()).join(",")
1420
+ e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
1370
1421
  );
1371
- const r = await this.getJson("/games", t);
1372
- return r.ok ? {
1422
+ const a = await this.getJson("/games", t);
1423
+ return a.ok ? {
1373
1424
  ok: !0,
1374
1425
  data: {
1375
- edges: r.data.data.map((S) => ({
1376
- node: S,
1377
- cursor: S.cursor
1426
+ edges: a.data.data.map((E) => ({
1427
+ node: E,
1428
+ cursor: E.cursor
1378
1429
  })),
1379
- totalCount: r.data.totalCount ?? 0,
1430
+ totalCount: a.data.totalCount ?? 0,
1380
1431
  pageInfo: {
1381
- hasNextPage: !!r.data.next,
1382
- endCursor: r.data.next
1432
+ hasNextPage: !!a.data.next,
1433
+ endCursor: a.data.next
1383
1434
  }
1384
1435
  }
1385
- } : r;
1436
+ } : a;
1386
1437
  }
1387
1438
  async game(e) {
1388
- var r;
1439
+ var a;
1389
1440
  const t = await this.getJson(`/games/${e}`);
1390
- return ((r = t.error) == null ? void 0 : r.name) === "HttpNotFound" ? {
1441
+ return ((a = t.error) == null ? void 0 : a.name) === "HttpNotFound" ? {
1391
1442
  ok: !0,
1392
1443
  data: null
1393
1444
  } : t.ok ? {
@@ -1396,7 +1447,7 @@ class kt {
1396
1447
  } : t;
1397
1448
  }
1398
1449
  async getJson(e, t) {
1399
- const r = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1450
+ const a = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1400
1451
  method: "GET",
1401
1452
  headers: {
1402
1453
  Accept: "application/json",
@@ -1406,13 +1457,13 @@ class kt {
1406
1457
  }
1407
1458
  });
1408
1459
  try {
1409
- const a = await fetch(r);
1410
- return a.ok ? {
1460
+ const r = await fetch(a);
1461
+ return r.ok ? {
1411
1462
  ok: !0,
1412
- data: await a.json()
1463
+ data: await r.json()
1413
1464
  } : {
1414
1465
  ok: !1,
1415
- error: h(a.status)
1466
+ error: h(r.status)
1416
1467
  };
1417
1468
  } catch {
1418
1469
  return {
@@ -1422,7 +1473,7 @@ class kt {
1422
1473
  }
1423
1474
  }
1424
1475
  }
1425
- class _t {
1476
+ class Ct {
1426
1477
  constructor(e) {
1427
1478
  m(this, "client");
1428
1479
  this.client = e;
@@ -1444,7 +1495,7 @@ class _t {
1444
1495
  } : t;
1445
1496
  }
1446
1497
  }
1447
- class Ct {
1498
+ class vt {
1448
1499
  constructor(e) {
1449
1500
  m(this, "client");
1450
1501
  this.client = e;
@@ -1457,20 +1508,20 @@ class Ct {
1457
1508
  /** @deprecated */
1458
1509
  async gamesByName(e) {
1459
1510
  const t = await this.client.request(
1460
- Se,
1511
+ Ee,
1461
1512
  e
1462
1513
  );
1463
1514
  return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
1464
1515
  }
1465
1516
  async gameSession(e) {
1466
1517
  const t = await this.client.request(
1467
- Ee,
1518
+ Ae,
1468
1519
  e
1469
1520
  );
1470
1521
  return t.ok ? { ok: !0, data: t.data.node } : t;
1471
1522
  }
1472
1523
  async createGameSession(e) {
1473
- const t = await this.client.request(be, e);
1524
+ const t = await this.client.request(Se, e);
1474
1525
  return t.ok ? t.data.createGameSession ? {
1475
1526
  ok: !1,
1476
1527
  error: u(t.data.createGameSession.__typename)
@@ -1479,7 +1530,7 @@ class Ct {
1479
1530
  } : t;
1480
1531
  }
1481
1532
  async endGameSession(e) {
1482
- const t = await this.client.request(xe, e);
1533
+ const t = await this.client.request(Ge, e);
1483
1534
  return t.ok ? t.data.endGameSession ? {
1484
1535
  ok: !1,
1485
1536
  error: u(t.data.endGameSession.__typename)
@@ -1488,55 +1539,55 @@ class Ct {
1488
1539
  } : t;
1489
1540
  }
1490
1541
  }
1491
- class Tt {
1542
+ class Mt {
1492
1543
  constructor(e) {
1493
1544
  m(this, "client");
1494
1545
  this.client = e;
1495
1546
  }
1496
1547
  async latestBetRecords() {
1497
- const e = await this.client.request(ze);
1548
+ const e = await this.client.request(Xe);
1498
1549
  return e.ok ? {
1499
1550
  ok: !0,
1500
1551
  data: e.data.latestBetRecords
1501
1552
  } : e;
1502
1553
  }
1503
1554
  }
1504
- class vt {
1555
+ class Nt {
1505
1556
  constructor(e) {
1506
1557
  m(this, "client");
1507
1558
  this.client = e;
1508
1559
  }
1509
1560
  async betRecords(e) {
1510
1561
  const t = await this.client.request(
1511
- Ke,
1562
+ Je,
1512
1563
  e
1513
1564
  );
1514
1565
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1515
1566
  }
1516
1567
  async transactionRecords(e) {
1517
- const t = await this.client.request(Je, e);
1568
+ const t = await this.client.request(Ze, e);
1518
1569
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1519
1570
  }
1520
1571
  async withdrawalRecords(e) {
1521
1572
  const t = await this.client.request(
1522
- We,
1573
+ $e,
1523
1574
  e
1524
1575
  );
1525
1576
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1526
1577
  }
1527
1578
  async depositRecords(e) {
1528
1579
  const t = await this.client.request(
1529
- Le,
1580
+ Ve,
1530
1581
  e
1531
1582
  );
1532
1583
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1533
1584
  }
1534
1585
  async depositsCount() {
1535
- const e = await this.client.request(Qe);
1586
+ const e = await this.client.request(ze);
1536
1587
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1537
1588
  }
1538
1589
  async member() {
1539
- const e = await this.client.request(nt);
1590
+ const e = await this.client.request(it);
1540
1591
  return e.ok ? { ok: e.ok, data: e.data.member } : e;
1541
1592
  }
1542
1593
  async pointsWalletTransactions(e) {
@@ -1545,13 +1596,13 @@ class vt {
1545
1596
  }
1546
1597
  async activityRecords(e) {
1547
1598
  const t = await this.client.request(
1548
- Et,
1599
+ bt,
1549
1600
  e
1550
1601
  );
1551
1602
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1552
1603
  }
1553
1604
  }
1554
- class Mt {
1605
+ class It {
1555
1606
  constructor(e) {
1556
1607
  m(this, "url");
1557
1608
  this.url = e.url;
@@ -1569,26 +1620,26 @@ class ke {
1569
1620
  this.client = e;
1570
1621
  }
1571
1622
  async promos() {
1572
- const e = await this.client.request(Xe);
1623
+ const e = await this.client.request(et);
1573
1624
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
1574
1625
  }
1575
1626
  async cashbacks() {
1576
- const e = await this.client.request(et);
1627
+ const e = await this.client.request(at);
1577
1628
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
1578
1629
  }
1579
1630
  async availablePromos(e) {
1580
1631
  const t = await this.client.request(
1581
- Ze,
1632
+ tt,
1582
1633
  e
1583
1634
  );
1584
1635
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
1585
1636
  }
1586
1637
  async cashbackBonuses() {
1587
- const e = await this.client.request(rt);
1638
+ const e = await this.client.request(nt);
1588
1639
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
1589
1640
  }
1590
1641
  async claimCashbackBonus(e) {
1591
- const t = await this.client.request(at, e);
1642
+ const t = await this.client.request(ot, e);
1592
1643
  return t.ok ? t.data.claimCashbackBonus ? {
1593
1644
  ok: !1,
1594
1645
  error: u(t.data.claimCashbackBonus.__typename)
@@ -1600,7 +1651,7 @@ class ke {
1600
1651
  };
1601
1652
  }
1602
1653
  async bonus() {
1603
- const e = await this.client.request(tt);
1654
+ const e = await this.client.request(rt);
1604
1655
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1605
1656
  }
1606
1657
  async wallet() {
@@ -1609,13 +1660,13 @@ class ke {
1609
1660
  }
1610
1661
  async deposit(e) {
1611
1662
  const t = await this.client.request(
1612
- je,
1663
+ Ke,
1613
1664
  e
1614
1665
  );
1615
1666
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
1616
1667
  }
1617
1668
  async createGCashDeposit(e) {
1618
- const t = await this.client.request(Ve, e);
1669
+ const t = await this.client.request(Ye, e);
1619
1670
  return t.ok ? t.data.createGCashDeposit ? {
1620
1671
  ok: !1,
1621
1672
  error: u(t.data.createGCashDeposit.__typename)
@@ -1624,7 +1675,7 @@ class ke {
1624
1675
  } : t;
1625
1676
  }
1626
1677
  async createMayaDeposit(e) {
1627
- const t = await this.client.request(Ye, e);
1678
+ const t = await this.client.request(He, e);
1628
1679
  return t.ok ? t.data.createMayaDeposit ? {
1629
1680
  ok: !1,
1630
1681
  error: u(t.data.createMayaDeposit.__typename)
@@ -1633,7 +1684,16 @@ class ke {
1633
1684
  } : t;
1634
1685
  }
1635
1686
  async createMayaAppDeposit(e) {
1636
- const t = await this.client.request(He, e);
1687
+ const t = await this.client.request(je, e);
1688
+ return t.ok ? t.data.createMayaAppDeposit ? {
1689
+ ok: !1,
1690
+ error: u(t.data.createMayaAppDeposit.__typename)
1691
+ } : {
1692
+ ok: !0
1693
+ } : t;
1694
+ }
1695
+ async createMayaAppDeposit__next(e) {
1696
+ const t = await this.client.request(Qe, e);
1637
1697
  return t.ok ? t.data.createMayaAppDeposit ? {
1638
1698
  ok: !1,
1639
1699
  error: u(t.data.createMayaAppDeposit.__typename)
@@ -1668,8 +1728,17 @@ class ke {
1668
1728
  ok: !0
1669
1729
  } : t;
1670
1730
  }
1671
- async createBankWithdrawal(e) {
1731
+ async createMayaAppWithdrawal__next(e) {
1672
1732
  const t = await this.client.request(qe, e);
1733
+ return t.ok ? t.data.createMayaAppWithdrawal ? {
1734
+ ok: !1,
1735
+ error: u(t.data.createMayaAppWithdrawal.__typename)
1736
+ } : {
1737
+ ok: !0
1738
+ } : t;
1739
+ }
1740
+ async createBankWithdrawal(e) {
1741
+ const t = await this.client.request(Fe, e);
1673
1742
  return t.ok ? t.data.createBankWithdrawal ? {
1674
1743
  ok: !1,
1675
1744
  error: u(t.data.createBankWithdrawal.__typename)
@@ -1679,7 +1748,7 @@ class ke {
1679
1748
  }
1680
1749
  async remainingDailyWithdrawalsCount() {
1681
1750
  const e = await this.client.request(
1682
- Fe
1751
+ Le
1683
1752
  );
1684
1753
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1685
1754
  }
@@ -1698,7 +1767,7 @@ class ke {
1698
1767
  }
1699
1768
  async mayaSession(e) {
1700
1769
  const t = await this.client.request(
1701
- gt,
1770
+ At,
1702
1771
  e
1703
1772
  );
1704
1773
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
@@ -1711,20 +1780,20 @@ class ke {
1711
1780
  /** @deprecated */
1712
1781
  async gamesByName(e) {
1713
1782
  const t = await this.client.request(
1714
- Se,
1783
+ Ee,
1715
1784
  e
1716
1785
  );
1717
1786
  return t.ok ? { ok: t.ok, data: t.data.gamesByName } : t;
1718
1787
  }
1719
1788
  async gameSession(e) {
1720
1789
  const t = await this.client.request(
1721
- Ee,
1790
+ Ae,
1722
1791
  e
1723
1792
  );
1724
1793
  return t.ok ? { ok: !0, data: t.data.node } : t;
1725
1794
  }
1726
1795
  async createGameSession(e) {
1727
- const t = await this.client.request(be, e);
1796
+ const t = await this.client.request(Se, e);
1728
1797
  return t.ok ? t.data.createGameSession ? {
1729
1798
  ok: !1,
1730
1799
  error: u(t.data.createGameSession.__typename)
@@ -1734,7 +1803,7 @@ class ke {
1734
1803
  }
1735
1804
  async endGameSession(e) {
1736
1805
  const t = await this.client.request(
1737
- Ge,
1806
+ xe,
1738
1807
  e
1739
1808
  );
1740
1809
  return t.ok ? t.data.endGameSession ? {
@@ -1762,45 +1831,45 @@ class ke {
1762
1831
  } : e;
1763
1832
  }
1764
1833
  }
1765
- function Nt(n, e, t) {
1834
+ function Dt(n, e, t) {
1766
1835
  return n < e ? e : n > t ? t : n;
1767
1836
  }
1768
1837
  function Y(n) {
1769
1838
  return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
1770
1839
  }
1771
- function It(n) {
1840
+ function Rt(n) {
1772
1841
  const e = [];
1773
- function t(r, a = []) {
1774
- for (const s in r) {
1775
- const c = r[s];
1776
- Y(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Dt(c), [...a, s]) : e.push({
1777
- key: [...a, s],
1842
+ function t(a, r = []) {
1843
+ for (const s in a) {
1844
+ const c = a[s];
1845
+ Y(c) ? t(c, [...r, s]) : Array.isArray(c) ? t(Pt(c), [...r, s]) : e.push({
1846
+ key: [...r, s],
1778
1847
  value: c
1779
1848
  });
1780
1849
  }
1781
1850
  }
1782
1851
  return t(n), e;
1783
1852
  }
1784
- function Dt(n) {
1785
- return n.reduce((e, t, r) => (e[r] = t, e), {});
1853
+ function Pt(n) {
1854
+ return n.reduce((e, t, a) => (e[a] = t, e), {});
1786
1855
  }
1787
- class A {
1856
+ class b {
1788
1857
  constructor(e, t) {
1789
1858
  m(this, "url");
1790
1859
  m(this, "options");
1791
1860
  m(this, "middlewares");
1792
- var a;
1793
- const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
1794
- this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
1861
+ var r;
1862
+ const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
1863
+ this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
1795
1864
  }
1796
1865
  async request(e, t) {
1797
- const r = JSON.stringify({ query: e, variables: t }), a = new Headers(this.options.headers);
1798
- a.set("Content-Type", "application/json"), a.set("Accept", "application/json");
1866
+ const a = JSON.stringify({ query: e, variables: t }), r = new Headers(this.options.headers);
1867
+ r.set("Content-Type", "application/json"), r.set("Accept", "application/json");
1799
1868
  const s = await this.runMiddlewares(
1800
1869
  new Request(this.url, {
1801
1870
  ...this.options,
1802
- body: r,
1803
- headers: a,
1871
+ body: a,
1872
+ headers: r,
1804
1873
  method: "POST"
1805
1874
  })
1806
1875
  );
@@ -1808,31 +1877,31 @@ class A {
1808
1877
  }
1809
1878
  /** Single file upload */
1810
1879
  async upload(e, t) {
1811
- const r = this.createUploadBody(e, t), a = new Headers(this.options.headers);
1812
- a.delete("Content-Type");
1880
+ const a = this.createUploadBody(e, t), r = new Headers(this.options.headers);
1881
+ r.delete("Content-Type");
1813
1882
  const s = await this.runMiddlewares(
1814
1883
  new Request(this.url, {
1815
1884
  ...this.options,
1816
- body: r,
1817
- headers: a,
1885
+ body: a,
1886
+ headers: r,
1818
1887
  method: "POST"
1819
1888
  })
1820
1889
  );
1821
1890
  return await this.exec(s);
1822
1891
  }
1823
1892
  async exec(e) {
1824
- var t, r, a, s, c, p;
1893
+ var t, a, r, s, c, p;
1825
1894
  try {
1826
1895
  const l = await fetch(e);
1827
1896
  if (!l.ok)
1828
1897
  return { ok: !1, error: h(l.status) };
1829
- const f = await l.json(), w = f.data, d = (t = f.errors) == null ? void 0 : t.at(0);
1830
- return d ? ((r = d.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = d.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, d.message) } : ((s = d.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, d.message) } : ((c = d.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((p = d.extensions) == null ? void 0 : p.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, d.message) } : {
1898
+ const f = await l.json(), y = f.data, d = (t = f.errors) == null ? void 0 : t.at(0);
1899
+ return d ? ((a = d.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = d.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, d.message) } : ((s = d.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, d.message) } : ((c = d.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((p = d.extensions) == null ? void 0 : p.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, d.message) } : {
1831
1900
  ok: !1,
1832
1901
  error: h(500, d.message)
1833
1902
  } : {
1834
1903
  ok: !0,
1835
- data: w
1904
+ data: y
1836
1905
  };
1837
1906
  } catch {
1838
1907
  return {
@@ -1843,15 +1912,15 @@ class A {
1843
1912
  }
1844
1913
  async runMiddlewares(e) {
1845
1914
  let t = e.clone();
1846
- for (const r of this.middlewares)
1847
- t = await r(t);
1915
+ for (const a of this.middlewares)
1916
+ t = await a(t);
1848
1917
  return t;
1849
1918
  }
1850
1919
  createUploadBody(e, t) {
1851
- const r = It(t).filter(
1920
+ const a = Rt(t).filter(
1852
1921
  (c) => c.value instanceof File || c.value instanceof Blob
1853
- ), a = new FormData();
1854
- a.append(
1922
+ ), r = new FormData();
1923
+ r.append(
1855
1924
  "operations",
1856
1925
  JSON.stringify({
1857
1926
  query: e,
@@ -1859,17 +1928,17 @@ class A {
1859
1928
  })
1860
1929
  );
1861
1930
  const s = {};
1862
- return r.forEach((c, p) => {
1931
+ return a.forEach((c, p) => {
1863
1932
  s[p.toString()] = [`variables.${c.key.join(".")}`];
1864
- }), a.append("map", JSON.stringify(s)), r.forEach((c, p) => {
1865
- a.append(p.toString(), c.value);
1866
- }), a;
1933
+ }), r.append("map", JSON.stringify(s)), a.forEach((c, p) => {
1934
+ r.append(p.toString(), c.value);
1935
+ }), r;
1867
1936
  }
1868
1937
  }
1869
1938
  function k(n) {
1870
1939
  return n.startsWith("+63") ? n : n.startsWith("63") ? `+${n}` : n.startsWith("0") ? `+63${n.substring(1)}` : `+63${n}`;
1871
1940
  }
1872
- async function g(n) {
1941
+ async function w(n) {
1873
1942
  const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
1874
1943
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
1875
1944
  }
@@ -1902,24 +1971,24 @@ function q(n, e) {
1902
1971
  const t = j(n);
1903
1972
  return t.setMinutes(t.getMinutes() + e), t;
1904
1973
  }
1905
- function we(n, e) {
1974
+ function ye(n, e) {
1906
1975
  return n.getTime() > e.getTime();
1907
1976
  }
1908
- function Ce(n) {
1977
+ function Te(n) {
1909
1978
  return new Promise((e) => {
1910
1979
  setTimeout(e, n);
1911
1980
  });
1912
1981
  }
1913
- function ye(n, e) {
1982
+ function we(n, e) {
1914
1983
  const {
1915
1984
  until: t,
1916
- interval: r = 1e3,
1917
- maxAttempt: a = 3
1985
+ interval: a = 1e3,
1986
+ maxAttempt: r = 3
1918
1987
  /**/
1919
1988
  } = e;
1920
1989
  async function s(c, p) {
1921
- const l = p ?? a, f = await n(...c);
1922
- return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
1990
+ const l = p ?? r, f = await n(...c);
1991
+ return t(f) ? f : l > 1 ? (await Te(a * ((r - l) / 2)), s(c, l - 1)) : f;
1923
1992
  }
1924
1993
  return async (...c) => await s(c);
1925
1994
  }
@@ -1927,18 +1996,18 @@ function F(n, e) {
1927
1996
  const t = j(n);
1928
1997
  return t.setMinutes(t.getMinutes() - e), t;
1929
1998
  }
1930
- class Rt {
1999
+ class xt {
1931
2000
  constructor(e) {
1932
2001
  m(this, "logger");
1933
2002
  m(this, "storageKey", "session");
1934
2003
  m(this, "authService");
1935
2004
  m(this, "walletService");
1936
2005
  m(this, "_refreshing", !1);
1937
- this.authService = new At({
2006
+ this.authService = new _t({
1938
2007
  url: e.authUrl,
1939
2008
  platform: e.platform
1940
2009
  }), this.walletService = new ke(
1941
- new A(e.walletUrl, {
2010
+ new b(e.walletUrl, {
1942
2011
  middlewares: [
1943
2012
  (t) => (t.headers.set("Platform", e.platform), t.headers.set("Role", "MEMBER"), t)
1944
2013
  ]
@@ -1954,7 +2023,7 @@ class Rt {
1954
2023
  this._refreshing = e;
1955
2024
  }
1956
2025
  async create(e) {
1957
- var a;
2026
+ var r;
1958
2027
  if (this.isServer)
1959
2028
  return this.logger.warn("'localStorage' is not available on the server."), {
1960
2029
  ok: !1,
@@ -1964,16 +2033,16 @@ class Rt {
1964
2033
  }
1965
2034
  };
1966
2035
  if (e.type === "MAYA") {
1967
- const c = await ye(() => this.walletService.mayaSession({ id: e.sessionId }), {
1968
- until: (w) => {
2036
+ const c = await we(() => this.walletService.mayaSession({ id: e.sessionId }), {
2037
+ until: (y) => {
1969
2038
  var d;
1970
- return w.ok && ((d = w.data) == null ? void 0 : d.member) != null;
2039
+ return y.ok && ((d = y.data) == null ? void 0 : d.member) != null;
1971
2040
  },
1972
2041
  interval: 1e3,
1973
2042
  maxAttempt: 5
1974
2043
  })();
1975
2044
  if (!c.ok) return c;
1976
- if (!((a = c.data) != null && a.member))
2045
+ if (!((r = c.data) != null && r.member))
1977
2046
  return {
1978
2047
  ok: !1,
1979
2048
  error: {
@@ -1981,8 +2050,8 @@ class Rt {
1981
2050
  message: "Forbidden"
1982
2051
  }
1983
2052
  };
1984
- const l = await ye(() => this.authService.createSession(e), {
1985
- until: (w) => w.ok,
2053
+ const l = await we(() => this.authService.createSession(e), {
2054
+ until: (y) => y.ok,
1986
2055
  interval: 1e3,
1987
2056
  maxAttempt: 5
1988
2057
  })();
@@ -2027,13 +2096,13 @@ class Rt {
2027
2096
  authenticator: t.data.authenticator
2028
2097
  }
2029
2098
  };
2030
- const r = /* @__PURE__ */ new Date();
2099
+ const a = /* @__PURE__ */ new Date();
2031
2100
  return window.localStorage.setItem(
2032
2101
  this.storageKey,
2033
2102
  JSON.stringify({
2034
2103
  ...t.data,
2035
- accessTokenExpiresAt: q(r, 8).getTime(),
2036
- refreshTokenExpiresAt: F(O(r, 30), 2).getTime()
2104
+ accessTokenExpiresAt: q(a, 8).getTime(),
2105
+ refreshTokenExpiresAt: F(O(a, 30), 2).getTime()
2037
2106
  })
2038
2107
  ), {
2039
2108
  ok: !0,
@@ -2043,13 +2112,13 @@ class Rt {
2043
2112
  async createFromAuthenticator(e) {
2044
2113
  const t = await this.authService.authenticate(e);
2045
2114
  if (t.ok) {
2046
- const r = /* @__PURE__ */ new Date();
2115
+ const a = /* @__PURE__ */ new Date();
2047
2116
  return this.isServer ? this.logger.warn("'localStorage' is not available on the server.") : window.localStorage.setItem(
2048
2117
  this.storageKey,
2049
2118
  JSON.stringify({
2050
2119
  ...t.data,
2051
- accessTokenExpiresAt: q(r, 8).getTime(),
2052
- refreshTokenExpiresAt: F(O(r, 30), 2).getTime()
2120
+ accessTokenExpiresAt: q(a, 8).getTime(),
2121
+ refreshTokenExpiresAt: F(O(a, 30), 2).getTime()
2053
2122
  })
2054
2123
  ), { ok: !0 };
2055
2124
  } else
@@ -2062,7 +2131,7 @@ class Rt {
2062
2131
  data: null
2063
2132
  };
2064
2133
  if (this.refreshing)
2065
- return await Ce(1e3), await this.get();
2134
+ return await Te(1e3), await this.get();
2066
2135
  const e = window.localStorage.getItem(this.storageKey);
2067
2136
  if (!e)
2068
2137
  return {
@@ -2070,9 +2139,9 @@ class Rt {
2070
2139
  data: null
2071
2140
  };
2072
2141
  try {
2073
- let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2074
- const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2075
- if (we(r, s))
2142
+ let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
2143
+ const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2144
+ if (ye(a, s))
2076
2145
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2077
2146
  ok: !1,
2078
2147
  error: {
@@ -2080,7 +2149,7 @@ class Rt {
2080
2149
  message: "Session expired."
2081
2150
  }
2082
2151
  };
2083
- if (we(r, a)) {
2152
+ if (ye(a, r)) {
2084
2153
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2085
2154
  const c = await this.authService.refreshSession(t.refreshToken);
2086
2155
  if (this.refreshing = !1, !c.ok)
@@ -2091,11 +2160,11 @@ class Rt {
2091
2160
  ok: !0,
2092
2161
  data: t
2093
2162
  });
2094
- this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2163
+ this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
2095
2164
  ...t,
2096
2165
  ...c.data,
2097
- accessTokenExpiresAt: q(r, 8).getTime(),
2098
- refreshTokenExpiresAt: F(O(r, 30), 2).getTime()
2166
+ accessTokenExpiresAt: q(a, 8).getTime(),
2167
+ refreshTokenExpiresAt: F(O(a, 30), 2).getTime()
2099
2168
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2100
2169
  }
2101
2170
  return {
@@ -2122,11 +2191,11 @@ class Rt {
2122
2191
  (t = e.data) != null && t.accessToken && await this.authService.destroySession(e.data.accessToken), window.localStorage.removeItem(this.storageKey);
2123
2192
  }
2124
2193
  async verify() {
2125
- var r, a, s;
2194
+ var a, r, s;
2126
2195
  if (this.isServer)
2127
2196
  return this.logger.warn("'localStorage' is not available on the server."), !0;
2128
2197
  const e = await this.get();
2129
- if (((r = e.error) == null ? void 0 : r.name) === "InvalidToken" || ((a = e.error) == null ? void 0 : a.name) === "SessionExpired" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklisted") return !1;
2198
+ if (((a = e.error) == null ? void 0 : a.name) === "InvalidToken" || ((r = e.error) == null ? void 0 : r.name) === "SessionExpired" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklisted") return !1;
2130
2199
  if (!e.data) return !0;
2131
2200
  const t = await this.authService.verifySession(e.data.accessToken);
2132
2201
  return t || window.localStorage.removeItem(this.storageKey), t;
@@ -2135,20 +2204,20 @@ class Rt {
2135
2204
  return typeof window > "u";
2136
2205
  }
2137
2206
  }
2138
- function y(n) {
2207
+ function g(n) {
2139
2208
  const e = {};
2140
2209
  for (const t in n) {
2141
- const r = n[t];
2142
- if (r !== null && r !== void 0) {
2143
- if (Y(r)) {
2144
- e[t] = y(r);
2210
+ const a = n[t];
2211
+ if (a !== null && a !== void 0) {
2212
+ if (Y(a)) {
2213
+ e[t] = g(a);
2145
2214
  continue;
2146
2215
  }
2147
- if (Array.isArray(r)) {
2148
- e[t] = r.map((a) => Y(a) ? y(a) : a);
2216
+ if (Array.isArray(a)) {
2217
+ e[t] = a.map((r) => Y(r) ? g(r) : r);
2149
2218
  continue;
2150
2219
  }
2151
- e[t] = r;
2220
+ e[t] = a;
2152
2221
  }
2153
2222
  }
2154
2223
  return e;
@@ -2163,11 +2232,11 @@ function i(n, e) {
2163
2232
  }
2164
2233
  return e;
2165
2234
  }
2166
- class Pt {
2235
+ class Gt {
2167
2236
  constructor(e) {
2168
2237
  m(this, "staticService");
2169
2238
  const t = (e == null ? void 0 : e.environment) === "development";
2170
- this.staticService = new Mt({
2239
+ this.staticService = new It({
2171
2240
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2172
2241
  });
2173
2242
  }
@@ -2206,10 +2275,10 @@ class Pt {
2206
2275
  name: e.name,
2207
2276
  logo: e.logo ?? void 0
2208
2277
  };
2209
- return y(t);
2278
+ return g(t);
2210
2279
  }
2211
2280
  platform(e) {
2212
- var t, r, a, s, c, p, l, f, w, d, _, C, T, v, M, N, I, D, R, P, G, x, $, W, U, B, S, Q, K, z, J, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, de, ue, le, pe, fe, he;
2281
+ var t, a, r, s, c, p, l, f, y, d, _, T, C, v, M, N, I, D, R, P, x, G, W, $, U, B, E, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, ce, me, ue, de, le, pe, fe, he;
2213
2282
  return {
2214
2283
  paymentSettings: {
2215
2284
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
@@ -2217,8 +2286,8 @@ class Pt {
2217
2286
  depositGateway: {
2218
2287
  bank: {
2219
2288
  androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
2220
- iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2221
- webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2289
+ iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
2290
+ webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
2222
2291
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2223
2292
  minimumAmount: i((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2224
2293
  maximumAmount: i((p = e.bankDepositGatewaySettings) == null ? void 0 : p.maximumAmount)
@@ -2226,13 +2295,13 @@ class Pt {
2226
2295
  gcash: {
2227
2296
  androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2228
2297
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2229
- webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2298
+ webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
2230
2299
  mobileWebEnabled: ((d = e.gcashDepositGatewaySettings) == null ? void 0 : d.mobileWebEnabled) ?? !1,
2231
2300
  minimumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2232
- maximumAmount: i((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.maximumAmount)
2301
+ maximumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.maximumAmount)
2233
2302
  },
2234
2303
  maya: {
2235
- androidEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.androidEnabled) ?? !1,
2304
+ androidEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.androidEnabled) ?? !1,
2236
2305
  iosEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.iosEnabled) ?? !1,
2237
2306
  webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
2238
2307
  mobileWebEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.mobileWebEnabled) ?? !1,
@@ -2242,17 +2311,17 @@ class Pt {
2242
2311
  mayaApp: {
2243
2312
  androidEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.androidEnabled) ?? !1,
2244
2313
  iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
2245
- webEnabled: ((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.webEnabled) ?? !1,
2246
- mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
2247
- minimumAmount: i(($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.minimumAmount),
2248
- maximumAmount: i((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.maximumAmount)
2314
+ webEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.webEnabled) ?? !1,
2315
+ mobileWebEnabled: ((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.mobileWebEnabled) ?? !1,
2316
+ minimumAmount: i((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.minimumAmount),
2317
+ maximumAmount: i(($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.maximumAmount)
2249
2318
  }
2250
2319
  },
2251
2320
  withdrawalGateway: {
2252
2321
  bank: {
2253
2322
  androidEnabled: ((U = e.bankWithdrawalGatewaySettings) == null ? void 0 : U.androidEnabled) ?? !1,
2254
2323
  iosEnabled: ((B = e.bankWithdrawalGatewaySettings) == null ? void 0 : B.iosEnabled) ?? !1,
2255
- webEnabled: ((S = e.bankWithdrawalGatewaySettings) == null ? void 0 : S.webEnabled) ?? !1,
2324
+ webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2256
2325
  mobileWebEnabled: ((Q = e.bankWithdrawalGatewaySettings) == null ? void 0 : Q.mobileWebEnabled) ?? !1,
2257
2326
  minimumAmount: i((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.minimumAmount),
2258
2327
  maximumAmount: i((z = e.bankWithdrawalGatewaySettings) == null ? void 0 : z.maximumAmount)
@@ -2264,12 +2333,12 @@ class Pt {
2264
2333
  mobileWebEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.mobileWebEnabled) ?? !1,
2265
2334
  minimumAmount: i((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.minimumAmount),
2266
2335
  maximumAmount: i(
2267
- (re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount,
2336
+ (ae = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount,
2268
2337
  1e6
2269
2338
  )
2270
2339
  },
2271
2340
  maya: {
2272
- androidEnabled: ((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.androidEnabled) ?? !1,
2341
+ androidEnabled: ((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.androidEnabled) ?? !1,
2273
2342
  iosEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.iosEnabled) ?? !1,
2274
2343
  webEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2275
2344
  mobileWebEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
@@ -2278,8 +2347,8 @@ class Pt {
2278
2347
  },
2279
2348
  mayaApp: {
2280
2349
  androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
2281
- iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2282
- webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2350
+ iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2351
+ webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2283
2352
  mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2284
2353
  minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2285
2354
  maximumAmount: i(
@@ -2315,7 +2384,7 @@ class Pt {
2315
2384
  dateTimeCreated: new Date(e.dateTimeCreated),
2316
2385
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2317
2386
  };
2318
- return y(t);
2387
+ return g(t);
2319
2388
  }
2320
2389
  wallet(e) {
2321
2390
  return {
@@ -2378,7 +2447,7 @@ class Pt {
2378
2447
  dateTimeCreated: new Date(e.dateTimeCreated),
2379
2448
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2380
2449
  };
2381
- return y(t);
2450
+ return g(t);
2382
2451
  }
2383
2452
  deposit(e) {
2384
2453
  const t = {
@@ -2387,7 +2456,7 @@ class Pt {
2387
2456
  status: e.status,
2388
2457
  checkoutUrl: e.checkoutUrl ?? void 0
2389
2458
  };
2390
- return y(t);
2459
+ return g(t);
2391
2460
  }
2392
2461
  depositRecord(e) {
2393
2462
  const t = {
@@ -2402,10 +2471,10 @@ class Pt {
2402
2471
  dateTimeCreated: new Date(e.dateTimeCreated),
2403
2472
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2404
2473
  };
2405
- return y(t);
2474
+ return g(t);
2406
2475
  }
2407
2476
  betRecord(e) {
2408
- var r;
2477
+ var a;
2409
2478
  const t = {
2410
2479
  id: e.id,
2411
2480
  bet: i(e.bet, 0),
@@ -2416,7 +2485,12 @@ class Pt {
2416
2485
  winloss: i(e.winloss),
2417
2486
  validBet: i(e.validBet, 0),
2418
2487
  vendorRoundId: e.vendorRoundId ?? void 0,
2419
- game: e.game,
2488
+ game: {
2489
+ name: e.game.name,
2490
+ type: e.game.type,
2491
+ images: this.staticService.gameThumbnails(e.game),
2492
+ provider: e.game.provider
2493
+ },
2420
2494
  serialCode: e.serialCode,
2421
2495
  dateTimeSettled: e.dateTimeSettled ? new Date(e.dateTimeSettled) : void 0,
2422
2496
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2425,16 +2499,21 @@ class Pt {
2425
2499
  contestName: e.contestName ?? void 0,
2426
2500
  externalCategory: e.externalCategory ?? void 0,
2427
2501
  metadata: {
2428
- odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
2502
+ odds: ((a = e.metadata) == null ? void 0 : a.odds) ?? void 0
2429
2503
  }
2430
2504
  };
2431
- return y(t);
2505
+ return g(t);
2432
2506
  }
2433
2507
  latestBetRecord(e) {
2434
2508
  return {
2435
2509
  id: e.id,
2436
2510
  member: e.member,
2437
- game: e.game,
2511
+ game: {
2512
+ name: e.game.name,
2513
+ type: e.game.type,
2514
+ images: this.staticService.gameThumbnails(e.game),
2515
+ provider: e.game.provider
2516
+ },
2438
2517
  bet: i(e.bet, 0),
2439
2518
  payout: i(e.payout, 0),
2440
2519
  validBet: i(e.validBet, 0),
@@ -2452,7 +2531,7 @@ class Pt {
2452
2531
  referenceNumber: e.referenceNumber,
2453
2532
  dateTimeCreated: new Date(e.dateTimeCreated)
2454
2533
  };
2455
- return y(t);
2534
+ return g(t);
2456
2535
  }
2457
2536
  /**
2458
2537
  * @deprecated
@@ -2488,7 +2567,7 @@ class Pt {
2488
2567
  dateTimeCreated: new Date(e.dateTimeCreated),
2489
2568
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2490
2569
  };
2491
- return y(t);
2570
+ return g(t);
2492
2571
  }
2493
2572
  promo(e) {
2494
2573
  return {
@@ -2519,7 +2598,7 @@ class Pt {
2519
2598
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
2520
2599
  turnoverContributionPercentagePerGameProvider: Object.entries(
2521
2600
  e.turnoverContributionPercentagePerGameProvider
2522
- ).reduce((r, [a, s]) => (r[a] = i(s, 0), r), {})
2601
+ ).reduce((a, [r, s]) => (a[r] = i(s, 0), a), {})
2523
2602
  };
2524
2603
  }
2525
2604
  bonus(e) {
@@ -2551,7 +2630,7 @@ class Pt {
2551
2630
  dateTimeCreated: new Date(e.dateTimeCreated),
2552
2631
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2553
2632
  };
2554
- return y(t);
2633
+ return g(t);
2555
2634
  }
2556
2635
  cashbackBonus(e) {
2557
2636
  return {
@@ -2569,7 +2648,7 @@ class Pt {
2569
2648
  status: e.status,
2570
2649
  dateTimeCreated: new Date(e.dateTimeCreated)
2571
2650
  };
2572
- return y(t);
2651
+ return g(t);
2573
2652
  }
2574
2653
  pointsWallet(e) {
2575
2654
  return {
@@ -2597,10 +2676,10 @@ class Pt {
2597
2676
  details: e.details,
2598
2677
  dateTimeCreated: new Date(e.dateTimeCreated)
2599
2678
  };
2600
- return y(t);
2679
+ return g(t);
2601
2680
  }
2602
2681
  }
2603
- class Ut {
2682
+ class Ot {
2604
2683
  constructor(e) {
2605
2684
  m(this, "cmsPortalService");
2606
2685
  m(this, "gameService");
@@ -2613,17 +2692,17 @@ class Ut {
2613
2692
  m(this, "transformer");
2614
2693
  m(this, "logger");
2615
2694
  const t = e.environment === "production";
2616
- this.transformer = new Pt(e), this.logger = new _e({
2695
+ this.transformer = new Gt(e), this.logger = new _e({
2617
2696
  enabled: e.logs ?? !1
2618
2697
  });
2619
- const r = t ? "https://auth.opexa.io" : "https://auth.development.opexa.io", a = t ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", s = t ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", c = t ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", p = t ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", l = t ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", f = t ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", w = t ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1";
2620
- this.cmsPortalService = new kt({
2621
- url: w,
2698
+ const a = t ? "https://auth.opexa.io" : "https://auth.development.opexa.io", r = t ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", s = t ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", c = t ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", p = t ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", l = t ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", f = t ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", y = t ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1";
2699
+ this.cmsPortalService = new Tt({
2700
+ url: y,
2622
2701
  site: e.site,
2623
2702
  platform: e.sitePlatform
2624
- }), this.sessionManager = new Rt({
2625
- authUrl: r,
2626
- walletUrl: a,
2703
+ }), this.sessionManager = new xt({
2704
+ authUrl: a,
2705
+ walletUrl: r,
2627
2706
  platform: e.platform,
2628
2707
  logs: e.logs
2629
2708
  });
@@ -2636,7 +2715,7 @@ class Ut {
2636
2715
  }
2637
2716
  }
2638
2717
  };
2639
- this.gameService = new Ct(new A(f, d)), this.fileService = new _t(new A(l, d)), this.walletService = new ke(new A(a, d)), this.accountService = new bt(new A(c, d)), this.reportService = new vt(new A(s, d)), this.portalService = new Tt(new A(p, d));
2718
+ this.gameService = new vt(new b(f, d)), this.fileService = new Ct(new b(l, d)), this.walletService = new ke(new b(r, d)), this.accountService = new kt(new b(c, d)), this.reportService = new Nt(new b(s, d)), this.portalService = new Mt(new b(p, d));
2640
2719
  }
2641
2720
  get authMiddleware() {
2642
2721
  return async (e) => {
@@ -2650,7 +2729,7 @@ class Ut {
2650
2729
  case "NAME_AND_PASSWORD": {
2651
2730
  const t = await this.sessionManager.create({
2652
2731
  ...e,
2653
- password: await g(e.password)
2732
+ password: await w(e.password)
2654
2733
  });
2655
2734
  return t.ok ? t.data ? {
2656
2735
  ok: !0,
@@ -2710,7 +2789,7 @@ class Ut {
2710
2789
  return await this.sessionManager.createFromAuthenticator({
2711
2790
  type: "SECURITY_QUESTION",
2712
2791
  token: e.token,
2713
- secretAnswer: await g(e.secretAnswer)
2792
+ secretAnswer: await w(e.secretAnswer)
2714
2793
  });
2715
2794
  default:
2716
2795
  return {
@@ -2750,13 +2829,13 @@ class Ut {
2750
2829
  * ```
2751
2830
  */
2752
2831
  watchSession(e) {
2753
- const t = Nt(e.interval ?? 3e4, 3e4, 6e4);
2754
- let r = null;
2755
- const a = () => setTimeout(async () => {
2756
- await this.sessionManager.verify() || await e.onInvalid(), r = a();
2832
+ const t = Dt(e.interval ?? 3e4, 3e4, 6e4);
2833
+ let a = null;
2834
+ const r = () => setTimeout(async () => {
2835
+ await this.sessionManager.verify() || await e.onInvalid(), a = r();
2757
2836
  }, t);
2758
- return r = a(), function() {
2759
- r && clearTimeout(r);
2837
+ return a = r(), function() {
2838
+ a && clearTimeout(a);
2760
2839
  };
2761
2840
  }
2762
2841
  async session() {
@@ -2836,12 +2915,12 @@ class Ut {
2836
2915
  * ```
2837
2916
  */
2838
2917
  async createAccount(e) {
2839
- const t = e.id ?? E.generate(b.Account).toString(), r = await this.accountService.registerMemberAccount({
2918
+ const t = e.id ?? A.generate(S.Account).toString(), a = await this.accountService.registerMemberAccount({
2840
2919
  input: {
2841
2920
  id: t,
2842
2921
  name: e.name,
2843
2922
  birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
2844
- password: await g(e.password),
2923
+ password: await w(e.password),
2845
2924
  mobileNumber: k(e.mobileNumber),
2846
2925
  domain: e.domain,
2847
2926
  btag: e.referralCode
@@ -2849,13 +2928,13 @@ class Ut {
2849
2928
  verificationCode: e.verificationCode,
2850
2929
  reCAPTCHAResponse: e.reCAPTCHAResponse
2851
2930
  });
2852
- return r.ok ? { ok: !0, data: { id: t } } : r;
2931
+ return a.ok ? { ok: !0, data: { id: t } } : a;
2853
2932
  }
2854
2933
  async registerMayaAccount(e) {
2855
2934
  return await this.accountService.registerMayaMemberAccount({
2856
2935
  input: {
2857
2936
  name: e.name,
2858
- password: await g(e.password),
2937
+ password: await w(e.password),
2859
2938
  domain: e.domain
2860
2939
  }
2861
2940
  });
@@ -2881,12 +2960,12 @@ class Ut {
2881
2960
  id: e,
2882
2961
  data: {
2883
2962
  ...t,
2884
- password: t.password ? await g(t.password) : void 0,
2885
- transactionPassword: t.transactionPassword ? await g(t.transactionPassword) : void 0,
2963
+ password: t.password ? await w(t.password) : void 0,
2964
+ transactionPassword: t.transactionPassword ? await w(t.transactionPassword) : void 0,
2886
2965
  ...t.mobileNumber && {
2887
2966
  mobileNumber: k(t.mobileNumber)
2888
2967
  },
2889
- secretAnswer: t.secretAnswer ? await g(t.secretAnswer) : void 0
2968
+ secretAnswer: t.secretAnswer ? await w(t.secretAnswer) : void 0
2890
2969
  }
2891
2970
  }
2892
2971
  });
@@ -2927,13 +3006,13 @@ class Ut {
2927
3006
  * ```
2928
3007
  */
2929
3008
  async submitVerificationDetails(e) {
2930
- const t = e.id ?? E.generate(b.Verification).toString(), r = await this.accountService.createMemberVerification({
3009
+ const t = e.id ?? A.generate(S.Verification).toString(), a = await this.accountService.createMemberVerification({
2931
3010
  input: {
2932
3011
  id: t,
2933
3012
  ...e
2934
3013
  }
2935
3014
  });
2936
- return r.ok ? { ok: !0, data: { id: t } } : r;
3015
+ return a.ok ? { ok: !0, data: { id: t } } : a;
2937
3016
  }
2938
3017
  /**
2939
3018
  * @example
@@ -2964,7 +3043,7 @@ class Ut {
2964
3043
  return await this.accountService.resetPassword({
2965
3044
  input: {
2966
3045
  mobileNumber: k(e.mobileNumber),
2967
- newPassword: await g(e.newPassword)
3046
+ newPassword: await w(e.newPassword)
2968
3047
  },
2969
3048
  verificationCode: e.verificationCode
2970
3049
  });
@@ -3018,9 +3097,9 @@ class Ut {
3018
3097
  return t.ok ? {
3019
3098
  ok: !0,
3020
3099
  data: {
3021
- announcements: t.data.edges.map(({ cursor: r, node: a }) => ({
3022
- ...this.transformer.transform.announcement(a),
3023
- cursor: r
3100
+ announcements: t.data.edges.map(({ cursor: a, node: r }) => ({
3101
+ ...this.transformer.transform.announcement(r),
3102
+ cursor: a
3024
3103
  })),
3025
3104
  totalCount: t.data.totalCount,
3026
3105
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3051,48 +3130,58 @@ class Ut {
3051
3130
  * ```
3052
3131
  */
3053
3132
  async createWithdrawal(e) {
3054
- const t = e.id ?? E.generate(b.Withdrawal).toString();
3133
+ const t = e.id ?? A.generate(S.Withdrawal).toString();
3055
3134
  if (e.type === "BANK") {
3056
- const r = await this.walletService.createBankWithdrawal({
3135
+ const a = await this.walletService.createBankWithdrawal({
3057
3136
  input: {
3058
3137
  id: t,
3059
3138
  amount: e.amount.toString(),
3060
- transactionPassword: await g(e.transactionPassword)
3139
+ transactionPassword: await w(e.transactionPassword)
3061
3140
  }
3062
3141
  });
3063
- if (!r.ok) return r;
3142
+ if (!a.ok) return a;
3064
3143
  }
3065
3144
  if (e.type === "GCASH") {
3066
- const r = await this.walletService.createGCashWithdrawal({
3145
+ const a = await this.walletService.createGCashWithdrawal({
3067
3146
  input: {
3068
3147
  id: t,
3069
3148
  amount: e.amount.toString(),
3070
- transactionPassword: await g(e.transactionPassword),
3149
+ transactionPassword: await w(e.transactionPassword),
3071
3150
  recipientMobileNumber: k(e.recipientMobileNumber)
3072
3151
  }
3073
3152
  });
3074
- if (!r.ok) return r;
3153
+ if (!a.ok) return a;
3075
3154
  }
3076
3155
  if (e.type === "MAYA") {
3077
- const r = await this.walletService.createMayaWithdrawal({
3156
+ const a = await this.walletService.createMayaWithdrawal({
3078
3157
  input: {
3079
3158
  id: t,
3080
3159
  amount: e.amount.toString(),
3081
- transactionPassword: await g(e.transactionPassword),
3160
+ transactionPassword: await w(e.transactionPassword),
3082
3161
  recipientMobileNumber: k(e.recipientMobileNumber)
3083
3162
  }
3084
3163
  });
3085
- if (!r.ok) return r;
3164
+ if (!a.ok) return a;
3086
3165
  }
3087
3166
  if (e.type === "MAYA_APP") {
3088
- const r = await this.walletService.createMayaAppWithdrawal({
3167
+ const a = await this.walletService.createMayaAppWithdrawal({
3168
+ input: {
3169
+ id: t,
3170
+ amount: e.amount.toString(),
3171
+ transactionPassword: await w(e.transactionPassword)
3172
+ }
3173
+ });
3174
+ if (!a.ok) return a;
3175
+ }
3176
+ if (e.type === "MAYA_APP [NEXT]") {
3177
+ const a = await this.walletService.createMayaAppWithdrawal__next({
3089
3178
  input: {
3090
3179
  id: t,
3091
3180
  amount: e.amount.toString(),
3092
- transactionPassword: await g(e.transactionPassword)
3181
+ transactionPassword: await w(e.transactionPassword)
3093
3182
  }
3094
3183
  });
3095
- if (!r.ok) return r;
3184
+ if (!a.ok) return a;
3096
3185
  }
3097
3186
  return { ok: !0, data: { id: t } };
3098
3187
  }
@@ -3101,9 +3190,9 @@ class Ut {
3101
3190
  return t.ok ? {
3102
3191
  ok: !0,
3103
3192
  data: {
3104
- withdrawalRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3105
- ...this.transformer.transform.withdrawalRecord(a),
3106
- cursor: r
3193
+ withdrawalRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3194
+ ...this.transformer.transform.withdrawalRecord(r),
3195
+ cursor: a
3107
3196
  })),
3108
3197
  totalCount: t.data.totalCount,
3109
3198
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3137,36 +3226,46 @@ class Ut {
3137
3226
  * ```
3138
3227
  */
3139
3228
  async createDeposit(e) {
3140
- const t = e.id ?? E.generate(b.Deposit).toString();
3229
+ const t = e.id ?? A.generate(S.Deposit).toString();
3141
3230
  if (e.type === "MAYA") {
3142
- const r = await this.walletService.createMayaDeposit({
3231
+ const a = await this.walletService.createMayaDeposit({
3143
3232
  input: {
3144
3233
  id: t,
3145
3234
  amount: e.amount.toString(),
3146
3235
  promo: e.promo
3147
3236
  }
3148
3237
  });
3149
- if (!r.ok) return r;
3238
+ if (!a.ok) return a;
3150
3239
  }
3151
3240
  if (e.type === "MAYA_APP") {
3152
- const r = await this.walletService.createMayaAppDeposit({
3241
+ const a = await this.walletService.createMayaAppDeposit({
3242
+ input: {
3243
+ id: t,
3244
+ amount: e.amount.toString(),
3245
+ promo: e.promo
3246
+ }
3247
+ });
3248
+ if (!a.ok) return a;
3249
+ }
3250
+ if (e.type === "MAYA_APP [NEXT]") {
3251
+ const a = await this.walletService.createMayaAppDeposit__next({
3153
3252
  input: {
3154
3253
  id: t,
3155
3254
  amount: e.amount.toString(),
3156
3255
  promo: e.promo
3157
3256
  }
3158
3257
  });
3159
- if (!r.ok) return r;
3258
+ if (!a.ok) return a;
3160
3259
  }
3161
3260
  if (e.type === "GCASH") {
3162
- const r = await this.walletService.createGCashDeposit({
3261
+ const a = await this.walletService.createGCashDeposit({
3163
3262
  input: {
3164
3263
  id: t,
3165
3264
  amount: e.amount.toString(),
3166
3265
  promo: e.promo
3167
3266
  }
3168
3267
  });
3169
- if (!r.ok) return r;
3268
+ if (!a.ok) return a;
3170
3269
  }
3171
3270
  return { ok: !0, data: { id: t } };
3172
3271
  }
@@ -3182,9 +3281,9 @@ class Ut {
3182
3281
  return t.ok ? {
3183
3282
  ok: !0,
3184
3283
  data: {
3185
- depositRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3186
- ...this.transformer.transform.depositRecord(a),
3187
- cursor: r
3284
+ depositRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3285
+ ...this.transformer.transform.depositRecord(r),
3286
+ cursor: a
3188
3287
  })),
3189
3288
  totalCount: t.data.totalCount,
3190
3289
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3201,16 +3300,16 @@ class Ut {
3201
3300
  /*+----------------------------------------+*/
3202
3301
  /**/
3203
3302
  async betRecords(e) {
3204
- var r, a;
3303
+ var a, r;
3205
3304
  const t = await this.reportService.betRecords({
3206
3305
  ...e,
3207
3306
  ...(e == null ? void 0 : e.filter) && {
3208
3307
  filter: {
3209
3308
  ...e.filter,
3210
- ...((r = e.filter) == null ? void 0 : r.gameType) && {
3309
+ ...((a = e.filter) == null ? void 0 : a.gameType) && {
3211
3310
  game__type: e.filter.gameType
3212
3311
  },
3213
- ...((a = e.filter) == null ? void 0 : a.gameProvider) && {
3312
+ ...((r = e.filter) == null ? void 0 : r.gameProvider) && {
3214
3313
  game__provider: e.filter.gameProvider
3215
3314
  }
3216
3315
  }
@@ -3246,9 +3345,9 @@ class Ut {
3246
3345
  return t.ok ? {
3247
3346
  ok: !0,
3248
3347
  data: {
3249
- transactionRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3250
- ...this.transformer.transform.transactionRecord(a),
3251
- cursor: r
3348
+ transactionRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3349
+ ...this.transformer.transform.transactionRecord(r),
3350
+ cursor: a
3252
3351
  })),
3253
3352
  totalCount: t.data.totalCount,
3254
3353
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3321,9 +3420,9 @@ class Ut {
3321
3420
  return t.ok ? {
3322
3421
  ok: !0,
3323
3422
  data: {
3324
- games: t.data.edges.map(({ cursor: r, node: a }) => ({
3325
- ...this.transformer.transform.game(a),
3326
- cursor: r
3423
+ games: t.data.edges.map(({ cursor: a, node: r }) => ({
3424
+ ...this.transformer.transform.game(r),
3425
+ cursor: a
3327
3426
  })),
3328
3427
  totalCount: t.data.totalCount,
3329
3428
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -3336,9 +3435,9 @@ class Ut {
3336
3435
  return t.ok ? {
3337
3436
  ok: !0,
3338
3437
  data: {
3339
- games: t.data.edges.map(({ cursor: r, node: a }) => ({
3340
- ...this.transformer.transform.game__next(a),
3341
- cursor: r
3438
+ games: t.data.edges.map(({ cursor: a, node: r }) => ({
3439
+ ...this.transformer.transform.game__next(r),
3440
+ cursor: a
3342
3441
  })),
3343
3442
  totalCount: t.data.totalCount,
3344
3443
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -3352,9 +3451,9 @@ class Ut {
3352
3451
  return t.ok ? {
3353
3452
  ok: !0,
3354
3453
  data: {
3355
- games: t.data.edges.map(({ cursor: r, node: a }) => ({
3356
- ...this.transformer.transform.game(a),
3357
- cursor: r
3454
+ games: t.data.edges.map(({ cursor: a, node: r }) => ({
3455
+ ...this.transformer.transform.game(r),
3456
+ cursor: a
3358
3457
  })),
3359
3458
  totalCount: t.data.totalCount,
3360
3459
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -3402,11 +3501,11 @@ class Ut {
3402
3501
  ok: !0,
3403
3502
  data: this.transformer.transform.gameSession(t.data)
3404
3503
  };
3405
- const r = await this.gameService.gameSession({ id: e });
3406
- return r.ok ? {
3504
+ const a = await this.gameService.gameSession({ id: e });
3505
+ return a.ok ? {
3407
3506
  ok: !0,
3408
- data: r.data ? this.transformer.transform.gameSession(r.data) : null
3409
- } : r;
3507
+ data: a.data ? this.transformer.transform.gameSession(a.data) : null
3508
+ } : a;
3410
3509
  }
3411
3510
  /**
3412
3511
  * @deprecated use `createGameSession__next`
@@ -3425,18 +3524,18 @@ class Ut {
3425
3524
  * ```
3426
3525
  */
3427
3526
  async createGameSession(e) {
3428
- const t = e.id ?? E.generate(b.GameSession).toString(), r = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
3429
- return r.ok ? { ok: !0, data: { id: t } } : r;
3527
+ const t = e.id ?? A.generate(S.GameSession).toString(), a = await this.walletService.createGameSession({ input: { id: t, game: e.game } });
3528
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3430
3529
  }
3431
3530
  /** @deprecated use `createGameSession__next` */
3432
3531
  async createGameSession__legacy(e) {
3433
- const t = e.id ?? E.generate(b.GameSession).toString(), r = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
3434
- return r.ok ? { ok: !0, data: { id: t } } : r;
3532
+ const t = e.id ?? A.generate(S.GameSession).toString(), a = await this.gameService.createGameSession({ input: { id: t, game: e.game } });
3533
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3435
3534
  }
3436
3535
  async createGameSession__next(e) {
3437
- const t = e.id ?? E.generate(b.GameSession).toString();
3536
+ const t = e.id ?? A.generate(S.GameSession).toString();
3438
3537
  if (e.game.startsWith("SPORTS:")) {
3439
- const p = await E.generateFromKey(b.Game, e.game).then(
3538
+ const p = await A.generateFromKey(S.Game, e.game).then(
3440
3539
  (f) => f.toString()
3441
3540
  ), l = await this.gameService.createGameSession({
3442
3541
  input: {
@@ -3446,8 +3545,8 @@ class Ut {
3446
3545
  });
3447
3546
  return l.ok ? { ok: !0, data: { id: t } } : l;
3448
3547
  }
3449
- const r = await this.game__next(e.game);
3450
- if (!r.data)
3548
+ const a = await this.game__next(e.game);
3549
+ if (!a.data)
3451
3550
  return {
3452
3551
  ok: !1,
3453
3552
  error: {
@@ -3457,9 +3556,9 @@ class Ut {
3457
3556
  };
3458
3557
  const {
3459
3558
  /**/
3460
- provider: a,
3559
+ provider: r,
3461
3560
  externalId: s
3462
- } = r.data, c = xt(a) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
3561
+ } = a.data, c = $t(r) ? await this.walletService.createGameSession({ input: { id: t, game: s } }) : await this.gameService.createGameSession({ input: { id: t, game: s } });
3463
3562
  return c.ok ? { ok: !0, data: { id: t } } : c;
3464
3563
  }
3465
3564
  /** @deprecated use `endGameSession__next` */
@@ -3502,13 +3601,13 @@ class Ut {
3502
3601
  * ```
3503
3602
  */
3504
3603
  async uploadImageFile(e) {
3505
- const t = e.id ?? E.generate(b.File).toString(), r = await this.fileService.uploadPrivateImageFile({
3604
+ const t = e.id ?? A.generate(S.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3506
3605
  input: {
3507
3606
  id: t,
3508
3607
  file: e.file
3509
3608
  }
3510
3609
  });
3511
- return r.ok ? { ok: !0, data: { id: t } } : r;
3610
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3512
3611
  }
3513
3612
  /**/
3514
3613
  /*+----------------------------------------+*/
@@ -3534,9 +3633,9 @@ class Ut {
3534
3633
  return t.ok ? {
3535
3634
  ok: !0,
3536
3635
  data: {
3537
- pointsWalletTransactions: t.data.edges.map(({ cursor: r, node: a }) => ({
3538
- ...this.transformer.transform.pointsWalletTransaction(a),
3539
- cursor: r
3636
+ pointsWalletTransactions: t.data.edges.map(({ cursor: a, node: r }) => ({
3637
+ ...this.transformer.transform.pointsWalletTransaction(r),
3638
+ cursor: a
3540
3639
  })),
3541
3640
  totalCount: t.data.totalCount,
3542
3641
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -3554,9 +3653,9 @@ class Ut {
3554
3653
  return t.ok ? {
3555
3654
  ok: !0,
3556
3655
  data: {
3557
- activityRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3558
- ...this.transformer.transform.activityRecord(a),
3559
- cursor: r
3656
+ activityRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3657
+ ...this.transformer.transform.activityRecord(r),
3658
+ cursor: a
3560
3659
  })),
3561
3660
  totalCount: t.data.totalCount,
3562
3661
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -3565,7 +3664,7 @@ class Ut {
3565
3664
  } : t;
3566
3665
  }
3567
3666
  }
3568
- const Gt = [
3667
+ const Wt = [
3569
3668
  /**/
3570
3669
  "RTG",
3571
3670
  "DARWIN",
@@ -3575,12 +3674,12 @@ const Gt = [
3575
3674
  "EVOLUTION_NETENT",
3576
3675
  "EVOLUTION_REDTIGER"
3577
3676
  ];
3578
- function xt(n) {
3579
- return Gt.some((e) => e === n);
3677
+ function $t(n) {
3678
+ return Wt.some((e) => e === n);
3580
3679
  }
3581
3680
  export {
3582
- qt as ObjectId,
3583
- b as ObjectType,
3584
- Ut as Sdk
3681
+ Lt as ObjectId,
3682
+ S as ObjectType,
3683
+ Ot as Sdk
3585
3684
  };
3586
3685
  //# sourceMappingURL=index.mjs.map