@barchart/chart-lib 2.260.0 → 2.260.1

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.
@@ -1034,14 +1034,12 @@ declare module "@barchart/chart-lib" {
1034
1034
  target?: Field;
1035
1035
  };
1036
1036
 
1037
- export type ValueType = "Number" | "String" | "Date";
1038
-
1039
1037
  export type FieldModel = {
1040
1038
  id: string;
1041
- type: ValueType;
1042
- category: FieldCategory;
1039
+ type: keyof typeof FieldValueType;
1040
+ category: keyof typeof FieldCategory;
1043
1041
  name?: string;
1044
- format: FieldFormat;
1042
+ format: keyof typeof FieldFormat;
1045
1043
  shortName?: string;
1046
1044
  };
1047
1045
 
@@ -1854,7 +1852,7 @@ declare module "@barchart/chart-lib" {
1854
1852
  /** Starts (or resets) the interactive zoom */
1855
1853
  zoom(zoomIn: boolean);
1856
1854
  /** Resets the chart to default template and re-applies current main plot */
1857
- reset(preserveTheme: boolean = true): void;
1855
+ reset(preserveTheme: boolean): void;
1858
1856
  /** Reserved for internal use. */
1859
1857
  activate(): void;
1860
1858
  }
@@ -2010,17 +2008,29 @@ declare module "@barchart/chart-lib" {
2010
2008
  Tail,
2011
2009
  }
2012
2010
 
2013
- export type FieldValueType = "Number" | "String" | "Date";
2011
+ export enum FieldValueType {
2012
+ Number,
2013
+ String,
2014
+ Date,
2015
+ }
2014
2016
 
2015
- export type FieldCategory =
2016
- | "Common"
2017
- | "Study"
2018
- | "BalanceSheet"
2019
- | "IncomeStatement"
2020
- | "Forward"
2021
- | "Seasonal";
2017
+ export enum FieldCategory {
2018
+ Common,
2019
+ Study,
2020
+ BalanceSheet,
2021
+ IncomeStatement,
2022
+ Forward,
2023
+ Seasonal,
2024
+ Event,
2025
+ Option,
2026
+ }
2022
2027
 
2023
- export type FieldFormat = "FromMetaData" | "AsInteger" | "UseMetricUnit" | "AsPercent";
2028
+ export enum FieldFormat {
2029
+ FromMetaData,
2030
+ AsInteger,
2031
+ UseMetricUnit,
2032
+ AsPercent,
2033
+ }
2024
2034
 
2025
2035
  /** A field is a descriptor/tag of the price, a 'kind' of price. Without the concept of fields, we wouldn't be able to distinguish different prices because they'd all be just numbers. */
2026
2036
  export interface Field {