@smartico/public-api 0.0.117 → 0.0.118
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/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -4
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/PublicLabelSettings.ts +0 -2
- 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 +3 -0
package/dist/index.modern.mjs
CHANGED
|
@@ -449,9 +449,7 @@ CoreUtils.avatarUrl = (avatar_id, avatarDomain) => {
|
|
|
449
449
|
|
|
450
450
|
var PublicLabelSettings;
|
|
451
451
|
(function (PublicLabelSettings) {
|
|
452
|
-
PublicLabelSettings["FCM_SENDER_ID"] = "FCM_SENDER_ID";
|
|
453
452
|
PublicLabelSettings["PUBLIC_API_URL"] = "PUBLIC_API_URL";
|
|
454
|
-
PublicLabelSettings["FCM_SW_URL"] = "FCM_SW_URL";
|
|
455
453
|
PublicLabelSettings["RECORDING_ENABLED_FOR_ALL_USERS"] = "RECORDING_ENABLED_FOR_ALL_USERS";
|
|
456
454
|
PublicLabelSettings["JS_INJECTION"] = "JS_INJECTION";
|
|
457
455
|
PublicLabelSettings["GAMIFICATION_UI_MAIN"] = "GAMIFICATION_UI_MAIN";
|
|
@@ -574,7 +572,7 @@ const StoreItemTransform = items => {
|
|
|
574
572
|
price: r.itemPublicMeta.price,
|
|
575
573
|
image: r.itemPublicMeta.image_url,
|
|
576
574
|
description: r.itemPublicMeta.description,
|
|
577
|
-
ribbon: r.itemPublicMeta.custom_label_tag
|
|
575
|
+
ribbon: r.itemPublicMeta.label_tag === 'custom' ? r.itemPublicMeta.custom_label_tag : r.itemPublicMeta.label_tag,
|
|
578
576
|
limit_message: r.itemPublicMeta.limit_message,
|
|
579
577
|
priority: r.itemPublicMeta.priority,
|
|
580
578
|
related_item_ids: r.itemPublicMeta.related_items,
|
|
@@ -638,6 +636,7 @@ const UserAchievementTransform = items => {
|
|
|
638
636
|
only_in_custom_section: r.ach_public_meta.only_in_custom_section,
|
|
639
637
|
custom_data: IntUtils.JsonOrText(r.ach_public_meta.custom_data),
|
|
640
638
|
position: r.ach_public_meta.position,
|
|
639
|
+
ribbon: r.ach_public_meta.label_tag === 'custom' ? r.ach_public_meta.custom_label_tag : r.ach_public_meta.label_tag,
|
|
641
640
|
tasks: (r.achievementTasks || []).filter(t => t.task_type_id === AchievementTaskType.CompleteAchievement).map(t => {
|
|
642
641
|
var _t$task_public_meta;
|
|
643
642
|
return {
|
|
@@ -755,7 +754,7 @@ const TournamentItemsTransform = items => {
|
|
|
755
754
|
custom_section_id: r.publicMeta.custom_section_id,
|
|
756
755
|
custom_data: IntUtils.JsonOrText(r.publicMeta.custom_data),
|
|
757
756
|
is_featured: r.publicMeta.featured,
|
|
758
|
-
ribbon: r.publicMeta.label_tag,
|
|
757
|
+
ribbon: r.publicMeta.label_tag === 'custom' ? r.publicMeta.custom_label_tag : r.publicMeta.label_tag,
|
|
759
758
|
priority: r.publicMeta.position,
|
|
760
759
|
start_time: r.startTimeTs,
|
|
761
760
|
end_time: r.endTimeTs,
|