@opexa/portal-sdk 0.59.65 → 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/index.cjs CHANGED
@@ -5116,13 +5116,7 @@ var PortalService = class {
5116
5116
  };
5117
5117
  }
5118
5118
  async topWinsNext() {
5119
- const res = await this.client.request(
5120
- TOP_WINS_NEXT_QUERY,
5121
- void 0,
5122
- {
5123
- method: "GET"
5124
- }
5125
- );
5119
+ const res = await this.client.request(TOP_WINS_NEXT_QUERY);
5126
5120
  if (!res.ok) return res;
5127
5121
  return {
5128
5122
  ok: true,
@@ -5130,13 +5124,7 @@ var PortalService = class {
5130
5124
  };
5131
5125
  }
5132
5126
  async topWins__next() {
5133
- const res = await this.client.request(
5134
- TOP_WINS_QUERY__NEXT,
5135
- void 0,
5136
- {
5137
- method: "GET"
5138
- }
5139
- );
5127
+ const res = await this.client.request(TOP_WINS_QUERY__NEXT);
5140
5128
  if (!res.ok) return res;
5141
5129
  return {
5142
5130
  ok: true,
@@ -5214,9 +5202,7 @@ var ReportService = class {
5214
5202
  return res.ok ? { ok: res.ok, data: res.data.promoByCode } : res;
5215
5203
  }
5216
5204
  async jackpots(variables) {
5217
- const res = await this.client.request(JACKPOTS_QUERY, variables, {
5218
- method: "GET"
5219
- });
5205
+ const res = await this.client.request(JACKPOTS_QUERY, variables);
5220
5206
  if (!res.ok) return res;
5221
5207
  return {
5222
5208
  ok: true,
@@ -5224,9 +5210,7 @@ var ReportService = class {
5224
5210
  };
5225
5211
  }
5226
5212
  async _jackpots(variables) {
5227
- const res = await this.client.request(_JACKPOTS_QUERY, variables, {
5228
- method: "GET"
5229
- });
5213
+ const res = await this.client.request(_JACKPOTS_QUERY, variables);
5230
5214
  if (!res.ok) return res;
5231
5215
  return {
5232
5216
  ok: true,
@@ -5234,9 +5218,7 @@ var ReportService = class {
5234
5218
  };
5235
5219
  }
5236
5220
  async jackpotsIds(variables) {
5237
- const res = await this.client.request(JACKPOTS_IDS_QUERY, variables, {
5238
- method: "GET"
5239
- });
5221
+ const res = await this.client.request(JACKPOTS_IDS_QUERY, variables);
5240
5222
  if (!res.ok) return res;
5241
5223
  return {
5242
5224
  ok: true,
@@ -5252,9 +5234,7 @@ var ReportService = class {
5252
5234
  };
5253
5235
  }
5254
5236
  async tournaments(variables) {
5255
- const res = await this.client.request(TOURNAMENTS_QUERY, variables, {
5256
- method: "GET"
5257
- });
5237
+ const res = await this.client.request(TOURNAMENTS_QUERY, variables);
5258
5238
  if (!res.ok) return res;
5259
5239
  return {
5260
5240
  ok: true,
@@ -5262,9 +5242,7 @@ var ReportService = class {
5262
5242
  };
5263
5243
  }
5264
5244
  async tournamentsIds(variables) {
5265
- const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables, {
5266
- method: "GET"
5267
- });
5245
+ const res = await this.client.request(TOURNAMENTS_IDS_QUERY, variables);
5268
5246
  if (!res.ok) return res;
5269
5247
  return {
5270
5248
  ok: true,
@@ -5475,24 +5453,19 @@ var WalletService = class {
5475
5453
  this.client = client;
5476
5454
  }
5477
5455
  async promos() {
5478
- const res = await this.client.request(PROMOS_QUERY, void 0, {
5479
- method: "GET"
5480
- });
5456
+ const res = await this.client.request(PROMOS_QUERY, void 0);
5481
5457
  return res.ok ? { ok: res.ok, data: res.data.promos } : res;
5482
5458
  }
5483
5459
  async cashbacks() {
5484
- const res = await this.client.request(CASHBACKS_QUERY, void 0, {
5485
- method: "GET"
5486
- });
5460
+ const res = await this.client.request(
5461
+ CASHBACKS_QUERY,
5462
+ void 0
5463
+ );
5487
5464
  return res.ok ? { ok: res.ok, data: res.data.cashbacks } : res;
5488
5465
  }
5489
5466
  async promosAndCashbacks() {
5490
5467
  const res = await this.client.request(
5491
- PROMOS_AND_CASHBACKS_QUERY,
5492
- void 0,
5493
- {
5494
- method: "GET"
5495
- }
5468
+ PROMOS_AND_CASHBACKS_QUERY
5496
5469
  );
5497
5470
  return res.ok ? {
5498
5471
  ok: res.ok,
@@ -10492,18 +10465,15 @@ var Sdk = class {
10492
10465
  }
10493
10466
  });
10494
10467
  }
10495
- async sendVerificationCode__next(input, recaptchaResponse) {
10468
+ async sendVerificationCode__next(input) {
10496
10469
  if (input.type === "SMS") {
10497
- return this.authService.sendVerificationCode(
10498
- {
10499
- channel: "SMS",
10500
- recipient: addAreaCode(input.mobileNumber, await this.locale),
10501
- ...input.strict && {
10502
- verificationType: "MEMBER"
10503
- }
10504
- },
10505
- recaptchaResponse
10506
- );
10470
+ return this.authService.sendVerificationCode({
10471
+ channel: "SMS",
10472
+ recipient: addAreaCode(input.mobileNumber, await this.locale),
10473
+ ...input.strict && {
10474
+ verificationType: "MEMBER"
10475
+ }
10476
+ });
10507
10477
  }
10508
10478
  throw new Error("'Email' verification code is not yet supported");
10509
10479
  }