@budibase/types 2.32.10 → 2.32.11
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.
|
@@ -118,6 +118,7 @@ export interface OptionsFieldMetadata extends BaseFieldSchema {
|
|
|
118
118
|
constraints: FieldConstraints & {
|
|
119
119
|
inclusion: string[];
|
|
120
120
|
};
|
|
121
|
+
default?: string;
|
|
121
122
|
}
|
|
122
123
|
export interface ArrayFieldMetadata extends BaseFieldSchema {
|
|
123
124
|
type: FieldType.ARRAY;
|
|
@@ -125,6 +126,7 @@ export interface ArrayFieldMetadata extends BaseFieldSchema {
|
|
|
125
126
|
type: JsonFieldSubType.ARRAY;
|
|
126
127
|
inclusion: string[];
|
|
127
128
|
};
|
|
129
|
+
default?: string[];
|
|
128
130
|
}
|
|
129
131
|
interface BaseFieldSchema extends UIFieldMetadata {
|
|
130
132
|
type: FieldType;
|
|
@@ -60,8 +60,9 @@ export interface ViewV2 {
|
|
|
60
60
|
order?: SortOrder;
|
|
61
61
|
type?: SortType;
|
|
62
62
|
};
|
|
63
|
-
schema?:
|
|
63
|
+
schema?: ViewV2Schema;
|
|
64
64
|
}
|
|
65
|
+
export type ViewV2Schema = Record<string, ViewFieldMetadata>;
|
|
65
66
|
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema;
|
|
66
67
|
export interface ViewCountOrSumSchema {
|
|
67
68
|
field: string;
|