@tmlmobilidade/types 20260803.15.9 → 20260805.229.7
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/locations/base.d.ts +9 -0
- package/dist/locations/base.js +1 -0
- package/dist/locations/census.d.ts +1 -211
- package/dist/locations/census.js +211 -1
- package/dist/locations/district.d.ts +3 -11
- package/dist/locations/district.js +0 -1
- package/dist/locations/index.d.ts +1 -2
- package/dist/locations/index.js +1 -2
- package/dist/locations/locality.d.ts +3 -11
- package/dist/locations/locality.js +0 -1
- package/dist/locations/location.d.ts +16 -0
- package/dist/locations/location.js +2 -0
- package/dist/locations/municipality.d.ts +3 -11
- package/dist/locations/municipality.js +0 -1
- package/dist/locations/parish.d.ts +3 -11
- package/dist/locations/parish.js +0 -1
- package/dist/offer/pattern.d.ts +66 -66
- package/package.json +1 -1
- package/dist/locations/queries.d.ts +0 -117
- package/dist/locations/queries.js +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,211 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* This type represents the properties of a Census,
|
|
3
|
-
* both for the geojson feature and the flattened codebase type.
|
|
4
|
-
*/
|
|
5
|
-
export interface CensusProperties {
|
|
6
|
-
DT21: string;
|
|
7
|
-
DTMN21: string;
|
|
8
|
-
DTMNFR21: string;
|
|
9
|
-
DTMNFRSEC21: string;
|
|
10
|
-
fid: number;
|
|
11
|
-
N_ADP_1OU2_PESSOAS: number;
|
|
12
|
-
N_ADP_3OU4_PESSOAS: number;
|
|
13
|
-
N_ADP_5EMAIS_PESSOAS: number;
|
|
14
|
-
N_AGREGADOS_DOMESTICOS_PRIVADOS: number;
|
|
15
|
-
N_AGREGADOS_INSTITUCIONAIS: number;
|
|
16
|
-
N_ALOJAMENTOS_COLECTIVOS: number;
|
|
17
|
-
N_ALOJAMENTOS_FAM_CLASS_RES_SECUNDARIA: number;
|
|
18
|
-
N_ALOJAMENTOS_FAM_CLASS_VAGOS_OUTR_MOTIVOS: number;
|
|
19
|
-
N_ALOJAMENTOS_FAM_CLASS_VAGOS_VEND_ARRE: number;
|
|
20
|
-
N_ALOJAMENTOS_FAM_CLASSICOS: number;
|
|
21
|
-
N_ALOJAMENTOS_FAM_N_CLASSICOS: number;
|
|
22
|
-
N_ALOJAMENTOS_FAMILIARES: number;
|
|
23
|
-
N_ALOJAMENTOS_TOTAL: number;
|
|
24
|
-
N_ALOJAMENTOS_VAGOS_TOTAL: number;
|
|
25
|
-
N_CLASSICOS_RES_HABITUAL: number;
|
|
26
|
-
N_EDIFICIOS_1OU2_PISOS: number;
|
|
27
|
-
N_EDIFICIOS_3OU4_PISOS: number;
|
|
28
|
-
N_EDIFICIOS_5OU_MAIS_PISOS: number;
|
|
29
|
-
N_EDIFICIOS_CLASSICOS: number;
|
|
30
|
-
N_EDIFICIOS_CLASSICOS_1OU2_ALOJ: number;
|
|
31
|
-
N_EDIFICIOS_CLASSICOS_3OUMAIS_ALOJ: 0;
|
|
32
|
-
N_EDIFICIOS_CLASSICOS_OUTRO: number;
|
|
33
|
-
N_EDIFICIOS_COM_ELEVADOR: number;
|
|
34
|
-
N_EDIFICIOS_COM_NEC_REPARACAO: number;
|
|
35
|
-
N_EDIFICIOS_COM_NEC_REPARACAO_LIGEIRAS: number;
|
|
36
|
-
N_EDIFICIOS_COM_NEC_REPARACAO_MEDIAS: number;
|
|
37
|
-
N_EDIFICIOS_COM_NEC_REPARACAO_PROFUNDAS: number;
|
|
38
|
-
N_EDIFICIOS_CONSTR_1919A1945: number;
|
|
39
|
-
N_EDIFICIOS_CONSTR_1946A1960: number;
|
|
40
|
-
N_EDIFICIOS_CONSTR_1961A1980: number;
|
|
41
|
-
N_EDIFICIOS_CONSTR_1981A1990: number;
|
|
42
|
-
N_EDIFICIOS_CONSTR_1991A2000: number;
|
|
43
|
-
N_EDIFICIOS_CONSTR_2001A2005: number;
|
|
44
|
-
N_EDIFICIOS_CONSTR_2006A2010: number;
|
|
45
|
-
N_EDIFICIOS_CONSTR_2011A2015: number;
|
|
46
|
-
N_EDIFICIOS_CONSTR_2016A2021: number;
|
|
47
|
-
N_EDIFICIOS_CONSTR_ANTES_1919: number;
|
|
48
|
-
N_EDIFICIOS_EXCLUS_RESIDENCIAL: number;
|
|
49
|
-
N_EDIFICIOS_PINCIPAL_NAO_RESIDENCIAL: number;
|
|
50
|
-
N_EDIFICIOS_PINCIPAL_RESIDENCIAL: number;
|
|
51
|
-
N_EDIFICIOS_SEM_ELEVADOR: number;
|
|
52
|
-
N_EDIFICIOS_SEM_NEC_REPARACAO: number;
|
|
53
|
-
N_INDIVIDUO_ENSINCOMP_1BAS: number;
|
|
54
|
-
N_INDIVIDUO_ENSINCOMP_1BAS_H: number;
|
|
55
|
-
N_INDIVIDUO_ENSINCOMP_1BAS_M: number;
|
|
56
|
-
N_INDIVIDUO_ENSINCOMP_2BAS: number;
|
|
57
|
-
N_INDIVIDUO_ENSINCOMP_2BAS_H: number;
|
|
58
|
-
N_INDIVIDUO_ENSINCOMP_2BAS_M: number;
|
|
59
|
-
N_INDIVIDUO_ENSINCOMP_3BAS: number;
|
|
60
|
-
N_INDIVIDUO_ENSINCOMP_3BAS_H: number;
|
|
61
|
-
N_INDIVIDUO_ENSINCOMP_3BAS_M: number;
|
|
62
|
-
N_INDIVIDUO_ENSINCOMP_NENHUM: number;
|
|
63
|
-
N_INDIVIDUO_ENSINCOMP_NENHUM_H: number;
|
|
64
|
-
N_INDIVIDUO_ENSINCOMP_NENHUM_M: number;
|
|
65
|
-
N_INDIVIDUO_ENSINCOMP_SEC_E_POSSEC: number;
|
|
66
|
-
N_INDIVIDUO_ENSINCOMP_SEC_E_POSSEC_H: number;
|
|
67
|
-
N_INDIVIDUO_ENSINCOMP_SEC_E_POSSEC_M: number;
|
|
68
|
-
N_INDIVIDUO_ENSINCOMP_SUP: number;
|
|
69
|
-
N_INDIVIDUO_ENSINCOMP_SUP_H: number;
|
|
70
|
-
N_INDIVIDUO_ENSINCOMP_SUP_M: number;
|
|
71
|
-
N_INDIVIDUOS: number;
|
|
72
|
-
N_INDIVIDUOS_0A4: number;
|
|
73
|
-
N_INDIVIDUOS_0A4_H: number;
|
|
74
|
-
N_INDIVIDUOS_0A4_M: number;
|
|
75
|
-
N_INDIVIDUOS_0A14: number;
|
|
76
|
-
N_INDIVIDUOS_0A14_H: number;
|
|
77
|
-
N_INDIVIDUOS_0A14_M: number;
|
|
78
|
-
N_INDIVIDUOS_5A9: number;
|
|
79
|
-
N_INDIVIDUOS_5A9_H: number;
|
|
80
|
-
N_INDIVIDUOS_5A9_M: number;
|
|
81
|
-
N_INDIVIDUOS_10A14: number;
|
|
82
|
-
N_INDIVIDUOS_10A14_H: number;
|
|
83
|
-
N_INDIVIDUOS_10A14_M: number;
|
|
84
|
-
N_INDIVIDUOS_15A19: number;
|
|
85
|
-
N_INDIVIDUOS_15A19_H: number;
|
|
86
|
-
N_INDIVIDUOS_15A19_M: number;
|
|
87
|
-
N_INDIVIDUOS_15A24: number;
|
|
88
|
-
N_INDIVIDUOS_15A24_H: number;
|
|
89
|
-
N_INDIVIDUOS_15A24_M: number;
|
|
90
|
-
N_INDIVIDUOS_20A24: number;
|
|
91
|
-
N_INDIVIDUOS_20A24_H: number;
|
|
92
|
-
N_INDIVIDUOS_20A24_M: number;
|
|
93
|
-
N_INDIVIDUOS_25A29: number;
|
|
94
|
-
N_INDIVIDUOS_25A29_H: number;
|
|
95
|
-
N_INDIVIDUOS_25A29_M: number;
|
|
96
|
-
N_INDIVIDUOS_25A64: number;
|
|
97
|
-
N_INDIVIDUOS_25A64_H: number;
|
|
98
|
-
N_INDIVIDUOS_25A64_M: number;
|
|
99
|
-
N_INDIVIDUOS_30A34: number;
|
|
100
|
-
N_INDIVIDUOS_30A34_H: number;
|
|
101
|
-
N_INDIVIDUOS_30A34_M: number;
|
|
102
|
-
N_INDIVIDUOS_35A39: number;
|
|
103
|
-
N_INDIVIDUOS_35A39_H: number;
|
|
104
|
-
N_INDIVIDUOS_35A39_M: number;
|
|
105
|
-
N_INDIVIDUOS_40A44: number;
|
|
106
|
-
N_INDIVIDUOS_40A44_H: number;
|
|
107
|
-
N_INDIVIDUOS_40A44_M: number;
|
|
108
|
-
N_INDIVIDUOS_45A49: number;
|
|
109
|
-
N_INDIVIDUOS_45A49_H: number;
|
|
110
|
-
N_INDIVIDUOS_45A49_M: number;
|
|
111
|
-
N_INDIVIDUOS_50A54: number;
|
|
112
|
-
N_INDIVIDUOS_50A54_H: number;
|
|
113
|
-
N_INDIVIDUOS_50A54_M: number;
|
|
114
|
-
N_INDIVIDUOS_55A59: number;
|
|
115
|
-
N_INDIVIDUOS_55A59_H: number;
|
|
116
|
-
N_INDIVIDUOS_55A59_M: number;
|
|
117
|
-
N_INDIVIDUOS_60A64: number;
|
|
118
|
-
N_INDIVIDUOS_60A64_H: number;
|
|
119
|
-
N_INDIVIDUOS_60A64_M: number;
|
|
120
|
-
N_INDIVIDUOS_65_OU_MAIS: number;
|
|
121
|
-
N_INDIVIDUOS_65_OU_MAIS_H: number;
|
|
122
|
-
N_INDIVIDUOS_65_OU_MAIS_M: number;
|
|
123
|
-
N_INDIVIDUOS_65A69: number;
|
|
124
|
-
N_INDIVIDUOS_65A69_H: number;
|
|
125
|
-
N_INDIVIDUOS_65A69_M: number;
|
|
126
|
-
N_INDIVIDUOS_70A74: number;
|
|
127
|
-
N_INDIVIDUOS_70A74_H: number;
|
|
128
|
-
N_INDIVIDUOS_70A74_M: number;
|
|
129
|
-
N_INDIVIDUOS_75_OU_MAIS: number;
|
|
130
|
-
N_INDIVIDUOS_75_OU_MAIS_H: number;
|
|
131
|
-
N_INDIVIDUOS_75_OU_MAIS_M: number;
|
|
132
|
-
N_INDIVIDUOS_COM_ATIVIDADE_ECONOMICA: number;
|
|
133
|
-
N_INDIVIDUOS_COM_ATIVIDADE_ECONOMICA_H: number;
|
|
134
|
-
N_INDIVIDUOS_COM_ATIVIDADE_ECONOMICA_M: number;
|
|
135
|
-
N_INDIVIDUOS_DESEMPREGADOS_1EMP: number;
|
|
136
|
-
N_INDIVIDUOS_DESEMPREGADOS_1EMP_H: number;
|
|
137
|
-
N_INDIVIDUOS_DESEMPREGADOS_1EMP_M: number;
|
|
138
|
-
N_INDIVIDUOS_DESEMPREGADOS_NOVOEMP: number;
|
|
139
|
-
N_INDIVIDUOS_DESEMPREGADOS_NOVOEMP_H: number;
|
|
140
|
-
N_INDIVIDUOS_DESEMPREGADOS_NOVOEMP_M: number;
|
|
141
|
-
N_INDIVIDUOS_DOMESTICOS: number;
|
|
142
|
-
N_INDIVIDUOS_DOMESTICOS_H: number;
|
|
143
|
-
N_INDIVIDUOS_DOMESTICOS_M: number;
|
|
144
|
-
N_INDIVIDUOS_EMPREG_SECT_PRIM: number;
|
|
145
|
-
N_INDIVIDUOS_EMPREG_SECT_PRIM_H: number;
|
|
146
|
-
N_INDIVIDUOS_EMPREG_SECT_PRIM_M: number;
|
|
147
|
-
N_INDIVIDUOS_EMPREG_SECT_SEC: number;
|
|
148
|
-
N_INDIVIDUOS_EMPREG_SECT_SEC_H: number;
|
|
149
|
-
N_INDIVIDUOS_EMPREG_SECT_SEC_M: number;
|
|
150
|
-
N_INDIVIDUOS_EMPREG_SECT_TERC: number;
|
|
151
|
-
N_INDIVIDUOS_EMPREG_SECT_TERC_H: number;
|
|
152
|
-
N_INDIVIDUOS_EMPREG_SECT_TERC_M: number;
|
|
153
|
-
N_INDIVIDUOS_EMPREGADOS: number;
|
|
154
|
-
N_INDIVIDUOS_EMPREGADOS_H: number;
|
|
155
|
-
N_INDIVIDUOS_EMPREGADOS_M: number;
|
|
156
|
-
N_INDIVIDUOS_ESTUDANTES: number;
|
|
157
|
-
N_INDIVIDUOS_ESTUDANTES_H: number;
|
|
158
|
-
N_INDIVIDUOS_ESTUDANTES_M: number;
|
|
159
|
-
N_INDIVIDUOS_H: number;
|
|
160
|
-
N_INDIVIDUOS_M: number;
|
|
161
|
-
N_INDIVIDUOS_NAC_ESTRANGEIRA: number;
|
|
162
|
-
N_INDIVIDUOS_NAC_ESTRANGEIRA_H: number;
|
|
163
|
-
N_INDIVIDUOS_NAC_ESTRANGEIRA_M: number;
|
|
164
|
-
N_INDIVIDUOS_REFORMADOS: number;
|
|
165
|
-
N_INDIVIDUOS_REFORMADOS_H: number;
|
|
166
|
-
N_INDIVIDUOS_REFORMADOS_M: number;
|
|
167
|
-
N_INDIVIDUOS_RESID_FORA_PAIS: number;
|
|
168
|
-
N_INDIVIDUOS_RESID_FORA_PAIS_H: number;
|
|
169
|
-
N_INDIVIDUOS_RESID_FORA_PAIS_M: number;
|
|
170
|
-
N_INDIVIDUOS_SEM_ATIVIDADE_ECONOMICA: number;
|
|
171
|
-
N_INDIVIDUOS_SEM_ATIVIDADE_ECONOMICA_H: number;
|
|
172
|
-
N_INDIVIDUOS_SEM_ATIVIDADE_ECONOMICA_M: number;
|
|
173
|
-
N_RHABITUAL_1_2_DIV: number;
|
|
174
|
-
N_RHABITUAL_3_4_DIV: number;
|
|
175
|
-
N_RHABITUAL_5_MAIS_DIV: number;
|
|
176
|
-
N_RHABITUAL_ACESSIVEL_CADEIRAS_RODAS: number;
|
|
177
|
-
N_RHABITUAL_AREA_49: number;
|
|
178
|
-
N_RHABITUAL_AREA_50_99: number;
|
|
179
|
-
N_RHABITUAL_AREA_100_149: number;
|
|
180
|
-
N_RHABITUAL_AREA_150_199: number;
|
|
181
|
-
N_RHABITUAL_AREA_200MAIS: number;
|
|
182
|
-
N_RHABITUAL_ARRENDADOS: number;
|
|
183
|
-
N_RHABITUAL_COM_ESTACIONAMENTO: number;
|
|
184
|
-
N_RHABITUAL_NAO_ACESSIVEL_CADEIRAS_RODAS: number;
|
|
185
|
-
N_RHABITUAL_OCUPADOS_OUTR_SITUACAO: number;
|
|
186
|
-
N_RHABITUAL_PROP_OCUP: number;
|
|
187
|
-
N_RHABITUAL_SEM_ESTACIONAMENTO: number;
|
|
188
|
-
N_SS: number;
|
|
189
|
-
NUTS1_15: string;
|
|
190
|
-
NUTS2_15: string;
|
|
191
|
-
NUTS3_15: string;
|
|
192
|
-
SECNUM21: string;
|
|
193
|
-
Shape_Area: number;
|
|
194
|
-
Shape_Length: number;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* This type represents the MongoDB document structure for a Census,
|
|
198
|
-
* including the full GeoJSON Feature with geometry and properties.
|
|
199
|
-
*/
|
|
200
|
-
export interface CensusFeature extends GeoJSON.Feature<GeoJSON.MultiPolygon> {
|
|
201
|
-
_id: string;
|
|
202
|
-
properties: CensusProperties;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* This type represents the flattened codebase structure for a Census,
|
|
206
|
-
* with properties at the top level and the full GeoJSON Feature in a separate field.
|
|
207
|
-
* This type should be used throughout the application code.
|
|
208
|
-
*/
|
|
209
|
-
export interface Census extends CensusProperties {
|
|
210
|
-
_id: string;
|
|
211
|
-
}
|
|
1
|
+
export {};
|
package/dist/locations/census.js
CHANGED
|
@@ -1,2 +1,212 @@
|
|
|
1
|
-
|
|
1
|
+
// /**
|
|
2
|
+
// * This type represents the properties of a Census,
|
|
3
|
+
// * both for the geojson feature and the flattened codebase type.
|
|
4
|
+
// */
|
|
5
|
+
// export interface CensusProperties {
|
|
6
|
+
// DT21: string
|
|
7
|
+
// DTMN21: string
|
|
8
|
+
// DTMNFR21: string
|
|
9
|
+
// DTMNFRSEC21: string
|
|
10
|
+
// fid: number
|
|
11
|
+
// N_ADP_1OU2_PESSOAS: number
|
|
12
|
+
// N_ADP_3OU4_PESSOAS: number
|
|
13
|
+
// N_ADP_5EMAIS_PESSOAS: number
|
|
14
|
+
// N_AGREGADOS_DOMESTICOS_PRIVADOS: number
|
|
15
|
+
// N_AGREGADOS_INSTITUCIONAIS: number
|
|
16
|
+
// N_ALOJAMENTOS_COLECTIVOS: number
|
|
17
|
+
// N_ALOJAMENTOS_FAM_CLASS_RES_SECUNDARIA: number
|
|
18
|
+
// N_ALOJAMENTOS_FAM_CLASS_VAGOS_OUTR_MOTIVOS: number
|
|
19
|
+
// N_ALOJAMENTOS_FAM_CLASS_VAGOS_VEND_ARRE: number
|
|
20
|
+
// N_ALOJAMENTOS_FAM_CLASSICOS: number
|
|
21
|
+
// N_ALOJAMENTOS_FAM_N_CLASSICOS: number
|
|
22
|
+
// N_ALOJAMENTOS_FAMILIARES: number
|
|
23
|
+
// N_ALOJAMENTOS_TOTAL: number
|
|
24
|
+
// N_ALOJAMENTOS_VAGOS_TOTAL: number
|
|
25
|
+
// N_CLASSICOS_RES_HABITUAL: number
|
|
26
|
+
// N_EDIFICIOS_1OU2_PISOS: number
|
|
27
|
+
// N_EDIFICIOS_3OU4_PISOS: number
|
|
28
|
+
// N_EDIFICIOS_5OU_MAIS_PISOS: number
|
|
29
|
+
// N_EDIFICIOS_CLASSICOS: number
|
|
30
|
+
// N_EDIFICIOS_CLASSICOS_1OU2_ALOJ: number
|
|
31
|
+
// N_EDIFICIOS_CLASSICOS_3OUMAIS_ALOJ: 0
|
|
32
|
+
// N_EDIFICIOS_CLASSICOS_OUTRO: number
|
|
33
|
+
// N_EDIFICIOS_COM_ELEVADOR: number
|
|
34
|
+
// N_EDIFICIOS_COM_NEC_REPARACAO: number
|
|
35
|
+
// N_EDIFICIOS_COM_NEC_REPARACAO_LIGEIRAS: number
|
|
36
|
+
// N_EDIFICIOS_COM_NEC_REPARACAO_MEDIAS: number
|
|
37
|
+
// N_EDIFICIOS_COM_NEC_REPARACAO_PROFUNDAS: number
|
|
38
|
+
// N_EDIFICIOS_CONSTR_1919A1945: number
|
|
39
|
+
// N_EDIFICIOS_CONSTR_1946A1960: number
|
|
40
|
+
// N_EDIFICIOS_CONSTR_1961A1980: number
|
|
41
|
+
// N_EDIFICIOS_CONSTR_1981A1990: number
|
|
42
|
+
// N_EDIFICIOS_CONSTR_1991A2000: number
|
|
43
|
+
// N_EDIFICIOS_CONSTR_2001A2005: number
|
|
44
|
+
// N_EDIFICIOS_CONSTR_2006A2010: number
|
|
45
|
+
// N_EDIFICIOS_CONSTR_2011A2015: number
|
|
46
|
+
// N_EDIFICIOS_CONSTR_2016A2021: number
|
|
47
|
+
// N_EDIFICIOS_CONSTR_ANTES_1919: number
|
|
48
|
+
// N_EDIFICIOS_EXCLUS_RESIDENCIAL: number
|
|
49
|
+
// N_EDIFICIOS_PINCIPAL_NAO_RESIDENCIAL: number
|
|
50
|
+
// N_EDIFICIOS_PINCIPAL_RESIDENCIAL: number
|
|
51
|
+
// N_EDIFICIOS_SEM_ELEVADOR: number
|
|
52
|
+
// N_EDIFICIOS_SEM_NEC_REPARACAO: number
|
|
53
|
+
// N_INDIVIDUO_ENSINCOMP_1BAS: number
|
|
54
|
+
// N_INDIVIDUO_ENSINCOMP_1BAS_H: number
|
|
55
|
+
// N_INDIVIDUO_ENSINCOMP_1BAS_M: number
|
|
56
|
+
// N_INDIVIDUO_ENSINCOMP_2BAS: number
|
|
57
|
+
// N_INDIVIDUO_ENSINCOMP_2BAS_H: number
|
|
58
|
+
// N_INDIVIDUO_ENSINCOMP_2BAS_M: number
|
|
59
|
+
// N_INDIVIDUO_ENSINCOMP_3BAS: number
|
|
60
|
+
// N_INDIVIDUO_ENSINCOMP_3BAS_H: number
|
|
61
|
+
// N_INDIVIDUO_ENSINCOMP_3BAS_M: number
|
|
62
|
+
// N_INDIVIDUO_ENSINCOMP_NENHUM: number
|
|
63
|
+
// N_INDIVIDUO_ENSINCOMP_NENHUM_H: number
|
|
64
|
+
// N_INDIVIDUO_ENSINCOMP_NENHUM_M: number
|
|
65
|
+
// N_INDIVIDUO_ENSINCOMP_SEC_E_POSSEC: number
|
|
66
|
+
// N_INDIVIDUO_ENSINCOMP_SEC_E_POSSEC_H: number
|
|
67
|
+
// N_INDIVIDUO_ENSINCOMP_SEC_E_POSSEC_M: number
|
|
68
|
+
// N_INDIVIDUO_ENSINCOMP_SUP: number
|
|
69
|
+
// N_INDIVIDUO_ENSINCOMP_SUP_H: number
|
|
70
|
+
// N_INDIVIDUO_ENSINCOMP_SUP_M: number
|
|
71
|
+
// N_INDIVIDUOS: number
|
|
72
|
+
// N_INDIVIDUOS_0A4: number
|
|
73
|
+
// N_INDIVIDUOS_0A4_H: number
|
|
74
|
+
// N_INDIVIDUOS_0A4_M: number
|
|
75
|
+
// N_INDIVIDUOS_0A14: number
|
|
76
|
+
// N_INDIVIDUOS_0A14_H: number
|
|
77
|
+
// N_INDIVIDUOS_0A14_M: number
|
|
78
|
+
// N_INDIVIDUOS_5A9: number
|
|
79
|
+
// N_INDIVIDUOS_5A9_H: number
|
|
80
|
+
// N_INDIVIDUOS_5A9_M: number
|
|
81
|
+
// N_INDIVIDUOS_10A14: number
|
|
82
|
+
// N_INDIVIDUOS_10A14_H: number
|
|
83
|
+
// N_INDIVIDUOS_10A14_M: number
|
|
84
|
+
// N_INDIVIDUOS_15A19: number
|
|
85
|
+
// N_INDIVIDUOS_15A19_H: number
|
|
86
|
+
// N_INDIVIDUOS_15A19_M: number
|
|
87
|
+
// N_INDIVIDUOS_15A24: number
|
|
88
|
+
// N_INDIVIDUOS_15A24_H: number
|
|
89
|
+
// N_INDIVIDUOS_15A24_M: number
|
|
90
|
+
// N_INDIVIDUOS_20A24: number
|
|
91
|
+
// N_INDIVIDUOS_20A24_H: number
|
|
92
|
+
// N_INDIVIDUOS_20A24_M: number
|
|
93
|
+
// N_INDIVIDUOS_25A29: number
|
|
94
|
+
// N_INDIVIDUOS_25A29_H: number
|
|
95
|
+
// N_INDIVIDUOS_25A29_M: number
|
|
96
|
+
// N_INDIVIDUOS_25A64: number
|
|
97
|
+
// N_INDIVIDUOS_25A64_H: number
|
|
98
|
+
// N_INDIVIDUOS_25A64_M: number
|
|
99
|
+
// N_INDIVIDUOS_30A34: number
|
|
100
|
+
// N_INDIVIDUOS_30A34_H: number
|
|
101
|
+
// N_INDIVIDUOS_30A34_M: number
|
|
102
|
+
// N_INDIVIDUOS_35A39: number
|
|
103
|
+
// N_INDIVIDUOS_35A39_H: number
|
|
104
|
+
// N_INDIVIDUOS_35A39_M: number
|
|
105
|
+
// N_INDIVIDUOS_40A44: number
|
|
106
|
+
// N_INDIVIDUOS_40A44_H: number
|
|
107
|
+
// N_INDIVIDUOS_40A44_M: number
|
|
108
|
+
// N_INDIVIDUOS_45A49: number
|
|
109
|
+
// N_INDIVIDUOS_45A49_H: number
|
|
110
|
+
// N_INDIVIDUOS_45A49_M: number
|
|
111
|
+
// N_INDIVIDUOS_50A54: number
|
|
112
|
+
// N_INDIVIDUOS_50A54_H: number
|
|
113
|
+
// N_INDIVIDUOS_50A54_M: number
|
|
114
|
+
// N_INDIVIDUOS_55A59: number
|
|
115
|
+
// N_INDIVIDUOS_55A59_H: number
|
|
116
|
+
// N_INDIVIDUOS_55A59_M: number
|
|
117
|
+
// N_INDIVIDUOS_60A64: number
|
|
118
|
+
// N_INDIVIDUOS_60A64_H: number
|
|
119
|
+
// N_INDIVIDUOS_60A64_M: number
|
|
120
|
+
// N_INDIVIDUOS_65_OU_MAIS: number
|
|
121
|
+
// N_INDIVIDUOS_65_OU_MAIS_H: number
|
|
122
|
+
// N_INDIVIDUOS_65_OU_MAIS_M: number
|
|
123
|
+
// N_INDIVIDUOS_65A69: number
|
|
124
|
+
// N_INDIVIDUOS_65A69_H: number
|
|
125
|
+
// N_INDIVIDUOS_65A69_M: number
|
|
126
|
+
// N_INDIVIDUOS_70A74: number
|
|
127
|
+
// N_INDIVIDUOS_70A74_H: number
|
|
128
|
+
// N_INDIVIDUOS_70A74_M: number
|
|
129
|
+
// N_INDIVIDUOS_75_OU_MAIS: number
|
|
130
|
+
// N_INDIVIDUOS_75_OU_MAIS_H: number
|
|
131
|
+
// N_INDIVIDUOS_75_OU_MAIS_M: number
|
|
132
|
+
// N_INDIVIDUOS_COM_ATIVIDADE_ECONOMICA: number
|
|
133
|
+
// N_INDIVIDUOS_COM_ATIVIDADE_ECONOMICA_H: number
|
|
134
|
+
// N_INDIVIDUOS_COM_ATIVIDADE_ECONOMICA_M: number
|
|
135
|
+
// N_INDIVIDUOS_DESEMPREGADOS_1EMP: number
|
|
136
|
+
// N_INDIVIDUOS_DESEMPREGADOS_1EMP_H: number
|
|
137
|
+
// N_INDIVIDUOS_DESEMPREGADOS_1EMP_M: number
|
|
138
|
+
// N_INDIVIDUOS_DESEMPREGADOS_NOVOEMP: number
|
|
139
|
+
// N_INDIVIDUOS_DESEMPREGADOS_NOVOEMP_H: number
|
|
140
|
+
// N_INDIVIDUOS_DESEMPREGADOS_NOVOEMP_M: number
|
|
141
|
+
// N_INDIVIDUOS_DOMESTICOS: number
|
|
142
|
+
// N_INDIVIDUOS_DOMESTICOS_H: number
|
|
143
|
+
// N_INDIVIDUOS_DOMESTICOS_M: number
|
|
144
|
+
// N_INDIVIDUOS_EMPREG_SECT_PRIM: number
|
|
145
|
+
// N_INDIVIDUOS_EMPREG_SECT_PRIM_H: number
|
|
146
|
+
// N_INDIVIDUOS_EMPREG_SECT_PRIM_M: number
|
|
147
|
+
// N_INDIVIDUOS_EMPREG_SECT_SEC: number
|
|
148
|
+
// N_INDIVIDUOS_EMPREG_SECT_SEC_H: number
|
|
149
|
+
// N_INDIVIDUOS_EMPREG_SECT_SEC_M: number
|
|
150
|
+
// N_INDIVIDUOS_EMPREG_SECT_TERC: number
|
|
151
|
+
// N_INDIVIDUOS_EMPREG_SECT_TERC_H: number
|
|
152
|
+
// N_INDIVIDUOS_EMPREG_SECT_TERC_M: number
|
|
153
|
+
// N_INDIVIDUOS_EMPREGADOS: number
|
|
154
|
+
// N_INDIVIDUOS_EMPREGADOS_H: number
|
|
155
|
+
// N_INDIVIDUOS_EMPREGADOS_M: number
|
|
156
|
+
// N_INDIVIDUOS_ESTUDANTES: number
|
|
157
|
+
// N_INDIVIDUOS_ESTUDANTES_H: number
|
|
158
|
+
// N_INDIVIDUOS_ESTUDANTES_M: number
|
|
159
|
+
// N_INDIVIDUOS_H: number
|
|
160
|
+
// N_INDIVIDUOS_M: number
|
|
161
|
+
// N_INDIVIDUOS_NAC_ESTRANGEIRA: number
|
|
162
|
+
// N_INDIVIDUOS_NAC_ESTRANGEIRA_H: number
|
|
163
|
+
// N_INDIVIDUOS_NAC_ESTRANGEIRA_M: number
|
|
164
|
+
// N_INDIVIDUOS_REFORMADOS: number
|
|
165
|
+
// N_INDIVIDUOS_REFORMADOS_H: number
|
|
166
|
+
// N_INDIVIDUOS_REFORMADOS_M: number
|
|
167
|
+
// N_INDIVIDUOS_RESID_FORA_PAIS: number
|
|
168
|
+
// N_INDIVIDUOS_RESID_FORA_PAIS_H: number
|
|
169
|
+
// N_INDIVIDUOS_RESID_FORA_PAIS_M: number
|
|
170
|
+
// N_INDIVIDUOS_SEM_ATIVIDADE_ECONOMICA: number
|
|
171
|
+
// N_INDIVIDUOS_SEM_ATIVIDADE_ECONOMICA_H: number
|
|
172
|
+
// N_INDIVIDUOS_SEM_ATIVIDADE_ECONOMICA_M: number
|
|
173
|
+
// N_RHABITUAL_1_2_DIV: number
|
|
174
|
+
// N_RHABITUAL_3_4_DIV: number
|
|
175
|
+
// N_RHABITUAL_5_MAIS_DIV: number
|
|
176
|
+
// N_RHABITUAL_ACESSIVEL_CADEIRAS_RODAS: number
|
|
177
|
+
// N_RHABITUAL_AREA_49: number
|
|
178
|
+
// N_RHABITUAL_AREA_50_99: number
|
|
179
|
+
// N_RHABITUAL_AREA_100_149: number
|
|
180
|
+
// N_RHABITUAL_AREA_150_199: number
|
|
181
|
+
// N_RHABITUAL_AREA_200MAIS: number
|
|
182
|
+
// N_RHABITUAL_ARRENDADOS: number
|
|
183
|
+
// N_RHABITUAL_COM_ESTACIONAMENTO: number
|
|
184
|
+
// N_RHABITUAL_NAO_ACESSIVEL_CADEIRAS_RODAS: number
|
|
185
|
+
// N_RHABITUAL_OCUPADOS_OUTR_SITUACAO: number
|
|
186
|
+
// N_RHABITUAL_PROP_OCUP: number
|
|
187
|
+
// N_RHABITUAL_SEM_ESTACIONAMENTO: number
|
|
188
|
+
// N_SS: number
|
|
189
|
+
// NUTS1_15: string
|
|
190
|
+
// NUTS2_15: string
|
|
191
|
+
// NUTS3_15: string
|
|
192
|
+
// SECNUM21: string
|
|
193
|
+
// Shape_Area: number
|
|
194
|
+
// Shape_Length: number
|
|
195
|
+
// }
|
|
2
196
|
export {};
|
|
197
|
+
// /**
|
|
198
|
+
// * This type represents the MongoDB document structure for a Census,
|
|
199
|
+
// * including the full GeoJSON Feature with geometry and properties.
|
|
200
|
+
// */
|
|
201
|
+
// export interface CensusFeature extends GeoJSON.Feature<GeoJSON.MultiPolygon> {
|
|
202
|
+
// _id: string
|
|
203
|
+
// properties: CensusProperties
|
|
204
|
+
// }
|
|
205
|
+
// /**
|
|
206
|
+
// * This type represents the flattened codebase structure for a Census,
|
|
207
|
+
// * with properties at the top level and the full GeoJSON Feature in a separate field.
|
|
208
|
+
// * This type should be used throughout the application code.
|
|
209
|
+
// */
|
|
210
|
+
// export interface Census extends CensusProperties {
|
|
211
|
+
// _id: string
|
|
212
|
+
// };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseLocation } from './base.js';
|
|
1
2
|
/**
|
|
2
3
|
* This type represents the properties of a District,
|
|
3
4
|
* both for the geojson feature and the flattened codebase type.
|
|
@@ -6,18 +7,9 @@ export interface DistrictProperties {
|
|
|
6
7
|
area_ha: number;
|
|
7
8
|
name: string;
|
|
8
9
|
}
|
|
10
|
+
export type DistrictFeature = BaseLocation<DistrictProperties>;
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
11
|
-
* including the full GeoJSON Feature with geometry and properties.
|
|
12
|
-
*/
|
|
13
|
-
export interface DistrictFeature extends GeoJSON.Feature<GeoJSON.Polygon> {
|
|
14
|
-
_id: string;
|
|
15
|
-
properties: DistrictProperties;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* This type represents the flattened codebase structure for a District,
|
|
19
|
-
* with properties at the top level and the full GeoJSON Feature in a separate field.
|
|
20
|
-
* This type should be used throughout the application code.
|
|
12
|
+
* Represents a District with its ID and flattened properties.
|
|
21
13
|
*/
|
|
22
14
|
export interface District extends DistrictProperties {
|
|
23
15
|
_id: string;
|
package/dist/locations/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseLocation } from './base.js';
|
|
1
2
|
/**
|
|
2
3
|
* This type represents the properties of a Locality,
|
|
3
4
|
* both for the geojson feature and the flattened codebase type.
|
|
@@ -9,18 +10,9 @@ export interface LocalityProperties {
|
|
|
9
10
|
name: string;
|
|
10
11
|
parish_id?: string;
|
|
11
12
|
}
|
|
13
|
+
export type LocalityFeature = BaseLocation<LocalityProperties>;
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
* including the full GeoJSON Feature with geometry and properties.
|
|
15
|
-
*/
|
|
16
|
-
export interface LocalityFeature extends GeoJSON.Feature<GeoJSON.Polygon> {
|
|
17
|
-
_id: string;
|
|
18
|
-
properties: LocalityProperties;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* This type represents the flattened codebase structure for a Locality,
|
|
22
|
-
* with properties at the top level and the full GeoJSON Feature in a separate field.
|
|
23
|
-
* This type should be used throughout the application code.
|
|
15
|
+
* Represents a Locality with its ID and flattened properties.
|
|
24
16
|
*/
|
|
25
17
|
export interface Locality extends LocalityProperties {
|
|
26
18
|
_id: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { District } from './district.js';
|
|
2
|
+
import { Locality } from './locality.js';
|
|
3
|
+
import { Municipality } from './municipality.js';
|
|
4
|
+
import { Parish } from './parish.js';
|
|
5
|
+
/**
|
|
6
|
+
* This type represents the aggregated location information,
|
|
7
|
+
* combining various geographic entities into a single structure.
|
|
8
|
+
*/
|
|
9
|
+
export interface Location {
|
|
10
|
+
district: District | null;
|
|
11
|
+
latitude: number;
|
|
12
|
+
locality: Locality | null;
|
|
13
|
+
longitude: number;
|
|
14
|
+
municipality: Municipality | null;
|
|
15
|
+
parish: null | Parish;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseLocation } from './base.js';
|
|
1
2
|
/**
|
|
2
3
|
* This type represents the properties of a Municipality,
|
|
3
4
|
* both for the geojson feature and the flattened codebase type.
|
|
@@ -7,18 +8,9 @@ export interface MunicipalityProperties {
|
|
|
7
8
|
district_id: string;
|
|
8
9
|
name: string;
|
|
9
10
|
}
|
|
11
|
+
export type MunicipalityFeature = BaseLocation<MunicipalityProperties>;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
12
|
-
* including the full GeoJSON Feature with geometry and properties.
|
|
13
|
-
*/
|
|
14
|
-
export interface MunicipalityFeature extends GeoJSON.Feature<GeoJSON.Polygon> {
|
|
15
|
-
_id: string;
|
|
16
|
-
properties: MunicipalityProperties;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* This type represents the flattened codebase structure for a Municipality,
|
|
20
|
-
* with properties at the top level and the full GeoJSON Feature in a separate field.
|
|
21
|
-
* This type should be used throughout the application code.
|
|
13
|
+
* Represents a Municipality with its ID and flattened properties.
|
|
22
14
|
*/
|
|
23
15
|
export interface Municipality extends MunicipalityProperties {
|
|
24
16
|
_id: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseLocation } from './base.js';
|
|
1
2
|
/**
|
|
2
3
|
* This type represents the properties of a Parish,
|
|
3
4
|
* both for the geojson feature and the flattened codebase type.
|
|
@@ -8,18 +9,9 @@ export interface ParishProperties {
|
|
|
8
9
|
municipality_id: string;
|
|
9
10
|
name: string;
|
|
10
11
|
}
|
|
12
|
+
export type ParishFeature = BaseLocation<ParishProperties>;
|
|
11
13
|
/**
|
|
12
|
-
*
|
|
13
|
-
* including the full GeoJSON Feature with geometry and properties.
|
|
14
|
-
*/
|
|
15
|
-
export interface ParishFeature extends GeoJSON.Feature<GeoJSON.Polygon> {
|
|
16
|
-
_id: string;
|
|
17
|
-
properties: ParishProperties;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* This type represents the flattened codebase structure for a Parish,
|
|
21
|
-
* with properties at the top level and the full GeoJSON Feature in a separate field.
|
|
22
|
-
* This type should be used throughout the application code.
|
|
14
|
+
* Represents a Parish with its ID and flattened properties.
|
|
23
15
|
*/
|
|
24
16
|
export interface Parish extends ParishProperties {
|
|
25
17
|
_id: string;
|
package/dist/locations/parish.js
CHANGED
package/dist/offer/pattern.d.ts
CHANGED
|
@@ -153,6 +153,9 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
153
153
|
geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
154
154
|
to_index: z.ZodNumber;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
distance: number;
|
|
157
|
+
duration: number;
|
|
158
|
+
from_index: number;
|
|
156
159
|
geojson: {
|
|
157
160
|
type: string;
|
|
158
161
|
properties: {
|
|
@@ -166,13 +169,13 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
166
169
|
coordinates: number[][];
|
|
167
170
|
};
|
|
168
171
|
};
|
|
169
|
-
distance: number;
|
|
170
|
-
duration: number;
|
|
171
|
-
from_index: number;
|
|
172
172
|
geometry: [number, number][];
|
|
173
173
|
to_index: number;
|
|
174
174
|
encoded_polyline?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
+
distance: number;
|
|
177
|
+
duration: number;
|
|
178
|
+
from_index: number;
|
|
176
179
|
geojson: {
|
|
177
180
|
properties: {
|
|
178
181
|
distance: number;
|
|
@@ -186,9 +189,6 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
186
189
|
};
|
|
187
190
|
type?: string | undefined;
|
|
188
191
|
};
|
|
189
|
-
distance: number;
|
|
190
|
-
duration: number;
|
|
191
|
-
from_index: number;
|
|
192
192
|
geometry: [number, number][];
|
|
193
193
|
to_index: number;
|
|
194
194
|
encoded_polyline?: string | undefined;
|
|
@@ -214,6 +214,9 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
214
214
|
sequence: number;
|
|
215
215
|
}[] | undefined;
|
|
216
216
|
legs?: {
|
|
217
|
+
distance: number;
|
|
218
|
+
duration: number;
|
|
219
|
+
from_index: number;
|
|
217
220
|
geojson: {
|
|
218
221
|
type: string;
|
|
219
222
|
properties: {
|
|
@@ -227,9 +230,6 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
227
230
|
coordinates: number[][];
|
|
228
231
|
};
|
|
229
232
|
};
|
|
230
|
-
distance: number;
|
|
231
|
-
duration: number;
|
|
232
|
-
from_index: number;
|
|
233
233
|
geometry: [number, number][];
|
|
234
234
|
to_index: number;
|
|
235
235
|
encoded_polyline?: string | undefined;
|
|
@@ -255,6 +255,9 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
255
255
|
sequence?: number | undefined;
|
|
256
256
|
}[] | undefined;
|
|
257
257
|
legs?: {
|
|
258
|
+
distance: number;
|
|
259
|
+
duration: number;
|
|
260
|
+
from_index: number;
|
|
258
261
|
geojson: {
|
|
259
262
|
properties: {
|
|
260
263
|
distance: number;
|
|
@@ -268,9 +271,6 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
268
271
|
};
|
|
269
272
|
type?: string | undefined;
|
|
270
273
|
};
|
|
271
|
-
distance: number;
|
|
272
|
-
duration: number;
|
|
273
|
-
from_index: number;
|
|
274
274
|
geometry: [number, number][];
|
|
275
275
|
to_index: number;
|
|
276
276
|
encoded_polyline?: string | undefined;
|
|
@@ -955,6 +955,9 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
955
955
|
geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
956
956
|
to_index: z.ZodNumber;
|
|
957
957
|
}, "strip", z.ZodTypeAny, {
|
|
958
|
+
distance: number;
|
|
959
|
+
duration: number;
|
|
960
|
+
from_index: number;
|
|
958
961
|
geojson: {
|
|
959
962
|
type: string;
|
|
960
963
|
properties: {
|
|
@@ -968,13 +971,13 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
968
971
|
coordinates: number[][];
|
|
969
972
|
};
|
|
970
973
|
};
|
|
971
|
-
distance: number;
|
|
972
|
-
duration: number;
|
|
973
|
-
from_index: number;
|
|
974
974
|
geometry: [number, number][];
|
|
975
975
|
to_index: number;
|
|
976
976
|
encoded_polyline?: string | undefined;
|
|
977
977
|
}, {
|
|
978
|
+
distance: number;
|
|
979
|
+
duration: number;
|
|
980
|
+
from_index: number;
|
|
978
981
|
geojson: {
|
|
979
982
|
properties: {
|
|
980
983
|
distance: number;
|
|
@@ -988,9 +991,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
988
991
|
};
|
|
989
992
|
type?: string | undefined;
|
|
990
993
|
};
|
|
991
|
-
distance: number;
|
|
992
|
-
duration: number;
|
|
993
|
-
from_index: number;
|
|
994
994
|
geometry: [number, number][];
|
|
995
995
|
to_index: number;
|
|
996
996
|
encoded_polyline?: string | undefined;
|
|
@@ -1016,6 +1016,9 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1016
1016
|
sequence: number;
|
|
1017
1017
|
}[] | undefined;
|
|
1018
1018
|
legs?: {
|
|
1019
|
+
distance: number;
|
|
1020
|
+
duration: number;
|
|
1021
|
+
from_index: number;
|
|
1019
1022
|
geojson: {
|
|
1020
1023
|
type: string;
|
|
1021
1024
|
properties: {
|
|
@@ -1029,9 +1032,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1029
1032
|
coordinates: number[][];
|
|
1030
1033
|
};
|
|
1031
1034
|
};
|
|
1032
|
-
distance: number;
|
|
1033
|
-
duration: number;
|
|
1034
|
-
from_index: number;
|
|
1035
1035
|
geometry: [number, number][];
|
|
1036
1036
|
to_index: number;
|
|
1037
1037
|
encoded_polyline?: string | undefined;
|
|
@@ -1057,6 +1057,9 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1057
1057
|
sequence?: number | undefined;
|
|
1058
1058
|
}[] | undefined;
|
|
1059
1059
|
legs?: {
|
|
1060
|
+
distance: number;
|
|
1061
|
+
duration: number;
|
|
1062
|
+
from_index: number;
|
|
1060
1063
|
geojson: {
|
|
1061
1064
|
properties: {
|
|
1062
1065
|
distance: number;
|
|
@@ -1070,9 +1073,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1070
1073
|
};
|
|
1071
1074
|
type?: string | undefined;
|
|
1072
1075
|
};
|
|
1073
|
-
distance: number;
|
|
1074
|
-
duration: number;
|
|
1075
|
-
from_index: number;
|
|
1076
1076
|
geometry: [number, number][];
|
|
1077
1077
|
to_index: number;
|
|
1078
1078
|
encoded_polyline?: string | undefined;
|
|
@@ -1215,6 +1215,9 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1215
1215
|
sequence: number;
|
|
1216
1216
|
}[] | undefined;
|
|
1217
1217
|
legs?: {
|
|
1218
|
+
distance: number;
|
|
1219
|
+
duration: number;
|
|
1220
|
+
from_index: number;
|
|
1218
1221
|
geojson: {
|
|
1219
1222
|
type: string;
|
|
1220
1223
|
properties: {
|
|
@@ -1228,9 +1231,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1228
1231
|
coordinates: number[][];
|
|
1229
1232
|
};
|
|
1230
1233
|
};
|
|
1231
|
-
distance: number;
|
|
1232
|
-
duration: number;
|
|
1233
|
-
from_index: number;
|
|
1234
1234
|
geometry: [number, number][];
|
|
1235
1235
|
to_index: number;
|
|
1236
1236
|
encoded_polyline?: string | undefined;
|
|
@@ -1303,6 +1303,9 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1303
1303
|
sequence?: number | undefined;
|
|
1304
1304
|
}[] | undefined;
|
|
1305
1305
|
legs?: {
|
|
1306
|
+
distance: number;
|
|
1307
|
+
duration: number;
|
|
1308
|
+
from_index: number;
|
|
1306
1309
|
geojson: {
|
|
1307
1310
|
properties: {
|
|
1308
1311
|
distance: number;
|
|
@@ -1316,9 +1319,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1316
1319
|
};
|
|
1317
1320
|
type?: string | undefined;
|
|
1318
1321
|
};
|
|
1319
|
-
distance: number;
|
|
1320
|
-
duration: number;
|
|
1321
|
-
from_index: number;
|
|
1322
1322
|
geometry: [number, number][];
|
|
1323
1323
|
to_index: number;
|
|
1324
1324
|
encoded_polyline?: string | undefined;
|
|
@@ -2168,6 +2168,9 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2168
2168
|
geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
2169
2169
|
to_index: z.ZodNumber;
|
|
2170
2170
|
}, "strip", z.ZodTypeAny, {
|
|
2171
|
+
distance: number;
|
|
2172
|
+
duration: number;
|
|
2173
|
+
from_index: number;
|
|
2171
2174
|
geojson: {
|
|
2172
2175
|
type: string;
|
|
2173
2176
|
properties: {
|
|
@@ -2181,13 +2184,13 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2181
2184
|
coordinates: number[][];
|
|
2182
2185
|
};
|
|
2183
2186
|
};
|
|
2184
|
-
distance: number;
|
|
2185
|
-
duration: number;
|
|
2186
|
-
from_index: number;
|
|
2187
2187
|
geometry: [number, number][];
|
|
2188
2188
|
to_index: number;
|
|
2189
2189
|
encoded_polyline?: string | undefined;
|
|
2190
2190
|
}, {
|
|
2191
|
+
distance: number;
|
|
2192
|
+
duration: number;
|
|
2193
|
+
from_index: number;
|
|
2191
2194
|
geojson: {
|
|
2192
2195
|
properties: {
|
|
2193
2196
|
distance: number;
|
|
@@ -2201,9 +2204,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2201
2204
|
};
|
|
2202
2205
|
type?: string | undefined;
|
|
2203
2206
|
};
|
|
2204
|
-
distance: number;
|
|
2205
|
-
duration: number;
|
|
2206
|
-
from_index: number;
|
|
2207
2207
|
geometry: [number, number][];
|
|
2208
2208
|
to_index: number;
|
|
2209
2209
|
encoded_polyline?: string | undefined;
|
|
@@ -2229,6 +2229,9 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2229
2229
|
sequence: number;
|
|
2230
2230
|
}[] | undefined;
|
|
2231
2231
|
legs?: {
|
|
2232
|
+
distance: number;
|
|
2233
|
+
duration: number;
|
|
2234
|
+
from_index: number;
|
|
2232
2235
|
geojson: {
|
|
2233
2236
|
type: string;
|
|
2234
2237
|
properties: {
|
|
@@ -2242,9 +2245,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2242
2245
|
coordinates: number[][];
|
|
2243
2246
|
};
|
|
2244
2247
|
};
|
|
2245
|
-
distance: number;
|
|
2246
|
-
duration: number;
|
|
2247
|
-
from_index: number;
|
|
2248
2248
|
geometry: [number, number][];
|
|
2249
2249
|
to_index: number;
|
|
2250
2250
|
encoded_polyline?: string | undefined;
|
|
@@ -2270,6 +2270,9 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2270
2270
|
sequence?: number | undefined;
|
|
2271
2271
|
}[] | undefined;
|
|
2272
2272
|
legs?: {
|
|
2273
|
+
distance: number;
|
|
2274
|
+
duration: number;
|
|
2275
|
+
from_index: number;
|
|
2273
2276
|
geojson: {
|
|
2274
2277
|
properties: {
|
|
2275
2278
|
distance: number;
|
|
@@ -2283,9 +2286,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2283
2286
|
};
|
|
2284
2287
|
type?: string | undefined;
|
|
2285
2288
|
};
|
|
2286
|
-
distance: number;
|
|
2287
|
-
duration: number;
|
|
2288
|
-
from_index: number;
|
|
2289
2289
|
geometry: [number, number][];
|
|
2290
2290
|
to_index: number;
|
|
2291
2291
|
encoded_polyline?: string | undefined;
|
|
@@ -2421,6 +2421,9 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2421
2421
|
sequence: number;
|
|
2422
2422
|
}[] | undefined;
|
|
2423
2423
|
legs?: {
|
|
2424
|
+
distance: number;
|
|
2425
|
+
duration: number;
|
|
2426
|
+
from_index: number;
|
|
2424
2427
|
geojson: {
|
|
2425
2428
|
type: string;
|
|
2426
2429
|
properties: {
|
|
@@ -2434,9 +2437,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2434
2437
|
coordinates: number[][];
|
|
2435
2438
|
};
|
|
2436
2439
|
};
|
|
2437
|
-
distance: number;
|
|
2438
|
-
duration: number;
|
|
2439
|
-
from_index: number;
|
|
2440
2440
|
geometry: [number, number][];
|
|
2441
2441
|
to_index: number;
|
|
2442
2442
|
encoded_polyline?: string | undefined;
|
|
@@ -2506,6 +2506,9 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2506
2506
|
sequence?: number | undefined;
|
|
2507
2507
|
}[] | undefined;
|
|
2508
2508
|
legs?: {
|
|
2509
|
+
distance: number;
|
|
2510
|
+
duration: number;
|
|
2511
|
+
from_index: number;
|
|
2509
2512
|
geojson: {
|
|
2510
2513
|
properties: {
|
|
2511
2514
|
distance: number;
|
|
@@ -2519,9 +2522,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2519
2522
|
};
|
|
2520
2523
|
type?: string | undefined;
|
|
2521
2524
|
};
|
|
2522
|
-
distance: number;
|
|
2523
|
-
duration: number;
|
|
2524
|
-
from_index: number;
|
|
2525
2525
|
geometry: [number, number][];
|
|
2526
2526
|
to_index: number;
|
|
2527
2527
|
encoded_polyline?: string | undefined;
|
|
@@ -2776,6 +2776,9 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2776
2776
|
geometry: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
2777
2777
|
to_index: z.ZodNumber;
|
|
2778
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2779
|
+
distance: number;
|
|
2780
|
+
duration: number;
|
|
2781
|
+
from_index: number;
|
|
2779
2782
|
geojson: {
|
|
2780
2783
|
type: string;
|
|
2781
2784
|
properties: {
|
|
@@ -2789,13 +2792,13 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2789
2792
|
coordinates: number[][];
|
|
2790
2793
|
};
|
|
2791
2794
|
};
|
|
2792
|
-
distance: number;
|
|
2793
|
-
duration: number;
|
|
2794
|
-
from_index: number;
|
|
2795
2795
|
geometry: [number, number][];
|
|
2796
2796
|
to_index: number;
|
|
2797
2797
|
encoded_polyline?: string | undefined;
|
|
2798
2798
|
}, {
|
|
2799
|
+
distance: number;
|
|
2800
|
+
duration: number;
|
|
2801
|
+
from_index: number;
|
|
2799
2802
|
geojson: {
|
|
2800
2803
|
properties: {
|
|
2801
2804
|
distance: number;
|
|
@@ -2809,9 +2812,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2809
2812
|
};
|
|
2810
2813
|
type?: string | undefined;
|
|
2811
2814
|
};
|
|
2812
|
-
distance: number;
|
|
2813
|
-
duration: number;
|
|
2814
|
-
from_index: number;
|
|
2815
2815
|
geometry: [number, number][];
|
|
2816
2816
|
to_index: number;
|
|
2817
2817
|
encoded_polyline?: string | undefined;
|
|
@@ -2837,6 +2837,9 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2837
2837
|
sequence: number;
|
|
2838
2838
|
}[] | undefined;
|
|
2839
2839
|
legs?: {
|
|
2840
|
+
distance: number;
|
|
2841
|
+
duration: number;
|
|
2842
|
+
from_index: number;
|
|
2840
2843
|
geojson: {
|
|
2841
2844
|
type: string;
|
|
2842
2845
|
properties: {
|
|
@@ -2850,9 +2853,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2850
2853
|
coordinates: number[][];
|
|
2851
2854
|
};
|
|
2852
2855
|
};
|
|
2853
|
-
distance: number;
|
|
2854
|
-
duration: number;
|
|
2855
|
-
from_index: number;
|
|
2856
2856
|
geometry: [number, number][];
|
|
2857
2857
|
to_index: number;
|
|
2858
2858
|
encoded_polyline?: string | undefined;
|
|
@@ -2878,6 +2878,9 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2878
2878
|
sequence?: number | undefined;
|
|
2879
2879
|
}[] | undefined;
|
|
2880
2880
|
legs?: {
|
|
2881
|
+
distance: number;
|
|
2882
|
+
duration: number;
|
|
2883
|
+
from_index: number;
|
|
2881
2884
|
geojson: {
|
|
2882
2885
|
properties: {
|
|
2883
2886
|
distance: number;
|
|
@@ -2891,9 +2894,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2891
2894
|
};
|
|
2892
2895
|
type?: string | undefined;
|
|
2893
2896
|
};
|
|
2894
|
-
distance: number;
|
|
2895
|
-
duration: number;
|
|
2896
|
-
from_index: number;
|
|
2897
2897
|
geometry: [number, number][];
|
|
2898
2898
|
to_index: number;
|
|
2899
2899
|
encoded_polyline?: string | undefined;
|
|
@@ -3360,6 +3360,9 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3360
3360
|
sequence: number;
|
|
3361
3361
|
}[] | undefined;
|
|
3362
3362
|
legs?: {
|
|
3363
|
+
distance: number;
|
|
3364
|
+
duration: number;
|
|
3365
|
+
from_index: number;
|
|
3363
3366
|
geojson: {
|
|
3364
3367
|
type: string;
|
|
3365
3368
|
properties: {
|
|
@@ -3373,9 +3376,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3373
3376
|
coordinates: number[][];
|
|
3374
3377
|
};
|
|
3375
3378
|
};
|
|
3376
|
-
distance: number;
|
|
3377
|
-
duration: number;
|
|
3378
|
-
from_index: number;
|
|
3379
3379
|
geometry: [number, number][];
|
|
3380
3380
|
to_index: number;
|
|
3381
3381
|
encoded_polyline?: string | undefined;
|
|
@@ -3501,6 +3501,9 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3501
3501
|
sequence?: number | undefined;
|
|
3502
3502
|
}[] | undefined;
|
|
3503
3503
|
legs?: {
|
|
3504
|
+
distance: number;
|
|
3505
|
+
duration: number;
|
|
3506
|
+
from_index: number;
|
|
3504
3507
|
geojson: {
|
|
3505
3508
|
properties: {
|
|
3506
3509
|
distance: number;
|
|
@@ -3514,9 +3517,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3514
3517
|
};
|
|
3515
3518
|
type?: string | undefined;
|
|
3516
3519
|
};
|
|
3517
|
-
distance: number;
|
|
3518
|
-
duration: number;
|
|
3519
|
-
from_index: number;
|
|
3520
3520
|
geometry: [number, number][];
|
|
3521
3521
|
to_index: number;
|
|
3522
3522
|
encoded_polyline?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { type Census, type CensusFeature } from './census.js';
|
|
2
|
-
import { type District, type DistrictFeature } from './district.js';
|
|
3
|
-
import { type Locality, type LocalityFeature } from './locality.js';
|
|
4
|
-
import { type Municipality, type MunicipalityFeature } from './municipality.js';
|
|
5
|
-
import { type Parish, type ParishFeature } from './parish.js';
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* This type represents the location collections available in the database,
|
|
9
|
-
* with each collection corresponding to a specific geographic entity.
|
|
10
|
-
*/
|
|
11
|
-
export interface AvailableLocations {
|
|
12
|
-
census: CensusFeature;
|
|
13
|
-
districts: DistrictFeature;
|
|
14
|
-
localities: LocalityFeature;
|
|
15
|
-
municipalities: MunicipalityFeature;
|
|
16
|
-
parishes: ParishFeature;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* This type represents the aggregated location information,
|
|
20
|
-
* combining various geographic entities into a single structure.
|
|
21
|
-
* Useful for location-based queries (coordinates) and data retrieval.
|
|
22
|
-
*/
|
|
23
|
-
export interface Location {
|
|
24
|
-
census?: Census | null;
|
|
25
|
-
district: District | null;
|
|
26
|
-
latitude: number;
|
|
27
|
-
locality: Locality | null;
|
|
28
|
-
longitude: number;
|
|
29
|
-
municipality: Municipality | null;
|
|
30
|
-
parish: null | Parish;
|
|
31
|
-
}
|
|
32
|
-
export declare const GetAllDistrictsQuerySchema: z.ZodObject<{
|
|
33
|
-
geojson: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
geojson: boolean;
|
|
36
|
-
}, {
|
|
37
|
-
geojson?: unknown;
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* This type represents the query parameters for fetching all Districts
|
|
41
|
-
* from the database, including an optional flag to include GeoJSON data.
|
|
42
|
-
*/
|
|
43
|
-
export type GetAllDistrictsQuery = z.infer<typeof GetAllDistrictsQuerySchema>;
|
|
44
|
-
export declare const GetAllMunicipalitiesQuerySchema: z.ZodObject<{
|
|
45
|
-
geojson: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
46
|
-
} & {
|
|
47
|
-
district_ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null | undefined, unknown>;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
geojson: boolean;
|
|
50
|
-
district_ids?: string[] | null | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
geojson?: unknown;
|
|
53
|
-
district_ids?: unknown;
|
|
54
|
-
}>;
|
|
55
|
-
/**
|
|
56
|
-
* This type represents the query parameters for fetching all Municipalities
|
|
57
|
-
* from the database, including optional filters for District IDs and a flag
|
|
58
|
-
* to include GeoJSON data.
|
|
59
|
-
*/
|
|
60
|
-
export type GetAllMunicipalitiesQuery = z.infer<typeof GetAllMunicipalitiesQuerySchema>;
|
|
61
|
-
export declare const GetAllParishesQuerySchema: z.ZodObject<{
|
|
62
|
-
geojson: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
63
|
-
} & {
|
|
64
|
-
district_ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null | undefined, unknown>;
|
|
65
|
-
} & {
|
|
66
|
-
municipality_ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null | undefined, unknown>;
|
|
67
|
-
} & {
|
|
68
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
69
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
geojson: boolean;
|
|
72
|
-
limit: number;
|
|
73
|
-
page: number;
|
|
74
|
-
municipality_ids?: string[] | null | undefined;
|
|
75
|
-
district_ids?: string[] | null | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
municipality_ids?: unknown;
|
|
78
|
-
geojson?: unknown;
|
|
79
|
-
district_ids?: unknown;
|
|
80
|
-
limit?: number | undefined;
|
|
81
|
-
page?: number | undefined;
|
|
82
|
-
}>;
|
|
83
|
-
/**
|
|
84
|
-
* This type represents the query parameters for fetching all Parishes
|
|
85
|
-
* from the database, including optional filters for Municipality IDs,
|
|
86
|
-
* pagination options, and a flag to include GeoJSON data.
|
|
87
|
-
*/
|
|
88
|
-
export type GetAllParishesQuery = z.infer<typeof GetAllParishesQuerySchema>;
|
|
89
|
-
export declare const GetAllLocalitiesQuerySchema: z.ZodObject<{
|
|
90
|
-
geojson: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
91
|
-
district_ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null | undefined, unknown>;
|
|
92
|
-
municipality_ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null | undefined, unknown>;
|
|
93
|
-
parish_ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>, string[] | null | undefined, unknown>;
|
|
94
|
-
} & {
|
|
95
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
96
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
geojson: boolean;
|
|
99
|
-
limit: number;
|
|
100
|
-
page: number;
|
|
101
|
-
municipality_ids?: string[] | null | undefined;
|
|
102
|
-
district_ids?: string[] | null | undefined;
|
|
103
|
-
parish_ids?: string[] | null | undefined;
|
|
104
|
-
}, {
|
|
105
|
-
municipality_ids?: unknown;
|
|
106
|
-
geojson?: unknown;
|
|
107
|
-
district_ids?: unknown;
|
|
108
|
-
limit?: number | undefined;
|
|
109
|
-
page?: number | undefined;
|
|
110
|
-
parish_ids?: unknown;
|
|
111
|
-
}>;
|
|
112
|
-
/**
|
|
113
|
-
* This type represents the query parameters for fetching all Localities
|
|
114
|
-
* from the database, including optional filters for Parish IDs,
|
|
115
|
-
* pagination options, and a flag to include GeoJSON data.
|
|
116
|
-
*/
|
|
117
|
-
export type GetAllLocalitiesQuery = z.infer<typeof GetAllLocalitiesQuerySchema>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { PaginationSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
/* * */
|
|
5
|
-
export const GetAllDistrictsQuerySchema = z.object({
|
|
6
|
-
geojson: z.preprocess((val) => val === 'true' || val === '1', z.boolean()),
|
|
7
|
-
});
|
|
8
|
-
/* * */
|
|
9
|
-
export const GetAllMunicipalitiesQuerySchema = GetAllDistrictsQuerySchema.extend({
|
|
10
|
-
district_ids: z
|
|
11
|
-
.preprocess(val => typeof val === 'string' ? val.split(',').map(s => s.trim()).filter(Boolean) : val, z.array(z.string()).nullish()),
|
|
12
|
-
});
|
|
13
|
-
/* * */
|
|
14
|
-
export const GetAllParishesQuerySchema = GetAllMunicipalitiesQuerySchema.extend({
|
|
15
|
-
municipality_ids: z
|
|
16
|
-
.preprocess(val => typeof val === 'string' ? val.split(',').map(s => s.trim()).filter(Boolean) : val, z.array(z.string()).nullish()),
|
|
17
|
-
}).extend(PaginationSchema.shape);
|
|
18
|
-
/* * */
|
|
19
|
-
export const GetAllLocalitiesQuerySchema = GetAllParishesQuerySchema.extend({ parish_ids: z.preprocess(val => typeof val === 'string' ? val.split(',').map(s => s.trim()).filter(Boolean) : val, z.array(z.string()).nullish()),
|
|
20
|
-
}).extend(PaginationSchema.shape);
|