Automatically normalize deprecated fields in OCF data based on entity type.
This function is designed to be called by the SDK internally when processing OCF data, making deprecated field handling transparent to end-users.
The OCF entity type (e.g., 'stockPlan')
The OCF data that may contain deprecated fields
Optional configuration
The normalized data with deprecated fields converted to current format
// SDK automatically normalizes deprecated fields const result = normalizeDeprecatedOcfFields('stockPlan', { id: 'plan-1', stock_class_id: 'sc-1', // deprecated, automatically converted plan_name: 'Equity Plan', }); // result.data.stock_class_ids === ['sc-1'] Copy
// SDK automatically normalizes deprecated fields const result = normalizeDeprecatedOcfFields('stockPlan', { id: 'plan-1', stock_class_id: 'sc-1', // deprecated, automatically converted plan_name: 'Equity Plan', }); // result.data.stock_class_ids === ['sc-1']
Automatically normalize deprecated fields in OCF data based on entity type.
This function is designed to be called by the SDK internally when processing OCF data, making deprecated field handling transparent to end-users.