@forestadmin/forestadmin-client 1.38.3 → 1.39.0
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.d.ts +5 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ export interface ForestSchemaField {
|
|
|
160
160
|
defaultValue?: unknown;
|
|
161
161
|
isPrimaryKey: boolean;
|
|
162
162
|
relationship?: 'HasMany' | 'BelongsToMany' | 'BelongsTo' | 'HasOne' | null;
|
|
163
|
+
polymorphicReferencedModels?: string[];
|
|
163
164
|
}
|
|
164
165
|
/**
|
|
165
166
|
* Schema action definition from Forest Admin.
|
|
@@ -174,6 +175,10 @@ export interface ForestSchemaAction {
|
|
|
174
175
|
download: boolean;
|
|
175
176
|
fields: {
|
|
176
177
|
field: string;
|
|
178
|
+
type: string;
|
|
179
|
+
isRequired?: boolean;
|
|
180
|
+
defaultValue?: unknown;
|
|
181
|
+
label?: string;
|
|
177
182
|
}[];
|
|
178
183
|
hooks: {
|
|
179
184
|
load: boolean;
|