@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.
@@ -72,3 +72,11 @@ ___
72
72
  The counter of 2nd metric used to reach the Level.
73
73
  Relevant in case of using advanced leveling logic
74
74
  https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
75
+
76
+ ___
77
+
78
+ ### custom\_data
79
+
80
+ • **custom\_data**: `string`
81
+
82
+ The custom data of the mini-game defined by operator. Can be a JSON object, string or number
@@ -176,11 +176,8 @@ List of casino games (or other types of entities) related to the mission or badg
176
176
 
177
177
  ___
178
178
 
179
-
180
179
  ### category\_ids
181
180
 
182
181
  • **category\_ids**: `number`[]
183
182
 
184
183
  The list of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method
185
-
186
- ___
@@ -99,7 +99,7 @@ ___
99
99
 
100
100
  • **category\_ids**: `number`[]
101
101
 
102
- The list of IDs of the categories where the store item is assigned, information about categories can be retrievend with getStoreCategories method
102
+ The list of IDs of the categories where the store item is assigned, information about categories can be retrieved with getStoreCategories method
103
103
 
104
104
  ___
105
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.110",
3
+ "version": "0.0.111",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { IntUtils } from "src/IntUtils";
1
2
  import { ProtocolResponse } from "../Base/ProtocolResponse";
2
3
  import { TLevel } from "../WSAPI/WSAPITypes";
3
4
  import { Level } from "./Level";
@@ -19,5 +20,6 @@ export const GetLevelMapResponseTransform = (levels: GetLevelMapResponse): TLeve
19
20
  visibility_points: parseInt(l.level_public_meta.visibility_points as any),
20
21
  required_level_counter_1: l.required_level_counter_1,
21
22
  required_level_counter_2: l.required_level_counter_2,
23
+ custom_data: IntUtils.JsonOrText(l.level_public_meta?.custom_data),
22
24
  })));
23
25
  }
@@ -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
  }
@@ -166,6 +166,9 @@ export interface TLevel {
166
166
  *
167
167
  */
168
168
  required_level_counter_2: number,
169
+
170
+ /** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
171
+ custom_data: string;
169
172
  }
170
173
 
171
174
  /**