Check an array of objects of the same type for deprecated field usage.
The OCF object type for all items
Array of data objects to check
Aggregated result with summary statistics
const stockPlans = [ { id: 'plan-1', stock_class_id: 'sc-1', plan_name: 'Plan A' }, { id: 'plan-2', stock_class_ids: ['sc-2'], plan_name: 'Plan B' }, ]; const result = checkDeprecatedFieldsForType('StockPlan', stockPlans); Copy
const stockPlans = [ { id: 'plan-1', stock_class_id: 'sc-1', plan_name: 'Plan A' }, { id: 'plan-2', stock_class_ids: ['sc-2'], plan_name: 'Plan B' }, ]; const result = checkDeprecatedFieldsForType('StockPlan', stockPlans);
Check an array of objects of the same type for deprecated field usage.