Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function normalizeOcfData

    • Normalize OCF data by converting any PlanSecurity object_type to EquityCompensation.

      This function creates a shallow copy of the input with the normalized object_type. If the object_type is not a PlanSecurity type, the original object is returned unchanged.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • data: T

        The OCF data object that may contain an object_type field

      Returns T

      The data with normalized object_type (shallow copy if modified)

      normalizeOcfData({ object_type: 'TX_PLAN_SECURITY_ISSUANCE', id: '123' })
      // => { object_type: 'TX_EQUITY_COMPENSATION_ISSUANCE', id: '123' }