@opexa/portal-sdk 0.0.37 → 0.0.38

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 Ce = Object.defineProperty;
2
2
  var Te = (n, e, t) => e in n ? Ce(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var d = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
3
+ var m = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as b } from "@opexa/object-id";
5
5
  import { ObjectId as Ot } from "@opexa/object-id";
6
6
  const S = {
@@ -837,7 +837,7 @@ const G = o`
837
837
  }
838
838
  }
839
839
  }
840
- `, dt = o`
840
+ `, mt = o`
841
841
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
842
842
  resetPassword(input: $input, verificationCode: $verificationCode) {
843
843
  ... on AccountNotFoundError {
@@ -848,7 +848,7 @@ const G = o`
848
848
  }
849
849
  }
850
850
  }
851
- `, mt = o`
851
+ `, dt = o`
852
852
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
853
853
  deleteMemberAccount(input: $input)
854
854
  }
@@ -992,6 +992,8 @@ const G = o`
992
992
  ... on MemberActivity {
993
993
  id
994
994
  type
995
+ domain
996
+ amount
995
997
  details
996
998
  dateTimeCreated
997
999
  }
@@ -1006,7 +1008,7 @@ const G = o`
1006
1008
  }
1007
1009
  }
1008
1010
  `;
1009
- function m(n) {
1011
+ function d(n) {
1010
1012
  return {
1011
1013
  name: n,
1012
1014
  message: {
@@ -1062,7 +1064,7 @@ function m(n) {
1062
1064
  }
1063
1065
  class St {
1064
1066
  constructor(e) {
1065
- d(this, "client");
1067
+ m(this, "client");
1066
1068
  this.client = e;
1067
1069
  }
1068
1070
  /** aka `Query.self` */
@@ -1077,7 +1079,7 @@ class St {
1077
1079
  const t = await this.client.request(it, e);
1078
1080
  return t.ok ? t.data.registerMemberAccount ? {
1079
1081
  ok: !1,
1080
- error: m(t.data.registerMemberAccount.__typename)
1082
+ error: d(t.data.registerMemberAccount.__typename)
1081
1083
  } : {
1082
1084
  ok: !0
1083
1085
  } : t;
@@ -1086,13 +1088,13 @@ class St {
1086
1088
  const t = await this.client.request(ct, e);
1087
1089
  return t.ok ? t.data.updateMemberAccount ? {
1088
1090
  ok: !1,
1089
- error: m(t.data.updateMemberAccount.__typename)
1091
+ error: d(t.data.updateMemberAccount.__typename)
1090
1092
  } : {
1091
1093
  ok: !0
1092
1094
  } : t;
1093
1095
  }
1094
1096
  async deleteMemberAccount(e) {
1095
- const t = await this.client.request(mt, e);
1097
+ const t = await this.client.request(dt, e);
1096
1098
  return t.ok ? t.data.deleteMemberAccount ? {
1097
1099
  ok: !0
1098
1100
  } : {
@@ -1105,12 +1107,12 @@ class St {
1105
1107
  }
1106
1108
  async resetPassword(e) {
1107
1109
  const t = await this.client.request(
1108
- dt,
1110
+ mt,
1109
1111
  e
1110
1112
  );
1111
1113
  return t.ok ? t.data.resetPassword ? {
1112
1114
  ok: !1,
1113
- error: m(t.data.resetPassword.__typename)
1115
+ error: d(t.data.resetPassword.__typename)
1114
1116
  } : {
1115
1117
  ok: !0
1116
1118
  } : t;
@@ -1126,7 +1128,7 @@ class St {
1126
1128
  const t = await this.client.request(ht, e);
1127
1129
  return t.ok ? t.data.sendVerificationCode ? {
1128
1130
  ok: !1,
1129
- error: m(t.data.sendVerificationCode.__typename)
1131
+ error: d(t.data.sendVerificationCode.__typename)
1130
1132
  } : {
1131
1133
  ok: !0
1132
1134
  } : t;
@@ -1135,7 +1137,7 @@ class St {
1135
1137
  const t = await this.client.request(ut, e);
1136
1138
  return t.ok ? t.data.verifyMobileNumber ? {
1137
1139
  ok: !1,
1138
- error: m(t.data.verifyMobileNumber.__typename)
1140
+ error: d(t.data.verifyMobileNumber.__typename)
1139
1141
  } : {
1140
1142
  ok: !0
1141
1143
  } : t;
@@ -1144,7 +1146,7 @@ class St {
1144
1146
  const t = await this.client.request(lt, e);
1145
1147
  return t.ok ? t.data.createMemberVerification ? {
1146
1148
  ok: !1,
1147
- error: m(t.data.createMemberVerification.__typename)
1149
+ error: d(t.data.createMemberVerification.__typename)
1148
1150
  } : {
1149
1151
  ok: !0
1150
1152
  } : t;
@@ -1153,7 +1155,7 @@ class St {
1153
1155
  const t = await this.client.request(pt, e);
1154
1156
  return t.ok ? t.data.updateMemberVerification ? {
1155
1157
  ok: !1,
1156
- error: m(t.data.updateMemberVerification.__typename)
1158
+ error: d(t.data.updateMemberVerification.__typename)
1157
1159
  } : {
1158
1160
  ok: !0
1159
1161
  } : t;
@@ -1179,7 +1181,7 @@ class St {
1179
1181
  const t = await this.client.request(st, e);
1180
1182
  return t.ok ? t.data.registerMayaMemberAccount ? {
1181
1183
  ok: !1,
1182
- error: m(t.data.registerMayaMemberAccount.__typename)
1184
+ error: d(t.data.registerMayaMemberAccount.__typename)
1183
1185
  } : {
1184
1186
  ok: !0
1185
1187
  } : t;
@@ -1203,8 +1205,8 @@ const x = {
1203
1205
  };
1204
1206
  class Et {
1205
1207
  constructor(e) {
1206
- d(this, "url");
1207
- d(this, "platform");
1208
+ m(this, "url");
1209
+ m(this, "platform");
1208
1210
  this.url = e.url, this.platform = e.platform;
1209
1211
  }
1210
1212
  async createSession(e) {
@@ -1232,7 +1234,7 @@ class Et {
1232
1234
  data: r
1233
1235
  } : r.code === "ACCOUNT_BLACKLISTED" ? {
1234
1236
  ok: !1,
1235
- error: m("AccountBlacklisted")
1237
+ error: d("AccountBlacklisted")
1236
1238
  } : {
1237
1239
  ok: !1,
1238
1240
  error: h(a.status)
@@ -1265,7 +1267,7 @@ class Et {
1265
1267
  data: r
1266
1268
  } : a.status === 401 || a.status === 403 ? {
1267
1269
  ok: !1,
1268
- error: m("InvalidTokenOrSecretAnswer")
1270
+ error: d("InvalidTokenOrSecretAnswer")
1269
1271
  } : {
1270
1272
  ok: !1,
1271
1273
  error: h(a.status)
@@ -1295,10 +1297,10 @@ class Et {
1295
1297
  data: a
1296
1298
  } : a.code === "ACCOUNT_BLACKLISTED" ? {
1297
1299
  ok: !1,
1298
- error: m("AccountBlacklisted")
1300
+ error: d("AccountBlacklisted")
1299
1301
  } : t.status === 403 || t.status === 401 ? {
1300
1302
  ok: !1,
1301
- error: m("InvalidToken")
1303
+ error: d("InvalidToken")
1302
1304
  } : {
1303
1305
  ok: !1,
1304
1306
  error: h(t.status)
@@ -1344,7 +1346,7 @@ class Et {
1344
1346
  }
1345
1347
  class At {
1346
1348
  constructor(e) {
1347
- d(this, "client");
1349
+ m(this, "client");
1348
1350
  this.client = e;
1349
1351
  }
1350
1352
  async file(e) {
@@ -1358,7 +1360,7 @@ class At {
1358
1360
  const t = await this.client.upload(Me, e);
1359
1361
  return t.ok ? t.data.uploadPrivateImageFile ? {
1360
1362
  ok: !1,
1361
- error: m(t.data.uploadPrivateImageFile.__typename)
1363
+ error: d(t.data.uploadPrivateImageFile.__typename)
1362
1364
  } : {
1363
1365
  ok: !0
1364
1366
  } : t;
@@ -1366,7 +1368,7 @@ class At {
1366
1368
  }
1367
1369
  class kt {
1368
1370
  constructor(e) {
1369
- d(this, "client");
1371
+ m(this, "client");
1370
1372
  this.client = e;
1371
1373
  }
1372
1374
  async betRecords(e) {
@@ -1416,7 +1418,7 @@ class kt {
1416
1418
  }
1417
1419
  class _t {
1418
1420
  constructor(e) {
1419
- d(this, "url");
1421
+ m(this, "url");
1420
1422
  this.url = e.url;
1421
1423
  }
1422
1424
  gameThumbnails(e) {
@@ -1428,7 +1430,7 @@ class _t {
1428
1430
  }
1429
1431
  class Ae {
1430
1432
  constructor(e) {
1431
- d(this, "client");
1433
+ m(this, "client");
1432
1434
  this.client = e;
1433
1435
  }
1434
1436
  async promos() {
@@ -1454,7 +1456,7 @@ class Ae {
1454
1456
  const t = await this.client.request(at, e);
1455
1457
  return t.ok ? t.data.claimCashbackBonus ? {
1456
1458
  ok: !1,
1457
- error: m(t.data.claimCashbackBonus.__typename)
1459
+ error: d(t.data.claimCashbackBonus.__typename)
1458
1460
  } : {
1459
1461
  ok: !0
1460
1462
  } : {
@@ -1481,7 +1483,7 @@ class Ae {
1481
1483
  const t = await this.client.request(Le, e);
1482
1484
  return t.ok ? t.data.createGCashDeposit ? {
1483
1485
  ok: !1,
1484
- error: m(t.data.createGCashDeposit.__typename)
1486
+ error: d(t.data.createGCashDeposit.__typename)
1485
1487
  } : {
1486
1488
  ok: !0
1487
1489
  } : t;
@@ -1490,7 +1492,7 @@ class Ae {
1490
1492
  const t = await this.client.request(Ve, e);
1491
1493
  return t.ok ? t.data.createMayaDeposit ? {
1492
1494
  ok: !1,
1493
- error: m(t.data.createMayaDeposit.__typename)
1495
+ error: d(t.data.createMayaDeposit.__typename)
1494
1496
  } : {
1495
1497
  ok: !0
1496
1498
  } : t;
@@ -1499,7 +1501,7 @@ class Ae {
1499
1501
  const t = await this.client.request(Ye, e);
1500
1502
  return t.ok ? t.data.createMayaAppDeposit ? {
1501
1503
  ok: !1,
1502
- error: m(t.data.createMayaAppDeposit.__typename)
1504
+ error: d(t.data.createMayaAppDeposit.__typename)
1503
1505
  } : {
1504
1506
  ok: !0
1505
1507
  } : t;
@@ -1508,7 +1510,7 @@ class Ae {
1508
1510
  const t = await this.client.request(We, e);
1509
1511
  return t.ok ? t.data.createGCashWithdrawal ? {
1510
1512
  ok: !1,
1511
- error: m(t.data.createGCashWithdrawal.__typename)
1513
+ error: d(t.data.createGCashWithdrawal.__typename)
1512
1514
  } : {
1513
1515
  ok: !0
1514
1516
  } : t;
@@ -1517,7 +1519,7 @@ class Ae {
1517
1519
  const t = await this.client.request(Be, e);
1518
1520
  return t.ok ? t.data.createMayaWithdrawal ? {
1519
1521
  ok: !1,
1520
- error: m(t.data.createMayaWithdrawal.__typename)
1522
+ error: d(t.data.createMayaWithdrawal.__typename)
1521
1523
  } : {
1522
1524
  ok: !0
1523
1525
  } : t;
@@ -1526,7 +1528,7 @@ class Ae {
1526
1528
  const t = await this.client.request(Oe, e);
1527
1529
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1528
1530
  ok: !1,
1529
- error: m(t.data.createMayaAppWithdrawal.__typename)
1531
+ error: d(t.data.createMayaAppWithdrawal.__typename)
1530
1532
  } : {
1531
1533
  ok: !0
1532
1534
  } : t;
@@ -1535,7 +1537,7 @@ class Ae {
1535
1537
  const t = await this.client.request(Ue, e);
1536
1538
  return t.ok ? t.data.createBankWithdrawal ? {
1537
1539
  ok: !1,
1538
- error: m(t.data.createBankWithdrawal.__typename)
1540
+ error: d(t.data.createBankWithdrawal.__typename)
1539
1541
  } : {
1540
1542
  ok: !0
1541
1543
  } : t;
@@ -1554,7 +1556,7 @@ class Ae {
1554
1556
  const t = await this.client.request(De, e);
1555
1557
  return t.ok ? t.data.pointsToCashConversion ? {
1556
1558
  ok: !1,
1557
- error: m(t.data.pointsToCashConversion.__typename)
1559
+ error: d(t.data.pointsToCashConversion.__typename)
1558
1560
  } : {
1559
1561
  ok: !0
1560
1562
  } : t;
@@ -1590,7 +1592,7 @@ class Ae {
1590
1592
  const t = await this.client.request(Se, e);
1591
1593
  return t.ok ? t.data.createGameSession ? {
1592
1594
  ok: !1,
1593
- error: m(t.data.createGameSession.__typename)
1595
+ error: d(t.data.createGameSession.__typename)
1594
1596
  } : {
1595
1597
  ok: !0
1596
1598
  } : t;
@@ -1627,9 +1629,9 @@ class Ae {
1627
1629
  }
1628
1630
  class Ct {
1629
1631
  constructor(e) {
1630
- d(this, "url");
1631
- d(this, "siteId");
1632
- d(this, "platformId");
1632
+ m(this, "url");
1633
+ m(this, "siteId");
1634
+ m(this, "platformId");
1633
1635
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1634
1636
  }
1635
1637
  async self() {
@@ -1699,7 +1701,7 @@ class Ct {
1699
1701
  }
1700
1702
  class Tt {
1701
1703
  constructor(e) {
1702
- d(this, "client");
1704
+ m(this, "client");
1703
1705
  this.client = e;
1704
1706
  }
1705
1707
  /** @deprecated */
@@ -1726,7 +1728,7 @@ class Tt {
1726
1728
  const t = await this.client.request(Se, e);
1727
1729
  return t.ok ? t.data.createGameSession ? {
1728
1730
  ok: !1,
1729
- error: m(t.data.createGameSession.__typename)
1731
+ error: d(t.data.createGameSession.__typename)
1730
1732
  } : {
1731
1733
  ok: !0
1732
1734
  } : t;
@@ -1735,7 +1737,7 @@ class Tt {
1735
1737
  const t = await this.client.request(Ge, e);
1736
1738
  return t.ok ? t.data.endGameSession ? {
1737
1739
  ok: !1,
1738
- error: m(t.data.endGameSession.__typename)
1740
+ error: d(t.data.endGameSession.__typename)
1739
1741
  } : {
1740
1742
  ok: !0
1741
1743
  } : t;
@@ -1743,7 +1745,7 @@ class Tt {
1743
1745
  }
1744
1746
  class vt {
1745
1747
  constructor(e) {
1746
- d(this, "client");
1748
+ m(this, "client");
1747
1749
  this.client = e;
1748
1750
  }
1749
1751
  async latestBetRecords() {
@@ -1778,9 +1780,9 @@ function It(n) {
1778
1780
  }
1779
1781
  class E {
1780
1782
  constructor(e, t) {
1781
- d(this, "url");
1782
- d(this, "options");
1783
- d(this, "middlewares");
1783
+ m(this, "url");
1784
+ m(this, "options");
1785
+ m(this, "middlewares");
1784
1786
  var r;
1785
1787
  const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
1786
1788
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -1858,13 +1860,13 @@ class E {
1858
1860
  }), r;
1859
1861
  }
1860
1862
  }
1861
- async function y(n) {
1863
+ async function g(n) {
1862
1864
  const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
1863
1865
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
1864
1866
  }
1865
1867
  class ke {
1866
1868
  constructor(e) {
1867
- d(this, "enabled");
1869
+ m(this, "enabled");
1868
1870
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
1869
1871
  }
1870
1872
  info(e) {
@@ -1918,11 +1920,11 @@ function P(n, e) {
1918
1920
  }
1919
1921
  class Dt {
1920
1922
  constructor(e) {
1921
- d(this, "logger");
1922
- d(this, "storageKey", "session");
1923
- d(this, "authService");
1924
- d(this, "walletService");
1925
- d(this, "_refreshing", !1);
1923
+ m(this, "logger");
1924
+ m(this, "storageKey", "session");
1925
+ m(this, "authService");
1926
+ m(this, "walletService");
1927
+ m(this, "_refreshing", !1);
1926
1928
  this.authService = new Et({
1927
1929
  url: e.authUrl,
1928
1930
  platform: e.platform
@@ -2124,17 +2126,17 @@ class Dt {
2124
2126
  return typeof window > "u";
2125
2127
  }
2126
2128
  }
2127
- function g(n) {
2129
+ function y(n) {
2128
2130
  const e = {};
2129
2131
  for (const t in n) {
2130
2132
  const a = n[t];
2131
2133
  if (a !== null && a !== void 0) {
2132
2134
  if ($(a)) {
2133
- e[t] = g(a);
2135
+ e[t] = y(a);
2134
2136
  continue;
2135
2137
  }
2136
2138
  if (Array.isArray(a)) {
2137
- e[t] = a.map((r) => $(r) ? g(r) : r);
2139
+ e[t] = a.map((r) => $(r) ? y(r) : r);
2138
2140
  continue;
2139
2141
  }
2140
2142
  e[t] = a;
@@ -2154,7 +2156,7 @@ function i(n, e) {
2154
2156
  }
2155
2157
  class Rt {
2156
2158
  constructor(e) {
2157
- d(this, "staticService");
2159
+ m(this, "staticService");
2158
2160
  const t = (e == null ? void 0 : e.environment) === "development";
2159
2161
  this.staticService = new _t({
2160
2162
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
@@ -2195,10 +2197,10 @@ class Rt {
2195
2197
  name: e.name,
2196
2198
  logo: e.logo ?? void 0
2197
2199
  };
2198
- return g(t);
2200
+ return y(t);
2199
2201
  }
2200
2202
  platform(e) {
2201
- var t, a, r, s, c, p, u, f, w, l, A, k, _, C, T, v, M, N, I, O, U, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, ce, de, me, ue, le, pe, fe;
2203
+ var t, a, r, s, c, p, u, f, w, l, A, k, _, C, T, v, M, N, I, O, U, q, F, L, V, Y, H, j, Q, K, z, J, X, Z, ee, te, ae, re, ne, oe, ie, se, ce, me, de, ue, le, pe, fe;
2202
2204
  return {
2203
2205
  paymentSettings: {
2204
2206
  minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
@@ -2267,8 +2269,8 @@ class Rt {
2267
2269
  },
2268
2270
  mayaApp: {
2269
2271
  androidEnabled: ((ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.androidEnabled) ?? !1,
2270
- iosEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.iosEnabled) ?? !1,
2271
- webEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.webEnabled) ?? !1,
2272
+ iosEnabled: ((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.iosEnabled) ?? !1,
2273
+ webEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2272
2274
  mobileWebEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.mobileWebEnabled) ?? !1,
2273
2275
  minimumAmount: i((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.minimumAmount),
2274
2276
  maximumAmount: i(
@@ -2304,7 +2306,7 @@ class Rt {
2304
2306
  dateTimeCreated: new Date(e.dateTimeCreated),
2305
2307
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2306
2308
  };
2307
- return g(t);
2309
+ return y(t);
2308
2310
  }
2309
2311
  wallet(e) {
2310
2312
  return {
@@ -2367,7 +2369,7 @@ class Rt {
2367
2369
  dateTimeCreated: new Date(e.dateTimeCreated),
2368
2370
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2369
2371
  };
2370
- return g(t);
2372
+ return y(t);
2371
2373
  }
2372
2374
  deposit(e) {
2373
2375
  const t = {
@@ -2376,7 +2378,7 @@ class Rt {
2376
2378
  status: e.status,
2377
2379
  checkoutUrl: e.checkoutUrl ?? void 0
2378
2380
  };
2379
- return g(t);
2381
+ return y(t);
2380
2382
  }
2381
2383
  depositRecord(e) {
2382
2384
  const t = {
@@ -2391,7 +2393,7 @@ class Rt {
2391
2393
  dateTimeCreated: new Date(e.dateTimeCreated),
2392
2394
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2393
2395
  };
2394
- return g(t);
2396
+ return y(t);
2395
2397
  }
2396
2398
  betRecord(e) {
2397
2399
  var a;
@@ -2417,7 +2419,7 @@ class Rt {
2417
2419
  odds: ((a = e.metadata) == null ? void 0 : a.odds) ?? void 0
2418
2420
  }
2419
2421
  };
2420
- return g(t);
2422
+ return y(t);
2421
2423
  }
2422
2424
  latestBetRecord(e) {
2423
2425
  return {
@@ -2441,7 +2443,7 @@ class Rt {
2441
2443
  referenceNumber: e.referenceNumber,
2442
2444
  dateTimeCreated: new Date(e.dateTimeCreated)
2443
2445
  };
2444
- return g(t);
2446
+ return y(t);
2445
2447
  }
2446
2448
  game(e) {
2447
2449
  return {
@@ -2473,7 +2475,7 @@ class Rt {
2473
2475
  dateTimeCreated: new Date(e.dateTimeCreated),
2474
2476
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2475
2477
  };
2476
- return g(t);
2478
+ return y(t);
2477
2479
  }
2478
2480
  promo(e) {
2479
2481
  return {
@@ -2536,7 +2538,7 @@ class Rt {
2536
2538
  dateTimeCreated: new Date(e.dateTimeCreated),
2537
2539
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2538
2540
  };
2539
- return g(t);
2541
+ return y(t);
2540
2542
  }
2541
2543
  cashbackBonus(e) {
2542
2544
  return {
@@ -2554,7 +2556,7 @@ class Rt {
2554
2556
  status: e.status,
2555
2557
  dateTimeCreated: new Date(e.dateTimeCreated)
2556
2558
  };
2557
- return g(t);
2559
+ return y(t);
2558
2560
  }
2559
2561
  pointsWallet(e) {
2560
2562
  return {
@@ -2574,26 +2576,29 @@ class Rt {
2574
2576
  };
2575
2577
  }
2576
2578
  activityRecord(e) {
2577
- return {
2579
+ const t = {
2578
2580
  id: e.id,
2579
2581
  type: e.type,
2582
+ amount: e.amount ? i(e.amount, 0) : void 0,
2583
+ domain: e.domain ?? void 0,
2580
2584
  details: e.details,
2581
2585
  dateTimeCreated: new Date(e.dateTimeCreated)
2582
2586
  };
2587
+ return y(t);
2583
2588
  }
2584
2589
  }
2585
2590
  class $t {
2586
2591
  constructor(e) {
2587
- d(this, "gameService");
2588
- d(this, "fileService");
2589
- d(this, "walletService");
2590
- d(this, "reportService");
2591
- d(this, "portalService");
2592
- d(this, "accountService");
2593
- d(this, "cmsPortalService");
2594
- d(this, "sessionManager");
2595
- d(this, "transformer");
2596
- d(this, "logger");
2592
+ m(this, "gameService");
2593
+ m(this, "fileService");
2594
+ m(this, "walletService");
2595
+ m(this, "reportService");
2596
+ m(this, "portalService");
2597
+ m(this, "accountService");
2598
+ m(this, "cmsPortalService");
2599
+ m(this, "sessionManager");
2600
+ m(this, "transformer");
2601
+ m(this, "logger");
2597
2602
  const t = e.environment === "development";
2598
2603
  this.sessionManager = new Dt({
2599
2604
  authUrl: t ? "https://auth.development.opexa.io" : "https://auth.opexa.io",
@@ -2660,7 +2665,7 @@ class $t {
2660
2665
  case "NAME_AND_PASSWORD": {
2661
2666
  const t = await this.sessionManager.create({
2662
2667
  ...e,
2663
- password: await y(e.password)
2668
+ password: await g(e.password)
2664
2669
  });
2665
2670
  return t.ok ? t.data ? {
2666
2671
  ok: !0,
@@ -2720,7 +2725,7 @@ class $t {
2720
2725
  return await this.sessionManager.createFromAuthenticator({
2721
2726
  type: "SECURITY_QUESTION",
2722
2727
  token: e.token,
2723
- secretAnswer: await y(e.secretAnswer)
2728
+ secretAnswer: await g(e.secretAnswer)
2724
2729
  });
2725
2730
  default:
2726
2731
  return {
@@ -2851,7 +2856,7 @@ class $t {
2851
2856
  id: t,
2852
2857
  name: e.name,
2853
2858
  birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
2854
- password: await y(e.password),
2859
+ password: await g(e.password),
2855
2860
  mobileNumber: this.addAreaCode(e.mobileNumber),
2856
2861
  domain: e.domain,
2857
2862
  btag: e.referralCode
@@ -2865,7 +2870,7 @@ class $t {
2865
2870
  return await this.accountService.registerMayaMemberAccount({
2866
2871
  input: {
2867
2872
  name: e.name,
2868
- password: await y(e.password),
2873
+ password: await g(e.password),
2869
2874
  domain: e.domain
2870
2875
  }
2871
2876
  });
@@ -2891,12 +2896,12 @@ class $t {
2891
2896
  id: e,
2892
2897
  data: {
2893
2898
  ...t,
2894
- password: t.password ? await y(t.password) : void 0,
2895
- transactionPassword: t.transactionPassword ? await y(t.transactionPassword) : void 0,
2899
+ password: t.password ? await g(t.password) : void 0,
2900
+ transactionPassword: t.transactionPassword ? await g(t.transactionPassword) : void 0,
2896
2901
  ...t.mobileNumber && {
2897
2902
  mobileNumber: this.addAreaCode(t.mobileNumber)
2898
2903
  },
2899
- secretAnswer: t.secretAnswer ? await y(t.secretAnswer) : void 0
2904
+ secretAnswer: t.secretAnswer ? await g(t.secretAnswer) : void 0
2900
2905
  }
2901
2906
  }
2902
2907
  });
@@ -2974,7 +2979,7 @@ class $t {
2974
2979
  return await this.accountService.resetPassword({
2975
2980
  input: {
2976
2981
  mobileNumber: this.addAreaCode(e.mobileNumber),
2977
- newPassword: await y(e.newPassword)
2982
+ newPassword: await g(e.newPassword)
2978
2983
  },
2979
2984
  verificationCode: e.verificationCode
2980
2985
  });
@@ -3067,7 +3072,7 @@ class $t {
3067
3072
  input: {
3068
3073
  id: t,
3069
3074
  amount: e.amount.toString(),
3070
- transactionPassword: await y(e.transactionPassword)
3075
+ transactionPassword: await g(e.transactionPassword)
3071
3076
  }
3072
3077
  });
3073
3078
  if (!a.ok) return a;
@@ -3077,7 +3082,7 @@ class $t {
3077
3082
  input: {
3078
3083
  id: t,
3079
3084
  amount: e.amount.toString(),
3080
- transactionPassword: await y(e.transactionPassword),
3085
+ transactionPassword: await g(e.transactionPassword),
3081
3086
  recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
3082
3087
  }
3083
3088
  });
@@ -3088,7 +3093,7 @@ class $t {
3088
3093
  input: {
3089
3094
  id: t,
3090
3095
  amount: e.amount.toString(),
3091
- transactionPassword: await y(e.transactionPassword),
3096
+ transactionPassword: await g(e.transactionPassword),
3092
3097
  recipientMobileNumber: this.addAreaCode(e.recipientMobileNumber)
3093
3098
  }
3094
3099
  });
@@ -3099,7 +3104,7 @@ class $t {
3099
3104
  input: {
3100
3105
  id: t,
3101
3106
  amount: e.amount.toString(),
3102
- transactionPassword: await y(e.transactionPassword)
3107
+ transactionPassword: await g(e.transactionPassword)
3103
3108
  }
3104
3109
  });
3105
3110
  if (!a.ok) return a;