@opexa/portal-sdk 0.0.89 → 0.0.90

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
@@ -52,7 +52,7 @@ const de = o`
52
52
  }
53
53
  }
54
54
  }
55
- `, Re = o`
55
+ `, Ne = o`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const de = o`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Ne = o`
65
+ `, Re = o`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -1455,7 +1455,7 @@ const ue = {
1455
1455
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1456
1456
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1457
1457
  };
1458
- class Rt {
1458
+ class Nt {
1459
1459
  constructor(e) {
1460
1460
  c(this, "url");
1461
1461
  c(this, "platform");
@@ -1475,7 +1475,7 @@ class Rt {
1475
1475
  const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
1476
1476
  console.log(`MobileNumberOTP ${a}`), t.set("Authorization", `MobileNumberOTP ${a}`);
1477
1477
  }
1478
- e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`);
1478
+ e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`), e.token && t.set("Authorization", `Token ${e.token}`);
1479
1479
  try {
1480
1480
  const r = await fetch(`${this.url}/sessions`, {
1481
1481
  method: "POST",
@@ -1624,7 +1624,7 @@ class Rt {
1624
1624
  }
1625
1625
  }
1626
1626
  }
1627
- class Nt {
1627
+ class Rt {
1628
1628
  constructor(e) {
1629
1629
  c(this, "url");
1630
1630
  c(this, "siteId");
@@ -1639,9 +1639,9 @@ class Nt {
1639
1639
  } : e;
1640
1640
  }
1641
1641
  async games(e) {
1642
- var a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, R, S, N, D, I, A, G, W, x;
1642
+ var a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, N, S, R, D, I, A, G, W, x;
1643
1643
  const t = new URLSearchParams();
1644
- e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (p = e == null ? void 0 : e.filter) == null ? void 0 : p.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (l = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.type) != null && l.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (y = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.provider) != null && y.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (R = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (N = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && N.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.tags) != null && G.in && t.set(
1644
+ e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (p = e == null ? void 0 : e.filter) == null ? void 0 : p.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (l = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.type) != null && l.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (k = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && k.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (y = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.provider) != null && y.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (N = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && N.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (R = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && R.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.tags) != null && G.in && t.set(
1645
1645
  "filter[tags][in]",
1646
1646
  e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1647
1647
  ), (x = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && x.notIn && t.set(
@@ -1905,7 +1905,7 @@ class xt {
1905
1905
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
1906
1906
  }
1907
1907
  async wallet() {
1908
- const e = await this.client.request(Re);
1908
+ const e = await this.client.request(Ne);
1909
1909
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
1910
1910
  }
1911
1911
  async deposit(e) {
@@ -1985,7 +1985,7 @@ class xt {
1985
1985
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1986
1986
  }
1987
1987
  async pointsWallet() {
1988
- const e = await this.client.request(Ne);
1988
+ const e = await this.client.request(Re);
1989
1989
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1990
1990
  }
1991
1991
  async redeemPointsToCash(e) {
@@ -2053,7 +2053,7 @@ class xt {
2053
2053
  function we(n) {
2054
2054
  return new Date(n.getTime());
2055
2055
  }
2056
- function B(n, e) {
2056
+ function O(n, e) {
2057
2057
  const t = we(n);
2058
2058
  return t.setMinutes(t.getMinutes() + e), t;
2059
2059
  }
@@ -2070,7 +2070,7 @@ class $t {
2070
2070
  };
2071
2071
  }
2072
2072
  set(e, t) {
2073
- const r = B(/* @__PURE__ */ new Date(), this.config.cacheTime);
2073
+ const r = O(/* @__PURE__ */ new Date(), this.config.cacheTime);
2074
2074
  this.cache[e] = {
2075
2075
  value: t,
2076
2076
  validUntil: r
@@ -2103,7 +2103,7 @@ function Ot(n) {
2103
2103
  function Bt(n) {
2104
2104
  return n.reduce((e, t, r) => (e[r] = t, e), {});
2105
2105
  }
2106
- class O {
2106
+ class B {
2107
2107
  constructor(e, t) {
2108
2108
  c(this, "url");
2109
2109
  c(this, "options");
@@ -2217,7 +2217,7 @@ class Ce {
2217
2217
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
2218
2218
  }
2219
2219
  }
2220
- function me(n, e) {
2220
+ function q(n, e) {
2221
2221
  const t = we(n);
2222
2222
  return t.setDate(t.getDate() + e), t;
2223
2223
  }
@@ -2239,7 +2239,7 @@ function ge(n, e) {
2239
2239
  }
2240
2240
  return async (...m) => await s(m);
2241
2241
  }
2242
- function ce(n, e) {
2242
+ function F(n, e) {
2243
2243
  const t = we(n);
2244
2244
  return t.setMinutes(t.getMinutes() - e), t;
2245
2245
  }
@@ -2299,8 +2299,8 @@ class Lt {
2299
2299
  this.storageKey,
2300
2300
  JSON.stringify({
2301
2301
  ...p.data,
2302
- accessTokenExpiresAt: B(f, 8).getTime(),
2303
- refreshTokenExpiresAt: ce(me(f, 30), 2).getTime()
2302
+ accessTokenExpiresAt: O(f, 8).getTime(),
2303
+ refreshTokenExpiresAt: F(q(f, 30), 2).getTime()
2304
2304
  })
2305
2305
  ), {
2306
2306
  ok: !0,
@@ -2315,8 +2315,26 @@ class Lt {
2315
2315
  this.storageKey,
2316
2316
  JSON.stringify({
2317
2317
  ...s.data,
2318
- accessTokenExpiresAt: B(m, 8).getTime(),
2319
- refreshTokenExpiresAt: ce(me(m, 30), 2).getTime()
2318
+ accessTokenExpiresAt: O(m, 8).getTime(),
2319
+ refreshTokenExpiresAt: F(q(m, 30), 2).getTime()
2320
+ })
2321
+ ), {
2322
+ ok: !0,
2323
+ data: null
2324
+ };
2325
+ }
2326
+ return s;
2327
+ }
2328
+ if (e.type === "TOKEN") {
2329
+ const s = await this.authService.createSession({ token: e.token });
2330
+ if (s.ok) {
2331
+ const m = /* @__PURE__ */ new Date();
2332
+ return window.localStorage.setItem(
2333
+ this.storageKey,
2334
+ JSON.stringify({
2335
+ ...s.data,
2336
+ accessTokenExpiresAt: O(m, 8).getTime(),
2337
+ refreshTokenExpiresAt: F(q(m, 30), 2).getTime()
2320
2338
  })
2321
2339
  ), {
2322
2340
  ok: !0,
@@ -2339,8 +2357,8 @@ class Lt {
2339
2357
  this.storageKey,
2340
2358
  JSON.stringify({
2341
2359
  ...t.data,
2342
- accessTokenExpiresAt: B(r, 8).getTime(),
2343
- refreshTokenExpiresAt: ce(me(r, 30), 2).getTime()
2360
+ accessTokenExpiresAt: O(r, 8).getTime(),
2361
+ refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2344
2362
  })
2345
2363
  ), {
2346
2364
  ok: !0,
@@ -2355,8 +2373,8 @@ class Lt {
2355
2373
  this.storageKey,
2356
2374
  JSON.stringify({
2357
2375
  ...t.data,
2358
- accessTokenExpiresAt: B(r, 8).getTime(),
2359
- refreshTokenExpiresAt: ce(me(r, 30), 2).getTime()
2376
+ accessTokenExpiresAt: O(r, 8).getTime(),
2377
+ refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2360
2378
  })
2361
2379
  ), { ok: !0 };
2362
2380
  } else
@@ -2401,8 +2419,8 @@ class Lt {
2401
2419
  this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2402
2420
  ...t,
2403
2421
  ...m.data,
2404
- accessTokenExpiresAt: B(r, 8).getTime(),
2405
- refreshTokenExpiresAt: ce(me(r, 30), 2).getTime()
2422
+ accessTokenExpiresAt: O(r, 8).getTime(),
2423
+ refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2406
2424
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2407
2425
  }
2408
2426
  return {
@@ -2521,7 +2539,7 @@ class Vt {
2521
2539
  }
2522
2540
  /** @deprecated */
2523
2541
  platform(e) {
2524
- var t, r, a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, R, S, N, D, I, A, G, W, x, E, q, F, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, re, ae, ne, ie, oe, se, ye;
2542
+ var t, r, a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, N, S, R, D, I, A, G, W, x, E, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, re, ae, ne, ie, oe, se, me, ce, ye;
2525
2543
  return {
2526
2544
  timezone: e.timezone,
2527
2545
  currency: e.currency,
@@ -2551,11 +2569,11 @@ class Vt {
2551
2569
  webEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.webEnabled) ?? !1,
2552
2570
  mobileWebEnabled: ((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.mobileWebEnabled) ?? !1,
2553
2571
  minimumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.minimumAmount),
2554
- maximumAmount: i((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
2572
+ maximumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.maximumAmount)
2555
2573
  },
2556
2574
  mayaApp: {
2557
2575
  androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2558
- iosEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
2576
+ iosEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
2559
2577
  webEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
2560
2578
  mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
2561
2579
  minimumAmount: i((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
@@ -2567,37 +2585,37 @@ class Vt {
2567
2585
  androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
2568
2586
  iosEnabled: ((x = e.bankWithdrawalGatewaySettings) == null ? void 0 : x.iosEnabled) ?? !1,
2569
2587
  webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2570
- mobileWebEnabled: ((q = e.bankWithdrawalGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
2571
- minimumAmount: i((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.minimumAmount),
2572
- maximumAmount: i((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.maximumAmount)
2588
+ mobileWebEnabled: ((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.mobileWebEnabled) ?? !1,
2589
+ minimumAmount: i((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.minimumAmount),
2590
+ maximumAmount: i((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.maximumAmount)
2573
2591
  },
2574
2592
  gcash: {
2575
- androidEnabled: ((V = e.gcashWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !1,
2576
- iosEnabled: ((H = e.gcashWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2577
- webEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2578
- mobileWebEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
2579
- minimumAmount: i((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2593
+ androidEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.androidEnabled) ?? !1,
2594
+ iosEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.iosEnabled) ?? !1,
2595
+ webEnabled: ((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.webEnabled) ?? !1,
2596
+ mobileWebEnabled: ((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2597
+ minimumAmount: i((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
2580
2598
  maximumAmount: i(
2581
- (K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount,
2599
+ (J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount,
2582
2600
  1e6
2583
2601
  )
2584
2602
  },
2585
2603
  maya: {
2586
- androidEnabled: ((z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2587
- iosEnabled: ((J = e.mayaWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
2588
- webEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
2589
- mobileWebEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
2590
- minimumAmount: i((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2591
- maximumAmount: i((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount)
2604
+ androidEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2605
+ iosEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2606
+ webEnabled: ((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2607
+ mobileWebEnabled: ((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2608
+ minimumAmount: i((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
2609
+ maximumAmount: i((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount)
2592
2610
  },
2593
2611
  mayaApp: {
2594
- androidEnabled: ((re = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : re.androidEnabled) ?? !1,
2595
- iosEnabled: ((ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ae.iosEnabled) ?? !1,
2596
- webEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2597
- mobileWebEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2598
- minimumAmount: i((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
2612
+ androidEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2613
+ iosEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.iosEnabled) ?? !1,
2614
+ webEnabled: ((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2615
+ mobileWebEnabled: ((se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2616
+ minimumAmount: i((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
2599
2617
  maximumAmount: i(
2600
- (se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount,
2618
+ (ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount,
2601
2619
  1e6
2602
2620
  )
2603
2621
  }
@@ -2621,7 +2639,7 @@ class Vt {
2621
2639
  };
2622
2640
  }
2623
2641
  paymentSettings(e) {
2624
- var t, r, a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, R, S, N, D, I, A, G, W, x, E, q, F, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, re, ae, ne, ie, oe, se;
2642
+ var t, r, a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, N, S, R, D, I, A, G, W, x, E, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, re, ae, ne, ie, oe, se, me, ce;
2625
2643
  return {
2626
2644
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2627
2645
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
@@ -2648,11 +2666,11 @@ class Vt {
2648
2666
  webEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.webEnabled) ?? !1,
2649
2667
  mobileWebEnabled: ((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.mobileWebEnabled) ?? !1,
2650
2668
  minimumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.minimumAmount),
2651
- maximumAmount: i((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
2669
+ maximumAmount: i((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.maximumAmount)
2652
2670
  },
2653
2671
  mayaApp: {
2654
2672
  androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2655
- iosEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
2673
+ iosEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
2656
2674
  webEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
2657
2675
  mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
2658
2676
  minimumAmount: i((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
@@ -2664,34 +2682,34 @@ class Vt {
2664
2682
  androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
2665
2683
  iosEnabled: ((x = e.bankWithdrawalGatewaySettings) == null ? void 0 : x.iosEnabled) ?? !1,
2666
2684
  webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2667
- mobileWebEnabled: ((q = e.bankWithdrawalGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
2668
- minimumAmount: i((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.minimumAmount),
2669
- maximumAmount: i((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.maximumAmount)
2685
+ mobileWebEnabled: ((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.mobileWebEnabled) ?? !1,
2686
+ minimumAmount: i((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.minimumAmount),
2687
+ maximumAmount: i((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.maximumAmount)
2670
2688
  },
2671
2689
  gcash: {
2672
- androidEnabled: ((V = e.gcashWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !1,
2673
- iosEnabled: ((H = e.gcashWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2674
- webEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2675
- mobileWebEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
2676
- minimumAmount: i((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2677
- maximumAmount: i((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount, 1e6)
2690
+ androidEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.androidEnabled) ?? !1,
2691
+ iosEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.iosEnabled) ?? !1,
2692
+ webEnabled: ((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.webEnabled) ?? !1,
2693
+ mobileWebEnabled: ((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2694
+ minimumAmount: i((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
2695
+ maximumAmount: i((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount, 1e6)
2678
2696
  },
2679
2697
  maya: {
2680
- androidEnabled: ((z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2681
- iosEnabled: ((J = e.mayaWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
2682
- webEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
2683
- mobileWebEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
2684
- minimumAmount: i((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2685
- maximumAmount: i((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount)
2698
+ androidEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2699
+ iosEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2700
+ webEnabled: ((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2701
+ mobileWebEnabled: ((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2702
+ minimumAmount: i((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
2703
+ maximumAmount: i((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount)
2686
2704
  },
2687
2705
  mayaApp: {
2688
- androidEnabled: ((re = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : re.androidEnabled) ?? !1,
2689
- iosEnabled: ((ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ae.iosEnabled) ?? !1,
2690
- webEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2691
- mobileWebEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2692
- minimumAmount: i((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
2706
+ androidEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2707
+ iosEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.iosEnabled) ?? !1,
2708
+ webEnabled: ((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2709
+ mobileWebEnabled: ((se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2710
+ minimumAmount: i((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
2693
2711
  maximumAmount: i(
2694
- (se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount,
2712
+ (ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount,
2695
2713
  1e6
2696
2714
  )
2697
2715
  }
@@ -3056,7 +3074,7 @@ class jt {
3056
3074
  }), this.logger = new Ce({
3057
3075
  enabled: m ?? !1
3058
3076
  });
3059
- const p = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", h = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", l = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", k = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = "https://portal-api.opexacms.io/v1", v = new Nt({
3077
+ const p = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", h = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", l = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", k = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = "https://portal-api.opexacms.io/v1", v = new Rt({
3060
3078
  url: T,
3061
3079
  site: t,
3062
3080
  platform: r
@@ -3068,7 +3086,7 @@ class jt {
3068
3086
  "Platform-Code": a
3069
3087
  }
3070
3088
  }
3071
- }, M = new It(new O(_, y)), R = new Dt(new O(k, y)), S = new xt(new O(f, y)), N = new Mt(new O(l, y)), D = new Pt(new O(h, y)), I = new Gt(new O(C, y)), A = new Rt({
3089
+ }, M = new It(new B(_, y)), N = new Dt(new B(k, y)), S = new xt(new B(f, y)), R = new Mt(new B(l, y)), D = new Pt(new B(h, y)), I = new Gt(new B(C, y)), A = new Nt({
3072
3090
  url: p,
3073
3091
  platform: a
3074
3092
  }), G = new Lt({
@@ -3076,7 +3094,7 @@ class jt {
3076
3094
  authService: A,
3077
3095
  walletService: S
3078
3096
  });
3079
- this.authService = A, this.gameService = M, this.fileService = R, this.walletService = S, this.accountService = N, this.reportService = D, this.portalService = I, this.sessionManager = G, this.cmsPortalService = v, this.cache = new $t();
3097
+ this.authService = A, this.gameService = M, this.fileService = N, this.walletService = S, this.accountService = R, this.reportService = D, this.portalService = I, this.sessionManager = G, this.cmsPortalService = v, this.cache = new $t();
3080
3098
  }
3081
3099
  get authMiddleware() {
3082
3100
  return async (e) => {
@@ -3114,6 +3132,13 @@ class jt {
3114
3132
  }
3115
3133
  } : t;
3116
3134
  }
3135
+ case "TOKEN": {
3136
+ const t = await this.sessionManager.create({
3137
+ type: "TOKEN",
3138
+ token: e.token
3139
+ });
3140
+ return t.ok ? { ok: !0 } : t;
3141
+ }
3117
3142
  case "MOBILE_NUMBER": {
3118
3143
  const t = await this.sessionManager.create({
3119
3144
  type: "MOBILE_NUMBER",