@crowdstrike/logscale-search 1.126.0--build-684--sha-1de8e2885c1117489d131c478ebf5a572b6881cf → 1.135.0--build-1077--sha-96faf780527e4e787b35aa7b6885ca30cce9d302
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 +69 -28
- package/index.js +617 -574
- package/index.js.map +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -120,6 +120,7 @@ export declare type CustomLinkInteraction = {
|
|
120
120
|
*/
|
121
121
|
export declare type DashbboardNavigationTarget = {
|
122
122
|
type: "dashboard";
|
123
|
+
openInNewTab: boolean;
|
123
124
|
targetInfo: DashboardNavigationTargetInfo;
|
124
125
|
};
|
125
126
|
|
@@ -227,12 +228,6 @@ export declare type EditState = {
|
|
227
228
|
} | {
|
228
229
|
dashboardId: string;
|
229
230
|
widgetId?: string;
|
230
|
-
} | {
|
231
|
-
alertId: string;
|
232
|
-
} | {
|
233
|
-
filterAlertId: string;
|
234
|
-
} | {
|
235
|
-
scheduledSearchId: string;
|
236
231
|
};
|
237
232
|
|
238
233
|
/**
|
@@ -255,6 +250,35 @@ export declare type FieldColumn = {
|
|
255
250
|
header?: string;
|
256
251
|
};
|
257
252
|
|
253
|
+
/**
|
254
|
+
* A field interaction consists of an `id` used to correlate interaction events to source `FieldInteraction`,
|
255
|
+
* and a `label` used to create the label in the field interaction context menu generating clicking a field on an event.
|
256
|
+
*
|
257
|
+
* The `id` field corresponds to the `interactionId` field on `FieldInteractionEventDetails`.
|
258
|
+
*
|
259
|
+
* @public
|
260
|
+
*/
|
261
|
+
export declare type FieldInteraction = {
|
262
|
+
id: string;
|
263
|
+
label: string;
|
264
|
+
};
|
265
|
+
|
266
|
+
/**
|
267
|
+
* Event details for the invocation of a `FieldInteraction`.
|
268
|
+
*
|
269
|
+
* - The `interactionId` field matches the `id` field of a `FieldInteraction`
|
270
|
+
* and is used to identify the source `FieldInteraction`of the event.
|
271
|
+
* - The `fieldName` field is the name of the field which was clicked on.
|
272
|
+
* - The `fieldValue` field carries the value of the field which was clicked on.
|
273
|
+
*
|
274
|
+
* @public
|
275
|
+
*/
|
276
|
+
export declare type FieldInteractionEventDetails = {
|
277
|
+
interactionId: string;
|
278
|
+
fieldName: string;
|
279
|
+
fieldValue: JsonValue;
|
280
|
+
};
|
281
|
+
|
258
282
|
/**
|
259
283
|
* A column type for displaying all field values.
|
260
284
|
*
|
@@ -290,6 +314,22 @@ export declare type InteractionCondition = {
|
|
290
314
|
"argument": string;
|
291
315
|
};
|
292
316
|
|
317
|
+
/**
|
318
|
+
* A typed representation a JSON object.
|
319
|
+
*
|
320
|
+
* @public
|
321
|
+
*/
|
322
|
+
export declare type JsonObject = {
|
323
|
+
[key: string]: JsonValue;
|
324
|
+
};
|
325
|
+
|
326
|
+
/**
|
327
|
+
* A typed representation of JSON value.
|
328
|
+
*
|
329
|
+
* @public
|
330
|
+
*/
|
331
|
+
export declare type JsonValue = string | number | boolean | Array<JsonValue> | JsonObject;
|
332
|
+
|
293
333
|
/**
|
294
334
|
* The NavigationTarget type specifies the target of a LogScale navigation event.
|
295
335
|
* These are handled by the `onNavigationTargetChange` hook. Sources of Navigation targets are:
|
@@ -311,7 +351,7 @@ export declare interface Options extends CommonOptions, SearchViewParams {
|
|
311
351
|
/** Name of LogScale repository or view */
|
312
352
|
repoOrViewName: string;
|
313
353
|
/** Will initialize the webcomponent in light or dark mode. The theme can be switched through the `setTheme()` method after initialization. */
|
314
|
-
theme:
|
354
|
+
theme: "light" | "dark";
|
315
355
|
/** If the LSP websocket server is accessed from a different URL than the `apiUrl`, you can set this. */
|
316
356
|
lspURL?: string;
|
317
357
|
/** If provided, this token will be passed in the Authentication header as a Bearer token.
|
@@ -350,6 +390,13 @@ export declare interface Options extends CommonOptions, SearchViewParams {
|
|
350
390
|
* interactions panel inside LogScale.
|
351
391
|
*/
|
352
392
|
hostInteractions?: Array<Interaction>;
|
393
|
+
/**
|
394
|
+
* Set custom field interactions available on fields of event.
|
395
|
+
*
|
396
|
+
* Implement the `onFieldInteractionInvoked` hook on the SearchView instance
|
397
|
+
* to react to events related to custom field interactions,
|
398
|
+
*/
|
399
|
+
fieldInteractions?: Array<FieldInteraction>;
|
353
400
|
/**
|
354
401
|
* Hook for handling LogScale navigation targets, e.g. navigating from SearchView to Dashboard or vice versa.
|
355
402
|
*
|
@@ -395,22 +442,6 @@ export declare interface Options extends CommonOptions, SearchViewParams {
|
|
395
442
|
showInteractionsPanel?: boolean;
|
396
443
|
}
|
397
444
|
|
398
|
-
/**
|
399
|
-
* A value for a visualization configuration option.
|
400
|
-
*
|
401
|
-
* @public
|
402
|
-
*/
|
403
|
-
export declare type OptionValue = string | number | boolean | Array<OptionValue> | OptionValues;
|
404
|
-
|
405
|
-
/**
|
406
|
-
* Options for visualization configuration.
|
407
|
-
*
|
408
|
-
* @public
|
409
|
-
*/
|
410
|
-
export declare type OptionValues = {
|
411
|
-
[key: string]: OptionValue;
|
412
|
-
};
|
413
|
-
|
414
445
|
/**
|
415
446
|
* LogScale parameter values is a map with parameter ids as keys,
|
416
447
|
* and either a string or a string array as single / multi value parameter args, respectively.
|
@@ -427,12 +458,12 @@ export declare type ParameterValues = Record<string, string | string[]>;
|
|
427
458
|
export declare type Query = {
|
428
459
|
queryString: string;
|
429
460
|
/** Arguments for parameters in `query`. */
|
430
|
-
|
461
|
+
parameterArgs?: {
|
431
462
|
[key: string]: string;
|
432
463
|
};
|
433
464
|
start: string;
|
434
465
|
end?: string;
|
435
|
-
|
466
|
+
live: boolean;
|
436
467
|
around?: QueryPaginationOptions;
|
437
468
|
};
|
438
469
|
|
@@ -486,6 +517,7 @@ export declare type SearchLinkInteraction = {
|
|
486
517
|
*/
|
487
518
|
export declare type SearchNavigationTarget = {
|
488
519
|
type: "search";
|
520
|
+
openInNewTab: boolean;
|
489
521
|
targetInfo: SearchNavigationTargetInfo;
|
490
522
|
};
|
491
523
|
|
@@ -548,6 +580,14 @@ export declare class SearchView extends WebcomponentBase<Options> {
|
|
548
580
|
* @public
|
549
581
|
*/
|
550
582
|
onSearchViewStateChanged(callback: (searchViewState: SearchNavigationTargetInfo) => void | null): void;
|
583
|
+
/**
|
584
|
+
* Implement this hook to receive notifications about invocations of `FieldInteractions` configured on `Options`.
|
585
|
+
*
|
586
|
+
* @param callback - function for handling notifications of `FieldInteraction` invocations.
|
587
|
+
*
|
588
|
+
* @public
|
589
|
+
*/
|
590
|
+
onFieldInteractionInvoked(callback: (eventDetails: FieldInteractionEventDetails) => void | null): void;
|
551
591
|
}
|
552
592
|
|
553
593
|
/**
|
@@ -559,7 +599,7 @@ export declare class SearchView extends WebcomponentBase<Options> {
|
|
559
599
|
*/
|
560
600
|
export declare interface SearchViewParams {
|
561
601
|
/** The query string set in the query editor. */
|
562
|
-
|
602
|
+
queryString?: string;
|
563
603
|
/** Start of time window used when querying. */
|
564
604
|
start?: string;
|
565
605
|
/** End of time window used when querying. */
|
@@ -595,11 +635,12 @@ export declare interface SearchViewParams {
|
|
595
635
|
/**
|
596
636
|
* A LogScale widget with configuration.
|
597
637
|
*
|
598
|
-
* @public
|
638
|
+
* @public
|
639
|
+
*/
|
599
640
|
export declare type SearchViewVisualization = {
|
600
641
|
type?: WidgetType;
|
601
642
|
/** The configuration options of a LogScale visualization. */
|
602
|
-
options?:
|
643
|
+
options?: JsonObject;
|
603
644
|
};
|
604
645
|
|
605
646
|
/**
|