identity-admin 1.25.13 → 1.25.14
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.
|
@@ -75,7 +75,8 @@ class SchemaGenerator {
|
|
|
75
75
|
return [model, populatedString];
|
|
76
76
|
}
|
|
77
77
|
static setNestedSchema(paths, modelName, model, field, populatedString, resource) {
|
|
78
|
-
var
|
|
78
|
+
var _a, _b;
|
|
79
|
+
var nestedSchema = (_b = (_a = model[field]) === null || _a === void 0 ? void 0 : _a.schema) !== null && _b !== void 0 ? _b : {};
|
|
79
80
|
var nestedSchemaKeys = [];
|
|
80
81
|
const nestedModelodelAndPopulatedString = this.generateSchema(paths, nestedSchema, modelName, resource);
|
|
81
82
|
model[field].schema = nestedModelodelAndPopulatedString[0];
|
|
@@ -266,6 +266,18 @@ export interface IFieldValue {
|
|
|
266
266
|
* @default undefined
|
|
267
267
|
*/
|
|
268
268
|
isClickable?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Specify the keys that will be shown in the nested schema. Only used when the type is nested schema
|
|
271
|
+
* @default undefined
|
|
272
|
+
*/
|
|
273
|
+
keys?: string[];
|
|
274
|
+
/**
|
|
275
|
+
* Specify the nested schema. Only used if the type is nested schema.
|
|
276
|
+
* @default undefined
|
|
277
|
+
*/
|
|
278
|
+
schema?: IModel | {
|
|
279
|
+
[key: string]: IFieldValue;
|
|
280
|
+
};
|
|
269
281
|
}
|
|
270
282
|
export interface IVirtualValue {
|
|
271
283
|
/**
|