Equity compensation issuance data that may contain either the deprecated
option_grant_type field, the newer compensation_type field, or both.
Optionalcontext: stringOptional human-readable context used when emitting deprecation
warnings. Defaults to "EquityCompensationIssuance" when not provided.
Normalized fields including compensation_type, a usedDeprecatedField flag,
and optionally the originalDeprecatedValue if conversion occurred.
Normalize deprecated equity compensation issuance fields to their canonical form.
This helper converts the legacy
option_grant_typefield to the currentcompensation_typefield, applying value mappings as needed:NSO→OPTION_NSOISO→OPTION_ISOINTL→OPTIONBehavior:
option_grant_typeis provided, it is converted tocompensation_typewith the appropriate value mapping andusedDeprecatedFieldis set totrue.compensation_typeis provided and non-empty, it is used as-is andusedDeprecatedFieldis set tofalse, even ifoption_grant_typeis also present.compensation_typewill benull.The input object is not mutated.