@erpp/react-api-cronos-frontend 1.0.10 → 1.0.12
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 +190 -83
- package/dist/index.d.ts +190 -83
- package/dist/index.js +95 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __export(index_exports, {
|
|
|
56
56
|
createAPIAdeudoTipoSueloResumenMensual: () => useAdeudoTipoSueloResumenMensualAPI_default,
|
|
57
57
|
createAPIAdeudosPorPlazaResumen: () => useAdeudosPorPlazaResumenAPI_default,
|
|
58
58
|
createAPICatAccion: () => useCatAccionAPI_default,
|
|
59
|
+
createAPICatColor: () => useCatColorAPI_default,
|
|
59
60
|
createAPICatColorGrupo: () => useCatColorGrupoAPI_default,
|
|
60
61
|
createAPICatConceptoPago: () => useCatConceptoPagoAPI_default,
|
|
61
62
|
createAPICatEntidad: () => useCatEntidadAPI_default,
|
|
@@ -123,6 +124,7 @@ __export(index_exports, {
|
|
|
123
124
|
useCreateAdeudoTipoSueloResumenMensual: () => useCreateAdeudoTipoSueloResumenMensual2,
|
|
124
125
|
useCreateAdeudosPorPlazaResumen: () => useCreateAdeudosPorPlazaResumen2,
|
|
125
126
|
useCreateCatAccion: () => useCreateCatAccion2,
|
|
127
|
+
useCreateCatColor: () => useCreateCatColor2,
|
|
126
128
|
useCreateCatColorGrupo: () => useCreateCatColorGrupo2,
|
|
127
129
|
useCreateCatConceptoPago: () => useCreateCatConceptoPago2,
|
|
128
130
|
useCreateCatEntidad: () => useCreateCatEntidad2,
|
|
@@ -190,6 +192,7 @@ __export(index_exports, {
|
|
|
190
192
|
useDeleteAdeudoTipoSueloResumenMensual: () => useDeleteAdeudoTipoSueloResumenMensual2,
|
|
191
193
|
useDeleteAdeudosPorPlazaResumen: () => useDeleteAdeudosPorPlazaResumen2,
|
|
192
194
|
useDeleteCatAccion: () => useDeleteCatAccion2,
|
|
195
|
+
useDeleteCatColor: () => useDeleteCatColor2,
|
|
193
196
|
useDeleteCatColorGrupo: () => useDeleteCatColorGrupo2,
|
|
194
197
|
useDeleteCatConceptoPago: () => useDeleteCatConceptoPago2,
|
|
195
198
|
useDeleteCatEntidad: () => useDeleteCatEntidad2,
|
|
@@ -257,6 +260,7 @@ __export(index_exports, {
|
|
|
257
260
|
useFetchByIdAdeudoTipoSueloResumenMensual: () => useFetchByIdAdeudoTipoSueloResumenMensual2,
|
|
258
261
|
useFetchByIdAdeudosPorPlazaResumen: () => useFetchByIdAdeudosPorPlazaResumen2,
|
|
259
262
|
useFetchByIdCatAccion: () => useFetchByIdCatAccion2,
|
|
263
|
+
useFetchByIdCatColor: () => useFetchByIdCatColor2,
|
|
260
264
|
useFetchByIdCatColorGrupo: () => useFetchByIdCatColorGrupo2,
|
|
261
265
|
useFetchByIdCatConceptoPago: () => useFetchByIdCatConceptoPago2,
|
|
262
266
|
useFetchByIdCatEntidad: () => useFetchByIdCatEntidad2,
|
|
@@ -324,6 +328,7 @@ __export(index_exports, {
|
|
|
324
328
|
useFetchListAdeudoTipoSueloResumenMensual: () => useFetchListAdeudoTipoSueloResumenMensual2,
|
|
325
329
|
useFetchListAdeudosPorPlazaResumen: () => useFetchListAdeudosPorPlazaResumen2,
|
|
326
330
|
useFetchListCatAccion: () => useFetchListCatAccion2,
|
|
331
|
+
useFetchListCatColor: () => useFetchListCatColor2,
|
|
327
332
|
useFetchListCatColorGrupo: () => useFetchListCatColorGrupo2,
|
|
328
333
|
useFetchListCatConceptoPago: () => useFetchListCatConceptoPago2,
|
|
329
334
|
useFetchListCatEntidad: () => useFetchListCatEntidad2,
|
|
@@ -391,6 +396,7 @@ __export(index_exports, {
|
|
|
391
396
|
useFilterMatchAdeudoTipoSueloResumenMensual: () => useFilterMatchAdeudoTipoSueloResumenMensual2,
|
|
392
397
|
useFilterMatchAdeudosPorPlazaResumen: () => useFilterMatchAdeudosPorPlazaResumen2,
|
|
393
398
|
useFilterMatchCatAccion: () => useFilterMatchCatAccion2,
|
|
399
|
+
useFilterMatchCatColor: () => useFilterMatchCatColor2,
|
|
394
400
|
useFilterMatchCatColorGrupo: () => useFilterMatchCatColorGrupo2,
|
|
395
401
|
useFilterMatchCatConceptoPago: () => useFilterMatchCatConceptoPago2,
|
|
396
402
|
useFilterMatchCatEntidad: () => useFilterMatchCatEntidad2,
|
|
@@ -458,6 +464,7 @@ __export(index_exports, {
|
|
|
458
464
|
useUpdateAdeudoTipoSueloResumenMensual: () => useUpdateAdeudoTipoSueloResumenMensual2,
|
|
459
465
|
useUpdateAdeudosPorPlazaResumen: () => useUpdateAdeudosPorPlazaResumen2,
|
|
460
466
|
useUpdateCatAccion: () => useUpdateCatAccion2,
|
|
467
|
+
useUpdateCatColor: () => useUpdateCatColor2,
|
|
461
468
|
useUpdateCatColorGrupo: () => useUpdateCatColorGrupo2,
|
|
462
469
|
useUpdateCatConceptoPago: () => useUpdateCatConceptoPago2,
|
|
463
470
|
useUpdateCatEntidad: () => useUpdateCatEntidad2,
|
|
@@ -672,6 +679,14 @@ var setupCatAccionApi = ({ client }) => {
|
|
|
672
679
|
return api;
|
|
673
680
|
};
|
|
674
681
|
|
|
682
|
+
// src/components/apis/setupCatColorApi.ts
|
|
683
|
+
var setupCatColorApi = ({ client }) => {
|
|
684
|
+
const api = client.subpath("/cat_color", (sub, axios3) => ({
|
|
685
|
+
// Agregar métodos personalizados aquí
|
|
686
|
+
}));
|
|
687
|
+
return api;
|
|
688
|
+
};
|
|
689
|
+
|
|
675
690
|
// src/components/apis/setupCatColorGrupoApi.ts
|
|
676
691
|
var setupCatColorGrupoApi = ({ client }) => {
|
|
677
692
|
const api = client.subpath("/cat_color_grupo", (sub, axios3) => ({
|
|
@@ -889,14 +904,6 @@ var setupGraficaColorGrupoApi = ({ client }) => {
|
|
|
889
904
|
return api;
|
|
890
905
|
};
|
|
891
906
|
|
|
892
|
-
// src/components/apis/setupGraficaColorGrupoAsignacionApi.ts
|
|
893
|
-
var setupGraficaColorGrupoAsignacionApi = ({ client }) => {
|
|
894
|
-
const api = client.subpath("/grafica_color_grupo_asignacion", (sub, axios3) => ({
|
|
895
|
-
// Agregar métodos personalizados aquí
|
|
896
|
-
}));
|
|
897
|
-
return api;
|
|
898
|
-
};
|
|
899
|
-
|
|
900
907
|
// src/components/apis/setupGraficaFiltroApi.ts
|
|
901
908
|
var setupGraficaFiltroApi = ({ client }) => {
|
|
902
909
|
const api = client.subpath("/grafica_filtro", (sub, axios3) => ({
|
|
@@ -1167,6 +1174,7 @@ var APIFactory = class {
|
|
|
1167
1174
|
this.AdeudosPorPlazaResumen = setupAdeudosPorPlazaResumenApi({ client });
|
|
1168
1175
|
this.AdeudoTipoSueloResumenMensual = setupAdeudoTipoSueloResumenMensualApi({ client });
|
|
1169
1176
|
this.cat_accion = setupCatAccionApi({ client });
|
|
1177
|
+
this.cat_color = setupCatColorApi({ client });
|
|
1170
1178
|
this.cat_color_grupo = setupCatColorGrupoApi({ client });
|
|
1171
1179
|
this.cat_concepto_pago = setupCatConceptoPagoApi({ client });
|
|
1172
1180
|
this.cat_entidad = setupCatEntidadApi({ client });
|
|
@@ -1194,7 +1202,6 @@ var APIFactory = class {
|
|
|
1194
1202
|
this.grafica_agrupacion = setupGraficaAgrupacionApi({ client });
|
|
1195
1203
|
this.grafica_color = setupGraficaColorApi({ client });
|
|
1196
1204
|
this.grafica_color_grupo = setupGraficaColorGrupoApi({ client });
|
|
1197
|
-
this.grafica_color_grupo_asignacion = setupGraficaColorGrupoAsignacionApi({ client });
|
|
1198
1205
|
this.grafica_filtro = setupGraficaFiltroApi({ client });
|
|
1199
1206
|
this.grafica_parametro = setupGraficaParametroApi({ client });
|
|
1200
1207
|
this.grafica_parametro_defecto = setupGraficaParametroDefectoApi({ client });
|
|
@@ -1961,6 +1968,71 @@ var {
|
|
|
1961
1968
|
} = createAPICatAccion();
|
|
1962
1969
|
var useCatAccionAPI_default = createAPICatAccion;
|
|
1963
1970
|
|
|
1971
|
+
// src/infrastructure/api/clients/CatColorAPI.ts
|
|
1972
|
+
var CatColorAPI = class extends APIClientBase {
|
|
1973
|
+
constructor() {
|
|
1974
|
+
super({
|
|
1975
|
+
endpoint: "cat_color"
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
//* Métodos específicos aquí para el api cliente de CatColor
|
|
1979
|
+
};
|
|
1980
|
+
var CatColorAPI_default = CatColorAPI;
|
|
1981
|
+
|
|
1982
|
+
// src/infrastructure/api/hooks/custom/CatColorHooksCustom.ts
|
|
1983
|
+
var catColorHooksCustom = (catColorClient) => {
|
|
1984
|
+
return {
|
|
1985
|
+
/*
|
|
1986
|
+
ejemplo: () => {
|
|
1987
|
+
const [data, setData] = useState<CatColorDTO | null>(null);
|
|
1988
|
+
const [error, setError] = useState<Error | null>(null);
|
|
1989
|
+
|
|
1990
|
+
const [isFetching, setIsFetching] = useState(false);
|
|
1991
|
+
|
|
1992
|
+
const fetchData = useCallback(async () => {
|
|
1993
|
+
setIsFetching(true);
|
|
1994
|
+
try {
|
|
1995
|
+
const result = await catColorClient.getById({ id: 'example-id' });
|
|
1996
|
+
setData(result);
|
|
1997
|
+
setError(null);
|
|
1998
|
+
} catch (err: any) {
|
|
1999
|
+
setError(err);
|
|
2000
|
+
console.error("Error fetching catColor by ID:", err);
|
|
2001
|
+
} finally {
|
|
2002
|
+
setIsFetching(false);
|
|
2003
|
+
}
|
|
2004
|
+
}, []);
|
|
2005
|
+
|
|
2006
|
+
return {
|
|
2007
|
+
data,
|
|
2008
|
+
error,
|
|
2009
|
+
isFetching,
|
|
2010
|
+
fetchData,
|
|
2011
|
+
};
|
|
2012
|
+
}
|
|
2013
|
+
*/
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
var CatColorHooksCustom_default = catColorHooksCustom;
|
|
2017
|
+
|
|
2018
|
+
// src/infrastructure/api/hooks/composed/useCatColorAPI.ts
|
|
2019
|
+
var createAPICatColor = () => {
|
|
2020
|
+
const client = new CatColorAPI_default();
|
|
2021
|
+
const defaultHooks = apiHooks(client);
|
|
2022
|
+
const extensionHooks = CatColorHooksCustom_default(client);
|
|
2023
|
+
const mergedHooks = __spreadValues(__spreadValues({}, defaultHooks), extensionHooks);
|
|
2024
|
+
return mergedHooks;
|
|
2025
|
+
};
|
|
2026
|
+
var {
|
|
2027
|
+
useFetchById: useFetchByIdCatColor,
|
|
2028
|
+
useFetchList: useFetchListCatColor,
|
|
2029
|
+
useCreate: useCreateCatColor,
|
|
2030
|
+
useUpdate: useUpdateCatColor,
|
|
2031
|
+
useDelete: useDeleteCatColor,
|
|
2032
|
+
useFilterMatch: useFilterMatchCatColor
|
|
2033
|
+
} = createAPICatColor();
|
|
2034
|
+
var useCatColorAPI_default = createAPICatColor;
|
|
2035
|
+
|
|
1964
2036
|
// src/infrastructure/api/clients/CatColorGrupoAPI.ts
|
|
1965
2037
|
var CatColorGrupoAPI = class extends APIClientBase {
|
|
1966
2038
|
constructor() {
|
|
@@ -5911,6 +5983,13 @@ var useCreateCatAccion2 = createAPICatAccionObj.useCreate;
|
|
|
5911
5983
|
var useUpdateCatAccion2 = createAPICatAccionObj.useUpdate;
|
|
5912
5984
|
var useDeleteCatAccion2 = createAPICatAccionObj.useDelete;
|
|
5913
5985
|
var useFilterMatchCatAccion2 = createAPICatAccionObj.useFilterMatch;
|
|
5986
|
+
var createAPICatColorObj = useCatColorAPI_default();
|
|
5987
|
+
var useFetchByIdCatColor2 = createAPICatColorObj.useFetchById;
|
|
5988
|
+
var useFetchListCatColor2 = createAPICatColorObj.useFetchList;
|
|
5989
|
+
var useCreateCatColor2 = createAPICatColorObj.useCreate;
|
|
5990
|
+
var useUpdateCatColor2 = createAPICatColorObj.useUpdate;
|
|
5991
|
+
var useDeleteCatColor2 = createAPICatColorObj.useDelete;
|
|
5992
|
+
var useFilterMatchCatColor2 = createAPICatColorObj.useFilterMatch;
|
|
5914
5993
|
var createAPICatColorGrupoObj = useCatColorGrupoAPI_default();
|
|
5915
5994
|
var useFetchByIdCatColorGrupo2 = createAPICatColorGrupoObj.useFetchById;
|
|
5916
5995
|
var useFetchListCatColorGrupo2 = createAPICatColorGrupoObj.useFetchList;
|
|
@@ -6342,6 +6421,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6342
6421
|
createAPIAdeudoTipoSueloResumenMensual,
|
|
6343
6422
|
createAPIAdeudosPorPlazaResumen,
|
|
6344
6423
|
createAPICatAccion,
|
|
6424
|
+
createAPICatColor,
|
|
6345
6425
|
createAPICatColorGrupo,
|
|
6346
6426
|
createAPICatConceptoPago,
|
|
6347
6427
|
createAPICatEntidad,
|
|
@@ -6409,6 +6489,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6409
6489
|
useCreateAdeudoTipoSueloResumenMensual,
|
|
6410
6490
|
useCreateAdeudosPorPlazaResumen,
|
|
6411
6491
|
useCreateCatAccion,
|
|
6492
|
+
useCreateCatColor,
|
|
6412
6493
|
useCreateCatColorGrupo,
|
|
6413
6494
|
useCreateCatConceptoPago,
|
|
6414
6495
|
useCreateCatEntidad,
|
|
@@ -6476,6 +6557,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6476
6557
|
useDeleteAdeudoTipoSueloResumenMensual,
|
|
6477
6558
|
useDeleteAdeudosPorPlazaResumen,
|
|
6478
6559
|
useDeleteCatAccion,
|
|
6560
|
+
useDeleteCatColor,
|
|
6479
6561
|
useDeleteCatColorGrupo,
|
|
6480
6562
|
useDeleteCatConceptoPago,
|
|
6481
6563
|
useDeleteCatEntidad,
|
|
@@ -6543,6 +6625,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6543
6625
|
useFetchByIdAdeudoTipoSueloResumenMensual,
|
|
6544
6626
|
useFetchByIdAdeudosPorPlazaResumen,
|
|
6545
6627
|
useFetchByIdCatAccion,
|
|
6628
|
+
useFetchByIdCatColor,
|
|
6546
6629
|
useFetchByIdCatColorGrupo,
|
|
6547
6630
|
useFetchByIdCatConceptoPago,
|
|
6548
6631
|
useFetchByIdCatEntidad,
|
|
@@ -6610,6 +6693,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6610
6693
|
useFetchListAdeudoTipoSueloResumenMensual,
|
|
6611
6694
|
useFetchListAdeudosPorPlazaResumen,
|
|
6612
6695
|
useFetchListCatAccion,
|
|
6696
|
+
useFetchListCatColor,
|
|
6613
6697
|
useFetchListCatColorGrupo,
|
|
6614
6698
|
useFetchListCatConceptoPago,
|
|
6615
6699
|
useFetchListCatEntidad,
|
|
@@ -6677,6 +6761,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6677
6761
|
useFilterMatchAdeudoTipoSueloResumenMensual,
|
|
6678
6762
|
useFilterMatchAdeudosPorPlazaResumen,
|
|
6679
6763
|
useFilterMatchCatAccion,
|
|
6764
|
+
useFilterMatchCatColor,
|
|
6680
6765
|
useFilterMatchCatColorGrupo,
|
|
6681
6766
|
useFilterMatchCatConceptoPago,
|
|
6682
6767
|
useFilterMatchCatEntidad,
|
|
@@ -6744,6 +6829,7 @@ var useFilterMatchUsuarioRolEliminacionLog2 = createAPIUsuarioRolEliminacionLogO
|
|
|
6744
6829
|
useUpdateAdeudoTipoSueloResumenMensual,
|
|
6745
6830
|
useUpdateAdeudosPorPlazaResumen,
|
|
6746
6831
|
useUpdateCatAccion,
|
|
6832
|
+
useUpdateCatColor,
|
|
6747
6833
|
useUpdateCatColorGrupo,
|
|
6748
6834
|
useUpdateCatConceptoPago,
|
|
6749
6835
|
useUpdateCatEntidad,
|