@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
|
@@ -4576,7 +4576,7 @@ var AuthService = class {
|
|
|
4576
4576
|
return true;
|
|
4577
4577
|
}
|
|
4578
4578
|
}
|
|
4579
|
-
async sendVerificationCode(input
|
|
4579
|
+
async sendVerificationCode(input) {
|
|
4580
4580
|
if (input.channel === "EMAIL")
|
|
4581
4581
|
throw new Error("Email channel is not yet supported");
|
|
4582
4582
|
function getErrorCode(message) {
|
|
@@ -4594,15 +4594,8 @@ var AuthService = class {
|
|
|
4594
4594
|
try {
|
|
4595
4595
|
const res = await fetch(`${this.url}/otps`, {
|
|
4596
4596
|
method: "POST",
|
|
4597
|
-
headers:
|
|
4598
|
-
|
|
4599
|
-
...recaptchaResponse && {
|
|
4600
|
-
"google-recaptcha-response": recaptchaResponse
|
|
4601
|
-
}
|
|
4602
|
-
},
|
|
4603
|
-
body: JSON.stringify({
|
|
4604
|
-
...input
|
|
4605
|
-
})
|
|
4597
|
+
headers: this.headers,
|
|
4598
|
+
body: JSON.stringify(input)
|
|
4606
4599
|
});
|
|
4607
4600
|
if (res.status === 403) {
|
|
4608
4601
|
const data = await res.json();
|
|
@@ -5054,13 +5047,7 @@ var PortalService = class {
|
|
|
5054
5047
|
};
|
|
5055
5048
|
}
|
|
5056
5049
|
async topWinsNext() {
|
|
5057
|
-
const res = await this.client.request(
|
|
5058
|
-
TOP_WINS_NEXT_QUERY,
|
|
5059
|
-
void 0,
|
|
5060
|
-
{
|
|
5061
|
-
method: "GET"
|
|
5062
|
-
}
|
|
5063
|
-
);
|
|
5050
|
+
const res = await this.client.request(TOP_WINS_NEXT_QUERY);
|
|
5064
5051
|
if (!res.ok) return res;
|
|
5065
5052
|
return {
|
|
5066
5053
|
ok: true,
|
|
@@ -5068,13 +5055,7 @@ var PortalService = class {
|
|
|
5068
5055
|
};
|
|
5069
5056
|
}
|
|
5070
5057
|
async topWins__next() {
|
|
5071
|
-
const res = await this.client.request(
|
|
5072
|
-
TOP_WINS_QUERY__NEXT,
|
|
5073
|
-
void 0,
|
|
5074
|
-
{
|
|
5075
|
-
method: "GET"
|
|
5076
|
-
}
|
|
5077
|
-
);
|
|
5058
|
+
const res = await this.client.request(TOP_WINS_QUERY__NEXT);
|
|
5078
5059
|
if (!res.ok) return res;
|
|
5079
5060
|
return {
|
|
5080
5061
|
ok: true,
|
|
@@ -5152,9 +5133,7 @@ var ReportService = class {
|
|
|
5152
5133
|
return res.ok ? { ok: res.ok, data: res.data.promoByCode } : res;
|
|
5153
5134
|
}
|
|
5154
5135
|
async jackpots(variables) {
|
|
5155
|
-
const res = await this.client.request(JACKPOTS_QUERY, variables
|
|
5156
|
-
method: "GET"
|
|
5157
|
-
});
|
|
5136
|
+
const res = await this.client.request(JACKPOTS_QUERY, variables);
|
|
5158
5137
|
if (!res.ok) return res;
|
|
5159
5138
|
return {
|
|
5160
5139
|
ok: true,
|
|
@@ -5162,9 +5141,7 @@ var ReportService = class {
|
|
|
5162
5141
|
};
|
|
5163
5142
|
}
|
|
5164
5143
|
async _jackpots(variables) {
|
|
5165
|
-
const res = await this.client.request(_JACKPOTS_QUERY, variables
|
|
5166
|
-
method: "GET"
|
|
5167
|
-
});
|
|
5144
|
+
const res = await this.client.request(_JACKPOTS_QUERY, variables);
|
|
5168
5145
|
if (!res.ok) return res;
|
|
5169
5146
|
return {
|
|
5170
5147
|
ok: true,
|
|
@@ -5172,9 +5149,7 @@ var ReportService = class {
|
|
|
5172
5149
|
};
|
|
5173
5150
|
}
|
|
5174
5151
|
async jackpotsIds(variables) {
|
|
5175
|
-
const res = await this.client.request(JACKPOTS_IDS_QUERY, variables
|
|
5176
|
-
method: "GET"
|
|
5177
|
-
});
|
|
5152
|
+
const res = await this.client.request(JACKPOTS_IDS_QUERY, variables);
|
|
5178
5153
|
if (!res.ok) return res;
|
|
5179
5154
|
return {
|
|
5180
5155
|
ok: true,
|
|
@@ -5190,9 +5165,7 @@ var ReportService = class {
|
|
|
5190
5165
|
};
|
|
5191
5166
|
}
|
|
5192
5167
|
async tournaments(variables) {
|
|
5193
|
-
const res = await this.client.request(TOURNAMENTS_QUERY, variables
|
|
5194
|
-
method: "GET"
|
|
5195
|
-
});
|
|
5168
|
+
const res = await this.client.request(TOURNAMENTS_QUERY, variables);
|
|
5196
5169
|
if (!res.ok) return res;
|
|
5197
5170
|
return {
|
|
5198
5171
|
ok: true,
|
|
@@ -5200,9 +5173,7 @@ var ReportService = class {
|
|
|
5200
5173
|
};
|
|
5201
5174
|
}
|
|
5202
5175
|
async tournamentsIds(variables) {
|
|
5203
|
-
const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables
|
|
5204
|
-
method: "GET"
|
|
5205
|
-
});
|
|
5176
|
+
const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables);
|
|
5206
5177
|
if (!res.ok) return res;
|
|
5207
5178
|
return {
|
|
5208
5179
|
ok: true,
|
|
@@ -5413,24 +5384,19 @@ var WalletService = class {
|
|
|
5413
5384
|
this.client = client;
|
|
5414
5385
|
}
|
|
5415
5386
|
async promos() {
|
|
5416
|
-
const res = await this.client.request(PROMOS_QUERY, void 0
|
|
5417
|
-
method: "GET"
|
|
5418
|
-
});
|
|
5387
|
+
const res = await this.client.request(PROMOS_QUERY, void 0);
|
|
5419
5388
|
return res.ok ? { ok: res.ok, data: res.data.promos } : res;
|
|
5420
5389
|
}
|
|
5421
5390
|
async cashbacks() {
|
|
5422
|
-
const res = await this.client.request(
|
|
5423
|
-
|
|
5424
|
-
|
|
5391
|
+
const res = await this.client.request(
|
|
5392
|
+
CASHBACKS_QUERY,
|
|
5393
|
+
void 0
|
|
5394
|
+
);
|
|
5425
5395
|
return res.ok ? { ok: res.ok, data: res.data.cashbacks } : res;
|
|
5426
5396
|
}
|
|
5427
5397
|
async promosAndCashbacks() {
|
|
5428
5398
|
const res = await this.client.request(
|
|
5429
|
-
PROMOS_AND_CASHBACKS_QUERY
|
|
5430
|
-
void 0,
|
|
5431
|
-
{
|
|
5432
|
-
method: "GET"
|
|
5433
|
-
}
|
|
5399
|
+
PROMOS_AND_CASHBACKS_QUERY
|
|
5434
5400
|
);
|
|
5435
5401
|
return res.ok ? {
|
|
5436
5402
|
ok: res.ok,
|
|
@@ -6381,5 +6347,5 @@ var ExtensionService = class {
|
|
|
6381
6347
|
};
|
|
6382
6348
|
|
|
6383
6349
|
export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint };
|
|
6384
|
-
//# sourceMappingURL=chunk-
|
|
6385
|
-
//# sourceMappingURL=chunk-
|
|
6350
|
+
//# sourceMappingURL=chunk-DKB4XCT5.js.map
|
|
6351
|
+
//# sourceMappingURL=chunk-DKB4XCT5.js.map
|