@kong-ui-public/analytics-utilities 12.7.1 → 12.7.2-pr.2694.d983d66d0.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 (81) hide show
  1. package/package.json +1 -1
  2. package/dist/types/constants.d.ts +0 -4
  3. package/dist/types/constants.d.ts.map +0 -1
  4. package/dist/types/dashboardSchema.v2.d.ts +0 -3243
  5. package/dist/types/dashboardSchema.v2.d.ts.map +0 -1
  6. package/dist/types/filters.d.ts +0 -3
  7. package/dist/types/filters.d.ts.map +0 -1
  8. package/dist/types/format.d.ts +0 -34
  9. package/dist/types/format.d.ts.map +0 -1
  10. package/dist/types/granularity.d.ts +0 -27
  11. package/dist/types/granularity.d.ts.map +0 -1
  12. package/dist/types/index.d.ts +0 -10
  13. package/dist/types/index.d.ts.map +0 -1
  14. package/dist/types/queryTime.d.ts +0 -36
  15. package/dist/types/queryTime.d.ts.map +0 -1
  16. package/dist/types/specUtils.d.ts +0 -3
  17. package/dist/types/specUtils.d.ts.map +0 -1
  18. package/dist/types/timeframes.d.ts +0 -33
  19. package/dist/types/timeframes.d.ts.map +0 -1
  20. package/dist/types/types/analytics-config.d.ts +0 -24
  21. package/dist/types/types/analytics-config.d.ts.map +0 -1
  22. package/dist/types/types/chart-types.d.ts +0 -3
  23. package/dist/types/types/chart-types.d.ts.map +0 -1
  24. package/dist/types/types/country-codes.d.ts +0 -745
  25. package/dist/types/types/country-codes.d.ts.map +0 -1
  26. package/dist/types/types/datepicker-selection.d.ts +0 -6
  27. package/dist/types/types/datepicker-selection.d.ts.map +0 -1
  28. package/dist/types/types/druid-granularity.d.ts +0 -6
  29. package/dist/types/types/druid-granularity.d.ts.map +0 -1
  30. package/dist/types/types/explore/advanced.d.ts +0 -20
  31. package/dist/types/types/explore/advanced.d.ts.map +0 -1
  32. package/dist/types/types/explore/ai.d.ts +0 -20
  33. package/dist/types/types/explore/ai.d.ts.map +0 -1
  34. package/dist/types/types/explore/all.d.ts +0 -18
  35. package/dist/types/types/explore/all.d.ts.map +0 -1
  36. package/dist/types/types/explore/basic.d.ts +0 -31
  37. package/dist/types/types/explore/basic.d.ts.map +0 -1
  38. package/dist/types/types/explore/common.d.ts +0 -34
  39. package/dist/types/types/explore/common.d.ts.map +0 -1
  40. package/dist/types/types/explore/index.d.ts +0 -8
  41. package/dist/types/types/explore/index.d.ts.map +0 -1
  42. package/dist/types/types/explore/requests.d.ts +0 -57
  43. package/dist/types/types/explore/requests.d.ts.map +0 -1
  44. package/dist/types/types/explore/result.d.ts +0 -48
  45. package/dist/types/types/explore/result.d.ts.map +0 -1
  46. package/dist/types/types/explore/util.d.ts +0 -8
  47. package/dist/types/types/explore/util.d.ts.map +0 -1
  48. package/dist/types/types/index.d.ts +0 -14
  49. package/dist/types/types/index.d.ts.map +0 -1
  50. package/dist/types/types/query-bridge.d.ts +0 -29
  51. package/dist/types/types/query-bridge.d.ts.map +0 -1
  52. package/dist/types/types/query-time.d.ts +0 -13
  53. package/dist/types/types/query-time.d.ts.map +0 -1
  54. package/dist/types/types/request-export.d.ts +0 -11
  55. package/dist/types/types/request-export.d.ts.map +0 -1
  56. package/dist/types/types/time-period.d.ts +0 -9
  57. package/dist/types/types/time-period.d.ts.map +0 -1
  58. package/dist/types/types/timeframe-keys.d.ts +0 -21
  59. package/dist/types/types/timeframe-keys.d.ts.map +0 -1
  60. package/dist/types/types/timeframe-options.d.ts +0 -18
  61. package/dist/types/types/timeframe-options.d.ts.map +0 -1
  62. package/dist/types/types/timeframe.d.ts +0 -17
  63. package/dist/types/types/timeframe.d.ts.map +0 -1
  64. package/dist/types/utils/GeoLookup.d.ts +0 -4
  65. package/dist/types/utils/GeoLookup.d.ts.map +0 -1
  66. package/dist/types/utils/SeedRandom.d.ts +0 -6
  67. package/dist/types/utils/SeedRandom.d.ts.map +0 -1
  68. package/dist/types/utils/chartDataGenerator.d.ts +0 -9
  69. package/dist/types/utils/chartDataGenerator.d.ts.map +0 -1
  70. package/dist/types/utils/formatUnit.d.ts +0 -21
  71. package/dist/types/utils/formatUnit.d.ts.map +0 -1
  72. package/dist/types/utils/helpers.d.ts +0 -2
  73. package/dist/types/utils/helpers.d.ts.map +0 -1
  74. package/dist/types/utils/index.d.ts +0 -6
  75. package/dist/types/utils/index.d.ts.map +0 -1
  76. package/dist/vitals-utilities.cjs +0 -2
  77. package/dist/vitals-utilities.cjs.map +0 -1
  78. package/dist/vitals-utilities.es.js +0 -4042
  79. package/dist/vitals-utilities.es.js.map +0 -1
  80. package/dist/vitals-utilities.umd.js +0 -2
  81. package/dist/vitals-utilities.umd.js.map +0 -1
@@ -1 +0,0 @@
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;AAkB/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,8KAYrB,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,eAAe;;;;;;;;;;;;;;;;;;;;CAoBG,CAAA;AAE/B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBH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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBH,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { AllFilterableDimensionsAndMetrics, FilterDatasource } from './types';
2
- export declare const getFieldDataSources: (dimension: AllFilterableDimensionsAndMetrics) => FilterDatasource[];
3
- //# sourceMappingURL=filters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/filters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAUlF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,iCAAiC,KAC3C,gBAAgB,EAiBlB,CAAA"}
@@ -1,34 +0,0 @@
1
- export interface TimeFormatOptions {
2
- includeTZ?: boolean;
3
- tz?: string;
4
- short?: boolean;
5
- format?: 'default' | 'short' | 'full';
6
- }
7
- /**
8
- *Formats a timestamp according to the specified options
9
- *
10
- * @param ts - timestamp as number or Date
11
- * @param options - formatting options
12
- * @param options.format - format of the timestamp representing the granularity
13
- * 'MMM dd, yyyy hh:mm a' (default)
14
- * Possible values:
15
- * - short: 'MMM dd, yyyy'
16
- * - default: 'MMM dd, yyyy hh:mm a'
17
- * - full: 'MMM dd, yyyy hh:mm:ss.SSS a'
18
- * @param options.includeTZ: whether to include the timezone abbreviation in the formatted string
19
- * @param options.tz: timezone to use for formatting (defaults to system timezone)
20
- * @returns Formatted timestamp string
21
- */
22
- export declare function formatTimestamp(ts: number | Date, options?: TimeFormatOptions): string;
23
- /**
24
- * @deprecated use `formatTimestamp` instead
25
- */
26
- export declare function formatTime(ts: number | string, options?: TimeFormatOptions): string | number;
27
- /**
28
- * Formatted display for a start and end time range
29
- * @param start Date from
30
- * @param end Date to
31
- * @returns Human-readable date range string
32
- */
33
- export declare function formatTimeRange(start: Date, end: Date): string;
34
- //# sourceMappingURL=format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/format.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;CACtC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAE,iBAAsB,UAqBjF;AAED;;GAEG;AACH,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"}
@@ -1,27 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
1
- export * from './constants';
2
- export * from './dashboardSchema.v2';
3
- export * from './types';
4
- export * from './filters';
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -1,36 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAE,SAAS,EAAE,MAAM,cAAc,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cTest: any;
2
- export declare const runNonUtcTest: any;
3
- //# sourceMappingURL=specUtils.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,33 +0,0 @@
1
- import { type ExtendedRelativeTimeRangeValues, 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 | ExtendedRelativeTimeRangeValues | '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
@@ -1 +0,0 @@
1
- {"version":3,"file":"timeframes.d.ts","sourceRoot":"","sources":["../../src/timeframes.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,+BAA+B,EAEpC,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;AASnD,qBAAa,SAAU,YAAW,UAAU;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAE9B,QAAQ,CAAC,GAAG,EAAE,yBAAyB,GAAG,+BAA+B,GAAG,QAAQ,CAAA;IAEpF,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;IAuBjC,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;CAU5C;AAoID,eAAO,MAAM,WAAW,wBAmRtB,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,CAuB1D,CAAA"}
@@ -1,24 +0,0 @@
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
- metering?: boolean;
6
- }
7
- export interface ApiAnalyticsV2 {
8
- percentiles: boolean;
9
- retention_ms: AnalyticsRetentionMs;
10
- }
11
- export interface ApiRequestsV2 {
12
- retention_ms: RequestsRetentionMs;
13
- }
14
- export interface UiOptions {
15
- maxParallelRequests?: number;
16
- requestInterval?: number;
17
- requestIntervalCap?: number;
18
- }
19
- export interface AnalyticsConfigV2 {
20
- analytics: null | ApiAnalyticsV2;
21
- requests: null | ApiRequestsV2;
22
- ui?: UiOptions;
23
- }
24
- //# sourceMappingURL=analytics-config.d.ts.map
@@ -1 +0,0 @@
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;IAClB,QAAQ,CAAC,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"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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"}