@opexa/portal-sdk 0.0.81 → 0.0.82

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,6 +1,6 @@
1
1
  var _e = Object.defineProperty;
2
2
  var Te = (n, e, t) => e in n ? _e(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var m = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
3
+ var d = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as k } from "@opexa/object-id";
5
5
  import { ObjectId as Yt } from "@opexa/object-id";
6
6
  const _ = {
@@ -902,11 +902,11 @@ const tt = o`
902
902
  }
903
903
  }
904
904
  }
905
- `, mt = o`
905
+ `, dt = o`
906
906
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
907
907
  deleteMemberAccount(input: $input)
908
908
  }
909
- `, dt = o`
909
+ `, mt = o`
910
910
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
911
911
  verifyMobileNumber(input: $input) {
912
912
  ... on InvalidSMSVerificationCodeError {
@@ -1149,7 +1149,7 @@ const tt = o`
1149
1149
  }
1150
1150
  }
1151
1151
  `;
1152
- function d(n) {
1152
+ function m(n) {
1153
1153
  return {
1154
1154
  name: n,
1155
1155
  message: {
@@ -1206,7 +1206,7 @@ function d(n) {
1206
1206
  }
1207
1207
  class _t {
1208
1208
  constructor(e) {
1209
- m(this, "client");
1209
+ d(this, "client");
1210
1210
  this.client = e;
1211
1211
  }
1212
1212
  /** aka `Query.self` */
@@ -1221,7 +1221,7 @@ class _t {
1221
1221
  const t = await this.client.request(at, e);
1222
1222
  return t.ok ? t.data.registerMemberAccount ? {
1223
1223
  ok: !1,
1224
- error: d(t.data.registerMemberAccount.__typename)
1224
+ error: m(t.data.registerMemberAccount.__typename)
1225
1225
  } : {
1226
1226
  ok: !0
1227
1227
  } : t;
@@ -1230,7 +1230,7 @@ class _t {
1230
1230
  const t = await this.client.request(nt, e);
1231
1231
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1232
1232
  ok: !1,
1233
- error: d(t.data.registerMemberAccountViaMobile.__typename)
1233
+ error: m(t.data.registerMemberAccountViaMobile.__typename)
1234
1234
  } : {
1235
1235
  ok: !0
1236
1236
  } : t;
@@ -1239,7 +1239,7 @@ class _t {
1239
1239
  const t = await this.client.request(ot, e);
1240
1240
  return t.ok ? t.data.registerMemberAccount ? {
1241
1241
  ok: !1,
1242
- error: d(t.data.registerMemberAccount.__typename)
1242
+ error: m(t.data.registerMemberAccount.__typename)
1243
1243
  } : {
1244
1244
  ok: !0
1245
1245
  } : t;
@@ -1248,13 +1248,13 @@ class _t {
1248
1248
  const t = await this.client.request(st, e);
1249
1249
  return t.ok ? t.data.updateMemberAccount ? {
1250
1250
  ok: !1,
1251
- error: d(t.data.updateMemberAccount.__typename)
1251
+ error: m(t.data.updateMemberAccount.__typename)
1252
1252
  } : {
1253
1253
  ok: !0
1254
1254
  } : t;
1255
1255
  }
1256
1256
  async deleteMemberAccount(e) {
1257
- const t = await this.client.request(mt, e);
1257
+ const t = await this.client.request(dt, e);
1258
1258
  return t.ok ? t.data.deleteMemberAccount ? {
1259
1259
  ok: !0
1260
1260
  } : {
@@ -1272,7 +1272,7 @@ class _t {
1272
1272
  );
1273
1273
  return t.ok ? t.data.resetPassword ? {
1274
1274
  ok: !1,
1275
- error: d(t.data.resetPassword.__typename)
1275
+ error: m(t.data.resetPassword.__typename)
1276
1276
  } : {
1277
1277
  ok: !0
1278
1278
  } : t;
@@ -1288,16 +1288,16 @@ class _t {
1288
1288
  const t = await this.client.request(ft, e);
1289
1289
  return t.ok ? t.data.sendVerificationCode ? {
1290
1290
  ok: !1,
1291
- error: d(t.data.sendVerificationCode.__typename)
1291
+ error: m(t.data.sendVerificationCode.__typename)
1292
1292
  } : {
1293
1293
  ok: !0
1294
1294
  } : t;
1295
1295
  }
1296
1296
  async verifyMobileNumber(e) {
1297
- const t = await this.client.request(dt, e);
1297
+ const t = await this.client.request(mt, e);
1298
1298
  return t.ok ? t.data.verifyMobileNumber ? {
1299
1299
  ok: !1,
1300
- error: d(t.data.verifyMobileNumber.__typename)
1300
+ error: m(t.data.verifyMobileNumber.__typename)
1301
1301
  } : {
1302
1302
  ok: !0
1303
1303
  } : t;
@@ -1306,7 +1306,7 @@ class _t {
1306
1306
  const t = await this.client.request(ut, e);
1307
1307
  return t.ok ? t.data.createMemberVerification ? {
1308
1308
  ok: !1,
1309
- error: d(t.data.createMemberVerification.__typename)
1309
+ error: m(t.data.createMemberVerification.__typename)
1310
1310
  } : {
1311
1311
  ok: !0
1312
1312
  } : t;
@@ -1315,7 +1315,7 @@ class _t {
1315
1315
  const t = await this.client.request(lt, e);
1316
1316
  return t.ok ? t.data.updateMemberVerification ? {
1317
1317
  ok: !1,
1318
- error: d(t.data.updateMemberVerification.__typename)
1318
+ error: m(t.data.updateMemberVerification.__typename)
1319
1319
  } : {
1320
1320
  ok: !0
1321
1321
  } : t;
@@ -1341,7 +1341,7 @@ class _t {
1341
1341
  const t = await this.client.request(it, e);
1342
1342
  return t.ok ? t.data.registerMayaMemberAccount ? {
1343
1343
  ok: !1,
1344
- error: d(t.data.registerMayaMemberAccount.__typename)
1344
+ error: m(t.data.registerMayaMemberAccount.__typename)
1345
1345
  } : {
1346
1346
  ok: !0
1347
1347
  } : t;
@@ -1357,7 +1357,7 @@ class _t {
1357
1357
  const t = await this.client.request(At, e);
1358
1358
  return t.ok ? t.data.updateReferralCode ? {
1359
1359
  ok: !1,
1360
- error: d(t.data.updateReferralCode.__typename)
1360
+ error: m(t.data.updateReferralCode.__typename)
1361
1361
  } : {
1362
1362
  ok: !0
1363
1363
  } : t;
@@ -1384,8 +1384,8 @@ const V = {
1384
1384
  };
1385
1385
  class Tt {
1386
1386
  constructor(e) {
1387
- m(this, "url");
1388
- m(this, "platform");
1387
+ d(this, "url");
1388
+ d(this, "platform");
1389
1389
  this.url = e.url, this.platform = e.platform;
1390
1390
  }
1391
1391
  get headers() {
@@ -1413,7 +1413,7 @@ class Tt {
1413
1413
  data: a
1414
1414
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1415
1415
  ok: !1,
1416
- error: d("AccountBlacklisted")
1416
+ error: m("AccountBlacklisted")
1417
1417
  } : {
1418
1418
  ok: !1,
1419
1419
  error: h(r.status)
@@ -1442,7 +1442,7 @@ class Tt {
1442
1442
  data: a
1443
1443
  } : r.status === 401 || r.status === 403 ? {
1444
1444
  ok: !1,
1445
- error: d("InvalidTokenOrSecretAnswer")
1445
+ error: m("InvalidTokenOrSecretAnswer")
1446
1446
  } : {
1447
1447
  ok: !1,
1448
1448
  error: h(r.status)
@@ -1469,10 +1469,10 @@ class Tt {
1469
1469
  data: a
1470
1470
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1471
1471
  ok: !1,
1472
- error: d("AccountBlacklisted")
1472
+ error: m("AccountBlacklisted")
1473
1473
  } : r.status === 403 || r.status === 401 ? {
1474
1474
  ok: !1,
1475
- error: d("InvalidToken")
1475
+ error: m("InvalidToken")
1476
1476
  } : {
1477
1477
  ok: !1,
1478
1478
  error: h(r.status)
@@ -1538,9 +1538,9 @@ class Tt {
1538
1538
  }
1539
1539
  class vt {
1540
1540
  constructor(e) {
1541
- m(this, "url");
1542
- m(this, "siteId");
1543
- m(this, "platformId");
1541
+ d(this, "url");
1542
+ d(this, "siteId");
1543
+ d(this, "platformId");
1544
1544
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1545
1545
  }
1546
1546
  async self() {
@@ -1616,7 +1616,7 @@ class vt {
1616
1616
  }
1617
1617
  class Mt {
1618
1618
  constructor(e) {
1619
- m(this, "client");
1619
+ d(this, "client");
1620
1620
  this.client = e;
1621
1621
  }
1622
1622
  async file(e) {
@@ -1630,7 +1630,7 @@ class Mt {
1630
1630
  const t = await this.client.upload(Me, e);
1631
1631
  return t.ok ? t.data.uploadPrivateImageFile ? {
1632
1632
  ok: !1,
1633
- error: d(t.data.uploadPrivateImageFile.__typename)
1633
+ error: m(t.data.uploadPrivateImageFile.__typename)
1634
1634
  } : {
1635
1635
  ok: !0
1636
1636
  } : t;
@@ -1638,7 +1638,7 @@ class Mt {
1638
1638
  }
1639
1639
  class Rt {
1640
1640
  constructor(e) {
1641
- m(this, "client");
1641
+ d(this, "client");
1642
1642
  this.client = e;
1643
1643
  }
1644
1644
  async gameSession(e) {
@@ -1655,7 +1655,7 @@ class Rt {
1655
1655
  const t = await this.client.request(Ae, e);
1656
1656
  return t.ok ? t.data.createGameSession ? {
1657
1657
  ok: !1,
1658
- error: d(t.data.createGameSession.__typename)
1658
+ error: m(t.data.createGameSession.__typename)
1659
1659
  } : {
1660
1660
  ok: !0
1661
1661
  } : t;
@@ -1675,7 +1675,7 @@ class Rt {
1675
1675
  }
1676
1676
  class Nt {
1677
1677
  constructor(e) {
1678
- m(this, "client");
1678
+ d(this, "client");
1679
1679
  this.client = e;
1680
1680
  }
1681
1681
  async latestBetRecords() {
@@ -1688,7 +1688,7 @@ class Nt {
1688
1688
  }
1689
1689
  class It {
1690
1690
  constructor(e) {
1691
- m(this, "client");
1691
+ d(this, "client");
1692
1692
  this.client = e;
1693
1693
  }
1694
1694
  async betRecords(e) {
@@ -1759,7 +1759,7 @@ class It {
1759
1759
  }
1760
1760
  class Dt {
1761
1761
  constructor(e) {
1762
- m(this, "url");
1762
+ d(this, "url");
1763
1763
  this.url = e.url;
1764
1764
  }
1765
1765
  gameThumbnails(e) {
@@ -1771,7 +1771,7 @@ class Dt {
1771
1771
  }
1772
1772
  class Pt {
1773
1773
  constructor(e) {
1774
- m(this, "client");
1774
+ d(this, "client");
1775
1775
  this.client = e;
1776
1776
  }
1777
1777
  async promos() {
@@ -1797,7 +1797,7 @@ class Pt {
1797
1797
  const t = await this.client.request(et, e);
1798
1798
  return t.ok ? t.data.claimCashbackBonus ? {
1799
1799
  ok: !1,
1800
- error: d(t.data.claimCashbackBonus.__typename)
1800
+ error: m(t.data.claimCashbackBonus.__typename)
1801
1801
  } : {
1802
1802
  ok: !0
1803
1803
  } : {
@@ -1824,7 +1824,7 @@ class Pt {
1824
1824
  const t = await this.client.request(qe, e);
1825
1825
  return t.ok ? t.data.createGCashDeposit ? {
1826
1826
  ok: !1,
1827
- error: d(t.data.createGCashDeposit.__typename)
1827
+ error: m(t.data.createGCashDeposit.__typename)
1828
1828
  } : {
1829
1829
  ok: !0
1830
1830
  } : t;
@@ -1833,7 +1833,7 @@ class Pt {
1833
1833
  const t = await this.client.request(Fe, e);
1834
1834
  return t.ok ? t.data.createMayaDeposit ? {
1835
1835
  ok: !1,
1836
- error: d(t.data.createMayaDeposit.__typename)
1836
+ error: m(t.data.createMayaDeposit.__typename)
1837
1837
  } : {
1838
1838
  ok: !0
1839
1839
  } : t;
@@ -1842,7 +1842,7 @@ class Pt {
1842
1842
  const t = await this.client.request(Le, e);
1843
1843
  return t.ok ? t.data.createMayaAppDeposit ? {
1844
1844
  ok: !1,
1845
- error: d(t.data.createMayaAppDeposit.__typename)
1845
+ error: m(t.data.createMayaAppDeposit.__typename)
1846
1846
  } : {
1847
1847
  ok: !0
1848
1848
  } : t;
@@ -1851,7 +1851,7 @@ class Pt {
1851
1851
  const t = await this.client.request(xe, e);
1852
1852
  return t.ok ? t.data.createGCashWithdrawal ? {
1853
1853
  ok: !1,
1854
- error: d(t.data.createGCashWithdrawal.__typename)
1854
+ error: m(t.data.createGCashWithdrawal.__typename)
1855
1855
  } : {
1856
1856
  ok: !0
1857
1857
  } : t;
@@ -1860,7 +1860,7 @@ class Pt {
1860
1860
  const t = await this.client.request(Ge, e);
1861
1861
  return t.ok ? t.data.createMayaWithdrawal ? {
1862
1862
  ok: !1,
1863
- error: d(t.data.createMayaWithdrawal.__typename)
1863
+ error: m(t.data.createMayaWithdrawal.__typename)
1864
1864
  } : {
1865
1865
  ok: !0
1866
1866
  } : t;
@@ -1869,7 +1869,7 @@ class Pt {
1869
1869
  const t = await this.client.request(Ue, e);
1870
1870
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1871
1871
  ok: !1,
1872
- error: d(t.data.createMayaAppWithdrawal.__typename)
1872
+ error: m(t.data.createMayaAppWithdrawal.__typename)
1873
1873
  } : {
1874
1874
  ok: !0
1875
1875
  } : t;
@@ -1878,7 +1878,7 @@ class Pt {
1878
1878
  const t = await this.client.request(We, e);
1879
1879
  return t.ok ? t.data.createBankWithdrawal ? {
1880
1880
  ok: !1,
1881
- error: d(t.data.createBankWithdrawal.__typename)
1881
+ error: m(t.data.createBankWithdrawal.__typename)
1882
1882
  } : {
1883
1883
  ok: !0
1884
1884
  } : t;
@@ -1897,7 +1897,7 @@ class Pt {
1897
1897
  const t = await this.client.request(Ie, e);
1898
1898
  return t.ok ? t.data.redeemPointsToCash ? {
1899
1899
  ok: !1,
1900
- error: d(t.data.redeemPointsToCash.__typename)
1900
+ error: m(t.data.redeemPointsToCash.__typename)
1901
1901
  } : {
1902
1902
  ok: !0
1903
1903
  } : t;
@@ -1920,7 +1920,7 @@ class Pt {
1920
1920
  const t = await this.client.request(Ae, e);
1921
1921
  return t.ok ? t.data.createGameSession ? {
1922
1922
  ok: !1,
1923
- error: d(t.data.createGameSession.__typename)
1923
+ error: m(t.data.createGameSession.__typename)
1924
1924
  } : {
1925
1925
  ok: !0
1926
1926
  } : t;
@@ -1979,9 +1979,9 @@ function Gt(n) {
1979
1979
  }
1980
1980
  class U {
1981
1981
  constructor(e, t) {
1982
- m(this, "url");
1983
- m(this, "options");
1984
- m(this, "middlewares");
1982
+ d(this, "url");
1983
+ d(this, "options");
1984
+ d(this, "middlewares");
1985
1985
  var a;
1986
1986
  const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
1987
1987
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -2065,7 +2065,7 @@ async function y(n) {
2065
2065
  }
2066
2066
  class Ce {
2067
2067
  constructor(e) {
2068
- m(this, "enabled");
2068
+ d(this, "enabled");
2069
2069
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
2070
2070
  }
2071
2071
  info(e) {
@@ -2119,11 +2119,11 @@ function F(n, e) {
2119
2119
  }
2120
2120
  class Ut {
2121
2121
  constructor(e) {
2122
- m(this, "logger");
2123
- m(this, "storageKey", "session");
2124
- m(this, "authService");
2125
- m(this, "walletService");
2126
- m(this, "_refreshing", !1);
2122
+ d(this, "logger");
2123
+ d(this, "storageKey", "session");
2124
+ d(this, "authService");
2125
+ d(this, "walletService");
2126
+ d(this, "_refreshing", !1);
2127
2127
  this.authService = e.authService, this.walletService = e.walletService, this.logger = new Ce({
2128
2128
  enabled: e.logs ?? !1
2129
2129
  });
@@ -2346,7 +2346,7 @@ function i(n, e) {
2346
2346
  }
2347
2347
  class Wt {
2348
2348
  constructor(e) {
2349
- m(this, "staticService");
2349
+ d(this, "staticService");
2350
2350
  const t = (e == null ? void 0 : e.environment) === "development";
2351
2351
  this.staticService = new Dt({
2352
2352
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
@@ -2391,7 +2391,7 @@ class Wt {
2391
2391
  return g(t);
2392
2392
  }
2393
2393
  platform(e) {
2394
- var t, r, a, s, c, u, l, f, w, p, T, v, M, R, N, b, I, D, S, P, $, x, C, G, W, O, E, K, J, z, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, me, de, ue, le, pe, fe, he, we;
2394
+ var t, r, a, s, c, u, l, f, w, p, T, v, M, R, N, b, I, D, S, P, $, x, C, G, W, O, E, K, J, z, X, Z, ee, te, re, ae, ne, oe, ie, se, ce, de, me, ue, le, pe, fe, he, we;
2395
2395
  return {
2396
2396
  paymentSettings: {
2397
2397
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
@@ -2456,10 +2456,10 @@ class Wt {
2456
2456
  webEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
2457
2457
  mobileWebEnabled: ((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2458
2458
  minimumAmount: i((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.minimumAmount),
2459
- maximumAmount: i((me = e.mayaWithdrawalGatewaySettings) == null ? void 0 : me.maximumAmount)
2459
+ maximumAmount: i((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.maximumAmount)
2460
2460
  },
2461
2461
  mayaApp: {
2462
- androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
2462
+ androidEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.androidEnabled) ?? !1,
2463
2463
  iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2464
2464
  webEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
2465
2465
  mobileWebEnabled: ((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
@@ -2806,17 +2806,17 @@ class Wt {
2806
2806
  }
2807
2807
  class Lt {
2808
2808
  constructor(e) {
2809
- m(this, "cmsPortalService");
2810
- m(this, "authService");
2811
- m(this, "gameService");
2812
- m(this, "fileService");
2813
- m(this, "walletService");
2814
- m(this, "accountService");
2815
- m(this, "reportService");
2816
- m(this, "portalService");
2817
- m(this, "sessionManager");
2818
- m(this, "transformer");
2819
- m(this, "logger");
2809
+ d(this, "cmsPortalService");
2810
+ d(this, "authService");
2811
+ d(this, "gameService");
2812
+ d(this, "fileService");
2813
+ d(this, "walletService");
2814
+ d(this, "accountService");
2815
+ d(this, "reportService");
2816
+ d(this, "portalService");
2817
+ d(this, "sessionManager");
2818
+ d(this, "transformer");
2819
+ d(this, "logger");
2820
2820
  const {
2821
2821
  /**/
2822
2822
  site: t,
@@ -3288,12 +3288,24 @@ class Lt {
3288
3288
  ...e,
3289
3289
  ...(e == null ? void 0 : e.filter) && {
3290
3290
  filter: {
3291
- ...e.filter.status && { game: e.filter.status },
3292
- ...e.filter.serialCode && { game: e.filter.serialCode },
3293
- ...e.filter.vendorRoundId && { game: e.filter.vendorRoundId },
3294
- ...e.filter.dateTimeCreated && { dateTimeCreated: e.filter.dateTimeCreated },
3295
- ...e.filter.gameType && { game__type: e.filter.gameType },
3296
- ...e.filter.gameProvider && { game__provider: e.filter.gameProvider }
3291
+ ...e.filter.status && {
3292
+ status: e.filter.status
3293
+ },
3294
+ ...e.filter.serialCode && {
3295
+ serialCode: e.filter.serialCode
3296
+ },
3297
+ ...e.filter.vendorRoundId && {
3298
+ vendorRoundId: e.filter.vendorRoundId
3299
+ },
3300
+ ...e.filter.gameType && {
3301
+ game__type: e.filter.gameType
3302
+ },
3303
+ ...e.filter.gameProvider && {
3304
+ game__provider: e.filter.gameProvider
3305
+ },
3306
+ ...e.filter.dateTimeCreated && {
3307
+ dateTimeCreated: e.filter.dateTimeCreated
3308
+ }
3297
3309
  }
3298
3310
  }
3299
3311
  });