@intelligo.ai/object-to-schema
Advanced tools
Comparing version 2.0.8 to 2.0.9
declare function fromTracerDate(tracerDate: number): string | undefined; | ||
declare function tracerPropertyDocumentType(documentType: string): any; | ||
declare function tracerPropertyTransferType(documentType: string): any; | ||
declare function companyAddressType(addressType: string): any; | ||
export declare const strategies: { | ||
@@ -15,2 +16,3 @@ predefinedTransformations: { | ||
tracerPropertyTransferType: typeof tracerPropertyTransferType; | ||
companyAddressType: typeof companyAddressType; | ||
}; | ||
@@ -17,0 +19,0 @@ }; |
@@ -65,2 +65,22 @@ "use strict"; | ||
} | ||
function companyAddressType(addressType) { | ||
var value; | ||
switch (addressType) { | ||
case 'HQ': { | ||
value = 'HEADQUARTERS'; | ||
break; | ||
} | ||
case 'SAGENT ADDRESS': { | ||
value = 'OFFICER'; | ||
break; | ||
} | ||
default: { | ||
value = addressType.toLowerCase().includes('officer') ? | ||
'OFFICER' : | ||
'OTHER'; | ||
break; | ||
} | ||
} | ||
return value; | ||
} | ||
exports.strategies = { | ||
@@ -76,5 +96,6 @@ predefinedTransformations: { | ||
tracerPropertyDocumentType: tracerPropertyDocumentType, | ||
tracerPropertyTransferType: tracerPropertyTransferType | ||
tracerPropertyTransferType: tracerPropertyTransferType, | ||
companyAddressType: companyAddressType | ||
} | ||
}; | ||
//# sourceMappingURL=predefinedTransformations.js.map |
{ | ||
"name": "@intelligo.ai/object-to-schema", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
343762
6693