@opexa/portal-sdk 0.59.65 → 0.59.67
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-CY6AO3EN.js → chunk-DKB4XCT5.js} +18 -52
- package/dist/chunk-DKB4XCT5.js.map +1 -0
- package/dist/index.cjs +24 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +16 -50
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CY6AO3EN.js.map +0 -1
package/dist/services/index.cjs
CHANGED
|
@@ -4605,7 +4605,7 @@ var AuthService = class {
|
|
|
4605
4605
|
return true;
|
|
4606
4606
|
}
|
|
4607
4607
|
}
|
|
4608
|
-
async sendVerificationCode(input
|
|
4608
|
+
async sendVerificationCode(input) {
|
|
4609
4609
|
if (input.channel === "EMAIL")
|
|
4610
4610
|
throw new Error("Email channel is not yet supported");
|
|
4611
4611
|
function getErrorCode(message) {
|
|
@@ -4623,15 +4623,8 @@ var AuthService = class {
|
|
|
4623
4623
|
try {
|
|
4624
4624
|
const res = await fetch(`${this.url}/otps`, {
|
|
4625
4625
|
method: "POST",
|
|
4626
|
-
headers:
|
|
4627
|
-
|
|
4628
|
-
...recaptchaResponse && {
|
|
4629
|
-
"google-recaptcha-response": recaptchaResponse
|
|
4630
|
-
}
|
|
4631
|
-
},
|
|
4632
|
-
body: JSON.stringify({
|
|
4633
|
-
...input
|
|
4634
|
-
})
|
|
4626
|
+
headers: this.headers,
|
|
4627
|
+
body: JSON.stringify(input)
|
|
4635
4628
|
});
|
|
4636
4629
|
if (res.status === 403) {
|
|
4637
4630
|
const data = await res.json();
|
|
@@ -5095,13 +5088,7 @@ var PortalService = class {
|
|
|
5095
5088
|
};
|
|
5096
5089
|
}
|
|
5097
5090
|
async topWinsNext() {
|
|
5098
|
-
const res = await this.client.request(
|
|
5099
|
-
TOP_WINS_NEXT_QUERY,
|
|
5100
|
-
void 0,
|
|
5101
|
-
{
|
|
5102
|
-
method: "GET"
|
|
5103
|
-
}
|
|
5104
|
-
);
|
|
5091
|
+
const res = await this.client.request(TOP_WINS_NEXT_QUERY);
|
|
5105
5092
|
if (!res.ok) return res;
|
|
5106
5093
|
return {
|
|
5107
5094
|
ok: true,
|
|
@@ -5109,13 +5096,7 @@ var PortalService = class {
|
|
|
5109
5096
|
};
|
|
5110
5097
|
}
|
|
5111
5098
|
async topWins__next() {
|
|
5112
|
-
const res = await this.client.request(
|
|
5113
|
-
TOP_WINS_QUERY__NEXT,
|
|
5114
|
-
void 0,
|
|
5115
|
-
{
|
|
5116
|
-
method: "GET"
|
|
5117
|
-
}
|
|
5118
|
-
);
|
|
5099
|
+
const res = await this.client.request(TOP_WINS_QUERY__NEXT);
|
|
5119
5100
|
if (!res.ok) return res;
|
|
5120
5101
|
return {
|
|
5121
5102
|
ok: true,
|
|
@@ -5193,9 +5174,7 @@ var ReportService = class {
|
|
|
5193
5174
|
return res.ok ? { ok: res.ok, data: res.data.promoByCode } : res;
|
|
5194
5175
|
}
|
|
5195
5176
|
async jackpots(variables) {
|
|
5196
|
-
const res = await this.client.request(JACKPOTS_QUERY, variables
|
|
5197
|
-
method: "GET"
|
|
5198
|
-
});
|
|
5177
|
+
const res = await this.client.request(JACKPOTS_QUERY, variables);
|
|
5199
5178
|
if (!res.ok) return res;
|
|
5200
5179
|
return {
|
|
5201
5180
|
ok: true,
|
|
@@ -5203,9 +5182,7 @@ var ReportService = class {
|
|
|
5203
5182
|
};
|
|
5204
5183
|
}
|
|
5205
5184
|
async _jackpots(variables) {
|
|
5206
|
-
const res = await this.client.request(_JACKPOTS_QUERY, variables
|
|
5207
|
-
method: "GET"
|
|
5208
|
-
});
|
|
5185
|
+
const res = await this.client.request(_JACKPOTS_QUERY, variables);
|
|
5209
5186
|
if (!res.ok) return res;
|
|
5210
5187
|
return {
|
|
5211
5188
|
ok: true,
|
|
@@ -5213,9 +5190,7 @@ var ReportService = class {
|
|
|
5213
5190
|
};
|
|
5214
5191
|
}
|
|
5215
5192
|
async jackpotsIds(variables) {
|
|
5216
|
-
const res = await this.client.request(JACKPOTS_IDS_QUERY, variables
|
|
5217
|
-
method: "GET"
|
|
5218
|
-
});
|
|
5193
|
+
const res = await this.client.request(JACKPOTS_IDS_QUERY, variables);
|
|
5219
5194
|
if (!res.ok) return res;
|
|
5220
5195
|
return {
|
|
5221
5196
|
ok: true,
|
|
@@ -5231,9 +5206,7 @@ var ReportService = class {
|
|
|
5231
5206
|
};
|
|
5232
5207
|
}
|
|
5233
5208
|
async tournaments(variables) {
|
|
5234
|
-
const res = await this.client.request(TOURNAMENTS_QUERY, variables
|
|
5235
|
-
method: "GET"
|
|
5236
|
-
});
|
|
5209
|
+
const res = await this.client.request(TOURNAMENTS_QUERY, variables);
|
|
5237
5210
|
if (!res.ok) return res;
|
|
5238
5211
|
return {
|
|
5239
5212
|
ok: true,
|
|
@@ -5241,9 +5214,7 @@ var ReportService = class {
|
|
|
5241
5214
|
};
|
|
5242
5215
|
}
|
|
5243
5216
|
async tournamentsIds(variables) {
|
|
5244
|
-
const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables
|
|
5245
|
-
method: "GET"
|
|
5246
|
-
});
|
|
5217
|
+
const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables);
|
|
5247
5218
|
if (!res.ok) return res;
|
|
5248
5219
|
return {
|
|
5249
5220
|
ok: true,
|
|
@@ -5454,24 +5425,19 @@ var WalletService = class {
|
|
|
5454
5425
|
this.client = client;
|
|
5455
5426
|
}
|
|
5456
5427
|
async promos() {
|
|
5457
|
-
const res = await this.client.request(PROMOS_QUERY, void 0
|
|
5458
|
-
method: "GET"
|
|
5459
|
-
});
|
|
5428
|
+
const res = await this.client.request(PROMOS_QUERY, void 0);
|
|
5460
5429
|
return res.ok ? { ok: res.ok, data: res.data.promos } : res;
|
|
5461
5430
|
}
|
|
5462
5431
|
async cashbacks() {
|
|
5463
|
-
const res = await this.client.request(
|
|
5464
|
-
|
|
5465
|
-
|
|
5432
|
+
const res = await this.client.request(
|
|
5433
|
+
CASHBACKS_QUERY,
|
|
5434
|
+
void 0
|
|
5435
|
+
);
|
|
5466
5436
|
return res.ok ? { ok: res.ok, data: res.data.cashbacks } : res;
|
|
5467
5437
|
}
|
|
5468
5438
|
async promosAndCashbacks() {
|
|
5469
5439
|
const res = await this.client.request(
|
|
5470
|
-
PROMOS_AND_CASHBACKS_QUERY
|
|
5471
|
-
void 0,
|
|
5472
|
-
{
|
|
5473
|
-
method: "GET"
|
|
5474
|
-
}
|
|
5440
|
+
PROMOS_AND_CASHBACKS_QUERY
|
|
5475
5441
|
);
|
|
5476
5442
|
return res.ok ? {
|
|
5477
5443
|
ok: res.ok,
|