@dchighs/dc-config 0.1.160 → 0.1.162

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 Action {
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[];
@@ -1717,10 +1718,9 @@ export interface News {
1717
1718
  "3": The3;
1718
1719
  "4": The4;
1719
1720
  "5": The5;
1720
- "6": The6;
1721
- "7": The7;
1722
- "8": The6;
1723
- "9": The9;
1721
+ "6": The0;
1722
+ "7": The5;
1723
+ "8": The0;
1724
1724
  canvas: Canva[];
1725
1725
  }
1726
1726
  export interface The0 {
@@ -1729,75 +1729,39 @@ export interface The0 {
1729
1729
  assets_name: string;
1730
1730
  direct_to_shop: number;
1731
1731
  end_ts: string;
1732
- hud_button: HudButton;
1733
1732
  id: number;
1734
1733
  min_level: number;
1734
+ popup_frequency: string;
1735
1735
  popup_type: string;
1736
1736
  show_on_startup: number;
1737
1737
  slides: The0_Slide[];
1738
1738
  start_ts: string;
1739
1739
  }
1740
- export interface HudButton {
1741
- file: string;
1742
- title: string;
1743
- viral_icon_tier: number;
1744
- }
1745
1740
  export interface The0_Slide {
1746
- content_localized_key: string;
1741
+ content_localized_key?: string;
1747
1742
  custom_title_localized_key: string;
1748
1743
  header_localized_key: string;
1749
1744
  image_url: string;
1750
- link: string;
1751
- link_button_key: string;
1752
- slide_type: string;
1753
- slide_type_2: string;
1754
- timer?: string;
1755
- link_item_id?: number;
1756
- }
1757
- export interface The1 {
1758
- active_platforms: ValueClass;
1759
- allow_island_tutorial: number;
1760
- assets_name: string;
1761
- direct_to_shop: number;
1762
- end_ts: string;
1763
- filter_category: null;
1764
- hud_button: HudButton;
1765
- id: number;
1766
- label_text_tid: null;
1767
- label_title_tid: null;
1768
- min_level: number;
1769
- popup_frequency: string;
1770
- popup_is_critical: number;
1771
- popup_type: string;
1772
- priority: null;
1773
- show_on_startup: number;
1774
- slides: The1_Slide[];
1775
- start_ts: string;
1776
- }
1777
- export interface The1_Slide {
1778
- content_localized_key: string;
1779
- custom_title_localized_key: string;
1780
- forceClose?: boolean;
1781
- header_localized_key: string;
1782
- image_url: string;
1783
1745
  multiple_buttons: MultipleButton[];
1784
1746
  times_to_show: number;
1785
- type: string;
1747
+ type: SlideType;
1748
+ forceClose?: boolean;
1786
1749
  }
1787
1750
  export interface MultipleButton {
1788
1751
  animation: AnimationNameEnum;
1789
1752
  animationPlace: AnimationPlace;
1790
1753
  forceClose: boolean;
1791
1754
  glint: boolean;
1792
- key: string;
1755
+ key: Key;
1793
1756
  link: string;
1757
+ linkItemId?: number | string;
1794
1758
  normalizedPosition: NormalizedPosition;
1795
1759
  size: SizeClass;
1796
- style: Style;
1797
1760
  spineAsset?: SpineAsset;
1798
- linkItemId?: number | string;
1761
+ style: Style;
1799
1762
  }
1800
1763
  export type AnimationPlace = "Foreground";
1764
+ export type Key = "" | "tid_news_viptiers_button" | "tid_helpshift_faq_title";
1801
1765
  export interface NormalizedPosition {
1802
1766
  x: number;
1803
1767
  y: number;
@@ -1806,9 +1770,10 @@ export interface SizeClass {
1806
1770
  h: number;
1807
1771
  w: number;
1808
1772
  }
1809
- export type SpineAsset = "pointer_animation_v2" | "";
1810
- export type Style = "YellowLarge" | "BlueLarge" | "Transparent";
1811
- export interface The2 {
1773
+ export type SpineAsset = "pointer_animation_v2";
1774
+ export type Style = "Transparent" | "YellowLarge" | "BlueLarge";
1775
+ export type SlideType = "FullImage";
1776
+ export interface The1 {
1812
1777
  active_platforms: ValueClass;
1813
1778
  allow_island_tutorial: number;
1814
1779
  assets_name: string;
@@ -1821,13 +1786,19 @@ export interface The2 {
1821
1786
  label_title_tid: null;
1822
1787
  min_level: number;
1823
1788
  popup_frequency: string;
1789
+ popup_is_critical: number;
1824
1790
  popup_type: string;
1825
1791
  priority: null;
1826
1792
  show_on_startup: number;
1827
- slides: The1_Slide[];
1793
+ slides: The0_Slide[];
1828
1794
  start_ts: string;
1829
1795
  }
1830
- export interface The3 {
1796
+ export interface HudButton {
1797
+ file: string;
1798
+ title: string;
1799
+ viral_icon_tier: number;
1800
+ }
1801
+ export interface The2 {
1831
1802
  active_platforms: ValueClass;
1832
1803
  allow_island_tutorial: number;
1833
1804
  assets_name: string;
@@ -1839,13 +1810,14 @@ export interface The3 {
1839
1810
  label_text_tid: null;
1840
1811
  label_title_tid: null;
1841
1812
  min_level: number;
1813
+ popup_frequency: string;
1842
1814
  popup_type: string;
1843
1815
  priority: null;
1844
1816
  show_on_startup: number;
1845
- slides: The1_Slide[];
1817
+ slides: The0_Slide[];
1846
1818
  start_ts: string;
1847
1819
  }
1848
- export interface The4 {
1820
+ export interface The3 {
1849
1821
  active_platforms: ValueClass;
1850
1822
  allow_island_tutorial: number;
1851
1823
  assets_name: string;
@@ -1857,14 +1829,13 @@ export interface The4 {
1857
1829
  label_text_tid: null;
1858
1830
  label_title_tid: null;
1859
1831
  min_level: number;
1860
- popup_frequency: string;
1861
1832
  popup_type: string;
1862
1833
  priority: null;
1863
1834
  show_on_startup: number;
1864
1835
  slides: The0_Slide[];
1865
1836
  start_ts: string;
1866
1837
  }
1867
- export interface The5 {
1838
+ export interface The4 {
1868
1839
  active_platforms: ValueClass;
1869
1840
  allow_island_tutorial: number;
1870
1841
  assets_name: string;
@@ -1878,19 +1849,19 @@ export interface The5 {
1878
1849
  popup_type: string;
1879
1850
  priority: number;
1880
1851
  show_on_startup: number;
1881
- slides: The5_Slide[];
1852
+ slides: The4_Slide[];
1882
1853
  start_ts: string;
1883
1854
  }
1884
- export interface The5_Slide {
1855
+ export interface The4_Slide {
1885
1856
  content_localized_key: string;
1886
1857
  custom_title_localized_key: string;
1887
1858
  header_localized_key: string;
1888
1859
  image_url: string;
1889
1860
  multiple_buttons: MultipleButton[];
1890
1861
  times_to_show: number;
1891
- type: string;
1862
+ type: SlideType;
1892
1863
  }
1893
- export interface The6 {
1864
+ export interface The5 {
1894
1865
  active_platforms: ValueClass;
1895
1866
  allow_island_tutorial: number;
1896
1867
  assets_name: string;
@@ -1904,79 +1875,17 @@ export interface The6 {
1904
1875
  popup_type: string;
1905
1876
  priority: number | null;
1906
1877
  show_on_startup: number;
1907
- slides: The1_Slide[];
1908
- start_ts: string;
1909
- }
1910
- export interface The7 {
1911
- active_platforms: ValueClass;
1912
- allow_island_tutorial: number;
1913
- assets_name: string;
1914
- direct_to_shop: number;
1915
- end_ts: string;
1916
- id: number;
1917
- min_level: number;
1918
- popup_frequency: string;
1919
- popup_type: string;
1920
- show_on_startup: number;
1921
- slides: The1_Slide[];
1922
- start_ts: string;
1923
- }
1924
- export interface The9 {
1925
- active_platforms: The9_ActivePlatforms;
1926
- allow_island_tutorial: number;
1927
- assets_name: string;
1928
- direct_to_shop: number;
1929
- end_ts: string;
1930
- id: number;
1931
- min_level: number;
1932
- popup_frequency: string;
1933
- popup_is_critical: boolean;
1934
- popup_type: string;
1935
- show_on_startup: number;
1936
- slides: The1_Slide[];
1878
+ slides: The0_Slide[];
1937
1879
  start_ts: string;
1938
1880
  }
1939
- export interface The9_ActivePlatforms {
1940
- android: number[];
1941
- ios: number[];
1942
- }
1943
1881
  export interface Canva {
1944
1882
  id: number;
1945
1883
  assets_name: string;
1946
- start_ts: number | string;
1947
- end_ts: number | string;
1884
+ start_ts: number;
1885
+ end_ts: number;
1948
1886
  min_level: number;
1949
- slides: CanvaSlide[];
1887
+ slides: The0_Slide[];
1950
1888
  show_on_startup: number;
1951
- priority?: string;
1952
- }
1953
- export interface CanvaSlide {
1954
- custom_title_localized_key?: string;
1955
- header_localized_key?: string;
1956
- image_url?: string;
1957
- times_to_show?: number;
1958
- type?: string;
1959
- multiple_buttons?: MultipleButton[];
1960
- bg?: string;
1961
- content?: Content[];
1962
- edit_mode?: number;
1963
- id?: number;
1964
- title_key?: string;
1965
- viral_icon_key?: string;
1966
- viral_icon_timer?: string;
1967
- }
1968
- export interface Content {
1969
- height: number;
1970
- rotation: number;
1971
- stroke: string;
1972
- text_color: string;
1973
- text_key: string;
1974
- text_size: number;
1975
- timer: number;
1976
- type: string;
1977
- width: number;
1978
- x: number;
1979
- y: number;
1980
1889
  }
1981
1890
  export interface Perks {
1982
1891
  abilities: Ability[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dchighs/dc-config",
3
- "version": "0.1.160",
3
+ "version": "0.1.162",
4
4
  "description": "A library to handle configuration for Dragon City.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",