@opexa/portal-sdk 0.0.80 → 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.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -122
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/sdk.d.ts +2 -2
- package/dist/sdk/types.d.ts +6 -2
- package/dist/services/queries.d.ts +1 -1
- package/dist/services/types.d.ts +5 -5
- package/dist/services/utils.d.ts +2 -2
- package/dist/services/wallet.service.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var _e = Object.defineProperty;
|
|
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 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
|
-
const
|
|
6
|
+
const _ = {
|
|
7
7
|
Account: 8,
|
|
8
8
|
Deposit: 9,
|
|
9
9
|
Withdrawal: 14,
|
|
@@ -52,7 +52,7 @@ const L = o`
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`, Re = 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
|
-
`,
|
|
65
|
+
`, Ne = o`
|
|
66
66
|
query PointsWallet {
|
|
67
67
|
pointsWallet {
|
|
68
68
|
id
|
|
@@ -72,8 +72,8 @@ const L = o`
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
`, Ie = o`
|
|
75
|
-
mutation
|
|
76
|
-
|
|
75
|
+
mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
|
|
76
|
+
redeemPointsToCash(input: $input) {
|
|
77
77
|
... on InsufficientPointsError {
|
|
78
78
|
__typename
|
|
79
79
|
}
|
|
@@ -326,7 +326,7 @@ const L = o`
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
`,
|
|
329
|
+
`, We = o`
|
|
330
330
|
mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
|
|
331
331
|
createBankWithdrawal(input: $input) {
|
|
332
332
|
... on MobileNumberNotVerifiedError {
|
|
@@ -349,7 +349,7 @@ const L = o`
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
`,
|
|
352
|
+
`, Oe = o`
|
|
353
353
|
query RemainingDailyWithdrawalsCount {
|
|
354
354
|
remainingDailyWithdrawalsCount
|
|
355
355
|
}
|
|
@@ -902,11 +902,11 @@ const tt = o`
|
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
`,
|
|
905
|
+
`, dt = o`
|
|
906
906
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
907
907
|
deleteMemberAccount(input: $input)
|
|
908
908
|
}
|
|
909
|
-
`,
|
|
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
|
|
1152
|
+
function m(n) {
|
|
1153
1153
|
return {
|
|
1154
1154
|
name: n,
|
|
1155
1155
|
message: {
|
|
@@ -1204,9 +1204,9 @@ function d(n) {
|
|
|
1204
1204
|
}[n]
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
|
-
class
|
|
1207
|
+
class _t {
|
|
1208
1208
|
constructor(e) {
|
|
1209
|
-
|
|
1209
|
+
d(this, "client");
|
|
1210
1210
|
this.client = e;
|
|
1211
1211
|
}
|
|
1212
1212
|
/** aka `Query.self` */
|
|
@@ -1221,7 +1221,7 @@ class Tt {
|
|
|
1221
1221
|
const t = await this.client.request(at, e);
|
|
1222
1222
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1223
1223
|
ok: !1,
|
|
1224
|
-
error:
|
|
1224
|
+
error: m(t.data.registerMemberAccount.__typename)
|
|
1225
1225
|
} : {
|
|
1226
1226
|
ok: !0
|
|
1227
1227
|
} : t;
|
|
@@ -1230,7 +1230,7 @@ class Tt {
|
|
|
1230
1230
|
const t = await this.client.request(nt, e);
|
|
1231
1231
|
return t.ok ? t.data.registerMemberAccountViaMobile ? {
|
|
1232
1232
|
ok: !1,
|
|
1233
|
-
error:
|
|
1233
|
+
error: m(t.data.registerMemberAccountViaMobile.__typename)
|
|
1234
1234
|
} : {
|
|
1235
1235
|
ok: !0
|
|
1236
1236
|
} : t;
|
|
@@ -1239,7 +1239,7 @@ class Tt {
|
|
|
1239
1239
|
const t = await this.client.request(ot, e);
|
|
1240
1240
|
return t.ok ? t.data.registerMemberAccount ? {
|
|
1241
1241
|
ok: !1,
|
|
1242
|
-
error:
|
|
1242
|
+
error: m(t.data.registerMemberAccount.__typename)
|
|
1243
1243
|
} : {
|
|
1244
1244
|
ok: !0
|
|
1245
1245
|
} : t;
|
|
@@ -1248,13 +1248,13 @@ class Tt {
|
|
|
1248
1248
|
const t = await this.client.request(st, e);
|
|
1249
1249
|
return t.ok ? t.data.updateMemberAccount ? {
|
|
1250
1250
|
ok: !1,
|
|
1251
|
-
error:
|
|
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(
|
|
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 Tt {
|
|
|
1272
1272
|
);
|
|
1273
1273
|
return t.ok ? t.data.resetPassword ? {
|
|
1274
1274
|
ok: !1,
|
|
1275
|
-
error:
|
|
1275
|
+
error: m(t.data.resetPassword.__typename)
|
|
1276
1276
|
} : {
|
|
1277
1277
|
ok: !0
|
|
1278
1278
|
} : t;
|
|
@@ -1288,16 +1288,16 @@ class Tt {
|
|
|
1288
1288
|
const t = await this.client.request(ft, e);
|
|
1289
1289
|
return t.ok ? t.data.sendVerificationCode ? {
|
|
1290
1290
|
ok: !1,
|
|
1291
|
-
error:
|
|
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(
|
|
1297
|
+
const t = await this.client.request(mt, e);
|
|
1298
1298
|
return t.ok ? t.data.verifyMobileNumber ? {
|
|
1299
1299
|
ok: !1,
|
|
1300
|
-
error:
|
|
1300
|
+
error: m(t.data.verifyMobileNumber.__typename)
|
|
1301
1301
|
} : {
|
|
1302
1302
|
ok: !0
|
|
1303
1303
|
} : t;
|
|
@@ -1306,7 +1306,7 @@ class Tt {
|
|
|
1306
1306
|
const t = await this.client.request(ut, e);
|
|
1307
1307
|
return t.ok ? t.data.createMemberVerification ? {
|
|
1308
1308
|
ok: !1,
|
|
1309
|
-
error:
|
|
1309
|
+
error: m(t.data.createMemberVerification.__typename)
|
|
1310
1310
|
} : {
|
|
1311
1311
|
ok: !0
|
|
1312
1312
|
} : t;
|
|
@@ -1315,7 +1315,7 @@ class Tt {
|
|
|
1315
1315
|
const t = await this.client.request(lt, e);
|
|
1316
1316
|
return t.ok ? t.data.updateMemberVerification ? {
|
|
1317
1317
|
ok: !1,
|
|
1318
|
-
error:
|
|
1318
|
+
error: m(t.data.updateMemberVerification.__typename)
|
|
1319
1319
|
} : {
|
|
1320
1320
|
ok: !0
|
|
1321
1321
|
} : t;
|
|
@@ -1341,7 +1341,7 @@ class Tt {
|
|
|
1341
1341
|
const t = await this.client.request(it, e);
|
|
1342
1342
|
return t.ok ? t.data.registerMayaMemberAccount ? {
|
|
1343
1343
|
ok: !1,
|
|
1344
|
-
error:
|
|
1344
|
+
error: m(t.data.registerMayaMemberAccount.__typename)
|
|
1345
1345
|
} : {
|
|
1346
1346
|
ok: !0
|
|
1347
1347
|
} : t;
|
|
@@ -1357,7 +1357,7 @@ class Tt {
|
|
|
1357
1357
|
const t = await this.client.request(At, e);
|
|
1358
1358
|
return t.ok ? t.data.updateReferralCode ? {
|
|
1359
1359
|
ok: !1,
|
|
1360
|
-
error:
|
|
1360
|
+
error: m(t.data.updateReferralCode.__typename)
|
|
1361
1361
|
} : {
|
|
1362
1362
|
ok: !0
|
|
1363
1363
|
} : t;
|
|
@@ -1382,10 +1382,10 @@ const V = {
|
|
|
1382
1382
|
429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
|
|
1383
1383
|
500: { name: "HttpInternalServerError", message: "Internal Server Error" }
|
|
1384
1384
|
};
|
|
1385
|
-
class
|
|
1385
|
+
class Tt {
|
|
1386
1386
|
constructor(e) {
|
|
1387
|
-
|
|
1388
|
-
|
|
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 _t {
|
|
|
1413
1413
|
data: a
|
|
1414
1414
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1415
1415
|
ok: !1,
|
|
1416
|
-
error:
|
|
1416
|
+
error: m("AccountBlacklisted")
|
|
1417
1417
|
} : {
|
|
1418
1418
|
ok: !1,
|
|
1419
1419
|
error: h(r.status)
|
|
@@ -1442,7 +1442,7 @@ class _t {
|
|
|
1442
1442
|
data: a
|
|
1443
1443
|
} : r.status === 401 || r.status === 403 ? {
|
|
1444
1444
|
ok: !1,
|
|
1445
|
-
error:
|
|
1445
|
+
error: m("InvalidTokenOrSecretAnswer")
|
|
1446
1446
|
} : {
|
|
1447
1447
|
ok: !1,
|
|
1448
1448
|
error: h(r.status)
|
|
@@ -1469,10 +1469,10 @@ class _t {
|
|
|
1469
1469
|
data: a
|
|
1470
1470
|
} : a.code === "ACCOUNT_BLACKLISTED" ? {
|
|
1471
1471
|
ok: !1,
|
|
1472
|
-
error:
|
|
1472
|
+
error: m("AccountBlacklisted")
|
|
1473
1473
|
} : r.status === 403 || r.status === 401 ? {
|
|
1474
1474
|
ok: !1,
|
|
1475
|
-
error:
|
|
1475
|
+
error: m("InvalidToken")
|
|
1476
1476
|
} : {
|
|
1477
1477
|
ok: !1,
|
|
1478
1478
|
error: h(r.status)
|
|
@@ -1538,9 +1538,9 @@ class _t {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
class vt {
|
|
1540
1540
|
constructor(e) {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
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() {
|
|
@@ -1551,12 +1551,12 @@ class vt {
|
|
|
1551
1551
|
} : e;
|
|
1552
1552
|
}
|
|
1553
1553
|
async games(e) {
|
|
1554
|
-
var a, s, c, u, l, f, w, p,
|
|
1554
|
+
var a, s, c, u, l, f, w, p, T, v, M, R, N, b, I, D, S, P, $, x, C, G, W, O;
|
|
1555
1555
|
const t = new URLSearchParams();
|
|
1556
|
-
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 = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.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(",")), (p = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (
|
|
1556
|
+
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 = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.type) != null && u.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(",")), (p = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && p.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (T = e == null ? void 0 : e.filter) == null ? void 0 : T.provider) != null && v.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (R = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (b = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && b.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 = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (G = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && G.in && t.set(
|
|
1557
1557
|
"filter[tags][in]",
|
|
1558
1558
|
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1559
|
-
), (
|
|
1559
|
+
), (O = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && O.notIn && t.set(
|
|
1560
1560
|
"filter[tags][nin]",
|
|
1561
1561
|
e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
|
|
1562
1562
|
);
|
|
@@ -1616,7 +1616,7 @@ class vt {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
class Mt {
|
|
1618
1618
|
constructor(e) {
|
|
1619
|
-
|
|
1619
|
+
d(this, "client");
|
|
1620
1620
|
this.client = e;
|
|
1621
1621
|
}
|
|
1622
1622
|
async file(e) {
|
|
@@ -1630,15 +1630,15 @@ 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:
|
|
1633
|
+
error: m(t.data.uploadPrivateImageFile.__typename)
|
|
1634
1634
|
} : {
|
|
1635
1635
|
ok: !0
|
|
1636
1636
|
} : t;
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
class
|
|
1639
|
+
class Rt {
|
|
1640
1640
|
constructor(e) {
|
|
1641
|
-
|
|
1641
|
+
d(this, "client");
|
|
1642
1642
|
this.client = e;
|
|
1643
1643
|
}
|
|
1644
1644
|
async gameSession(e) {
|
|
@@ -1655,7 +1655,7 @@ class Nt {
|
|
|
1655
1655
|
const t = await this.client.request(Ae, e);
|
|
1656
1656
|
return t.ok ? t.data.createGameSession ? {
|
|
1657
1657
|
ok: !1,
|
|
1658
|
-
error:
|
|
1658
|
+
error: m(t.data.createGameSession.__typename)
|
|
1659
1659
|
} : {
|
|
1660
1660
|
ok: !0
|
|
1661
1661
|
} : t;
|
|
@@ -1673,9 +1673,9 @@ class Nt {
|
|
|
1673
1673
|
} : t;
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
class
|
|
1676
|
+
class Nt {
|
|
1677
1677
|
constructor(e) {
|
|
1678
|
-
|
|
1678
|
+
d(this, "client");
|
|
1679
1679
|
this.client = e;
|
|
1680
1680
|
}
|
|
1681
1681
|
async latestBetRecords() {
|
|
@@ -1688,7 +1688,7 @@ class Rt {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
class It {
|
|
1690
1690
|
constructor(e) {
|
|
1691
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
1800
|
+
error: m(t.data.claimCashbackBonus.__typename)
|
|
1801
1801
|
} : {
|
|
1802
1802
|
ok: !0
|
|
1803
1803
|
} : {
|
|
@@ -1810,7 +1810,7 @@ class Pt {
|
|
|
1810
1810
|
return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
|
|
1811
1811
|
}
|
|
1812
1812
|
async wallet() {
|
|
1813
|
-
const e = await this.client.request(
|
|
1813
|
+
const e = await this.client.request(Re);
|
|
1814
1814
|
return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
|
|
1815
1815
|
}
|
|
1816
1816
|
async deposit(e) {
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1863
|
+
error: m(t.data.createMayaWithdrawal.__typename)
|
|
1864
1864
|
} : {
|
|
1865
1865
|
ok: !0
|
|
1866
1866
|
} : t;
|
|
@@ -1869,35 +1869,35 @@ 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:
|
|
1872
|
+
error: m(t.data.createMayaAppWithdrawal.__typename)
|
|
1873
1873
|
} : {
|
|
1874
1874
|
ok: !0
|
|
1875
1875
|
} : t;
|
|
1876
1876
|
}
|
|
1877
1877
|
async createBankWithdrawal(e) {
|
|
1878
|
-
const t = await this.client.request(
|
|
1878
|
+
const t = await this.client.request(We, e);
|
|
1879
1879
|
return t.ok ? t.data.createBankWithdrawal ? {
|
|
1880
1880
|
ok: !1,
|
|
1881
|
-
error:
|
|
1881
|
+
error: m(t.data.createBankWithdrawal.__typename)
|
|
1882
1882
|
} : {
|
|
1883
1883
|
ok: !0
|
|
1884
1884
|
} : t;
|
|
1885
1885
|
}
|
|
1886
1886
|
async remainingDailyWithdrawalsCount() {
|
|
1887
1887
|
const e = await this.client.request(
|
|
1888
|
-
|
|
1888
|
+
Oe
|
|
1889
1889
|
);
|
|
1890
1890
|
return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
|
|
1891
1891
|
}
|
|
1892
1892
|
async pointsWallet() {
|
|
1893
|
-
const e = await this.client.request(
|
|
1893
|
+
const e = await this.client.request(Ne);
|
|
1894
1894
|
return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
|
|
1895
1895
|
}
|
|
1896
|
-
async
|
|
1896
|
+
async redeemPointsToCash(e) {
|
|
1897
1897
|
const t = await this.client.request(Ie, e);
|
|
1898
|
-
return t.ok ? t.data.
|
|
1898
|
+
return t.ok ? t.data.redeemPointsToCash ? {
|
|
1899
1899
|
ok: !1,
|
|
1900
|
-
error:
|
|
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:
|
|
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
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
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
|
});
|
|
@@ -2344,9 +2344,9 @@ function i(n, e) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
return e;
|
|
2346
2346
|
}
|
|
2347
|
-
class
|
|
2347
|
+
class Wt {
|
|
2348
2348
|
constructor(e) {
|
|
2349
|
-
|
|
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 Ot {
|
|
|
2391
2391
|
return g(t);
|
|
2392
2392
|
}
|
|
2393
2393
|
platform(e) {
|
|
2394
|
-
var t, r, a, s, c, u, l, f, w, p,
|
|
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),
|
|
@@ -2410,13 +2410,13 @@ class Ot {
|
|
|
2410
2410
|
iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
|
|
2411
2411
|
webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
|
|
2412
2412
|
mobileWebEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.mobileWebEnabled) ?? !1,
|
|
2413
|
-
minimumAmount: i((
|
|
2413
|
+
minimumAmount: i((T = e.gcashDepositGatewaySettings) == null ? void 0 : T.minimumAmount),
|
|
2414
2414
|
maximumAmount: i((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
2415
2415
|
},
|
|
2416
2416
|
maya: {
|
|
2417
2417
|
androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
|
|
2418
|
-
iosEnabled: ((
|
|
2419
|
-
webEnabled: ((
|
|
2418
|
+
iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
|
|
2419
|
+
webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
|
|
2420
2420
|
mobileWebEnabled: ((b = e.mayaDepositGatewaySettings) == null ? void 0 : b.mobileWebEnabled) ?? !1,
|
|
2421
2421
|
minimumAmount: i((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
|
|
2422
2422
|
maximumAmount: i((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
|
|
@@ -2432,8 +2432,8 @@ class Ot {
|
|
|
2432
2432
|
},
|
|
2433
2433
|
withdrawalGateway: {
|
|
2434
2434
|
bank: {
|
|
2435
|
-
androidEnabled: ((
|
|
2436
|
-
iosEnabled: ((
|
|
2435
|
+
androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
|
|
2436
|
+
iosEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.iosEnabled) ?? !1,
|
|
2437
2437
|
webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
|
|
2438
2438
|
mobileWebEnabled: ((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
|
|
2439
2439
|
minimumAmount: i((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.minimumAmount),
|
|
@@ -2456,10 +2456,10 @@ class Ot {
|
|
|
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((
|
|
2459
|
+
maximumAmount: i((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.maximumAmount)
|
|
2460
2460
|
},
|
|
2461
2461
|
mayaApp: {
|
|
2462
|
-
androidEnabled: ((
|
|
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 Ot {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
class Lt {
|
|
2808
2808
|
constructor(e) {
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
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,
|
|
@@ -2825,13 +2825,13 @@ class Lt {
|
|
|
2825
2825
|
environment: s,
|
|
2826
2826
|
logs: c
|
|
2827
2827
|
} = e, u = s === "production";
|
|
2828
|
-
this.transformer = new
|
|
2828
|
+
this.transformer = new Wt({
|
|
2829
2829
|
environment: s
|
|
2830
2830
|
}), this.logger = new Ce({
|
|
2831
2831
|
enabled: c ?? !1
|
|
2832
2832
|
});
|
|
2833
|
-
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql",
|
|
2834
|
-
url:
|
|
2833
|
+
const l = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", p = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", T = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", R = "https://portal-api.opexacms.io/v1", N = new vt({
|
|
2834
|
+
url: R,
|
|
2835
2835
|
site: t,
|
|
2836
2836
|
platform: r
|
|
2837
2837
|
}), b = {
|
|
@@ -2842,7 +2842,7 @@ class Lt {
|
|
|
2842
2842
|
"Platform-Code": a
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
}, I = new
|
|
2845
|
+
}, I = new Rt(new U(M, b)), D = new Mt(new U(v, b)), S = new Pt(new U(f, b)), P = new _t(new U(p, b)), $ = new It(new U(w, b)), x = new Nt(new U(T, b)), C = new Tt({
|
|
2846
2846
|
url: l,
|
|
2847
2847
|
platform: a
|
|
2848
2848
|
}), G = new Ut({
|
|
@@ -2850,7 +2850,7 @@ class Lt {
|
|
|
2850
2850
|
authService: C,
|
|
2851
2851
|
walletService: S
|
|
2852
2852
|
});
|
|
2853
|
-
this.authService = C, this.gameService = I, this.fileService = D, this.walletService = S, this.accountService = P, this.reportService = $, this.portalService = x, this.sessionManager = G, this.cmsPortalService =
|
|
2853
|
+
this.authService = C, this.gameService = I, this.fileService = D, this.walletService = S, this.accountService = P, this.reportService = $, this.portalService = x, this.sessionManager = G, this.cmsPortalService = N;
|
|
2854
2854
|
}
|
|
2855
2855
|
get authMiddleware() {
|
|
2856
2856
|
return async (e) => {
|
|
@@ -2969,7 +2969,7 @@ class Lt {
|
|
|
2969
2969
|
* @deprecated use `createAccount__next`
|
|
2970
2970
|
*/
|
|
2971
2971
|
async createAccount(e) {
|
|
2972
|
-
const t = e.id ?? k.generate(
|
|
2972
|
+
const t = e.id ?? k.generate(_.Account).toString(), r = await this.accountService.registerMemberAccount({
|
|
2973
2973
|
input: {
|
|
2974
2974
|
id: t,
|
|
2975
2975
|
btag: e.btag,
|
|
@@ -2986,7 +2986,7 @@ class Lt {
|
|
|
2986
2986
|
return r.ok ? { ok: !0, data: { id: t } } : r;
|
|
2987
2987
|
}
|
|
2988
2988
|
async createAccount__next(e) {
|
|
2989
|
-
const t = e.id ?? k.generate(
|
|
2989
|
+
const t = e.id ?? k.generate(_.Account).toString();
|
|
2990
2990
|
if (e.type === "MOBILE_NUMBER") {
|
|
2991
2991
|
const a = await this.accountService.registerMemberAccountViaMobile({
|
|
2992
2992
|
input: {
|
|
@@ -3050,7 +3050,7 @@ class Lt {
|
|
|
3050
3050
|
} : e;
|
|
3051
3051
|
}
|
|
3052
3052
|
async submitVerificationDetails(e) {
|
|
3053
|
-
const t = e.id ?? k.generate(
|
|
3053
|
+
const t = e.id ?? k.generate(_.Verification).toString(), r = await this.accountService.createMemberVerification({
|
|
3054
3054
|
input: {
|
|
3055
3055
|
id: t,
|
|
3056
3056
|
...e
|
|
@@ -3151,7 +3151,7 @@ class Lt {
|
|
|
3151
3151
|
/*+----------------------------------------+*/
|
|
3152
3152
|
/**/
|
|
3153
3153
|
async createWithdrawal(e) {
|
|
3154
|
-
const t = e.id ?? k.generate(
|
|
3154
|
+
const t = e.id ?? k.generate(_.Withdrawal).toString();
|
|
3155
3155
|
if (e.type === "BANK") {
|
|
3156
3156
|
const r = await this.walletService.createBankWithdrawal({
|
|
3157
3157
|
input: {
|
|
@@ -3220,7 +3220,7 @@ class Lt {
|
|
|
3220
3220
|
/*+----------------------------------------+*/
|
|
3221
3221
|
/**/
|
|
3222
3222
|
async createDeposit(e) {
|
|
3223
|
-
const t = e.id ?? k.generate(
|
|
3223
|
+
const t = e.id ?? k.generate(_.Deposit).toString();
|
|
3224
3224
|
if (e.type === "MAYA") {
|
|
3225
3225
|
const r = await this.walletService.createMayaDeposit({
|
|
3226
3226
|
input: {
|
|
@@ -3288,12 +3288,24 @@ class Lt {
|
|
|
3288
3288
|
...e,
|
|
3289
3289
|
...(e == null ? void 0 : e.filter) && {
|
|
3290
3290
|
filter: {
|
|
3291
|
-
...e.filter.status && {
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
...e.filter.
|
|
3295
|
-
|
|
3296
|
-
|
|
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
|
});
|
|
@@ -3422,9 +3434,9 @@ class Lt {
|
|
|
3422
3434
|
} : r;
|
|
3423
3435
|
}
|
|
3424
3436
|
async createGameSession(e) {
|
|
3425
|
-
const t = e.id ?? k.generate(
|
|
3437
|
+
const t = e.id ?? k.generate(_.GameSession).toString();
|
|
3426
3438
|
if (e.game.startsWith("SPORTS:")) {
|
|
3427
|
-
const u = await k.generateFromKey(
|
|
3439
|
+
const u = await k.generateFromKey(_.Game, e.game).then(
|
|
3428
3440
|
(f) => f.toString()
|
|
3429
3441
|
), l = await this.gameService.createGameSession({
|
|
3430
3442
|
input: {
|
|
@@ -3467,7 +3479,7 @@ class Lt {
|
|
|
3467
3479
|
} : t;
|
|
3468
3480
|
}
|
|
3469
3481
|
async uploadImageFile(e) {
|
|
3470
|
-
const t = e.id ?? k.generate(
|
|
3482
|
+
const t = e.id ?? k.generate(_.File).toString(), r = await this.fileService.uploadPrivateImageFile({
|
|
3471
3483
|
input: {
|
|
3472
3484
|
id: t,
|
|
3473
3485
|
file: e.file
|
|
@@ -3487,10 +3499,10 @@ class Lt {
|
|
|
3487
3499
|
data: e.data ? this.transformer.transform.pointsWallet(e.data) : null
|
|
3488
3500
|
} : e;
|
|
3489
3501
|
}
|
|
3490
|
-
async
|
|
3491
|
-
return await this.walletService.
|
|
3502
|
+
async redeemPoints(e) {
|
|
3503
|
+
return await this.walletService.redeemPointsToCash({
|
|
3492
3504
|
input: {
|
|
3493
|
-
amount: e.toString()
|
|
3505
|
+
amount: e.amount.toString()
|
|
3494
3506
|
}
|
|
3495
3507
|
});
|
|
3496
3508
|
}
|
|
@@ -3581,7 +3593,7 @@ class Lt {
|
|
|
3581
3593
|
} : t;
|
|
3582
3594
|
}
|
|
3583
3595
|
}
|
|
3584
|
-
const
|
|
3596
|
+
const Ot = [
|
|
3585
3597
|
/**/
|
|
3586
3598
|
"RTG",
|
|
3587
3599
|
"DARWIN",
|
|
@@ -3592,11 +3604,11 @@ const Wt = [
|
|
|
3592
3604
|
"EVOLUTION_REDTIGER"
|
|
3593
3605
|
];
|
|
3594
3606
|
function Bt(n) {
|
|
3595
|
-
return
|
|
3607
|
+
return Ot.some((e) => e === n);
|
|
3596
3608
|
}
|
|
3597
3609
|
export {
|
|
3598
3610
|
Yt as ObjectId,
|
|
3599
|
-
|
|
3611
|
+
_ as ObjectType,
|
|
3600
3612
|
Lt as Sdk
|
|
3601
3613
|
};
|
|
3602
3614
|
//# sourceMappingURL=index.mjs.map
|