@smartico/public-api 0.0.117 → 0.0.119
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/Core/PublicLabelSettings.d.ts +0 -2
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +5 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -4
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/PublicLabelSettings.ts +0 -2
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWPrizeUI.ts +1 -0
- package/src/Missions/UserAchievement.ts +1 -0
- package/src/Store/StoreItem.ts +1 -1
- package/src/Tournaments/Tournament.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +6 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare enum PublicLabelSettings {
|
|
2
|
-
FCM_SENDER_ID = "FCM_SENDER_ID",
|
|
3
2
|
PUBLIC_API_URL = "PUBLIC_API_URL",
|
|
4
|
-
FCM_SW_URL = "FCM_SW_URL",
|
|
5
3
|
RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
|
|
6
4
|
JS_INJECTION = "JS_INJECTION",
|
|
7
5
|
GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
|
|
@@ -15,8 +15,10 @@ export interface TMiniGamePrize {
|
|
|
15
15
|
prize_type: MiniGamePrizeTypeName;
|
|
16
16
|
/** Numeric value of the prize in case it's pints or spin type */
|
|
17
17
|
prize_value?: number;
|
|
18
|
-
/** Custom font size for the prize */
|
|
18
|
+
/** Custom font size for the prize (desktop) */
|
|
19
19
|
font_size?: number;
|
|
20
|
+
/** Custom font size for the prize (mobile) */
|
|
21
|
+
font_size_mobile?: number;
|
|
20
22
|
/** The URL of the icon of the prize */
|
|
21
23
|
icon?: string;
|
|
22
24
|
position: number;
|
|
@@ -396,6 +398,8 @@ export interface TMissionOrBadge {
|
|
|
396
398
|
hint_text?: string;
|
|
397
399
|
/** Priority (or position) of the mission in the UI. Low value indicates higher position in the UI */
|
|
398
400
|
position?: number;
|
|
401
|
+
/** The ribbon of the mission/badge item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon */
|
|
402
|
+
ribbon?: TRibbon;
|
|
399
403
|
}
|
|
400
404
|
export interface AchRelatedGame {
|
|
401
405
|
/** The ID of the related game */
|
package/dist/index.js
CHANGED
|
@@ -304,6 +304,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
304
304
|
prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
|
|
305
305
|
prize_value: p.prize_value,
|
|
306
306
|
font_size: p.saw_prize_ui_definition.font_size,
|
|
307
|
+
font_size_mobile: p.saw_prize_ui_definition.font_size_mobile,
|
|
307
308
|
icon: p.saw_prize_ui_definition.icon,
|
|
308
309
|
position: p.saw_prize_ui_definition.position,
|
|
309
310
|
aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
|
|
@@ -494,9 +495,7 @@ CoreUtils.avatarUrl = function (avatar_id, avatarDomain) {
|
|
|
494
495
|
|
|
495
496
|
exports.PublicLabelSettings = void 0;
|
|
496
497
|
(function (PublicLabelSettings) {
|
|
497
|
-
PublicLabelSettings["FCM_SENDER_ID"] = "FCM_SENDER_ID";
|
|
498
498
|
PublicLabelSettings["PUBLIC_API_URL"] = "PUBLIC_API_URL";
|
|
499
|
-
PublicLabelSettings["FCM_SW_URL"] = "FCM_SW_URL";
|
|
500
499
|
PublicLabelSettings["RECORDING_ENABLED_FOR_ALL_USERS"] = "RECORDING_ENABLED_FOR_ALL_USERS";
|
|
501
500
|
PublicLabelSettings["JS_INJECTION"] = "JS_INJECTION";
|
|
502
501
|
PublicLabelSettings["GAMIFICATION_UI_MAIN"] = "GAMIFICATION_UI_MAIN";
|
|
@@ -623,7 +622,7 @@ var StoreItemTransform = function StoreItemTransform(items) {
|
|
|
623
622
|
price: r.itemPublicMeta.price,
|
|
624
623
|
image: r.itemPublicMeta.image_url,
|
|
625
624
|
description: r.itemPublicMeta.description,
|
|
626
|
-
ribbon: r.itemPublicMeta.custom_label_tag
|
|
625
|
+
ribbon: r.itemPublicMeta.label_tag === 'custom' ? r.itemPublicMeta.custom_label_tag : r.itemPublicMeta.label_tag,
|
|
627
626
|
limit_message: r.itemPublicMeta.limit_message,
|
|
628
627
|
priority: r.itemPublicMeta.priority,
|
|
629
628
|
related_item_ids: r.itemPublicMeta.related_items,
|
|
@@ -686,6 +685,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
686
685
|
only_in_custom_section: r.ach_public_meta.only_in_custom_section,
|
|
687
686
|
custom_data: IntUtils.JsonOrText(r.ach_public_meta.custom_data),
|
|
688
687
|
position: r.ach_public_meta.position,
|
|
688
|
+
ribbon: r.ach_public_meta.label_tag === 'custom' ? r.ach_public_meta.custom_label_tag : r.ach_public_meta.label_tag,
|
|
689
689
|
tasks: (r.achievementTasks || []).filter(function (t) {
|
|
690
690
|
return t.task_type_id === exports.AchievementTaskType.CompleteAchievement;
|
|
691
691
|
}).map(function (t) {
|
|
@@ -797,7 +797,7 @@ var TournamentItemsTransform = function TournamentItemsTransform(items) {
|
|
|
797
797
|
custom_section_id: r.publicMeta.custom_section_id,
|
|
798
798
|
custom_data: IntUtils.JsonOrText(r.publicMeta.custom_data),
|
|
799
799
|
is_featured: r.publicMeta.featured,
|
|
800
|
-
ribbon: r.publicMeta.label_tag,
|
|
800
|
+
ribbon: r.publicMeta.label_tag === 'custom' ? r.publicMeta.custom_label_tag : r.publicMeta.label_tag,
|
|
801
801
|
priority: r.publicMeta.position,
|
|
802
802
|
start_time: r.startTimeTs,
|
|
803
803
|
end_time: r.endTimeTs,
|