@opexa/portal-sdk 0.59.128 → 0.59.130

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.
@@ -2586,6 +2586,9 @@ var MEMBER_ACHIEVEMENTS_QUERY = gql`
2586
2586
  `;
2587
2587
  var PAYMENT_SETTINGS_QUERY = gql`
2588
2588
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
2589
+ suspended
2590
+ suspensionStartDateTime
2591
+ suspensionEndDateTime
2589
2592
  minimumAmount
2590
2593
  maximumAmount
2591
2594
  webEnabled
@@ -2603,6 +2606,9 @@ var PAYMENT_SETTINGS_QUERY = gql`
2603
2606
  }
2604
2607
 
2605
2608
  fragment WithdrawalGatewaySettingsCoreData on WithdrawalGatewaySettings {
2609
+ suspended
2610
+ suspensionStartDateTime
2611
+ suspensionEndDateTime
2606
2612
  minimumAmount
2607
2613
  maximumAmount
2608
2614
  webEnabled
@@ -4833,6 +4839,15 @@ function isIOSPlatform() {
4833
4839
  }
4834
4840
 
4835
4841
  // src/services/auth.service.ts
4842
+ function getCompatibleSignal(signal) {
4843
+ if (!signal) return void 0;
4844
+ try {
4845
+ new Request("about:blank", { signal });
4846
+ return signal;
4847
+ } catch {
4848
+ return void 0;
4849
+ }
4850
+ }
4836
4851
  var AuthService = class {
4837
4852
  url;
4838
4853
  graphqlClient;
@@ -5000,7 +5015,7 @@ var AuthService = class {
5000
5015
  }
5001
5016
  throw new Error("Invalid input 'type'");
5002
5017
  }
5003
- async refreshSession(refreshToken, version = 1) {
5018
+ async refreshSession(refreshToken, version = 1, signal) {
5004
5019
  const headers = new Headers(this.headers);
5005
5020
  if (version !== 4 || refreshToken) {
5006
5021
  headers.append("Authorization", `Bearer ${refreshToken}`);
@@ -5019,6 +5034,7 @@ var AuthService = class {
5019
5034
  {
5020
5035
  method: "POST",
5021
5036
  headers,
5037
+ signal: getCompatibleSignal(signal),
5022
5038
  ...version === 4 && { credentials: "include" }
5023
5039
  }
5024
5040
  );
@@ -5087,13 +5103,14 @@ var AuthService = class {
5087
5103
  return { ok: false, error: statusCodeToOperationError(500) };
5088
5104
  }
5089
5105
  }
5090
- async verifySession(accessToken) {
5106
+ async verifySession(accessToken, signal) {
5091
5107
  const headers = new Headers(this.headers);
5092
5108
  headers.append("Authorization", `Bearer ${accessToken}`);
5093
5109
  try {
5094
5110
  const res = await fetch(`${this.url}/session`, {
5095
5111
  method: "GET",
5096
- headers
5112
+ headers,
5113
+ signal: getCompatibleSignal(signal)
5097
5114
  });
5098
5115
  return res.ok;
5099
5116
  } catch {
@@ -7095,5 +7112,5 @@ var ExtensionService = class {
7095
7112
  };
7096
7113
 
7097
7114
  export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint, isIOSPlatform };
7098
- //# sourceMappingURL=chunk-JPJWVATW.js.map
7099
- //# sourceMappingURL=chunk-JPJWVATW.js.map
7115
+ //# sourceMappingURL=chunk-C4PXAY2Y.js.map
7116
+ //# sourceMappingURL=chunk-C4PXAY2Y.js.map