@opexa/portal-sdk 0.0.98 → 0.0.99
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 +15 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -691,7 +691,7 @@ const De = o`
|
|
|
691
691
|
...PromoFragment
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
`,
|
|
694
|
+
`, yt = o`
|
|
695
695
|
${Ie}
|
|
696
696
|
|
|
697
697
|
query AvailablePromos($filter: PromoFilterInput) {
|
|
@@ -718,7 +718,7 @@ const De = o`
|
|
|
718
718
|
dateTimeCreated
|
|
719
719
|
dateTimeLastUpdated
|
|
720
720
|
}
|
|
721
|
-
`,
|
|
721
|
+
`, ht = o`
|
|
722
722
|
${Be}
|
|
723
723
|
|
|
724
724
|
query Cashbacks {
|
|
@@ -1083,6 +1083,12 @@ const At = o`
|
|
|
1083
1083
|
mayaAppDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_APP) {
|
|
1084
1084
|
...DepositGatewaySettingsCoreData
|
|
1085
1085
|
}
|
|
1086
|
+
onlineBankDepositGatewaySettings: depositGatewaySettings(gateway: ONLINE_BANK) {
|
|
1087
|
+
...DepositGatewaySettingsCoreData
|
|
1088
|
+
}
|
|
1089
|
+
qrphDepositGatewaySettings: depositGatewaySettings(gateway: QR_PH) {
|
|
1090
|
+
...DepositGatewaySettingsCoreData
|
|
1091
|
+
}
|
|
1086
1092
|
bankWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: BANK) {
|
|
1087
1093
|
...WithdrawalGatewaySettingsCoreData
|
|
1088
1094
|
}
|
|
@@ -1095,6 +1101,9 @@ const At = o`
|
|
|
1095
1101
|
mayaAppWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MAYA_APP) {
|
|
1096
1102
|
...WithdrawalGatewaySettingsCoreData
|
|
1097
1103
|
}
|
|
1104
|
+
instapayWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: INSTAPAY) {
|
|
1105
|
+
...WithdrawalGatewaySettingsCoreData
|
|
1106
|
+
}
|
|
1098
1107
|
pointsClubSettings {
|
|
1099
1108
|
multiplier
|
|
1100
1109
|
}
|
|
@@ -1560,7 +1569,7 @@ class Xt {
|
|
|
1560
1569
|
return e.ok ? { ok: !0, data: e.data.pointsClubSettings } : e;
|
|
1561
1570
|
}
|
|
1562
1571
|
}
|
|
1563
|
-
function
|
|
1572
|
+
function y(i, e) {
|
|
1564
1573
|
const t = ve[i] ? ve[i] : ve[500];
|
|
1565
1574
|
return {
|
|
1566
1575
|
name: t.name,
|
|
@@ -1610,12 +1619,12 @@ class Zt {
|
|
|
1610
1619
|
error: l("AccountBlacklistedError")
|
|
1611
1620
|
} : {
|
|
1612
1621
|
ok: !1,
|
|
1613
|
-
error:
|
|
1622
|
+
error: y(a.status)
|
|
1614
1623
|
};
|
|
1615
1624
|
} catch {
|
|
1616
1625
|
return {
|
|
1617
1626
|
ok: !1,
|
|
1618
|
-
error:
|
|
1627
|
+
error: y(500)
|
|
1619
1628
|
};
|
|
1620
1629
|
}
|
|
1621
1630
|
}
|
|
@@ -1639,12 +1648,12 @@ class Zt {
|
|
|
1639
1648
|
error: l("InvalidTokenOrSecretAnswerError")
|
|
1640
1649
|
} : {
|
|
1641
1650
|
ok: !1,
|
|
1642
|
-
error:
|
|
1651
|
+
error: y(a.status)
|
|
1643
1652
|
};
|
|
1644
1653
|
} catch {
|
|
1645
1654
|
return {
|
|
1646
1655
|
ok: !1,
|
|
1647
|
-
error:
|
|
1656
|
+
error: y(500)
|
|
1648
1657
|
};
|
|
1649
1658
|
}
|
|
1650
1659
|
}
|
|
@@ -1669,12 +1678,12 @@ class Zt {
|
|
|
1669
1678
|
error: l("InvalidTokenError")
|
|
1670
1679
|
} : {
|
|
1671
1680
|
ok: !1,
|
|
1672
|
-
error:
|
|
1681
|
+
error: y(a.status)
|
|
1673
1682
|
};
|
|
1674
1683
|
} catch {
|
|
1675
1684
|
return {
|
|
1676
1685
|
ok: !1,
|
|
1677
|
-
error:
|
|
1686
|
+
error: y(500)
|
|
1678
1687
|
};
|
|
1679
1688
|
}
|
|
1680
1689
|
}
|
|
@@ -1686,9 +1695,9 @@ class Zt {
|
|
|
1686
1695
|
method: "DELETE",
|
|
1687
1696
|
headers: t
|
|
1688
1697
|
});
|
|
1689
|
-
return a.ok ? { ok: !0 } : { ok: !1, error:
|
|
1698
|
+
return a.ok ? { ok: !0 } : { ok: !1, error: y(a.status) };
|
|
1690
1699
|
} catch {
|
|
1691
|
-
return { ok: !1, error:
|
|
1700
|
+
return { ok: !1, error: y(500) };
|
|
1692
1701
|
}
|
|
1693
1702
|
}
|
|
1694
1703
|
async verifySession(e) {
|
|
@@ -1730,17 +1739,17 @@ class Zt {
|
|
|
1730
1739
|
error: l(s)
|
|
1731
1740
|
} : {
|
|
1732
1741
|
ok: !1,
|
|
1733
|
-
error:
|
|
1742
|
+
error: y(a.status, r.message)
|
|
1734
1743
|
};
|
|
1735
1744
|
}
|
|
1736
1745
|
return a.ok ? { ok: !0 } : {
|
|
1737
1746
|
ok: !1,
|
|
1738
|
-
error:
|
|
1747
|
+
error: y(a.status)
|
|
1739
1748
|
};
|
|
1740
1749
|
} catch {
|
|
1741
1750
|
return {
|
|
1742
1751
|
ok: !1,
|
|
1743
|
-
error:
|
|
1752
|
+
error: y(500)
|
|
1744
1753
|
};
|
|
1745
1754
|
}
|
|
1746
1755
|
}
|
|
@@ -1760,9 +1769,9 @@ class ea {
|
|
|
1760
1769
|
} : e;
|
|
1761
1770
|
}
|
|
1762
1771
|
async games(e) {
|
|
1763
|
-
var r, s, m, u, p, f, w, d, k, C, _, T, M, D,
|
|
1772
|
+
var r, s, m, u, p, f, w, d, k, C, _, T, M, D, h, v, R, A, N, I, G, P, S, W;
|
|
1764
1773
|
const t = new URLSearchParams();
|
|
1765
|
-
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 = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.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(",")), (d = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && d.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (C = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && C.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), (D = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && D.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (v = (
|
|
1774
|
+
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 = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.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(",")), (d = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && d.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (C = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && C.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), (D = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && D.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (v = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.provider) != null && v.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (P = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && P.in && t.set(
|
|
1766
1775
|
"filter[tags][in]",
|
|
1767
1776
|
e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
|
|
1768
1777
|
), (W = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && W.notIn && t.set(
|
|
@@ -1813,12 +1822,12 @@ class ea {
|
|
|
1813
1822
|
data: await r.json()
|
|
1814
1823
|
} : {
|
|
1815
1824
|
ok: !1,
|
|
1816
|
-
error:
|
|
1825
|
+
error: y(r.status)
|
|
1817
1826
|
};
|
|
1818
1827
|
} catch {
|
|
1819
1828
|
return {
|
|
1820
1829
|
ok: !1,
|
|
1821
|
-
error:
|
|
1830
|
+
error: y(500)
|
|
1822
1831
|
};
|
|
1823
1832
|
}
|
|
1824
1833
|
}
|
|
@@ -2049,12 +2058,12 @@ class sa {
|
|
|
2049
2058
|
return e.ok ? { ok: e.ok, data: e.data.promos } : e;
|
|
2050
2059
|
}
|
|
2051
2060
|
async cashbacks() {
|
|
2052
|
-
const e = await this.client.request(
|
|
2061
|
+
const e = await this.client.request(ht);
|
|
2053
2062
|
return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
|
|
2054
2063
|
}
|
|
2055
2064
|
async availablePromos(e) {
|
|
2056
2065
|
const t = await this.client.request(
|
|
2057
|
-
|
|
2066
|
+
yt,
|
|
2058
2067
|
e
|
|
2059
2068
|
);
|
|
2060
2069
|
return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
|
|
@@ -2337,11 +2346,11 @@ class U {
|
|
|
2337
2346
|
try {
|
|
2338
2347
|
const p = await fetch(e);
|
|
2339
2348
|
if (!p.ok)
|
|
2340
|
-
return { ok: !1, error:
|
|
2349
|
+
return { ok: !1, error: y(p.status) };
|
|
2341
2350
|
const f = await p.json(), w = f.data, d = (t = f.errors) == null ? void 0 : t.at(0);
|
|
2342
|
-
return d ? ((a = d.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = d.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error:
|
|
2351
|
+
return d ? ((a = d.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = d.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: y(403, d.message) } : ((s = d.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: y(401, d.message) } : ((m = d.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((u = d.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: y(400, d.message) } : {
|
|
2343
2352
|
ok: !1,
|
|
2344
|
-
error:
|
|
2353
|
+
error: y(500, d.message)
|
|
2345
2354
|
} : {
|
|
2346
2355
|
ok: !0,
|
|
2347
2356
|
data: w
|
|
@@ -2349,7 +2358,7 @@ class U {
|
|
|
2349
2358
|
} catch {
|
|
2350
2359
|
return {
|
|
2351
2360
|
ok: !1,
|
|
2352
|
-
error:
|
|
2361
|
+
error: y(500)
|
|
2353
2362
|
};
|
|
2354
2363
|
}
|
|
2355
2364
|
}
|
|
@@ -2733,7 +2742,7 @@ class wa {
|
|
|
2733
2742
|
}
|
|
2734
2743
|
/** @deprecated */
|
|
2735
2744
|
platform(e) {
|
|
2736
|
-
var t, a, r, s, m, u, p, f, w, d, k, C, _, T, M, D,
|
|
2745
|
+
var t, a, r, s, m, u, p, f, w, d, k, C, _, T, M, D, h, v, R, A, N, I, G, P, S, W, E, L, V, H, Y, Q, j, K, z, J, X, Z, ee, te, ae, re, ne, ie, oe, se, me, ce, le, ue, de, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, ke, Ce, _e, Te, Me, We;
|
|
2737
2746
|
return {
|
|
2738
2747
|
timezone: e.timezone,
|
|
2739
2748
|
currency: e.currency,
|
|
@@ -2762,7 +2771,7 @@ class wa {
|
|
|
2762
2771
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
2763
2772
|
webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
|
|
2764
2773
|
mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
|
|
2765
|
-
minimumAmount: n((
|
|
2774
|
+
minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
2766
2775
|
maximumAmount: n((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
2767
2776
|
},
|
|
2768
2777
|
mayaApp: {
|
|
@@ -2819,8 +2828,8 @@ class wa {
|
|
|
2819
2828
|
maximumAmount: n((we = e.mayaWithdrawalGatewaySettings) == null ? void 0 : we.maximumAmount)
|
|
2820
2829
|
},
|
|
2821
2830
|
mayaApp: {
|
|
2822
|
-
androidEnabled: ((
|
|
2823
|
-
iosEnabled: ((
|
|
2831
|
+
androidEnabled: ((ye = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ye.androidEnabled) ?? !1,
|
|
2832
|
+
iosEnabled: ((he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.iosEnabled) ?? !1,
|
|
2824
2833
|
webEnabled: ((ge = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ge.webEnabled) ?? !1,
|
|
2825
2834
|
mobileWebEnabled: ((be = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : be.mobileWebEnabled) ?? !1,
|
|
2826
2835
|
minimumAmount: n((Ee = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ee.minimumAmount),
|
|
@@ -2860,7 +2869,7 @@ class wa {
|
|
|
2860
2869
|
};
|
|
2861
2870
|
}
|
|
2862
2871
|
paymentSettings(e) {
|
|
2863
|
-
var t, a, r, s, m, u, p, f, w, d, k, C, _, T, M, D,
|
|
2872
|
+
var t, a, r, s, m, u, p, f, w, d, k, C, _, T, M, D, h, v, R, A, N, I, G, P, S, W, E, L, V, H, Y, Q, j, K, z, J, X, Z, ee, te, ae, re, ne, ie, oe, se, me, ce, le, ue, de, pe, fe, we, ye, he, ge, be, Ee, Ae, Se, ke, Ce, _e, Te, Me;
|
|
2864
2873
|
return {
|
|
2865
2874
|
minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
|
|
2866
2875
|
restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
|
|
@@ -2886,7 +2895,7 @@ class wa {
|
|
|
2886
2895
|
iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
|
|
2887
2896
|
webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
|
|
2888
2897
|
mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
|
|
2889
|
-
minimumAmount: n((
|
|
2898
|
+
minimumAmount: n((h = e.mayaDepositGatewaySettings) == null ? void 0 : h.minimumAmount),
|
|
2890
2899
|
maximumAmount: n((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
|
|
2891
2900
|
},
|
|
2892
2901
|
mayaApp: {
|
|
@@ -2940,8 +2949,8 @@ class wa {
|
|
|
2940
2949
|
maximumAmount: n((we = e.mayaWithdrawalGatewaySettings) == null ? void 0 : we.maximumAmount)
|
|
2941
2950
|
},
|
|
2942
2951
|
mayaApp: {
|
|
2943
|
-
androidEnabled: ((
|
|
2944
|
-
iosEnabled: ((
|
|
2952
|
+
androidEnabled: ((ye = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ye.androidEnabled) ?? !1,
|
|
2953
|
+
iosEnabled: ((he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.iosEnabled) ?? !1,
|
|
2945
2954
|
webEnabled: ((ge = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ge.webEnabled) ?? !1,
|
|
2946
2955
|
mobileWebEnabled: ((be = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : be.mobileWebEnabled) ?? !1,
|
|
2947
2956
|
minimumAmount: n((Ee = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ee.minimumAmount),
|
|
@@ -3339,7 +3348,7 @@ class ga {
|
|
|
3339
3348
|
url: M,
|
|
3340
3349
|
site: t,
|
|
3341
3350
|
platform: a
|
|
3342
|
-
}),
|
|
3351
|
+
}), h = {
|
|
3343
3352
|
middlewares: [this.authMiddleware],
|
|
3344
3353
|
fetchOptions: {
|
|
3345
3354
|
headers: {
|
|
@@ -3347,7 +3356,7 @@ class ga {
|
|
|
3347
3356
|
"Platform-Code": r
|
|
3348
3357
|
}
|
|
3349
3358
|
}
|
|
3350
|
-
}, v = new aa(new U(_,
|
|
3359
|
+
}, v = new aa(new U(_, h)), R = new ta(new U(C, h)), A = new sa(new U(f, h)), N = new Xt(new U(d, h)), I = new na(new U(w, h)), G = new ra(new U(k, h)), P = new oa(new U(T, h)), S = new Zt({
|
|
3351
3360
|
url: p,
|
|
3352
3361
|
platform: r
|
|
3353
3362
|
}), W = new fa({
|