@crowdstrike/logscale-search 1.143.0--build-1386--sha-7dd77c28f152f02d096cfff2b59838bf1e98cde4 → 1.143.0--build-1495--sha-1355c819ee5552532633ad01cad6e6969d1624da
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 +80 -8
- package/index.js +409 -416
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -297,6 +297,14 @@ export declare type FieldListColumn = {
|
|
297
297
|
groupByPrefix?: boolean;
|
298
298
|
};
|
299
299
|
|
300
|
+
/**
|
301
|
+
* Encapsulates information about the LogScale data which has been interacted with,
|
302
|
+
* and which interaction was the source of the event.
|
303
|
+
*
|
304
|
+
* @public
|
305
|
+
*/
|
306
|
+
export declare type HostInteractionEvent = RowInteractionEvent;
|
307
|
+
|
300
308
|
/**
|
301
309
|
* LogScale Interactions.
|
302
310
|
* See [documentation](https://library.humio.com/data-analysis/dashboards-interactions.html) for more information.
|
@@ -311,12 +319,12 @@ export declare type Interaction = CustomLinkInteraction | SearchLinkInteraction
|
|
311
319
|
* @public
|
312
320
|
*/
|
313
321
|
export declare type InteractionCondition = {
|
314
|
-
|
315
|
-
|
322
|
+
operator: "present" | "not-present";
|
323
|
+
fieldName: string;
|
316
324
|
} | {
|
317
|
-
|
318
|
-
|
319
|
-
|
325
|
+
operator: "starts-with" | "ends-with" | "equal" | "not-equal" | "contains" | "not-contains";
|
326
|
+
fieldName: string;
|
327
|
+
argument: string;
|
320
328
|
};
|
321
329
|
|
322
330
|
/**
|
@@ -394,7 +402,7 @@ export declare interface Options extends CommonOptions, SearchViewParams {
|
|
394
402
|
* Note: `hostInteractions` can only be configured through the host application and will not be configurable through the
|
395
403
|
* interactions panel inside LogScale.
|
396
404
|
*/
|
397
|
-
hostInteractions?: Array<Interaction>;
|
405
|
+
hostInteractions?: Array<Interaction | RowInteraction>;
|
398
406
|
/**
|
399
407
|
* Set custom field interactions available on fields of event.
|
400
408
|
*
|
@@ -548,6 +556,42 @@ export declare type RepoOrViewOption = {
|
|
548
556
|
type: "repo" | "view";
|
549
557
|
};
|
550
558
|
|
559
|
+
/**
|
560
|
+
* A generic row interaction type which has to be handled by the host application (you).
|
561
|
+
*
|
562
|
+
* The name of the interaction is attached to the corresponding `RowInteractionTarget`
|
563
|
+
* which is generated when interaction is invoked.
|
564
|
+
*
|
565
|
+
* @public
|
566
|
+
*/
|
567
|
+
export declare type RowInteraction = {
|
568
|
+
type: "row";
|
569
|
+
id: string;
|
570
|
+
/**
|
571
|
+
* A template to render a title for the interaction when rendered in the interactions menu.
|
572
|
+
* This supports [LogScale template expressions](https://library.humio.com/data-analysis/template-language-expressions.html).
|
573
|
+
*/
|
574
|
+
titleTemplate: string;
|
575
|
+
conditions?: Array<InteractionCondition> | null;
|
576
|
+
};
|
577
|
+
|
578
|
+
/**
|
579
|
+
* Event generated from the invocation of a `RowInteraction`.
|
580
|
+
*
|
581
|
+
* @public
|
582
|
+
*/
|
583
|
+
export declare type RowInteractionEvent = {
|
584
|
+
type: "row";
|
585
|
+
/**
|
586
|
+
* The id of the interaction which was the source of the event.
|
587
|
+
*/
|
588
|
+
id: string;
|
589
|
+
/**
|
590
|
+
* The row which has been interacted with.
|
591
|
+
*/
|
592
|
+
row: Record<string, string>;
|
593
|
+
};
|
594
|
+
|
551
595
|
/**
|
552
596
|
* Search Link interaction type.
|
553
597
|
* If `onNavigationTargetChange` hook is implemented, these interactions will
|
@@ -596,11 +640,11 @@ export declare class SearchView extends WebcomponentBase<Options> {
|
|
596
640
|
/**
|
597
641
|
* Set the state of the SearchView.
|
598
642
|
*
|
599
|
-
* @param
|
643
|
+
* @param stateParams - the new state
|
600
644
|
*
|
601
645
|
* @public
|
602
646
|
*/
|
603
|
-
setState(
|
647
|
+
setState(stateParams: SetStateParams): void;
|
604
648
|
/**
|
605
649
|
* Set the query string of the SearchView query editor.
|
606
650
|
*
|
@@ -651,6 +695,14 @@ export declare class SearchView extends WebcomponentBase<Options> {
|
|
651
695
|
* @public
|
652
696
|
*/
|
653
697
|
onFieldInteractionInvoked(callback: (eventDetails: FieldInteractionEventDetails) => void | null): void;
|
698
|
+
/**
|
699
|
+
* Implement this hook to receive notifications about invocations of `HostInteractions` of type "row".
|
700
|
+
*
|
701
|
+
* @param callback - function for handling `HostInteractionTarget`.
|
702
|
+
*
|
703
|
+
* @public
|
704
|
+
*/
|
705
|
+
onHostInteractionInvoked(callback: (hostInteractionEvent: HostInteractionEvent) => void | null): void;
|
654
706
|
}
|
655
707
|
|
656
708
|
/**
|
@@ -715,13 +767,33 @@ export declare type SetQueryStringOptions = {
|
|
715
767
|
run?: boolean;
|
716
768
|
};
|
717
769
|
|
770
|
+
/**
|
771
|
+
* Params to use when calling SearchView.setState.
|
772
|
+
*
|
773
|
+
* @public
|
774
|
+
*/
|
775
|
+
export declare type SetStateParams = SearchViewParams & {
|
776
|
+
repoOrViewName?: string;
|
777
|
+
timezone?: string;
|
778
|
+
};
|
779
|
+
|
718
780
|
/**
|
719
781
|
* The shared properties of all interaction types.
|
720
782
|
*
|
721
783
|
* @public
|
722
784
|
*/
|
723
785
|
export declare type SharedInteractionProperties = {
|
786
|
+
/**
|
787
|
+
* The name of the interaction.
|
788
|
+
* This should be unique.
|
789
|
+
*/
|
724
790
|
name: string;
|
791
|
+
/**
|
792
|
+
* A template to render a title for the interaction when rendered in the interactions menu.
|
793
|
+
* This supports [LogScale template expressions](https://library.humio.com/data-analysis/template-language-expressions.html).
|
794
|
+
*
|
795
|
+
* If omitted, `name` will be used to render the interaction title.
|
796
|
+
*/
|
725
797
|
titleTemplate?: string | null;
|
726
798
|
conditions?: Array<InteractionCondition> | null;
|
727
799
|
};
|