@zauru-sdk/hooks 2.0.109 → 2.0.116

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.
@@ -162,7 +162,7 @@ export declare const useGetMyCaseFormSubmissions: (config?: ReduxParamsConfig) =
162
162
  loading: boolean;
163
163
  data: SubmissionCasesGraphQL[];
164
164
  };
165
- export declare const useGetInvoiceFormSubmissionsByInvoiceId: (invoice_id: number | string) => {
165
+ export declare const useGetInvoiceFormSubmissionsByInvoiceId: (config?: ReduxParamsConfig) => {
166
166
  loading: boolean;
167
167
  data: SubmissionInvoicesGraphQL[];
168
168
  };
@@ -296,9 +296,12 @@ const useGetMyCaseFormSubmissions = (config) => {
296
296
  };
297
297
  };
298
298
  exports.useGetMyCaseFormSubmissions = useGetMyCaseFormSubmissions;
299
- const useGetInvoiceFormSubmissionsByInvoiceId = (invoice_id) => {
299
+ const useGetInvoiceFormSubmissionsByInvoiceId = (config) => {
300
+ const invoiceId = config?.otherParams?.invoiceId;
301
+ const withFiles = config?.otherParams?.withFiles;
300
302
  const data = useApiCatalog("invoiceFormSubmissionsByInvoiceId", {
301
- invoice_id: `${invoice_id}`,
303
+ invoiceId: `${invoiceId}`,
304
+ withFiles: `${withFiles}`,
302
305
  });
303
306
  // Filtrar los registros para obtener sólo los de la versión más alta.
304
307
  const groupedByVersion = (data.data || []).reduce((acc, record) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/hooks",
3
- "version": "2.0.109",
3
+ "version": "2.0.116",
4
4
  "description": "Hooks reutilizables dentro de las webapps de Zauru.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -33,5 +33,5 @@
33
33
  "react": "^18.2.0",
34
34
  "react-dom": "^18.2.0"
35
35
  },
36
- "gitHead": "28c068f92c6bc6cec5fac9543b35ebb7e277cb46"
36
+ "gitHead": "d62b6a5c42658f4e9e3fb95822535cb6b8017157"
37
37
  }