dmencu 0.3.34 → 0.3.36

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.
Files changed (127) hide show
  1. package/dist/client/client/client.d.ts +1 -1
  2. package/dist/client/client/client.js +540 -539
  3. package/dist/client/client/menu.js +2 -2
  4. package/dist/client/unlogged/abrir-formulario.d.ts +12 -12
  5. package/dist/client/unlogged/abrir-formulario.js +102 -102
  6. package/dist/client/unlogged/bypass-formulario.d.ts +200 -200
  7. package/dist/client/unlogged/bypass-formulario.js +1041 -1041
  8. package/dist/client/unlogged/redux-formulario.d.ts +349 -349
  9. package/dist/client/unlogged/redux-formulario.js +317 -317
  10. package/dist/client/unlogged/tipos.d.ts +469 -469
  11. package/dist/client/unlogged/tipos.js +21 -21
  12. package/dist/server/server/app-dmencu.d.ts +1511 -1511
  13. package/dist/server/server/app-dmencu.js +649 -649
  14. package/dist/server/server/def-config.d.ts +1 -1
  15. package/dist/server/server/def-config.js +14 -14
  16. package/dist/server/server/procedures-dmencu.d.ts +6 -6
  17. package/dist/server/server/procedures-dmencu.js +854 -854
  18. package/dist/server/server/server-dmencu.d.ts +1 -1
  19. package/dist/server/server/server-dmencu.js +20 -20
  20. package/dist/server/server/table-acciones.d.ts +3 -3
  21. package/dist/server/server/table-acciones.js +53 -53
  22. package/dist/server/server/table-areas.d.ts +3 -3
  23. package/dist/server/server/table-areas.js +88 -88
  24. package/dist/server/server/table-comunas.d.ts +3 -3
  25. package/dist/server/server/table-comunas.js +28 -28
  26. package/dist/server/server/table-control_campo.d.ts +11 -11
  27. package/dist/server/server/table-control_campo.js +71 -71
  28. package/dist/server/server/table-control_resumen.d.ts +3 -3
  29. package/dist/server/server/table-control_resumen.js +18 -18
  30. package/dist/server/server/table-encuestadores.d.ts +3 -3
  31. package/dist/server/server/table-encuestadores.js +18 -18
  32. package/dist/server/server/table-estados.d.ts +3 -3
  33. package/dist/server/server/table-estados.js +60 -60
  34. package/dist/server/server/table-estados_acciones.d.ts +3 -3
  35. package/dist/server/server/table-estados_acciones.js +38 -38
  36. package/dist/server/server/table-hogares.d.ts +3 -3
  37. package/dist/server/server/table-hogares.js +156 -156
  38. package/dist/server/server/table-hogares_sup.d.ts +3 -3
  39. package/dist/server/server/table-hogares_sup.js +191 -191
  40. package/dist/server/server/table-lotes.d.ts +3 -3
  41. package/dist/server/server/table-lotes.js +35 -35
  42. package/dist/server/server/table-mis_encuestadores.d.ts +3 -3
  43. package/dist/server/server/table-mis_encuestadores.js +56 -56
  44. package/dist/server/server/table-mis_tareas.d.ts +3 -3
  45. package/dist/server/server/table-mis_tareas.js +18 -18
  46. package/dist/server/server/table-mis_tareas_areas.d.ts +3 -3
  47. package/dist/server/server/table-mis_tareas_areas.js +20 -20
  48. package/dist/server/server/table-no_rea.d.ts +3 -3
  49. package/dist/server/server/table-no_rea.js +32 -32
  50. package/dist/server/server/table-no_rea_sup.d.ts +3 -3
  51. package/dist/server/server/table-no_rea_sup.js +32 -32
  52. package/dist/server/server/table-operaciones.d.ts +3 -3
  53. package/dist/server/server/table-operaciones.js +30 -30
  54. package/dist/server/server/table-parametros.d.ts +3 -3
  55. package/dist/server/server/table-parametros.js +39 -39
  56. package/dist/server/server/table-permisos.d.ts +3 -3
  57. package/dist/server/server/table-permisos.js +31 -31
  58. package/dist/server/server/table-personal.d.ts +6 -6
  59. package/dist/server/server/table-personal.js +56 -56
  60. package/dist/server/server/table-personal_rol.d.ts +3 -3
  61. package/dist/server/server/table-personal_rol.js +36 -36
  62. package/dist/server/server/table-personas.d.ts +3 -3
  63. package/dist/server/server/table-personas.js +448 -448
  64. package/dist/server/server/table-personas_sup.d.ts +3 -3
  65. package/dist/server/server/table-personas_sup.js +93 -93
  66. package/dist/server/server/table-recepcionistas.d.ts +3 -3
  67. package/dist/server/server/table-recepcionistas.js +18 -18
  68. package/dist/server/server/table-recuperadores.d.ts +3 -3
  69. package/dist/server/server/table-recuperadores.js +18 -18
  70. package/dist/server/server/table-resultados_tarea.d.ts +3 -3
  71. package/dist/server/server/table-resultados_tarea.js +28 -28
  72. package/dist/server/server/table-roles.d.ts +3 -3
  73. package/dist/server/server/table-roles.js +32 -32
  74. package/dist/server/server/table-roles_permisos.d.ts +3 -3
  75. package/dist/server/server/table-roles_permisos.js +35 -35
  76. package/dist/server/server/table-roles_subordinados.d.ts +3 -3
  77. package/dist/server/server/table-roles_subordinados.js +32 -32
  78. package/dist/server/server/table-semanas.d.ts +3 -3
  79. package/dist/server/server/table-semanas.js +34 -34
  80. package/dist/server/server/table-sincronizaciones.d.ts +3 -3
  81. package/dist/server/server/table-sincronizaciones.js +30 -30
  82. package/dist/server/server/table-supervisores.d.ts +3 -3
  83. package/dist/server/server/table-supervisores.js +18 -18
  84. package/dist/server/server/table-tareas.d.ts +3 -3
  85. package/dist/server/server/table-tareas.js +46 -46
  86. package/dist/server/server/table-tareas_areas.d.ts +3 -3
  87. package/dist/server/server/table-tareas_areas.js +55 -55
  88. package/dist/server/server/table-tareas_tem.d.ts +3 -3
  89. package/dist/server/server/table-tareas_tem.js +104 -105
  90. package/dist/server/server/table-tareas_tem_asignables.d.ts +1 -1
  91. package/dist/server/server/table-tareas_tem_asignables.js +5 -5
  92. package/dist/server/server/table-tareas_tem_recepcion.d.ts +3 -5
  93. package/dist/server/server/table-tareas_tem_recepcion.js +33 -43
  94. package/dist/server/server/table-tem.d.ts +3 -3
  95. package/dist/server/server/table-tem.js +192 -192
  96. package/dist/server/server/table-tem_asignacion.d.ts +3 -0
  97. package/dist/server/server/table-tem_asignacion.js +51 -0
  98. package/dist/server/server/table-tem_recepcion.d.ts +3 -3
  99. package/dist/server/server/table-tem_recepcion.js +18 -18
  100. package/dist/server/server/table-usuarios.d.ts +3 -3
  101. package/dist/server/server/table-usuarios.js +58 -58
  102. package/dist/server/server/table-visitas.d.ts +3 -3
  103. package/dist/server/server/table-visitas.js +91 -91
  104. package/dist/server/server/table-visitas_sup.d.ts +3 -3
  105. package/dist/server/server/table-visitas_sup.js +91 -91
  106. package/dist/server/server/table-viviendas.d.ts +3 -3
  107. package/dist/server/server/table-viviendas.js +299 -299
  108. package/dist/server/server/types-dmencu.d.ts +24 -24
  109. package/dist/server/server/types-dmencu.js +32 -32
  110. package/dist/server/unlogged/tipos.d.ts +469 -469
  111. package/dist/server/unlogged/tipos.js +21 -21
  112. package/dist/unlogged/unlogged/abrir-formulario.d.ts +12 -12
  113. package/dist/unlogged/unlogged/abrir-formulario.js +102 -102
  114. package/dist/unlogged/unlogged/adapt.js +7 -7
  115. package/dist/unlogged/unlogged/bypass-formulario.d.ts +200 -200
  116. package/dist/unlogged/unlogged/bypass-formulario.js +1041 -1041
  117. package/dist/unlogged/unlogged/redux-formulario.d.ts +349 -349
  118. package/dist/unlogged/unlogged/redux-formulario.js +317 -317
  119. package/dist/unlogged/unlogged/render-formulario.d.ts +54 -54
  120. package/dist/unlogged/unlogged/render-formulario.js +1485 -1485
  121. package/dist/unlogged/unlogged/render-general.d.ts +126 -126
  122. package/dist/unlogged/unlogged/render-general.js +184 -184
  123. package/dist/unlogged/unlogged/tipos.d.ts +469 -469
  124. package/dist/unlogged/unlogged/tipos.js +21 -21
  125. package/dist/unlogged/unlogged/unlogged.d.ts +1 -1
  126. package/dist/unlogged/unlogged/unlogged.js +162 -162
  127. package/package.json +1 -1
@@ -1,469 +1,469 @@
1
- import { Structure, Feedback } from "row-validator";
2
- export declare type ModoAlmacenamiento = 'session' | // cuando sea para una sola pestaña, se usa en modo directo,
3
- 'local';
4
- export declare type IdOpcion = number;
5
- export declare type IdOperativo = 'etoi211' | 'eah2022' | 'etc...';
6
- export declare type IdVariable = 'v1' | 'v2' | 'v3' | 'etc...' | 'vdominio' | '$p0';
7
- export declare type IdPregunta = 'P1' | 'P2' | 'etc...';
8
- export declare type IdBloque = 'B1' | 'B2' | 'etc...';
9
- export declare type IdFormulario = 'F1' | 'F2' | 'etc...';
10
- export declare type IdUnidadAnalisis = 'viviendas' | 'hogares' | 'personas';
11
- export declare type IdBotonFormulario = 'BF:F1' | 'BF:F2' | 'etc...';
12
- export declare type IdConsistencia = 'CONS1' | 'CONS2' | 'etc...';
13
- export declare type IdTexto = 'D30_REF' | 'MES_REF' | 'SEM_REF' | 'etc...';
14
- export declare type IdFiltro = 'FILTRO1' | 'FILTRO2' | 'etc...';
15
- export declare type IdCasillero = IdVariable | IdPregunta | IdBloque | IdFormulario | IdFiltro | IdOpcion;
16
- export declare type IdFin = 'fin';
17
- export declare type IdDestino = IdPregunta | IdBloque | IdFin | IdFiltro;
18
- export declare type Valor = string | number | null;
19
- export declare type TipocDestinos = 'P' | 'CP' | 'B' | 'FILTRO' | 'BF';
20
- export declare type Tipoc = TipocDestinos | 'F' | 'O' | 'OM' | 'CONS' | 'TEXTO' | 'LIBRE';
21
- export declare type IdTarea = 'encu' | 'recu' | 'supe';
22
- export declare type FeedbackVariable = Feedback<IdVariable, IdFin>;
23
- export declare type TipoVariables = 'texto' | 'numero' | 'fecha' | 'horas';
24
- export declare type Despliegue = 'horizontal' | 'oculta';
25
- export declare type CasilleroBase = {
26
- id_casillero?: string;
27
- tipoc: Tipoc;
28
- casillero: IdCasillero;
29
- nombre: string;
30
- salto: IdDestino | IdFin | null;
31
- ver_id: string | null;
32
- despliegueEncabezado: 'lateral' | 'superior' | null;
33
- despliegueContenido: 'vertical' | 'horizontal' | null;
34
- despliegueTipoInput: 'tel' | null;
35
- despliegueOculta: boolean | null;
36
- leer: boolean | null;
37
- aclaracion: string | null;
38
- primera_variable?: IdVariable | null;
39
- var_name?: IdVariable | null;
40
- var_name_especial?: string | null;
41
- tipovar?: TipoVariables | 'opciones' | 'si_no' | null;
42
- casilleros?: CasillerosImplementados[] | null;
43
- expresion_habilitar?: string;
44
- expresion_habilitar_js?: string;
45
- expresion_autoingresar?: string;
46
- expresion_autoingresar_js?: string;
47
- };
48
- export declare type Opcion = CasilleroBase & {
49
- tipoc: 'O';
50
- casillero: IdOpcion;
51
- casilleros: PreguntaSimple[];
52
- var_name?: null;
53
- tipovar?: null;
54
- primera_variable?: null;
55
- };
56
- export declare type OpcionSi = Opcion & {
57
- casillero: 1;
58
- nombre: 'Sí';
59
- casilleros: PreguntaSimple[];
60
- };
61
- export declare type OpcionNo = Opcion & {
62
- casillero: 2;
63
- nombre: 'No';
64
- casilleros: PreguntaSimple[];
65
- };
66
- export declare type OpcionMultiple = CasilleroBase & {
67
- tipoc: 'OM';
68
- tipovar: 'opciones';
69
- var_name: IdVariable;
70
- casilleros: [OpcionSi, OpcionNo];
71
- calculada?: boolean;
72
- libre?: boolean;
73
- valor_ns_nc: any;
74
- };
75
- export declare type PreguntaBase = CasilleroBase & {
76
- tipoc: 'P';
77
- optativo: boolean | null;
78
- casillero: IdPregunta;
79
- calculada: boolean | null;
80
- libre: boolean | null;
81
- valor_ns_nc: any;
82
- };
83
- export declare type PreguntaSimple = PreguntaBase & {
84
- tipovar: TipoVariables;
85
- var_name: IdVariable;
86
- longitud: string;
87
- salto_ns_nc: IdVariable | null;
88
- casilleros: PreguntaSimple[];
89
- };
90
- export declare type PreguntaConSiNo = PreguntaBase & {
91
- tipovar: 'si_no';
92
- var_name: IdVariable;
93
- salto_ns_nc: IdVariable | null;
94
- casilleros: [OpcionSi, OpcionNo];
95
- };
96
- export declare type PreguntaConOpciones = PreguntaBase & {
97
- tipovar: 'opciones';
98
- var_name: IdVariable;
99
- salto_ns_nc: IdVariable | null;
100
- casilleros: Opcion[];
101
- };
102
- export declare type PreguntaConOpcionesMultiples = PreguntaBase & {
103
- var_name?: null;
104
- tipovar?: null;
105
- casilleros: OpcionMultiple[];
106
- };
107
- export declare type Pregunta = PreguntaSimple | PreguntaConSiNo | PreguntaConOpciones | PreguntaConOpcionesMultiples;
108
- export declare type ConjuntoPreguntas = CasilleroBase & {
109
- tipoc: 'CP';
110
- casillero: IdPregunta;
111
- var_name?: null;
112
- tipovar?: null;
113
- casilleros: Pregunta[];
114
- };
115
- export declare type Filtro = CasilleroBase & {
116
- tipoc: 'FILTRO';
117
- casillero: IdFiltro;
118
- var_name?: null;
119
- tipovar?: null;
120
- primera_variable?: null;
121
- calculada?: null;
122
- libre?: null;
123
- };
124
- export declare type ContenidoFormulario = Bloque | Pregunta | ConjuntoPreguntas | Filtro | BotonFormulario | Consistencia | Texto;
125
- export declare type Bloque = CasilleroBase & {
126
- tipoc: 'B';
127
- casillero: IdBloque;
128
- casilleros: ContenidoFormulario[];
129
- var_name?: null;
130
- tipovar?: null;
131
- unidad_analisis?: IdUnidadAnalisis;
132
- };
133
- export declare type Consistencia = CasilleroBase & {
134
- tipoc: 'CONS';
135
- casillero: IdConsistencia;
136
- var_name?: null;
137
- tipovar?: null;
138
- primera_variable?: null;
139
- };
140
- export declare type Texto = CasilleroBase & {
141
- tipoc: 'TEXTO';
142
- casillero: IdTexto;
143
- var_name?: null;
144
- tipovar?: null;
145
- primera_variable?: null;
146
- };
147
- export declare type Libre = CasilleroBase & {
148
- tipoc: 'LIBRE';
149
- casillero: IdTexto;
150
- var_name?: null;
151
- tipovar?: null;
152
- primera_variable?: null;
153
- };
154
- export declare type BotonFormulario = CasilleroBase & {
155
- tipoc: 'BF';
156
- casillero: IdBotonFormulario;
157
- var_name?: null;
158
- tipovar?: null;
159
- primera_variable?: null;
160
- var_name_BF?: IdVariable;
161
- longitud?: string;
162
- };
163
- export declare type Formulario = CasilleroBase & {
164
- tipoc: 'F';
165
- casillero: IdFormulario;
166
- formulario_principal: boolean;
167
- casilleros: ContenidoFormulario[];
168
- var_name?: null;
169
- tipovar?: null;
170
- hermano?: true;
171
- unidad_analisis: IdUnidadAnalisis;
172
- };
173
- export declare type CasillerosImplementados = Formulario | Bloque | Filtro | ConjuntoPreguntas | Pregunta | OpcionMultiple | Opcion | BotonFormulario | Consistencia | Texto | Libre;
174
- export declare type CampoPkRaiz = 'vivienda' | 'etc...';
175
- export declare type ForPkRaiz = {
176
- formulario: IdFormulario;
177
- vivienda: IdEnc;
178
- } & {
179
- [campo in CampoPkRaiz]?: number;
180
- };
181
- export declare type CampoPk = 'vivienda' | 'hogar' | 'persona' | 'etc...';
182
- export declare type ForPk = {
183
- formulario: IdFormulario;
184
- vivienda: IdEnc;
185
- } & {
186
- [campo in CampoPk]?: number;
187
- };
188
- export declare type PlainForPk = '{"formulario":"F:F1","vivienda":"10202","persona":null}' | 'etc...';
189
- export declare type ObjetoNumeradoOArray<T> = T[] | {
190
- [n in number]: T;
191
- };
192
- export declare type RespuestasUnaUA = {
193
- [pregunta in IdVariable]: Valor;
194
- };
195
- export declare type RespuestaLasUA = {
196
- [ua in IdUnidadAnalisis]: ObjetoNumeradoOArray<Respuestas>;
197
- };
198
- export declare type Respuestas = RespuestasUnaUA & RespuestaLasUA;
199
- export declare type RespuestasRaiz = Respuestas & {
200
- resumenEstado: ResumenEstado;
201
- resumenEstadoSup: ResumenEstado;
202
- $dirty: boolean;
203
- codNoRea: string | null;
204
- codRea: number | null;
205
- codNoReaSup: string | null;
206
- codReaSup: number | null;
207
- };
208
- export declare type UnidadAnalisis = {
209
- unidad_analisis: IdUnidadAnalisis;
210
- padre?: IdUnidadAnalisis;
211
- pk_agregada: CampoPk;
212
- principal?: boolean;
213
- hijas: {
214
- [k in IdUnidadAnalisis]?: UnidadAnalisis;
215
- };
216
- };
217
- export declare type TEM = {
218
- nomcalle: string;
219
- dominio: number;
220
- sector: string;
221
- edificio: string;
222
- entrada: string;
223
- nrocatastral: string;
224
- piso: string;
225
- departamento: string;
226
- habitacion: string;
227
- casa: string;
228
- prioridad: 1 | 2 | 3;
229
- observaciones: string;
230
- seleccionado: number;
231
- cita: string;
232
- carga: string;
233
- };
234
- export declare type ResumenEstado = 'vacio' | 'con problemas' | 'incompleto' | 'ok' | 'no rea' | 'cita pactada';
235
- export declare type InfoTarea = {
236
- tarea: IdTarea;
237
- notas?: string;
238
- fecha_asignacion?: Date;
239
- asignado?: string;
240
- main_form: IdFormulario;
241
- };
242
- export declare type Visita = {
243
- fecha: string | null;
244
- hora: string | null;
245
- idper: string | null;
246
- observaciones: string | null;
247
- };
248
- export declare type DatosHdrUaPpal = {
249
- tarea: InfoTarea;
250
- tem: TEM;
251
- };
252
- export declare type IdCarga = "2020-07-07" | "2020-07-08";
253
- export declare type EstadoCarga = 'resumen' | 'relevamiento' | 'recibo';
254
- export declare type Carga = {
255
- fecha: Date;
256
- estado_carga: EstadoCarga;
257
- necesarias: number;
258
- observaciones: string;
259
- };
260
- export declare type Cargas = {
261
- [idCarga in IdCarga]: Carga;
262
- };
263
- export declare type EstructuraRowValidator = Structure<IdVariable, Valor, IdFin>;
264
- export declare type ModoDespliegue = 'metadatos' | 'relevamiento' | 'PDF';
265
- export declare type InfoFormulario = {
266
- casilleros: Formulario;
267
- estructuraRowValidator: EstructuraRowValidator;
268
- };
269
- export declare type IdResultado = 'AVERIGUAR' | 'TODO';
270
- export declare type TareasEstructura = {
271
- [idTarea in IdTarea]: {
272
- resultados: {
273
- [idResultado in IdResultado]: {
274
- descripcion: string;
275
- };
276
- };
277
- };
278
- };
279
- export declare type Estructura = {
280
- formularios: {
281
- [nombreFormulario in IdFormulario]: InfoFormulario;
282
- };
283
- unidades_analisis: {
284
- [idUnidadAnalisis in IdUnidadAnalisis]: UnidadAnalisis;
285
- };
286
- tareas: TareasEstructura;
287
- timestamp: number;
288
- operativo: IdOperativo;
289
- configSorteo: ConfiguracionSorteo;
290
- noReas: {
291
- no_rea: string;
292
- descripcion: string;
293
- grupo: string;
294
- variable: string;
295
- valor: string;
296
- grupo0: string;
297
- }[];
298
- noReasSup: {
299
- no_rea_sup: string;
300
- desc_norea_sup: string;
301
- grupo_sup: string;
302
- variable_sup: string;
303
- valor_sup: string;
304
- grupo0_sup: string;
305
- }[];
306
- };
307
- export declare type IdEnc = 130031 | 130032;
308
- export declare type InformacionHdr = {
309
- [enc in IdEnc]: DatosHdrUaPpal;
310
- };
311
- export declare type CasoState = {
312
- opciones: {
313
- forPk: ForPk | null;
314
- pilaForPk: ForPk[];
315
- modoDespliegue: ModoDespliegue;
316
- bienvenido: boolean;
317
- modoDirecto: boolean;
318
- modoBorrarRespuesta: IdVariable | null;
319
- conCampoOpciones: boolean;
320
- saltoAutomatico: boolean;
321
- };
322
- modo: {
323
- demo: boolean;
324
- };
325
- };
326
- export declare type DefOperativo = {
327
- esNoRea: (respuestas: Respuestas) => {
328
- codNoRea: string | null;
329
- esNoRea: boolean;
330
- };
331
- esNoReaSup: (respuestas: Respuestas) => {
332
- codNoReaSup: string | null;
333
- esNoReaSup: boolean;
334
- };
335
- esRealizada: (respuestas: Respuestas) => {
336
- codRea: number | null;
337
- esRea: boolean;
338
- };
339
- esRealizadaSup: (respuestas: Respuestas) => {
340
- codReaSup: number | null;
341
- esReaSup: boolean;
342
- };
343
- UAprincipal: IdUnidadAnalisis;
344
- defUA: {
345
- [i in IdUnidadAnalisis]: {
346
- pk: IdVariable;
347
- incluidas: IdUnidadAnalisis[];
348
- idsFor: IdFormulario[];
349
- };
350
- };
351
- defFor: {
352
- [f in IdFormulario]: {
353
- hermano?: true;
354
- };
355
- };
356
- };
357
- export declare type DatosByPassPersistibles = {
358
- respuestas: {
359
- [ua in IdUnidadAnalisis]: RespuestasRaiz[];
360
- };
361
- modoAlmacenamiento: ModoAlmacenamiento;
362
- persona: string;
363
- tarea: IdTarea;
364
- idper: string;
365
- cargas: Cargas;
366
- informacionHdr: InformacionHdr;
367
- soloLectura: boolean;
368
- token?: string;
369
- num_sincro?: number;
370
- timestampEstructura?: number;
371
- };
372
- declare type ConfiguracionSorteoTabla = {
373
- metodo: "tabla";
374
- param_metodo: {
375
- tabla: string[];
376
- var_letra: IdVariable;
377
- };
378
- };
379
- declare type ConfiguracionSorteoHash = {
380
- metodo: "hash";
381
- param_metodo: {
382
- var_coef: [
383
- {
384
- var: IdVariable;
385
- coef: number;
386
- },
387
- {
388
- var: IdVariable;
389
- coef: number;
390
- }
391
- ];
392
- divisor: number;
393
- };
394
- };
395
- export declare type ConfiguracionSorteo = {
396
- [key in IdFormulario]: ConfiguracionSorteoFormulario;
397
- };
398
- export declare type ConfiguracionSorteoFormulario = {
399
- unidad_analisis: IdUnidadAnalisis;
400
- unidad_analisis_padre: IdUnidadAnalisis;
401
- expr_incompletitud: {
402
- [key in number]: {
403
- dominio: number;
404
- expr: string;
405
- };
406
- };
407
- expr_incompletitud_js: {
408
- [key in number]: {
409
- dominio: number;
410
- expr: string;
411
- };
412
- };
413
- disparador: IdVariable;
414
- filtro: {
415
- [key in number]: {
416
- dominio: number;
417
- expr: string;
418
- };
419
- };
420
- filtro_js: {
421
- [key in number]: {
422
- dominio: number;
423
- expr: string;
424
- };
425
- };
426
- orden: {
427
- variable: IdVariable;
428
- orden: 1 | -1;
429
- }[];
430
- parametros: IdVariable[];
431
- cantidad_sorteables: IdVariable;
432
- cantidad_total: IdVariable;
433
- resultado: IdVariable;
434
- resultado_manual: IdVariable;
435
- sorteado_mostrar?: {
436
- source: IdVariable;
437
- target: IdVariable;
438
- }[];
439
- incompletas: IdVariable;
440
- variableBotonFormularioUA: IdVariable;
441
- variableBotonFormularioUAIndividual?: IdVariable;
442
- id_formulario_individual?: IdFormulario;
443
- id_formulario_padre?: IdFormulario;
444
- } & (ConfiguracionSorteoHash | ConfiguracionSorteoTabla);
445
- export declare function toPlainForPk(forPk: ForPk): PlainForPk;
446
- export declare var iterator: <T>(o: ObjetoNumeradoOArray<T>) => Iterable<T>;
447
- export declare var empty: <T>(o: ObjetoNumeradoOArray<T> | null | undefined) => boolean;
448
- declare global {
449
- namespace myOwn {
450
- interface AddrParams {
451
- state_forPk: string;
452
- state_pilaForPk: string;
453
- }
454
- }
455
- }
456
- export declare type DireccionAccion = 'avance' | 'retroceso' | 'blanqueo';
457
- export declare type EstadoAccion = {
458
- operativo: string;
459
- estado: string;
460
- eaccion: string;
461
- condicion: string;
462
- estado_destino: string;
463
- eaccion_direccion: DireccionAccion;
464
- path_icono_svg: string;
465
- nombre_procedure: string;
466
- desactiva_boton: boolean;
467
- confirma: boolean;
468
- };
469
- export {};
1
+ import { Structure, Feedback } from "row-validator";
2
+ export type ModoAlmacenamiento = 'session' | // cuando sea para una sola pestaña, se usa en modo directo,
3
+ 'local';
4
+ export type IdOpcion = number;
5
+ export type IdOperativo = 'etoi211' | 'eah2022' | 'etc...';
6
+ export type IdVariable = 'v1' | 'v2' | 'v3' | 'etc...' | 'vdominio' | '$p0';
7
+ export type IdPregunta = 'P1' | 'P2' | 'etc...';
8
+ export type IdBloque = 'B1' | 'B2' | 'etc...';
9
+ export type IdFormulario = 'F1' | 'F2' | 'etc...';
10
+ export type IdUnidadAnalisis = 'viviendas' | 'hogares' | 'personas';
11
+ export type IdBotonFormulario = 'BF:F1' | 'BF:F2' | 'etc...';
12
+ export type IdConsistencia = 'CONS1' | 'CONS2' | 'etc...';
13
+ export type IdTexto = 'D30_REF' | 'MES_REF' | 'SEM_REF' | 'etc...';
14
+ export type IdFiltro = 'FILTRO1' | 'FILTRO2' | 'etc...';
15
+ export type IdCasillero = IdVariable | IdPregunta | IdBloque | IdFormulario | IdFiltro | IdOpcion;
16
+ export type IdFin = 'fin';
17
+ export type IdDestino = IdPregunta | IdBloque | IdFin | IdFiltro;
18
+ export type Valor = string | number | null;
19
+ export type TipocDestinos = 'P' | 'CP' | 'B' | 'FILTRO' | 'BF';
20
+ export type Tipoc = TipocDestinos | 'F' | 'O' | 'OM' | 'CONS' | 'TEXTO' | 'LIBRE';
21
+ export type IdTarea = 'encu' | 'recu' | 'supe';
22
+ export type FeedbackVariable = Feedback<IdVariable, IdFin>;
23
+ export type TipoVariables = 'texto' | 'numero' | 'fecha' | 'horas';
24
+ export type Despliegue = 'horizontal' | 'oculta';
25
+ export type CasilleroBase = {
26
+ id_casillero?: string;
27
+ tipoc: Tipoc;
28
+ casillero: IdCasillero;
29
+ nombre: string;
30
+ salto: IdDestino | IdFin | null;
31
+ ver_id: string | null;
32
+ despliegueEncabezado: 'lateral' | 'superior' | null;
33
+ despliegueContenido: 'vertical' | 'horizontal' | null;
34
+ despliegueTipoInput: 'tel' | null;
35
+ despliegueOculta: boolean | null;
36
+ leer: boolean | null;
37
+ aclaracion: string | null;
38
+ primera_variable?: IdVariable | null;
39
+ var_name?: IdVariable | null;
40
+ var_name_especial?: string | null;
41
+ tipovar?: TipoVariables | 'opciones' | 'si_no' | null;
42
+ casilleros?: CasillerosImplementados[] | null;
43
+ expresion_habilitar?: string;
44
+ expresion_habilitar_js?: string;
45
+ expresion_autoingresar?: string;
46
+ expresion_autoingresar_js?: string;
47
+ };
48
+ export type Opcion = CasilleroBase & {
49
+ tipoc: 'O';
50
+ casillero: IdOpcion;
51
+ casilleros: PreguntaSimple[];
52
+ var_name?: null;
53
+ tipovar?: null;
54
+ primera_variable?: null;
55
+ };
56
+ export type OpcionSi = Opcion & {
57
+ casillero: 1;
58
+ nombre: 'Sí';
59
+ casilleros: PreguntaSimple[];
60
+ };
61
+ export type OpcionNo = Opcion & {
62
+ casillero: 2;
63
+ nombre: 'No';
64
+ casilleros: PreguntaSimple[];
65
+ };
66
+ export type OpcionMultiple = CasilleroBase & {
67
+ tipoc: 'OM';
68
+ tipovar: 'opciones';
69
+ var_name: IdVariable;
70
+ casilleros: [OpcionSi, OpcionNo];
71
+ calculada?: boolean;
72
+ libre?: boolean;
73
+ valor_ns_nc: any;
74
+ };
75
+ export type PreguntaBase = CasilleroBase & {
76
+ tipoc: 'P';
77
+ optativo: boolean | null;
78
+ casillero: IdPregunta;
79
+ calculada: boolean | null;
80
+ libre: boolean | null;
81
+ valor_ns_nc: any;
82
+ };
83
+ export type PreguntaSimple = PreguntaBase & {
84
+ tipovar: TipoVariables;
85
+ var_name: IdVariable;
86
+ longitud: string;
87
+ salto_ns_nc: IdVariable | null;
88
+ casilleros: PreguntaSimple[];
89
+ };
90
+ export type PreguntaConSiNo = PreguntaBase & {
91
+ tipovar: 'si_no';
92
+ var_name: IdVariable;
93
+ salto_ns_nc: IdVariable | null;
94
+ casilleros: [OpcionSi, OpcionNo];
95
+ };
96
+ export type PreguntaConOpciones = PreguntaBase & {
97
+ tipovar: 'opciones';
98
+ var_name: IdVariable;
99
+ salto_ns_nc: IdVariable | null;
100
+ casilleros: Opcion[];
101
+ };
102
+ export type PreguntaConOpcionesMultiples = PreguntaBase & {
103
+ var_name?: null;
104
+ tipovar?: null;
105
+ casilleros: OpcionMultiple[];
106
+ };
107
+ export type Pregunta = PreguntaSimple | PreguntaConSiNo | PreguntaConOpciones | PreguntaConOpcionesMultiples;
108
+ export type ConjuntoPreguntas = CasilleroBase & {
109
+ tipoc: 'CP';
110
+ casillero: IdPregunta;
111
+ var_name?: null;
112
+ tipovar?: null;
113
+ casilleros: Pregunta[];
114
+ };
115
+ export type Filtro = CasilleroBase & {
116
+ tipoc: 'FILTRO';
117
+ casillero: IdFiltro;
118
+ var_name?: null;
119
+ tipovar?: null;
120
+ primera_variable?: null;
121
+ calculada?: null;
122
+ libre?: null;
123
+ };
124
+ export type ContenidoFormulario = Bloque | Pregunta | ConjuntoPreguntas | Filtro | BotonFormulario | Consistencia | Texto;
125
+ export type Bloque = CasilleroBase & {
126
+ tipoc: 'B';
127
+ casillero: IdBloque;
128
+ casilleros: ContenidoFormulario[];
129
+ var_name?: null;
130
+ tipovar?: null;
131
+ unidad_analisis?: IdUnidadAnalisis;
132
+ };
133
+ export type Consistencia = CasilleroBase & {
134
+ tipoc: 'CONS';
135
+ casillero: IdConsistencia;
136
+ var_name?: null;
137
+ tipovar?: null;
138
+ primera_variable?: null;
139
+ };
140
+ export type Texto = CasilleroBase & {
141
+ tipoc: 'TEXTO';
142
+ casillero: IdTexto;
143
+ var_name?: null;
144
+ tipovar?: null;
145
+ primera_variable?: null;
146
+ };
147
+ export type Libre = CasilleroBase & {
148
+ tipoc: 'LIBRE';
149
+ casillero: IdTexto;
150
+ var_name?: null;
151
+ tipovar?: null;
152
+ primera_variable?: null;
153
+ };
154
+ export type BotonFormulario = CasilleroBase & {
155
+ tipoc: 'BF';
156
+ casillero: IdBotonFormulario;
157
+ var_name?: null;
158
+ tipovar?: null;
159
+ primera_variable?: null;
160
+ var_name_BF?: IdVariable;
161
+ longitud?: string;
162
+ };
163
+ export type Formulario = CasilleroBase & {
164
+ tipoc: 'F';
165
+ casillero: IdFormulario;
166
+ formulario_principal: boolean;
167
+ casilleros: ContenidoFormulario[];
168
+ var_name?: null;
169
+ tipovar?: null;
170
+ hermano?: true;
171
+ unidad_analisis: IdUnidadAnalisis;
172
+ };
173
+ export type CasillerosImplementados = Formulario | Bloque | Filtro | ConjuntoPreguntas | Pregunta | OpcionMultiple | Opcion | BotonFormulario | Consistencia | Texto | Libre;
174
+ export type CampoPkRaiz = 'vivienda' | 'etc...';
175
+ export type ForPkRaiz = {
176
+ formulario: IdFormulario;
177
+ vivienda: IdEnc;
178
+ } & {
179
+ [campo in CampoPkRaiz]?: number;
180
+ };
181
+ export type CampoPk = 'vivienda' | 'hogar' | 'persona' | 'etc...';
182
+ export type ForPk = {
183
+ formulario: IdFormulario;
184
+ vivienda: IdEnc;
185
+ } & {
186
+ [campo in CampoPk]?: number;
187
+ };
188
+ export type PlainForPk = '{"formulario":"F:F1","vivienda":"10202","persona":null}' | 'etc...';
189
+ export type ObjetoNumeradoOArray<T> = T[] | {
190
+ [n in number]: T;
191
+ };
192
+ export type RespuestasUnaUA = {
193
+ [pregunta in IdVariable]: Valor;
194
+ };
195
+ export type RespuestaLasUA = {
196
+ [ua in IdUnidadAnalisis]: ObjetoNumeradoOArray<Respuestas>;
197
+ };
198
+ export type Respuestas = RespuestasUnaUA & RespuestaLasUA;
199
+ export type RespuestasRaiz = Respuestas & {
200
+ resumenEstado: ResumenEstado;
201
+ resumenEstadoSup: ResumenEstado;
202
+ $dirty: boolean;
203
+ codNoRea: string | null;
204
+ codRea: number | null;
205
+ codNoReaSup: string | null;
206
+ codReaSup: number | null;
207
+ };
208
+ export type UnidadAnalisis = {
209
+ unidad_analisis: IdUnidadAnalisis;
210
+ padre?: IdUnidadAnalisis;
211
+ pk_agregada: CampoPk;
212
+ principal?: boolean;
213
+ hijas: {
214
+ [k in IdUnidadAnalisis]?: UnidadAnalisis;
215
+ };
216
+ };
217
+ export type TEM = {
218
+ nomcalle: string;
219
+ dominio: number;
220
+ sector: string;
221
+ edificio: string;
222
+ entrada: string;
223
+ nrocatastral: string;
224
+ piso: string;
225
+ departamento: string;
226
+ habitacion: string;
227
+ casa: string;
228
+ prioridad: 1 | 2 | 3;
229
+ observaciones: string;
230
+ seleccionado: number;
231
+ cita: string;
232
+ carga: string;
233
+ };
234
+ export type ResumenEstado = 'vacio' | 'con problemas' | 'incompleto' | 'ok' | 'no rea' | 'cita pactada';
235
+ export type InfoTarea = {
236
+ tarea: IdTarea;
237
+ notas?: string;
238
+ fecha_asignacion?: Date;
239
+ asignado?: string;
240
+ main_form: IdFormulario;
241
+ };
242
+ export type Visita = {
243
+ fecha: string | null;
244
+ hora: string | null;
245
+ idper: string | null;
246
+ observaciones: string | null;
247
+ };
248
+ export type DatosHdrUaPpal = {
249
+ tarea: InfoTarea;
250
+ tem: TEM;
251
+ };
252
+ export type IdCarga = "2020-07-07" | "2020-07-08";
253
+ export type EstadoCarga = 'resumen' | 'relevamiento' | 'recibo';
254
+ export type Carga = {
255
+ fecha: Date;
256
+ estado_carga: EstadoCarga;
257
+ necesarias: number;
258
+ observaciones: string;
259
+ };
260
+ export type Cargas = {
261
+ [idCarga in IdCarga]: Carga;
262
+ };
263
+ export type EstructuraRowValidator = Structure<IdVariable, Valor, IdFin>;
264
+ export type ModoDespliegue = 'metadatos' | 'relevamiento' | 'PDF';
265
+ export type InfoFormulario = {
266
+ casilleros: Formulario;
267
+ estructuraRowValidator: EstructuraRowValidator;
268
+ };
269
+ export type IdResultado = 'AVERIGUAR' | 'TODO';
270
+ export type TareasEstructura = {
271
+ [idTarea in IdTarea]: {
272
+ resultados: {
273
+ [idResultado in IdResultado]: {
274
+ descripcion: string;
275
+ };
276
+ };
277
+ };
278
+ };
279
+ export type Estructura = {
280
+ formularios: {
281
+ [nombreFormulario in IdFormulario]: InfoFormulario;
282
+ };
283
+ unidades_analisis: {
284
+ [idUnidadAnalisis in IdUnidadAnalisis]: UnidadAnalisis;
285
+ };
286
+ tareas: TareasEstructura;
287
+ timestamp: number;
288
+ operativo: IdOperativo;
289
+ configSorteo: ConfiguracionSorteo;
290
+ noReas: {
291
+ no_rea: string;
292
+ descripcion: string;
293
+ grupo: string;
294
+ variable: string;
295
+ valor: string;
296
+ grupo0: string;
297
+ }[];
298
+ noReasSup: {
299
+ no_rea_sup: string;
300
+ desc_norea_sup: string;
301
+ grupo_sup: string;
302
+ variable_sup: string;
303
+ valor_sup: string;
304
+ grupo0_sup: string;
305
+ }[];
306
+ };
307
+ export type IdEnc = 130031 | 130032;
308
+ export type InformacionHdr = {
309
+ [enc in IdEnc]: DatosHdrUaPpal;
310
+ };
311
+ export type CasoState = {
312
+ opciones: {
313
+ forPk: ForPk | null;
314
+ pilaForPk: ForPk[];
315
+ modoDespliegue: ModoDespliegue;
316
+ bienvenido: boolean;
317
+ modoDirecto: boolean;
318
+ modoBorrarRespuesta: IdVariable | null;
319
+ conCampoOpciones: boolean;
320
+ saltoAutomatico: boolean;
321
+ };
322
+ modo: {
323
+ demo: boolean;
324
+ };
325
+ };
326
+ export type DefOperativo = {
327
+ esNoRea: (respuestas: Respuestas) => {
328
+ codNoRea: string | null;
329
+ esNoRea: boolean;
330
+ };
331
+ esNoReaSup: (respuestas: Respuestas) => {
332
+ codNoReaSup: string | null;
333
+ esNoReaSup: boolean;
334
+ };
335
+ esRealizada: (respuestas: Respuestas) => {
336
+ codRea: number | null;
337
+ esRea: boolean;
338
+ };
339
+ esRealizadaSup: (respuestas: Respuestas) => {
340
+ codReaSup: number | null;
341
+ esReaSup: boolean;
342
+ };
343
+ UAprincipal: IdUnidadAnalisis;
344
+ defUA: {
345
+ [i in IdUnidadAnalisis]: {
346
+ pk: IdVariable;
347
+ incluidas: IdUnidadAnalisis[];
348
+ idsFor: IdFormulario[];
349
+ };
350
+ };
351
+ defFor: {
352
+ [f in IdFormulario]: {
353
+ hermano?: true;
354
+ };
355
+ };
356
+ };
357
+ export type DatosByPassPersistibles = {
358
+ respuestas: {
359
+ [ua in IdUnidadAnalisis]: RespuestasRaiz[];
360
+ };
361
+ modoAlmacenamiento: ModoAlmacenamiento;
362
+ persona: string;
363
+ tarea: IdTarea;
364
+ idper: string;
365
+ cargas: Cargas;
366
+ informacionHdr: InformacionHdr;
367
+ soloLectura: boolean;
368
+ token?: string;
369
+ num_sincro?: number;
370
+ timestampEstructura?: number;
371
+ };
372
+ type ConfiguracionSorteoTabla = {
373
+ metodo: "tabla";
374
+ param_metodo: {
375
+ tabla: string[];
376
+ var_letra: IdVariable;
377
+ };
378
+ };
379
+ type ConfiguracionSorteoHash = {
380
+ metodo: "hash";
381
+ param_metodo: {
382
+ var_coef: [
383
+ {
384
+ var: IdVariable;
385
+ coef: number;
386
+ },
387
+ {
388
+ var: IdVariable;
389
+ coef: number;
390
+ }
391
+ ];
392
+ divisor: number;
393
+ };
394
+ };
395
+ export type ConfiguracionSorteo = {
396
+ [key in IdFormulario]: ConfiguracionSorteoFormulario;
397
+ };
398
+ export type ConfiguracionSorteoFormulario = {
399
+ unidad_analisis: IdUnidadAnalisis;
400
+ unidad_analisis_padre: IdUnidadAnalisis;
401
+ expr_incompletitud: {
402
+ [key in number]: {
403
+ dominio: number;
404
+ expr: string;
405
+ };
406
+ };
407
+ expr_incompletitud_js: {
408
+ [key in number]: {
409
+ dominio: number;
410
+ expr: string;
411
+ };
412
+ };
413
+ disparador: IdVariable;
414
+ filtro: {
415
+ [key in number]: {
416
+ dominio: number;
417
+ expr: string;
418
+ };
419
+ };
420
+ filtro_js: {
421
+ [key in number]: {
422
+ dominio: number;
423
+ expr: string;
424
+ };
425
+ };
426
+ orden: {
427
+ variable: IdVariable;
428
+ orden: 1 | -1;
429
+ }[];
430
+ parametros: IdVariable[];
431
+ cantidad_sorteables: IdVariable;
432
+ cantidad_total: IdVariable;
433
+ resultado: IdVariable;
434
+ resultado_manual: IdVariable;
435
+ sorteado_mostrar?: {
436
+ source: IdVariable;
437
+ target: IdVariable;
438
+ }[];
439
+ incompletas: IdVariable;
440
+ variableBotonFormularioUA: IdVariable;
441
+ variableBotonFormularioUAIndividual?: IdVariable;
442
+ id_formulario_individual?: IdFormulario;
443
+ id_formulario_padre?: IdFormulario;
444
+ } & (ConfiguracionSorteoHash | ConfiguracionSorteoTabla);
445
+ export declare function toPlainForPk(forPk: ForPk): PlainForPk;
446
+ export declare var iterator: <T>(o: ObjetoNumeradoOArray<T>) => Iterable<T>;
447
+ export declare var empty: <T>(o: ObjetoNumeradoOArray<T> | null | undefined) => boolean;
448
+ declare global {
449
+ namespace myOwn {
450
+ interface AddrParams {
451
+ state_forPk: string;
452
+ state_pilaForPk: string;
453
+ }
454
+ }
455
+ }
456
+ export type DireccionAccion = 'avance' | 'retroceso' | 'blanqueo';
457
+ export type EstadoAccion = {
458
+ operativo: string;
459
+ estado: string;
460
+ eaccion: string;
461
+ condicion: string;
462
+ estado_destino: string;
463
+ eaccion_direccion: DireccionAccion;
464
+ path_icono_svg: string;
465
+ nombre_procedure: string;
466
+ desactiva_boton: boolean;
467
+ confirma: boolean;
468
+ };
469
+ export {};