@intelligo.ai/object-to-schema
Advanced tools
Comparing version 2.2.11 to 2.2.12
@@ -10,224 +10,2 @@ "use strict"; | ||
Object.defineProperty(exports, "extractExampleFromSchema", { enumerable: true, get: function () { return exampleRecordExtractor_1.extractExampleFromSchema; } }); | ||
var aa = { | ||
"companyName": "PORTFOLIO ADVISORS SECONDARY AGGREGATOR - VENTURE CAPITAL, USa", | ||
"evictionId": 1836030810467466240.0, | ||
"bridge": null, | ||
"defendantNames": [ | ||
{ | ||
"isBusiness": false, | ||
"tahoeId": "G-575692654799887454", | ||
"ssn": "099-66-2500", | ||
"prefix": "", | ||
"firstName": "MATTHEW", | ||
"middleName": "", | ||
"lastName": "ROSENBLUM", | ||
"suffix": "", | ||
"gender": "M", | ||
"nameHash": 5682392457680976900.0, | ||
"addressHashOpt9": 3396533295236144100.0, | ||
"fullName": "MATTHEW ROSENBLUM", | ||
"address": { | ||
"addressType": "Defendant Address", | ||
"addressHashOpt9": 3396533295236144100.0, | ||
"houseNumber": "36", | ||
"streetDirection": "E", | ||
"streetName": "64th", | ||
"streetType": "ST", | ||
"streetPostDirection": "", | ||
"unitType": "", | ||
"unitNumber": "", | ||
"city": "New York", | ||
"county": "", | ||
"state": "NY", | ||
"zipCode": "10065", | ||
"zip4": "7371", | ||
"longitude": "", | ||
"latitude": "", | ||
"fipsCode": "", | ||
"verificationCodes": [ | ||
"AC01", | ||
"AE09", | ||
"AS02" | ||
], | ||
"fullAddress": "36 E 64th ST; New York, NY 10065-7371" | ||
}, | ||
"partyType": "Defendant" | ||
}, | ||
{ | ||
"isBusiness": false, | ||
"tahoeId": "G-575692654799887454", | ||
"ssn": "099-66-2500", | ||
"prefix": "", | ||
"firstName": "MATTHEW", | ||
"middleName": "", | ||
"lastName": "ROSENBLUM", | ||
"suffix": "", | ||
"gender": "M3", | ||
"nameHash": 5682392457680976900.0, | ||
"addressHashOpt9": 3396533295236144100.0, | ||
"fullName": "MATTHEW ROSENBLUM3", | ||
"address": { | ||
"addressType": "Defendant Address", | ||
"addressHashOpt9": 3396533295236144100.0, | ||
"houseNumber": "36", | ||
"streetDirection": "E", | ||
"streetName": "64th", | ||
"streetType": "ST", | ||
"streetPostDirection": "", | ||
"unitType": "", | ||
"unitNumber": "", | ||
"city": "New York", | ||
"county": "", | ||
"state": "NY", | ||
"zipCode": "10065", | ||
"zip4": "7371", | ||
"longitude": "", | ||
"latitude": "", | ||
"fipsCode": "", | ||
"verificationCodes": [ | ||
"AC01", | ||
"AE09", | ||
"AS02" | ||
], | ||
"fullAddress": "36 E 64th ST; New York, NY 10065-7371" | ||
}, | ||
"partyType": "Defendant" | ||
} | ||
], | ||
"plaintiffNames": [ | ||
{ | ||
"isOwner": true, | ||
"tahoeId": null, | ||
"ssn": null, | ||
"prefix": "", | ||
"firstName": "", | ||
"middleName": "", | ||
"lastName": "OKADA DENKI SAN LTD", | ||
"suffix": "", | ||
"gender": "N", | ||
"nameHash": 1020963256723863680.0, | ||
"fullName": "OKADA DENKI SAN LTD", | ||
"partyType": "Defendant" | ||
} | ||
], | ||
"addresses": [ | ||
{ | ||
"addressType": "Court Address", | ||
"addressHashOpt9": -5893356457424657400.0, | ||
"houseNumber": "111", | ||
"streetDirection": "", | ||
"streetName": "Centre", | ||
"streetType": "ST", | ||
"streetPostDirection": "", | ||
"unitType": "Rm", | ||
"unitNumber": "118", | ||
"city": "New York", | ||
"county": "New York", | ||
"state": "NY", | ||
"zipCode": "10013", | ||
"zip4": "4390", | ||
"longitude": "", | ||
"latitude": "", | ||
"fipsCode": "", | ||
"verificationCodes": [ | ||
"AC03", | ||
"AE08", | ||
"AS02" | ||
], | ||
"fullAddress": "111 Centre ST, Rm 118; New York, NY 10013-4390" | ||
}, | ||
{ | ||
"addressType": "Defendant Address", | ||
"addressHashOpt9": 3396533295236144100.0, | ||
"houseNumber": "36", | ||
"streetDirection": "E", | ||
"streetName": "64th", | ||
"streetType": "ST", | ||
"streetPostDirection": "", | ||
"unitType": "", | ||
"unitNumber": "", | ||
"city": "New York", | ||
"county": "", | ||
"state": "NY", | ||
"zipCode": "10065", | ||
"zip4": "7371", | ||
"longitude": "", | ||
"latitude": "", | ||
"fipsCode": "", | ||
"verificationCodes": [ | ||
"AC01", | ||
"AE09", | ||
"AS02" | ||
], | ||
"fullAddress": "36 E 64th ST; New York, NY 10065-7371" | ||
} | ||
], | ||
"courts": [ | ||
{ | ||
"type": "court", | ||
"addressHashOpt9": -5893356457424657400.0, | ||
"courtId": "NYNEWL1", | ||
"courtName": "Civil Court of the City of New York", | ||
"courtPhoneOne": "6463865700", | ||
"courtPhoneOneExtension": null, | ||
"courtPhoneTwo": "6463865730", | ||
"fax": "2123748053", | ||
"courtUrl": "http://www.courts.state.ny.us/courts/1jd/index.shtml", | ||
"address": { | ||
"addressType": "Court Address", | ||
"addressHashOpt9": -5893356457424657400.0, | ||
"houseNumber": "111", | ||
"streetDirection": "", | ||
"streetName": "Centre", | ||
"streetType": "ST", | ||
"streetPostDirection": "", | ||
"unitType": "Rm", | ||
"unitNumber": "118", | ||
"city": "New York", | ||
"county": "New York", | ||
"state": "NY", | ||
"zipCode": "10013", | ||
"zip4": "4390", | ||
"longitude": "", | ||
"latitude": "", | ||
"fipsCode": "", | ||
"verificationCodes": [ | ||
"AC03", | ||
"AE08", | ||
"AS02" | ||
], | ||
"fullAddress": "111 Centre ST, Rm 118; New York, NY 10013-4390" | ||
} | ||
} | ||
], | ||
"evictionDetails": [ | ||
{ | ||
"courtId": "NYNEWL1", | ||
"caseNumber": "20050071276", | ||
"fileDate": "20050516", | ||
"liabilityAmount": "000045000", | ||
"reportDate": "20060824", | ||
"fileType": "BN", | ||
"state": "NY", | ||
"unlawfulDetainer": "Y", | ||
"assetsInDollar": "000000000", | ||
"updateDate": "" | ||
} | ||
] | ||
}; | ||
var a = (0, mapper_1.mapObject)(aa, [ | ||
{ | ||
"source": "companyName", | ||
"target": { | ||
"path": "avadaKedavra", | ||
"defaultValue": "CIVIL", | ||
"predefinedTransformations": [ | ||
{ | ||
transformation: 'companyNameFormat', | ||
} | ||
] | ||
}, | ||
} | ||
]); | ||
console.log(JSON.stringify(a, null, 2)); | ||
//# sourceMappingURL=index.js.map |
@@ -26,4 +26,5 @@ "use strict"; | ||
return str.trim() | ||
.split(/\s/) | ||
.map(function (word) { return "".concat(word[0].toUpperCase()).concat(word.slice(1).toLowerCase()); }) | ||
.toLowerCase() | ||
.split(/\s+/) | ||
.map(function (word) { return word.charAt(0).toUpperCase() + word.slice(1); }) | ||
.join(' '); | ||
@@ -30,0 +31,0 @@ } |
{ | ||
"name": "@intelligo.ai/object-to-schema", | ||
"version": "2.2.11", | ||
"version": "2.2.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
87702
1187