@crowdstrike/logscale-search 1.149.0--build-1667--sha-9a5133079afe4266311a53cea0315e01e7b08af1 → 1.150.0--build-1709--sha-af69a60c9069b5a2ee509a9bfae398d8092f74b8

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/index.d.ts CHANGED
@@ -200,9 +200,15 @@ export declare interface DashboardParams {
200
200
  sharedTime?: boolean;
201
201
  /**
202
202
  * A map of widget ids and their query start and end times.
203
- * Note: these will only be used when querying is `sharedTime` is set to `false`.
203
+ * Note: these will only be used when querying if `sharedTime` is set to `false`.
204
204
  */
205
205
  widgetTimes?: WidgetTimes;
206
+ /**
207
+ * A map of section ids and section states. A section state includes the current time interval and whether it is collapsed.
208
+ * Note: the time interval will only be used when querying if the time selector is enabled for
209
+ * the section and `sharedTime`is set to `false`.
210
+ */
211
+ sectionStates?: SectionStates;
206
212
  }
207
213
 
208
214
  /**
@@ -758,6 +764,24 @@ export declare type SearchViewVisualization = {
758
764
  options?: JsonObject;
759
765
  };
760
766
 
767
+ /**
768
+ * The state of a section, which includes the current time interval and whether the section is collapsed.
769
+ *
770
+ * @public
771
+ */
772
+ export declare type SectionState = {
773
+ timeInterval?: TimeInterval;
774
+ collapsed?: boolean;
775
+ };
776
+
777
+ /**
778
+ * Section times is a map with section ids as keys,
779
+ * and their corresponding time selector arguments.
780
+ *
781
+ * @public
782
+ */
783
+ export declare type SectionStates = Record<string, SectionState>;
784
+
761
785
  /**
762
786
  * Options to use when setting query string.
763
787
  *
@@ -810,6 +834,16 @@ export declare type TimeColumn = {
810
834
  header?: string;
811
835
  };
812
836
 
837
+ /**
838
+ * A time interval is a start and an optional end time used for querying.
839
+ *
840
+ * @public
841
+ */
842
+ export declare type TimeInterval = {
843
+ start: string;
844
+ end?: string;
845
+ };
846
+
813
847
  /**
814
848
  * `name` should be a timezone name in the format `<Continent>/<City>` (Ex: `Asia/Tokyo`).
815
849
  * For timezones that are not relative to a continent, the first part is `Etc` (Ex: `Etc/GMT-3`).
@@ -858,10 +892,7 @@ export declare abstract class WebcomponentBase<Opts extends CommonOptions> exten
858
892
  *
859
893
  * @public
860
894
  */
861
- export declare type WidgetTime = {
862
- start: string;
863
- end?: string;
864
- };
895
+ export declare type WidgetTime = TimeInterval;
865
896
 
866
897
  /**
867
898
  * Widget times is a map with widget ids as keys,