@dchighs/dc-config 0.1.134 → 0.1.136

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.
@@ -719,7 +719,7 @@ export interface ItemsUnitsAttributeModifier {
719
719
  index?: number;
720
720
  }
721
721
  export type ItemsUnitsAttributeModifierAttribute = "attacks" | "base_attack" | "trainable_attacks" | "base_life" | "passive_skills" | "post_skills" | "speed" | "background_vfx" | "foreground_vfx";
722
- export type Behaviour = "REPLACE" | "REPLACE_BY_INDEX" | "MULTIPLY" | "ADD_ARRAY";
722
+ export type Behaviour = "REPLACE" | "REPLACE_BY_INDEX" | "MULTIPLY";
723
723
  export interface BattlesConfigElement {
724
724
  id: number;
725
725
  name: string;
@@ -960,11 +960,11 @@ export interface FogIsland {
960
960
  squares: FogIslandSquare[];
961
961
  currencies: Currency[];
962
962
  rewards: FogIslandReward[];
963
- actions: Action[];
963
+ actions: ActionElement[];
964
964
  hints: Hint[];
965
965
  parameters: FogIslandParameter[];
966
966
  }
967
- export interface Action {
967
+ export interface ActionElement {
968
968
  id: number;
969
969
  type: string;
970
970
  tid_name: string;
@@ -1134,7 +1134,7 @@ export interface GridIsland {
1134
1134
  encounters: Encounter[];
1135
1135
  enemies: EnemyElement[];
1136
1136
  currencies: Currency[];
1137
- actions: Action[];
1137
+ actions: ActionElement[];
1138
1138
  parameters: FogIslandParameter[];
1139
1139
  }
1140
1140
  export interface Decoration {
@@ -1153,7 +1153,7 @@ export interface Encounter {
1153
1153
  fight_background?: string;
1154
1154
  fight_background_id: FightBackgroundID;
1155
1155
  }
1156
- export type FightBackgroundID = "bg_battle_background_gi_treasurehunt" | "bg_battle_background_hr_medievalholidays" | "bg_battle_background_mr_108_mythical_gelbarrier" | "bg_battle_background_hr_clashofthenorth" | "bg_battle_background_mi_mystery_in_paradise" | "bg_battle_background_mi_dragonmysteries";
1156
+ export type FightBackgroundID = "bg_battle_background_gi_treasurehunt" | "bg_battle_background_hr_medievalholidays" | "bg_battle_background_mr_108_mythical_gelbarrier" | "bg_battle_background_hr_clashofthenorth" | "bg_battle_background_mi_mystery_in_paradise" | "bg_battle_background_mi_dragonmysteries" | "bg_battle_background_mi_fall_from_grace";
1157
1157
  export interface EnemyElement {
1158
1158
  id: number;
1159
1159
  dragon_ids: number[];
@@ -1558,7 +1558,7 @@ export interface Challenge {
1558
1558
  availability: IapEliteDiscountUidAvailability[];
1559
1559
  goals: number[];
1560
1560
  title_tid: string;
1561
- hud_icon_tid: string;
1561
+ hud_icon_tid: HudIconTid;
1562
1562
  background: ChallengeBackground;
1563
1563
  weight: number;
1564
1564
  displayed_reward: number;
@@ -1569,6 +1569,7 @@ export interface Challenge {
1569
1569
  user_min_level: number;
1570
1570
  }
1571
1571
  export type ChallengeBackground = "bg-lo-challenges-test";
1572
+ export type HudIconTid = "tid_LO_challenges_reefcoraldragon_icon" | "tid_LO_challenges_icon_journeynorth" | "tid_LO_challenges_title_DTVcoins" | "tid_LO_challenges_title_apexofdaycollection";
1572
1573
  export interface LiveopsChallengesCollectible {
1573
1574
  id: number;
1574
1575
  collectible_type: CollectibleType;
@@ -1618,7 +1619,7 @@ export interface MazeIsland {
1618
1619
  encounters: Encounter[];
1619
1620
  enemies: EnemyElement[];
1620
1621
  happy_hours: unknown[];
1621
- actions: Action[];
1622
+ actions: ActionElement[];
1622
1623
  clouds: Cloud[];
1623
1624
  currencies: Currency[];
1624
1625
  parameters: FogIslandParameter[];
@@ -1705,46 +1706,73 @@ export interface News {
1705
1706
  "1": The1;
1706
1707
  "2": The2;
1707
1708
  "3": The3;
1708
- "4": The2;
1709
+ "4": The3;
1709
1710
  "5": The3;
1710
1711
  "6": The3;
1711
- "7": The3;
1712
+ "7": The7;
1712
1713
  canvas: Canva[];
1713
1714
  }
1714
1715
  export interface The0 {
1716
+ active_platforms: ValueClass;
1717
+ allow_island_tutorial: number;
1718
+ assets_name: string;
1719
+ end_ts: string;
1720
+ hud_button: The0_HudButton;
1721
+ id: number;
1722
+ min_level: number;
1723
+ popup_type: string;
1724
+ show_on_startup: number;
1725
+ slides: The0_Slide[];
1726
+ start_ts: string;
1727
+ }
1728
+ export interface The0_HudButton {
1729
+ file: string;
1730
+ title: string;
1731
+ }
1732
+ export interface The0_Slide {
1733
+ content_localized_key: string;
1734
+ custom_title_localized_key: string;
1735
+ header_localized_key: string;
1736
+ image_url: string;
1737
+ link: string;
1738
+ link_button_key: string;
1739
+ slide_type: string;
1740
+ slide_type_2: string;
1741
+ timer: string;
1742
+ times_to_show: number;
1743
+ }
1744
+ export interface The1 {
1715
1745
  active_platforms: ValueClass;
1716
1746
  allow_island_tutorial: number;
1717
1747
  assets_name: string;
1718
1748
  direct_to_shop: number;
1719
1749
  end_ts: string;
1720
1750
  filter_category: null;
1721
- hud_button: HudButton;
1751
+ hud_button: The1_HudButton;
1722
1752
  id: number;
1723
1753
  label_text_tid: null;
1724
1754
  label_title_tid: null;
1725
1755
  min_level: number;
1726
- popup_frequency: string;
1727
- popup_is_critical: number;
1728
1756
  popup_type: string;
1729
1757
  priority: null;
1730
1758
  show_on_startup: number;
1731
- slides: The0_Slide[];
1759
+ slides: The1_Slide[];
1732
1760
  start_ts: string;
1733
1761
  }
1734
- export interface HudButton {
1762
+ export interface The1_HudButton {
1735
1763
  file: string;
1736
1764
  title: string;
1737
1765
  viral_icon_tier: number;
1738
1766
  }
1739
- export interface The0_Slide {
1740
- content_localized_key?: string;
1767
+ export interface The1_Slide {
1768
+ content_localized_key: string;
1741
1769
  custom_title_localized_key: string;
1742
1770
  forceClose?: boolean;
1743
1771
  header_localized_key: string;
1744
1772
  image_url: string;
1745
1773
  multiple_buttons: MultipleButton[];
1746
1774
  times_to_show: number;
1747
- type: SlideType;
1775
+ type: string;
1748
1776
  }
1749
1777
  export interface MultipleButton {
1750
1778
  animation: AnimationNameEnum;
@@ -1753,14 +1781,14 @@ export interface MultipleButton {
1753
1781
  glint: boolean;
1754
1782
  key: Key;
1755
1783
  link: string;
1784
+ linkItemId?: number;
1756
1785
  normalizedPosition: NormalizedPosition;
1757
1786
  size: SizeClass;
1758
- style: Style;
1759
- linkItemId?: number;
1760
1787
  spineAsset?: SpineAsset;
1788
+ style: Style;
1761
1789
  }
1762
1790
  export type AnimationPlace = "Foreground";
1763
- export type Key = "tid_news_viptiers_button" | "tid_helpshift_faq_title" | "";
1791
+ export type Key = "" | "tid_news_viptiers_button" | "tid_helpshift_faq_title";
1764
1792
  export interface NormalizedPosition {
1765
1793
  x: number;
1766
1794
  y: number;
@@ -1770,65 +1798,101 @@ export interface SizeClass {
1770
1798
  w: number;
1771
1799
  }
1772
1800
  export type SpineAsset = "pointer_animation_v2";
1773
- export type Style = "YellowLarge" | "BlueLarge" | "Transparent";
1774
- export type SlideType = "FullImage";
1775
- export interface The1 {
1801
+ export type Style = "Transparent" | "YellowLarge" | "BlueLarge";
1802
+ export interface The2 {
1776
1803
  active_platforms: ValueClass;
1777
1804
  allow_island_tutorial: number;
1778
1805
  assets_name: string;
1779
1806
  direct_to_shop: number;
1780
1807
  end_ts: string;
1781
1808
  filter_category: null;
1782
- hud_button: HudButton;
1783
1809
  id: number;
1784
1810
  label_text_tid: null;
1785
1811
  label_title_tid: null;
1786
1812
  min_level: number;
1787
1813
  popup_type: string;
1788
- priority: null;
1814
+ priority: number;
1789
1815
  show_on_startup: number;
1790
- slides: The0_Slide[];
1816
+ slides: The1_Slide[];
1791
1817
  start_ts: string;
1792
1818
  }
1793
- export interface The2 {
1819
+ export interface The3 {
1794
1820
  active_platforms: ValueClass;
1795
1821
  allow_island_tutorial: number;
1796
1822
  assets_name: string;
1797
1823
  direct_to_shop: number;
1798
1824
  end_ts: string;
1799
- filter_category: null;
1800
1825
  id: number;
1801
- label_text_tid: null;
1802
- label_title_tid: null;
1803
1826
  min_level: number;
1827
+ popup_frequency: string;
1804
1828
  popup_type: string;
1805
- priority: number | null;
1806
1829
  show_on_startup: number;
1807
- slides: The0_Slide[];
1830
+ slides: The1_Slide[];
1808
1831
  start_ts: string;
1809
1832
  }
1810
- export interface The3 {
1833
+ export interface The7 {
1811
1834
  active_platforms: ValueClass;
1812
1835
  allow_island_tutorial: number;
1813
1836
  assets_name: string;
1814
1837
  direct_to_shop: number;
1815
1838
  end_ts: string;
1839
+ filter_category: null;
1840
+ hud_button: The1_HudButton;
1816
1841
  id: number;
1842
+ label_text_tid: null;
1843
+ label_title_tid: null;
1817
1844
  min_level: number;
1818
1845
  popup_frequency: string;
1846
+ popup_is_critical: number;
1819
1847
  popup_type: string;
1848
+ priority: null;
1820
1849
  show_on_startup: number;
1821
- slides: The0_Slide[];
1850
+ slides: The1_Slide[];
1822
1851
  start_ts: string;
1823
1852
  }
1824
1853
  export interface Canva {
1825
1854
  id: number;
1826
1855
  assets_name: string;
1827
- start_ts: number;
1828
- end_ts: number;
1829
- min_level: number;
1830
- slides: The0_Slide[];
1831
- show_on_startup: number;
1856
+ start_ts: number | string;
1857
+ end_ts: number | string;
1858
+ min_level?: number;
1859
+ slides: CanvaSlide[];
1860
+ show_on_startup?: number;
1861
+ }
1862
+ export interface CanvaSlide {
1863
+ custom_title_localized_key?: string;
1864
+ header_localized_key?: string;
1865
+ image_url?: string;
1866
+ times_to_show?: number;
1867
+ type?: string;
1868
+ multiple_buttons?: MultipleButton[];
1869
+ bg?: string;
1870
+ content?: Content[];
1871
+ edit_mode?: number;
1872
+ id?: number;
1873
+ title_key?: string;
1874
+ viral_icon_key?: string;
1875
+ viral_icon_timer?: string;
1876
+ }
1877
+ export interface Content {
1878
+ height: number;
1879
+ rotation: number;
1880
+ stroke?: string;
1881
+ text_color?: string;
1882
+ text_key: string;
1883
+ text_size?: number;
1884
+ timer?: number;
1885
+ type: string;
1886
+ width: number;
1887
+ x: number;
1888
+ y: number;
1889
+ action?: ContentAction;
1890
+ style?: string;
1891
+ }
1892
+ export interface ContentAction {
1893
+ itemId: string;
1894
+ storeCategory: number;
1895
+ type: string;
1832
1896
  }
1833
1897
  export interface Perks {
1834
1898
  abilities: Ability[];
@@ -2011,7 +2075,7 @@ export interface RunnerIslandIsland {
2011
2075
  dragon_offset: number[];
2012
2076
  dragon_scale: number;
2013
2077
  runner_dragon_asset?: string;
2014
- zip_file: PurpleZipFile;
2078
+ zip_file: ZipFile;
2015
2079
  help_id: number;
2016
2080
  run_cost: number;
2017
2081
  sound_tag: FluffySoundTag;
@@ -2022,7 +2086,7 @@ export interface RunnerIslandIsland {
2022
2086
  milestone_rewards: number[];
2023
2087
  }
2024
2088
  export type FluffySoundTag = "AQUATIC";
2025
- export type PurpleZipFile = "/mobile/ui/runner_islands/runner-island-mrbeast.zip" | "/mobile/ui/runner_islands/runner-island-test_d.zip" | "/mobile/ui/runner_islands/sea-runner-island_c.zip" | "/mobile/ui/runner_islands/ocean-runner-island_b.zip" | "/mobile/ui/runner_islands/ocean-runner-island.zip";
2089
+ export type ZipFile = "/mobile/ui/runner_islands/runner-island-mrbeast.zip" | "/mobile/ui/runner_islands/runner-island-test_d.zip" | "/mobile/ui/runner_islands/sea-runner-island_c.zip" | "/mobile/ui/runner_islands/ocean-runner-island_b.zip" | "/mobile/ui/runner_islands/ocean-runner-island.zip";
2026
2090
  export interface RunnerIslandLevelChunk {
2027
2091
  id: number;
2028
2092
  lane_1: Lane[] | string;
@@ -2418,7 +2482,7 @@ export interface TowerIsland {
2418
2482
  happy_hours: HappyHour[];
2419
2483
  parameters: FogIslandParameter[];
2420
2484
  currencies: Currency[];
2421
- actions: Action[];
2485
+ actions: ActionElement[];
2422
2486
  }
2423
2487
  export interface Floor {
2424
2488
  id: number;
@@ -2453,7 +2517,7 @@ export interface TowerIslandIsland {
2453
2517
  building_id: number;
2454
2518
  building_position: number[];
2455
2519
  tower_size: number[];
2456
- zip_file: FluffyZipFile;
2520
+ zip_file: string;
2457
2521
  sound_tag: TentacledSoundTag;
2458
2522
  canvas_assets_url: AnalyticsID;
2459
2523
  mobile_first_floor_position: number[];
@@ -2468,7 +2532,6 @@ export interface TowerIslandIsland {
2468
2532
  }
2469
2533
  export type TentacledSoundTag = "RUINED_TOWER";
2470
2534
  export type TidName = "tid_ti_generic_name";
2471
- export type FluffyZipFile = "/mobile/ui/tower_islands/ti_norsegods_b.zip" | "/mobile/ui/tower_islands/ti_energysource_c.zip" | "/mobile/ui/tower_islands/ti_wooden_tower_c.zip";
2472
2535
  export interface TowerIslandReward {
2473
2536
  id: number;
2474
2537
  dragon_reward_id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dchighs/dc-config",
3
- "version": "0.1.134",
3
+ "version": "0.1.136",
4
4
  "description": "A library to handle configuration for Dragon City.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",