@smartico/public-api 0.0.98 → 0.0.100

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.
@@ -49,3 +49,27 @@ ___
49
49
  • `Optional` **icon**: `string`
50
50
 
51
51
  The URL of the icon of the prize
52
+
53
+ ___
54
+
55
+ ### position
56
+
57
+ • **position**: `number`
58
+
59
+ ___
60
+
61
+ ### aknowledge\_message
62
+
63
+ • **aknowledge\_message**: `string`
64
+
65
+ ___
66
+
67
+ ### acknowledge\_dp
68
+
69
+ • **acknowledge\_dp**: `string`
70
+
71
+ ___
72
+
73
+ ### acknowledge\_action\_title
74
+
75
+ • **acknowledge\_action\_title**: `string`
@@ -116,6 +116,30 @@ The symbol of jackpot that is giving the sense to the 'amount' E.g. the symbol c
116
116
 
117
117
  ___
118
118
 
119
+ ### promo\_image
120
+
121
+ • **promo\_image**: `string`
122
+
123
+ The promo image
124
+
125
+ ___
126
+
127
+ ### promo\_text
128
+
129
+ • **promo\_text**: `string`
130
+
131
+ The promo text
132
+
133
+ ___
134
+
135
+ ### custom\_data
136
+
137
+ • **custom\_data**: `any`
138
+
139
+ The custom data of the mini-game defined by operator. Can be a JSON object, string or number
140
+
141
+ ___
142
+
119
143
  ### prizes
120
144
 
121
145
  • **prizes**: [`TMiniGamePrize`](TMiniGamePrize.md)[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.98",
3
+ "version": "0.0.100",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -69,6 +69,8 @@ export enum ClassId {
69
69
  MARK_INBOX_READ_RESPONSE = 530,
70
70
  MARK_INBOX_STARRED_REQUEST = 531,
71
71
  MARK_INBOX_STARRED_RESPONSE = 532,
72
+ MARK_INBOX_DELETED_REQUEST = 535,
73
+ MARK_INBOX_DELETED_RESPONSE = 536,
72
74
 
73
75
 
74
76
  GET_BONUSES_REQUEST = 600,
@@ -15,4 +15,5 @@ export interface InboxMessage {
15
15
  engagement_uid: string;
16
16
  is_read: boolean;
17
17
  is_starred: boolean;
18
+ is_deleted: boolean;
18
19
  }
@@ -0,0 +1,6 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+ export interface MarkInboxMessageDeletedRequest extends ProtocolMessage {
4
+ engagement_uid?: string;
5
+ all_deleted?: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+ export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
4
+ errCode: number;
5
+ }
@@ -5,4 +5,6 @@ export * from "./InboxMessageType";
5
5
  export * from "./MarkInboxMessageReadRequest";
6
6
  export * from "./MarkInboxMessageReadResponse";
7
7
  export * from "./MarkInboxMessageStarredRequest";
8
- export * from "./MarkInboxMessageStarredResponse";
8
+ export * from "./MarkInboxMessageStarredResponse";
9
+ export * from './MarkInboxMessageDeletedRequest';
10
+ export * from './MarkInboxMessageDeletedResponse';
@@ -1,3 +1,4 @@
1
+ import { IntUtils } from "../IntUtils";
1
2
  import { TMiniGamePrize, TMiniGameTemplate } from "../WSAPI/WSAPITypes";
2
3
  import { ProtocolResponse } from "./../Base/ProtocolResponse";
3
4
  import { SAWBuyInTypeNamed } from "./SAWBuyInType";
@@ -37,6 +38,9 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
37
38
  jackpot_add_on_attempt: r.jackpot_add_on_attempt,
38
39
  jackpot_current: r.jackpot_current,
39
40
  spin_count: r.spin_count,
41
+ promo_image: r.saw_template_ui_definition.promo_image,
42
+ promo_text: r.saw_template_ui_definition.promo_text,
43
+ custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
40
44
 
41
45
  next_available_spin_ts: r.next_available_spin_ts,
42
46
 
@@ -47,7 +51,11 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
47
51
  prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
48
52
  prize_value: p.prize_value,
49
53
  font_size: p.saw_prize_ui_definition.font_size,
50
- icon: p.saw_prize_ui_definition.icon
54
+ icon: p.saw_prize_ui_definition.icon,
55
+ position: p.saw_prize_ui_definition.position,
56
+ aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
57
+ acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
58
+ acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title,
51
59
  }
52
60
  return y;
53
61
  })
@@ -38,4 +38,6 @@ export interface SAWTemplateUI {
38
38
  disable_background_music?: boolean;
39
39
  custom_section_id?: number;
40
40
  only_in_custom_section?: boolean;
41
+
42
+ custom_data: any;
41
43
  }
@@ -24,6 +24,7 @@ export interface UserAchievement {
24
24
  progress?: number;
25
25
  complete_date?: string;
26
26
  unlock_date?: string;
27
+ milliseconds_till_available?: number;
27
28
  completed_tasks?: number;
28
29
  achievementTasks?: UserAchievementTask[];
29
30
  ach_status_id?: AchievementStatus;
@@ -21,6 +21,12 @@ export interface TMiniGamePrize {
21
21
  font_size?: number;
22
22
  /** The URL of the icon of the prize */
23
23
  icon?: string;
24
+ /* for scratch card defines position of prize in the list */
25
+ position: number;
26
+ aknowledge_message: string;
27
+ acknowledge_dp: string;
28
+ acknowledge_action_title: string;
29
+
24
30
  }
25
31
 
26
32
 
@@ -76,6 +82,14 @@ export interface TMiniGameTemplate {
76
82
  /** The symbol of jackpot that is giving the sense to the 'amount' E.g. the symbol could be EUR and connected to the amount it can indicate that amount is monetary, e.g. '100 EUR'. Or the symbol can be 'Free spins' and connected to the amount it can indicate that amount is number of free spins, e.g. '100 Free spins'.
77
83
  */
78
84
  jackpot_symbol: string;
85
+
86
+ /** The promo image */
87
+ promo_image: string;
88
+ /** The promo text */
89
+ promo_text: string;
90
+ /** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
91
+ custom_data: any;
92
+
79
93
 
80
94
  prizes: TMiniGamePrize[];
81
95