@kong-ui-public/analytics-utilities 9.8.1-pr.2172.9564bc8f4.0 → 9.9.0

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 (77) hide show
  1. package/dist/types/constants.d.ts +2 -0
  2. package/dist/types/constants.d.ts.map +1 -0
  3. package/dist/types/dashboardSchema.d.ts +2978 -0
  4. package/dist/types/dashboardSchema.d.ts.map +1 -0
  5. package/dist/types/dashboardSchema.v2.d.ts +2976 -0
  6. package/dist/types/dashboardSchema.v2.d.ts.map +1 -0
  7. package/dist/types/format.d.ts +15 -0
  8. package/dist/types/format.d.ts.map +1 -0
  9. package/dist/types/format.spec.tz.d.ts +2 -0
  10. package/dist/types/format.spec.tz.d.ts.map +1 -0
  11. package/dist/types/granularity.d.ts +27 -0
  12. package/dist/types/granularity.d.ts.map +1 -0
  13. package/dist/types/index.d.ts +10 -0
  14. package/dist/types/index.d.ts.map +1 -0
  15. package/dist/types/queryTime.d.ts +36 -0
  16. package/dist/types/queryTime.d.ts.map +1 -0
  17. package/dist/types/queryTime.spec.tz.d.ts +2 -0
  18. package/dist/types/queryTime.spec.tz.d.ts.map +1 -0
  19. package/dist/types/specUtils.d.ts +3 -0
  20. package/dist/types/specUtils.d.ts.map +1 -0
  21. package/dist/types/timeframes.d.ts +33 -0
  22. package/dist/types/timeframes.d.ts.map +1 -0
  23. package/dist/types/types/analytics-config.d.ts +23 -0
  24. package/dist/types/types/analytics-config.d.ts.map +1 -0
  25. package/dist/types/types/chart-types.d.ts +3 -0
  26. package/dist/types/types/chart-types.d.ts.map +1 -0
  27. package/dist/types/types/datepicker-selection.d.ts +6 -0
  28. package/dist/types/types/datepicker-selection.d.ts.map +1 -0
  29. package/dist/types/types/druid-granularity.d.ts +6 -0
  30. package/dist/types/types/druid-granularity.d.ts.map +1 -0
  31. package/dist/types/types/explore/advanced.d.ts +20 -0
  32. package/dist/types/types/explore/advanced.d.ts.map +1 -0
  33. package/dist/types/types/explore/ai.d.ts +20 -0
  34. package/dist/types/types/explore/ai.d.ts.map +1 -0
  35. package/dist/types/types/explore/all.d.ts +15 -0
  36. package/dist/types/types/explore/all.d.ts.map +1 -0
  37. package/dist/types/types/explore/basic.d.ts +31 -0
  38. package/dist/types/types/explore/basic.d.ts.map +1 -0
  39. package/dist/types/types/explore/common.d.ts +34 -0
  40. package/dist/types/types/explore/common.d.ts.map +1 -0
  41. package/dist/types/types/explore/index.d.ts +8 -0
  42. package/dist/types/types/explore/index.d.ts.map +1 -0
  43. package/dist/types/types/explore/requests.d.ts +57 -0
  44. package/dist/types/types/explore/requests.d.ts.map +1 -0
  45. package/dist/types/types/explore/result.d.ts +48 -0
  46. package/dist/types/types/explore/result.d.ts.map +1 -0
  47. package/dist/types/types/explore/util.d.ts +8 -0
  48. package/dist/types/types/explore/util.d.ts.map +1 -0
  49. package/dist/types/types/index.d.ts +12 -0
  50. package/dist/types/types/index.d.ts.map +1 -0
  51. package/dist/types/types/query-bridge.d.ts +24 -0
  52. package/dist/types/types/query-bridge.d.ts.map +1 -0
  53. package/dist/types/types/query-time.d.ts +13 -0
  54. package/dist/types/types/query-time.d.ts.map +1 -0
  55. package/dist/types/types/time-period.d.ts +9 -0
  56. package/dist/types/types/time-period.d.ts.map +1 -0
  57. package/dist/types/types/timeframe-keys.d.ts +16 -0
  58. package/dist/types/types/timeframe-keys.d.ts.map +1 -0
  59. package/dist/types/types/timeframe-options.d.ts +16 -0
  60. package/dist/types/types/timeframe-options.d.ts.map +1 -0
  61. package/dist/types/types/timeframe.d.ts +17 -0
  62. package/dist/types/types/timeframe.d.ts.map +1 -0
  63. package/dist/types/utils/SeedRandom.d.ts +6 -0
  64. package/dist/types/utils/SeedRandom.d.ts.map +1 -0
  65. package/dist/types/utils/chartDataGenerator.d.ts +9 -0
  66. package/dist/types/utils/chartDataGenerator.d.ts.map +1 -0
  67. package/dist/types/utils/helpers.d.ts +2 -0
  68. package/dist/types/utils/helpers.d.ts.map +1 -0
  69. package/dist/types/utils/index.d.ts +4 -0
  70. package/dist/types/utils/index.d.ts.map +1 -0
  71. package/dist/vitals-utilities.cjs +2 -0
  72. package/dist/vitals-utilities.cjs.map +1 -0
  73. package/dist/vitals-utilities.es.js +3978 -0
  74. package/dist/vitals-utilities.es.js.map +1 -0
  75. package/dist/vitals-utilities.umd.js +2 -0
  76. package/dist/vitals-utilities.umd.js.map +1 -0
  77. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboardSchema.v2.d.ts","sourceRoot":"","sources":["../../src/dashboardSchema.v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAiB/D,KAAK,qBAAqB,CAAC,CAAC,SAAS,UAAU,IAAI,UAAU,CAAC,CAAC,EAAE;IAAE,+BAA+B,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAI3G,eAAO,MAAM,kBAAkB,4JAWrB,CAAA;AACV,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAyBjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAaG,CAAA;AAE/B,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAA;AAE5E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBI,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAA;AAE1E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBH,CAAA;AAE/B,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAExF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBE,CAAA;AAE/B,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBH,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ export interface TimeFormatOptions {
2
+ includeTZ?: boolean;
3
+ tz?: string;
4
+ short?: boolean;
5
+ }
6
+ export declare function formatISOTimeWithTZ(ts: number | Date): string;
7
+ export declare function formatTime(ts: number | string, options?: TimeFormatOptions): string | number;
8
+ /**
9
+ * Formatted display for a start and end time range
10
+ * @param start Date from
11
+ * @param end Date to
12
+ * @returns Human-readable date range string
13
+ */
14
+ export declare function formatTimeRange(start: Date, end: Date): string;
15
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/format.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,UAEpD;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,iBAAsB,mBA6B9E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,UAErD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=format.spec.tz.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.spec.tz.d.ts","sourceRoot":"","sources":["../../src/format.spec.tz.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import type { DruidGranularity, GranularityValues } from './types';
2
+ export declare const Granularities: {
3
+ secondly: number;
4
+ tenSecondly: number;
5
+ thirtySecondly: number;
6
+ minutely: number;
7
+ fiveMinutely: number;
8
+ tenMinutely: number;
9
+ thirtyMinutely: number;
10
+ hourly: number;
11
+ twoHourly: number;
12
+ twelveHourly: number;
13
+ daily: number;
14
+ weekly: number;
15
+ trend: number;
16
+ };
17
+ export declare function granularitiesToOptions(values: GranularityValues[], i18n: {
18
+ t: (v: string) => string;
19
+ }): {
20
+ value: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend";
21
+ label: string;
22
+ }[];
23
+ export declare function granularityMsToQuery(granularity: number, origin: string): DruidGranularity;
24
+ export declare function msToGranularity(ms?: number): GranularityValues | null;
25
+ export declare function floorToNearestTimeGrain(date: Date, granularity: GranularityValues, tz?: string): Date;
26
+ export declare function ceilToNearestTimeGrain(date: Date, granularity: GranularityValues, tz?: string): Date;
27
+ //# sourceMappingURL=granularity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"granularity.d.ts","sourceRoot":"","sources":["../../src/granularity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKlE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAczB,CAAA;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,iBAAiB,EAAE,EAC3B,IAAI,EAAE;IAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;CAAE;;;IAMnC;AAED,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,gBAAgB,CAMlB;AAED,wBAAgB,eAAe,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CASrE;AA2BD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAErG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAEpG"}
@@ -0,0 +1,10 @@
1
+ export * from './constants';
2
+ export * from './dashboardSchema';
3
+ export * as dashboardSchemaV2 from './dashboardSchema.v2';
4
+ export * from './types';
5
+ export * from './format';
6
+ export * from './granularity';
7
+ export * from './queryTime';
8
+ export * from './timeframes';
9
+ export * from './utils';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAA;AACzD,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,36 @@
1
+ import type { DruidGranularity, GranularityValues, QueryTime } from './types';
2
+ import type { Timeframe } from './timeframes';
3
+ declare abstract class BaseQueryTime implements QueryTime {
4
+ protected readonly timeframe: Timeframe;
5
+ protected readonly tz?: string;
6
+ protected readonly dataGranularity: GranularityValues;
7
+ constructor(timeframe: Timeframe, tz?: string, dataGranularity?: GranularityValues);
8
+ abstract startDate(): Date;
9
+ abstract endDate(): Date;
10
+ abstract granularityMs(): number;
11
+ protected calculateStartDate(isRelative: boolean, granularity: GranularityValues, periods?: number): Date;
12
+ granularitySeconds(): number;
13
+ granularityDruid(): DruidGranularity;
14
+ startSeconds(): number;
15
+ endSeconds(): number;
16
+ startMs(): number;
17
+ endMs(): number;
18
+ }
19
+ export declare class TimeseriesQueryTime extends BaseQueryTime {
20
+ private readonly granularity;
21
+ constructor(timeframe: Timeframe, granularity?: GranularityValues, tz?: string, dataGranularity?: GranularityValues, fineGrain?: boolean);
22
+ startDate(): Date;
23
+ endDate(): Date;
24
+ granularityMs(): number;
25
+ }
26
+ export declare class UnaryQueryTime extends BaseQueryTime {
27
+ startDate(): Date;
28
+ endDate(): Date;
29
+ granularityMs(): number;
30
+ }
31
+ export declare class DeltaQueryTime extends UnaryQueryTime {
32
+ startDate(): Date;
33
+ granularityMs(): number;
34
+ }
35
+ export {};
36
+ //# sourceMappingURL=queryTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryTime.d.ts","sourceRoot":"","sources":["../../src/queryTime.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC7E,OAAO,KAAK,EAA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0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=queryTime.spec.tz.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryTime.spec.tz.d.ts","sourceRoot":"","sources":["../../src/queryTime.spec.tz.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const runUtcTest: any;
2
+ export declare const runNonUtcTest: any;
3
+ //# sourceMappingURL=specUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specUtils.d.ts","sourceRoot":"","sources":["../../src/specUtils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,EAAE,GAA4C,CAAA;AAErE,eAAO,MAAM,aAAa,EAAE,GAA4C,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { TimeframeKeys } from './types';
2
+ import type { DatePickerSelection, TimeframeOptions, TimePeriod, RelativeTimeRangeValuesV4, TimeRangeV4, GranularityValues } from './types';
3
+ import type { ITimeframe } from './types/timeframe';
4
+ export declare class Timeframe implements ITimeframe {
5
+ readonly timeframeText: string;
6
+ readonly key: RelativeTimeRangeValuesV4 | 'custom';
7
+ readonly display: string;
8
+ readonly timeframeLength: () => number;
9
+ readonly allowedTiers: string[];
10
+ readonly defaultResponseGranularity: GranularityValues;
11
+ readonly dataGranularity: GranularityValues;
12
+ readonly isRelative: boolean;
13
+ readonly fineGrainedDefaultGranularity?: GranularityValues;
14
+ private _startCustom?;
15
+ private _endCustom?;
16
+ private _allowedGranularitiesOverride?;
17
+ constructor(opts: TimeframeOptions);
18
+ rawEnd(_tz?: string): Date;
19
+ rawStart(_tz?: string): Date;
20
+ timeframeLengthMs(): number;
21
+ maximumTimeframeLength(): number;
22
+ allowedGranularities(fineGrain?: boolean): Set<"secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend">;
23
+ cacheKey(): string;
24
+ v4Query(tz?: string): TimeRangeV4;
25
+ protected tzAdjustedDate(tz?: string): Date;
26
+ }
27
+ export declare const TimePeriods: Map<string, Timeframe>;
28
+ export declare function datePickerSelectionToTimeframe(datePickerSelection: DatePickerSelection): Timeframe;
29
+ export declare function timeframeToDatepickerSelection(timeframe: Timeframe): DatePickerSelection;
30
+ export declare function timeframeToDatepickerTimeperiod(timeframe: Timeframe): TimePeriod;
31
+ export declare function dstOffsetHours(d1: Date, d2: Date): number;
32
+ export declare const TIMEFRAME_LOOKUP: Record<string, TimeframeKeys>;
33
+ //# sourceMappingURL=timeframes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeframes.d.ts","sourceRoot":"","sources":["../../src/timeframes.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,aAAa,EACd,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAAE,WAAW,EACtC,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAQnD,qBAAa,SAAU,YAAW,UAAU;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAE9B,QAAQ,CAAC,GAAG,EAAE,yBAAyB,GAAG,QAAQ,CAAA;IAElD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAExB,QAAQ,CAAC,eAAe,EAAE,MAAM,MAAM,CAAA;IAEtC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAA;IAI/B,QAAQ,CAAC,0BAA0B,EAAE,iBAAiB,CAAA;IAKtD,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAA;IAO3C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAE5B,QAAQ,CAAC,6BAA6B,CAAC,EAAE,iBAAiB,CAAA;IAE1D,OAAO,CAAC,YAAY,CAAC,CAAM;IAE3B,OAAO,CAAC,UAAU,CAAC,CAAM;IAEzB,OAAO,CAAC,6BAA6B,CAAC,CAAqB;gBAE/C,IAAI,EAAE,gBAAgB;IAkBlC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAO1B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAI5B,iBAAiB;IAIjB,sBAAsB;IAKtB,oBAAoB,CAAC,SAAS,CAAC,EAAE,OAAO;IAgCxC,QAAQ,IAAI,MAAM;IASlB,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;IAkBjC,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;CAU5C;AA8FD,eAAO,MAAM,WAAW,wBA4LtB,CAAA;AAEF,wBAAgB,8BAA8B,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,CA0BlG;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,SAAS,GAAG,mBAAmB,CAQxF;AAED,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAUhF;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,GAAG,MAAM,CAEzD;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAkB1D,CAAA"}
@@ -0,0 +1,23 @@
1
+ export type AnalyticsRetentionMs = 86400000 | 604800000 | 2592000000 | 7776000000 | 15552000000 | 31536000000 | 36720000000;
2
+ export type RequestsRetentionMs = 86400000 | 604800000 | 1209600000 | 2592000000;
3
+ export interface ControlPlaneConfig {
4
+ analytics: boolean;
5
+ }
6
+ export interface ApiAnalyticsV2 {
7
+ percentiles: boolean;
8
+ retention_ms: AnalyticsRetentionMs;
9
+ }
10
+ export interface ApiRequestsV2 {
11
+ retention_ms: RequestsRetentionMs;
12
+ }
13
+ export interface UiOptions {
14
+ maxParallelRequests?: number;
15
+ requestInterval?: number;
16
+ requestIntervalCap?: number;
17
+ }
18
+ export interface AnalyticsConfigV2 {
19
+ analytics: null | ApiAnalyticsV2;
20
+ requests: null | ApiRequestsV2;
21
+ ui?: UiOptions;
22
+ }
23
+ //# sourceMappingURL=analytics-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../../src/types/analytics-config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,CAAA;AACf,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,CAAA;AAEd,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,oBAAoB,CAAA;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,mBAAmB,CAAA;CAClC;AAED,MAAM,WAAW,SAAS;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,IAAI,GAAG,cAAc,CAAA;IAChC,QAAQ,EAAE,IAAI,GAAG,aAAa,CAAA;IAC9B,EAAE,CAAC,EAAE,SAAS,CAAA;CACf"}
@@ -0,0 +1,3 @@
1
+ export declare const reportChartTypes: readonly ["horizontal_bar", "vertical_bar", "timeseries_line", "choropleth_map", "timeseries_bar", "donut", "single_value"];
2
+ export type ReportChartTypes = typeof reportChartTypes[number];
3
+ //# sourceMappingURL=chart-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-types.d.ts","sourceRoot":"","sources":["../../../src/types/chart-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6HAQnB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface DatePickerSelection {
2
+ timePeriodsKey?: string;
3
+ start: Date;
4
+ end: Date;
5
+ }
6
+ //# sourceMappingURL=datepicker-selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datepicker-selection.d.ts","sourceRoot":"","sources":["../../../src/types/datepicker-selection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,IAAI,CAAA;CACV"}
@@ -0,0 +1,6 @@
1
+ export interface DruidGranularity {
2
+ type: string;
3
+ duration: number;
4
+ origin: string;
5
+ }
6
+ //# sourceMappingURL=druid-granularity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"druid-granularity.d.ts","sourceRoot":"","sources":["../../../src/types/druid-granularity.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,20 @@
1
+ import type { BasicExploreEmptyFilterV2, BasicExploreInFilterV2, BasicExploreQuery } from './basic';
2
+ export declare const queryableExploreDimensions: readonly ["api", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "country_code", "iso_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm"];
3
+ export type QueryableExploreDimensions = typeof queryableExploreDimensions[number];
4
+ export declare const filterableExploreDimensions: ["api", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "application", "consumer", "country_code", "iso_code", "upstream_status_code", "upstream_status_code_grouped", "response_source", "data_plane_node_version", "realm"];
5
+ export type FilterableExploreDimensions = typeof filterableExploreDimensions[number];
6
+ export interface ExploreInFilterV2 extends Omit<BasicExploreInFilterV2, 'field'> {
7
+ field: FilterableExploreDimensions;
8
+ }
9
+ export interface ExploreEmptyFilterV2 extends Omit<BasicExploreEmptyFilterV2, 'field'> {
10
+ field: FilterableExploreDimensions;
11
+ }
12
+ export declare const exploreAggregations: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average", "response_latency_p99", "response_latency_p95", "response_latency_p50", "upstream_latency_p99", "upstream_latency_p95", "upstream_latency_p50", "upstream_latency_average", "kong_latency_p99", "kong_latency_p95", "kong_latency_p50", "kong_latency_average", "response_size_p99", "response_size_p95", "response_size_p50", "response_size_average", "response_size_sum", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "request_size_sum"];
13
+ export type ExploreAggregations = typeof exploreAggregations[number];
14
+ export type ExploreFilterAll = ExploreInFilterV2 | ExploreEmptyFilterV2;
15
+ export interface ExploreQuery extends Omit<BasicExploreQuery, 'metrics' | 'dimensions' | 'filters'> {
16
+ metrics?: ExploreAggregations[];
17
+ dimensions?: QueryableExploreDimensions[];
18
+ filters?: ExploreFilterAll[];
19
+ }
20
+ //# sourceMappingURL=advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/advanced.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGnG,eAAO,MAAM,0BAA0B,6WAW7B,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAA;AAElF,eAAO,MAAM,2BAA2B,4VAA6C,CAAA;AAErF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEpF,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC;IAC9E,KAAK,EAAE,2BAA2B,CAAA;CACnC;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC;IACpF,KAAK,EAAE,2BAA2B,CAAA;CACnC;AAED,eAAO,MAAM,mBAAmB,sjBAuBtB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAA;AAEpE,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,oBAAoB,CAAA;AAEvE,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,iBAAiB,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;IACjG,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC/B,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAA;IACzC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B"}
@@ -0,0 +1,20 @@
1
+ import type { BasicExploreEmptyFilterV2, BasicExploreInFilterV2, BasicExploreQuery } from './basic';
2
+ export declare const queryableAiExploreDimensions: readonly ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "time", "realm", "status_code", "status_code_grouped", "ai_plugin"];
3
+ export type QueryableAiExploreDimensions = typeof queryableAiExploreDimensions[number];
4
+ export declare const filterableAiExploreDimensions: ["control_plane", "control_plane_group", "gateway_service", "consumer", "application", "route", "ai_provider", "ai_response_model", "ai_request_model", "llm_cache_status", "llm_embeddings_provider", "llm_embeddings_model", "realm", "status_code", "status_code_grouped", "ai_plugin"];
5
+ export type FilterableAiExploreDimensions = typeof queryableAiExploreDimensions[number];
6
+ export interface AiExploreInFilterV2 extends Omit<BasicExploreInFilterV2, 'field'> {
7
+ field: FilterableAiExploreDimensions;
8
+ }
9
+ export interface AiExploreEmptyFilterV2 extends Omit<BasicExploreEmptyFilterV2, 'field'> {
10
+ field: FilterableAiExploreDimensions;
11
+ }
12
+ export declare const aiExploreAggregations: readonly ["total_tokens", "prompt_tokens", "completion_tokens", "ai_request_count", "cost", "llm_cache_embeddings_latency_average", "llm_cache_fetch_latency_average", "llm_latency_average", "llm_embeddings_tokens", "llm_embeddings_cost"];
13
+ export type AiExploreAggregations = typeof aiExploreAggregations[number];
14
+ export type AiExploreFilterAll = AiExploreInFilterV2 | AiExploreEmptyFilterV2;
15
+ export interface AiExploreQuery extends Omit<BasicExploreQuery, 'metrics' | 'dimensions' | 'filters'> {
16
+ metrics?: AiExploreAggregations[];
17
+ dimensions?: QueryableAiExploreDimensions[];
18
+ filters?: AiExploreFilterAll[];
19
+ }
20
+ //# sourceMappingURL=ai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/ai.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEnG,eAAO,MAAM,4BAA4B,6SAkB/B,CAAA;AAEV,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAA;AAEtF,eAAO,MAAM,6BAA6B,4RAA+C,CAAA;AAEzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAA;AAEvF,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC;IAChF,KAAK,EAAE,6BAA6B,CAAA;CACrC;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC;IACtF,KAAK,EAAE,6BAA6B,CAAA;CACrC;AAED,eAAO,MAAM,qBAAqB,+OAWxB,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,sBAAsB,CAAA;AAE7E,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,iBAAiB,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;IACnG,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,4BAA4B,EAAE,CAAA;IAC3C,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAC/B"}
@@ -0,0 +1,15 @@
1
+ import { type BasicExploreAggregations, type BasicExploreFilterAll } from './basic';
2
+ import { type AiExploreAggregations, type AiExploreFilterAll } from './ai';
3
+ import { type ExploreAggregations, type ExploreFilterAll } from './advanced';
4
+ export type AllAggregations = BasicExploreAggregations | AiExploreAggregations | ExploreAggregations;
5
+ export type AllFilters = BasicExploreFilterAll | AiExploreFilterAll | ExploreFilterAll;
6
+ export declare const queryDatasources: readonly ["basic", "advanced", "ai"];
7
+ export type QueryDatasource = typeof queryDatasources[number];
8
+ export interface FilterTypeMap extends Record<QueryDatasource, AllFilters> {
9
+ basic: BasicExploreFilterAll;
10
+ advanced: ExploreFilterAll;
11
+ ai: AiExploreFilterAll;
12
+ }
13
+ export declare const datasourceToFilterableDimensions: Record<QueryDatasource, Set<string>>;
14
+ export declare const stripUnknownFilters: <K extends keyof typeof datasourceToFilterableDimensions>(datasource: K, filters: AllFilters[]) => Array<FilterTypeMap[K]>;
15
+ //# sourceMappingURL=all.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,qBAAqB,EAAoC,MAAM,SAAS,CAAA;AACrH,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,kBAAkB,EAAiC,MAAM,MAAM,CAAA;AACzG,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAA+B,MAAM,YAAY,CAAA;AAEzG,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,mBAAmB,CAAA;AACpG,MAAM,MAAM,UAAU,GAAG,qBAAqB,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AAEtF,eAAO,MAAM,gBAAgB,sCAAuC,CAAA;AAEpE,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC;IACxE,KAAK,EAAE,qBAAqB,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,EAAE,EAAE,kBAAkB,CAAA;CACvB;AAED,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAIxE,CAAA;AAGV,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,OAAO,gCAAgC,cAAc,CAAC,WAAW,UAAU,EAAE,KAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAIzJ,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { ExploreFilterTypesV2, GranularityValues, RequestFilterTypeEmptyV2, TimeRangeV4 } from './common';
2
+ export declare const queryableBasicExploreDimensions: readonly ["api", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped", "time"];
3
+ export type QueryableBasicExploreDimensions = typeof queryableBasicExploreDimensions[number];
4
+ export declare const filterableBasicExploreDimensions: ["api", "api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "portal", "route", "status_code", "status_code_grouped"];
5
+ export type FilterableBasicExploreDimensions = typeof filterableBasicExploreDimensions[number];
6
+ export interface BasicExploreInFilterV2 {
7
+ operator: ExploreFilterTypesV2;
8
+ field: FilterableBasicExploreDimensions;
9
+ value: Array<string | number | null>;
10
+ }
11
+ export interface BasicExploreEmptyFilterV2 {
12
+ operator: RequestFilterTypeEmptyV2;
13
+ field: FilterableBasicExploreDimensions;
14
+ }
15
+ export declare const basicExploreAggregations: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
16
+ export type BasicExploreAggregations = typeof basicExploreAggregations[number];
17
+ export type BasicExploreFilterAll = BasicExploreInFilterV2 | BasicExploreEmptyFilterV2;
18
+ export interface BasicExploreQuery {
19
+ metrics?: BasicExploreAggregations[];
20
+ dimensions?: QueryableBasicExploreDimensions[];
21
+ filters?: BasicExploreFilterAll[];
22
+ granularity?: GranularityValues;
23
+ time_range?: TimeRangeV4;
24
+ limit?: number;
25
+ descending?: boolean;
26
+ short_name?: boolean;
27
+ meta?: {
28
+ query_id: string;
29
+ };
30
+ }
31
+ //# sourceMappingURL=basic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/basic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE9G,eAAO,MAAM,+BAA+B,uMAalC,CAAA;AAEV,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAA;AAE5F,eAAO,MAAM,gCAAgC,sLAAkD,CAAA;AAE/F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAA;AAE9F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,KAAK,EAAE,gCAAgC,CAAA;IACvC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,wBAAwB,CAAA;IAClC,KAAK,EAAE,gCAAgC,CAAA;CACxC;AACD,eAAO,MAAM,wBAAwB,iGAK3B,CAAA;AAEV,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAE9E,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,GAAG,yBAAyB,CAAA;AAEtF,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACpC,UAAU,CAAC,EAAE,+BAA+B,EAAE,CAAA;IAC9C,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,UAAU,CAAC,EAAE,WAAW,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE;QACL,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF"}
@@ -0,0 +1,34 @@
1
+ export declare const exploreFilterTypesV2: readonly ["in", "not_in", "selector"];
2
+ export type ExploreFilterTypesV2 = typeof exploreFilterTypesV2[number];
3
+ export declare const requestFilterTypeEqualsV2: readonly ["=", "!="];
4
+ export type RequestFilterTypeEqualsV2 = typeof requestFilterTypeEqualsV2[number];
5
+ export declare const requestFilterTypeMetricV2: readonly ["=", "!=", "<", ">", "<=", ">="];
6
+ export type RequestFilterTypeMetricV2 = typeof requestFilterTypeMetricV2[number];
7
+ export declare const requestFilterTypeEmptyV2: readonly ["empty", "not_empty"];
8
+ export type RequestFilterTypeEmptyV2 = typeof requestFilterTypeEmptyV2[number];
9
+ export declare const requestFilterTypeWildcardV2: readonly ["starts_with", "ends_with"];
10
+ export type RequestFilterTypeWildcardV2 = typeof requestFilterTypeWildcardV2[number];
11
+ export declare const timeRangeTypeV2: readonly ["absolute", "relative"];
12
+ export type TimeRangeTypeV2 = typeof timeRangeTypeV2[number];
13
+ export interface AbsoluteTimeRangeV4 {
14
+ type: 'absolute';
15
+ tz?: string;
16
+ start: Date;
17
+ end: Date;
18
+ }
19
+ export declare const relativeTimeRangeValuesV4: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
20
+ export type RelativeTimeRangeValuesV4 = typeof relativeTimeRangeValuesV4[number];
21
+ export interface RelativeTimeRangeV4 {
22
+ type: 'relative';
23
+ tz?: string;
24
+ time_range: RelativeTimeRangeValuesV4;
25
+ }
26
+ export type TimeRangeV4 = AbsoluteTimeRangeV4 | RelativeTimeRangeV4;
27
+ export interface TimeRangeMetaResponse {
28
+ start: string;
29
+ end: string;
30
+ min_granularity_ms: number;
31
+ }
32
+ export declare const granularityValues: readonly ["secondly", "tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily", "weekly", "trend"];
33
+ export type GranularityValues = typeof granularityValues[number];
34
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/common.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB,uCAAwC,CAAA;AAEzE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAEtE,eAAO,MAAM,yBAAyB,sBAAuB,CAAA;AAE7D,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEhF,eAAO,MAAM,yBAAyB,4CAA6C,CAAA;AAEnF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEhF,eAAO,MAAM,wBAAwB,iCAAkC,CAAA;AAEvE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAE9E,eAAO,MAAM,2BAA2B,uCAAwC,CAAA;AAEhF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAQpF,eAAO,MAAM,eAAe,mCAAoC,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;AAG5D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,IAAI,CAAA;CACV;AAED,eAAO,MAAM,yBAAyB,6HAY5B,CAAA;AAEV,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEhF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,yBAAyB,CAAA;CACtC;AAED,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,mBAAmB,CAAA;AAEnE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,iBAAiB,wLAcpB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ export * from './common';
2
+ export * from './basic';
3
+ export * from './advanced';
4
+ export * from './ai';
5
+ export * from './requests';
6
+ export * from './result';
7
+ export * from './all';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,MAAM,CAAA;AACpB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,57 @@
1
+ import type { AbsoluteTimeRangeV4, ExploreFilterTypesV2, RequestFilterTypeEmptyV2, RequestFilterTypeEqualsV2, RequestFilterTypeMetricV2, RequestFilterTypeWildcardV2 } from './common';
2
+ export declare const queryableRequestDimensions: readonly ["api", "api_product", "api_product_version", "application", "auth_type", "client_ip", "consumer", "consumer_group", "control_plane", "control_plane_group", "country_code", "data_plane_node", "data_plane_node_version", "gateway_service", "header_host", "header_user_agent", "http_method", "iso_code", "portal", "realm", "request_id", "request_uri", "response_header_content_type", "response_source", "route", "service_port", "service_protocol", "sse", "status_code_grouped", "time", "trace_id", "upstream_uri", "upstream_status_code_grouped", "websocket"];
3
+ export type QueryableRequestDimensions = typeof queryableRequestDimensions[number];
4
+ export declare const filterableRequestDimensions: ["api", "api_product", "api_product_version", "application", "auth_type", "client_ip", "consumer", "consumer_group", "control_plane", "control_plane_group", "country_code", "data_plane_node", "data_plane_node_version", "gateway_service", "header_host", "header_user_agent", "http_method", "iso_code", "portal", "realm", "request_id", "request_uri", "response_header_content_type", "response_source", "route", "service_port", "service_protocol", "sse", "status_code_grouped", "trace_id", "upstream_uri", "upstream_status_code_grouped", "websocket"];
5
+ export type FilterableRequestDimensions = typeof filterableRequestDimensions[number];
6
+ export declare const queryableRequestWildcardDimensions: readonly ["auth_type", "client_ip", "country_code", "data_plane_node_version", "header_host", "header_user_agent", "http_method", "request_id", "request_uri", "response_header_content_type", "response_source", "service_port", "service_protocol", "trace_id", "upstream_uri"];
7
+ export type QueryableRequestWildcardDimensions = typeof queryableRequestWildcardDimensions[number];
8
+ export declare const filterableRequestWildcardDimensions: readonly ["auth_type", "client_ip", "country_code", "data_plane_node_version", "header_host", "header_user_agent", "http_method", "request_id", "request_uri", "response_header_content_type", "response_source", "service_port", "service_protocol", "trace_id", "upstream_uri"];
9
+ export type FilterableRequestWildcardDimensions = typeof filterableRequestWildcardDimensions[number];
10
+ export declare const queryableRequestMetrics: readonly ["ai_count", "latencies_response_ms", "latencies_upstream_ms", "latencies_kong_gateway_ms", "request_body_size", "response_body_size", "response_header_content_length", "status_code", "upstream_status_code"];
11
+ export type QueryableRequestMetrics = typeof queryableRequestMetrics[number];
12
+ export declare const filterableRequestMetrics: ["ai_count", "latencies_response_ms", "latencies_upstream_ms", "latencies_kong_gateway_ms", "request_body_size", "response_body_size", "response_header_content_length", "status_code", "upstream_status_code"];
13
+ export type FilterableRequestMetrics = typeof filterableRequestMetrics[number];
14
+ export interface RequestInFilter {
15
+ operator: ExploreFilterTypesV2;
16
+ field: FilterableRequestDimensions | FilterableRequestWildcardDimensions | FilterableRequestMetrics;
17
+ value: Array<string | number>;
18
+ }
19
+ export interface RequestEqualsFilter {
20
+ operator: RequestFilterTypeEqualsV2;
21
+ field: FilterableRequestDimensions | FilterableRequestWildcardDimensions;
22
+ value: string;
23
+ }
24
+ export interface RequestMetricFilter {
25
+ operator: RequestFilterTypeMetricV2;
26
+ field: FilterableRequestMetrics;
27
+ value: number;
28
+ }
29
+ export interface RequestEmptyFilter {
30
+ operator: RequestFilterTypeEmptyV2;
31
+ field: FilterableRequestDimensions | FilterableRequestWildcardDimensions | FilterableRequestMetrics;
32
+ }
33
+ export interface RequestWildcardFilter {
34
+ operator: RequestFilterTypeWildcardV2;
35
+ field: FilterableRequestWildcardDimensions;
36
+ value: string;
37
+ }
38
+ export type RequestFilter = RequestInFilter | RequestEqualsFilter | RequestMetricFilter | RequestEmptyFilter | RequestWildcardFilter;
39
+ export declare const relativeTimeRangeValuesRequestV2: readonly ["15M", "1H", "6H", "12H", "24H", "7D"];
40
+ export type RelativeTimeRangeValuesRequestV2 = typeof relativeTimeRangeValuesRequestV2[number];
41
+ export interface RelativeTimeRangeRequestV2 {
42
+ type: 'relative';
43
+ tz?: string;
44
+ time_range: RelativeTimeRangeValuesRequestV2;
45
+ }
46
+ export type TimeRangeRequestV2 = AbsoluteTimeRangeV4 | RelativeTimeRangeRequestV2;
47
+ export interface RequestQuery {
48
+ filters: RequestFilter[];
49
+ time_range: TimeRangeRequestV2;
50
+ order?: string;
51
+ offset?: number;
52
+ size?: number;
53
+ query_id?: string;
54
+ limit?: number;
55
+ classified?: boolean;
56
+ }
57
+ //# sourceMappingURL=requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/requests.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAGtL,eAAO,MAAM,0BAA0B,sjBAmC7B,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAA;AAElF,eAAO,MAAM,2BAA2B,qiBAA6C,CAAA;AAErF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEpF,eAAO,MAAM,kCAAkC,mRAgBrC,CAAA;AAEV,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,CAAC,CAAA;AAElG,eAAO,MAAM,mCAAmC,mRAAqC,CAAA;AAErF,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,CAAC,CAAA;AAEpG,eAAO,MAAM,uBAAuB,0NAU1B,CAAA;AAEV,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAA;AAE5E,eAAO,MAAM,wBAAwB,iNAA0C,CAAA;AAE/E,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAE9E,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,KAAK,EAAE,2BAA2B,GAAG,mCAAmC,GAAG,wBAAwB,CAAA;IACnG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;CAC9B;AACD,MAAM,W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@@ -0,0 +1,48 @@
1
+ import type { AllAggregations } from './all';
2
+ export interface Display {
3
+ [id: string]: {
4
+ name: string;
5
+ deleted?: boolean;
6
+ is_other_group?: boolean;
7
+ };
8
+ }
9
+ export interface DisplayBlob {
10
+ [dimension: string]: Display;
11
+ }
12
+ export interface QueryResponseMeta {
13
+ start_ms: number;
14
+ end_ms: number;
15
+ start: string;
16
+ end: string;
17
+ display: DisplayBlob;
18
+ metric_names?: AllAggregations[];
19
+ metric_units?: MetricUnit;
20
+ granularity_ms: number;
21
+ truncated?: boolean;
22
+ limit?: number;
23
+ query_id: string;
24
+ }
25
+ export interface GroupByResult {
26
+ version?: string;
27
+ timestamp: string;
28
+ event: RecordEvent;
29
+ }
30
+ export interface ExploreResultV4 {
31
+ data: GroupByResult[];
32
+ meta: QueryResponseMeta;
33
+ }
34
+ export interface RecordEvent {
35
+ [field: string]: string | number | null;
36
+ }
37
+ export interface AnalyticsExploreRecord {
38
+ version?: string;
39
+ timestamp: string;
40
+ event: RecordEvent;
41
+ }
42
+ export interface DimensionMap {
43
+ [dimension: string]: string[];
44
+ }
45
+ export type MetricUnit = {
46
+ [metricName in AllAggregations]?: string;
47
+ };
48
+ //# sourceMappingURL=result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AAE5C,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,EAAE,MAAM,GAAG;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,cAAc,CAAC,EAAE,OAAO,CAAA;KACzB,CAAA;CACF;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAA;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,WAAW,CAAA;IACpB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;IAChC,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,WAAW,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,IAAI,EAAE,iBAAiB,CAAA;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,WAAW,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC9B;AAED,MAAM,MAAM,UAAU,GAAG;KACtB,UAAU,IAAI,eAAe,CAAC,CAAC,EAAE,MAAM;CACzC,CAAA"}
@@ -0,0 +1,8 @@
1
+ type ExcludeFromTuple<T extends readonly any[], E> = T extends readonly [infer F, ...infer R] ? [F] extends readonly [E] ? ExcludeFromTuple<R, E> : [
2
+ F,
3
+ ...ExcludeFromTuple<R, E>
4
+ ] : [];
5
+ type ExceptTime<T extends readonly any[]> = ExcludeFromTuple<T, 'time'>;
6
+ export declare const makeFilterable: <T extends readonly unknown[]>(queryable: T) => ExceptTime<T>;
7
+ export {};
8
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/types/explore/util.ts"],"names":[],"mappings":"AAGA,KAAK,gBAAgB,CAAC,CAAC,SAAS,SAAS,GAAG,EAAE,EAAE,CAAC,IAC/C,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1F;IAAC,CAAC;IAAE,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;CAAC,GAAG,EAAE,CAAA;AAGvC,KAAK,UAAU,CAAC,CAAC,SAAS,SAAS,GAAG,EAAE,IAAI,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;AAGvE,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,aAAa,CAAC,KAChC,UAAU,CAAC,CAAC,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ export * from './datepicker-selection';
2
+ export * from './druid-granularity';
3
+ export * from './query-time';
4
+ export * from './time-period';
5
+ export * from './timeframe-keys';
6
+ export * from './timeframe-options';
7
+ export * from './chart-types';
8
+ export * from './timeframe';
9
+ export * from './explore';
10
+ export * from './query-bridge';
11
+ export * from './analytics-config';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import type { BasicExploreQuery, ExploreQuery, AiExploreQuery, ExploreResultV4 } from './explore';
2
+ import type { AnalyticsConfigV2 } from './analytics-config';
3
+ import type { Component } from 'vue';
4
+ export interface BasicDatasourceQuery {
5
+ datasource: 'basic';
6
+ query: BasicExploreQuery;
7
+ }
8
+ export interface AdvancedDatasourceQuery {
9
+ datasource: 'advanced';
10
+ query: ExploreQuery;
11
+ }
12
+ export interface AiDatasourceQuery {
13
+ datasource: 'ai';
14
+ query: AiExploreQuery;
15
+ }
16
+ export type DatasourceAwareQuery = BasicDatasourceQuery | AdvancedDatasourceQuery | AiDatasourceQuery;
17
+ export interface AnalyticsBridge {
18
+ queryFn: (query: DatasourceAwareQuery, abortController: AbortController) => Promise<ExploreResultV4>;
19
+ configFn: () => Promise<AnalyticsConfigV2>;
20
+ evaluateFeatureFlagFn: <T = boolean>(key: string, defaultValue: T) => T;
21
+ exploreBaseUrl?: () => Promise<string>;
22
+ fetchComponent?: (name: string) => Promise<Component>;
23
+ }
24
+ //# sourceMappingURL=query-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-bridge.d.ts","sourceRoot":"","sources":["../../../src/types/query-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AACjG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,iBAAiB,CAAA;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,IAAI,CAAA;IAChB,KAAK,EAAE,cAAc,CAAA;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,iBAAiB,CAAA;AAErG,MAAM,WAAW,eAAe;IAE9B,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,eAAe,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAGpG,QAAQ,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAG1C,qBAAqB,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,CAAA;IAIvE,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IAGtC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;CACtD"}