@budibase/types 2.32.8 → 2.32.10
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.
|
@@ -29,13 +29,18 @@ export interface View {
|
|
|
29
29
|
meta?: ViewTemplateOpts;
|
|
30
30
|
groupBy?: string;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export interface BasicViewFieldMetadata extends UIFieldMetadata {
|
|
33
33
|
readonly?: boolean;
|
|
34
34
|
columns?: Record<string, RelationSchemaField>;
|
|
35
|
-
}
|
|
36
|
-
export
|
|
35
|
+
}
|
|
36
|
+
export interface RelationSchemaField extends UIFieldMetadata {
|
|
37
37
|
readonly?: boolean;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
export interface ViewCalculationFieldMetadata extends BasicViewFieldMetadata {
|
|
40
|
+
calculationType: CalculationType;
|
|
41
|
+
field: string;
|
|
42
|
+
}
|
|
43
|
+
export type ViewFieldMetadata = BasicViewFieldMetadata | ViewCalculationFieldMetadata;
|
|
39
44
|
export declare enum CalculationType {
|
|
40
45
|
SUM = "sum",
|
|
41
46
|
AVG = "avg",
|
|
@@ -43,10 +48,6 @@ export declare enum CalculationType {
|
|
|
43
48
|
MIN = "min",
|
|
44
49
|
MAX = "max"
|
|
45
50
|
}
|
|
46
|
-
export type ViewCalculationFieldMetadata = ViewFieldMetadata & {
|
|
47
|
-
calculationType: CalculationType;
|
|
48
|
-
field: string;
|
|
49
|
-
};
|
|
50
51
|
export interface ViewV2 {
|
|
51
52
|
version: 2;
|
|
52
53
|
id: string;
|
|
@@ -59,7 +60,7 @@ export interface ViewV2 {
|
|
|
59
60
|
order?: SortOrder;
|
|
60
61
|
type?: SortType;
|
|
61
62
|
};
|
|
62
|
-
schema?: Record<string, ViewFieldMetadata
|
|
63
|
+
schema?: Record<string, ViewFieldMetadata>;
|
|
63
64
|
}
|
|
64
65
|
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema;
|
|
65
66
|
export interface ViewCountOrSumSchema {
|