@opexa/portal-sdk 0.59.115 → 0.59.117

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
@@ -1726,6 +1726,9 @@ var BONUS_QUERY = gql`
1726
1726
  query Bonus {
1727
1727
  bonus {
1728
1728
  id
1729
+ freeBetDrop {
1730
+ id
1731
+ }
1729
1732
  promo {
1730
1733
  ...PromoFragment
1731
1734
  }
@@ -1757,6 +1760,9 @@ var BONUSES_QUERY = gql`
1757
1760
  query Bonuses {
1758
1761
  bonuses {
1759
1762
  id
1763
+ freeBetDrop {
1764
+ id
1765
+ }
1760
1766
  promo {
1761
1767
  ...PromoFragment
1762
1768
  }
@@ -9941,6 +9947,7 @@ var Transformer = class {
9941
9947
  const name = node.displayName?.trim() || node.name;
9942
9948
  if (!name) return null;
9943
9949
  const fallback = `${ENDPOINTS.production.static}/images/${node.provider.toLowerCase()}/thumbnail-${node.id}.webp`;
9950
+ const fallback2 = `${ENDPOINTS.production.static}/images/${node.provider.toLowerCase()}/thumbnail-${objectId.ObjectId.from(node.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
9944
9951
  return {
9945
9952
  id: node.id,
9946
9953
  reference: node.reference,
@@ -9948,7 +9955,9 @@ var Transformer = class {
9948
9955
  type: node.type,
9949
9956
  provider: node.provider,
9950
9957
  images: [
9951
- ...new Set(node.image?.url ? [node.image.url, fallback] : [fallback])
9958
+ ...new Set(
9959
+ node.image?.url ? [node.image.url, fallback, fallback2] : [fallback, fallback2]
9960
+ )
9952
9961
  ],
9953
9962
  tags: [],
9954
9963
  favorite: false
@@ -10042,6 +10051,9 @@ var Transformer = class {
10042
10051
  bonus(data) {
10043
10052
  const o = {
10044
10053
  id: data.id,
10054
+ freeBetDrop: data.freeBetDrop ? {
10055
+ id: data.freeBetDrop.id
10056
+ } : void 0,
10045
10057
  promo: this.promo(data.promo),
10046
10058
  deposit: !data.deposit ? void 0 : {
10047
10059
  type: data.deposit.type,
@@ -10376,11 +10388,12 @@ var Transformer = class {
10376
10388
  }
10377
10389
  topWin__next(data) {
10378
10390
  const image = `${ENDPOINTS.production.static}/images/${data.game.provider.toLowerCase()}/thumbnail-${data.game.id}.webp?cache_id=${IMAGE_CACHE_ID}`;
10391
+ const imageFallback = `${ENDPOINTS.production.static}/images/${data.game.provider.toLowerCase()}/thumbnail-${objectId.ObjectId.from(data.game.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
10379
10392
  return {
10380
10393
  id: data.id,
10381
10394
  game: {
10382
10395
  ...data.game,
10383
- images: [image]
10396
+ images: [image, imageFallback]
10384
10397
  },
10385
10398
  member: data.member,
10386
10399
  multiplier: parseDecimal(data.multiplier, 0),