@opexa/portal-sdk 0.35.14 → 0.36.0

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
@@ -1784,6 +1784,19 @@ var MESSAGES_QUERY = gql`
1784
1784
  }
1785
1785
  markedAsRead
1786
1786
  dateTimeCreated
1787
+ type
1788
+ metadata {
1789
+ ... on TournamentPayoutMessageMetadata {
1790
+ tournament {
1791
+ id
1792
+ name
1793
+ }
1794
+ payout {
1795
+ id
1796
+ amount
1797
+ }
1798
+ }
1799
+ }
1787
1800
  }
1788
1801
  }
1789
1802
  }
@@ -5802,7 +5815,15 @@ var Transformer = class {
5802
5815
  content: data.content,
5803
5816
  actions: data.actions,
5804
5817
  markedAsRead: data.markedAsRead,
5805
- dateTimeCreated: new Date(data.dateTimeCreated)
5818
+ dateTimeCreated: new Date(data.dateTimeCreated),
5819
+ type: data.type,
5820
+ metadata: !data.metadata ? null : {
5821
+ tournament: data.metadata.tournament,
5822
+ payout: {
5823
+ id: data.metadata.payout.id,
5824
+ amount: parseDecimal(data.metadata.payout.amount, 0)
5825
+ }
5826
+ }
5806
5827
  };
5807
5828
  }
5808
5829
  instapayBank(data) {