@smartico/public-api 0.0.336 → 0.0.338
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/CustomSections/AchCustomSection.d.ts +1 -1
- package/dist/CustomSections/UICustomSection.d.ts +1 -0
- package/dist/Store/StoreItemPublicMeta.d.ts +3 -0
- package/dist/WSAPI/WSAPITypes.d.ts +8 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +7 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/enums/AchCustomSectionType.md +2 -2
- package/docs/interfaces/AchCategory.md +19 -0
- package/docs/interfaces/AchCategoryPublicMeta.md +19 -0
- package/docs/interfaces/AchCustomSectionType.md +21 -0
- package/docs/interfaces/AchievementPublicMeta.md +155 -0
- package/docs/interfaces/Bonus.md +107 -0
- package/docs/interfaces/GetTournamentInfoResponse.md +37 -0
- package/docs/interfaces/InboxMessage.md +51 -0
- package/docs/interfaces/InboxMessageBody.md +64 -0
- package/docs/interfaces/Level.md +67 -0
- package/docs/interfaces/LevelPublicMeta.md +51 -0
- package/docs/interfaces/SAWPrizesHistory.md +18 -0
- package/docs/interfaces/StoreCategory.md +19 -0
- package/docs/interfaces/StoreCategoryPublicMeta.md +19 -0
- package/docs/interfaces/StoreItem.md +59 -0
- package/docs/interfaces/TStoreItem.md +25 -1
- package/docs/interfaces/TUICustomSection.md +8 -0
- package/docs/interfaces/Tournament.md +187 -0
- package/docs/interfaces/TournamentPlayer.md +75 -0
- package/docs/interfaces/TournamentPrize.md +75 -0
- package/docs/interfaces/UICustomSection.md +123 -0
- package/docs/interfaces/UserAchievement.md +275 -0
- package/docs/interfaces/UserAchievementTask.md +67 -0
- package/docs/native/ADDING_METHODS.md +38 -0
- package/docs/native/PROTOCOL.md +2264 -0
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +1 -1
- package/src/CustomSections/UICustomSection.ts +7 -0
- package/src/Store/StoreItem.ts +3 -0
- package/src/Store/StoreItemPublicMeta.ts +3 -0
- package/src/WSAPI/WSAPITypes.ts +8 -0
|
@@ -17,5 +17,6 @@ export interface UICustomSection {
|
|
|
17
17
|
show_raw_data?: boolean;
|
|
18
18
|
liquid_template?: number;
|
|
19
19
|
ach_category_ids?: number[];
|
|
20
|
+
shop_category_ids?: number[];
|
|
20
21
|
}
|
|
21
22
|
export declare const UICustomSectionTransform: (response: GetCustomSectionsResponse) => TUICustomSection[];
|
|
@@ -511,6 +511,12 @@ export interface TStoreItem {
|
|
|
511
511
|
discount_price_ribbon?: string;
|
|
512
512
|
/** The custom ribbon image of the discounted price. */
|
|
513
513
|
custom_ribbon_image?: string;
|
|
514
|
+
/** The ID of the custom section where the store item is assigned */
|
|
515
|
+
custom_section_id?: number;
|
|
516
|
+
/** The indicator if the store item is visible only in the custom section and should be hidden from the main overview of store items */
|
|
517
|
+
only_in_custom_section?: boolean;
|
|
518
|
+
/** ID of specific Custom Section type */
|
|
519
|
+
custom_section_type_id?: number;
|
|
514
520
|
}
|
|
515
521
|
/**
|
|
516
522
|
* TAchCategory describes the badge category item. Each badge item can be assigned to 1 or more categories
|
|
@@ -838,6 +844,8 @@ export interface TUICustomSection {
|
|
|
838
844
|
liquid_template?: number;
|
|
839
845
|
/** List of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method */
|
|
840
846
|
ach_category_ids?: number[];
|
|
847
|
+
/** List of IDs of the categories where the store item is assigned, information about categories can be retrieved with getShopCategories method */
|
|
848
|
+
shop_category_ids?: number[];
|
|
841
849
|
}
|
|
842
850
|
export interface TBonus {
|
|
843
851
|
/** ID of the bonus */
|
package/dist/index.js
CHANGED
|
@@ -1021,7 +1021,10 @@ var StoreItemTransform = function StoreItemTransform(items) {
|
|
|
1021
1021
|
active_till_date: r.activeTillDate,
|
|
1022
1022
|
discounted_price: r.itemPublicMeta.discount_prize,
|
|
1023
1023
|
discount_price_ribbon: r.itemPublicMeta.discount_prize_ribbon,
|
|
1024
|
-
custom_ribbon_image: r.itemPublicMeta.custom_ribbon_image
|
|
1024
|
+
custom_ribbon_image: r.itemPublicMeta.custom_ribbon_image,
|
|
1025
|
+
custom_section_id: r.itemPublicMeta.custom_section_id,
|
|
1026
|
+
only_in_custom_section: r.itemPublicMeta.only_in_custom_section,
|
|
1027
|
+
custom_section_type_id: r.itemPublicMeta.custom_section_type_id
|
|
1025
1028
|
};
|
|
1026
1029
|
return x;
|
|
1027
1030
|
});
|
|
@@ -3788,7 +3791,7 @@ exports.AchCustomSectionType = void 0;
|
|
|
3788
3791
|
AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
|
|
3789
3792
|
AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
|
|
3790
3793
|
AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
|
|
3791
|
-
AchCustomSectionType[AchCustomSectionType["
|
|
3794
|
+
AchCustomSectionType[AchCustomSectionType["STORE"] = 12] = "STORE";
|
|
3792
3795
|
AchCustomSectionType[AchCustomSectionType["RAFFLE"] = 13] = "RAFFLE";
|
|
3793
3796
|
AchCustomSectionType[AchCustomSectionType["BADGES"] = 14] = "BADGES";
|
|
3794
3797
|
})(exports.AchCustomSectionType || (exports.AchCustomSectionType = {}));
|
|
@@ -3852,6 +3855,8 @@ var UICustomSectionTransform = function UICustomSectionTransform(response) {
|
|
|
3852
3855
|
liquid_template: r.liquid_template
|
|
3853
3856
|
} : {}, r.section_type_id === exports.AchCustomSectionType.BADGES ? {
|
|
3854
3857
|
ach_category_ids: r.ach_category_ids
|
|
3858
|
+
} : {}, r.section_type_id === exports.AchCustomSectionType.STORE ? {
|
|
3859
|
+
shop_category_ids: r.shop_category_ids
|
|
3855
3860
|
} : {});
|
|
3856
3861
|
items.push(x);
|
|
3857
3862
|
}
|