@erpp/react-api-cronos-frontend 1.0.1 → 1.0.2
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 +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -554,7 +554,16 @@ var APIFactory = class {
|
|
|
554
554
|
import axios2 from "axios";
|
|
555
555
|
var ApiClientContext = class {
|
|
556
556
|
};
|
|
557
|
+
/**
|
|
558
|
+
* @description URL base de la API.
|
|
559
|
+
* Se puede cambiar según el entorno (desarrollo, producción, etc.).
|
|
560
|
+
*/
|
|
557
561
|
ApiClientContext.baseUrl = "https://api.ejemplo.com";
|
|
562
|
+
/**
|
|
563
|
+
* @description Token de autorización global.
|
|
564
|
+
* Este token se utiliza para autenticar todas las solicitudes a la API.
|
|
565
|
+
* Debe ser configurado antes de realizar cualquier solicitud.
|
|
566
|
+
*/
|
|
558
567
|
ApiClientContext.token = "TOKEN_GLOBAL_POR_DEFECTO";
|
|
559
568
|
var APIClientBase = class {
|
|
560
569
|
constructor({ endpoint }) {
|
|
@@ -4194,6 +4203,7 @@ var useDeleteUsuarioRol2 = createAPIUsuarioRolObj.useDelete;
|
|
|
4194
4203
|
var useFilterMatchUsuarioRol2 = createAPIUsuarioRolObj.useFilterMatch;
|
|
4195
4204
|
export {
|
|
4196
4205
|
APIFactory,
|
|
4206
|
+
ApiClientContext,
|
|
4197
4207
|
useCreateAdeudo2 as useCreateAdeudo,
|
|
4198
4208
|
useCreateCatAccion2 as useCreateCatAccion,
|
|
4199
4209
|
useCreateCatConceptoPago2 as useCreateCatConceptoPago,
|