@smartico/public-api 0.0.110 → 0.0.111

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.
@@ -14,4 +14,6 @@ export interface LevelPublicMeta {
14
14
  dx: number;
15
15
  dy: number;
16
16
  };
17
+ /**custom data as string or JSON string that can be used in UIWidget */
18
+ custom_data: string;
17
19
  }
@@ -139,6 +139,8 @@ export interface TLevel {
139
139
  *
140
140
  */
141
141
  required_level_counter_2: number;
142
+ /** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
143
+ custom_data: string;
142
144
  }
143
145
  /**
144
146
  * TTournament describes the general information of the tournament item
package/dist/index.js CHANGED
@@ -953,6 +953,7 @@ exports.TournamentType = void 0;
953
953
 
954
954
  var GetLevelMapResponseTransform = function GetLevelMapResponseTransform(levels) {
955
955
  return levels == null ? void 0 : levels.levels.map(function (l) {
956
+ var _l$level_public_meta;
956
957
  return {
957
958
  id: l.level_id,
958
959
  name: l.level_public_meta.name,
@@ -961,7 +962,8 @@ var GetLevelMapResponseTransform = function GetLevelMapResponseTransform(levels)
961
962
  required_points: l.required_points,
962
963
  visibility_points: parseInt(l.level_public_meta.visibility_points),
963
964
  required_level_counter_1: l.required_level_counter_1,
964
- required_level_counter_2: l.required_level_counter_2
965
+ required_level_counter_2: l.required_level_counter_2,
966
+ custom_data: IntUtils.JsonOrText((_l$level_public_meta = l.level_public_meta) == null ? void 0 : _l$level_public_meta.custom_data)
965
967
  };
966
968
  });
967
969
  };