@webitel/api-services 0.0.109 → 0.0.111
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/package.json
CHANGED
|
@@ -56,6 +56,10 @@ const getAuditFormsList = async (params) => {
|
|
|
56
56
|
(params) => ({ ...params, q: params?.q || params?.search }),
|
|
57
57
|
starToSearch('q'),
|
|
58
58
|
starToSearch('question'),
|
|
59
|
+
(params) => ({
|
|
60
|
+
...params,
|
|
61
|
+
fields: ['id', 'editable', ...(params?.fields || [])],
|
|
62
|
+
}),
|
|
59
63
|
sanitize(fieldsToSend),
|
|
60
64
|
camelToSnake(),
|
|
61
65
|
]);
|
|
@@ -139,7 +143,7 @@ const patchAuditForm = async ({ changes, id }) => {
|
|
|
139
143
|
}
|
|
140
144
|
};
|
|
141
145
|
|
|
142
|
-
const deleteAuditForm = async ({
|
|
146
|
+
const deleteAuditForm = async ({ id }) => {
|
|
143
147
|
try {
|
|
144
148
|
const response = await getAuditFormService().deleteAuditForm(id);
|
|
145
149
|
return applyTransform(response.data, []);
|