@dchighs/dc-config 0.1.161 → 0.1.163

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.
@@ -970,7 +970,7 @@ export interface FogIsland {
970
970
  }
971
971
  export interface ActionElement {
972
972
  id: number;
973
- type: string;
973
+ type: ActionType;
974
974
  tid_name: ActionTidName;
975
975
  image: Image;
976
976
  pool_percent: number;
@@ -986,6 +986,7 @@ export interface ExtraParameters {
986
986
  }
987
987
  export type Image = "ic-info-action-collect-gold.png" | "ic-info-action-collect-food.png" | "ic-info-action-feed.png" | "ic-info-action-pvp.png" | "ic-info-action-breed.png" | "ic-info-action-hatch-2-el.png" | "ic-info-action-hatch-3-el.png" | "ic-info-action-hatch-legendary.png";
988
988
  export type ActionTidName = "tid_grid_islands_collect_gold" | "tid_grid_islands_collect_farm_food" | "tid_grid_islands_feed_dragons" | "tid_grid_islands_pvp_battle" | "tid_grid_islands_breed_dragons" | "tid_grid_islands_hatching_2_el" | "tid_grid_islands_hatching_3_el" | "tid_grid_islands_hatching_legendary";
989
+ export type ActionType = "COLLECT_GOLD" | "COLLECT_FARM_FOOD" | "FEED_DRAGONS" | "PVP" | "BREED_DRAGONS" | "HATCH_2" | "HATCH_3" | "HATCH_LEGEND" | "COLLECT_GREENHOUSE_FOOD";
989
990
  export interface Currency {
990
991
  id: number;
991
992
  tid_name: string;
@@ -1159,7 +1160,7 @@ export interface Encounter {
1159
1160
  fight_background?: string;
1160
1161
  fight_background_id: FightBackgroundID;
1161
1162
  }
1162
- 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_mr_109_mythical_porpoise" | "bg_battle_background_mi_mystery_in_paradise" | "bg_battle_background_mi_dragonmysteries" | "bg_battle_background_mi_fall_from_grace" | "bg_battle_background_mi_norsegods" | "bg_battle_background_mi_halloween25";
1163
+ 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_mr_109_mythical_porpoise" | "bg_battle_background_hr_halloween26" | "bg_battle_background_mi_mystery_in_paradise" | "bg_battle_background_mi_dragonmysteries" | "bg_battle_background_mi_fall_from_grace" | "bg_battle_background_mi_norsegods" | "bg_battle_background_mi_halloween25";
1163
1164
  export interface EnemyElement {
1164
1165
  id: number;
1165
1166
  dragon_ids: number[];
@@ -1718,9 +1719,9 @@ export interface News {
1718
1719
  "4": The4;
1719
1720
  "5": The5;
1720
1721
  "6": The6;
1721
- "7": The7;
1722
+ "7": The1;
1722
1723
  "8": The6;
1723
- "9": The9;
1724
+ "9": The1;
1724
1725
  canvas: Canva[];
1725
1726
  }
1726
1727
  export interface The0 {
@@ -1741,7 +1742,9 @@ export interface The0_HudButton {
1741
1742
  title: string;
1742
1743
  }
1743
1744
  export interface The0_Slide {
1745
+ content_localized_key: string;
1744
1746
  custom_title_localized_key: string;
1747
+ header_localized_key: string;
1745
1748
  image_url: string;
1746
1749
  link: string;
1747
1750
  link_button_key: string;
@@ -1756,49 +1759,39 @@ export interface The1 {
1756
1759
  assets_name: string;
1757
1760
  direct_to_shop: number;
1758
1761
  end_ts: string;
1759
- filter_category: null;
1760
- hud_button: The1_HudButton;
1761
1762
  id: number;
1762
- label_text_tid: null;
1763
- label_title_tid: null;
1764
1763
  min_level: number;
1765
1764
  popup_frequency: string;
1766
- popup_is_critical: number;
1767
1765
  popup_type: string;
1768
- priority: null;
1769
1766
  show_on_startup: number;
1770
1767
  slides: The1_Slide[];
1771
1768
  start_ts: string;
1772
1769
  }
1773
- export interface The1_HudButton {
1774
- file: string;
1775
- title: string;
1776
- viral_icon_tier: number;
1777
- }
1778
1770
  export interface The1_Slide {
1779
1771
  content_localized_key: string;
1780
1772
  custom_title_localized_key: string;
1781
- forceClose?: boolean;
1782
1773
  header_localized_key: string;
1783
1774
  image_url: string;
1784
1775
  multiple_buttons: MultipleButton[];
1785
1776
  times_to_show: number;
1786
- type: string;
1777
+ type: SlideType;
1778
+ forceClose?: boolean;
1787
1779
  }
1788
1780
  export interface MultipleButton {
1789
1781
  animation: AnimationNameEnum;
1790
1782
  animationPlace: AnimationPlace;
1791
1783
  forceClose: boolean;
1792
1784
  glint: boolean;
1793
- key: string;
1785
+ key: Key;
1794
1786
  link: string;
1787
+ linkItemId?: number | string;
1795
1788
  normalizedPosition: NormalizedPosition;
1796
1789
  size: SizeClass;
1797
- style: Style;
1798
1790
  spineAsset?: SpineAsset;
1799
- linkItemId?: number | string;
1791
+ style: Style;
1800
1792
  }
1801
1793
  export type AnimationPlace = "Foreground";
1794
+ export type Key = "" | "tid_news_viptiers_button" | "tid_helpshift_faq_title";
1802
1795
  export interface NormalizedPosition {
1803
1796
  x: number;
1804
1797
  y: number;
@@ -1807,8 +1800,9 @@ export interface SizeClass {
1807
1800
  h: number;
1808
1801
  w: number;
1809
1802
  }
1810
- export type SpineAsset = "pointer_animation_v2" | "";
1811
- export type Style = "YellowLarge" | "BlueLarge" | "Transparent";
1803
+ export type SpineAsset = "pointer_animation_v2";
1804
+ export type Style = "Transparent" | "YellowLarge" | "BlueLarge";
1805
+ export type SlideType = "FullImage";
1812
1806
  export interface The2 {
1813
1807
  active_platforms: ValueClass;
1814
1808
  allow_island_tutorial: number;
@@ -1816,18 +1810,24 @@ export interface The2 {
1816
1810
  direct_to_shop: number;
1817
1811
  end_ts: string;
1818
1812
  filter_category: null;
1819
- hud_button: The1_HudButton;
1813
+ hud_button: The2_HudButton;
1820
1814
  id: number;
1821
1815
  label_text_tid: null;
1822
1816
  label_title_tid: null;
1823
1817
  min_level: number;
1824
1818
  popup_frequency: string;
1819
+ popup_is_critical: number;
1825
1820
  popup_type: string;
1826
1821
  priority: null;
1827
1822
  show_on_startup: number;
1828
1823
  slides: The1_Slide[];
1829
1824
  start_ts: string;
1830
1825
  }
1826
+ export interface The2_HudButton {
1827
+ file: string;
1828
+ title: string;
1829
+ viral_icon_tier: number;
1830
+ }
1831
1831
  export interface The3 {
1832
1832
  active_platforms: ValueClass;
1833
1833
  allow_island_tutorial: number;
@@ -1835,11 +1835,12 @@ export interface The3 {
1835
1835
  direct_to_shop: number;
1836
1836
  end_ts: string;
1837
1837
  filter_category: null;
1838
- hud_button: The1_HudButton;
1838
+ hud_button: The2_HudButton;
1839
1839
  id: number;
1840
1840
  label_text_tid: null;
1841
1841
  label_title_tid: null;
1842
1842
  min_level: number;
1843
+ popup_frequency: string;
1843
1844
  popup_type: string;
1844
1845
  priority: null;
1845
1846
  show_on_startup: number;
@@ -1853,29 +1854,17 @@ export interface The4 {
1853
1854
  direct_to_shop: number;
1854
1855
  end_ts: string;
1855
1856
  filter_category: null;
1856
- hud_button: The1_HudButton;
1857
+ hud_button: The2_HudButton;
1857
1858
  id: number;
1858
1859
  label_text_tid: null;
1859
1860
  label_title_tid: null;
1860
1861
  min_level: number;
1861
- popup_frequency: string;
1862
1862
  popup_type: string;
1863
1863
  priority: null;
1864
1864
  show_on_startup: number;
1865
- slides: The4_Slide[];
1865
+ slides: The1_Slide[];
1866
1866
  start_ts: string;
1867
1867
  }
1868
- export interface The4_Slide {
1869
- content_localized_key: string;
1870
- custom_title_localized_key: string;
1871
- header_localized_key: string;
1872
- image_url: string;
1873
- link: string;
1874
- link_button_key: string;
1875
- link_item_id: number;
1876
- slide_type: string;
1877
- slide_type_2: string;
1878
- }
1879
1868
  export interface The5 {
1880
1869
  active_platforms: ValueClass;
1881
1870
  allow_island_tutorial: number;
@@ -1900,7 +1889,7 @@ export interface The5_Slide {
1900
1889
  image_url: string;
1901
1890
  multiple_buttons: MultipleButton[];
1902
1891
  times_to_show: number;
1903
- type: string;
1892
+ type: SlideType;
1904
1893
  }
1905
1894
  export interface The6 {
1906
1895
  active_platforms: ValueClass;
@@ -1919,39 +1908,6 @@ export interface The6 {
1919
1908
  slides: The1_Slide[];
1920
1909
  start_ts: string;
1921
1910
  }
1922
- export interface The7 {
1923
- active_platforms: ValueClass;
1924
- allow_island_tutorial: number;
1925
- assets_name: string;
1926
- direct_to_shop: number;
1927
- end_ts: string;
1928
- id: number;
1929
- min_level: number;
1930
- popup_frequency: string;
1931
- popup_type: string;
1932
- show_on_startup: number;
1933
- slides: The1_Slide[];
1934
- start_ts: string;
1935
- }
1936
- export interface The9 {
1937
- active_platforms: The9_ActivePlatforms;
1938
- allow_island_tutorial: number;
1939
- assets_name: string;
1940
- direct_to_shop: number;
1941
- end_ts: string;
1942
- id: number;
1943
- min_level: number;
1944
- popup_frequency: string;
1945
- popup_is_critical: boolean;
1946
- popup_type: string;
1947
- show_on_startup: number;
1948
- slides: The1_Slide[];
1949
- start_ts: string;
1950
- }
1951
- export interface The9_ActivePlatforms {
1952
- android: number[];
1953
- ios: number[];
1954
- }
1955
1911
  export interface Canva {
1956
1912
  id: number;
1957
1913
  assets_name: string;
@@ -1966,7 +1922,7 @@ export interface CanvaSlide {
1966
1922
  header_localized_key?: string;
1967
1923
  image_url?: string;
1968
1924
  times_to_show?: number;
1969
- type?: string;
1925
+ type?: SlideType;
1970
1926
  multiple_buttons?: MultipleButton[];
1971
1927
  bg?: string;
1972
1928
  content?: Content[];
@@ -1977,15 +1933,19 @@ export interface CanvaSlide {
1977
1933
  viral_icon_timer?: string;
1978
1934
  }
1979
1935
  export interface Content {
1980
- action: ContentAction;
1981
1936
  height: number;
1982
1937
  rotation: number;
1983
- style: string;
1938
+ stroke?: string;
1939
+ text_color?: string;
1984
1940
  text_key: string;
1941
+ text_size?: number;
1942
+ timer?: number;
1985
1943
  type: string;
1986
1944
  width: number;
1987
1945
  x: number;
1988
1946
  y: number;
1947
+ action?: ContentAction;
1948
+ style?: string;
1989
1949
  }
1990
1950
  export interface ContentAction {
1991
1951
  itemId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dchighs/dc-config",
3
- "version": "0.1.161",
3
+ "version": "0.1.163",
4
4
  "description": "A library to handle configuration for Dragon City.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",