@opexa/portal-sdk 0.0.50 → 0.0.52

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,5 +1,5 @@
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;
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;
3
3
  var m = (n, e, t) => ve(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as A } from "@opexa/object-id";
5
5
  import { ObjectId as Lt } from "@opexa/object-id";
@@ -52,7 +52,7 @@ const L = o`
52
52
  }
53
53
  }
54
54
  }
55
- `, De = o`
55
+ `, Ie = o`
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
+ `, De = o`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -854,7 +854,7 @@ const L = o`
854
854
  }
855
855
  }
856
856
  }
857
- `, ut = o`
857
+ `, dt = o`
858
858
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
859
859
  registerMayaMemberAccount(input: $input) {
860
860
  ... on AccountNameNotAvailableError {
@@ -862,7 +862,7 @@ const L = o`
862
862
  }
863
863
  }
864
864
  }
865
- `, dt = o`
865
+ `, ut = o`
866
866
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
867
867
  updateMemberAccount(input: $input) {
868
868
  ... on AccountNameNotAvailableError {
@@ -1059,7 +1059,7 @@ const L = o`
1059
1059
  }
1060
1060
  }
1061
1061
  `;
1062
- function u(n) {
1062
+ function d(n) {
1063
1063
  return {
1064
1064
  name: n,
1065
1065
  message: {
@@ -1130,16 +1130,16 @@ class kt {
1130
1130
  const t = await this.client.request(mt, e);
1131
1131
  return t.ok ? t.data.registerMemberAccount ? {
1132
1132
  ok: !1,
1133
- error: u(t.data.registerMemberAccount.__typename)
1133
+ error: d(t.data.registerMemberAccount.__typename)
1134
1134
  } : {
1135
1135
  ok: !0
1136
1136
  } : t;
1137
1137
  }
1138
1138
  async updateMemberAccount(e) {
1139
- const t = await this.client.request(dt, e);
1139
+ const t = await this.client.request(ut, e);
1140
1140
  return t.ok ? t.data.updateMemberAccount ? {
1141
1141
  ok: !1,
1142
- error: u(t.data.updateMemberAccount.__typename)
1142
+ error: d(t.data.updateMemberAccount.__typename)
1143
1143
  } : {
1144
1144
  ok: !0
1145
1145
  } : t;
@@ -1163,7 +1163,7 @@ class kt {
1163
1163
  );
1164
1164
  return t.ok ? t.data.resetPassword ? {
1165
1165
  ok: !1,
1166
- error: u(t.data.resetPassword.__typename)
1166
+ error: d(t.data.resetPassword.__typename)
1167
1167
  } : {
1168
1168
  ok: !0
1169
1169
  } : t;
@@ -1179,7 +1179,7 @@ class kt {
1179
1179
  const t = await this.client.request(gt, e);
1180
1180
  return t.ok ? t.data.sendVerificationCode ? {
1181
1181
  ok: !1,
1182
- error: u(t.data.sendVerificationCode.__typename)
1182
+ error: d(t.data.sendVerificationCode.__typename)
1183
1183
  } : {
1184
1184
  ok: !0
1185
1185
  } : t;
@@ -1188,7 +1188,7 @@ class kt {
1188
1188
  const t = await this.client.request(ft, e);
1189
1189
  return t.ok ? t.data.verifyMobileNumber ? {
1190
1190
  ok: !1,
1191
- error: u(t.data.verifyMobileNumber.__typename)
1191
+ error: d(t.data.verifyMobileNumber.__typename)
1192
1192
  } : {
1193
1193
  ok: !0
1194
1194
  } : t;
@@ -1197,7 +1197,7 @@ class kt {
1197
1197
  const t = await this.client.request(ht, e);
1198
1198
  return t.ok ? t.data.createMemberVerification ? {
1199
1199
  ok: !1,
1200
- error: u(t.data.createMemberVerification.__typename)
1200
+ error: d(t.data.createMemberVerification.__typename)
1201
1201
  } : {
1202
1202
  ok: !0
1203
1203
  } : t;
@@ -1206,7 +1206,7 @@ class kt {
1206
1206
  const t = await this.client.request(yt, e);
1207
1207
  return t.ok ? t.data.updateMemberVerification ? {
1208
1208
  ok: !1,
1209
- error: u(t.data.updateMemberVerification.__typename)
1209
+ error: d(t.data.updateMemberVerification.__typename)
1210
1210
  } : {
1211
1211
  ok: !0
1212
1212
  } : t;
@@ -1229,10 +1229,10 @@ class kt {
1229
1229
  } : t;
1230
1230
  }
1231
1231
  async registerMayaMemberAccount(e) {
1232
- const t = await this.client.request(ut, e);
1232
+ const t = await this.client.request(dt, e);
1233
1233
  return t.ok ? t.data.registerMayaMemberAccount ? {
1234
1234
  ok: !1,
1235
- error: u(t.data.registerMayaMemberAccount.__typename)
1235
+ error: d(t.data.registerMayaMemberAccount.__typename)
1236
1236
  } : {
1237
1237
  ok: !0
1238
1238
  } : t;
@@ -1285,7 +1285,7 @@ class _t {
1285
1285
  data: a
1286
1286
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1287
1287
  ok: !1,
1288
- error: u("AccountBlacklisted")
1288
+ error: d("AccountBlacklisted")
1289
1289
  } : {
1290
1290
  ok: !1,
1291
1291
  error: h(r.status)
@@ -1318,7 +1318,7 @@ class _t {
1318
1318
  data: a
1319
1319
  } : r.status === 401 || r.status === 403 ? {
1320
1320
  ok: !1,
1321
- error: u("InvalidTokenOrSecretAnswer")
1321
+ error: d("InvalidTokenOrSecretAnswer")
1322
1322
  } : {
1323
1323
  ok: !1,
1324
1324
  error: h(r.status)
@@ -1348,10 +1348,10 @@ class _t {
1348
1348
  data: r
1349
1349
  } : r.code === "ACCOUNT_BLACKLISTED" ? {
1350
1350
  ok: !1,
1351
- error: u("AccountBlacklisted")
1351
+ error: d("AccountBlacklisted")
1352
1352
  } : t.status === 403 || t.status === 401 ? {
1353
1353
  ok: !1,
1354
- error: u("InvalidToken")
1354
+ error: d("InvalidToken")
1355
1355
  } : {
1356
1356
  ok: !1,
1357
1357
  error: h(t.status)
@@ -1395,7 +1395,7 @@ class _t {
1395
1395
  }
1396
1396
  }
1397
1397
  }
1398
- class Tt {
1398
+ class Ct {
1399
1399
  constructor(e) {
1400
1400
  m(this, "url");
1401
1401
  m(this, "siteId");
@@ -1410,9 +1410,9 @@ class Tt {
1410
1410
  } : e;
1411
1411
  }
1412
1412
  async games(e) {
1413
- var a, s, c, p, l, f, y, d, _, T, C, v, M, N, D, I, R, P, x, G, W, $, U, B;
1413
+ var a, s, c, p, l, f, y, u, _, C, T, v, M, N, I, D, R, P, x, G, W, $, U, B;
1414
1414
  const t = new URLSearchParams();
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 = (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 = (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(",")), (I = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.provider) != null && I.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(
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 = (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(",")), (u = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.type) != null && u.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()), (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(
1416
1416
  "filter[tags][in]",
1417
1417
  e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1418
1418
  ), (B = (U = e == null ? void 0 : e.filter) == null ? void 0 : U.tags) != null && B.notIn && t.set(
@@ -1473,7 +1473,7 @@ class Tt {
1473
1473
  }
1474
1474
  }
1475
1475
  }
1476
- class Ct {
1476
+ class Tt {
1477
1477
  constructor(e) {
1478
1478
  m(this, "client");
1479
1479
  this.client = e;
@@ -1489,7 +1489,7 @@ class Ct {
1489
1489
  const t = await this.client.upload(Ne, e);
1490
1490
  return t.ok ? t.data.uploadPrivateImageFile ? {
1491
1491
  ok: !1,
1492
- error: u(t.data.uploadPrivateImageFile.__typename)
1492
+ error: d(t.data.uploadPrivateImageFile.__typename)
1493
1493
  } : {
1494
1494
  ok: !0
1495
1495
  } : t;
@@ -1524,7 +1524,7 @@ class vt {
1524
1524
  const t = await this.client.request(Se, e);
1525
1525
  return t.ok ? t.data.createGameSession ? {
1526
1526
  ok: !1,
1527
- error: u(t.data.createGameSession.__typename)
1527
+ error: d(t.data.createGameSession.__typename)
1528
1528
  } : {
1529
1529
  ok: !0
1530
1530
  } : t;
@@ -1533,7 +1533,7 @@ class vt {
1533
1533
  const t = await this.client.request(Ge, e);
1534
1534
  return t.ok ? t.data.endGameSession ? {
1535
1535
  ok: !1,
1536
- error: u(t.data.endGameSession.__typename)
1536
+ error: d(t.data.endGameSession.__typename)
1537
1537
  } : {
1538
1538
  ok: !0
1539
1539
  } : t;
@@ -1602,7 +1602,7 @@ class Nt {
1602
1602
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1603
1603
  }
1604
1604
  }
1605
- class Dt {
1605
+ class It {
1606
1606
  constructor(e) {
1607
1607
  m(this, "url");
1608
1608
  this.url = e.url;
@@ -1642,7 +1642,7 @@ class ke {
1642
1642
  const t = await this.client.request(ot, e);
1643
1643
  return t.ok ? t.data.claimCashbackBonus ? {
1644
1644
  ok: !1,
1645
- error: u(t.data.claimCashbackBonus.__typename)
1645
+ error: d(t.data.claimCashbackBonus.__typename)
1646
1646
  } : {
1647
1647
  ok: !0
1648
1648
  } : {
@@ -1655,7 +1655,7 @@ class ke {
1655
1655
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1656
1656
  }
1657
1657
  async wallet() {
1658
- const e = await this.client.request(De);
1658
+ const e = await this.client.request(Ie);
1659
1659
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1660
1660
  }
1661
1661
  async deposit(e) {
@@ -1669,7 +1669,7 @@ class ke {
1669
1669
  const t = await this.client.request(Ye, e);
1670
1670
  return t.ok ? t.data.createGCashDeposit ? {
1671
1671
  ok: !1,
1672
- error: u(t.data.createGCashDeposit.__typename)
1672
+ error: d(t.data.createGCashDeposit.__typename)
1673
1673
  } : {
1674
1674
  ok: !0
1675
1675
  } : t;
@@ -1678,7 +1678,7 @@ class ke {
1678
1678
  const t = await this.client.request(He, e);
1679
1679
  return t.ok ? t.data.createMayaDeposit ? {
1680
1680
  ok: !1,
1681
- error: u(t.data.createMayaDeposit.__typename)
1681
+ error: d(t.data.createMayaDeposit.__typename)
1682
1682
  } : {
1683
1683
  ok: !0
1684
1684
  } : t;
@@ -1687,7 +1687,7 @@ class ke {
1687
1687
  const t = await this.client.request(je, e);
1688
1688
  return t.ok ? t.data.createMayaAppDeposit ? {
1689
1689
  ok: !1,
1690
- error: u(t.data.createMayaAppDeposit.__typename)
1690
+ error: d(t.data.createMayaAppDeposit.__typename)
1691
1691
  } : {
1692
1692
  ok: !0
1693
1693
  } : t;
@@ -1696,7 +1696,7 @@ class ke {
1696
1696
  const t = await this.client.request(Qe, e);
1697
1697
  return t.ok ? t.data.createMayaAppDeposit ? {
1698
1698
  ok: !1,
1699
- error: u(t.data.createMayaAppDeposit.__typename)
1699
+ error: d(t.data.createMayaAppDeposit.__typename)
1700
1700
  } : {
1701
1701
  ok: !0
1702
1702
  } : t;
@@ -1705,7 +1705,7 @@ class ke {
1705
1705
  const t = await this.client.request(Ue, e);
1706
1706
  return t.ok ? t.data.createGCashWithdrawal ? {
1707
1707
  ok: !1,
1708
- error: u(t.data.createGCashWithdrawal.__typename)
1708
+ error: d(t.data.createGCashWithdrawal.__typename)
1709
1709
  } : {
1710
1710
  ok: !0
1711
1711
  } : t;
@@ -1714,7 +1714,7 @@ class ke {
1714
1714
  const t = await this.client.request(Be, e);
1715
1715
  return t.ok ? t.data.createMayaWithdrawal ? {
1716
1716
  ok: !1,
1717
- error: u(t.data.createMayaWithdrawal.__typename)
1717
+ error: d(t.data.createMayaWithdrawal.__typename)
1718
1718
  } : {
1719
1719
  ok: !0
1720
1720
  } : t;
@@ -1723,7 +1723,7 @@ class ke {
1723
1723
  const t = await this.client.request(Oe, e);
1724
1724
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1725
1725
  ok: !1,
1726
- error: u(t.data.createMayaAppWithdrawal.__typename)
1726
+ error: d(t.data.createMayaAppWithdrawal.__typename)
1727
1727
  } : {
1728
1728
  ok: !0
1729
1729
  } : t;
@@ -1732,7 +1732,7 @@ class ke {
1732
1732
  const t = await this.client.request(qe, e);
1733
1733
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1734
1734
  ok: !1,
1735
- error: u(t.data.createMayaAppWithdrawal.__typename)
1735
+ error: d(t.data.createMayaAppWithdrawal.__typename)
1736
1736
  } : {
1737
1737
  ok: !0
1738
1738
  } : t;
@@ -1741,7 +1741,7 @@ class ke {
1741
1741
  const t = await this.client.request(Fe, e);
1742
1742
  return t.ok ? t.data.createBankWithdrawal ? {
1743
1743
  ok: !1,
1744
- error: u(t.data.createBankWithdrawal.__typename)
1744
+ error: d(t.data.createBankWithdrawal.__typename)
1745
1745
  } : {
1746
1746
  ok: !0
1747
1747
  } : t;
@@ -1753,14 +1753,14 @@ class ke {
1753
1753
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1754
1754
  }
1755
1755
  async pointsWallet() {
1756
- const e = await this.client.request(Ie);
1756
+ const e = await this.client.request(De);
1757
1757
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1758
1758
  }
1759
1759
  async pointsToCashConversion(e) {
1760
1760
  const t = await this.client.request(Re, e);
1761
1761
  return t.ok ? t.data.pointsToCashConversion ? {
1762
1762
  ok: !1,
1763
- error: u(t.data.pointsToCashConversion.__typename)
1763
+ error: d(t.data.pointsToCashConversion.__typename)
1764
1764
  } : {
1765
1765
  ok: !0
1766
1766
  } : t;
@@ -1796,7 +1796,7 @@ class ke {
1796
1796
  const t = await this.client.request(Se, e);
1797
1797
  return t.ok ? t.data.createGameSession ? {
1798
1798
  ok: !1,
1799
- error: u(t.data.createGameSession.__typename)
1799
+ error: d(t.data.createGameSession.__typename)
1800
1800
  } : {
1801
1801
  ok: !0
1802
1802
  } : t;
@@ -1831,7 +1831,7 @@ class ke {
1831
1831
  } : e;
1832
1832
  }
1833
1833
  }
1834
- function It(n, e, t) {
1834
+ function Dt(n, e, t) {
1835
1835
  return n < e ? e : n > t ? t : n;
1836
1836
  }
1837
1837
  function Y(n) {
@@ -1895,10 +1895,10 @@ class b {
1895
1895
  const l = await fetch(e);
1896
1896
  if (!l.ok)
1897
1897
  return { ok: !1, error: h(l.status) };
1898
- const f = await l.json(), y = f.data, d = (t = f.errors) == null ? void 0 : t.at(0);
1899
- 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, u = (t = f.errors) == null ? void 0 : t.at(0);
1899
+ return u ? ((r = u.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = u.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, u.message) } : ((s = u.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, u.message) } : ((c = u.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((p = u.extensions) == null ? void 0 : p.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, u.message) } : {
1900
1900
  ok: !1,
1901
- error: h(500, d.message)
1901
+ error: h(500, u.message)
1902
1902
  } : {
1903
1903
  ok: !0,
1904
1904
  data: y
@@ -1974,7 +1974,7 @@ function q(n, e) {
1974
1974
  function ye(n, e) {
1975
1975
  return n.getTime() > e.getTime();
1976
1976
  }
1977
- function Te(n) {
1977
+ function Ce(n) {
1978
1978
  return new Promise((e) => {
1979
1979
  setTimeout(e, n);
1980
1980
  });
@@ -1988,7 +1988,7 @@ function we(n, e) {
1988
1988
  } = e;
1989
1989
  async function s(c, p) {
1990
1990
  const l = p ?? a, f = await n(...c);
1991
- return t(f) ? f : l > 1 ? (await Te(r * ((a - l) / 2)), s(c, l - 1)) : f;
1991
+ return t(f) ? f : l > 1 ? (await Ce(r * ((a - l) / 2)), s(c, l - 1)) : f;
1992
1992
  }
1993
1993
  return async (...c) => await s(c);
1994
1994
  }
@@ -2035,8 +2035,8 @@ class xt {
2035
2035
  if (e.type === "MAYA") {
2036
2036
  const c = await we(() => this.walletService.mayaSession({ id: e.sessionId }), {
2037
2037
  until: (y) => {
2038
- var d;
2039
- return y.ok && ((d = y.data) == null ? void 0 : d.member) != null;
2038
+ var u;
2039
+ return y.ok && ((u = y.data) == null ? void 0 : u.member) != null;
2040
2040
  },
2041
2041
  interval: 1e3,
2042
2042
  maxAttempt: 5
@@ -2131,7 +2131,7 @@ class xt {
2131
2131
  data: null
2132
2132
  };
2133
2133
  if (this.refreshing)
2134
- return await Te(1e3), await this.get();
2134
+ return await Ce(1e3), await this.get();
2135
2135
  const e = window.localStorage.getItem(this.storageKey);
2136
2136
  if (!e)
2137
2137
  return {
@@ -2236,7 +2236,7 @@ class Gt {
2236
2236
  constructor(e) {
2237
2237
  m(this, "staticService");
2238
2238
  const t = (e == null ? void 0 : e.environment) === "development";
2239
- this.staticService = new Dt({
2239
+ this.staticService = new It({
2240
2240
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2241
2241
  });
2242
2242
  }
@@ -2279,7 +2279,7 @@ class Gt {
2279
2279
  return g(t);
2280
2280
  }
2281
2281
  platform(e) {
2282
- var t, r, a, s, c, p, l, f, y, d, _, T, C, v, M, N, D, I, R, P, x, G, W, $, U, B, E, Q, K, z, J, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, ue, de, le, pe, fe, he;
2282
+ var t, r, a, s, c, p, l, f, y, u, _, C, T, v, M, N, I, D, R, P, x, G, W, $, U, B, E, Q, K, z, J, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, de, ue, le, pe, fe, he;
2283
2283
  return {
2284
2284
  paymentSettings: {
2285
2285
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
@@ -2297,17 +2297,17 @@ class Gt {
2297
2297
  androidEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.androidEnabled) ?? !1,
2298
2298
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2299
2299
  webEnabled: ((y = e.gcashDepositGatewaySettings) == null ? void 0 : y.webEnabled) ?? !1,
2300
- mobileWebEnabled: ((d = e.gcashDepositGatewaySettings) == null ? void 0 : d.mobileWebEnabled) ?? !1,
2300
+ mobileWebEnabled: ((u = e.gcashDepositGatewaySettings) == null ? void 0 : u.mobileWebEnabled) ?? !1,
2301
2301
  minimumAmount: i((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2302
- maximumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.maximumAmount)
2302
+ maximumAmount: i((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.maximumAmount)
2303
2303
  },
2304
2304
  maya: {
2305
- androidEnabled: ((C = e.mayaDepositGatewaySettings) == null ? void 0 : C.androidEnabled) ?? !1,
2305
+ androidEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.androidEnabled) ?? !1,
2306
2306
  iosEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.iosEnabled) ?? !1,
2307
2307
  webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
2308
2308
  mobileWebEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.mobileWebEnabled) ?? !1,
2309
- minimumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.minimumAmount),
2310
- maximumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.maximumAmount)
2309
+ minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2310
+ maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2311
2311
  },
2312
2312
  mayaApp: {
2313
2313
  androidEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.androidEnabled) ?? !1,
@@ -2348,8 +2348,8 @@ class Gt {
2348
2348
  },
2349
2349
  mayaApp: {
2350
2350
  androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
2351
- iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2352
- webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2351
+ iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2352
+ webEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.webEnabled) ?? !1,
2353
2353
  mobileWebEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.mobileWebEnabled) ?? !1,
2354
2354
  minimumAmount: i((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.minimumAmount),
2355
2355
  maximumAmount: i(
@@ -2698,7 +2698,7 @@ class Ot {
2698
2698
  enabled: e.logs ?? !1
2699
2699
  });
2700
2700
  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", y = t ? "https://portal-api.opexacms.io/v1" : "https://portal-api.development.opexacms.io/v1";
2701
- this.cmsPortalService = new Tt({
2701
+ this.cmsPortalService = new Ct({
2702
2702
  url: y,
2703
2703
  site: e.site,
2704
2704
  platform: e.sitePlatform
@@ -2708,7 +2708,7 @@ class Ot {
2708
2708
  platform: e.platform,
2709
2709
  logs: e.logs
2710
2710
  });
2711
- const d = {
2711
+ const u = {
2712
2712
  middlewares: [this.authMiddleware],
2713
2713
  fetchOptions: {
2714
2714
  headers: {
@@ -2717,7 +2717,7 @@ class Ot {
2717
2717
  }
2718
2718
  }
2719
2719
  };
2720
- this.gameService = new vt(new b(f, d)), this.fileService = new Ct(new b(l, d)), this.walletService = new ke(new b(a, 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));
2720
+ this.gameService = new vt(new b(f, u)), this.fileService = new Tt(new b(l, u)), this.walletService = new ke(new b(a, u)), this.accountService = new kt(new b(c, u)), this.reportService = new Nt(new b(s, u)), this.portalService = new Mt(new b(p, u));
2721
2721
  }
2722
2722
  get authMiddleware() {
2723
2723
  return async (e) => {
@@ -2831,7 +2831,7 @@ class Ot {
2831
2831
  * ```
2832
2832
  */
2833
2833
  watchSession(e) {
2834
- const t = It(e.interval ?? 3e4, 3e4, 6e4);
2834
+ const t = Dt(e.interval ?? 3e4, 3e4, 6e4);
2835
2835
  let r = null;
2836
2836
  const a = () => setTimeout(async () => {
2837
2837
  await this.sessionManager.verify() || await e.onInvalid(), r = a();
@@ -3302,27 +3302,25 @@ class Ot {
3302
3302
  /*+----------------------------------------+*/
3303
3303
  /**/
3304
3304
  async betRecords(e) {
3305
- var r, a;
3306
3305
  const t = await this.reportService.betRecords({
3307
3306
  ...e,
3308
3307
  ...(e == null ? void 0 : e.filter) && {
3309
3308
  filter: {
3310
- ...e.filter,
3311
- ...((r = e.filter) == null ? void 0 : r.gameType) && {
3312
- game__type: e.filter.gameType
3313
- },
3314
- ...((a = e.filter) == null ? void 0 : a.gameProvider) && {
3315
- game__provider: e.filter.gameProvider
3316
- }
3309
+ ...e.filter.status && { game: e.filter.status },
3310
+ ...e.filter.serialCode && { game: e.filter.serialCode },
3311
+ ...e.filter.vendorRoundId && { game: e.filter.vendorRoundId },
3312
+ ...e.filter.dateTimeCreated && { dateTimeCreated: e.filter.dateTimeCreated },
3313
+ ...e.filter.gameType && { game__type: e.filter.gameType },
3314
+ ...e.filter.gameProvider && { game__provider: e.filter.gameProvider }
3317
3315
  }
3318
3316
  }
3319
3317
  });
3320
3318
  return t.ok ? {
3321
3319
  ok: !0,
3322
3320
  data: {
3323
- betRecords: t.data.edges.map(({ cursor: s, node: c }) => ({
3324
- ...this.transformer.transform.betRecord(c),
3325
- cursor: s
3321
+ betRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3322
+ ...this.transformer.transform.betRecord(a),
3323
+ cursor: r
3326
3324
  })),
3327
3325
  totalCount: t.data.totalCount,
3328
3326
  endCursor: t.data.pageInfo.endCursor ?? void 0,