@opexa/portal-sdk 0.35.13 → 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 +28 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -12
- package/dist/index.d.ts +34 -12
- package/dist/index.js +28 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
}
|
|
@@ -2141,6 +2154,7 @@ var TOURNAMENTS_QUERY = gql`
|
|
|
2141
2154
|
url
|
|
2142
2155
|
mimeType
|
|
2143
2156
|
}
|
|
2157
|
+
rewardSettings
|
|
2144
2158
|
}
|
|
2145
2159
|
}
|
|
2146
2160
|
}
|
|
@@ -5801,7 +5815,15 @@ var Transformer = class {
|
|
|
5801
5815
|
content: data.content,
|
|
5802
5816
|
actions: data.actions,
|
|
5803
5817
|
markedAsRead: data.markedAsRead,
|
|
5804
|
-
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
|
+
}
|
|
5805
5827
|
};
|
|
5806
5828
|
}
|
|
5807
5829
|
instapayBank(data) {
|
|
@@ -5956,15 +5978,10 @@ var Transformer = class {
|
|
|
5956
5978
|
status: data.status,
|
|
5957
5979
|
activationEndDateTime: new Date(data.activationEndDateTime),
|
|
5958
5980
|
activationStartDateTime: new Date(data.activationStartDateTime),
|
|
5959
|
-
topPayouts: {
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
member: {
|
|
5964
|
-
id: data.topPayouts.member?.id,
|
|
5965
|
-
name: data.topPayouts.member?.name
|
|
5966
|
-
}
|
|
5967
|
-
},
|
|
5981
|
+
topPayouts: data.topPayouts.map((payout) => ({
|
|
5982
|
+
...payout,
|
|
5983
|
+
amount: parseDecimal(payout.amount, 0)
|
|
5984
|
+
})),
|
|
5968
5985
|
enabledGameProviders: data.enabledGameProviders,
|
|
5969
5986
|
frequency: data.frequency,
|
|
5970
5987
|
mode: data.mode,
|
|
@@ -5978,6 +5995,7 @@ var Transformer = class {
|
|
|
5978
5995
|
url: data.webBanner?.url,
|
|
5979
5996
|
mimeType: data.webBanner?.mimeType
|
|
5980
5997
|
},
|
|
5998
|
+
rewardSettings: data.rewardSettings,
|
|
5981
5999
|
currentLeaderboard: {
|
|
5982
6000
|
currentLeaderboard: data.currentLeaderboard?.edges.map(({ cursor, node }) => ({
|
|
5983
6001
|
cursor,
|