ngx-dsxlibrary 1.0.65 → 1.0.66

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
@@ -226,6 +226,113 @@ interface FilterOption {
226
226
  field?: string;
227
227
  }
228
228
 
229
+ interface DocumentoFelResponse {
230
+ version: string;
231
+ schemaLocation: string;
232
+ sat: Sat;
233
+ xmlns: {
234
+ count: number;
235
+ };
236
+ }
237
+ interface Sat {
238
+ dte: Dte;
239
+ adenda: any | null;
240
+ claseDocumento: string;
241
+ }
242
+ interface Dte {
243
+ datosEmision: DatosEmision;
244
+ id: string;
245
+ }
246
+ interface DatosEmision {
247
+ datosGenerales: DatosGenerales;
248
+ emisor: Emisor;
249
+ receptor: Receptor;
250
+ frases: Frases;
251
+ items: Items;
252
+ totales: Totales;
253
+ complementos: Complementos;
254
+ id: string;
255
+ }
256
+ interface DatosGenerales {
257
+ codigoMoneda: string;
258
+ fechaHoraEmision: string;
259
+ fechaHoraEmisionString: string;
260
+ tipo: string;
261
+ }
262
+ interface Emisor {
263
+ direccionEmisor: Direccion;
264
+ afiliacionIVA: string;
265
+ codigoEstablecimiento: number;
266
+ correoEmisor: string;
267
+ nitEmisor: string;
268
+ nombreComercial: string;
269
+ nombreEmisor: string;
270
+ }
271
+ interface Direccion {
272
+ direccion: string;
273
+ codigoPostal: string;
274
+ municipio: string;
275
+ departamento: string;
276
+ pais: string;
277
+ }
278
+ interface Receptor {
279
+ direccionReceptor: Direccion;
280
+ correoReceptor: string;
281
+ idReceptor: string;
282
+ nombreReceptor: string;
283
+ }
284
+ interface Frases {
285
+ frase: Frase[];
286
+ }
287
+ interface Frase {
288
+ codigoEscenario: number;
289
+ tipoFrase: number;
290
+ }
291
+ interface Items {
292
+ item: Item[];
293
+ }
294
+ interface Item {
295
+ cantidad: number;
296
+ unidadMedida: string;
297
+ descripcion: string;
298
+ precioUnitario: number;
299
+ precio: number;
300
+ descuento: number;
301
+ impuestos: Impuestos;
302
+ total: number;
303
+ bienOServicio: string;
304
+ numeroLinea: number;
305
+ }
306
+ interface Impuestos {
307
+ impuesto: Impuesto[];
308
+ }
309
+ interface Impuesto {
310
+ nombreCorto: string;
311
+ codigoUnidadGravable: string;
312
+ cantidadUnidadesGravables: number | null;
313
+ montoGravable: number | null;
314
+ montoImpuesto: number;
315
+ }
316
+ interface Totales {
317
+ totalImpuestos: {
318
+ totalImpuesto: TotalImpuesto[];
319
+ };
320
+ granTotal: number;
321
+ }
322
+ interface TotalImpuesto {
323
+ nombreCorto: string;
324
+ totalMontoImpuesto: number;
325
+ }
326
+ interface Complementos {
327
+ listaComplementos: Complemento[];
328
+ }
329
+ interface Complemento {
330
+ idComplemento: string;
331
+ nombreComplemento: string;
332
+ uriComplemento: string;
333
+ any: any;
334
+ }
335
+
229
336
  type FieldConfig<T> = {
230
337
  [K in keyof T]: {
231
338
  value: T[K] | null;
@@ -873,4 +980,4 @@ declare function nitValidator(control: AbstractControl): ValidationErrors | null
873
980
  declare function cuiValidator(control: AbstractControl): ValidationErrors | null;
874
981
 
875
982
  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 };
876
- export type { Column, EnvironmentConfig, ExportColumn, FechasConversion, FieldConfig, FilterOption, InferCacheKeyType, InferCacheOptions, MyParameterValues, ParameterSecurity, ParameterValue, ResponseHttpModel, SeguridadITParameter, T, TipoFechaConversion, typeModel };
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 };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-dsxlibrary",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "Libreria para control de código automatizado.",
5
5
  "author": "DevSoftXela",
6
6
  "dependencies": {
@@ -21,10 +21,6 @@
21
21
  "types": "./src/lib/components/index.d.ts",
22
22
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-components.mjs"
23
23
  },
24
- "./src/lib/injections": {
25
- "types": "./src/lib/injections/index.d.ts",
26
- "default": "./fesm2022/ngx-dsxlibrary-src-lib-injections.mjs"
27
- },
28
24
  "./src/lib/directives": {
29
25
  "types": "./src/lib/directives/index.d.ts",
30
26
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-directives.mjs"
@@ -33,18 +29,22 @@
33
29
  "types": "./src/lib/interceptors/index.d.ts",
34
30
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-interceptors.mjs"
35
31
  },
32
+ "./src/lib/injections": {
33
+ "types": "./src/lib/injections/index.d.ts",
34
+ "default": "./fesm2022/ngx-dsxlibrary-src-lib-injections.mjs"
35
+ },
36
36
  "./src/lib/models": {
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
  },
44
+ "./src/lib/pipe": {
45
+ "types": "./src/lib/pipe/index.d.ts",
46
+ "default": "./fesm2022/ngx-dsxlibrary-src-lib-pipe.mjs"
47
+ },
48
48
  "./src/lib/services": {
49
49
  "types": "./src/lib/services/index.d.ts",
50
50
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-services.mjs"
@@ -43,6 +43,113 @@ interface FilterOption {
43
43
  field?: string;
44
44
  }
45
45
 
46
+ interface DocumentoFelResponse {
47
+ version: string;
48
+ schemaLocation: string;
49
+ sat: Sat;
50
+ xmlns: {
51
+ count: number;
52
+ };
53
+ }
54
+ interface Sat {
55
+ dte: Dte;
56
+ adenda: any | null;
57
+ claseDocumento: string;
58
+ }
59
+ interface Dte {
60
+ datosEmision: DatosEmision;
61
+ id: string;
62
+ }
63
+ interface DatosEmision {
64
+ datosGenerales: DatosGenerales;
65
+ emisor: Emisor;
66
+ receptor: Receptor;
67
+ frases: Frases;
68
+ items: Items;
69
+ totales: Totales;
70
+ complementos: Complementos;
71
+ id: string;
72
+ }
73
+ interface DatosGenerales {
74
+ codigoMoneda: string;
75
+ fechaHoraEmision: string;
76
+ fechaHoraEmisionString: string;
77
+ tipo: string;
78
+ }
79
+ interface Emisor {
80
+ direccionEmisor: Direccion;
81
+ afiliacionIVA: string;
82
+ codigoEstablecimiento: number;
83
+ correoEmisor: string;
84
+ nitEmisor: string;
85
+ nombreComercial: string;
86
+ nombreEmisor: string;
87
+ }
88
+ interface Direccion {
89
+ direccion: string;
90
+ codigoPostal: string;
91
+ municipio: string;
92
+ departamento: string;
93
+ pais: string;
94
+ }
95
+ interface Receptor {
96
+ direccionReceptor: Direccion;
97
+ correoReceptor: string;
98
+ idReceptor: string;
99
+ nombreReceptor: string;
100
+ }
101
+ interface Frases {
102
+ frase: Frase[];
103
+ }
104
+ interface Frase {
105
+ codigoEscenario: number;
106
+ tipoFrase: number;
107
+ }
108
+ interface Items {
109
+ item: Item[];
110
+ }
111
+ interface Item {
112
+ cantidad: number;
113
+ unidadMedida: string;
114
+ descripcion: string;
115
+ precioUnitario: number;
116
+ precio: number;
117
+ descuento: number;
118
+ impuestos: Impuestos;
119
+ total: number;
120
+ bienOServicio: string;
121
+ numeroLinea: number;
122
+ }
123
+ interface Impuestos {
124
+ impuesto: Impuesto[];
125
+ }
126
+ interface Impuesto {
127
+ nombreCorto: string;
128
+ codigoUnidadGravable: string;
129
+ cantidadUnidadesGravables: number | null;
130
+ montoGravable: number | null;
131
+ montoImpuesto: number;
132
+ }
133
+ interface Totales {
134
+ totalImpuestos: {
135
+ totalImpuesto: TotalImpuesto[];
136
+ };
137
+ granTotal: number;
138
+ }
139
+ interface TotalImpuesto {
140
+ nombreCorto: string;
141
+ totalMontoImpuesto: number;
142
+ }
143
+ interface Complementos {
144
+ listaComplementos: Complemento[];
145
+ }
146
+ interface Complemento {
147
+ idComplemento: string;
148
+ nombreComplemento: string;
149
+ uriComplemento: string;
150
+ any: any;
151
+ }
152
+
46
153
  type FieldConfig<T> = {
47
154
  [K in keyof T]: {
48
155
  value: T[K] | null;
@@ -60,4 +167,4 @@ interface ResponseHttpModel {
60
167
  }
61
168
 
62
169
  export { createInitialCache };
63
- export type { Column, ExportColumn, FechasConversion, FieldConfig, FilterOption, InferCacheKeyType, InferCacheOptions, ResponseHttpModel, T, TipoFechaConversion, typeModel };
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 };
Binary file