@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.
Files changed (36) hide show
  1. package/README.md +14 -1
  2. package/dist/CustomSections/AchCustomSection.d.ts +27 -0
  3. package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -0
  4. package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -0
  5. package/dist/CustomSections/UICustomSection.d.ts +15 -0
  6. package/dist/CustomSections/index.d.ts +4 -0
  7. package/dist/Missions/AchievementPublicMeta.d.ts +1 -0
  8. package/dist/Missions/UserAchievement.d.ts +1 -0
  9. package/dist/OCache.d.ts +1 -0
  10. package/dist/SmarticoAPI.d.ts +17 -14
  11. package/dist/WSAPI/WSAPI.d.ts +270 -48
  12. package/dist/WSAPI/WSAPITypes.d.ts +25 -0
  13. package/dist/index.js +559 -214
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.modern.mjs +382 -95
  16. package/dist/index.modern.mjs.map +1 -1
  17. package/docs/README.md +1 -0
  18. package/docs/classes/WSAPI.md +234 -27
  19. package/docs/enums/AchCustomLayoutTheme.md +27 -0
  20. package/docs/enums/AchCustomSectionType.md +43 -0
  21. package/docs/enums/AchMissionsTabsOptions.md +21 -0
  22. package/docs/enums/AchOverviewMissionsFilter.md +33 -0
  23. package/docs/interfaces/TUICustomSection.md +85 -0
  24. package/package.json +1 -1
  25. package/src/CustomSections/AchCustomSection.ts +30 -0
  26. package/src/CustomSections/GetCustomSectionsRequest.ts +5 -0
  27. package/src/CustomSections/GetCustomSectionsResponse.ts +7 -0
  28. package/src/CustomSections/UICustomSection.ts +34 -0
  29. package/src/CustomSections/index.ts +4 -0
  30. package/src/Level/GetLevelMapResponse.ts +1 -1
  31. package/src/Missions/AchievementPublicMeta.ts +1 -0
  32. package/src/Missions/UserAchievement.ts +3 -1
  33. package/src/OCache.ts +5 -0
  34. package/src/SmarticoAPI.ts +42 -34
  35. package/src/WSAPI/WSAPI.ts +296 -64
  36. package/src/WSAPI/WSAPITypes.ts +27 -0
@@ -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
  }