@kong-ui-public/analytics-utilities 4.3.1 → 4.3.2

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 (35) hide show
  1. package/dist/types/types/explore/advanced.d.ts +16 -0
  2. package/dist/types/types/explore/advanced.d.ts.map +1 -0
  3. package/dist/types/types/explore/ai.d.ts +16 -0
  4. package/dist/types/types/explore/ai.d.ts.map +1 -0
  5. package/dist/types/types/explore/all.d.ts +15 -0
  6. package/dist/types/types/explore/all.d.ts.map +1 -0
  7. package/dist/types/types/explore/basic.d.ts +26 -0
  8. package/dist/types/types/explore/basic.d.ts.map +1 -0
  9. package/dist/types/types/explore/common.d.ts +21 -0
  10. package/dist/types/types/explore/common.d.ts.map +1 -0
  11. package/dist/types/types/explore/index.d.ts +7 -0
  12. package/dist/types/types/explore/index.d.ts.map +1 -0
  13. package/dist/types/types/explore/result.d.ts +46 -0
  14. package/dist/types/types/explore/result.d.ts.map +1 -0
  15. package/dist/types/types/explore/util.d.ts +7 -0
  16. package/dist/types/types/explore/util.d.ts.map +1 -0
  17. package/dist/types/types/index.d.ts +1 -2
  18. package/dist/types/types/index.d.ts.map +1 -1
  19. package/dist/types/types/query-bridge.d.ts +1 -1
  20. package/dist/types/types/query-bridge.d.ts.map +1 -1
  21. package/dist/types/types/timeframe-options.d.ts +1 -1
  22. package/dist/types/types/timeframe-options.d.ts.map +1 -1
  23. package/dist/types/utils/helpers.d.ts +0 -4
  24. package/dist/types/utils/helpers.d.ts.map +1 -1
  25. package/dist/vitals-utilities.cjs +1 -1
  26. package/dist/vitals-utilities.cjs.map +1 -1
  27. package/dist/vitals-utilities.es.js +531 -548
  28. package/dist/vitals-utilities.es.js.map +1 -1
  29. package/dist/vitals-utilities.umd.js +1 -1
  30. package/dist/vitals-utilities.umd.js.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/types/types/analytics-data.d.ts +0 -137
  33. package/dist/types/types/analytics-data.d.ts.map +0 -1
  34. package/dist/types/types/explore-v4.d.ts +0 -101
  35. package/dist/types/types/explore-v4.d.ts.map +0 -1
@@ -0,0 +1,16 @@
1
+ import type { BasicExploreFilter, BasicExploreQuery } from './basic';
2
+ export declare const queryableExploreDimensions: readonly ["api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "route", "status_code", "status_code_grouped", "time", "application", "consumer", "iso_code"];
3
+ export type QueryableExploreDimensions = typeof queryableExploreDimensions[number];
4
+ export declare const filterableExploreDimensions: ["api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "route", "status_code", "status_code_grouped", "application", "consumer", "iso_code"];
5
+ export type FilterableExploreDimensions = typeof filterableExploreDimensions[number];
6
+ export interface ExploreFilter extends Omit<BasicExploreFilter, 'dimension'> {
7
+ dimension: FilterableExploreDimensions;
8
+ }
9
+ 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", "request_size_p99", "request_size_p95", "request_size_p50", "request_size_average", "response_size_average"];
10
+ export type ExploreAggregations = typeof exploreAggregations[number];
11
+ export interface ExploreQuery extends Omit<BasicExploreQuery, 'metrics' | 'dimensions' | 'filters'> {
12
+ metrics?: ExploreAggregations[];
13
+ dimensions?: QueryableExploreDimensions[];
14
+ filters?: ExploreFilter[];
15
+ }
16
+ //# 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,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGpE,eAAO,MAAM,0BAA0B,6NAK7B,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAA;AAElF,eAAO,MAAM,2BAA2B,4MAA6C,CAAA;AAErF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEpF,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAC1E,SAAS,EAAE,2BAA2B,CAAA;CACvC;AAED,eAAO,MAAM,mBAAmB,6gBAqBtB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAA;AAEpE,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,aAAa,EAAE,CAAA;CAC1B"}
@@ -0,0 +1,16 @@
1
+ import type { BasicExploreFilter, 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"];
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"];
5
+ export type FilterableAiExploreDimensions = typeof queryableAiExploreDimensions[number];
6
+ export interface AiExploreFilter extends Omit<BasicExploreFilter, 'dimension'> {
7
+ dimension: FilterableAiExploreDimensions;
8
+ }
9
+ 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"];
10
+ export type AiExploreAggregations = typeof aiExploreAggregations[number];
11
+ export interface AiExploreQuery extends Omit<BasicExploreQuery, 'metrics' | 'dimensions' | 'filters'> {
12
+ metrics?: AiExploreAggregations[];
13
+ dimensions?: QueryableAiExploreDimensions[];
14
+ filters?: AiExploreFilter[];
15
+ }
16
+ //# 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,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEpE,eAAO,MAAM,4BAA4B,iPAc/B,CAAA;AAEV,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAA;AAEtF,eAAO,MAAM,6BAA6B,gOAA+C,CAAA;AAEzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAA;AAEvF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAC5E,SAAS,EAAE,6BAA6B,CAAA;CACzC;AAED,eAAO,MAAM,qBAAqB,+LASxB,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAA;AAExE,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,eAAe,EAAE,CAAA;CAC5B"}
@@ -0,0 +1,15 @@
1
+ import { type BasicExploreAggregations, type BasicExploreFilter } from './basic';
2
+ import { type AiExploreAggregations, type AiExploreFilter } from './ai';
3
+ import { type ExploreAggregations, type ExploreFilter } from './advanced';
4
+ export type AllAggregations = BasicExploreAggregations | AiExploreAggregations | ExploreAggregations;
5
+ export type AllFilters = BasicExploreFilter | AiExploreFilter | ExploreFilter;
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: BasicExploreFilter;
10
+ advanced: ExploreFilter;
11
+ ai: AiExploreFilter;
12
+ }
13
+ export declare const datasourceToFilterableDimensions: Record<QueryDatasource, Set<string>>;
14
+ export declare const stripUnknownFilters: <K extends "basic" | "advanced" | "ai">(datasource: K, filters: AllFilters[]) => 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,kBAAkB,EAAoC,MAAM,SAAS,CAAA;AAClH,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,eAAe,EAAiC,MAAM,MAAM,CAAA;AACtG,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,aAAa,EAA+B,MAAM,YAAY,CAAA;AAEtG,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,mBAAmB,CAAA;AACpG,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,eAAe,GAAG,aAAa,CAAA;AAE7E,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,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,EAAE,EAAE,eAAe,CAAC;CACrB;AAED,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAIxE,CAAA;AAGV,eAAO,MAAM,mBAAmB,kEAAqF,UAAU,EAAE,uBAIhI,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { ExploreFilterTypesV2, GranularityValues, TimeRangeV4 } from './common';
2
+ export declare const queryableBasicExploreDimensions: readonly ["api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "route", "status_code", "status_code_grouped", "time"];
3
+ export type QueryableBasicExploreDimensions = typeof queryableBasicExploreDimensions[number];
4
+ export declare const filterableBasicExploreDimensions: ["api_product", "api_product_version", "control_plane", "control_plane_group", "data_plane_node", "gateway_service", "route", "status_code", "status_code_grouped"];
5
+ export type FilterableBasicExploreDimensions = typeof filterableBasicExploreDimensions[number];
6
+ export interface BasicExploreFilter {
7
+ type: ExploreFilterTypesV2;
8
+ dimension: FilterableBasicExploreDimensions;
9
+ values: (string | number | null)[];
10
+ }
11
+ export declare const basicExploreAggregations: readonly ["active_services", "request_count", "request_per_minute", "response_latency_average"];
12
+ export type BasicExploreAggregations = typeof basicExploreAggregations[number];
13
+ export interface BasicExploreQuery {
14
+ metrics?: BasicExploreAggregations[];
15
+ dimensions?: QueryableBasicExploreDimensions[];
16
+ filters?: BasicExploreFilter[];
17
+ granularity?: GranularityValues;
18
+ time_range?: TimeRangeV4;
19
+ limit?: number;
20
+ descending?: boolean;
21
+ short_name?: boolean;
22
+ meta?: {
23
+ query_id: string;
24
+ };
25
+ }
26
+ //# 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,WAAW,EAAE,MAAM,UAAU,CAAA;AAEpF,eAAO,MAAM,+BAA+B,sLAWlC,CAAA;AAEV,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAA;AAE5F,eAAO,MAAM,gCAAgC,qKAAkD,CAAA;AAE/F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAA;AAE9F,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,SAAS,EAAE,gCAAgC,CAAA;IAC3C,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;CACnC;AAED,eAAO,MAAM,wBAAwB,iGAK3B,CAAA;AAEV,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAE9E,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACpC,UAAU,CAAC,EAAE,+BAA+B,EAAE,CAAA;IAC9C,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC9B,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,21 @@
1
+ export declare const exploreFilterTypesV2: readonly ["in", "not_in", "selector"];
2
+ export type ExploreFilterTypesV2 = typeof exploreFilterTypesV2[number];
3
+ export declare const timeRangeTypeV2: readonly ["absolute", "relative"];
4
+ export type TimeRangeTypeV2 = typeof timeRangeTypeV2[number];
5
+ export interface AbsoluteTimeRangeV4 {
6
+ type: 'absolute';
7
+ tz?: string;
8
+ start: Date;
9
+ end: Date;
10
+ }
11
+ export declare const relativeTimeRangeValuesV4: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
12
+ export type RelativeTimeRangeValuesV4 = typeof relativeTimeRangeValuesV4[number];
13
+ export interface RelativeTimeRangeV4 {
14
+ type: 'relative';
15
+ tz?: string;
16
+ time_range: RelativeTimeRangeValuesV4;
17
+ }
18
+ export type TimeRangeV4 = AbsoluteTimeRangeV4 | RelativeTimeRangeV4;
19
+ export declare const granularityValues: readonly ["secondly", "minutely", "hourly", "daily", "weekly", "trend"];
20
+ export type GranularityValues = typeof granularityValues[number];
21
+ //# 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;AAQtE,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,eAAO,MAAM,iBAAiB,yEAOpB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './common';
2
+ export * from './basic';
3
+ export * from './advanced';
4
+ export * from './ai';
5
+ export * from './result';
6
+ export * from './all';
7
+ //# 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,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,46 @@
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
+ display: DisplayBlob;
16
+ metric_names?: AllAggregations[];
17
+ metric_units?: MetricUnit;
18
+ granularity_ms: number;
19
+ truncated?: boolean;
20
+ limit?: number;
21
+ query_id: string;
22
+ }
23
+ export interface GroupByResult {
24
+ version?: string;
25
+ timestamp: string;
26
+ event: RecordEvent;
27
+ }
28
+ export interface ExploreResultV4 {
29
+ data: GroupByResult[];
30
+ meta: QueryResponseMeta;
31
+ }
32
+ export interface RecordEvent {
33
+ [field: string]: string | number | null;
34
+ }
35
+ export interface AnalyticsExploreRecord {
36
+ version?: string;
37
+ timestamp: string;
38
+ event: RecordEvent;
39
+ }
40
+ export interface DimensionMap {
41
+ [dimension: string]: string[];
42
+ }
43
+ export type MetricUnit = {
44
+ [metricName in AllAggregations]?: string;
45
+ };
46
+ //# 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,CA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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
+ export declare const makeFilterable: <T extends readonly unknown[]>(queryable: T) => ExcludeFromTuple<T, "time">;
6
+ export {};
7
+ //# 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;AAMvC,eAAO,MAAM,cAAc,6EAC2B,CAAA"}
@@ -1,4 +1,3 @@
1
- export * from './analytics-data';
2
1
  export * from './datepicker-selection';
3
2
  export * from './druid-granularity';
4
3
  export * from './query-time';
@@ -7,7 +6,7 @@ export * from './timeframe-keys';
7
6
  export * from './timeframe-options';
8
7
  export * from './chart-types';
9
8
  export * from './timeframe';
10
- export * from './explore-v4';
9
+ export * from './explore';
11
10
  export * from './query-bridge';
12
11
  export * from './analytics-config';
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAKA,cAAc,kBAAkB,CAAA;AAChC,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,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA"}
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"}
@@ -1,4 +1,4 @@
1
- import type { BasicExploreQuery, ExploreQuery, AiExploreQuery, ExploreResultV4 } from './explore-v4';
1
+ import type { BasicExploreQuery, ExploreQuery, AiExploreQuery, ExploreResultV4 } from './explore';
2
2
  import type { AnalyticsConfigV2 } from './analytics-config';
3
3
  export interface BasicDatasourceQuery {
4
4
  datasource: 'basic';
@@ -1 +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,cAAc,CAAA;AACpG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,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,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,MAAM,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC;CACzE"}
@@ -1,4 +1,4 @@
1
- import type { GranularityValues, RelativeTimeRangeValuesV4 } from './explore-v4';
1
+ import type { GranularityValues, RelativeTimeRangeValuesV4 } from './explore';
2
2
  export interface TimeframeOptions {
3
3
  key: RelativeTimeRangeValuesV4 | 'custom';
4
4
  timeframeText: string;
@@ -1 +1 @@
1
- {"version":3,"file":"timeframe-options.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,yBAAyB,GAAG,QAAQ,CAAA;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,0BAA0B,EAAE,iBAAiB,CAAA;IAC7C,eAAe,EAAE,iBAAiB,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,MAAM,MAAM,CAAA;IAC7B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
1
+ {"version":3,"file":"timeframe-options.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAE7E,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,yBAAyB,GAAG,QAAQ,CAAA;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,0BAA0B,EAAE,iBAAiB,CAAA;IAC7C,eAAe,EAAE,iBAAiB,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,MAAM,MAAM,CAAA;IAC7B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB"}
@@ -1,6 +1,2 @@
1
- import type { AnalyticsExploreV2Result } from '../types';
2
- export declare function generateRandomColor(): string;
3
1
  export declare function rand(min: number, max: number): number;
4
- export declare function isValidJson(str: string): boolean;
5
- export declare function parseJson(exploreResultText: AnalyticsExploreV2Result): AnalyticsExploreV2Result | null;
6
2
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAExD,wBAAgB,mBAAmB,WASlC;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAIrD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAUhD;AAED,wBAAgB,SAAS,CAAC,iBAAiB,EAAE,wBAAwB,mCAQpE"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAIrD"}