forked from github/quartz
feat(bases): migrate from vault to upstream
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
36
quartz/util/base/compiler/schema.ts
Normal file
36
quartz/util/base/compiler/schema.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
export const BUILTIN_SUMMARY_TYPES = [
|
||||
"count",
|
||||
"sum",
|
||||
"average",
|
||||
"avg",
|
||||
"min",
|
||||
"max",
|
||||
"range",
|
||||
"unique",
|
||||
"filled",
|
||||
"missing",
|
||||
"median",
|
||||
"stddev",
|
||||
"checked",
|
||||
"unchecked",
|
||||
"empty",
|
||||
"earliest",
|
||||
"latest",
|
||||
] as const
|
||||
|
||||
export type BuiltinSummaryType = (typeof BUILTIN_SUMMARY_TYPES)[number]
|
||||
|
||||
export interface SummaryDefinition {
|
||||
type: "builtin" | "formula"
|
||||
builtinType?: BuiltinSummaryType
|
||||
formulaRef?: string
|
||||
expression?: string
|
||||
}
|
||||
|
||||
export interface ViewSummaryConfig {
|
||||
columns: Record<string, SummaryDefinition>
|
||||
}
|
||||
|
||||
export interface PropertyConfig {
|
||||
displayName?: string
|
||||
}
|
||||
Reference in New Issue
Block a user