@opexa/portal-sdk 0.59.46 → 0.59.48
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/{chunk-LRFLE5E6.js → chunk-TFG2D5CR.js} +27 -2
- package/dist/chunk-TFG2D5CR.js.map +1 -0
- package/dist/index.cjs +39 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +25 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +6 -2
- package/dist/services/index.d.ts +6 -2
- package/dist/services/index.js +1 -1
- package/dist/{types-Eg2izf63.d.cts → types-DF4cppjz.d.cts} +20 -1
- package/dist/{types-Eg2izf63.d.ts → types-DF4cppjz.d.ts} +20 -1
- package/package.json +15 -1
- package/dist/chunk-LRFLE5E6.js.map +0 -1
package/dist/services/index.cjs
CHANGED
|
@@ -1595,6 +1595,19 @@ var CASHBACKS_QUERY = gql`
|
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
`;
|
|
1598
|
+
var PROMOS_AND_CASHBACKS_QUERY = gql`
|
|
1599
|
+
${CASHBACK_FRAGMENT}
|
|
1600
|
+
${PROMO_FRAGMENT}
|
|
1601
|
+
|
|
1602
|
+
query PromosAndCashbacks {
|
|
1603
|
+
cashbacks {
|
|
1604
|
+
...CashbackFragment
|
|
1605
|
+
}
|
|
1606
|
+
promos {
|
|
1607
|
+
...PromoFragment
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
`;
|
|
1598
1611
|
var BONUS_QUERY = gql`
|
|
1599
1612
|
${PROMO_FRAGMENT}
|
|
1600
1613
|
|
|
@@ -5286,6 +5299,18 @@ var WalletService = class {
|
|
|
5286
5299
|
const res = await this.client.request(CASHBACKS_QUERY);
|
|
5287
5300
|
return res.ok ? { ok: res.ok, data: res.data.cashbacks } : res;
|
|
5288
5301
|
}
|
|
5302
|
+
async promosAndCashbacks() {
|
|
5303
|
+
const res = await this.client.request(
|
|
5304
|
+
PROMOS_AND_CASHBACKS_QUERY
|
|
5305
|
+
);
|
|
5306
|
+
return res.ok ? {
|
|
5307
|
+
ok: res.ok,
|
|
5308
|
+
data: {
|
|
5309
|
+
promos: res.data.promos,
|
|
5310
|
+
cashbacks: res.data.cashbacks
|
|
5311
|
+
}
|
|
5312
|
+
} : res;
|
|
5313
|
+
}
|
|
5289
5314
|
async availablePromos(variables) {
|
|
5290
5315
|
const res = await this.client.request(AVAILABLE_PROMOS_QUERY, variables);
|
|
5291
5316
|
return res.ok ? { ok: res.ok, data: res.data.availablePromos } : res;
|