@smartico/public-api 0.0.290 → 0.0.291

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.290",
3
+ "version": "0.0.291",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,6 +10,7 @@ export enum AchCustomSectionType {
10
10
  LOOTBOX_WEEKLY = 10,
11
11
  LOOTBOX_CALENDAR_DAYS = 11,
12
12
  TREASURE_HUNT = 12,
13
+ RAFFLE = 13,
13
14
  }
14
15
 
15
16
  export enum AchCustomLayoutTheme {
@@ -32,3 +33,16 @@ export enum AchOverviewMissionsFilter {
32
33
  ALL_EXCEPT_LOCKED = 4,
33
34
  ALL_EXCEPT_COMPLETED_AND_LOCKED = 5,
34
35
  }
36
+
37
+ export enum LiquidEntityData {
38
+ Missions = 1,
39
+ Store = 2,
40
+ Tournaments = 3,
41
+ MiniGames = 4,
42
+ Levels = 5,
43
+ Jackpots = 6,
44
+ Bonus = 7,
45
+ Leaderboard = 8,
46
+ Badges = 9,
47
+ Tournament = 10,
48
+ }
@@ -4,6 +4,7 @@ import {
4
4
  AchCustomSectionType,
5
5
  AchMissionsTabsOptions,
6
6
  AchOverviewMissionsFilter,
7
+ LiquidEntityData,
7
8
  } from './AchCustomSection';
8
9
  import { GetCustomSectionsResponse } from './GetCustomSectionsResponse';
9
10
 
@@ -18,6 +19,10 @@ export interface UICustomSection {
18
19
  mission_tabs_options?: AchMissionsTabsOptions;
19
20
  overview_missions_filter?: AchOverviewMissionsFilter;
20
21
  overview_missions_count?: number;
22
+ liquid_entity_data?: LiquidEntityData[];
23
+ ach_tournament_id?: number;
24
+ show_raw_data?: boolean;
25
+ liquid_template?: number;
21
26
  }
22
27
 
23
28
  export const UICustomSectionTransform = (response: GetCustomSectionsResponse): TUICustomSection[] => {
@@ -40,6 +45,15 @@ export const UICustomSectionTransform = (response: GetCustomSectionsResponse): T
40
45
  overview_missions_count: r.overview_missions_count,
41
46
  overview_missions_filter: r.overview_missions_filter,
42
47
  theme: r.theme,
48
+ ...(r.section_type_id === AchCustomSectionType.LEVELS
49
+ ? {
50
+ liquid_entity_data: r.liquid_entity_data,
51
+ ach_tournament_id: r.ach_tournament_id,
52
+ show_raw_data: r.show_raw_data,
53
+ liquid_template: r.liquid_template,
54
+ }
55
+ : {}
56
+ ),
43
57
  };
44
58
 
45
59
  items.push(x);
@@ -3,7 +3,7 @@ import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWAskForUsername, SAWBu
3
3
  import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
4
4
  import { AchievementAvailabilityStatus } from '../Missions';
5
5
  import { LeaderBoardPeriodType } from '../Leaderboard';
6
- import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from '../CustomSections';
6
+ import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter, LiquidEntityData } from '../CustomSections';
7
7
  import { PrizeModifiers } from '../MiniGames/PrizeModifiers';
8
8
  import { InboxCategories } from '../Inbox/InboxCategories';
9
9
  import { RaffleDrawInstanceState, RaffleDrawTypeExecution } from '../Raffle';
@@ -872,6 +872,14 @@ export interface TUICustomSection {
872
872
  overview_missions_filter?: AchOverviewMissionsFilter;
873
873
  /** Quantity of missions to be shown in overview */
874
874
  overview_missions_count?: number;
875
+ /** Data to be used for Liquid templates */
876
+ liquid_entity_data?: LiquidEntityData[];
877
+ /** Tournament ID to be used for Liquid templates */
878
+ ach_tournament_id?: number;
879
+ /** Indicates if the data should be shown as raw data (for Liquid templates) */
880
+ show_raw_data?: boolean;
881
+ /** Liquid template id to be used for Liquid templates */
882
+ liquid_template?: number;
875
883
  }
876
884
 
877
885
  export interface TBonus {
package/src/index.ts CHANGED
@@ -17,3 +17,4 @@ export * from './Jackpots';
17
17
 
18
18
  export * from './OCache';
19
19
  export * from './Bonuses';
20
+ export * from './CustomSections';