@crowdstrike/logscale-search 1.138.0--build-1213--sha-58e0f694aa232d8adf81d25d18084fe9b5bb0c84 → 1.140.0--build-1313--sha-672eb9d44b1d089036df31128886bcab9b9ff1b9

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.
Files changed (4) hide show
  1. package/index.d.ts +23 -3
  2. package/index.js +506 -1457
  3. package/index.js.map +2 -2
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -494,9 +494,29 @@ export declare type QueryResult = {
494
494
  done: boolean;
495
495
  cancelled: boolean;
496
496
  events: QueryResultRow[];
497
- metaData: {
498
- queryStart: number;
499
- queryEnd: number;
497
+ metaData: QueryResultMetaData;
498
+ };
499
+
500
+ /**
501
+ * Meta data for a LogScale QueryResult.
502
+ *
503
+ * @public
504
+ */
505
+ export declare type QueryResultMetaData = {
506
+ queryStart: number;
507
+ queryEnd: number;
508
+ fieldOrder?: string[];
509
+ isAggregate: boolean;
510
+ eventCount: number;
511
+ /** Optional meta data fields that depend on the type of query result. */
512
+ extraData: {
513
+ sortOrder?: Array<{
514
+ field: string;
515
+ order: "desc" | "asc";
516
+ type: string;
517
+ }>;
518
+ } & {
519
+ [k: string]: string;
500
520
  };
501
521
  };
502
522