@erpp/react-api-cronos-frontend 1.0.11 → 1.0.13
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/index.d.mts +121 -1
- package/dist/index.d.ts +121 -1
- package/dist/index.js +95 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -169,6 +169,14 @@ var setupCatAccionApi = ({ client }) => {
|
|
|
169
169
|
return api;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
+
// src/components/apis/setupCatColorApi.ts
|
|
173
|
+
var setupCatColorApi = ({ client }) => {
|
|
174
|
+
const api = client.subpath("/cat_color", (sub, axios3) => ({
|
|
175
|
+
// Agregar métodos personalizados aquí
|
|
176
|
+
}));
|
|
177
|
+
return api;
|
|
178
|
+
};
|
|
179
|
+
|
|
172
180
|
// src/components/apis/setupCatColorGrupoApi.ts
|
|
173
181
|
var setupCatColorGrupoApi = ({ client }) => {
|
|
174
182
|
const api = client.subpath("/cat_color_grupo", (sub, axios3) => ({
|
|
@@ -664,6 +672,7 @@ var APIFactory = class {
|
|
|
664
672
|
this.AdeudosPorPlazaResumen = setupAdeudosPorPlazaResumenApi({ client });
|
|
665
673
|
this.AdeudoTipoSueloResumenMensual = setupAdeudoTipoSueloResumenMensualApi({ client });
|
|
666
674
|
this.cat_accion = setupCatAccionApi({ client });
|
|
675
|
+
this.cat_color = setupCatColorApi({ client });
|
|
667
676
|
this.cat_color_grupo = setupCatColorGrupoApi({ client });
|
|
668
677
|
this.cat_concepto_pago = setupCatConceptoPagoApi({ client });
|
|
669
678
|
this.cat_entidad = setupCatEntidadApi({ client });
|
|
@@ -1458,6 +1467,71 @@ var {
|
|
|
1458
1467
|
} = createAPICatAccion();
|
|
1459
1468
|
var useCatAccionAPI_default = createAPICatAccion;
|
|
1460
1469
|
|
|
1470
|
+
// src/infrastructure/api/clients/CatColorAPI.ts
|
|
1471
|
+
var CatColorAPI = class extends APIClientBase {
|
|
1472
|
+
constructor() {
|
|
1473
|
+
super({
|
|
1474
|
+
endpoint: "cat_color"
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
//* Métodos específicos aquí para el api cliente de CatColor
|
|
1478
|
+
};
|
|
1479
|
+
var CatColorAPI_default = CatColorAPI;
|
|
1480
|
+
|
|
1481
|
+
// src/infrastructure/api/hooks/custom/CatColorHooksCustom.ts
|
|
1482
|
+
var catColorHooksCustom = (catColorClient) => {
|
|
1483
|
+
return {
|
|
1484
|
+
/*
|
|
1485
|
+
ejemplo: () => {
|
|
1486
|
+
const [data, setData] = useState<CatColorDTO | null>(null);
|
|
1487
|
+
const [error, setError] = useState<Error | null>(null);
|
|
1488
|
+
|
|
1489
|
+
const [isFetching, setIsFetching] = useState(false);
|
|
1490
|
+
|
|
1491
|
+
const fetchData = useCallback(async () => {
|
|
1492
|
+
setIsFetching(true);
|
|
1493
|
+
try {
|
|
1494
|
+
const result = await catColorClient.getById({ id: 'example-id' });
|
|
1495
|
+
setData(result);
|
|
1496
|
+
setError(null);
|
|
1497
|
+
} catch (err: any) {
|
|
1498
|
+
setError(err);
|
|
1499
|
+
console.error("Error fetching catColor by ID:", err);
|
|
1500
|
+
} finally {
|
|
1501
|
+
setIsFetching(false);
|
|
1502
|
+
}
|
|
1503
|
+
}, []);
|
|
1504
|
+
|
|
1505
|
+
return {
|
|
1506
|
+
data,
|
|
1507
|
+
error,
|
|
1508
|
+
isFetching,
|
|
1509
|
+
fetchData,
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
*/
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1515
|
+
var CatColorHooksCustom_default = catColorHooksCustom;
|
|
1516
|
+
|
|
1517
|
+
// src/infrastructure/api/hooks/composed/useCatColorAPI.ts
|
|
1518
|
+
var createAPICatColor = () => {
|
|
1519
|
+
const client = new CatColorAPI_default();
|
|
1520
|
+
const defaultHooks = apiHooks(client);
|
|
1521
|
+
const extensionHooks = CatColorHooksCustom_default(client);
|
|
1522
|
+
const mergedHooks = __spreadValues(__spreadValues({}, defaultHooks), extensionHooks);
|
|
1523
|
+
return mergedHooks;
|
|
1524
|
+
};
|
|
1525
|
+
var {
|
|
1526
|
+
useFetchById: useFetchByIdCatColor,
|
|
1527
|
+
useFetchList: useFetchListCatColor,
|
|
1528
|
+
useCreate: useCreateCatColor,
|
|
1529
|
+
useUpdate: useUpdateCatColor,
|
|
1530
|
+
useDelete: useDeleteCatColor,
|
|
1531
|
+
useFilterMatch: useFilterMatchCatColor
|
|
1532
|
+
} = createAPICatColor();
|
|
1533
|
+
var useCatColorAPI_default = createAPICatColor;
|
|
1534
|
+
|
|
1461
1535
|
// src/infrastructure/api/clients/CatColorGrupoAPI.ts
|
|
1462
1536
|
var CatColorGrupoAPI = class extends APIClientBase {
|
|
1463
1537
|
constructor() {
|
|
@@ -5408,6 +5482,13 @@ var useCreateCatAccion2 = createAPICatAccionObj.useCreate;
|
|
|
5408
5482
|
var useUpdateCatAccion2 = createAPICatAccionObj.useUpdate;
|
|
5409
5483
|
var useDeleteCatAccion2 = createAPICatAccionObj.useDelete;
|
|
5410
5484
|
var useFilterMatchCatAccion2 = createAPICatAccionObj.useFilterMatch;
|
|
5485
|
+
var createAPICatColorObj = useCatColorAPI_default();
|
|
5486
|
+
var useFetchByIdCatColor2 = createAPICatColorObj.useFetchById;
|
|
5487
|
+
var useFetchListCatColor2 = createAPICatColorObj.useFetchList;
|
|
5488
|
+
var useCreateCatColor2 = createAPICatColorObj.useCreate;
|
|
5489
|
+
var useUpdateCatColor2 = createAPICatColorObj.useUpdate;
|
|
5490
|
+
var useDeleteCatColor2 = createAPICatColorObj.useDelete;
|
|
5491
|
+
var useFilterMatchCatColor2 = createAPICatColorObj.useFilterMatch;
|
|
5411
5492
|
var createAPICatColorGrupoObj = useCatColorGrupoAPI_default();
|
|
5412
5493
|
var useFetchByIdCatColorGrupo2 = createAPICatColorGrupoObj.useFetchById;
|
|
5413
5494
|
var useFetchListCatColorGrupo2 = createAPICatColorGrupoObj.useFetchList;
|
|
@@ -5838,6 +5919,7 @@ export {
|
|
|
5838
5919
|
useAdeudoTipoSueloResumenMensualAPI_default as createAPIAdeudoTipoSueloResumenMensual,
|
|
5839
5920
|
useAdeudosPorPlazaResumenAPI_default as createAPIAdeudosPorPlazaResumen,
|
|
5840
5921
|
useCatAccionAPI_default as createAPICatAccion,
|
|
5922
|
+
useCatColorAPI_default as createAPICatColor,
|
|
5841
5923
|
useCatColorGrupoAPI_default as createAPICatColorGrupo,
|
|
5842
5924
|
useCatConceptoPagoAPI_default as createAPICatConceptoPago,
|
|
5843
5925
|
useCatEntidadAPI_default as createAPICatEntidad,
|
|
@@ -5905,6 +5987,7 @@ export {
|
|
|
5905
5987
|
useCreateAdeudoTipoSueloResumenMensual2 as useCreateAdeudoTipoSueloResumenMensual,
|
|
5906
5988
|
useCreateAdeudosPorPlazaResumen2 as useCreateAdeudosPorPlazaResumen,
|
|
5907
5989
|
useCreateCatAccion2 as useCreateCatAccion,
|
|
5990
|
+
useCreateCatColor2 as useCreateCatColor,
|
|
5908
5991
|
useCreateCatColorGrupo2 as useCreateCatColorGrupo,
|
|
5909
5992
|
useCreateCatConceptoPago2 as useCreateCatConceptoPago,
|
|
5910
5993
|
useCreateCatEntidad2 as useCreateCatEntidad,
|
|
@@ -5972,6 +6055,7 @@ export {
|
|
|
5972
6055
|
useDeleteAdeudoTipoSueloResumenMensual2 as useDeleteAdeudoTipoSueloResumenMensual,
|
|
5973
6056
|
useDeleteAdeudosPorPlazaResumen2 as useDeleteAdeudosPorPlazaResumen,
|
|
5974
6057
|
useDeleteCatAccion2 as useDeleteCatAccion,
|
|
6058
|
+
useDeleteCatColor2 as useDeleteCatColor,
|
|
5975
6059
|
useDeleteCatColorGrupo2 as useDeleteCatColorGrupo,
|
|
5976
6060
|
useDeleteCatConceptoPago2 as useDeleteCatConceptoPago,
|
|
5977
6061
|
useDeleteCatEntidad2 as useDeleteCatEntidad,
|
|
@@ -6039,6 +6123,7 @@ export {
|
|
|
6039
6123
|
useFetchByIdAdeudoTipoSueloResumenMensual2 as useFetchByIdAdeudoTipoSueloResumenMensual,
|
|
6040
6124
|
useFetchByIdAdeudosPorPlazaResumen2 as useFetchByIdAdeudosPorPlazaResumen,
|
|
6041
6125
|
useFetchByIdCatAccion2 as useFetchByIdCatAccion,
|
|
6126
|
+
useFetchByIdCatColor2 as useFetchByIdCatColor,
|
|
6042
6127
|
useFetchByIdCatColorGrupo2 as useFetchByIdCatColorGrupo,
|
|
6043
6128
|
useFetchByIdCatConceptoPago2 as useFetchByIdCatConceptoPago,
|
|
6044
6129
|
useFetchByIdCatEntidad2 as useFetchByIdCatEntidad,
|
|
@@ -6106,6 +6191,7 @@ export {
|
|
|
6106
6191
|
useFetchListAdeudoTipoSueloResumenMensual2 as useFetchListAdeudoTipoSueloResumenMensual,
|
|
6107
6192
|
useFetchListAdeudosPorPlazaResumen2 as useFetchListAdeudosPorPlazaResumen,
|
|
6108
6193
|
useFetchListCatAccion2 as useFetchListCatAccion,
|
|
6194
|
+
useFetchListCatColor2 as useFetchListCatColor,
|
|
6109
6195
|
useFetchListCatColorGrupo2 as useFetchListCatColorGrupo,
|
|
6110
6196
|
useFetchListCatConceptoPago2 as useFetchListCatConceptoPago,
|
|
6111
6197
|
useFetchListCatEntidad2 as useFetchListCatEntidad,
|
|
@@ -6173,6 +6259,7 @@ export {
|
|
|
6173
6259
|
useFilterMatchAdeudoTipoSueloResumenMensual2 as useFilterMatchAdeudoTipoSueloResumenMensual,
|
|
6174
6260
|
useFilterMatchAdeudosPorPlazaResumen2 as useFilterMatchAdeudosPorPlazaResumen,
|
|
6175
6261
|
useFilterMatchCatAccion2 as useFilterMatchCatAccion,
|
|
6262
|
+
useFilterMatchCatColor2 as useFilterMatchCatColor,
|
|
6176
6263
|
useFilterMatchCatColorGrupo2 as useFilterMatchCatColorGrupo,
|
|
6177
6264
|
useFilterMatchCatConceptoPago2 as useFilterMatchCatConceptoPago,
|
|
6178
6265
|
useFilterMatchCatEntidad2 as useFilterMatchCatEntidad,
|
|
@@ -6240,6 +6327,7 @@ export {
|
|
|
6240
6327
|
useUpdateAdeudoTipoSueloResumenMensual2 as useUpdateAdeudoTipoSueloResumenMensual,
|
|
6241
6328
|
useUpdateAdeudosPorPlazaResumen2 as useUpdateAdeudosPorPlazaResumen,
|
|
6242
6329
|
useUpdateCatAccion2 as useUpdateCatAccion,
|
|
6330
|
+
useUpdateCatColor2 as useUpdateCatColor,
|
|
6243
6331
|
useUpdateCatColorGrupo2 as useUpdateCatColorGrupo,
|
|
6244
6332
|
useUpdateCatConceptoPago2 as useUpdateCatConceptoPago,
|
|
6245
6333
|
useUpdateCatEntidad2 as useUpdateCatEntidad,
|