@smartico/public-api 0.0.141 → 0.0.143
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/README.md +14 -1
- package/dist/CustomSections/AchCustomSection.d.ts +27 -0
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -0
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -0
- package/dist/CustomSections/UICustomSection.d.ts +15 -0
- package/dist/CustomSections/index.d.ts +4 -0
- package/dist/Missions/AchievementPublicMeta.d.ts +1 -0
- package/dist/Missions/UserAchievement.d.ts +1 -0
- package/dist/OCache.d.ts +1 -0
- package/dist/SmarticoAPI.d.ts +17 -14
- package/dist/WSAPI/WSAPI.d.ts +270 -48
- package/dist/WSAPI/WSAPITypes.d.ts +25 -0
- package/dist/index.js +559 -214
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +382 -95
- package/dist/index.modern.mjs.map +1 -1
- package/docs/README.md +1 -0
- package/docs/classes/WSAPI.md +234 -27
- package/docs/enums/AchCustomLayoutTheme.md +27 -0
- package/docs/enums/AchCustomSectionType.md +43 -0
- package/docs/enums/AchMissionsTabsOptions.md +21 -0
- package/docs/enums/AchOverviewMissionsFilter.md +33 -0
- package/docs/interfaces/TUICustomSection.md +85 -0
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +30 -0
- package/src/CustomSections/GetCustomSectionsRequest.ts +5 -0
- package/src/CustomSections/GetCustomSectionsResponse.ts +7 -0
- package/src/CustomSections/UICustomSection.ts +34 -0
- package/src/CustomSections/index.ts +4 -0
- package/src/Level/GetLevelMapResponse.ts +1 -1
- package/src/Missions/AchievementPublicMeta.ts +1 -0
- package/src/Missions/UserAchievement.ts +3 -1
- package/src/OCache.ts +5 -0
- package/src/SmarticoAPI.ts +42 -34
- package/src/WSAPI/WSAPI.ts +296 -64
- package/src/WSAPI/WSAPITypes.ts +27 -0
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { MiniGamePrizeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorC
|
|
|
3
3
|
import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from "../Tournaments";
|
|
4
4
|
import { AchCategory } from "../Missions";
|
|
5
5
|
import { LeaderBoardPeriodType } from "../Leaderboard";
|
|
6
|
+
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from "../CustomSections";
|
|
6
7
|
|
|
7
8
|
type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string
|
|
8
9
|
|
|
@@ -498,6 +499,9 @@ export interface TMissionOrBadge {
|
|
|
498
499
|
|
|
499
500
|
/** Flag for mission/badge indicating that mission/badge completed this month */
|
|
500
501
|
completed_this_month?: boolean;
|
|
502
|
+
|
|
503
|
+
/** ID of specific Custom Section type */
|
|
504
|
+
custom_section_type_id?: number;
|
|
501
505
|
}
|
|
502
506
|
|
|
503
507
|
export interface AchRelatedGame {
|
|
@@ -663,4 +667,27 @@ export interface UserLevelExtraCountersT {
|
|
|
663
667
|
export interface TSegmentCheckResult {
|
|
664
668
|
segment_id: number;
|
|
665
669
|
is_matching: boolean;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export interface TUICustomSection {
|
|
673
|
+
/** The body of the custom section */
|
|
674
|
+
body?: string;
|
|
675
|
+
/** The image of the custom section */
|
|
676
|
+
menu_img?: string;
|
|
677
|
+
/** The name of the custom section */
|
|
678
|
+
menu_name?: string;
|
|
679
|
+
/** Custom images for custom section */
|
|
680
|
+
custom_skin_images?: string;
|
|
681
|
+
/** The particular type of custom section, can be Missions, Tournaments, Lootbox and etc */
|
|
682
|
+
section_type_id?: AchCustomSectionType;
|
|
683
|
+
/** Theme of the custom section */
|
|
684
|
+
theme?: AchCustomLayoutTheme;
|
|
685
|
+
/** Custom css for the custom section */
|
|
686
|
+
generic_custom_css?: string;
|
|
687
|
+
/** Tabs that can be shown in custom section, e.g Overview, No Overview, All tabs */
|
|
688
|
+
mission_tabs_options?: AchMissionsTabsOptions;
|
|
689
|
+
/** Filter that allow to show missions by criteria */
|
|
690
|
+
overview_missions_filter?: AchOverviewMissionsFilter;
|
|
691
|
+
/** Quantity of missions to be shown in overview */
|
|
692
|
+
overview_missions_count?: number;
|
|
666
693
|
}
|