@smartico/public-api 0.0.335 → 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/Raffle/RaffleDraw.d.ts +4 -0
- package/dist/Store/StoreItemPublicMeta.d.ts +3 -0
- package/dist/WSAPI/WSAPITypes.d.ts +12 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +9 -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/RaffleDraw.md +8 -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/TRaffleDraw.md +8 -0
- package/docs/interfaces/TStoreItem.md +24 -0
- 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/Raffle/GetDrawRunResponse.ts +1 -0
- package/src/Raffle/GetRafflesResponse.ts +1 -0
- package/src/Raffle/RaffleDraw.ts +4 -0
- package/src/Store/StoreItem.ts +3 -0
- package/src/Store/StoreItemPublicMeta.ts +3 -0
- package/src/WSAPI/WSAPITypes.ts +12 -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[];
|
|
@@ -91,6 +91,10 @@ interface RaffleDraw {
|
|
|
91
91
|
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
92
92
|
*/
|
|
93
93
|
requires_optin: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* If true, the draw is active and can be participated in.
|
|
96
|
+
*/
|
|
97
|
+
is_active: boolean;
|
|
94
98
|
/**
|
|
95
99
|
* The number of winners to return
|
|
96
100
|
*/
|
|
@@ -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 */
|
|
@@ -1146,6 +1154,10 @@ export interface TRaffleDraw {
|
|
|
1146
1154
|
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
1147
1155
|
*/
|
|
1148
1156
|
requires_optin: boolean;
|
|
1157
|
+
/**
|
|
1158
|
+
* If true, the draw is active and can be participated in.
|
|
1159
|
+
*/
|
|
1160
|
+
is_active: boolean;
|
|
1149
1161
|
/**
|
|
1150
1162
|
* The number of winners to return
|
|
1151
1163
|
*/
|
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
|
});
|
|
@@ -1980,6 +1983,7 @@ var drawTransform = function drawTransform(items) {
|
|
|
1980
1983
|
my_last_tickets: ticketsTransform(item.my_last_tickets),
|
|
1981
1984
|
user_opted_in: Boolean(item.user_opted_in),
|
|
1982
1985
|
requires_optin: Boolean(item.requires_optin),
|
|
1986
|
+
is_active: Boolean(item.is_active),
|
|
1983
1987
|
winners_limit: item.winners_limit,
|
|
1984
1988
|
winners_offset: item.winners_offset,
|
|
1985
1989
|
winners_total: item.winners_total
|
|
@@ -2033,6 +2037,7 @@ var drawRunTransform = function drawRunTransform(res) {
|
|
|
2033
2037
|
my_last_tickets: ticketsTransform(res.draw.my_last_tickets),
|
|
2034
2038
|
user_opted_in: Boolean(res.draw.user_opted_in),
|
|
2035
2039
|
requires_optin: Boolean(res.draw.requires_optin),
|
|
2040
|
+
is_active: Boolean(res.draw.is_active),
|
|
2036
2041
|
winners_limit: res.draw.winners_limit,
|
|
2037
2042
|
winners_offset: res.draw.winners_offset,
|
|
2038
2043
|
winners_total: res.draw.winners_total
|
|
@@ -3786,7 +3791,7 @@ exports.AchCustomSectionType = void 0;
|
|
|
3786
3791
|
AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
|
|
3787
3792
|
AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
|
|
3788
3793
|
AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
|
|
3789
|
-
AchCustomSectionType[AchCustomSectionType["
|
|
3794
|
+
AchCustomSectionType[AchCustomSectionType["STORE"] = 12] = "STORE";
|
|
3790
3795
|
AchCustomSectionType[AchCustomSectionType["RAFFLE"] = 13] = "RAFFLE";
|
|
3791
3796
|
AchCustomSectionType[AchCustomSectionType["BADGES"] = 14] = "BADGES";
|
|
3792
3797
|
})(exports.AchCustomSectionType || (exports.AchCustomSectionType = {}));
|
|
@@ -3850,6 +3855,8 @@ var UICustomSectionTransform = function UICustomSectionTransform(response) {
|
|
|
3850
3855
|
liquid_template: r.liquid_template
|
|
3851
3856
|
} : {}, r.section_type_id === exports.AchCustomSectionType.BADGES ? {
|
|
3852
3857
|
ach_category_ids: r.ach_category_ids
|
|
3858
|
+
} : {}, r.section_type_id === exports.AchCustomSectionType.STORE ? {
|
|
3859
|
+
shop_category_ids: r.shop_category_ids
|
|
3853
3860
|
} : {});
|
|
3854
3861
|
items.push(x);
|
|
3855
3862
|
}
|