@crowdstrike/logscale-search 1.135.0--build-1077--sha-96faf780527e4e787b35aa7b6885ca30cce9d302 → 1.136.1--build-1149--sha-9b619083000d83b74355529c41cdb8cba57e5194

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
@@ -193,7 +193,7 @@ export declare interface DashboardParams {
193
193
  */
194
194
  end?: string;
195
195
  /** Set to true to make the dashboard `live`. Defaults to `false` */
196
- isLive?: boolean;
196
+ live?: boolean;
197
197
  /**
198
198
  * Set to `true` to make all dashboard queries use `start` and `end` as time window.
199
199
  */
@@ -483,6 +483,36 @@ export declare type QueryPaginationOptions = {
483
483
  numberOfEventsAfter: number;
484
484
  };
485
485
 
486
+ /**
487
+ * A Query Result.
488
+ *
489
+ * This is the result of a LogScale Query being executed and polled.
490
+ *
491
+ * @public
492
+ */
493
+ export declare type QueryResult = {
494
+ done: boolean;
495
+ cancelled: boolean;
496
+ events: QueryResultRow[];
497
+ metaData: {
498
+ queryStart: number;
499
+ queryEnd: number;
500
+ };
501
+ };
502
+
503
+ /**
504
+ * A single row of a QueryResult.
505
+ *
506
+ * This contains the data of a single event / row.
507
+ *
508
+ * @public
509
+ */
510
+ export declare type QueryResultRow = {
511
+ [key: string]: string;
512
+ } & {
513
+ "@timestamp"?: number;
514
+ };
515
+
486
516
  /**
487
517
  * A repository or view option for the LogScale Search view Repository or View selector.
488
518
  *
@@ -538,6 +568,14 @@ export declare type SearchNavigationTargetInfo = SearchViewParams & {
538
568
  * @public
539
569
  */
540
570
  export declare class SearchView extends WebcomponentBase<Options> {
571
+ /**
572
+ * Set the state of the SearchView.
573
+ *
574
+ * @param searchViewParams - the new search view state
575
+ *
576
+ * @public
577
+ */
578
+ setState(searchViewParams: SearchViewParams): void;
541
579
  /**
542
580
  * Set the query string of the SearchView query editor.
543
581
  *
@@ -570,7 +608,7 @@ export declare class SearchView extends WebcomponentBase<Options> {
570
608
  *
571
609
  * @public
572
610
  */
573
- onQueryResult(callback: (filter?: string) => void | null): void;
611
+ onQueryResult(callback: (queryResult: QueryResult) => void | null): void;
574
612
  /**
575
613
  * Implement this hook to receive notifications about changes to the state of the Search view.
576
614
  *