@opexa/portal-sdk 0.0.2 → 0.0.3
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/graphql/static.service.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -10
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -357,7 +357,7 @@ const pe = n`
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
`,
|
|
360
|
+
`, $e = n`
|
|
361
361
|
mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
|
|
362
362
|
createGCashDeposit(input: $input) {
|
|
363
363
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -394,7 +394,7 @@ const pe = n`
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
`,
|
|
397
|
+
`, Pe = n`
|
|
398
398
|
mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
|
|
399
399
|
createMayaDeposit(input: $input) {
|
|
400
400
|
... on DepositPromoMaximumAmountExceededError {
|
|
@@ -1451,8 +1451,11 @@ class pt {
|
|
|
1451
1451
|
c(this, "url");
|
|
1452
1452
|
this.url = e.url;
|
|
1453
1453
|
}
|
|
1454
|
-
|
|
1455
|
-
return
|
|
1454
|
+
gameThumbnails(e) {
|
|
1455
|
+
return [
|
|
1456
|
+
`${this.url}/images/${e.provider.toLowerCase()}/thumbnail-${e.id}.webp`,
|
|
1457
|
+
`${this.url}/images/${e.provider.toLowerCase()}/thumbnail-${e.provider.toLowerCase()}.webp`
|
|
1458
|
+
];
|
|
1456
1459
|
}
|
|
1457
1460
|
}
|
|
1458
1461
|
class ft extends fe {
|
|
@@ -1501,7 +1504,7 @@ class ft extends fe {
|
|
|
1501
1504
|
}
|
|
1502
1505
|
async createGCashDeposit(e) {
|
|
1503
1506
|
const t = await this.client.request(
|
|
1504
|
-
|
|
1507
|
+
$e,
|
|
1505
1508
|
e
|
|
1506
1509
|
);
|
|
1507
1510
|
return t.ok ? t.data.createGCashDeposit ? {
|
|
@@ -1513,7 +1516,7 @@ class ft extends fe {
|
|
|
1513
1516
|
}
|
|
1514
1517
|
async createMayaDeposit(e) {
|
|
1515
1518
|
const t = await this.client.request(
|
|
1516
|
-
|
|
1519
|
+
Pe,
|
|
1517
1520
|
e
|
|
1518
1521
|
);
|
|
1519
1522
|
return t.ok ? t.data.createMayaDeposit ? {
|
|
@@ -1797,7 +1800,7 @@ class gt {
|
|
|
1797
1800
|
};
|
|
1798
1801
|
}
|
|
1799
1802
|
platform(e) {
|
|
1800
|
-
var t, a, o, d, m, u, p, s, w, k, C, T, v, _, D, M, R, N, I, G, P,
|
|
1803
|
+
var t, a, o, d, m, u, p, s, w, k, C, T, v, _, D, M, R, N, I, G, $, P, U, W, B, x, O, q, F, L, V, H, Y, j, Q, K, z, J, Z, X, ee, te, ae, re, oe, ne, ie, se;
|
|
1801
1804
|
return {
|
|
1802
1805
|
paymentSettings: {
|
|
1803
1806
|
minimumFirstDepositAmount: r(e.minimumFirstDepositAmount),
|
|
@@ -1830,8 +1833,8 @@ class gt {
|
|
|
1830
1833
|
mayaApp: {
|
|
1831
1834
|
androidEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.androidEnabled) ?? !1,
|
|
1832
1835
|
iosEnabled: ((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.iosEnabled) ?? !1,
|
|
1833
|
-
webEnabled: ((
|
|
1834
|
-
mobileWebEnabled: ((
|
|
1836
|
+
webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
|
|
1837
|
+
mobileWebEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.mobileWebEnabled) ?? !1,
|
|
1835
1838
|
minimumAmount: r((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.minimumAmount),
|
|
1836
1839
|
maximumAmount: r((W = e.mayaAppDepositGatewaySettings) == null ? void 0 : W.maximumAmount)
|
|
1837
1840
|
}
|
|
@@ -2024,9 +2027,16 @@ class gt {
|
|
|
2024
2027
|
};
|
|
2025
2028
|
}
|
|
2026
2029
|
game(e) {
|
|
2030
|
+
const t = this.staticService.gameThumbnails(e);
|
|
2027
2031
|
return {
|
|
2028
2032
|
...e,
|
|
2029
|
-
|
|
2033
|
+
images: t,
|
|
2034
|
+
get image() {
|
|
2035
|
+
return console.warn(
|
|
2036
|
+
"'game.image' is deprecated and will be removed in next version.",
|
|
2037
|
+
"Please use 'game.images' instead."
|
|
2038
|
+
), t[0];
|
|
2039
|
+
}
|
|
2030
2040
|
};
|
|
2031
2041
|
}
|
|
2032
2042
|
gameSession(e) {
|