@kong-ui-public/analytics-utilities 12.12.3 → 12.12.4
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/dashboardSchema.v2.d.ts +0 -40
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -1
- package/dist/types/granularity.d.ts +3 -17
- package/dist/types/granularity.d.ts.map +1 -1
- package/dist/types/queryTime.d.ts +5 -5
- package/dist/types/queryTime.d.ts.map +1 -1
- package/dist/types/timeframes.d.ts +7 -7
- package/dist/types/timeframes.d.ts.map +1 -1
- package/dist/types/types/explore/common.d.ts +1 -1
- package/dist/types/types/explore/common.d.ts.map +1 -1
- package/dist/types/types/timeframe-options.d.ts +6 -7
- package/dist/types/types/timeframe-options.d.ts.map +1 -1
- package/dist/types/types/timeframe.d.ts +3 -4
- package/dist/types/types/timeframe.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +1487 -1420
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -312,8 +312,6 @@ export declare const apiUsageQuerySchema: {
|
|
|
312
312
|
};
|
|
313
313
|
readonly time_range: {
|
|
314
314
|
readonly type: "string";
|
|
315
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
316
|
-
readonly default: "1h";
|
|
317
315
|
};
|
|
318
316
|
};
|
|
319
317
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -444,8 +442,6 @@ export declare const basicQuerySchema: {
|
|
|
444
442
|
};
|
|
445
443
|
readonly time_range: {
|
|
446
444
|
readonly type: "string";
|
|
447
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
448
|
-
readonly default: "1h";
|
|
449
445
|
};
|
|
450
446
|
};
|
|
451
447
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -576,8 +572,6 @@ export declare const llmUsageSchema: {
|
|
|
576
572
|
};
|
|
577
573
|
readonly time_range: {
|
|
578
574
|
readonly type: "string";
|
|
579
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
580
|
-
readonly default: "1h";
|
|
581
575
|
};
|
|
582
576
|
};
|
|
583
577
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -708,8 +702,6 @@ export declare const mcpUsageSchema: {
|
|
|
708
702
|
};
|
|
709
703
|
readonly time_range: {
|
|
710
704
|
readonly type: "string";
|
|
711
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
712
|
-
readonly default: "1h";
|
|
713
705
|
};
|
|
714
706
|
};
|
|
715
707
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -841,8 +833,6 @@ export declare const validDashboardQuery: {
|
|
|
841
833
|
};
|
|
842
834
|
readonly time_range: {
|
|
843
835
|
readonly type: "string";
|
|
844
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
845
|
-
readonly default: "1h";
|
|
846
836
|
};
|
|
847
837
|
};
|
|
848
838
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -972,8 +962,6 @@ export declare const validDashboardQuery: {
|
|
|
972
962
|
};
|
|
973
963
|
readonly time_range: {
|
|
974
964
|
readonly type: "string";
|
|
975
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
976
|
-
readonly default: "1h";
|
|
977
965
|
};
|
|
978
966
|
};
|
|
979
967
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1103,8 +1091,6 @@ export declare const validDashboardQuery: {
|
|
|
1103
1091
|
};
|
|
1104
1092
|
readonly time_range: {
|
|
1105
1093
|
readonly type: "string";
|
|
1106
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
1107
|
-
readonly default: "1h";
|
|
1108
1094
|
};
|
|
1109
1095
|
};
|
|
1110
1096
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1234,8 +1220,6 @@ export declare const validDashboardQuery: {
|
|
|
1234
1220
|
};
|
|
1235
1221
|
readonly time_range: {
|
|
1236
1222
|
readonly type: "string";
|
|
1237
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
1238
|
-
readonly default: "1h";
|
|
1239
1223
|
};
|
|
1240
1224
|
};
|
|
1241
1225
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1372,8 +1356,6 @@ export declare const tileDefinitionSchema: {
|
|
|
1372
1356
|
};
|
|
1373
1357
|
readonly time_range: {
|
|
1374
1358
|
readonly type: "string";
|
|
1375
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
1376
|
-
readonly default: "1h";
|
|
1377
1359
|
};
|
|
1378
1360
|
};
|
|
1379
1361
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1503,8 +1485,6 @@ export declare const tileDefinitionSchema: {
|
|
|
1503
1485
|
};
|
|
1504
1486
|
readonly time_range: {
|
|
1505
1487
|
readonly type: "string";
|
|
1506
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
1507
|
-
readonly default: "1h";
|
|
1508
1488
|
};
|
|
1509
1489
|
};
|
|
1510
1490
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1634,8 +1614,6 @@ export declare const tileDefinitionSchema: {
|
|
|
1634
1614
|
};
|
|
1635
1615
|
readonly time_range: {
|
|
1636
1616
|
readonly type: "string";
|
|
1637
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
1638
|
-
readonly default: "1h";
|
|
1639
1617
|
};
|
|
1640
1618
|
};
|
|
1641
1619
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1765,8 +1743,6 @@ export declare const tileDefinitionSchema: {
|
|
|
1765
1743
|
};
|
|
1766
1744
|
readonly time_range: {
|
|
1767
1745
|
readonly type: "string";
|
|
1768
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
1769
|
-
readonly default: "1h";
|
|
1770
1746
|
};
|
|
1771
1747
|
};
|
|
1772
1748
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -2200,8 +2176,6 @@ export declare const tileConfigSchema: {
|
|
|
2200
2176
|
};
|
|
2201
2177
|
readonly time_range: {
|
|
2202
2178
|
readonly type: "string";
|
|
2203
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
2204
|
-
readonly default: "1h";
|
|
2205
2179
|
};
|
|
2206
2180
|
};
|
|
2207
2181
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -2331,8 +2305,6 @@ export declare const tileConfigSchema: {
|
|
|
2331
2305
|
};
|
|
2332
2306
|
readonly time_range: {
|
|
2333
2307
|
readonly type: "string";
|
|
2334
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
2335
|
-
readonly default: "1h";
|
|
2336
2308
|
};
|
|
2337
2309
|
};
|
|
2338
2310
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -2462,8 +2434,6 @@ export declare const tileConfigSchema: {
|
|
|
2462
2434
|
};
|
|
2463
2435
|
readonly time_range: {
|
|
2464
2436
|
readonly type: "string";
|
|
2465
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
2466
|
-
readonly default: "1h";
|
|
2467
2437
|
};
|
|
2468
2438
|
};
|
|
2469
2439
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -2593,8 +2563,6 @@ export declare const tileConfigSchema: {
|
|
|
2593
2563
|
};
|
|
2594
2564
|
readonly time_range: {
|
|
2595
2565
|
readonly type: "string";
|
|
2596
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
2597
|
-
readonly default: "1h";
|
|
2598
2566
|
};
|
|
2599
2567
|
};
|
|
2600
2568
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -3040,8 +3008,6 @@ export declare const dashboardConfigSchema: {
|
|
|
3040
3008
|
};
|
|
3041
3009
|
readonly time_range: {
|
|
3042
3010
|
readonly type: "string";
|
|
3043
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
3044
|
-
readonly default: "1h";
|
|
3045
3011
|
};
|
|
3046
3012
|
};
|
|
3047
3013
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -3171,8 +3137,6 @@ export declare const dashboardConfigSchema: {
|
|
|
3171
3137
|
};
|
|
3172
3138
|
readonly time_range: {
|
|
3173
3139
|
readonly type: "string";
|
|
3174
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
3175
|
-
readonly default: "1h";
|
|
3176
3140
|
};
|
|
3177
3141
|
};
|
|
3178
3142
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -3302,8 +3266,6 @@ export declare const dashboardConfigSchema: {
|
|
|
3302
3266
|
};
|
|
3303
3267
|
readonly time_range: {
|
|
3304
3268
|
readonly type: "string";
|
|
3305
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
3306
|
-
readonly default: "1h";
|
|
3307
3269
|
};
|
|
3308
3270
|
};
|
|
3309
3271
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -3433,8 +3395,6 @@ export declare const dashboardConfigSchema: {
|
|
|
3433
3395
|
};
|
|
3434
3396
|
readonly time_range: {
|
|
3435
3397
|
readonly type: "string";
|
|
3436
|
-
readonly enum: readonly ["15m", "1h", "6h", "12h", "24h", "7d", "current_week", "previous_week", "30d", "current_month", "previous_month"];
|
|
3437
|
-
readonly default: "1h";
|
|
3438
3398
|
};
|
|
3439
3399
|
};
|
|
3440
3400
|
readonly required: readonly ["type", "time_range"];
|
|
@@ -1 +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;
|
|
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;AAoB/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;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAA"}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
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
|
-
};
|
|
2
|
+
export declare const Granularities: Record<string, number>;
|
|
17
3
|
export declare function granularitiesToOptions(values: GranularityValues[], i18n: {
|
|
18
4
|
t: (v: string) => string;
|
|
19
5
|
}): {
|
|
@@ -22,6 +8,6 @@ export declare function granularitiesToOptions(values: GranularityValues[], i18n
|
|
|
22
8
|
}[];
|
|
23
9
|
export declare function granularityMsToQuery(granularity: number, origin: string): DruidGranularity;
|
|
24
10
|
export declare function msToGranularity(ms?: number): GranularityValues | null;
|
|
25
|
-
export declare function floorToNearestTimeGrain(date: Date, granularity:
|
|
26
|
-
export declare function ceilToNearestTimeGrain(date: Date, granularity:
|
|
11
|
+
export declare function floorToNearestTimeGrain(date: Date, granularity: string, tz?: string): Date;
|
|
12
|
+
export declare function ceilToNearestTimeGrain(date: Date, granularity: string, tz?: string): Date;
|
|
27
13
|
//# sourceMappingURL=granularity.d.ts.map
|
|
@@ -1 +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
|
|
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,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAchD,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,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAE1F;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAEzF"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { DruidGranularity,
|
|
1
|
+
import type { DruidGranularity, QueryTime } from './types';
|
|
2
2
|
import type { Timeframe } from './timeframes';
|
|
3
3
|
declare abstract class BaseQueryTime implements QueryTime {
|
|
4
4
|
protected readonly timeframe: Timeframe;
|
|
5
5
|
protected readonly tz?: string;
|
|
6
|
-
protected readonly dataGranularity:
|
|
7
|
-
constructor(timeframe: Timeframe, tz?: string, dataGranularity?:
|
|
6
|
+
protected readonly dataGranularity: string;
|
|
7
|
+
constructor(timeframe: Timeframe, tz?: string, dataGranularity?: string);
|
|
8
8
|
abstract startDate(): Date;
|
|
9
9
|
abstract endDate(): Date;
|
|
10
10
|
abstract granularityMs(): number;
|
|
11
|
-
protected calculateStartDate(isRelative: boolean, granularity:
|
|
11
|
+
protected calculateStartDate(isRelative: boolean, granularity: string, periods?: number): Date;
|
|
12
12
|
granularitySeconds(): number;
|
|
13
13
|
granularityDruid(): DruidGranularity;
|
|
14
14
|
startSeconds(): number;
|
|
@@ -18,7 +18,7 @@ declare abstract class BaseQueryTime implements QueryTime {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class TimeseriesQueryTime extends BaseQueryTime {
|
|
20
20
|
private readonly granularity;
|
|
21
|
-
constructor(timeframe: Timeframe, granularity?:
|
|
21
|
+
constructor(timeframe: Timeframe, granularity?: string, tz?: string, dataGranularity?: string, fineGrain?: boolean);
|
|
22
22
|
startDate(): Date;
|
|
23
23
|
endDate(): Date;
|
|
24
24
|
granularityMs(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryTime.d.ts","sourceRoot":"","sources":["../../src/queryTime.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"queryTime.d.ts","sourceRoot":"","sources":["../../src/queryTime.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,uBAAe,aAAc,YAAW,SAAS;IAC/C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IACvC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IAC9B,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;gBAE9B,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM;IAWvE,QAAQ,CAAC,SAAS,IAAI,IAAI;IAE1B,QAAQ,CAAC,OAAO,IAAI,IAAI;IAExB,QAAQ,CAAC,aAAa,IAAI,MAAM;IAEhC,SAAS,CAAC,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,SAAI;IAiBlF,kBAAkB,IAAI,MAAM;IAI5B,gBAAgB,IAAI,gBAAgB;IAKpC,YAAY,IAAI,MAAM;IAKtB,UAAU,IAAI,MAAM;IAKpB,OAAO,IAAI,MAAM;IAKjB,KAAK,IAAI,MAAM;CAGhB;AAGD,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAQ;gBAExB,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO;IAYlH,SAAS,IAAI,IAAI;IAIjB,OAAO,IAAI,IAAI;IAIf,aAAa,IAAI,MAAM;CAGxB;AAGD,qBAAa,cAAe,SAAQ,aAAa;IAC/C,SAAS,IAAI,IAAI;IAIjB,OAAO,IAAI,IAAI;IAIf,aAAa,IAAI,MAAM;CAGxB;AAKD,qBAAa,cAAe,SAAQ,cAAc;IAChD,SAAS,IAAI,IAAI;IAIjB,aAAa,IAAI,MAAM;CAOxB"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { DatePickerSelection, TimeframeOptions, TimePeriod,
|
|
1
|
+
import { TimeframeKeys } from './types';
|
|
2
|
+
import type { DatePickerSelection, TimeframeOptions, TimePeriod, TimeRangeV4 } from './types';
|
|
3
3
|
import type { ITimeframe } from './types/timeframe';
|
|
4
4
|
export declare class Timeframe implements ITimeframe {
|
|
5
5
|
readonly timeframeText: string;
|
|
6
|
-
readonly key:
|
|
6
|
+
readonly key: string;
|
|
7
7
|
readonly display: string;
|
|
8
8
|
readonly timeframeLength: () => number;
|
|
9
9
|
readonly allowedTiers: string[];
|
|
10
|
-
readonly defaultResponseGranularity:
|
|
11
|
-
readonly dataGranularity:
|
|
10
|
+
readonly defaultResponseGranularity: string;
|
|
11
|
+
readonly dataGranularity: string;
|
|
12
12
|
readonly isRelative: boolean;
|
|
13
|
-
readonly fineGrainedDefaultGranularity?:
|
|
13
|
+
readonly fineGrainedDefaultGranularity?: string;
|
|
14
14
|
private _startCustom?;
|
|
15
15
|
private _endCustom?;
|
|
16
16
|
private _allowedGranularitiesOverride?;
|
|
@@ -19,7 +19,7 @@ export declare class Timeframe implements ITimeframe {
|
|
|
19
19
|
rawStart(_tz?: string): Date;
|
|
20
20
|
timeframeLengthMs(): number;
|
|
21
21
|
maximumTimeframeLength(): number;
|
|
22
|
-
allowedGranularities(fineGrain?: boolean): Set<
|
|
22
|
+
allowedGranularities(fineGrain?: boolean): Set<string>;
|
|
23
23
|
cacheKey(): string;
|
|
24
24
|
v4Query(tz?: string): TimeRangeV4;
|
|
25
25
|
protected tzAdjustedDate(tz?: string): Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeframes.d.ts","sourceRoot":"","sources":["../../src/timeframes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeframes.d.ts","sourceRoot":"","sources":["../../src/timeframes.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,aAAa,EACd,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,WAAW,EAEZ,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,MAAM,CAAA;IAEpB,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,MAAM,CAAA;IAK3C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAOhC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAE5B,QAAQ,CAAC,6BAA6B,CAAC,EAAE,MAAM,CAAA;IAE/C,OAAO,CAAC,YAAY,CAAC,CAAM;IAE3B,OAAO,CAAC,UAAU,CAAC,CAAM;IAEzB,OAAO,CAAC,6BAA6B,CAAC,CAAU;gBAEpC,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;IAmBjC,SAAS,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;CAU5C;AA6KD,eAAO,MAAM,WAAW,wBAwTtB,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,CAyB1D,CAAA"}
|
|
@@ -21,7 +21,7 @@ export type RelativeTimeRangeValuesV4 = typeof relativeTimeRangeValuesV4[number]
|
|
|
21
21
|
export interface RelativeTimeRangeV4 {
|
|
22
22
|
type: 'relative';
|
|
23
23
|
tz?: string;
|
|
24
|
-
time_range:
|
|
24
|
+
time_range: string;
|
|
25
25
|
}
|
|
26
26
|
export type TimeRangeV4 = AbsoluteTimeRangeV4 | RelativeTimeRangeV4;
|
|
27
27
|
export interface TimeRangeMetaResponse {
|
|
@@ -1 +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,U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AAM,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"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type { GranularityValues, RelativeTimeRangeValuesV4 } from './explore';
|
|
2
1
|
export interface TimeframeOptions {
|
|
3
|
-
key:
|
|
2
|
+
key: string;
|
|
4
3
|
timeframeText: string;
|
|
5
4
|
display: string;
|
|
6
|
-
defaultResponseGranularity:
|
|
7
|
-
dataGranularity:
|
|
5
|
+
defaultResponseGranularity: string;
|
|
6
|
+
dataGranularity: string;
|
|
8
7
|
isRelative: boolean;
|
|
9
8
|
timeframeLength: () => number;
|
|
10
9
|
allowedTiers: string[];
|
|
11
10
|
startCustom?: Date;
|
|
12
11
|
endCustom?: Date;
|
|
13
|
-
allowedGranularitiesOverride?:
|
|
14
|
-
fineGrainedDefaultGranularity?:
|
|
12
|
+
allowedGranularitiesOverride?: string[];
|
|
13
|
+
fineGrainedDefaultGranularity?: string;
|
|
15
14
|
}
|
|
16
|
-
export declare const extendedRelativeTimeRangeValues: readonly ["90d", "180d", "365d", "current_year", "previous_year"];
|
|
15
|
+
export declare const extendedRelativeTimeRangeValues: readonly ["90d", "180d", "365d", "current_quarter", "previous_quarter", "current_year", "previous_year"];
|
|
17
16
|
export type ExtendedRelativeTimeRangeValues = typeof extendedRelativeTimeRangeValues[number];
|
|
18
17
|
//# sourceMappingURL=timeframe-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeframe-options.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe-options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeframe-options.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe-options.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,0BAA0B,EAAE,MAAM,CAAA;IAClC,eAAe,EAAE,MAAM,CAAA;IACvB,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,MAAM,EAAE,CAAA;IACvC,6BAA6B,CAAC,EAAE,MAAM,CAAA;CACvC;AAGD,eAAO,MAAM,+BAA+B,0GAQlC,CAAA;AACV,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import type { GranularityValues } from '.';
|
|
2
1
|
export interface ITimeframe {
|
|
3
2
|
readonly timeframeText: string;
|
|
4
3
|
readonly key: string;
|
|
5
4
|
readonly display: string;
|
|
6
5
|
readonly timeframeLength: () => number;
|
|
7
6
|
readonly allowedTiers: string[];
|
|
8
|
-
readonly defaultResponseGranularity:
|
|
9
|
-
readonly dataGranularity:
|
|
7
|
+
readonly defaultResponseGranularity: string;
|
|
8
|
+
readonly dataGranularity: string;
|
|
10
9
|
readonly isRelative: boolean;
|
|
11
10
|
rawEnd(_tz?: string): Date;
|
|
12
11
|
rawStart(_tz?: string): Date;
|
|
13
12
|
timeframeLengthMs(): number;
|
|
14
13
|
maximumTimeframeLength(): number;
|
|
15
|
-
allowedGranularities(fineGrain?: boolean): Set<
|
|
14
|
+
allowedGranularities(fineGrain?: boolean): Set<string>;
|
|
16
15
|
}
|
|
17
16
|
//# sourceMappingURL=timeframe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../src/types/timeframe.ts"],"names":[],"mappings":"AAAA,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,MAAM,CAAA;IAC3C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,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,MAAM,CAAC,CAAA;CACvD"}
|