@zauru-sdk/hooks 2.0.108 → 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.
- package/dist/catalogs.d.ts +1 -1
- package/dist/esm/catalogs.js +5 -2
- package/package.json +5 -5
package/dist/catalogs.d.ts
CHANGED
|
@@ -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: (
|
|
165
|
+
export declare const useGetInvoiceFormSubmissionsByInvoiceId: (config?: ReduxParamsConfig) => {
|
|
166
166
|
loading: boolean;
|
|
167
167
|
data: SubmissionInvoicesGraphQL[];
|
|
168
168
|
};
|
package/dist/esm/catalogs.js
CHANGED
|
@@ -296,9 +296,12 @@ const useGetMyCaseFormSubmissions = (config) => {
|
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
298
|
exports.useGetMyCaseFormSubmissions = useGetMyCaseFormSubmissions;
|
|
299
|
-
const useGetInvoiceFormSubmissionsByInvoiceId = (
|
|
299
|
+
const useGetInvoiceFormSubmissionsByInvoiceId = (config) => {
|
|
300
|
+
const invoiceId = config?.otherParams?.invoiceId;
|
|
301
|
+
const withFiles = config?.otherParams?.withFiles;
|
|
300
302
|
const data = useApiCatalog("invoiceFormSubmissionsByInvoiceId", {
|
|
301
|
-
|
|
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.
|
|
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",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@remix-run/react": "^2.8.1",
|
|
29
|
-
"@zauru-sdk/common": "^2.0.
|
|
29
|
+
"@zauru-sdk/common": "^2.0.109",
|
|
30
30
|
"@zauru-sdk/icons": "^2.0.99",
|
|
31
|
-
"@zauru-sdk/redux": "^2.0.
|
|
32
|
-
"@zauru-sdk/types": "^2.0.
|
|
31
|
+
"@zauru-sdk/redux": "^2.0.109",
|
|
32
|
+
"@zauru-sdk/types": "^2.0.109",
|
|
33
33
|
"react": "^18.2.0",
|
|
34
34
|
"react-dom": "^18.2.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "d62b6a5c42658f4e9e3fb95822535cb6b8017157"
|
|
37
37
|
}
|