@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/api-services",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm run gen:api && npm version patch && (npm run build:types || true) && (npm run format:all || true) && npm run publish-lib",
@@ -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 ({ itemId: id }) => {
146
+ const deleteAuditForm = async ({ id }) => {
143
147
  try {
144
148
  const response = await getAuditFormService().deleteAuditForm(id);
145
149
  return applyTransform(response.data, []);
@@ -21,7 +21,7 @@ export declare const AuditFormsAPI: {
21
21
  changes: any;
22
22
  id: any;
23
23
  }) => Promise<any>;
24
- delete: ({ itemId: id }: {
25
- itemId: any;
24
+ delete: ({ id }: {
25
+ id: any;
26
26
  }) => Promise<any>;
27
27
  };