@kong-ui-public/analytics-utilities 12.1.5-pr.2673.6e2178c96.0 → 12.1.5-pr.2700.d98d1061d.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.
- package/dist/types/constants.d.ts +4 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/dashboardSchema.v2.d.ts +3243 -0
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -0
- package/dist/types/filters.d.ts +3 -0
- package/dist/types/filters.d.ts.map +1 -0
- package/dist/types/format.d.ts +34 -0
- package/dist/types/format.d.ts.map +1 -0
- package/dist/types/granularity.d.ts +27 -0
- package/dist/types/granularity.d.ts.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/queryTime.d.ts +36 -0
- package/dist/types/queryTime.d.ts.map +1 -0
- package/dist/types/specUtils.d.ts +3 -0
- package/dist/types/specUtils.d.ts.map +1 -0
- package/dist/types/timeframes.d.ts +33 -0
- package/dist/types/timeframes.d.ts.map +1 -0
- package/dist/types/types/analytics-config.d.ts +24 -0
- package/dist/types/types/analytics-config.d.ts.map +1 -0
- package/dist/types/types/chart-types.d.ts +3 -0
- package/dist/types/types/chart-types.d.ts.map +1 -0
- package/dist/types/types/country-codes.d.ts +745 -0
- package/dist/types/types/country-codes.d.ts.map +1 -0
- package/dist/types/types/datepicker-selection.d.ts +6 -0
- package/dist/types/types/datepicker-selection.d.ts.map +1 -0
- package/dist/types/types/druid-granularity.d.ts +6 -0
- package/dist/types/types/druid-granularity.d.ts.map +1 -0
- package/dist/types/types/explore/advanced.d.ts +20 -0
- package/dist/types/types/explore/advanced.d.ts.map +1 -0
- package/dist/types/types/explore/ai.d.ts +20 -0
- package/dist/types/types/explore/ai.d.ts.map +1 -0
- package/dist/types/types/explore/all.d.ts +18 -0
- package/dist/types/types/explore/all.d.ts.map +1 -0
- package/dist/types/types/explore/basic.d.ts +31 -0
- package/dist/types/types/explore/basic.d.ts.map +1 -0
- package/dist/types/types/explore/common.d.ts +34 -0
- package/dist/types/types/explore/common.d.ts.map +1 -0
- package/dist/types/types/explore/index.d.ts +8 -0
- package/dist/types/types/explore/index.d.ts.map +1 -0
- package/dist/types/types/explore/requests.d.ts +57 -0
- package/dist/types/types/explore/requests.d.ts.map +1 -0
- package/dist/types/types/explore/result.d.ts +48 -0
- package/dist/types/types/explore/result.d.ts.map +1 -0
- package/dist/types/types/explore/util.d.ts +8 -0
- package/dist/types/types/explore/util.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +14 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/query-bridge.d.ts +29 -0
- package/dist/types/types/query-bridge.d.ts.map +1 -0
- package/dist/types/types/query-time.d.ts +13 -0
- package/dist/types/types/query-time.d.ts.map +1 -0
- package/dist/types/types/request-export.d.ts +11 -0
- package/dist/types/types/request-export.d.ts.map +1 -0
- package/dist/types/types/time-period.d.ts +9 -0
- package/dist/types/types/time-period.d.ts.map +1 -0
- package/dist/types/types/timeframe-keys.d.ts +21 -0
- package/dist/types/types/timeframe-keys.d.ts.map +1 -0
- package/dist/types/types/timeframe-options.d.ts +18 -0
- package/dist/types/types/timeframe-options.d.ts.map +1 -0
- package/dist/types/types/timeframe.d.ts +17 -0
- package/dist/types/types/timeframe.d.ts.map +1 -0
- package/dist/types/utils/GeoLookup.d.ts +4 -0
- package/dist/types/utils/GeoLookup.d.ts.map +1 -0
- package/dist/types/utils/SeedRandom.d.ts +6 -0
- package/dist/types/utils/SeedRandom.d.ts.map +1 -0
- package/dist/types/utils/chartDataGenerator.d.ts +9 -0
- package/dist/types/utils/chartDataGenerator.d.ts.map +1 -0
- package/dist/types/utils/formatUnit.d.ts +21 -0
- package/dist/types/utils/formatUnit.d.ts.map +1 -0
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/helpers.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/vitals-utilities.cjs +2 -0
- package/dist/vitals-utilities.cjs.map +1 -0
- package/dist/vitals-utilities.es.js +4039 -0
- package/dist/vitals-utilities.es.js.map +1 -0
- package/dist/vitals-utilities.umd.js +2 -0
- package/dist/vitals-utilities.umd.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-codes.d.ts","sourceRoot":"","sources":["../../../src/types/country-codes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuPZ,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAC3D,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
|
@@ -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 @@
|
|
|
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", "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", "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,iWAU7B,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAA;AAElF,eAAO,MAAM,2BAA2B,gVAA6C,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,18 @@
|
|
|
1
|
+
import { type BasicExploreAggregations, type BasicExploreFilterAll, type FilterableBasicExploreDimensions } from './basic';
|
|
2
|
+
import { type AiExploreAggregations, type AiExploreFilterAll, type FilterableAiExploreDimensions } from './ai';
|
|
3
|
+
import { type ExploreAggregations, type ExploreFilterAll, type FilterableExploreDimensions } from './advanced';
|
|
4
|
+
import { type FilterableRequestDimensions, type FilterableRequestMetrics, type FilterableRequestWildcardDimensions } from './requests';
|
|
5
|
+
export type AllAggregations = BasicExploreAggregations | AiExploreAggregations | ExploreAggregations;
|
|
6
|
+
export type AllFilters = BasicExploreFilterAll | AiExploreFilterAll | ExploreFilterAll;
|
|
7
|
+
export type AllFilterableDimensionsAndMetrics = FilterableExploreDimensions | FilterableAiExploreDimensions | FilterableBasicExploreDimensions | FilterableRequestDimensions | FilterableRequestMetrics | FilterableRequestWildcardDimensions;
|
|
8
|
+
export declare const queryDatasources: readonly ["basic", "api_usage", "llm_usage"];
|
|
9
|
+
export type QueryDatasource = typeof queryDatasources[number];
|
|
10
|
+
export type FilterDatasource = QueryDatasource | 'requests';
|
|
11
|
+
export interface FilterTypeMap extends Record<QueryDatasource, AllFilters> {
|
|
12
|
+
basic: BasicExploreFilterAll;
|
|
13
|
+
api_usage: ExploreFilterAll;
|
|
14
|
+
llm_usage: AiExploreFilterAll;
|
|
15
|
+
}
|
|
16
|
+
export declare const datasourceToFilterableDimensions: Record<QueryDatasource, Set<string>>;
|
|
17
|
+
export declare const stripUnknownFilters: <K extends keyof typeof datasourceToFilterableDimensions>(datasource: K, filters: AllFilters[]) => Array<FilterTypeMap[K]>;
|
|
18
|
+
//# 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,EAAE,KAAK,gCAAgC,EAAoC,MAAM,SAAS,CAAA;AAC5J,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,kBAAkB,EAAE,KAAK,6BAA6B,EAAiC,MAAM,MAAM,CAAA;AAC7I,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,KAAK,2BAA2B,EAA+B,MAAM,YAAY,CAAA;AAC3I,OAAO,EAAE,KAAK,2BAA2B,EAAE,KAAK,wBAAwB,EAAE,KAAK,mCAAmC,EAAE,MAAM,YAAY,CAAA;AAEtI,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,mBAAmB,CAAA;AACpG,MAAM,MAAM,UAAU,GAAG,qBAAqB,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AACtF,MAAM,MAAM,iCAAiC,GAAG,2BAA2B,GACvE,6BAA6B,GAC7B,gCAAgC,GAChC,2BAA2B,GAC3B,wBAAwB,GACxB,mCAAmC,CAAA;AAEvC,eAAO,MAAM,gBAAgB,8CAA+C,CAAA;AAE5E,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAE7D,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG,UAAU,CAAA;AAE3D,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC;IACxE,KAAK,EAAE,qBAAqB,CAAA;IAC5B,SAAS,EAAE,gBAAgB,CAAA;IAC3B,SAAS,EAAE,kBAAkB,CAAA;CAC9B;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,EAAE,YAAY,CAAC,EAAE,SAAS,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 @@
|
|
|
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", "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", "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", "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", "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,0iBAkC7B,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAA;AAElF,eAAO,MAAM,2BAA2B,yhBAA6C,CAAA;AAErF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEpF,eAAO,MAAM,kCAAkC,mQAerC,CAAA;AAEV,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,CAAC,CAAA;AAElG,eAAO,MAAM,mCAAmC,mQAAqC,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,WAAW,mBAAmB;IAClC,QAAQ,EAAE,yBAAyB,CAAA;IACnC,KAAK,EAAE,2BAA2B,GAAG,mCAAmC,CAAA;IACxE,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,yBAAyB,CAAA;IACnC,KAAK,EAAE,wBAAwB,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,wBAAwB,CAAA;IAClC,KAAK,EAAE,2BAA2B,GAAG,mCAAmC,GAAG,wBAAwB,CAAA;CACpG;AACD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,2BAA2B,CAAA;IACrC,KAAK,EAAE,mCAAmC,CAAA;IAC1C,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,aAAa,GAAG,eAAe,GACzC,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,qBAAqB,CAAA;AAEvB,eAAO,MAAM,gCAAgC,kDAOnC,CAAA;AAEV,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAA;AAE9F,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,gCAAgC,CAAA;CAC7C;AAED,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,0BAA0B,CAAA;AAEjF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,UAAU,EAAE,kBAAkB,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB"}
|
|
@@ -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,EAAE,WAAW,CAAC,KAChC,UAAU,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export * from './country-codes';
|
|
13
|
+
export * from './request-export';
|
|
14
|
+
//# 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;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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: 'api_usage';
|
|
10
|
+
query: ExploreQuery;
|
|
11
|
+
}
|
|
12
|
+
export interface AiDatasourceQuery {
|
|
13
|
+
datasource: 'llm_usage';
|
|
14
|
+
query: AiExploreQuery;
|
|
15
|
+
}
|
|
16
|
+
export type DatasourceAwareQuery = BasicDatasourceQuery | AdvancedDatasourceQuery | AiDatasourceQuery;
|
|
17
|
+
export interface StaticConfig {
|
|
18
|
+
increaseCsvExportLimit?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface AnalyticsBridge {
|
|
21
|
+
queryFn: (query: DatasourceAwareQuery, abortController: AbortController) => Promise<ExploreResultV4>;
|
|
22
|
+
configFn: () => Promise<AnalyticsConfigV2>;
|
|
23
|
+
evaluateFeatureFlagFn: <T = boolean>(key: string, defaultValue: T) => T;
|
|
24
|
+
staticConfig?: StaticConfig;
|
|
25
|
+
exploreBaseUrl?: () => Promise<string>;
|
|
26
|
+
requestsBaseUrl?: () => Promise<string>;
|
|
27
|
+
fetchComponent?: (name: string) => Promise<Component>;
|
|
28
|
+
}
|
|
29
|
+
//# 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,WAAW,CAAA;IACvB,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,WAAW,CAAA;IACvB,KAAK,EAAE,cAAc,CAAA;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,iBAAiB,CAAA;AAGrG,MAAM,WAAW,YAAY;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,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,YAAY,CAAC,EAAE,YAAY,CAAA;IAI3B,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IAItC,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IAGvC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;CACtD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DruidGranularity } from '.';
|
|
2
|
+
export interface QueryTime {
|
|
3
|
+
granularitySeconds(): number;
|
|
4
|
+
granularityDruid(): DruidGranularity;
|
|
5
|
+
startSeconds(): number;
|
|
6
|
+
endSeconds(): number;
|
|
7
|
+
startMs(): number;
|
|
8
|
+
endMs(): number;
|
|
9
|
+
startDate(): Date;
|
|
10
|
+
endDate(): Date;
|
|
11
|
+
granularityMs(): number;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=query-time.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-time.d.ts","sourceRoot":"","sources":["../../../src/types/query-time.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AAEzC,MAAM,WAAW,SAAS;IACxB,kBAAkB,IAAI,MAAM,CAAA;IAC5B,gBAAgB,IAAI,gBAAgB,CAAA;IACpC,YAAY,IAAI,MAAM,CAAA;IACtB,UAAU,IAAI,MAAM,CAAA;IACpB,OAAO,IAAI,MAAM,CAAA;IACjB,KAAK,IAAI,MAAM,CAAA;IACf,SAAS,IAAI,IAAI,CAAA;IACjB,OAAO,IAAI,IAAI,CAAA;IACf,aAAa,IAAI,MAAM,CAAA;CACxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ExploreResultV4 } from '@kong-ui-public/analytics-utilities';
|
|
2
|
+
export type ExploreExportState = {
|
|
3
|
+
status: 'loading';
|
|
4
|
+
} | {
|
|
5
|
+
status: 'success';
|
|
6
|
+
chartData: ExploreResultV4;
|
|
7
|
+
} | {
|
|
8
|
+
status: 'error';
|
|
9
|
+
error: unknown;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=request-export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-export.d.ts","sourceRoot":"","sources":["../../../src/types/request-export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAC1B;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,GACjD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-period.d.ts","sourceRoot":"","sources":["../../../src/types/time-period.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,MAAM,CAAA;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,GAAG,EAAE,MAAM,IAAI,CAAA;CAChB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum TimeframeKeys {
|
|
2
|
+
FIFTEEN_MIN = "15m",
|
|
3
|
+
ONE_HOUR = "1h",
|
|
4
|
+
SIX_HOUR = "6h",
|
|
5
|
+
TWELVE_HOUR = "12h",
|
|
6
|
+
ONE_DAY = "24h",
|
|
7
|
+
SEVEN_DAY = "7d",
|
|
8
|
+
THIRTY_DAY = "30d",
|
|
9
|
+
NINETY_DAY = "90d",
|
|
10
|
+
ONE_HUNDRED_EIGHTY_DAY = "180d",
|
|
11
|
+
ONE_YEAR = "365d",
|
|
12
|
+
CURRENT_WEEK = "current_week",
|
|
13
|
+
CURRENT_MONTH = "current_month",
|
|
14
|
+
CURRENT_QUARTER = "current_quarter",
|
|
15
|
+
CURRENT_YEAR = "current_year",
|
|
16
|
+
PREVIOUS_WEEK = "previous_week",
|
|
17
|
+
PREVIOUS_MONTH = "previous_month",
|
|
18
|
+
PREVIOUS_QUARTER = "previous_quarter",
|
|
19
|
+
PREVIOUS_YEAR = "previous_year"
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=timeframe-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeframe-keys.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe-keys.ts"],"names":[],"mappings":"AACA,oBAAY,aAAa;IACvB,WAAW,QAAQ;IACnB,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,WAAW,QAAQ;IACnB,OAAO,QAAQ;IACf,SAAS,OAAO;IAChB,UAAU,QAAQ;IAClB,UAAU,QAAQ;IAClB,sBAAsB,SAAS;IAC/B,QAAQ,SAAS;IACjB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;CAChC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GranularityValues, RelativeTimeRangeValuesV4 } from './explore';
|
|
2
|
+
export interface TimeframeOptions {
|
|
3
|
+
key: RelativeTimeRangeValuesV4 | ExtendedRelativeTimeRangeValues | 'custom';
|
|
4
|
+
timeframeText: string;
|
|
5
|
+
display: string;
|
|
6
|
+
defaultResponseGranularity: GranularityValues;
|
|
7
|
+
dataGranularity: GranularityValues;
|
|
8
|
+
isRelative: boolean;
|
|
9
|
+
timeframeLength: () => number;
|
|
10
|
+
allowedTiers: string[];
|
|
11
|
+
startCustom?: Date;
|
|
12
|
+
endCustom?: Date;
|
|
13
|
+
allowedGranularitiesOverride?: GranularityValues[];
|
|
14
|
+
fineGrainedDefaultGranularity?: GranularityValues;
|
|
15
|
+
}
|
|
16
|
+
export declare const extendedRelativeTimeRangeValues: readonly ["90d", "180d", "365d", "current_year", "previous_year"];
|
|
17
|
+
export type ExtendedRelativeTimeRangeValues = typeof extendedRelativeTimeRangeValues[number];
|
|
18
|
+
//# sourceMappingURL=timeframe-options.d.ts.map
|
|
@@ -0,0 +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,WAAW,CAAA;AAE7E,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,yBAAyB,GAAG,+BAA+B,GAAG,QAAQ,CAAA;IAC3E,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,MAAM,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,4BAA4B,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClD,6BAA6B,CAAC,EAAE,iBAAiB,CAAA;CAClD;AAGD,eAAO,MAAM,+BAA+B,mEAAoE,CAAA;AAChH,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GranularityValues } from '.';
|
|
2
|
+
export interface ITimeframe {
|
|
3
|
+
readonly timeframeText: string;
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly display: string;
|
|
6
|
+
readonly timeframeLength: () => number;
|
|
7
|
+
readonly allowedTiers: string[];
|
|
8
|
+
readonly defaultResponseGranularity: GranularityValues;
|
|
9
|
+
readonly dataGranularity: GranularityValues;
|
|
10
|
+
readonly isRelative: boolean;
|
|
11
|
+
rawEnd(_tz?: string): Date;
|
|
12
|
+
rawStart(_tz?: string): Date;
|
|
13
|
+
timeframeLengthMs(): number;
|
|
14
|
+
maximumTimeframeLength(): number;
|
|
15
|
+
allowedGranularities(fineGrain?: boolean): Set<GranularityValues>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=timeframe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAE1C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,eAAe,EAAE,MAAM,MAAM,CAAA;IACtC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAA;IAC/B,QAAQ,CAAC,0BAA0B,EAAE,iBAAiB,CAAA;IACtD,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAA;IAC3C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,iBAAiB,IAAI,MAAM,CAAA;IAC3B,sBAAsB,IAAI,MAAM,CAAA;IAChC,oBAAoB,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoLookup.d.ts","sourceRoot":"","sources":["../../../src/utils/GeoLookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAI3D,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAiG,CAAA;AAElJ,eAAO,MAAM,cAAc,GAAI,cAAc,YAAY,WAExD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeedRandom.d.ts","sourceRoot":"","sources":["../../../src/utils/SeedRandom.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAEvB,OAAO,CAAC,KAAK,CAAQ;gBAET,IAAI,EAAE,MAAM;IAIxB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;CAM9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DimensionMap, QueryResponseMeta, ExploreResultV4 } from '../types';
|
|
2
|
+
export interface Metric {
|
|
3
|
+
name: string;
|
|
4
|
+
unit: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const generateSingleMetricTimeSeriesData: (metric: Metric, dimensionMap?: DimensionMap, metaOverrides?: Partial<QueryResponseMeta>) => ExploreResultV4;
|
|
7
|
+
export declare const generateMultipleMetricTimeSeriesData: (metrics: Metric[], metaOverrides?: Partial<QueryResponseMeta>) => ExploreResultV4;
|
|
8
|
+
export declare const generateCrossSectionalData: (metrics: Metric[], dimensionMap?: DimensionMap, metaOverrides?: Partial<QueryResponseMeta>) => ExploreResultV4;
|
|
9
|
+
//# sourceMappingURL=chartDataGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartDataGenerator.d.ts","sourceRoot":"","sources":["../../../src/utils/chartDataGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAKZ,iBAAiB,EACjB,eAAe,EAChB,MAAM,UAAU,CAAA;AAIjB,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,kCAAkC,GAAI,QAAQ,MAAM,EAAE,eAAe,YAAY,EAAE,gBAAgB,OAAO,CAAC,iBAAiB,CAAC,KA6EnI,eACN,CAAA;AAED,eAAO,MAAM,oCAAoC,GAAI,SAAS,MAAM,EAAE,EAAE,gBAAgB,OAAO,CAAC,iBAAiB,CAAC,KAgD3G,eACN,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,SAAS,MAAM,EAAE,EAAE,eAAe,YAAY,EAAE,gBAAgB,OAAO,CAAC,iBAAiB,CAAC,KAqF9H,eACN,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IntlShapeEx } from '@kong-ui-public/i18n';
|
|
2
|
+
export declare const numberFormatter: Intl.NumberFormat;
|
|
3
|
+
export declare function unitFormatter<T extends Record<string, any>>({ i18n, }: {
|
|
4
|
+
i18n: IntlShapeEx<T>;
|
|
5
|
+
}): {
|
|
6
|
+
formatUnit: (value: number, unit: string, { isBytes1024, currency, approximate, translateUnit, }?: {
|
|
7
|
+
isBytes1024?: boolean;
|
|
8
|
+
currency?: string;
|
|
9
|
+
approximate?: boolean;
|
|
10
|
+
translateUnit?: (unit: string, value: number) => string;
|
|
11
|
+
}) => string;
|
|
12
|
+
formatBytes: (value: number, isBytes1024?: boolean) => string;
|
|
13
|
+
formatCost: (value: number, currency?: string) => string;
|
|
14
|
+
formatRange: (min: number, max: number, unit: string, { isBytes1024, currency, approximate, translateUnit, }?: {
|
|
15
|
+
isBytes1024?: boolean;
|
|
16
|
+
currency?: string;
|
|
17
|
+
approximate?: boolean;
|
|
18
|
+
translateUnit?: (unit: string, value: number) => string;
|
|
19
|
+
}) => string;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=formatUnit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatUnit.d.ts","sourceRoot":"","sources":["../../../src/utils/formatUnit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD,eAAO,MAAM,eAAe,mBAAoE,CAAA;AAEhG,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAC3D,IAAI,GACL,EAAG;IACF,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAA;CACrB;wBAiF4B,MAAM,QAAQ,MAAM;sBAX/B,OAAO;mBACV,MAAM;sBAEH,OAAO;wBACL,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;UAY3B,MAAM;yBApFR,MAAM,gBAAgB,OAAO,KAAG,MAAM;wBAiDvC,MAAM,aAAY,MAAM,KAAW,MAAM;uBA4D1C,MAAM,OAAO,MAAM,QAAQ,MAAM;sBAzC3C,OAAO;mBACV,MAAM;sBAEH,OAAO;wBACL,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;UA0C3B,MAAM;EAiCrC"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|