@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.
- package/dist/Base/ClassId.d.ts +2 -0
- package/dist/Inbox/InboxMessage.d.ts +1 -0
- package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +5 -0
- package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +4 -0
- package/dist/Inbox/index.d.ts +2 -0
- package/dist/MiniGames/SAWTemplateUI.d.ts +1 -0
- package/dist/Missions/UserAchievement.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +10 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +10 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGamePrize.md +24 -0
- package/docs/interfaces/TMiniGameTemplate.md +24 -0
- package/package.json +1 -1
- package/src/Base/ClassId.ts +2 -0
- package/src/Inbox/InboxMessage.ts +1 -0
- package/src/Inbox/MarkInboxMessageDeletedRequest.ts +6 -0
- package/src/Inbox/MarkInboxMessageDeletedResponse.ts +5 -0
- package/src/Inbox/index.ts +3 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +9 -1
- package/src/MiniGames/SAWTemplateUI.ts +2 -0
- package/src/Missions/UserAchievement.ts +1 -0
- package/src/WSAPI/WSAPITypes.ts +14 -0
|
@@ -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
package/src/Base/ClassId.ts
CHANGED
package/src/Inbox/index.ts
CHANGED
|
@@ -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
|
})
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -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
|
|