@bluecopa/core 0.1.21 → 0.1.22
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/api/form/createOrUpdateForm.d.ts +4 -1
- package/dist/index.es.js +3 -7
- package/dist/index.es.js.map +1 -1
- package/dist/utils/inputTable/inputTableDefinition.d.ts +1 -1
- package/dist/utils/metric/analysisMethods.d.ts +35 -8
- package/dist/utils/metric/filterUtils.d.ts +1 -1
- package/dist/utils/metric/getMetricDefinition.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,9 @@ export interface CreateOrUpdateFormRequest {
|
|
|
4
4
|
}
|
|
5
5
|
export interface CreateOrUpdateFormResponse {
|
|
6
6
|
data: Form;
|
|
7
|
+
processSheetId: string;
|
|
8
|
+
isDummy: boolean;
|
|
9
|
+
formInstanceId: string;
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
12
|
* Creates or updates a form
|
|
@@ -12,4 +15,4 @@ export interface CreateOrUpdateFormResponse {
|
|
|
12
15
|
* @returns Promise<Form> The created or updated form
|
|
13
16
|
* @throws Error if the request fails
|
|
14
17
|
*/
|
|
15
|
-
export declare function createOrUpdateForm(
|
|
18
|
+
export declare function createOrUpdateForm(payload: CreateOrUpdateFormRequest): Promise<Form>;
|
package/dist/index.es.js
CHANGED
|
@@ -6697,17 +6697,13 @@ async function getFormById({
|
|
|
6697
6697
|
throw { message, status };
|
|
6698
6698
|
}
|
|
6699
6699
|
}
|
|
6700
|
-
async function createOrUpdateForm({
|
|
6701
|
-
data
|
|
6702
|
-
}) {
|
|
6700
|
+
async function createOrUpdateForm(payload) {
|
|
6703
6701
|
var _a, _b, _c;
|
|
6704
6702
|
try {
|
|
6705
|
-
if (!data) {
|
|
6703
|
+
if (!payload.data) {
|
|
6706
6704
|
throw { message: "Form data is required", status: 400 };
|
|
6707
6705
|
}
|
|
6708
|
-
const response = await apiClient.post("/form/create-or-update-form",
|
|
6709
|
-
data
|
|
6710
|
-
});
|
|
6706
|
+
const response = await apiClient.post("/form/create-or-update-form", payload);
|
|
6711
6707
|
if (!response.data || !response.data.data) {
|
|
6712
6708
|
throw { message: "Failed to create or update form", status: 500 };
|
|
6713
6709
|
}
|