@keen.io/query
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,4 +6,12 @@ # Change Log | ||
## [1.0.2](https://github.com/keen/keen/compare/@keen.io/query@1.0.1...@keen.io/query@1.0.2) (2021-01-29) | ||
**Note:** Version bump only for package @keen.io/query | ||
## 1.0.1 (2020-12-14) | ||
**Note:** Version bump only for package @keen.io/query |
@@ -1,4 +0,4 @@ | ||
import { Query, OrderBy, OrderByProperty, Step, Direction, Intervals, Analysis } from './types'; | ||
import { Query, OrderBy, OrderByProperty, Step, Direction, Intervals, Timeframe, Analysis } from './types'; | ||
import { isCustomInterval } from './utils'; | ||
export { Query, OrderBy, Step, OrderByProperty, Direction, Intervals, Analysis, }; | ||
export { Query, OrderBy, Step, OrderByProperty, Direction, Intervals, Timeframe, Analysis, }; | ||
export { isCustomInterval }; |
export declare type Analysis = 'sum' | 'average' | 'count' | 'count_unique' | 'maximum' | 'minimum' | 'median' | 'percentile' | 'standard_deviation' | 'funnel' | 'extraction' | 'select_unique'; | ||
export declare type Intervals = 'minutely' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly'; | ||
export declare type Direction = 'ASC' | 'DESC'; | ||
export declare type Timeframe = { | ||
start: string; | ||
end: string; | ||
} | string; | ||
export declare type OrderByProperty = { | ||
propertyName: string; | ||
property_name: string; | ||
direction: Direction; | ||
@@ -10,14 +14,12 @@ }; | ||
export declare type Step = { | ||
with_actors: boolean; | ||
actor_property: string; | ||
event_collection: string; | ||
timeframe: { | ||
start: string; | ||
end: string; | ||
}; | ||
optional: boolean; | ||
inverted: boolean; | ||
timeframe: Timeframe; | ||
with_actors?: boolean; | ||
optional?: boolean; | ||
inverted?: boolean; | ||
}; | ||
export declare type Query = { | ||
analysis_type: Analysis; | ||
timeframe: Timeframe; | ||
event_collection: string; | ||
@@ -28,5 +30,5 @@ interval?: string | Intervals; | ||
limit?: number; | ||
order_by: OrderBy; | ||
order_by?: OrderBy; | ||
property_names?: string[]; | ||
steps?: Step[]; | ||
}; |
{ | ||
"name": "@keen.io/query", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Keen Query utilities", | ||
@@ -32,3 +32,3 @@ "author": "Keen.IO <team@keen.io> (https://keen.io/)", | ||
}, | ||
"gitHead": "6778741855e5146993fc69fd3fcffde1bf908a9d" | ||
"gitHead": "9447afaa5762a00bd25d8ad0a14820443c98666f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4439
50