@smartico/public-api 0.0.33 → 0.0.35

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.
@@ -1,3 +1,4 @@
1
1
  import { ProtocolRequest } from "./../Base/ProtocolRequest";
2
2
  export interface SAWGetTemplatesRequest extends ProtocolRequest {
3
+ force_language?: string;
3
4
  }
@@ -1,6 +1,7 @@
1
1
  export interface AchievementPublicMeta {
2
2
  description?: string;
3
3
  unlock_mission_description?: string;
4
+ custom_data?: string;
4
5
  cta_text?: string;
5
6
  cta_action?: string;
6
7
  label_tag?: string;
@@ -40,4 +40,5 @@ export interface Tournament {
40
40
  playersMaxCount?: number;
41
41
  /** Tournament duration in millisecnnds */
42
42
  durationMs?: number;
43
+ custom_data?: string;
43
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import { ProtocolRequest } from "./../Base/ProtocolRequest";
2
2
 
3
3
  export interface SAWGetTemplatesRequest extends ProtocolRequest {
4
-
4
+ force_language?: string; // request templates in the defined language instead of the language of the user
5
5
  }
@@ -2,6 +2,7 @@ export interface AchievementPublicMeta {
2
2
 
3
3
  description?: string;
4
4
  unlock_mission_description?: string;
5
+ custom_data?: string;
5
6
  cta_text?: string;
6
7
  cta_action?: string;
7
8
  label_tag?: string;
@@ -42,6 +42,9 @@ export interface Tournament {
42
42
  playersMaxCount?: number;
43
43
  /** Tournament duration in millisecnnds */
44
44
  durationMs?: number;
45
+
46
+ // custom data as string or JSON string that can be used in UIWidget
47
+ custom_data?: string;
45
48
  }
46
49
 
47
50