@opexa/portal-sdk 0.59.64 → 0.59.66
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-LSIBWJ34.js → chunk-22E7HNRO.js} +41 -26
- package/dist/chunk-22E7HNRO.js.map +1 -0
- package/dist/index.cjs +69 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +31 -12
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +39 -24
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +4 -3
- package/dist/services/index.d.ts +4 -3
- package/dist/services/index.js +1 -1
- package/dist/{types-DLixKQ1b.d.ts → types-Blgu5UwG.d.ts} +38 -1
- package/dist/{types-o6aJjH1M.d.cts → types-CU6K5qYs.d.cts} +38 -1
- package/package.json +1 -1
- package/dist/chunk-LSIBWJ34.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3090,6 +3090,26 @@ var TOP_WINS_NEXT_QUERY = gql`
|
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
3092
|
`;
|
|
3093
|
+
var TOP_WINS_QUERY__NEXT = gql`
|
|
3094
|
+
query TopWins {
|
|
3095
|
+
topWins: _topWins {
|
|
3096
|
+
id
|
|
3097
|
+
game {
|
|
3098
|
+
id
|
|
3099
|
+
name
|
|
3100
|
+
type
|
|
3101
|
+
provider
|
|
3102
|
+
reference
|
|
3103
|
+
}
|
|
3104
|
+
member {
|
|
3105
|
+
id
|
|
3106
|
+
name
|
|
3107
|
+
}
|
|
3108
|
+
multiplier
|
|
3109
|
+
payout
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
`;
|
|
3093
3113
|
var JACKPOTS_QUERY = gql`
|
|
3094
3114
|
query Jackpots(
|
|
3095
3115
|
$first: Int
|
|
@@ -5096,19 +5116,21 @@ var PortalService = class {
|
|
|
5096
5116
|
};
|
|
5097
5117
|
}
|
|
5098
5118
|
async topWinsNext() {
|
|
5099
|
-
const res = await this.client.request(
|
|
5100
|
-
TOP_WINS_NEXT_QUERY,
|
|
5101
|
-
void 0,
|
|
5102
|
-
{
|
|
5103
|
-
method: "GET"
|
|
5104
|
-
}
|
|
5105
|
-
);
|
|
5119
|
+
const res = await this.client.request(TOP_WINS_NEXT_QUERY);
|
|
5106
5120
|
if (!res.ok) return res;
|
|
5107
5121
|
return {
|
|
5108
5122
|
ok: true,
|
|
5109
5123
|
data: res.data._topWins
|
|
5110
5124
|
};
|
|
5111
5125
|
}
|
|
5126
|
+
async topWins__next() {
|
|
5127
|
+
const res = await this.client.request(TOP_WINS_QUERY__NEXT);
|
|
5128
|
+
if (!res.ok) return res;
|
|
5129
|
+
return {
|
|
5130
|
+
ok: true,
|
|
5131
|
+
data: res.data.topWins
|
|
5132
|
+
};
|
|
5133
|
+
}
|
|
5112
5134
|
};
|
|
5113
5135
|
|
|
5114
5136
|
// src/services/report.service.ts
|
|
@@ -5180,9 +5202,7 @@ var ReportService = class {
|
|
|
5180
5202
|
return res.ok ? { ok: res.ok, data: res.data.promoByCode } : res;
|
|
5181
5203
|
}
|
|
5182
5204
|
async jackpots(variables) {
|
|
5183
|
-
const res = await this.client.request(JACKPOTS_QUERY, variables
|
|
5184
|
-
method: "GET"
|
|
5185
|
-
});
|
|
5205
|
+
const res = await this.client.request(JACKPOTS_QUERY, variables);
|
|
5186
5206
|
if (!res.ok) return res;
|
|
5187
5207
|
return {
|
|
5188
5208
|
ok: true,
|
|
@@ -5190,9 +5210,7 @@ var ReportService = class {
|
|
|
5190
5210
|
};
|
|
5191
5211
|
}
|
|
5192
5212
|
async _jackpots(variables) {
|
|
5193
|
-
const res = await this.client.request(_JACKPOTS_QUERY, variables
|
|
5194
|
-
method: "GET"
|
|
5195
|
-
});
|
|
5213
|
+
const res = await this.client.request(_JACKPOTS_QUERY, variables);
|
|
5196
5214
|
if (!res.ok) return res;
|
|
5197
5215
|
return {
|
|
5198
5216
|
ok: true,
|
|
@@ -5200,9 +5218,7 @@ var ReportService = class {
|
|
|
5200
5218
|
};
|
|
5201
5219
|
}
|
|
5202
5220
|
async jackpotsIds(variables) {
|
|
5203
|
-
const res = await this.client.request(JACKPOTS_IDS_QUERY, variables
|
|
5204
|
-
method: "GET"
|
|
5205
|
-
});
|
|
5221
|
+
const res = await this.client.request(JACKPOTS_IDS_QUERY, variables);
|
|
5206
5222
|
if (!res.ok) return res;
|
|
5207
5223
|
return {
|
|
5208
5224
|
ok: true,
|
|
@@ -5218,9 +5234,7 @@ var ReportService = class {
|
|
|
5218
5234
|
};
|
|
5219
5235
|
}
|
|
5220
5236
|
async tournaments(variables) {
|
|
5221
|
-
const res = await this.client.request(TOURNAMENTS_QUERY, variables
|
|
5222
|
-
method: "GET"
|
|
5223
|
-
});
|
|
5237
|
+
const res = await this.client.request(TOURNAMENTS_QUERY, variables);
|
|
5224
5238
|
if (!res.ok) return res;
|
|
5225
5239
|
return {
|
|
5226
5240
|
ok: true,
|
|
@@ -5228,9 +5242,7 @@ var ReportService = class {
|
|
|
5228
5242
|
};
|
|
5229
5243
|
}
|
|
5230
5244
|
async tournamentsIds(variables) {
|
|
5231
|
-
const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables
|
|
5232
|
-
method: "GET"
|
|
5233
|
-
});
|
|
5245
|
+
const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables);
|
|
5234
5246
|
if (!res.ok) return res;
|
|
5235
5247
|
return {
|
|
5236
5248
|
ok: true,
|
|
@@ -5441,11 +5453,14 @@ var WalletService = class {
|
|
|
5441
5453
|
this.client = client;
|
|
5442
5454
|
}
|
|
5443
5455
|
async promos() {
|
|
5444
|
-
const res = await this.client.request(PROMOS_QUERY);
|
|
5456
|
+
const res = await this.client.request(PROMOS_QUERY, void 0);
|
|
5445
5457
|
return res.ok ? { ok: res.ok, data: res.data.promos } : res;
|
|
5446
5458
|
}
|
|
5447
5459
|
async cashbacks() {
|
|
5448
|
-
const res = await this.client.request(
|
|
5460
|
+
const res = await this.client.request(
|
|
5461
|
+
CASHBACKS_QUERY,
|
|
5462
|
+
void 0
|
|
5463
|
+
);
|
|
5449
5464
|
return res.ok ? { ok: res.ok, data: res.data.cashbacks } : res;
|
|
5450
5465
|
}
|
|
5451
5466
|
async promosAndCashbacks() {
|
|
@@ -7767,6 +7782,7 @@ var Transformer = class {
|
|
|
7767
7782
|
promoByCode: this.promoByCode.bind(this),
|
|
7768
7783
|
quest: this.quest.bind(this),
|
|
7769
7784
|
topWin: this.topWin.bind(this),
|
|
7785
|
+
topWin__next: this.topWin__next.bind(this),
|
|
7770
7786
|
jackpots: this.jackpots.bind(this),
|
|
7771
7787
|
jackpotPayouts: this.jackpotPayouts.bind(this),
|
|
7772
7788
|
tournaments: this.tournaments.bind(this),
|
|
@@ -9283,6 +9299,19 @@ var Transformer = class {
|
|
|
9283
9299
|
payout: parseDecimal(data.payout, 0)
|
|
9284
9300
|
};
|
|
9285
9301
|
}
|
|
9302
|
+
topWin__next(data) {
|
|
9303
|
+
const image = `${ENDPOINTS.production.static}/images/${data.game.provider.toLowerCase()}/thumbnail-${data.game.id}.webp?cache_id=${IMAGE_CACHE_ID}`;
|
|
9304
|
+
return {
|
|
9305
|
+
id: data.id,
|
|
9306
|
+
game: {
|
|
9307
|
+
...data.game,
|
|
9308
|
+
images: [image]
|
|
9309
|
+
},
|
|
9310
|
+
member: data.member,
|
|
9311
|
+
multiplier: parseDecimal(data.multiplier, 0),
|
|
9312
|
+
payout: parseDecimal(data.payout, 0)
|
|
9313
|
+
};
|
|
9314
|
+
}
|
|
9286
9315
|
jackpots(data) {
|
|
9287
9316
|
return {
|
|
9288
9317
|
id: data.id,
|
|
@@ -10436,18 +10465,15 @@ var Sdk = class {
|
|
|
10436
10465
|
}
|
|
10437
10466
|
});
|
|
10438
10467
|
}
|
|
10439
|
-
async sendVerificationCode__next(input
|
|
10468
|
+
async sendVerificationCode__next(input) {
|
|
10440
10469
|
if (input.type === "SMS") {
|
|
10441
|
-
return this.authService.sendVerificationCode(
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
},
|
|
10449
|
-
recaptchaResponse
|
|
10450
|
-
);
|
|
10470
|
+
return this.authService.sendVerificationCode({
|
|
10471
|
+
channel: "SMS",
|
|
10472
|
+
recipient: addAreaCode(input.mobileNumber, await this.locale),
|
|
10473
|
+
...input.strict && {
|
|
10474
|
+
verificationType: "MEMBER"
|
|
10475
|
+
}
|
|
10476
|
+
});
|
|
10451
10477
|
}
|
|
10452
10478
|
throw new Error("'Email' verification code is not yet supported");
|
|
10453
10479
|
}
|
|
@@ -11804,6 +11830,14 @@ var Sdk = class {
|
|
|
11804
11830
|
})
|
|
11805
11831
|
};
|
|
11806
11832
|
}
|
|
11833
|
+
async topWins__next() {
|
|
11834
|
+
const res = await this.portalService.topWins__next();
|
|
11835
|
+
if (!res.ok) return res;
|
|
11836
|
+
return {
|
|
11837
|
+
ok: true,
|
|
11838
|
+
data: res.data.map(this.transformer.transform.topWin__next)
|
|
11839
|
+
};
|
|
11840
|
+
}
|
|
11807
11841
|
/*
|
|
11808
11842
|
*=============================================
|
|
11809
11843
|
* JACKPOT
|