@smartico/public-api 0.0.105 → 0.0.106

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/README.md CHANGED
@@ -43,7 +43,8 @@ See the [API documentation](docs/classes/WSAPI.md) for all available methods and
43
43
 
44
44
  ## Backend usage (NodeJS context)
45
45
 
46
- Note: access to the API is not provided by default and is topic for a separate agreement with Smartico
46
+ Note: access to the server-to-server API is not provided by default and is a topic for a separate agreement with Smartico.
47
+ We recommend using a front-end API approach in most cases.
47
48
 
48
49
  ### Installation
49
50
 
package/dist/index.js CHANGED
@@ -855,6 +855,11 @@ var tournamentInfoItemTransform = function tournamentInfoItemTransform(t) {
855
855
  return TournamentUtils.getPlayerTransformed(p);
856
856
  })
857
857
  });
858
+ if (t.prizeStructure) {
859
+ response.prizes = t.prizeStructure.prizes.map(function (p) {
860
+ return TournamentUtils.getPrizeTransformed(p);
861
+ });
862
+ }
858
863
  if (t.userPosition) {
859
864
  response.me = TournamentUtils.getPlayerTransformed(t.userPosition, true);
860
865
  }