ngx-dsxlibrary 1.0.67 → 1.0.69

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/index.d.ts CHANGED
@@ -179,6 +179,13 @@ interface MyParameterValues<T extends string = string> {
179
179
 
180
180
  declare const INITIAL_PARAMETERS: InjectionToken<MyParameterValues<string>[]>;
181
181
 
182
+ /**
183
+ * Interceptor principal para autorización HTTP.
184
+ * - Agrega el token de autorización a cada petición.
185
+ * - Muestra/oculta el spinner de carga según el número de peticiones activas.
186
+ * - Maneja errores 401 (Unauthorized) refrescando el token si es posible.
187
+ * - Repite la petición original tras refrescar el token.
188
+ */
182
189
  declare const httpAuthorizeInterceptor: HttpInterceptorFn;
183
190
 
184
191
  type InferCacheKeyType<T extends Record<string, string>> = keyof T;
@@ -348,6 +355,13 @@ interface ResponseHttpModel {
348
355
  statusMessage: string;
349
356
  isAdmin: boolean;
350
357
  }
358
+ interface NITResponse {
359
+ nit: string;
360
+ nombre: string;
361
+ mensaje: string;
362
+ apellidos: string;
363
+ nombres: string;
364
+ }
351
365
 
352
366
  declare class DsxAddToolsModule {
353
367
  static ɵfac: i0.ɵɵFactoryDeclaration<DsxAddToolsModule, never>;
@@ -842,11 +856,14 @@ declare class UtilityAddService {
842
856
  private forceDownload;
843
857
  private revokeObjectUrl;
844
858
  /**
859
+ * Muestra información en consola solo en desarrollo, permitiendo múltiples argumentos como console.log nativo.
845
860
  *
846
- * @param message - Texto que se desea mostrar en consola
847
- * solo se visualiza en desarrollo para evitar mostrar información innecesaria en producción
861
+ * @param args - Argumentos a mostrar en consola (texto, objetos, etc).
862
+ * @example
863
+ * logIfNotProduction('Datos:', response);
864
+ * logIfNotProduction('Error:', error, { extra: true });
848
865
  */
849
- logIfNotProduction(message: any): void;
866
+ logIfNotProduction(...args: any[]): void;
850
867
  /**
851
868
  * Marca todos los controles de un formulario como "tocados" y muestra un mensaje de alerta.
852
869
  * @param form - El formulario que se va a validar.
@@ -980,4 +997,4 @@ declare function nitValidator(control: AbstractControl): ValidationErrors | null
980
997
  declare function cuiValidator(control: AbstractControl): ValidationErrors | null;
981
998
 
982
999
  export { AlertaService, AppMessageErrorComponent, AuthorizeService, CACHE_KEYS, CacheService, DsxAddToolsModule, ENVIRONMENT, EndpointService, INITIAL_PARAMETERS, JsonHighlightPipe, JsonValuesDebujComponent, KpicardComponent, LoadingComponent, NavbarDsxComponent, OnlyRangoPatternDirective, ParameterValuesService, PrimeNgModule, SecurityService, SelectAllOnFocusDirective, TruncatePipe, UtilityAddService, atLeastOneFieldRequiredValidator, createInitialCache, createTypedCacheProvider, cuiValidator, dateMinMaxValidator, dateRangeValidator, httpAuthorizeInterceptor, nitValidator };
983
- export type { Column, Complemento, Complementos, DatosEmision, DatosGenerales, Direccion, DocumentoFelResponse, Dte, Emisor, EnvironmentConfig, ExportColumn, FechasConversion, FieldConfig, FilterOption, Frase, Frases, Impuesto, Impuestos, InferCacheKeyType, InferCacheOptions, Item, Items, MyParameterValues, ParameterSecurity, ParameterValue, Receptor, ResponseHttpModel, Sat, SeguridadITParameter, T, TipoFechaConversion, TotalImpuesto, Totales, typeModel };
1000
+ export type { Column, Complemento, Complementos, DatosEmision, DatosGenerales, Direccion, DocumentoFelResponse, Dte, Emisor, EnvironmentConfig, ExportColumn, FechasConversion, FieldConfig, FilterOption, Frase, Frases, Impuesto, Impuestos, InferCacheKeyType, InferCacheOptions, Item, Items, MyParameterValues, NITResponse, ParameterSecurity, ParameterValue, Receptor, ResponseHttpModel, Sat, SeguridadITParameter, T, TipoFechaConversion, TotalImpuesto, Totales, typeModel };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-dsxlibrary",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "Libreria para control de código automatizado.",
5
5
  "author": "DevSoftXela",
6
6
  "dependencies": {
@@ -37,21 +37,21 @@
37
37
  "types": "./src/lib/models/index.d.ts",
38
38
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-models.mjs"
39
39
  },
40
- "./src/lib/pipe": {
41
- "types": "./src/lib/pipe/index.d.ts",
42
- "default": "./fesm2022/ngx-dsxlibrary-src-lib-pipe.mjs"
43
- },
44
40
  "./src/lib/modules": {
45
41
  "types": "./src/lib/modules/index.d.ts",
46
42
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-modules.mjs"
47
43
  },
48
- "./src/lib/validations": {
49
- "types": "./src/lib/validations/index.d.ts",
50
- "default": "./fesm2022/ngx-dsxlibrary-src-lib-validations.mjs"
44
+ "./src/lib/pipe": {
45
+ "types": "./src/lib/pipe/index.d.ts",
46
+ "default": "./fesm2022/ngx-dsxlibrary-src-lib-pipe.mjs"
51
47
  },
52
48
  "./src/lib/services": {
53
49
  "types": "./src/lib/services/index.d.ts",
54
50
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-services.mjs"
51
+ },
52
+ "./src/lib/validations": {
53
+ "types": "./src/lib/validations/index.d.ts",
54
+ "default": "./fesm2022/ngx-dsxlibrary-src-lib-validations.mjs"
55
55
  }
56
56
  }
57
57
  }
@@ -165,6 +165,13 @@ interface ResponseHttpModel {
165
165
  statusMessage: string;
166
166
  isAdmin: boolean;
167
167
  }
168
+ interface NITResponse {
169
+ nit: string;
170
+ nombre: string;
171
+ mensaje: string;
172
+ apellidos: string;
173
+ nombres: string;
174
+ }
168
175
 
169
176
  export { createInitialCache };
170
- export type { Column, Complemento, Complementos, DatosEmision, DatosGenerales, Direccion, DocumentoFelResponse, Dte, Emisor, ExportColumn, FechasConversion, FieldConfig, FilterOption, Frase, Frases, Impuesto, Impuestos, InferCacheKeyType, InferCacheOptions, Item, Items, Receptor, ResponseHttpModel, Sat, T, TipoFechaConversion, TotalImpuesto, Totales, typeModel };
177
+ export type { Column, Complemento, Complementos, DatosEmision, DatosGenerales, Direccion, DocumentoFelResponse, Dte, Emisor, ExportColumn, FechasConversion, FieldConfig, FilterOption, Frase, Frases, Impuesto, Impuestos, InferCacheKeyType, InferCacheOptions, Item, Items, NITResponse, Receptor, ResponseHttpModel, Sat, T, TipoFechaConversion, TotalImpuesto, Totales, typeModel };
Binary file