@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
package/dist/Base/ClassId.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export declare enum ClassId {
|
|
|
58
58
|
MARK_INBOX_READ_RESPONSE = 530,
|
|
59
59
|
MARK_INBOX_STARRED_REQUEST = 531,
|
|
60
60
|
MARK_INBOX_STARRED_RESPONSE = 532,
|
|
61
|
+
MARK_INBOX_DELETED_REQUEST = 535,
|
|
62
|
+
MARK_INBOX_DELETED_RESPONSE = 536,
|
|
61
63
|
GET_BONUSES_REQUEST = 600,
|
|
62
64
|
GET_BONUSES_RESPONSE = 601,
|
|
63
65
|
CLAIM_BONUS_REQUEST = 602,
|
package/dist/Inbox/index.d.ts
CHANGED
|
@@ -6,3 +6,5 @@ export * from "./MarkInboxMessageReadRequest";
|
|
|
6
6
|
export * from "./MarkInboxMessageReadResponse";
|
|
7
7
|
export * from "./MarkInboxMessageStarredRequest";
|
|
8
8
|
export * from "./MarkInboxMessageStarredResponse";
|
|
9
|
+
export * from './MarkInboxMessageDeletedRequest';
|
|
10
|
+
export * from './MarkInboxMessageDeletedResponse';
|
|
@@ -18,6 +18,10 @@ export interface TMiniGamePrize {
|
|
|
18
18
|
font_size?: number;
|
|
19
19
|
/** The URL of the icon of the prize */
|
|
20
20
|
icon?: string;
|
|
21
|
+
position: number;
|
|
22
|
+
aknowledge_message: string;
|
|
23
|
+
acknowledge_dp: string;
|
|
24
|
+
acknowledge_action_title: string;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
@@ -63,6 +67,12 @@ export interface TMiniGameTemplate {
|
|
|
63
67
|
/** 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'.
|
|
64
68
|
*/
|
|
65
69
|
jackpot_symbol: string;
|
|
70
|
+
/** The promo image */
|
|
71
|
+
promo_image: string;
|
|
72
|
+
/** The promo text */
|
|
73
|
+
promo_text: string;
|
|
74
|
+
/** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
|
|
75
|
+
custom_data: any;
|
|
66
76
|
prizes: TMiniGamePrize[];
|
|
67
77
|
}
|
|
68
78
|
/**
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,8 @@ exports.ClassId = void 0;
|
|
|
62
62
|
ClassId[ClassId["MARK_INBOX_READ_RESPONSE"] = 530] = "MARK_INBOX_READ_RESPONSE";
|
|
63
63
|
ClassId[ClassId["MARK_INBOX_STARRED_REQUEST"] = 531] = "MARK_INBOX_STARRED_REQUEST";
|
|
64
64
|
ClassId[ClassId["MARK_INBOX_STARRED_RESPONSE"] = 532] = "MARK_INBOX_STARRED_RESPONSE";
|
|
65
|
+
ClassId[ClassId["MARK_INBOX_DELETED_REQUEST"] = 535] = "MARK_INBOX_DELETED_REQUEST";
|
|
66
|
+
ClassId[ClassId["MARK_INBOX_DELETED_RESPONSE"] = 536] = "MARK_INBOX_DELETED_RESPONSE";
|
|
65
67
|
ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
|
|
66
68
|
ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
|
|
67
69
|
ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
|
|
@@ -289,6 +291,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
289
291
|
jackpot_add_on_attempt: r.jackpot_add_on_attempt,
|
|
290
292
|
jackpot_current: r.jackpot_current,
|
|
291
293
|
spin_count: r.spin_count,
|
|
294
|
+
promo_image: r.saw_template_ui_definition.promo_image,
|
|
295
|
+
promo_text: r.saw_template_ui_definition.promo_text,
|
|
296
|
+
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
292
297
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
293
298
|
prizes: r.prizes.map(function (p) {
|
|
294
299
|
var y = {
|
|
@@ -297,7 +302,11 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
297
302
|
prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
|
|
298
303
|
prize_value: p.prize_value,
|
|
299
304
|
font_size: p.saw_prize_ui_definition.font_size,
|
|
300
|
-
icon: p.saw_prize_ui_definition.icon
|
|
305
|
+
icon: p.saw_prize_ui_definition.icon,
|
|
306
|
+
position: p.saw_prize_ui_definition.position,
|
|
307
|
+
aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
|
|
308
|
+
acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
|
|
309
|
+
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title
|
|
301
310
|
};
|
|
302
311
|
return y;
|
|
303
312
|
})
|