@headless-adminapp/app 1.1.2 → 1.1.5
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Id } from '@headless-adminapp/core';
|
|
1
2
|
import { Form } from '@headless-adminapp/core/experience/form';
|
|
2
3
|
import { InferredSchemaType, Schema, SchemaAttributes } from '@headless-adminapp/core/schema';
|
|
3
4
|
import { ISchemaStore } from '@headless-adminapp/core/store';
|
|
@@ -6,7 +7,7 @@ import { Nullable } from '@headless-adminapp/core/types';
|
|
|
6
7
|
export declare function getModifiedValues(initialValues: any, values: any, exclude?: string[]): Record<string, any>;
|
|
7
8
|
export type SaveRecordResult = {
|
|
8
9
|
success: true;
|
|
9
|
-
recordId:
|
|
10
|
+
recordId: Id;
|
|
10
11
|
} | {
|
|
11
12
|
success: false;
|
|
12
13
|
title?: string;
|
|
@@ -81,7 +81,7 @@ async function createRecord({ values, form, schema, dataService, }) {
|
|
|
81
81
|
const controls = (0, utils_1.getControls)(form);
|
|
82
82
|
const editableGridControls = controls.filter((control) => control.type === 'editablegrid');
|
|
83
83
|
const result = await dataService.createRecord(schema.logicalName, values);
|
|
84
|
-
const recordId = result
|
|
84
|
+
const recordId = result.id;
|
|
85
85
|
for (const control of editableGridControls) {
|
|
86
86
|
const gridRows = values[control.attributeName];
|
|
87
87
|
for (const row of gridRows) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/app",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"uuid": "11.0.3",
|
|
37
37
|
"yup": "^1.4.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "76976de5e79eb752b80bb090de8228392851f0cc"
|
|
40
40
|
}
|