@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
|
@@ -2,6 +2,7 @@ import { BuyStoreItemErrorCode } from "../Store";
|
|
|
2
2
|
import { MiniGamePrizeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode } from "../MiniGames";
|
|
3
3
|
import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from "../Tournaments";
|
|
4
4
|
import { LeaderBoardPeriodType } from "../Leaderboard";
|
|
5
|
+
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from "../CustomSections";
|
|
5
6
|
type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
|
|
6
7
|
/**
|
|
7
8
|
* TMiniGamePrize describes the information of prize in the array of prizes in the TMiniGameTemplate
|
|
@@ -434,6 +435,8 @@ export interface TMissionOrBadge {
|
|
|
434
435
|
completed_this_week?: boolean;
|
|
435
436
|
/** Flag for mission/badge indicating that mission/badge completed this month */
|
|
436
437
|
completed_this_month?: boolean;
|
|
438
|
+
/** ID of specific Custom Section type */
|
|
439
|
+
custom_section_type_id?: number;
|
|
437
440
|
}
|
|
438
441
|
export interface AchRelatedGame {
|
|
439
442
|
/** The ID of the related game */
|
|
@@ -586,4 +589,26 @@ export interface TSegmentCheckResult {
|
|
|
586
589
|
segment_id: number;
|
|
587
590
|
is_matching: boolean;
|
|
588
591
|
}
|
|
592
|
+
export interface TUICustomSection {
|
|
593
|
+
/** The body of the custom section */
|
|
594
|
+
body?: string;
|
|
595
|
+
/** The image of the custom section */
|
|
596
|
+
menu_img?: string;
|
|
597
|
+
/** The name of the custom section */
|
|
598
|
+
menu_name?: string;
|
|
599
|
+
/** Custom images for custom section */
|
|
600
|
+
custom_skin_images?: string;
|
|
601
|
+
/** The particular type of custom section, can be Missions, Tournaments, Lootbox and etc */
|
|
602
|
+
section_type_id?: AchCustomSectionType;
|
|
603
|
+
/** Theme of the custom section */
|
|
604
|
+
theme?: AchCustomLayoutTheme;
|
|
605
|
+
/** Custom css for the custom section */
|
|
606
|
+
generic_custom_css?: string;
|
|
607
|
+
/** Tabs that can be shown in custom section, e.g Overview, No Overview, All tabs */
|
|
608
|
+
mission_tabs_options?: AchMissionsTabsOptions;
|
|
609
|
+
/** Filter that allow to show missions by criteria */
|
|
610
|
+
overview_missions_filter?: AchOverviewMissionsFilter;
|
|
611
|
+
/** Quantity of missions to be shown in overview */
|
|
612
|
+
overview_missions_count?: number;
|
|
613
|
+
}
|
|
589
614
|
export {};
|