@servicetitan/acquisition-functions 0.12.0 → 5.7.0
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/filter-fetcher/calc-filter-count.js +51 -65
- package/dist/filter-fetcher/index.js +28 -36
- package/dist/fix-property-use/index.js +43 -42
- package/dist/index.js +16 -29
- package/dist/property-assessorlastsaledate-converter/index.js +45 -41
- package/dist/types.js +1 -2
- package/dist/utils/utils.d.ts +5 -5
- package/dist/utils/utils.js +14 -23
- package/dist/zip-processor.js +20 -22
- package/package.json +2 -2
- package/dist/__tests__/assessorlastsaledate-converter.test.js +0 -79
- package/dist/__tests__/filter-fetcher.test.js +0 -92
- package/dist/__tests__/mock.js +0 -476
- package/dist/__tests__/property-fix-use-group.test.js +0 -63
- package/dist/__tests__/setup.js +0 -39
package/dist/__tests__/mock.js
DELETED
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filtersToIgnoreMOCK = exports.MOCK = void 0;
|
|
4
|
-
exports.MOCK = [
|
|
5
|
-
{
|
|
6
|
-
attomid: 154817956,
|
|
7
|
-
fulladdress: '7310 S Central Ave Los Angeles CA 90001',
|
|
8
|
-
addressstreet: '7310 S Central Ave',
|
|
9
|
-
addressunit: ' ',
|
|
10
|
-
primarynumber: 7310,
|
|
11
|
-
streetname: 'Central',
|
|
12
|
-
streetpredirection: 'S',
|
|
13
|
-
streetpostdirection: '',
|
|
14
|
-
streetsuffix: 'Ave',
|
|
15
|
-
secondarynumber: '',
|
|
16
|
-
secondarydesignator: '',
|
|
17
|
-
extrasecondarynumber: '',
|
|
18
|
-
extrasecondarydesignator: '',
|
|
19
|
-
cityname: 'Los Angeles',
|
|
20
|
-
stateabbreviation: 'CA',
|
|
21
|
-
zipcode: '90001',
|
|
22
|
-
latitude: 33.97346,
|
|
23
|
-
longitude: -118.25645,
|
|
24
|
-
situsstatecode: 'CA',
|
|
25
|
-
situscounty: 'Los Angeles',
|
|
26
|
-
propertyjurisdictionname: 'LOS ANGELES',
|
|
27
|
-
situsstatecountyfips: '06037',
|
|
28
|
-
combinedstatisticalarea: 'Los Angeles-Long Beach, CA',
|
|
29
|
-
cbsaname: 'LOS ANGELES-LONG BEACH-SANTA ANA, CA METROPOLITAN STATISTICAL AREA',
|
|
30
|
-
cbsacode: 31100,
|
|
31
|
-
msaname: 'LOS ANGELES-LONG BEACH-SANTA ANA, CA',
|
|
32
|
-
msacode: 31100,
|
|
33
|
-
metropolitandivision: 'LOS ANGELES-LONG BEACH-GLENDALE, CA METROPOLITAN DIVISION',
|
|
34
|
-
minorcivildivisionname: 'SOUTH GATE-EAST LOS ANGELES',
|
|
35
|
-
minorcivildivisioncode: 93155,
|
|
36
|
-
neighborhoodcode: '',
|
|
37
|
-
censusfipsplacecode: 24477,
|
|
38
|
-
censustract: 535001,
|
|
39
|
-
censusblockgroup: 1,
|
|
40
|
-
censusblock: 1001,
|
|
41
|
-
parcelnumberraw: '6024-003-903',
|
|
42
|
-
parcelnumberformatted: '',
|
|
43
|
-
parcelnumberyearadded: 0,
|
|
44
|
-
parcelnumberalternate: '',
|
|
45
|
-
parcelmapbook: '',
|
|
46
|
-
parcelmappage: '',
|
|
47
|
-
parcelnumberyearchange: 2008,
|
|
48
|
-
parcelnumberprevious: 6024003003,
|
|
49
|
-
parcelaccountnumber: '',
|
|
50
|
-
propertyaddressfull: '7310 S CENTRAL AVE',
|
|
51
|
-
propertyaddresshousenumber: 7310,
|
|
52
|
-
propertyaddressstreetdirection: 'S',
|
|
53
|
-
propertyaddressstreetname: 'CENTRAL',
|
|
54
|
-
propertyaddressstreetsuffix: 'AVE',
|
|
55
|
-
propertyaddressstreetpostdirection: '',
|
|
56
|
-
propertyaddressunitprefix: '',
|
|
57
|
-
propertyaddressunitvalue: '',
|
|
58
|
-
propertyaddresscity: 'LOS ANGELES',
|
|
59
|
-
propertyaddressstate: 'CA',
|
|
60
|
-
propertyaddresszip: 90001,
|
|
61
|
-
propertyaddresszip4: 2423,
|
|
62
|
-
propertyaddresscrrt: 'C002',
|
|
63
|
-
propertyaddressinfoprivacy: 0,
|
|
64
|
-
congressionaldistricthouse: 53,
|
|
65
|
-
legaldescription: 'TR=5450 LOT 803',
|
|
66
|
-
legalrange: '',
|
|
67
|
-
legaltownship: '',
|
|
68
|
-
legalsection: '',
|
|
69
|
-
legalquarter: '',
|
|
70
|
-
legalquarterquarter: '',
|
|
71
|
-
legalsubdivision: 5450,
|
|
72
|
-
legalphase: '',
|
|
73
|
-
legaltractnumber: 5450,
|
|
74
|
-
legalblock1: '',
|
|
75
|
-
legalblock2: '',
|
|
76
|
-
legallotnumber1: 803,
|
|
77
|
-
legallotnumber2: '',
|
|
78
|
-
legallotnumber3: '',
|
|
79
|
-
legalunit: '',
|
|
80
|
-
partyowner1namefull: 'L A UNIFIED SCHOOL DIST',
|
|
81
|
-
partyowner1namefirst: '',
|
|
82
|
-
partyowner1namemiddle: '',
|
|
83
|
-
partyowner1namelast: 'L A UNIFIED SCHOOL DIST',
|
|
84
|
-
partyowner1namesuffix: '',
|
|
85
|
-
trustdescription: '',
|
|
86
|
-
companyflag: 'The Owner is Determine to be a Company',
|
|
87
|
-
partyowner2namefull: '',
|
|
88
|
-
partyowner2namefirst: '',
|
|
89
|
-
partyowner2namemiddle: '',
|
|
90
|
-
partyowner2namelast: '',
|
|
91
|
-
partyowner2namesuffix: '',
|
|
92
|
-
ownertypedescription1: 'COMPANY',
|
|
93
|
-
ownershipvestingrelationcode: '',
|
|
94
|
-
partyowner3namefull: '',
|
|
95
|
-
partyowner3namefirst: '',
|
|
96
|
-
partyowner3namemiddle: '',
|
|
97
|
-
partyowner3namelast: '',
|
|
98
|
-
partyowner3namesuffix: '',
|
|
99
|
-
partyowner4namefull: '',
|
|
100
|
-
partyowner4namefirst: '',
|
|
101
|
-
partyowner4namemiddle: '',
|
|
102
|
-
partyowner4namelast: '',
|
|
103
|
-
partyowner4namesuffix: '',
|
|
104
|
-
ownertypedescription2: 'NP',
|
|
105
|
-
contactownermailingcounty: 'LOS ANGELES',
|
|
106
|
-
contactownermailingfips: '06037',
|
|
107
|
-
contactownermailaddressfull: '333 S BEAUDRY AVE',
|
|
108
|
-
contactownermailaddresshousenumber: 333,
|
|
109
|
-
contactownermailaddressstreetdirection: 'S',
|
|
110
|
-
contactownermailaddressstreetname: 'BEAUDRY',
|
|
111
|
-
contactownermailaddressstreetsuffix: 'AVE',
|
|
112
|
-
contactownermailaddressstreetpostdirection: '',
|
|
113
|
-
contactownermailaddressunitprefix: '',
|
|
114
|
-
contactownermailaddressunit: '',
|
|
115
|
-
contactownermailaddresscity: 'LOS ANGELES',
|
|
116
|
-
contactownermailaddressstate: 'CA',
|
|
117
|
-
contactownermailaddresszip: 90017,
|
|
118
|
-
contactownermailaddresszip4: 1466,
|
|
119
|
-
contactownermailaddresscrrt: 'C006',
|
|
120
|
-
contactownermailaddressinfoformat: 'H',
|
|
121
|
-
contactownermailinfoprivacy: '',
|
|
122
|
-
statusowneroccupiedflag: 'unknown',
|
|
123
|
-
deedowner1namefull: 'L A UNIFIED SCHOOL DIST',
|
|
124
|
-
deedowner1namefirst: '',
|
|
125
|
-
deedowner1namemiddle: '',
|
|
126
|
-
deedowner1namelast: 'L A UNIFIED SCHOOL DIST',
|
|
127
|
-
deedowner1namesuffix: '',
|
|
128
|
-
deedowner2namefull: '',
|
|
129
|
-
deedowner2namefirst: '',
|
|
130
|
-
deedowner2namemiddle: '',
|
|
131
|
-
deedowner2namelast: '',
|
|
132
|
-
deedowner2namesuffix: '',
|
|
133
|
-
deedowner3namefull: '',
|
|
134
|
-
deedowner3namefirst: '',
|
|
135
|
-
deedowner3namemiddle: '',
|
|
136
|
-
deedowner3namelast: '',
|
|
137
|
-
deedowner3namesuffix: '',
|
|
138
|
-
deedowner4namefull: '',
|
|
139
|
-
deedowner4namefirst: '',
|
|
140
|
-
deedowner4namemiddle: '',
|
|
141
|
-
deedowner4namelast: '',
|
|
142
|
-
deedowner4namesuffix: '',
|
|
143
|
-
taxyearassessed: 2021,
|
|
144
|
-
taxassessedvaluetotal: 19483,
|
|
145
|
-
taxassessedvalueimprovements: 0,
|
|
146
|
-
taxassessedvalueland: 19483,
|
|
147
|
-
taxassessedimprovementsperc: 0,
|
|
148
|
-
previousassessedvalue: 19483,
|
|
149
|
-
taxmarketvalueyear: 0,
|
|
150
|
-
taxmarketvaluetotal: 0,
|
|
151
|
-
taxmarketvalueimprovements: 0,
|
|
152
|
-
taxmarketvalueland: 0,
|
|
153
|
-
taxmarketimprovementsperc: 0,
|
|
154
|
-
taxfiscalyear: 2020,
|
|
155
|
-
taxratearea: '1-265',
|
|
156
|
-
taxbilledamount: 0,
|
|
157
|
-
taxdelinquentyear: 0,
|
|
158
|
-
lastassessortaxrollupdate: '2021-07-01T00:00:00.000Z',
|
|
159
|
-
assrlastupdated: '2021-09-20T00:00:00.000Z',
|
|
160
|
-
taxexemptionadditional: '',
|
|
161
|
-
yearbuilt: 1928,
|
|
162
|
-
yearbuilteffective: 1928,
|
|
163
|
-
zonedcodelocal: 'LCC3*',
|
|
164
|
-
propertyusemuni: '0500',
|
|
165
|
-
propertyusegroup: 'COMMERCIAL',
|
|
166
|
-
propertyusestandardized: 'APARTMENT HOUSE (5+ UNITS)',
|
|
167
|
-
assessorlastsaledate: '2006-08-04T00:00:00.000Z',
|
|
168
|
-
assessorlastsaleamount: 0,
|
|
169
|
-
assessorpriorsaledate: '2006-08-04T00:00:00.000Z',
|
|
170
|
-
assessorpriorsaleamount: 0,
|
|
171
|
-
lastownershiptransferdate: '2006-08-04T00:00:00.000Z',
|
|
172
|
-
lastownershiptransferdocumentnumber: '2006-1731837',
|
|
173
|
-
lastownershiptransfertransactionid: 199634356,
|
|
174
|
-
deedlastsaledocumentbook: '',
|
|
175
|
-
deedlastsaledocumentpage: '',
|
|
176
|
-
deedlastdocumentnumber: '2006-1731837',
|
|
177
|
-
deedlastsaledate: '2006-08-04T00:00:00.000Z',
|
|
178
|
-
deedlastsaleprice: 0,
|
|
179
|
-
deedlastsaletransactionid: 199634356,
|
|
180
|
-
areabuilding: 3200,
|
|
181
|
-
areabuildingdefinitioncode: 'Total Area',
|
|
182
|
-
areagross: 3200,
|
|
183
|
-
area1stfloor: 0,
|
|
184
|
-
area2ndfloor: 0,
|
|
185
|
-
areaupperfloors: 0,
|
|
186
|
-
arealotacres: 0.0933425,
|
|
187
|
-
arealotsf: 4066,
|
|
188
|
-
arealotdepth: 0,
|
|
189
|
-
arealotwidth: 0,
|
|
190
|
-
roomsatticarea: 0,
|
|
191
|
-
roomsatticflag: 0,
|
|
192
|
-
roomsbasementarea: 0,
|
|
193
|
-
roomsbasementareafinished: 0,
|
|
194
|
-
roomsbasementareaunfinished: 0,
|
|
195
|
-
parkinggarage: 'Unknown',
|
|
196
|
-
parkinggaragearea: 0,
|
|
197
|
-
parkingcarport: 0,
|
|
198
|
-
parkingcarportarea: 0,
|
|
199
|
-
hvaccoolingdetail: 'YES',
|
|
200
|
-
hvacheatingdetail: 'NONE',
|
|
201
|
-
hvacheatingfuel: 'unknown',
|
|
202
|
-
utilitiessewageusage: 'unknown',
|
|
203
|
-
utilitieswatersource: 'unknown',
|
|
204
|
-
utilitiesmobilehomehookupflag: 'UNKNOWN',
|
|
205
|
-
foundation: 'unknown',
|
|
206
|
-
construction: 'UNKNOWN',
|
|
207
|
-
interiorstructure: 'unknown',
|
|
208
|
-
plumbingfixturescount: 0,
|
|
209
|
-
constructionfireresistanceclass: '',
|
|
210
|
-
assafetyfiresprinklersflag: 'UNKNOWN',
|
|
211
|
-
flooringmaterialprimary: 'unknown',
|
|
212
|
-
bathcount: 0,
|
|
213
|
-
bathpartialcount: 0,
|
|
214
|
-
bedroomscount: 0,
|
|
215
|
-
roomscount: 0,
|
|
216
|
-
storiescount: 0,
|
|
217
|
-
unitscount: 6,
|
|
218
|
-
fireplace: 'unknown',
|
|
219
|
-
fireplacecount: 0,
|
|
220
|
-
structurestyle: 'unknown',
|
|
221
|
-
exterior1code: 'UNKNOWN',
|
|
222
|
-
roofmaterial: 'unknown',
|
|
223
|
-
roofconstruction: 'unknown',
|
|
224
|
-
porchcode: 'unknown',
|
|
225
|
-
pool: 'UNKNOWN',
|
|
226
|
-
poolarea: 0,
|
|
227
|
-
buildingscount: 0,
|
|
228
|
-
modifiedon: '2021-09-14T00:00:00T00:00:00.000Z',
|
|
229
|
-
location: '33.97346,-118.25645',
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
attomid: 154816509,
|
|
233
|
-
fulladdress: '6602 S Central Ave Los Angeles CA 90001',
|
|
234
|
-
addressstreet: '6602 S Central Ave',
|
|
235
|
-
addressunit: ' ',
|
|
236
|
-
primarynumber: 6602,
|
|
237
|
-
streetname: 'Central',
|
|
238
|
-
streetpredirection: 'S',
|
|
239
|
-
streetpostdirection: '',
|
|
240
|
-
streetsuffix: 'Ave',
|
|
241
|
-
secondarynumber: '',
|
|
242
|
-
secondarydesignator: '',
|
|
243
|
-
extrasecondarynumber: '',
|
|
244
|
-
extrasecondarydesignator: '',
|
|
245
|
-
cityname: 'Los Angeles',
|
|
246
|
-
stateabbreviation: 'CA',
|
|
247
|
-
zipcode: '90001',
|
|
248
|
-
latitude: 33.97984,
|
|
249
|
-
longitude: -118.25633,
|
|
250
|
-
situsstatecode: 'CA',
|
|
251
|
-
situscounty: 'Los Angeles',
|
|
252
|
-
propertyjurisdictionname: 'LOS ANGELES',
|
|
253
|
-
situsstatecountyfips: '06037',
|
|
254
|
-
combinedstatisticalarea: 'Los Angeles-Long Beach, CA',
|
|
255
|
-
cbsaname: 'LOS ANGELES-LONG BEACH-SANTA ANA, CA METROPOLITAN STATISTICAL AREA',
|
|
256
|
-
cbsacode: 31100,
|
|
257
|
-
msaname: 'LOS ANGELES-LONG BEACH-SANTA ANA, CA',
|
|
258
|
-
msacode: 31100,
|
|
259
|
-
metropolitandivision: 'LOS ANGELES-LONG BEACH-GLENDALE, CA METROPOLITAN DIVISION',
|
|
260
|
-
minorcivildivisionname: 'SOUTH GATE-EAST LOS ANGELES',
|
|
261
|
-
minorcivildivisioncode: 93155,
|
|
262
|
-
neighborhoodcode: '',
|
|
263
|
-
censusfipsplacecode: 24477,
|
|
264
|
-
censustract: 532900,
|
|
265
|
-
censusblockgroup: 3,
|
|
266
|
-
censusblock: 3000,
|
|
267
|
-
parcelnumberraw: '6010-005-002',
|
|
268
|
-
parcelnumberformatted: '',
|
|
269
|
-
parcelnumberyearadded: 0,
|
|
270
|
-
parcelnumberalternate: '',
|
|
271
|
-
parcelmapbook: '',
|
|
272
|
-
parcelmappage: '',
|
|
273
|
-
parcelnumberyearchange: 0,
|
|
274
|
-
parcelnumberprevious: '',
|
|
275
|
-
parcelaccountnumber: '',
|
|
276
|
-
propertyaddressfull: '6602 S CENTRAL AVE',
|
|
277
|
-
propertyaddresshousenumber: 6602,
|
|
278
|
-
propertyaddressstreetdirection: 'S',
|
|
279
|
-
propertyaddressstreetname: 'CENTRAL',
|
|
280
|
-
propertyaddressstreetsuffix: 'AVE',
|
|
281
|
-
propertyaddressstreetpostdirection: '',
|
|
282
|
-
propertyaddressunitprefix: '',
|
|
283
|
-
propertyaddressunitvalue: '',
|
|
284
|
-
propertyaddresscity: 'LOS ANGELES',
|
|
285
|
-
propertyaddressstate: 'CA',
|
|
286
|
-
propertyaddresszip: 90001,
|
|
287
|
-
propertyaddresszip4: '',
|
|
288
|
-
propertyaddresscrrt: '',
|
|
289
|
-
propertyaddressinfoprivacy: 0,
|
|
290
|
-
congressionaldistricthouse: 0,
|
|
291
|
-
legaldescription: 'TRACT NO 5450 E 50 FT OF LOT 33',
|
|
292
|
-
legalrange: '',
|
|
293
|
-
legaltownship: '',
|
|
294
|
-
legalsection: '',
|
|
295
|
-
legalquarter: '',
|
|
296
|
-
legalquarterquarter: '',
|
|
297
|
-
legalsubdivision: 5450,
|
|
298
|
-
legalphase: '',
|
|
299
|
-
legaltractnumber: 5450,
|
|
300
|
-
legalblock1: '',
|
|
301
|
-
legalblock2: '',
|
|
302
|
-
legallotnumber1: 33,
|
|
303
|
-
legallotnumber2: '',
|
|
304
|
-
legallotnumber3: '',
|
|
305
|
-
legalunit: '',
|
|
306
|
-
partyowner1namefull: 'LEVI JONES',
|
|
307
|
-
partyowner1namefirst: 'LEVI',
|
|
308
|
-
partyowner1namemiddle: '',
|
|
309
|
-
partyowner1namelast: 'JONES',
|
|
310
|
-
partyowner1namesuffix: '',
|
|
311
|
-
trustdescription: '',
|
|
312
|
-
companyflag: 'unknown',
|
|
313
|
-
partyowner2namefull: '',
|
|
314
|
-
partyowner2namefirst: '',
|
|
315
|
-
partyowner2namemiddle: '',
|
|
316
|
-
partyowner2namelast: '',
|
|
317
|
-
partyowner2namesuffix: '',
|
|
318
|
-
ownertypedescription1: 'INDIVIDUAL',
|
|
319
|
-
ownershipvestingrelationcode: '',
|
|
320
|
-
partyowner3namefull: 'LEVI & ANNABELLE JONES TRUST',
|
|
321
|
-
partyowner3namefirst: '',
|
|
322
|
-
partyowner3namemiddle: '',
|
|
323
|
-
partyowner3namelast: 'LEVI & ANNABELLE JONES TRUST',
|
|
324
|
-
partyowner3namesuffix: '',
|
|
325
|
-
partyowner4namefull: '',
|
|
326
|
-
partyowner4namefirst: '',
|
|
327
|
-
partyowner4namemiddle: '',
|
|
328
|
-
partyowner4namelast: '',
|
|
329
|
-
partyowner4namesuffix: '',
|
|
330
|
-
ownertypedescription2: 'COMPANY',
|
|
331
|
-
contactownermailingcounty: 'LOS ANGELES',
|
|
332
|
-
contactownermailingfips: '06037',
|
|
333
|
-
contactownermailaddressfull: '6534 S CENTRAL AVE',
|
|
334
|
-
contactownermailaddresshousenumber: 6534,
|
|
335
|
-
contactownermailaddressstreetdirection: 'S',
|
|
336
|
-
contactownermailaddressstreetname: 'CENTRAL',
|
|
337
|
-
contactownermailaddressstreetsuffix: 'AVE',
|
|
338
|
-
contactownermailaddressstreetpostdirection: '',
|
|
339
|
-
contactownermailaddressunitprefix: '',
|
|
340
|
-
contactownermailaddressunit: '',
|
|
341
|
-
contactownermailaddresscity: 'LOS ANGELES',
|
|
342
|
-
contactownermailaddressstate: 'CA',
|
|
343
|
-
contactownermailaddresszip: 90001,
|
|
344
|
-
contactownermailaddresszip4: 1642,
|
|
345
|
-
contactownermailaddresscrrt: 'C043',
|
|
346
|
-
contactownermailaddressinfoformat: 'S',
|
|
347
|
-
contactownermailinfoprivacy: '',
|
|
348
|
-
statusowneroccupiedflag: 'Not Owner Occupied or Unknown',
|
|
349
|
-
deedowner1namefull: 'LEVI & ANNABELLE JONES TRUST',
|
|
350
|
-
deedowner1namefirst: '',
|
|
351
|
-
deedowner1namemiddle: '',
|
|
352
|
-
deedowner1namelast: 'LEVI & ANNABELLE JONES TRUST',
|
|
353
|
-
deedowner1namesuffix: '',
|
|
354
|
-
deedowner2namefull: '',
|
|
355
|
-
deedowner2namefirst: '',
|
|
356
|
-
deedowner2namemiddle: '',
|
|
357
|
-
deedowner2namelast: '',
|
|
358
|
-
deedowner2namesuffix: '',
|
|
359
|
-
deedowner3namefull: '',
|
|
360
|
-
deedowner3namefirst: '',
|
|
361
|
-
deedowner3namemiddle: '',
|
|
362
|
-
deedowner3namelast: '',
|
|
363
|
-
deedowner3namesuffix: '',
|
|
364
|
-
deedowner4namefull: '',
|
|
365
|
-
deedowner4namefirst: '',
|
|
366
|
-
deedowner4namemiddle: '',
|
|
367
|
-
deedowner4namelast: '',
|
|
368
|
-
deedowner4namesuffix: '',
|
|
369
|
-
taxyearassessed: 2021,
|
|
370
|
-
taxassessedvaluetotal: 10579,
|
|
371
|
-
taxassessedvalueimprovements: 4718,
|
|
372
|
-
taxassessedvalueland: 5861,
|
|
373
|
-
taxassessedimprovementsperc: 44,
|
|
374
|
-
previousassessedvalue: 10579,
|
|
375
|
-
taxmarketvalueyear: 0,
|
|
376
|
-
taxmarketvaluetotal: 0,
|
|
377
|
-
taxmarketvalueimprovements: 0,
|
|
378
|
-
taxmarketvalueland: 0,
|
|
379
|
-
taxmarketimprovementsperc: 0,
|
|
380
|
-
taxfiscalyear: 2021,
|
|
381
|
-
taxratearea: '1-166',
|
|
382
|
-
taxbilledamount: 1216.77,
|
|
383
|
-
taxdelinquentyear: 0,
|
|
384
|
-
lastassessortaxrollupdate: '2021-07-01T00:00:00.000Z',
|
|
385
|
-
assrlastupdated: '2021-10-11T00:00:00.000Z',
|
|
386
|
-
taxexemptionadditional: '',
|
|
387
|
-
yearbuilt: 1950,
|
|
388
|
-
yearbuilteffective: 1951,
|
|
389
|
-
zonedcodelocal: 'LCM1*',
|
|
390
|
-
propertyusemuni: 2600,
|
|
391
|
-
propertyusegroup: 'Commercial',
|
|
392
|
-
propertyusestandardized: 'AUTO REPAIR, GARAGE',
|
|
393
|
-
assessorlastsaledate: null,
|
|
394
|
-
assessorlastsaleamount: 0,
|
|
395
|
-
assessorpriorsaledate: null,
|
|
396
|
-
assessorpriorsaleamount: 0,
|
|
397
|
-
lastownershiptransferdate: '1996-06-20T00:00:00.000Z',
|
|
398
|
-
lastownershiptransferdocumentnumber: '96-0972167',
|
|
399
|
-
lastownershiptransfertransactionid: 0,
|
|
400
|
-
deedlastsaledocumentbook: '',
|
|
401
|
-
deedlastsaledocumentpage: '',
|
|
402
|
-
deedlastdocumentnumber: '',
|
|
403
|
-
deedlastsaledate: null,
|
|
404
|
-
deedlastsaleprice: 0,
|
|
405
|
-
deedlastsaletransactionid: 0,
|
|
406
|
-
areabuilding: 760,
|
|
407
|
-
areabuildingdefinitioncode: 'Total Area',
|
|
408
|
-
areagross: 760,
|
|
409
|
-
area1stfloor: 0,
|
|
410
|
-
area2ndfloor: 0,
|
|
411
|
-
areaupperfloors: 0,
|
|
412
|
-
arealotacres: 0.0463499,
|
|
413
|
-
arealotsf: 2019,
|
|
414
|
-
arealotdepth: 0,
|
|
415
|
-
arealotwidth: 0,
|
|
416
|
-
roomsatticarea: 0,
|
|
417
|
-
roomsatticflag: 0,
|
|
418
|
-
roomsbasementarea: 0,
|
|
419
|
-
roomsbasementareafinished: 0,
|
|
420
|
-
roomsbasementareaunfinished: 0,
|
|
421
|
-
parkinggarage: 'Unknown',
|
|
422
|
-
parkinggaragearea: 0,
|
|
423
|
-
parkingcarport: 0,
|
|
424
|
-
parkingcarportarea: 0,
|
|
425
|
-
hvaccoolingdetail: 'unknown',
|
|
426
|
-
hvacheatingdetail: 'NONE',
|
|
427
|
-
hvacheatingfuel: 'unknown',
|
|
428
|
-
utilitiessewageusage: 'unknown',
|
|
429
|
-
utilitieswatersource: 'unknown',
|
|
430
|
-
utilitiesmobilehomehookupflag: 'UNKNOWN',
|
|
431
|
-
foundation: 'unknown',
|
|
432
|
-
construction: 'WOOD',
|
|
433
|
-
interiorstructure: 'unknown',
|
|
434
|
-
plumbingfixturescount: 0,
|
|
435
|
-
constructionfireresistanceclass: 104,
|
|
436
|
-
assafetyfiresprinklersflag: 'UNKNOWN',
|
|
437
|
-
flooringmaterialprimary: 'unknown',
|
|
438
|
-
bathcount: 0,
|
|
439
|
-
bathpartialcount: 0,
|
|
440
|
-
bedroomscount: 0,
|
|
441
|
-
roomscount: 0,
|
|
442
|
-
storiescount: 1,
|
|
443
|
-
unitscount: 0,
|
|
444
|
-
fireplace: 'unknown',
|
|
445
|
-
fireplacecount: 0,
|
|
446
|
-
structurestyle: 'unknown',
|
|
447
|
-
exterior1code: 'UNKNOWN',
|
|
448
|
-
roofmaterial: 'unknown',
|
|
449
|
-
roofconstruction: 'unknown',
|
|
450
|
-
porchcode: 'unknown',
|
|
451
|
-
pool: 'UNKNOWN',
|
|
452
|
-
poolarea: 0,
|
|
453
|
-
buildingscount: 0,
|
|
454
|
-
modifiedon: '2021-10-22T00:00:00T00:00:00.000Z',
|
|
455
|
-
location: '33.97984,-118.25633',
|
|
456
|
-
},
|
|
457
|
-
];
|
|
458
|
-
exports.filtersToIgnoreMOCK = [
|
|
459
|
-
{ name: 'vacant land - exempt' },
|
|
460
|
-
{ name: 'residential - vacant land' },
|
|
461
|
-
{ name: 'industrial - vacant land' },
|
|
462
|
-
{ name: 'rural residence' },
|
|
463
|
-
{ name: 'multi-family - vacant land' },
|
|
464
|
-
{ name: 'waste land, marsh, swamp, submerged - vacant land' },
|
|
465
|
-
{ name: 'vacant land - unspecified improvement' },
|
|
466
|
-
{ name: 'planned unit development (pud)' },
|
|
467
|
-
{ name: 'row house' },
|
|
468
|
-
{ name: 'agricultural (unimproved) - vacant land' },
|
|
469
|
-
{ name: 'water area (lakes, river, shore) - vacant land' },
|
|
470
|
-
{ name: 'recreational - vacant land' },
|
|
471
|
-
{ name: 'vacant land - destroyed/uninhabitable improvement' },
|
|
472
|
-
{ name: 'institutional - vacant land' },
|
|
473
|
-
{ name: 'vacant land' },
|
|
474
|
-
{ name: 'government - vacant land' },
|
|
475
|
-
{ name: 'private preserve, open space - vacant land' },
|
|
476
|
-
];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const globals_1 = require("@jest/globals");
|
|
4
|
-
const index_1 = require("../index");
|
|
5
|
-
const setup_1 = require("./setup");
|
|
6
|
-
describe('property-use-group-converter', () => {
|
|
7
|
-
let base;
|
|
8
|
-
(0, globals_1.beforeAll)(async () => {
|
|
9
|
-
const client = await (0, setup_1.openConnection)();
|
|
10
|
-
base = client.db('test');
|
|
11
|
-
});
|
|
12
|
-
describe('processor', () => {
|
|
13
|
-
let processor;
|
|
14
|
-
let metadata;
|
|
15
|
-
(0, globals_1.beforeAll)(async () => {
|
|
16
|
-
await (0, setup_1.setupProperties)(base);
|
|
17
|
-
processor = (0, index_1.configureProcessor)({
|
|
18
|
-
workers: 1,
|
|
19
|
-
mongoDb: base,
|
|
20
|
-
});
|
|
21
|
-
const { propertyUseGroupProcessor } = processor;
|
|
22
|
-
metadata = await propertyUseGroupProcessor.start('90001');
|
|
23
|
-
});
|
|
24
|
-
(0, globals_1.test)('should return metadata', async () => {
|
|
25
|
-
(0, globals_1.expect)(metadata.errors).toBe(0);
|
|
26
|
-
(0, globals_1.expect)(metadata.properties).toBe(2);
|
|
27
|
-
(0, globals_1.expect)(metadata.requests).toBe(2);
|
|
28
|
-
});
|
|
29
|
-
(0, globals_1.test)('should convert existing field to capital-case', async () => {
|
|
30
|
-
const result = await base
|
|
31
|
-
.collection('properties')
|
|
32
|
-
.find({
|
|
33
|
-
propertyusegroup: {
|
|
34
|
-
$exists: true,
|
|
35
|
-
},
|
|
36
|
-
})
|
|
37
|
-
.toArray();
|
|
38
|
-
(0, globals_1.expect)(result[0].propertyusegroup).toBe('COMMERCIAL');
|
|
39
|
-
(0, globals_1.expect)(result[1].propertyusegroup).toBe('COMMERCIAL');
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
describe('aggregate', () => {
|
|
43
|
-
(0, globals_1.beforeAll)(async () => {
|
|
44
|
-
await (0, setup_1.setupProperties)(base);
|
|
45
|
-
});
|
|
46
|
-
(0, globals_1.test)('should convert existing field to capital-case', async () => {
|
|
47
|
-
await (0, index_1.propertyUseGroupProcessorAggregate)(base);
|
|
48
|
-
const result = await base
|
|
49
|
-
.collection('properties')
|
|
50
|
-
.find({
|
|
51
|
-
propertyusegroup: {
|
|
52
|
-
$exists: true,
|
|
53
|
-
},
|
|
54
|
-
})
|
|
55
|
-
.toArray();
|
|
56
|
-
(0, globals_1.expect)(result[0].propertyusegroup).toBe('COMMERCIAL');
|
|
57
|
-
(0, globals_1.expect)(result[1].propertyusegroup).toBe('COMMERCIAL');
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
afterAll(async () => {
|
|
61
|
-
await (0, setup_1.closeConnection)();
|
|
62
|
-
});
|
|
63
|
-
});
|
package/dist/__tests__/setup.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.closeConnection = exports.openConnection = void 0;
|
|
4
|
-
exports.setupProperties = setupProperties;
|
|
5
|
-
const mongodb_1 = require("mongodb");
|
|
6
|
-
const mock_1 = require("./mock");
|
|
7
|
-
async function setupProperties(base) {
|
|
8
|
-
try {
|
|
9
|
-
await base.dropCollection('properties');
|
|
10
|
-
}
|
|
11
|
-
catch (e) {
|
|
12
|
-
// ignore
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
await base.dropCollection('filters');
|
|
16
|
-
}
|
|
17
|
-
catch (e) {
|
|
18
|
-
// ignore
|
|
19
|
-
}
|
|
20
|
-
try {
|
|
21
|
-
await base.createCollection('properties');
|
|
22
|
-
await base.collection('properties').insertMany(mock_1.MOCK);
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
// ignore
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const url = `mongodb://${process.env.MONGO_HOSTNAME ?? 'localhost'}:27017`;
|
|
29
|
-
const mongoClient = new mongodb_1.MongoClient(url, {
|
|
30
|
-
maxPoolSize: 60,
|
|
31
|
-
});
|
|
32
|
-
let connectedMongoClient;
|
|
33
|
-
const openConnection = async () => {
|
|
34
|
-
connectedMongoClient = await mongoClient.connect();
|
|
35
|
-
return connectedMongoClient;
|
|
36
|
-
};
|
|
37
|
-
exports.openConnection = openConnection;
|
|
38
|
-
const closeConnection = () => connectedMongoClient?.close();
|
|
39
|
-
exports.closeConnection = closeConnection;
|