@opexa/portal-sdk 0.59.134 → 0.59.136

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.
@@ -39,5 +39,5 @@ var ERROR_MAP = {
39
39
  };
40
40
 
41
41
  export { callIfFn, gql, statusCodeToOperationError };
42
- //# sourceMappingURL=chunk-BTV72WJH.js.map
43
- //# sourceMappingURL=chunk-BTV72WJH.js.map
42
+ //# sourceMappingURL=chunk-77N5VUZS.js.map
43
+ //# sourceMappingURL=chunk-77N5VUZS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/gql.ts","../src/utils/call-if-fn.ts","../src/utils/status-code-to-operation-error.ts"],"names":[],"mappings":";AAAO,SAAS,GAAA,CAAI,YAAkC,MAAA,EAAmB;AACxE,EAAA,IAAI,MAAA,GAAS,EAAA;AAEb,EAAA,KAAA,MAAW,CAAC,KAAA,EAAO,MAAM,CAAA,IAAK,OAAA,CAAQ,SAAQ,EAAG;AAChD,IAAA,MAAM,KAAA,GAAQ,MAAA,CAAO,EAAA,CAAG,KAAK,CAAA,IAAK,EAAA;AAElC,IAAA,MAAA,GAAS,CAAA,EAAG,MAAM,CAAA,EAAG,MAAM,GAAG,KAAK,CAAA,CAAA;AAAA,EACpC;AAEA,EAAA,OAAO,OAAO,IAAA,EAAK;AACpB;;;ACVA,SAAS,WACR,KAAA,EACuC;AACvC,EAAA,OAAO,OAAO,KAAA,KAAU,UAAA;AACzB;AAEO,SAAS,QAAA,CACf,UACG,IAAA,EACF;AACD,EAAA,IAAI,UAAA,CAAyB,KAAK,CAAA,EAAG;AACpC,IAAA,OAAO,KAAA,CAAM,GAAG,IAAI,CAAA;AAAA,EACrB,CAAA,MAAO;AACN,IAAA,OAAO,KAAA;AAAA,EACR;AACD;;;ACbO,SAAS,0BAAA,CACf,OACA,OAAA,EAC4B;AAC5B,EAAA,MAAM,CAAA,GAAI,UAAU,KAAK,CAAA,GAAI,UAAU,KAAK,CAAA,GAAI,UAAU,GAAG,CAAA;AAE7D,EAAA,OAAO;AAAA,IACN,MAAM,CAAA,CAAE,IAAA;AAAA,IACR,OAAA,EAAS,WAAW,CAAA,CAAE;AAAA,GACvB;AACD;AAEA,IAAM,SAAA,GAAuD;AAAA,EAC5D,GAAA,EAAK,EAAE,IAAA,EAAM,gBAAA,EAAkB,SAAS,aAAA,EAAc;AAAA,EACtD,GAAA,EAAK,EAAE,IAAA,EAAM,kBAAA,EAAoB,SAAS,cAAA,EAAe;AAAA,EACzD,GAAA,EAAK,EAAE,IAAA,EAAM,eAAA,EAAiB,SAAS,WAAA,EAAY;AAAA,EACnD,GAAA,EAAK,EAAE,IAAA,EAAM,cAAA,EAAgB,SAAS,WAAA,EAAY;AAAA,EAClD,GAAA,EAAK,EAAE,IAAA,EAAM,oBAAA,EAAsB,SAAS,iBAAA,EAAkB;AAAA,EAC9D,GAAA,EAAK,EAAE,IAAA,EAAM,qBAAA,EAAuB,SAAS,mBAAA,EAAoB;AAAA,EACjE,GAAA,EAAK,EAAE,IAAA,EAAM,yBAAA,EAA2B,SAAS,uBAAA;AAClD,CAAA","file":"chunk-77N5VUZS.js","sourcesContent":["export function gql(strings: TemplateStringsArray, ...values: unknown[]) {\n\tlet result = '';\n\n\tfor (const [index, string] of strings.entries()) {\n\t\tconst value = values.at(index) ?? '';\n\n\t\tresult = `${result}${string}${value}`;\n\t}\n\n\treturn result.trim();\n}\n","function isFunction<Return, Args = never>(\n\tvalue: unknown | ((...args: Args[]) => Return),\n): value is (...args: Args[]) => Return {\n\treturn typeof value === 'function';\n}\n\nexport function callIfFn<Return, Args = never>(\n\tvalue: Return | ((...args: Args[]) => Return),\n\t...args: Args[]\n) {\n\tif (isFunction<Return, Args>(value)) {\n\t\treturn value(...args);\n\t} else {\n\t\treturn value;\n\t}\n}\n","import type { HttpError, OperationError } from '../types/index.js';\n\nexport function statusCodeToOperationError(\n\tvalue: number,\n\tmessage?: string,\n): OperationError<HttpError> {\n\tconst e = ERROR_MAP[value] ? ERROR_MAP[value] : ERROR_MAP[500];\n\n\treturn {\n\t\tname: e.name,\n\t\tmessage: message ?? e.message,\n\t};\n}\n\nconst ERROR_MAP: Record<number, OperationError<HttpError>> = {\n\t400: { name: 'HttpBadRequest', message: 'Bad Request' },\n\t401: { name: 'HttpUnauthorized', message: 'Unauthorized' },\n\t403: { name: 'HttpForbidden', message: 'Forbidden' },\n\t404: { name: 'HttpNotFound', message: 'Not Found' },\n\t408: { name: 'HttpRequestTimeout', message: 'Request Timeout' },\n\t429: { name: 'HttpTooManyRequests', message: 'Too Many Requests' },\n\t500: { name: 'HttpInternalServerError', message: 'Internal Server Error' },\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { gql, callIfFn, statusCodeToOperationError } from './chunk-BTV72WJH.js';
1
+ import { gql, callIfFn, statusCodeToOperationError } from './chunk-77N5VUZS.js';
2
2
  import { Thumbmark } from '@thumbmarkjs/thumbmarkjs';
3
3
  import { Capacitor } from '@capacitor/core';
4
4
 
@@ -1555,6 +1555,17 @@ var PROMO_FRAGMENT = gql`
1555
1555
  depositBonusAmountPercentage
1556
1556
  activationStartDateTime
1557
1557
  turnoverRequirementContributionPercentagePerGameProvider
1558
+ turnoverRequirementContributionPercentageSettings {
1559
+ gameCategories {
1560
+ gameProvider
1561
+ gameType
1562
+ percentage
1563
+ }
1564
+ games {
1565
+ game
1566
+ percentage
1567
+ }
1568
+ }
1558
1569
  activationEndDateTime
1559
1570
  dateTimeCreated
1560
1571
  dateTimeLastUpdated
@@ -1590,6 +1601,17 @@ var SPOT_BONUS_FRAGMENT = gql`
1590
1601
  turnoverRequirementType
1591
1602
  minimumTicketOddFactorPerSportsGameProvider
1592
1603
  turnoverRequirementContributionPercentagePerGameProvider
1604
+ turnoverRequirementContributionPercentageSettings {
1605
+ gameCategories {
1606
+ gameProvider
1607
+ gameType
1608
+ percentage
1609
+ }
1610
+ games {
1611
+ game
1612
+ percentage
1613
+ }
1614
+ }
1593
1615
  bonusAmount
1594
1616
  enabledGameProviders
1595
1617
  activationStartDateTime
@@ -1693,6 +1715,17 @@ var PROMOS_AND_CASHBACKS_QUERY = gql`
1693
1715
  depositBonusAmountPercentage
1694
1716
  activationStartDateTime
1695
1717
  turnoverRequirementContributionPercentagePerGameProvider
1718
+ turnoverRequirementContributionPercentageSettings {
1719
+ gameCategories {
1720
+ gameProvider
1721
+ gameType
1722
+ percentage
1723
+ }
1724
+ games {
1725
+ game
1726
+ percentage
1727
+ }
1728
+ }
1696
1729
  activationEndDateTime
1697
1730
  dateTimeCreated
1698
1731
  dateTimeLastUpdated
@@ -1725,6 +1758,17 @@ var BONUS_QUERY = gql`
1725
1758
  balance
1726
1759
  turnoverRequirement
1727
1760
  turnoverRequirementContributionPercentagePerGameProvider
1761
+ turnoverRequirementContributionPercentageSettings {
1762
+ gameCategories {
1763
+ gameProvider
1764
+ gameType
1765
+ percentage
1766
+ }
1767
+ games {
1768
+ game
1769
+ percentage
1770
+ }
1771
+ }
1728
1772
  currentTurnoverRequirementContribution
1729
1773
  currentTurnoverRequirementContributionPercentage
1730
1774
  expiration
@@ -1761,6 +1805,17 @@ var BONUSES_QUERY = gql`
1761
1805
  currentTurnoverRequirementContribution
1762
1806
  currentTurnoverRequirementContributionPercentage
1763
1807
  turnoverRequirementContributionPercentagePerGameProvider
1808
+ turnoverRequirementContributionPercentageSettings {
1809
+ gameCategories {
1810
+ gameProvider
1811
+ gameType
1812
+ percentage
1813
+ }
1814
+ games {
1815
+ game
1816
+ percentage
1817
+ }
1818
+ }
1764
1819
  enabledGameProviders
1765
1820
  expiration
1766
1821
  dateTimeCreated
@@ -7142,5 +7197,5 @@ var ExtensionService = class {
7142
7197
  };
7143
7198
 
7144
7199
  export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint, isIOSPlatform };
7145
- //# sourceMappingURL=chunk-SBPWGV33.js.map
7146
- //# sourceMappingURL=chunk-SBPWGV33.js.map
7200
+ //# sourceMappingURL=chunk-WR5RNSY2.js.map
7201
+ //# sourceMappingURL=chunk-WR5RNSY2.js.map